summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/revtex4
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-10 00:42:00 +0000
committerKarl Berry <karl@freefriends.org>2017-11-10 00:42:00 +0000
commit58a80b148a6b8ba4b527ea4716eb9870f1eaa1c6 (patch)
tree66634695ee896fbb4143c75e6b2319b7b75be4d2 /Master/texmf-dist/doc/latex/revtex4
parentb4ddb0e04d17bd28752d66b3fc94b5613d10335e (diff)
move revtex4/docs.sty to doc subdir where it belongs; found by Norbert
git-svn-id: svn://tug.org/texlive/trunk@45734 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/revtex4')
-rw-r--r--Master/texmf-dist/doc/latex/revtex4/docs.sty129
1 files changed, 129 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/revtex4/docs.sty b/Master/texmf-dist/doc/latex/revtex4/docs.sty
new file mode 100644
index 00000000000..f401506cb63
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/revtex4/docs.sty
@@ -0,0 +1,129 @@
+% authguide.rty - macros for processing revguide.tex under \documentclass{revtex4}
+% Text entities
+\DeclareRobustCommand\SNG{\emph{Physical Review Style and Notation Guide}}
+\DeclareRobustCommand\LUG{\emph{\LaTeX{} User's Guide \& Reference Manual}}
+\DeclareRobustCommand\revtex{REV\TeX}
+\DeclareRobustCommand\marglat{\marginpar[\textbf{2e}]{\textbf{2e}}}
+\DeclareRobustCommand\margrev{\marginpar[\textbf{4}]{\textbf{4}}}
+\DeclareRobustCommand\AmS{%
+ {\protect\the\textfont\tw@ A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}%
+}%
+\DeclareRobustCommand\AmSLaTeX{\AmS-\LaTeX}
+\DeclareRobustCommand\BibTeX{{\rm B}{\sc ib}\TeX}
+%
+% Various forms of self-indexing commands:
+% \begin{macrocode}
+\DeclareRobustCommand{\m}[1]{%
+ \meta{#1}%
+ \index{#1=\string\meta{#1} placeholder}\index{placeholder>#1=\string\meta{#1}}%
+}%
+\DeclareRobustCommand\meta[1]{%
+ \mbox{\m@th\LANGLE\itshape#1\/\RANGLE}%
+}%
+\def\LANGLE{$\langle$}%
+\def\RANGLE{$\rangle$}%
+\DeclareRobustCommand{\marg}[1]{%
+ {\ttfamily\string{}\meta{#1}{\ttfamily\string}}%
+ \index{#1=\string\ttt{#1}, argument}\index{argument>#1=\string\ttt{#1}}%
+}%
+\DeclareRobustCommand{\aarg}[1]{%
+ {\ttfamily\string{}#1{\ttfamily\string}}%
+}%
+\let\oarg\undefined
+\DeclareRobustCommand{\oarg}[1]{%
+ {\ttfamily[%]
+ }\meta{#1}{\ttfamily%[
+ ]}%
+ \index{#1=\string\ttt{#1}, optional argument}%
+ \index{argument, optional>#1=\string\ttt{#1}}%
+}%
+\DeclareRobustCommand\cmd{\begingroup\makeatletter\@cmd}%
+\long\def\@cmd#1{%
+ \endgroup
+ \cs{\expandafter\cmd@to@cs\string#1}%
+ \expandafter\cmd@to@index\string#1\@nil
+}%
+\def\cmd@to@cs#1#2{\char\number`#2\relax}%
+\def\cmd@to@index#1#2\@nil{%
+ \index{#2=\string\cmd#1#2}%\index{command>#2=\string\cmd#1#2}%
+}%
+\DeclareRobustCommand\cs[1]{{\ttfamily\char`\\#1}}%
+\def\scmd#1{%
+ \cs{\expandafter\cmd@to@cs\string#1}%
+ \expandafter\scmd@to@index\string#1\@nil
+}%
+\def\scmd@to@index#1#2\@nil#3{%
+ \index{\string$#3=\string\cmd#1#2---#3}%
+%\index{command>\string$#3=\string\cmd#1#2---#3}%
+}%
+\DeclareRobustCommand\env{\name@idx{environment}}%
+\DeclareRobustCommand\envb[1]{%
+ {\ttfamily\string\begin\string{}\env{#1}{\ttfamily\string}}%
+}%
+\DeclareRobustCommand\enve[1]{{\ttfamily\string\end\string{}\env{#1}{\ttfamily\string}}}%
+\DeclareRobustCommand*{\file}[1]{%
+ {\ttfamily#1}%
+ \index{#1=\string\ttt{#1}}\index{file>#1=\string\ttt{#1}}%
+}%
+\DeclareRobustCommand\substyle{\name@idx{document substyle}}%
+\DeclareRobustCommand\classoption{\name@idx{document class option}}%
+\DeclareRobustCommand\classname{\name@idx{document class}}%
+\def\name@idx#1#2{%
+ {\ttfamily#2}%
+ \index{#2\space#1=\string\ttt{#2}\space#1}\index{#1>#2=\string\ttt{#2}}%
+}%
+%
+% Needed for index:
+%
+\def\ttt{\texttt}%
+\def\pfill{\ }%
+\def\efill{\ }%
+\let\scan@allowedfalse\relax
+%\makeindex
+\AtEndDocument{\@input@{\jobname.ind}\null}%
+%
+% Processing options
+%
+%
+% Layout: override revtex4|aps
+\c@secnumdepth2
+\prepdef\@verbatim{\topsep.5\baselineskip}%
+\renewenvironment{quotation}{%
+ \list{}{%
+ \listparindent 10\p@
+ \itemindent\listparindent
+ \leftmargin10\p@
+ \rightmargin\leftmargin
+ \parsep \z@ \@plus\p@
+ \small
+ }%
+ \item[]%
+}{%
+ \endlist
+}%
+\renewenvironment{quote}{%
+ \list{}{%
+ \leftmargin\z@
+ \rightmargin\leftmargin
+ }\item[]%
+}{%
+ \endlist
+}%
+\leftmargini\parindent
+\def\descriptionlabel#1{%
+ \hspace\labelsep\ignorespaces
+ #1\unskip
+}%
+\def\toprule{\hline\hline\frstrut}%
+\def\colrule{\hline\frstrut}%
+\def\frstrut{\vrule height2.5ex width\z@ depth\z@\relax}%
+\def\lrstrut{\vrule height\z@ width\z@ depth.5ex\relax}%
+%
+% Klootches
+%
+\let\savenofiles\nofiles
+%
+% Patches:
+%
+%
+\endinput