Skip to content

KorayUlusan/korays-homework-sty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koray's latex homework style

first page of showcase.pdf

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.

Installation

cd yourProject/
git submodule add https://github.com/KorayUlusan/korays-homework-sty

to uninstall:

cd yourProject/
git rm koray-tex-homework/

Usage

% You need to include this package in your latex file.
% MAKE SURE YOU'VE SPECIFIED THE PATH CORRECT
\usepackage{./korays-homework-sty/korayHomework}

Answering questions

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}{}

Text styles

\bdtexttt{text here}
\hltexttt{text here}

Leaving notes

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}}

Changing Color Theme

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

Decorations

headrule

% you can change it via
\def\headrule{\hrcrown}

dividers

\hr
\hrdotted
\hrdotteds

\hrflower
\hrflowerl
\hrflowerr