This program runs in both Python 2 and 3, though there are no dependencies and hence no requirements.txt
file.
Directory head_and_tail_matter
contain two necessary files: preamble.tex
and file_end.tex
; head_text_matter_can_be_edited.tex
can be empty.
Directory sections
contains individual diary entries, whose filenames will be loaded in the order they are returned by Python's os.listdir
(dictionary order on my system).
Directory diary_graphics
is the "graphicspath"; it contains any graphics files needed in the text. To include an image, use the macro \gr{filename}{n}
where filename
is the name of the image file in diary_graphics
and n
is the stylebox
ratio. There are also other graphics macros grw
and grh
, and still other macros for my own purposes โ don't worry about them.
To compile and view the whole diary:
python compile_latex_diary.py
The filename diary_composite.tex
is used, and prior versions are overwritten. The file must be compiled twice in order to produce a table of contents.
To compile and view only a selection of those sections modified in the past n
hours, use:
python compile_sample_diary_entries.py n
where n
is the maximum age in hours that is to be included. This second program is useful for examining the typesetting of individual entries without having to compile the whole diary. The filename diary_excerpts_5_sections.tex
is used, where 5
here indicates that five sections were included.
My actual diary is not found in a public repository.
[end]