diff options
-rwxr-xr-x | do.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -40,7 +40,9 @@ def includepdf(mode, addr, full_file): arg += f',pagecommand={{{pagecommand}}}' arg += ',width=\\textwidth' before = f'\\rhead{{Bilaga \\Alph{{section}}.\\arabic{{subsection}} {texify_filename(addr)} }}\n' - return before + f'\\phantomsection\\stepcounter{{subsection}}\n\\includepdf[{arg}]{{{full_file}}}\n' + before += f'\\phantomsection\\stepcounter{{subsection}}\n' + before += f'\\includepdf[{arg}]{{\\detokenize{{{full_file}}}}}\n' + return before elif mode == 'txt': return f"Se pdf {addr}\n" |