Skip to content

Commit

Permalink
Add syntax highlighting and dynamic date/time
Browse files Browse the repository at this point in the history
Integrate minted package for code syntax highlighting

Use datetime package to display current date and time in document

Remove verbatim package as it's no longer needed
  • Loading branch information
eric15342335 committed Nov 15, 2024
1 parent f8fc04a commit 48e2032
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified tex/my-assignment-template.pdf
Binary file not shown.
6 changes: 5 additions & 1 deletion tex/my-assignment-template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
\usepackage[margin=1in,top=0.6in,bottom=0.6in]{geometry}
\usepackage[fleqn]{amsmath}

\usepackage{verbatim}
% For syntax highlighting
\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.

% For displaying accurate time
\usepackage{datetime}

\title{Assignment template using LaTeX}
\author{Cheng Ho Ming, Eric (3036216734) [Class Section]}
\date{\today \ \currenttime}

\begin{document}
\maketitle
Expand Down

0 comments on commit 48e2032

Please sign in to comment.