From c129df28338644c43b0a202ff71e1ff61107e765 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 5 Sep 2024 14:41:50 +0200 Subject: WIP time2tex --- .editorconfig | 2 +- .gitignore | 2 ++ makefile | 3 +++ time.txt | 1 + time2tex.py | 17 +++++++++++++++++ timerep.tex | 11 +++++++++++ 6 files changed, 35 insertions(+), 1 deletion(-) create mode 100755 time2tex.py create mode 100644 timerep.tex 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 diff --git a/.gitignore b/.gitignore index f087c7f..efdebb8 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,5 @@ !img/*.pdf img/*.puml.pdf +# generated files +time.tex diff --git a/makefile b/makefile index 0802e01..6c234ba 100644 --- a/makefile +++ b/makefile @@ -9,3 +9,6 @@ LATEXMKFLAGS += -interaction=nonstopmode plantuml -tpdf $< mv $*.pdf $@ +%.tex: %.txt + ./time2tex.py $< > $@ + diff --git a/time.txt b/time.txt index 22ed74f..c80fabf 100644 --- a/time.txt +++ b/time.txt @@ -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 ") + 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} + -- cgit v1.2.3