Start
This commit is contained in:
34
doc/config/commands.tex
Normal file
34
doc/config/commands.tex
Normal file
@@ -0,0 +1,34 @@
|
||||
% Print WordPress name.
|
||||
\NewDocumentCommand{\WP}{ s }{%
|
||||
\IfBooleanTF{#1}{\textsc{wp}\xspace}{WordPress\xspace}%
|
||||
}
|
||||
|
||||
% Print ACF name.
|
||||
\NewDocumentCommand{\acf}{ s }{%
|
||||
\IfBooleanTF{#1}{\textsc{acf}\xspace}{Advanced Custom Fields\xspace}%
|
||||
}
|
||||
|
||||
% Print RHPZ name.
|
||||
\NewDocumentCommand{\rhpz}{ s }{%
|
||||
\IfBooleanTF{#1}{\textsc{RHPZ}\xspace}{Romhack Plaza\xspace}%
|
||||
}
|
||||
|
||||
% Show directory structure.
|
||||
\NewDocumentCommand{\dir}{ s m }{%
|
||||
\textcolor{violet}{\textsl{#2\IfBooleanF{#1}{.php}}}\xspace%
|
||||
}
|
||||
|
||||
\NewDocumentCommand{\sourceargs}{ m }{
|
||||
\textbf{Parameters}: \begin{itemize}%
|
||||
#1%
|
||||
\end{itemize}%
|
||||
}
|
||||
\NewDocumentCommand{\sourcereturn}{ m }{
|
||||
\textbf{Return}: \begin{itemize}%
|
||||
#1%
|
||||
\end{itemize}%
|
||||
}
|
||||
\NewDocumentCommand{\sourceexample}{ m m m }{
|
||||
\textbf{Example}: %
|
||||
\lstinputlisting[firstnumber=1,linerange={#2-#3}]{#1}%
|
||||
}
|
||||
Reference in New Issue
Block a user