Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[manual] Italics mistake in section 2.7 #762

Closed
AlexDikelsky opened this issue Oct 28, 2019 · 1 comment
Closed

[manual] Italics mistake in section 2.7 #762

AlexDikelsky opened this issue Oct 28, 2019 · 1 comment

Comments

@AlexDikelsky
Copy link

image

The italics for the first 0 don't match the second. Also, maybe the 2 shouldn't be italicized for step=2pt
This is in section 2.7 on page 34, using version:

The TikZ and PGF Packages 
Manual for version 3.1.4b
https://github.com/pgf-tikz/pgf
Till Tantau∗
Institut für Theoretische Informatik
Universität zu Lübeck
August 3, 2019
@hmenke hmenke added the manual label Oct 28, 2019
@hmenke
Copy link
Member

hmenke commented Oct 28, 2019

The problem is in \pgfmanual@pretty@pgfkeys@collectvalue

\def\pgfmanual@pretty@pgfkeys@collectvalue#1{%
\def\pgfmanual@loc@TMPb{#1}%
\let\pgfmanual@pretty@pgfkeys@collectvalue@next=\pgfmanual@pretty@pgfkeys@collectvalue
\ifx\pgfmanual@loc@TMPb\pgfmanual@EOI
% the key value is empty.
%\expandafter\pgfmanual@pretty@pgfkeys@processvalue\expandafter{\the\toks0 }%
\let\pgfmanual@pretty@pgfkeys@collectvalue@next=\relax
\else
\def\pgfmanual@pretty@isconsumed{0}%
\if\pgfmanual@pretty@pgfkeys@collectvalue@hasconsumedspaces0%
\ifnum13=\catcode`#1
% we found a white space (space, TAB or NL)
#1%
\def\pgfmanual@pretty@isconsumed{1}%
\else
\ifnum10=\catcode`#1
% another white space... I thought they'd have
% catcode 13. doesn't matter.
\def\pgfmanual@pretty@isconsumed{1}%
#1%
\fi
\fi
\fi
\if\pgfmanual@pretty@isconsumed0%
\def\pgfmanualprettyprinterhandlecollectedargsVtwo##1##2{\pgfmanual@pretty@pgfkeys@processvalue{##1}}% the braces will be handled separately.
\def\pgfmanual@pretty@pgfkeys@collectvalue@next{%
\pgfmanualprettyprintercollectupto,{\afterpgfmanual@pretty@collectargs@finish@value}#1%
}%
\fi
\fi
\pgfmanual@pretty@pgfkeys@collectvalue@next
}%

in particular this line:
\pgfmanualprettyprintercollectupto,{\afterpgfmanual@pretty@collectargs@finish@value}#1%

It just collects everything up to the next comma, which in this case, where there is only a single key, is inside the point (0,0).

@hmenke hmenke added this to the 3.1.5 milestone Nov 3, 2019
@hmenke hmenke closed this as completed Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants