Skip to content

Commit

Permalink
Add \usepackage{verbatim} to TeX template
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 committed Oct 17, 2024
1 parent 1956bbc commit cd85b3d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions tex/my-assignment-template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
\usepackage[margin=1in,top=0.6in,bottom=0.6in]{geometry}
\usepackage[fleqn]{amsmath}

\usepackage{verbatim}
\usepackage{minted}
% Install: pip install Pygments
% Add "-shell-escape", to vscode:
Expand Down
Binary file modified tex/test.pdf
Binary file not shown.
19 changes: 15 additions & 4 deletions tex/test.tex
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
\documentclass{article}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{amssymb, amsthm, enumitem, microtype}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in,top=0.6in,bottom=0.6in]{geometry}
\usepackage[fleqn]{amsmath}

\usepackage{verbatim}
\usepackage{minted}
% Install: pip install Pygments
% Add "-shell-escape", to vscode:
% Open settings, search for "latex-workshop.latex.tools", click "Edit in settings.json", add "-shell-escape" to the pdflatex command.

\begin{document}

\begin{equation*}
e.g., (g) \ \log{\frac{n}{\log n}} = \log n - \log \log n = \Theta(\log n)
\end{equation*}
\[
\frac{\partial log(x)}{\partial x} = \frac{1}{x}
\]
In here, log is the natural logarithm.

\end{document}

0 comments on commit cd85b3d

Please sign in to comment.