diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-01 18:01:47 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-01 18:01:47 +0200 |
commit | c1a1dc38318afb705854b7f21c447f75b3bdf784 (patch) | |
tree | bc9f4dfb1df03d546eccc4ca3248b8e07de04eb4 | |
parent | Place main in procedure. (diff) | |
download | vimwiki-scripts-c1a1dc38318afb705854b7f21c447f75b3bdf784.tar.gz vimwiki-scripts-c1a1dc38318afb705854b7f21c447f75b3bdf784.tar.xz |
Add support for author field.
-rwxr-xr-x | do.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -427,7 +427,6 @@ def main(): pass output = open(outfile, 'w') - name = pwd.getpwuid(os.getuid()).pw_gecos if mode == 'tex': @@ -542,6 +541,7 @@ def main(): options = { 'date': '\\today' if mode == 'tex' else f'{datetime.now():%Y-%m-%d}', 'mode': 'vimwiki', + 'author': pwd.getpwuid(os.getuid()).pw_gecos } # split the text into paragraph blocks @@ -568,7 +568,7 @@ def main(): output.write(f""" \\title{{{heading}}} \\date{{{options['date']}}} -\\author{{{name}}} +\\author{{{options['author']}}} \\begin{{document}} \\maketitle % \\tableofcontents |