summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex')
-rw-r--r--graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex37
1 files changed, 14 insertions, 23 deletions
diff --git a/graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex b/graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex
index a3226328ac..c73768aa93 100644
--- a/graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex
+++ b/graphics/pgf/base/doc/macros/pgfmanual-en-macros.tex
@@ -10,28 +10,8 @@
% $Header$
-\providecommand\href[2]{\texttt{#1}}
-\providecommand\hypertarget[2]{\texttt{#1}}
-\providecommand\hyperlink[2]{\texttt{#1}}
-
-
\newcount\pgfmanualtargetcount
-\def\cleanuplink#1{%
- \expandafter\ifx\csname pgfmanual@hlink@#1\endcsname\relax%
- \global\advance\pgfmanualtargetcount by1\relax%
- \expandafter\xdef\csname pgfmanual@hlink@#1\endcsname{pgfmanual-pos-\the\pgfmanualtargetcount}%
- \fi%
-}
-\def\cleanedhypertarget#1#2{% necessary for dvisvgm
- \cleanuplink{#1}%
- \hypertarget{\csname pgfmanual@hlink@#1\endcsname}{#2}%
-}
-\def\cleanedhyperlink#1#2{%
- \cleanuplink{#1}%
- \hyperlink{\csname pgfmanual@hlink@#1\endcsname}{#2}%
-}
-
\colorlet{examplefill}{yellow!80!black}
\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
\definecolor{codebackground}{rgb}{0.9,0.9,1}
@@ -232,7 +212,7 @@
\newenvironment{luafiledescription}[1]{}{}
\newenvironment{luacommand}[4]{
- \cleanedhypertarget{pgf/lua/#1}{\luageneric{#2}{#3}{\texttt{(#4)}}{\texttt{function}}}
+ \hypertarget{pgf/lua/#1}{\luageneric{#2}{#3}{\texttt{(#4)}}{\texttt{function}}}
}{\endluageneric}
\newenvironment{luaparameters}{\par\emph{Parameters:}%
@@ -313,7 +293,7 @@
\newenvironment{math-function}[1]{
\def\mathdefaultname{#1}
\extractmathfunctionname{#1}
- \edef\mathurl{{math:\mathname}}\expandafter\cleanedhypertarget\expandafter{\mathurl}{}%
+ \edef\mathurl{{math:\mathname}}\expandafter\hypertarget\expandafter{\mathurl}{}%
\begin{pgfmanualentry}
\pgfmanualentryheadline{\texttt{#1}}%
\index{\mathname @\protect\texttt{\mathname} math function}%
@@ -1305,6 +1285,17 @@
\end{pgfmanualentry}
}
+\newenvironment{pattern}[1]{
+ \begin{pgfmanualentry}
+ \pgfmanualentryheadline{\textbf{Pattern} {\ttfamily#1}}
+ \index{#1@\protect\texttt{#1} pattern}%
+ \index{Patterns!#1@\protect\texttt{#1}}%
+ \pgfmanualbody
+}
+{
+ \end{pgfmanualentry}
+}
+
\def\processaction#1=#2\relax{
\expandafter\let\expandafter\pgf@temp\csname manual@action@#1\endcsname
\ifx\pgf@temp\relax\else
@@ -1833,7 +1824,7 @@
\ifx\code@preamble\pgfutil@empty\else
\pgfutil@tempdima=\hsize
\vbox{\hsize=\pgfutil@tempdima
- \scriptsize\detokenize\expandafter{\code@preamble}}%
+ \raggedright\scriptsize\detokenize\expandafter{\code@preamble}}%
\fi
\pgfkeysvalueof{/codeexample/typeset listing/.@cmd}{#1}\pgfeov
}%