Sunday, March 18, 2012

Latex: 自定義指令

Use \newcommend{\指令名稱}[Input] <Command>

Ex.


\newcommand{\wbalsup}[1] {This is the Wikibook about LaTeX supported by #1}
\newcommand{\wbalTwo}[2] {This is the Wikibook about LaTeX supported by #1 #2}
% in the document body:
\begin{itemize}
\item \wbalsup{Wikimedia}
\item \wbalsup{lots of users!}
\item \wbalTwo{John}{Doe}
\end{itemize}



引用: http://en.wikibooks.org/wiki/LaTeX/Customizing_LaTeX (上有圖形化範例.)






No comments:

Post a Comment