Skip to content

Commit

Permalink
Update assignment template: modify date and enhance LaTeX structure w…
Browse files Browse the repository at this point in the history
…ith metadata and outline support
  • Loading branch information
eric15342335 committed Nov 16, 2024
1 parent 48e2032 commit cf685f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file modified tex/my-assignment-template.pdf
Binary file not shown.
17 changes: 17 additions & 0 deletions tex/my-assignment-template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@

% For displaying accurate time
\usepackage{datetime}
% For PDF metadata
\usepackage[pdfusetitle]{hyperref}
% For outline
\usepackage{navigator}
% Automatically add section to outline
\newcommand{\mysectionstar}[2][]{%
\ifthenelse{\equal{#1}{}}%
{\section*{#2}}% If optional argument is empty
{\section*[#1]{#2}}% If optional argument is not empty
\outline{1}{#2}%
}
\newcommand{\mysubsectionstar}[2][]{%
\ifthenelse{\equal{#1}{}}%
{\subsection*{#2}}% If optional argument is empty
{\subsection*[#1]{#2}}% If optional argument is not empty
\outline{2}{#2}%
}

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

0 comments on commit cf685f0

Please sign in to comment.