Some useful and neat LaTeX templates for math & code homeworks, notes and cover letter.
Updated on 2023-11-23
In terminal, run:
chmod +x ./latex_tmp_gen.sh
./latex_tmp_gen.sh
Then, the plain .tex files with input preambles will be generated in the directory you specified.
Input preambles:
\input{preamble/code_preamble.tex}
\input{preamble/general_preamble.tex}
- preamble/code_preamble.tex
- Code embedding settings for Python and C++
- preamble/general_preamble.tex
- General settings like math, figure, table, geometry, TikZ, etc...
Beamer is a
To use the Beamer template, you can simply copy the beamer/beamer.tex
file to your project directory. Also, the pre-defined preamble beamer_preamble.tex
is included in the preamble
directory.
Note that this template is specially designed for students in National Chengchi University (NCCU).
-
Python code block:
\begin{python} class MyClass: def __init__(self): self.params = params \end{python}
-
Python inline code
\pythoninline{torch.tensor([1, 2, 3)}
-
C++ code block
\begin{cpp} class MyClass { public: MyClass() {} }; \end{cpp}
-
C++ inline code
\cppinline{std::vector<int> v;}
-
\dydx
for$\dfrac{dy}{dx}$ -
\imp
for$\Rightarrow$ -
\intx
for$\int \ dx$