diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-05 14:41:50 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-05 14:41:50 +0200 |
commit | c129df28338644c43b0a202ff71e1ff61107e765 (patch) | |
tree | 5ca578f2f28ab1bc16f934e1905f8c647da99797 | |
parent | ce495dfbfd3eaecb84b3c536ad2176a7249d5b19 (diff) |
WIP time2tex
-rw-r--r-- | .editorconfig | 2 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | makefile | 3 | ||||
-rw-r--r-- | time.txt | 1 | ||||
-rwxr-xr-x | time2tex.py | 17 | ||||
-rw-r--r-- | timerep.tex | 11 |
6 files changed, 35 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig index 1bd7da9..cb52f84 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,7 @@ indent_style = tab end_of_line = lf insert_final_newline = true -[*.{md,yml}] +[*.{md,yml,py}] indent_style = space indent_size = 2 @@ -31,3 +31,5 @@ !img/*.pdf img/*.puml.pdf +# generated files +time.tex @@ -9,3 +9,6 @@ LATEXMKFLAGS += -interaction=nonstopmode plantuml -tpdf $< mv $*.pdf $@ +%.tex: %.txt + ./time2tex.py $< > $@ + @@ -7,6 +7,7 @@ loek: 2024-09-04 50m poc / dynamic library linking test example loek: 2024-09-04 45m repository scaffolding / visual studio code latex configuration loek: 2024-09-04 20m repository scaffolding / visual studio code cmake configuration loek: 2024-09-05 15m repository scaffolding / additional latex contributing guidelines +loek: 2024-09-05 1h40m project meeting # vim:ft=cfg diff --git a/time2tex.py b/time2tex.py new file mode 100755 index 0000000..3244b8f --- /dev/null +++ b/time2tex.py @@ -0,0 +1,17 @@ +#!/bin/python3 +import sys + + +if __name__ == "__main__": + if len(sys.argv) != 2: + print("usage: time2tex <input>") + exit(1) + + input_file = sys.argv[1] + content = "" + with open(input_file, "r") as file: + content = file.read() + parsed = parse(content) + + + diff --git a/timerep.tex b/timerep.tex new file mode 100644 index 0000000..dfde932 --- /dev/null +++ b/timerep.tex @@ -0,0 +1,11 @@ +\documentclass{projdoc} +\input{meta.tex} + +\title{Time Report} + +\begin{document} + +AHOIHJSAIDHOISAJDSAJDJAOIS + +\end{document} + |