summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-01 18:02:00 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-01 18:02:00 +0200
commit4f20a928b2a2c849ebdad8121a231419b69f157d (patch)
tree9d72c7201f0b185b30baa105523c059c79431b45
parentAdd support for author field. (diff)
downloadvimwiki-scripts-4f20a928b2a2c849ebdad8121a231419b69f157d.tar.gz
vimwiki-scripts-4f20a928b2a2c849ebdad8121a231419b69f157d.tar.xz
Add detokenzie for includepdf.
-rwxr-xr-xdo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/do.py b/do.py
index 5ddc592..eb63ea7 100755
--- a/do.py
+++ b/do.py
@@ -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"