Debian Codegraph @

texmf-dist/doc/latex/physics2/phy2docdef.tex

raw
1 %% This is part of physics2 documentation.
2 %% ******************************************************
3 %% * This work may be distributed and/or modified under *
4 %% * the conditions of the LaTeX Project Public License *
5 %% * http://www.latex-project.org/lppl.txt *
6 %% * either version 1.3c of this license or any later *
7 %% * version. *
8 %% ******************************************************
9 \makeatletter
10 \usepackage[nohyperref]{doc}
11 \renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.1em}}
12 \def\contentsonly{\@starttoc{toc}}
13 \usepackage{manfnt}
14 \protected\def\pardanger{\ifnum\lastnodetype=1%
15 \leavevmode\hbox to \z@{\hss\dbend\hskip10pt\hskip\parindent}\else
16 \ifnum\lastnodetype=11%
17 \leavevmode\hbox to \z@{\hss\dbend\hskip10pt}%
18 \fi\fi\ignorespaces}
19 \usepackage{hyperref,color,xr}
20 \definecolor{pkgcolor}{RGB}{0,120,80}
21 \definecolor{moducolor}{RGB}{0,0,150}
22 \hypersetup{colorlinks,urlcolor=magenta,linkcolor=black,filecolor=blue,
23 pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
24 \def\s@pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
25 \def\@pkg#1{\texorpdfstring{\href{https://www.ctan.org/pkg/#1}%
26 {\textcolor{pkgcolor}{\textsf{#1}}}}{“#1”}}
27 \DeclareRobustCommand\pkg{\@ifstar\@pkg\s@pkg}
28 \def\modu#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
29 \def\opt#1{\texorpdfstring{\texttt{#1}}{“#1”}}
30 \protected\def\marg#1{\texttt\{\meta{#1}\texttt\}}
31 \protected\def\oarg#1{\texttt[\meta{#1}\texttt]}
32 \parindent2.4em
33 \linespread{1.06}
34 \usepackage{multicol,fancyvrb,verbatim,array,hologo}
35 \fvset{xleftmargin=\parindent}
36 \newenvironment{displayed}{\trivlist\item[]\leftskip\parindent\relax}{\endtrivlist}
37 \usepackage[normalem]{ulem}
38 \newcounter{example}[subsection]
39 \renewcommand\theexample{\thesubsection.\arabic{example}}
40 \newwrite\example@out
41 \def\example@name{\jobname.example.aux}
42 \long\def\example@start{\begingroup\@bsphack
43 \immediate\openout\example@out=\example@name
44 \let\do\@makeother\dospecials\catcode`\^^M\active
45 \def\verbatim@processline{\immediate\write\example@out{\the\verbatim@line}}%
46 \verbatim@start}
47 \long\def\example@end{\immediate\closeout\example@out\@esphack\endgroup%
48 \trivlist\item[]\relax
49 \leavevmode\hbox to \z@{%
50 \hbox to \z@{\hss{\footnotesize[\theexample]}\hskip10pt}%
51 \hskip\parindent
52 \begin{minipage}[c]{0.55\textwidth}%
53 \small\verbatiminput{\example@name}%
54 \end{minipage}%
55 \fbox{%
56 \begin{minipage}[c]{0.5\textwidth}%
57 \normalsize\input{\example@name}%
58 \end{minipage}%
59 }%
60 \hss}%
61 \endtrivlist}
62 \newenvironment{example*}[1]%
63 {\refstepcounter{example}\label{#1}\example@start}{\example@end}
64 \newenvironment{example}
65 {\stepcounter{example}\example@start}{\example@end}
66 \author{Zhang Tingxuan}
67 \date{2024/01/10\quad Version 1.0.1\thanks{%
68 \url{https://www.github.com/AlphaZTX/physics2}}}
69 \makeatother
70 \endinput