Skip to content

Commit

Permalink
Merge pull request pgf-tikz#1099 from muzimuzhi/no-missing-char
Browse files Browse the repository at this point in the history
Resolve all `Missing character` reports in manual
  • Loading branch information
hmenke authored Dec 14, 2021
2 parents c8ee2d9 + b30b657 commit e6a9a78
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 24 deletions.
2 changes: 1 addition & 1 deletion doc/generic/pgf/pgfmanual-en-base-arrows.tex
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ \subsection{Terminology}
\draw [->,thick] (5,-2.25) -- (5,2.25) node [above] {$y$-axis};

\foreach \i in {-3,-2,-1,1,2} \draw (\i+5,-1mm) -- (\i+5,1mm) node [above] {\small$\i$};
\foreach \i in {-2,-1,1,2} \draw (49mm,\i) -- (51mm,\i) node [right] {\small$\i$};;
\foreach \i in {-2,-1,1,2} \draw (49mm,\i) -- (51mm,\i) node [right] {\small$\i$};
\end{tikzpicture}

I have also added a coordinate system. The code for drawing an arrow tip always
Expand Down
4 changes: 2 additions & 2 deletions doc/generic/pgf/pgfmanual-en-base-transformations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ \subsubsection{Approximating Nonlinear Transformations Using Linear Transformati
\pgfapproximatenonlineartransformation
\draw [] (-10pt,-10pt) -- (10pt,10pt);
\draw [] (10pt,-10pt) -- (-10pt,10pt);
\pgftext{foo};
\pgftext{foo}
\end{scope}
\end{tikzpicture}
\end{codeexample}
Expand Down Expand Up @@ -1062,7 +1062,7 @@ \subsubsection{Approximating Nonlinear Transformations Using Linear Transformati
\pgfapproximatenonlineartranslation
\draw [] (-10pt,-10pt) -- (10pt,10pt);
\draw [] (10pt,-10pt) -- (-10pt,10pt);
\pgftext{foo};
\pgftext{foo}
\end{scope}
\end{tikzpicture}
\end{codeexample}
Expand Down
2 changes: 1 addition & 1 deletion doc/generic/pgf/pgfmanual-en-library-perspective.tex
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ \subsection{Examples}
q = {(0,8,0)},
r = {(0,0,-8)}}]

\simplecuboid{2}{2}{2}]
\simplecuboid{2}{2}{2}

\end{tikzpicture}
\end{codeexample}
Expand Down
4 changes: 4 additions & 0 deletions doc/generic/pgf/pgfmanual-en-main-preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@
\usepackage[T1]{fontenc}
\fi

% Promote `Missing character` reports to full errors
% require texlive 2021 or above
\tracinglostchars=3

\graphicspath{{../../images/}}
\input{pgfmanual-en-macros}

Expand Down
2 changes: 1 addition & 1 deletion doc/generic/pgf/pgfmanual-en-pgfsys-animations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ \subsection{Commands for Animating an Attribute: Transformations and Views}
\scoped [meet={(-1,-2) (1,2)}, name=my view] {
\draw (-5mm,-15mm) rectangle (7mm,8mm)
node [font=\scriptsize, align=right, below left]
{target\\ view\\ box}; ;
{target\\ view\\ box};
\filldraw (0,0) circle [radius=3mm];
} } }
\end{codeexample}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
}%

\def\tikz@animation@value@rest@base base{%
\tikz@anim@sync@scope{}{/utils/exec=\let\tikz@animation@time\tikz@anim@base@text\expandafter\tikz@anim@add\expandafter{\expandafter\tikz@anim@value\expandafter{\tikz@animation@value@head}}}{\tikz@anim@make@entry}%
\tikz@anim@sync@scope{}{\let\tikz@animation@time\tikz@anim@base@text\expandafter\tikz@anim@add\expandafter{\expandafter\tikz@anim@value\expandafter{\tikz@animation@value@head}}}{\tikz@anim@make@entry}%
\pgfutil@ifnextchar\pgf@stop{\tikz@animation@value@rest=}{\tikz@animation@value@rest}%
}%

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@
%
% Adjust for the width of the gate symbol.
%
\setbox\pgf@hbox\hbox{{\pgfkeysvalueof{/pgf/#1 gate IEC symbol}}}% add braces as color-aftergroup-fix TT
\setbox\pgf@hbox\hbox{%
% wrap in `\pgfinterruptpicture' to restore font, like how `\pgfnode` sets
% `\pgfnodeparttextbox`
\pgfinterruptpicture
{\pgfkeysvalueof{/pgf/#1 gate IEC symbol}}% add braces as color-aftergroup-fix TT
\endpgfinterruptpicture
}%
\pgf@xa.5\wd\pgf@hbox%
\pgf@ya.5\ht\pgf@hbox%
\advance\pgf@ya.5\dp\pgf@hbox%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@
\arrowboxpoints%
\ifdim\eastextend>0pt\relax%
\let\pgf@lib@shapes@arrowbox@referencepoint\midpoint%
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{\eastextend}{0pt}};
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{\eastextend}{0pt}}%
\else%
\arrowboxcorner%
\pgf@xa\pgf@x%
Expand All @@ -1320,7 +1320,7 @@
\arrowboxpoints%
\ifdim\westextend>0pt\relax%
\let\pgf@lib@shapes@arrowbox@referencepoint\midpoint%
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{-\westextend}{0pt}};
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{-\westextend}{0pt}}%
\else%
\arrowboxcorner%
\pgf@xa\pgf@x%
Expand All @@ -1333,7 +1333,7 @@
\arrowboxpoints%
\ifdim\eastextend>0pt\relax%
\let\pgf@lib@shapes@arrowbox@referencepoint\basepoint%
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{\eastextend}{0pt}};
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{\eastextend}{0pt}}%
\else%
\arrowboxcorner%
\pgf@xa\pgf@x%
Expand All @@ -1345,7 +1345,7 @@
\arrowboxpoints%
\ifdim\westextend>0pt\relax%
\let\pgf@lib@shapes@arrowbox@referencepoint\basepoint%
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{-\westextend}{0pt}};
\csname pgf@anchor@arrow box@border\endcsname{\pgfqpoint{-\westextend}{0pt}}%
\else%
\arrowboxcorner%
\pgf@xa\pgf@x%
Expand Down
2 changes: 1 addition & 1 deletion tex/generic/pgf/modules/pgfmoduleanimations.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@


\def\pgf@anim@protocol@path@size{%
\pgfutil@ifnextchar\pgf@stop\relax\pgf@anim@protocol@path@size@%
\pgfutil@ifnextchar\pgf@stop\pgfutil@gobble\pgf@anim@protocol@path@size@%
}%
\def\pgf@anim@protocol@path@size@#1#2#3{%
\pgf@protocolanimsizes@direct{#2}{#3}%
Expand Down
8 changes: 4 additions & 4 deletions tex/generic/pgf/systemlayer/pgfsys.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -519,20 +519,20 @@
\pgf@ya#4%
\advance\pgf@xa by-\pgf@x%
\advance\pgf@ya by-\pgf@y%
\pgfmathdivide@\pgf@xa\pgf@ya%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@xa}{\pgf@sys@tonumber\pgf@ya}%
\let\aspectr\pgfmathresult%
\pgf@xb#5%
\pgf@yb#6%
\pgf@xc#7%
\pgf@yc#8%
\advance\pgf@xc by-\pgf@xb%
\advance\pgf@yc by-\pgf@yb%
\pgfmathdivide@\pgf@xc\pgf@yc%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@xc}{\pgf@sys@tonumber\pgf@yc}%
\let\aspects\pgfmathresult%
\ifdim\aspectr pt#9\aspects pt%
\pgfmathdivide@\pgf@xa\pgf@xc%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@xa}{\pgf@sys@tonumber\pgf@xc}%
\else%
\pgfmathdivide@\pgf@ya\pgf@yc%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@ya}{\pgf@sys@tonumber\pgf@yc}%
\fi%
\advance\pgf@x by.5\pgf@xa%
\advance\pgf@xb by.5\pgf@xc%
Expand Down
17 changes: 9 additions & 8 deletions tex/generic/pgf/systemlayer/pgfsysanimations.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@
% Interval too small: Goto end of interval
\def\pgfmathresult{1.0}%
\else%
\pgfmathdivide@{\pgf@ya}{\pgf@xa}%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@ya}{\pgf@sys@tonumber\pgf@xa}%
\fi%
\pgf@x\pgfmathresult pt\relax%
\expandafter\pgfsysanim@splitter\the\pgf@x%
Expand Down Expand Up @@ -926,7 +926,7 @@
% Interval too small: Goto end of interval
\def\pgfmathresult{1.0}%
\else%
\pgfmathdivide@{\pgf@ya}{\pgf@xa}%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@ya}{\pgf@sys@tonumber\pgf@xa}%
\fi%
\pgf@x\pgfmathresult pt\relax%
\expandafter\pgfsysanim@splitter\the\pgf@x%
Expand Down Expand Up @@ -971,7 +971,7 @@
% Interval too small: Goto end of interval
\def\pgfmathresult{1.0}%
\else%
\pgfmathdivide@{\pgf@ya}{\pgf@xa}%
\pgfmathdivide@{\pgf@sys@tonumber\pgf@ya}{\pgf@sys@tonumber\pgf@xa}%
\fi%
\pgf@x\pgfmathresult pt\relax%
\expandafter\pgfsysanim@splitter\the\pgf@x%
Expand Down Expand Up @@ -1001,7 +1001,8 @@
% Interval too small: Goto end of interval
\def\pgfmathresult{1.0}%
\else%
\pgfmathdivide@{\pgfsysanim@snap@repeat@arg}{\pgf@xa}%
% `\pgfsysanim@snap@repeat@arg` is a macro storing a dimen value, eg "4.0pt"
\pgfmathdivide@{\pgf@sys@tonumber\dimexpr\pgfsysanim@snap@repeat@arg}{\pgf@sys@tonumber\pgf@xa}%
\fi%
\pgf@x\pgfmathresult pt\relax%
\expandafter\pgfsysanim@splitter\the\pgf@x%
Expand Down Expand Up @@ -1823,7 +1824,7 @@
\def\pgfsysanim@frac@b{1}%
\else%
\let\pgfsysanim@divby\pgfmathresult%
\pgfmathsubtract@{\pgf@xc}{\pgfsysanim@prev@time}%
\pgfmathsubtract@{\pgf@sys@tonumber\pgf@xc}{\pgfsysanim@prev@time}%
\pgfmathdivide@{\pgfmathresult}{\pgfsysanim@divby}%
\ifdim\pgfmathresult pt<0pt\def\pgfmathresult{0}\fi%
\ifdim\pgfmathresult pt>1pt\def\pgfmathresult{1}\fi%
Expand Down Expand Up @@ -1875,7 +1876,7 @@
\pgf@ya\pgfsysanim@ft%
\advance\pgf@ya by-\pgfsysanim@frac@a pt%
\pgf@yb\pgf@x
\pgfmathreciprocal@{\pgf@yb}%
\pgfmathreciprocal@{\pgf@sys@tonumber\pgf@yb}%
\ifdim\pgfmathresult pt>2.5pt%
\def\pgfmathresult{2.5}%
\fi%
Expand Down Expand Up @@ -1906,7 +1907,7 @@
\pgf@ya\pgfsysanim@ft%
\advance\pgf@ya by-\pgfsysanim@frac@a pt%
\pgf@yb\pgf@x
\pgfmathreciprocal@{\pgf@yb}%
\pgfmathreciprocal@{\pgf@sys@tonumber\pgf@yb}%
\ifdim\pgfmathresult pt>2.5pt%
\def\pgfmathresult{2.5}%
\fi%
Expand Down Expand Up @@ -1938,7 +1939,7 @@
\pgf@ya\pgfsysanim@ft%
\advance\pgf@ya by-\pgfsysanim@frac@a pt%
\pgf@yb\pgf@x
\pgfmathreciprocal@{\pgf@yb}%
\pgfmathreciprocal@{\pgf@sys@tonumber\pgf@yb}%
\ifdim\pgfmathresult pt>2.5pt%
\def\pgfmathresult{2.5}%
\fi%
Expand Down

0 comments on commit e6a9a78

Please sign in to comment.