diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-01 18:02:00 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-01 18:02:00 +0200 |
commit | 4f20a928b2a2c849ebdad8121a231419b69f157d (patch) | |
tree | 9d72c7201f0b185b30baa105523c059c79431b45 | |
parent | Add support for author field. (diff) | |
download | vimwiki-scripts-4f20a928b2a2c849ebdad8121a231419b69f157d.tar.gz vimwiki-scripts-4f20a928b2a2c849ebdad8121a231419b69f157d.tar.xz |
Add detokenzie for includepdf.
-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" |