This repository serves as a collection of my public-facing notes which are currently typeset using LaTeX (often pronounced "Lay-tech" or "Lah-tech").
It also contains the custom style files, the python scripts, some of the assets, and parts of my org-mode denote knowledge system that I use to annotate and link my notes.
In addition to my notes, you will also find the templates that I use to create slide decks, generate exams and produce worksheets.
Please be aware that some of these files might not compile successfully right out-of-the-box. This is mainly due to certain assets, like images, that are required but not included in this repository due to size constrains.
I genuinely hope that my work sparks a bit of LaTeX inspiration in your projects. I've been greatly inspired by the generous contributions of the community, and I aim to give back in the same spirit.
As of November 2023, I am contemplating making the switch to Typst, which is a markup-based typesetter built using Rust. While it has a much cleaner syntax, easier to program and is super fast to compile documents, I am waiting for the platform to mature a little more.
Happy TeX-ing!
Dependencies
Files
ย | ย |
---|---|
![]() |
![]() |
058w.tex |
05wm.tex |
![]() |
![]() |
059t.tex |
0136.tex |
![]() |
![]() |
05c9.tex |
01pk.tex |
ย | ย |
---|---|
![]() |
![]() |
05ee.tex |
05ej.tex |
The files mho_primetree_texfile_generator.py
and mho_pythontex_factortree.tex
need to be placed in the same directory. For me this is ~/../assets/pytex
.
Step 1:
python mho_primetree_textfile_generator.py
This will generate an individual tex file of the form imgs_pytex_primetree-###.tex
for each composite integer on a given range included in the script file (default: 4-1001).
Each of these files need to be individually compiled and have pythontex
run.
In my workflow, this is automatically taken care of by the tex_all.py
script that
automates the compilation of all my LaTeX files.
The code used to generate the trees using pythontex, forest and python was referenced from Stack Exchange.
If you just want to create a specific factor tree, then you can create a tex file,
such as the example given and place the following code in it. Notice that the
argument passed into the PrimeTree{990}
command is the composite integer that
you want to generate a tree that includes it's prime factors.
\documentclass[crop, varwidth]{standalone}
\input{mho_pythontex_factortree}
\begin{document}
\PrimeTree{990}
\end{document}
- math