Skip to content

Commit

Permalink
Merge pull request #1172 from muzimuzhi/doc-v2
Browse files Browse the repository at this point in the history
docs: ensure `doc` v2 is loaded
docs: ensure active `^^M` is non-expandable
  • Loading branch information
muzimuzhi authored Jul 21, 2022
2 parents 28917fd + 376ad0f commit 7b7209c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/generic/pgf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ lot of contributed changes. Thanks to everyone who volunteered their time!
- Flatten the doc tree
- Ensure `\tracinglostchars<3` in `\pgf@picture`
- Use descriptive workflow job ids
- Ensure `doc` v2 is loaded for pgfmanual
- Ensure active `^^M` is non-expandable in `codeexample`

### Contributors

Expand Down
2 changes: 1 addition & 1 deletion doc/generic/pgf/pgfmanual-test.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.

\documentclass[a4paper]{ltxdoc}
\documentclass[a4paper,doc2]{ltxdoc}

% pgf version is defined in \pgfversion in file
% generic/pgf/utilities/pgfrcs.code.tex
Expand Down
2 changes: 1 addition & 1 deletion doc/generic/pgf/pgfmanual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.

\documentclass[a4paper]{ltxdoc}
\documentclass[a4paper,doc2]{ltxdoc}

% pgf version is defined in \pgfversion in file
% generic/pgf/utilities/pgfrcs.code.tex
Expand Down
6 changes: 6 additions & 0 deletions tex/latex/pgf/doc/pgfmanual-en-macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,9 @@
{%
\returntospace%
\commenthandler%
% ensures the active ^^M is protected thus won't be expanded in the
% following \xdef\code@temp{#1}
\obeylines%
\xdef\code@temp{#1}% removes returns and comments
}%
\edef\pgfmanualmcatcode{\the\catcode`\^^M}%
Expand All @@ -1727,6 +1730,9 @@
{%
\returntospace%
\commenthandler%
% ensures the active ^^M is protected thus won't be expanded in the
% following \xdef\code@temp{#1}
\obeylines%
\xdef\code@temp{#1}% removes returns and comments
}%
\catcode`\^^M=9%
Expand Down

0 comments on commit 7b7209c

Please sign in to comment.