diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex index 05d0ce06333..b9e76710c8a 100644 --- a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex +++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex @@ -1,8 +1,8 @@ %% -%% Package: spectralsequences v1.2.1 2017-09-16 2017-09-16 +%% Package: spectralsequences v1.2.2 2017-09-16 2017-09-16 %% Author: Hood Chatham %% Email: hood@mit.edu -%% Date: 2018-10-08 +%% Date: 2019-02-18 %% License: Latex Project Public License %% %% File: spectralsequencesmanualpreamble.tex @@ -275,7 +275,8 @@ } \def\pgfmanual@pretty@collectquote{% \let\pgfmanualprettyprinterhandlecollectedargs=\pgfmanual@pretty@collectargs@finish@collectquote - \pgfmanualprettyprintercollectupto" + \let\pgfmanualprettyprinterhandlecollectedargsVtwo\pgfmanualprettyprinterhandlecollectedargsVtwo@default + \pgfmanualprettyprintercollectupto"% {\pgfmanual@pretty@collectquote@b}% } \def\pgfmanual@pretty@collectquote@b{% @@ -289,9 +290,9 @@ \def\afterpgfmanual@pretty@collectquote{\pgfmanual@pretty@pgfkeys@loop} \def\pgfmanual@pretty@collectargs@finish@collectquote#1{\textcolor{keycolor}{\pgfmanualpdfref{""quotes}{"#1"}}} \def\pgfmanual@pretty@collectargs@finish@collectquote@b#1{% + \def\thekey{#1}% \edef\temp{\ifpgfmanualprettyprinterfoundterminator,\fi}% \pgfkeys{/codeexample/prettyprint/key name/.code={\textcolor{keycolor}{##1}}}% - \def\thekey{#1}% \def\leadingtoks{}\def\trailingtoks{}% \pulloffstartspaces\pulloffsinglequote\pulloffstartspaces\pulloffstartbrace \removetrailingspaces\removetrailingbrace @@ -315,12 +316,13 @@ % Redefine point collection to correctly balance the parens % Has unfortunate side effect that it now throws an error if parens don't balance. \let\pgfmanual@pretty@collectpoint@old\pgfmanual@pretty@collectpoint -\def\pgfmanual@pretty@collectpoint{\pgfmanual@pretty@collectpoint@(} %) -\DeclareDocumentCommand\pgfmanual@pretty@collectpoint@{r()}{% - \pgfmanualprettyprinterfoundterminatortrue - \pgfmanual@pretty@collectargs@finish@collectpoint{#1}% - \afterpgfmanual@pretty@collectpoint -} +%\def\pgfmanual@pretty@collectpoint{\pgfmanual@pretty@collectpoint@(} %) +%\DeclareDocumentCommand\pgfmanual@pretty@collectpoint@{r()}{% +% \pgfmanualprettyprinterfoundterminatortrue +% \pgfmanual@pretty@collectargs@finish@collectpoint{#1}% +% \afterpgfmanual@pretty@collectpoint +%} + \pgfqkeys{/codeexample/prettyprint}{ @@ -399,7 +401,8 @@ }% \fi }, - point/.code={\pgfutil@in@){#1}\ifpgfutil@in@\prettyprintprocesspoint#1\else \textcolor{pointcolor}{\noligs{#1}}\fi}, + point/.code={%\pgfutil@in@){#1}\ifpgfutil@in@\def\temp{#1}\prettyprintprocesspoint{#1}\else \textcolor{pointcolor}{\noligs{#1}}\fi + \textcolor{pointcolor}{\noligs{#1}}}, %/cs/.code={\pgfmanualpdfref{#1}{\textcolor{blue}{#1}}}, % /cs with args/.code 2 args={\pgfmanualpdfref{#1}{\textcolor{blue}{#1}}\{\pgfmanualprettyprintcode{#2}\pgfmanualclosebrace}, %/colored @@ -420,7 +423,7 @@ \def\codeverb|{\pgfmanual@verb@code} % balance the braces -\NewDocumentCommand\prettyprintprocesspoint { r() } {% +\NewDocumentCommand\prettyprintprocesspoint { m } {% \textcolor{pointcolor}{% \bgroup \let\pgfmanual@pretty@collectpoint\pgfmanual@pretty@collectpoint@old @@ -440,6 +443,19 @@ \expandafter\endofcodeexample\expandafter{\examplelines}% } +% For some reason it's started duplicating the last line of the file, +% so I added an illogical extra \ifeof and that seems to fix the problem. +\def\readexamplelines{ + \ifeof\examplesource% + \else + \immediate\read\examplesource to \exampleline + \ifeof\examplesource\else %% Added + \edef\examplelines{\unexpanded\@xp{\examplelines}\unexpanded\@xp{\exampleline}}% + \fi %% Added + \expandafter\readexamplelines% + \fi +} + \pgfqkeys{/sseqpages}{ class/class:name/.forward to=/sseqpages/class/name, |