Skip to content

Commit e2bf02a

Browse files
committed
Fix 'tokens not allowed' warnings when building PDF.
1 parent 6c602b6 commit e2bf02a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/std.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
\makeindex[grammarindex]
5757
\makeindex[impldefindex]
5858

59+
%%--------------------------------------------------
60+
%% fix interaction between hyperref and other
61+
%% commands
62+
\pdfstringdefDisableCommands{\def\smaller#1{#1}}
63+
\pdfstringdefDisableCommands{\def\textbf#1{#1}}
64+
\pdfstringdefDisableCommands{\def\raisebox#1{}}
65+
\pdfstringdefDisableCommands{\def\hspace#1{}}
66+
5967
%%--------------------------------------------------
6068
%% add special hyphenation rules
6169
\hyphenation{tem-plate ex-am-ple in-put-it-er-a-tor name-space name-spaces}

0 commit comments

Comments
 (0)