Debian Codegraph @

texmf-dist/doc/latex/revtex4/docs.sty

raw
1 % authguide.rty - macros for processing revguide.tex under \documentclass{revtex4}
2 % Text entities
3 \DeclareRobustCommand\SNG{\emph{Physical Review Style and Notation Guide}}
4 \DeclareRobustCommand\LUG{\emph{\LaTeX{} User's Guide \& Reference Manual}}
5 \DeclareRobustCommand\revtex{REV\TeX}
6 \DeclareRobustCommand\marglat{\marginpar[\textbf{2e}]{\textbf{2e}}}
7 \DeclareRobustCommand\margrev{\marginpar[\textbf{4}]{\textbf{4}}}
8 \DeclareRobustCommand\AmS{%
9 {\protect\the\textfont\tw@ A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}%
10 }%
11 \DeclareRobustCommand\AmSLaTeX{\AmS-\LaTeX}
12 \DeclareRobustCommand\BibTeX{{\rm B}{\sc ib}\TeX}
13 %
14 % Various forms of self-indexing commands:
15 % \begin{macrocode}
16 \DeclareRobustCommand{\m}[1]{%
17 \meta{#1}%
18 \index{#1=\string\meta{#1} placeholder}\index{placeholder>#1=\string\meta{#1}}%
19 }%
20 \DeclareRobustCommand\meta[1]{%
21 \mbox{\m@th\LANGLE\itshape#1\/\RANGLE}%
22 }%
23 \def\LANGLE{$\langle$}%
24 \def\RANGLE{$\rangle$}%
25 \DeclareRobustCommand{\marg}[1]{%
26 {\ttfamily\string{}\meta{#1}{\ttfamily\string}}%
27 \index{#1=\string\ttt{#1}, argument}\index{argument>#1=\string\ttt{#1}}%
28 }%
29 \DeclareRobustCommand{\aarg}[1]{%
30 {\ttfamily\string{}#1{\ttfamily\string}}%
31 }%
32 \let\oarg\undefined
33 \DeclareRobustCommand{\oarg}[1]{%
34 {\ttfamily[%]
35 }\meta{#1}{\ttfamily%[
36 ]}%
37 \index{#1=\string\ttt{#1}, optional argument}%
38 \index{argument, optional>#1=\string\ttt{#1}}%
39 }%
40 \DeclareRobustCommand\cmd{\begingroup\makeatletter\@cmd}%
41 \long\def\@cmd#1{%
42 \endgroup
43 \cs{\expandafter\cmd@to@cs\string#1}%
44 \expandafter\cmd@to@index\string#1\@nil
45 }%
46 \def\cmd@to@cs#1#2{\char\number`#2\relax}%
47 \def\cmd@to@index#1#2\@nil{%
48 \index{#2=\string\cmd#1#2}%\index{command>#2=\string\cmd#1#2}%
49 }%
50 \DeclareRobustCommand\cs[1]{{\ttfamily\char`\\#1}}%
51 \def\scmd#1{%
52 \cs{\expandafter\cmd@to@cs\string#1}%
53 \expandafter\scmd@to@index\string#1\@nil
54 }%
55 \def\scmd@to@index#1#2\@nil#3{%
56 \index{\string$#3=\string\cmd#1#2---#3}%
57 %\index{command>\string$#3=\string\cmd#1#2---#3}%
58 }%
59 \DeclareRobustCommand\env{\name@idx{environment}}%
60 \DeclareRobustCommand\envb[1]{%
61 {\ttfamily\string\begin\string{}\env{#1}{\ttfamily\string}}%
62 }%
63 \DeclareRobustCommand\enve[1]{{\ttfamily\string\end\string{}\env{#1}{\ttfamily\string}}}%
64 \DeclareRobustCommand*{\file}[1]{%
65 {\ttfamily#1}%
66 \index{#1=\string\ttt{#1}}\index{file>#1=\string\ttt{#1}}%
67 }%
68 \DeclareRobustCommand\substyle{\name@idx{document substyle}}%
69 \DeclareRobustCommand\classoption{\name@idx{document class option}}%
70 \DeclareRobustCommand\classname{\name@idx{document class}}%
71 \def\name@idx#1#2{%
72 {\ttfamily#2}%
73 \index{#2\space#1=\string\ttt{#2}\space#1}\index{#1>#2=\string\ttt{#2}}%
74 }%
75 %
76 % Needed for index:
77 %
78 \def\ttt{\texttt}%
79 \def\pfill{\ }%
80 \def\efill{\ }%
81 \let\scan@allowedfalse\relax
82 %\makeindex
83 \AtEndDocument{\@input@{\jobname.ind}\null}%
84 %
85 % Processing options
86 %
87 %
88 % Layout: override revtex4|aps
89 \c@secnumdepth2
90 \prepdef\@verbatim{\topsep.5\baselineskip}%
91 \renewenvironment{quotation}{%
92 \list{}{%
93 \listparindent 10\p@
94 \itemindent\listparindent
95 \leftmargin10\p@
96 \rightmargin\leftmargin
97 \parsep \z@ \@plus\p@
98 \small
99 }%
100 \item[]%
101 }{%
102 \endlist
103 }%
104 \renewenvironment{quote}{%
105 \list{}{%
106 \leftmargin\z@
107 \rightmargin\leftmargin
108 }\item[]%
109 }{%
110 \endlist
111 }%
112 \leftmargini\parindent
113 \def\descriptionlabel#1{%
114 \hspace\labelsep\ignorespaces
115 #1\unskip
116 }%
117 \def\toprule{\hline\hline\frstrut}%
118 \def\colrule{\hline\frstrut}%
119 \def\frstrut{\vrule height2.5ex width\z@ depth\z@\relax}%
120 \def\lrstrut{\vrule height\z@ width\z@ depth.5ex\relax}%
121 %
122 % Klootches
123 %
124 \let\savenofiles\nofiles
125 %
126 % Patches:
127 %
128 %
129 \endinput