Debian Codegraph @

hmmer/documentation/userguide/tufte-common-local.tex

raw
1 % additional customization of tufte-latex package
2
3 \usepackage{fancybox}
4 \usepackage{relsize}
5 \usepackage{fancyvrb}
6
7
8 \hypersetup{colorlinks,
9 citecolor = {Black},
10 linkcolor = {RoyalBlue},
11 urlcolor = {RoyalBlue},
12 }
13
14 \urlstyle{rm}
15
16
17 % customization of titlepage, hacking TL.
18 %
19 \newcommand{\subtitle}[1]{\newcommand{\plainsubtitle}{#1}}
20 \newcommand{\subauthor}[1]{\newcommand{\plainsubauthor}{#1}}
21 \newcommand{\pkgurl}[1]{\newcommand{\plainpkgurl}{#1}}
22 \newcommand{\pkgversion}[1]{\newcommand{\plainpkgversion}{#1}}
23 \newcommand{\pkgdate}[1]{\newcommand{\plainpkgdate}{#1}}
24
25 \renewcommand{\maketitlepage}[0]{%
26 \cleardoublepage%
27 {%
28 % \sffamily%
29 \begin{fullwidth}%
30 \vspace*{\fill}%
31 \fontsize{25}{30}\selectfont\par\noindent{\thanklesstitle}%
32 \vspace{8pt}\hrule\vspace{8pt}%
33 \fontsize{12}{14}\selectfont\par\noindent\hspace*{\fill}{\plainsubtitle}%
34
35 \vspace*{\fill}%
36 \begin{centering}%
37 \fontsize{14}{17}\selectfont\par{\plainauthor}%
38 \fontsize{14}{17}\selectfont\par{\plainsubauthor}%
39
40 \vspace*{\fill}%
41
42 \fontsize{14}{17}\selectfont\par\url{\plainpkgurl}%
43 \fontsize{14}{17}\selectfont\par{Version \plainpkgversion; \plainpkgdate}%
44
45 \end{centering}%
46 \vspace*{\fill}%
47 \end{fullwidth}%
48 }
49 \thispagestyle{empty}%
50 \clearpage%
51 }
52
53 % \smaller not \small, so \mono works proportionately in side/margin notes
54 % avoid nesting \mono{..\monob{..}}, because \smaller will accumulate.
55 % in man pages, close font changes, e.g. \fI..\fR\fB..\fR not \fi..\fB..fR
56 %
57 \newcommand{\mono}[1]{{\smaller\texttt{#1}}} % literal (to be typed): code, program names
58 \newcommand{\monoi}[1]{{\smaller\itshape\texttt{#1}}} % meta (to be substituted): vars, options, args
59 \newcommand{\monob}[1]{{\smaller\bfseries\texttt{#1}}} % emphasized literals
60 \newcommand{\monobi}[1]{{\smaller\bfseries\itshape\texttt{#1}}} % emphasized variables
61 \newcommand{\user}[1]{\indent\indent\monob{#1}} % user-typed command line, on its own line
62
63
64 \CustomVerbatimCommand{\xsreoutput}{VerbatimInput}{fontsize=\scriptsize,xleftmargin=2.0\parindent}%
65 \DefineVerbatimEnvironment{sreoutput}{Verbatim}{fontsize=\scriptsize,xleftmargin=2.0\parindent}%
66 \DefineVerbatimEnvironment{tinysreoutput}{Verbatim}{fontsize=\tiny,xleftmargin=2.0\parindent}%
67
68
69
70 % Description-like environment for producing lists like:
71 %
72 % label stuff, stuff, stuff
73 %
74 % label2 more stuff, more stuff,
75 % more stuff.
76 % \begin{sreitems}{Longest label} \item[label] stuff, ... \end{sreitems}
77 % SRE, Wed Dec 27 11:59:43 2000
78 %
79 \newenvironment{sreitems}[1]{%
80 \begin{list}{}{%
81 \settowidth{\labelwidth}{#1}%
82 \setlength{\leftmargin}{\labelwidth}%
83 \addtolength{\leftmargin}{\labelsep}%
84 }}
85 {\end{list}}
86
87
88 % The ``wideitem'' environment is mostly obsolete, but
89 % it gets used in converted manpages.
90 %
91 \newenvironment{wideitem}{\begin{list}
92 {}
93 { \setlength{\labelwidth}{2in}\setlength{\leftmargin}{1.5in}}}
94 {\end{list}}
95
96 % The following are used as temp vars in how man pages are
97 % converted into LaTeX w/ rman; see ``make manpages'' in Makefile.
98 %
99 % (Obsolete now, I think)
100 \newlength{\sresavei}
101 \newlength{\sresaves}
102
103
104
105