diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex | 73 |
1 files changed, 71 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex b/Master/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex index 06a5d4e31d5..5e32129fcec 100644 --- a/Master/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex +++ b/Master/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex @@ -7,7 +7,8 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -% $Header: /cvsroot/pgf/pgf/doc/generic/pgf/macros/pgfmanual-en-macros.tex,v 1.8 2006/10/11 15:00:27 tantau Exp $ +% $Header: /cvsroot/pgf/pgf/doc/generic/pgf/macros/pgfmanual-en-macros.tex,v 1.16 2007/06/12 21:23:32 tantau Exp $ + \providecommand\href[2]{\texttt{#1}} @@ -42,6 +43,59 @@ \end{pgfmanualentry} } +%% M.W: START MATH MACROS +\def\mvar#1{{\rmfamily\textit{#1}}} + +\makeatletter + +\def\extractmathfunctionname#1{\extractmathfunctionname@#1(,)\tmpa\tmpb} +\def\extractmathfunctionname@#1(#2)#3\tmpb{\def\mathname{#1}} + +\def\extractmathoperatorname{\begingroup\def\mvar##1{}\def\ {}\extractmathoperatorname@} +\def\extractmathoperatorname@#1{\xdef\mathname{#1}\endgroup} + +\makeatother + +\def\vskipspecial#1{\vskip#1\vskip0em} + +\newenvironment{math-function}[1]{ + \begin{pgfmanualentry} + \extractmathfunctionname{#1} + \pgfmanualentryheadline{\texttt{#1}}% + \index{\mathname @\protect\texttt{\mathname} math function}% + \index{Math functions!\mathname @\protect\texttt{\mathname}} + \pgfmanualbody +} +{ + \end{pgfmanualentry}\vskipspecial{-3em} +} + +\newenvironment{math-operator}[1]{ + \begin{pgfmanualentry} + \extractmathoperatorname{#1} + \pgfmanualentryheadline{\texttt{#1}}% + \index{\mathname @\protect\texttt{\mathname} math operator}% + \index{Math operators!\mathname @\protect\texttt{\mathname}} + \pgfmanualbody +} +{% + \end{pgfmanualentry}\vskipspecial{-3em} +} + +\newenvironment{math-constant}[1]{ + \begin{pgfmanualentry} + \pgfmanualentryheadline{\texttt{#1}}% + \index{#1@\protect\texttt{#1} math constant}% + \index{Math constants!#1@\protect\texttt{#1}} + \pgfmanualbody +} +{ + \end{pgfmanualentry}\vskipspecial{-3em} +} +\def\calcname{\textsc{calc}} + +%% M.W: END MATH MACROS + \def\extractcommand#1#2\@@{% \pgfmanualentryheadline{\declare{\texttt{\string#1}}#2}% \removeats{#1}% @@ -167,6 +221,8 @@ \removeats{#1}% \index{\strippedat @\protect\myprintocmmand{\strippedat}}} +\def\doublebs{\texttt{\char`\\\char`\\}} + \newenvironment{package}[1]{ \begin{pgfmanualentry} @@ -308,6 +364,11 @@ \index{Styles!#1@\protect\texttt{#1}}% } +\def\itemcalendaroption#1{\item \declare{\texttt{#1}}% + \index{#1@\protect\texttt{#1} date test}% + \index{Date tests!#1@\protect\texttt{#1}}% +} + \def\class#1{\list{}{\leftmargin=2em\itemindent-\leftmargin\def\makelabel##1{\hss##1}}% @@ -436,6 +497,7 @@ \catcode`\^^M=13 \gdef\commenthandler{\catcode`\%=13\def%{\@gobble@till@return}} \gdef\@gobble@till@return#1^^M{} +\gdef\@gobble@till@return@ignore#1^^M{\ignorespaces} \gdef\typesetcomment{\catcode`\%=13\def%{\@typeset@till@return}} \gdef\@typeset@till@return#1^^M{{\def%{\char`\%}\textsl{\char`\%#1}}\par} \endgroup @@ -447,14 +509,19 @@ \define@key{codeexample}{code only}[]{\code@executefalse} \define@key{codeexample}{pre}{\def\code@pre{#1}} \define@key{codeexample}{post}{\def\code@post{#1}} +\define@key{codeexample}{vbox}[]{\def\code@pre{\vbox\bgroup\setlength{\hsize}{\linewidth-6pt}}\def\code@post{\egroup}} +\define@key{codeexample}{ignorespaces}[]{\let\@gobble@till@return=\@gobble@till@return@ignore} +\define@key{codeexample}{leave comments}[]{\def\code@catcode@hook{\catcode`\%=12}\let\commenthandler=\relax\let\typesetcomment=\relax} \def\code@pre{} \def\code@post{} +\def\code@catcode@hook{} \newdimen\codeexamplewidth \newif\ifcode@execute \newbox\codeexamplebox \def\codeexample[#1]{% + \begingroup% \code@executetrue \setlength\codeexamplewidth{4cm+7pt} \setkeys{codeexample}{#1}% @@ -468,6 +535,8 @@ \@vobeyspaces% \catcode`\%=13% \catcode`\^^M=13% + \code@catcode@hook% + \relax% \find@example} \def\endofcodeexample#1{% \endgroup% @@ -542,7 +611,7 @@ \end{codeexample} } -\def\endcodeexample{} +\def\endcodeexample{\endgroup} \makeatother |