Skip to content

Commit

Permalink
Add largemargins option for more readable output
Browse files Browse the repository at this point in the history
  • Loading branch information
jez committed Sep 16, 2015
1 parent 140c499 commit 5dba6b6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ include the `anonymous` option in the `\documentclass` line:
\documentclass[11pt,anonymous]{homework}
```

For truly anonymous submissions, make sure you remove all personally identifying
information from your preamble.

### One question per page

If you'd like each question to begin on a new page, include the `newpage`
Expand All @@ -122,8 +125,18 @@ option:
\documentclass[11pt,newpage]{homework}
```

For truly anonymous submissions, make sure you remove all personally identifying
information from your preamble.
### Spacious margins

To enhance the readability of your documents, you can add the `largemargins`
option to your documents. This fits less content on a single page, but makes it
much more comfortable for your eyes to scan across the lines.

```latex
\documentclass[11pt,largemargins]
```

This is the default in the template and the example file. Remove this option to
have your text fill more space on the page.

## License
MIT License, see [LICENSE](LICENSE).
10 changes: 6 additions & 4 deletions homework.cls
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
\DeclareOption{anonymous}{\renewcommand\@opanon{1}}
\newcommand\@opnewpage{0}
\DeclareOption{newpage}{\renewcommand\@opnewpage{1}}
\newcommand\@oplargemargins{0}
\DeclareOption{largemargins}{\renewcommand\@oplargemargins{1}}
\ProcessOptions

% ----- Packages --------------------------------------------------------------
Expand Down Expand Up @@ -36,16 +38,16 @@
\RequirePackage{fancyvrb}
\RequirePackage{listings}

% Conditionals
\RequirePackage{ifthen}

% Header & Page Setup
\RequirePackage{fancyhdr}
\RequirePackage{fullpage}
\ifthenelse{\equal{\@oplargemargins}{1}}{}{\RequirePackage{fullpage}}

% Links
\RequirePackage{hyperref}

% Conditionals
\RequirePackage{ifthen}

% ----- Questions -------------------------------------------------------------
\newcounter{questionCounter}
\newcounter{partCounter}[questionCounter]
Expand Down
Binary file modified homework.pdf
Binary file not shown.
4 changes: 1 addition & 3 deletions homework.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[11pt]{homework}
\documentclass[11pt,largemargins]{homework}

\newcommand{\hwname}{Jacob Zimmerman}
\newcommand{\hwemail}{jezimmer}
Expand All @@ -20,8 +20,6 @@

Don't forget to fill in your personal and class information at the top!

\lipsum[1]

\question
This question's number will be auto-incremented.

Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion template.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[11pt]{homework}
\documentclass[11pt,largemargins]{homework}

% TODO: replace these with your information
\newcommand{\hwname}{Andrew Carnegie}
Expand Down

0 comments on commit 5dba6b6

Please sign in to comment.