This is the style I use in my homeworks. I thought there wasn't enough latex packages and decided to publish this.
You can find visuals here and its .tex
is here.
cd yourProject/
git submodule add https://github.com/KorayUlusan/korays-homework-sty
to uninstall:
cd yourProject/
git rm koray-tex-homework/
% You need to include this package in your latex file.
% MAKE SURE YOU'VE SPECIFIED THE PATH CORRECT
\usepackage{./korays-homework-sty/korayHomework}
Since homeworks have a defined structure, it made more sense to write the question numbers by hand. It makes the latex document more readable. (and avoid \section*{1}
)
\question{1}
\subquestion{(a)}
\subsubquestion{(i)}
you can generate question numberings automatically via
./qgen.py -1a 3333
# to see help message, use
./qgen.py -h
to overwrite the default prefix of the questions add these
\renewcommand{\questionPreText}{Question }
\renewcommand{\questionPostText}{)}
\renewcommand{\subquestionPreText}{Part }
\renewcommand{\subquestionPostText}{)}
\renewcommand{\subsubquestionPreText}{}
\bdtexttt{text here}
\hltexttt{text here}
Its important to leave notes to your teampartners. Better communication better results.
% first create a command per person
\newcommand{\noteKoray}[1]{\commentPerson{orange}{Note}{Koray}{#1}}
% then you can use it
\noteKoray{text here}
Examples:
\newcommand{\fixmeKoray}[1]{\commentPerson{red}{FixMe}{Koray}{#1}}
\newcommand{\questionKoray}[1]{\commentPerson{blue}{Question}{Koray}{#1}}
\newcommand{\noteKoray}[1]{\commentPerson{orange}{Note}{Koray}{#1}}
You can overwrite these theme colors
themeColor
titleColor
contourColor
decorativeColor
backdropcolor
highlighcolor
% for example
\definecolor{mycolor}{HTML}{FFD400} % hex must be capitals
\colorlet{themeColor}{mycolor} % overwrite
% you can change it via
\def\headrule{\hrcrown}
\hr
\hrdotted
\hrdotteds
\hrflower
\hrflowerl
\hrflowerr