From 99a4ecb644ba3f228d6c2d1981f782c1a092158f Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 18 Aug 2019 01:24:39 -0400 Subject: added notes example --- README.md | 6 ++++++ example.tex | 31 ------------------------------- examples/README.md | 3 +++ examples/mla8.tex | 31 +++++++++++++++++++++++++++++++ examples/notes.tex | 8 ++++++++ notes.tex | 7 ++++--- 6 files changed, 52 insertions(+), 34 deletions(-) delete mode 100644 example.tex create mode 100644 examples/README.md create mode 100644 examples/mla8.tex create mode 100644 examples/notes.tex diff --git a/README.md b/README.md index 3d298d1..40c75d3 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,9 @@ Internal options are: Python scripts alphabetize the citations. See `example.tex` for examples of how to use `mla8.tex` + +## Notes + +This is a 3-column format for note-taking, cheatsheets, etc (anything which needs a large amount of information in a small space). + +Other than the normal page setup, this adds 3 new dimensions. `\marghsize` is the width of the column with margin (`\hsize` becomes width of text only). `\fullhsize` is the dimension of the full page between all the columns because `\hsize` changed meaning. `\fullvsize` is the height of columns and thus the whole page, changing `\vsize` to height of text. diff --git a/example.tex b/example.tex deleted file mode 100644 index 0528d44..0000000 --- a/example.tex +++ /dev/null @@ -1,31 +0,0 @@ -\input mla8.tex - -\numberfirstpage \spaceaftertitle -\name{Holden} \last{Rohrer} -\prof{Jones} -\header -\title{Text} -epic bruh moment: -\blockquote{yo your mom was here last nite it was litty - -test par that should continue onto the next line like this tlike this like this like this like this like this like this like this - -but what if} -This stuff is back outside of the blockquote \cite{% - \name{McDonald and Patten Jr.}{McDonald, Douglas, and Carl Patten Jr}% - \contain{Emerging Issues on Privatized Prisons}% - \publish{Bureau of Justice Assistance}% - \pubdate{Feb. 2001}% - \locator{www.ncjrs.gov/pdffiles1/nij/grants/203968.pdf}% - \nameinline \newcite -} - -Second paragraph with new citation \cite{% - \name{Bhwartz}{Bhwartz, Aaron}% - \contain{TeX Academy}% - \publish{Not really}% - \pubdate{44 Sep. 2001}% - \nameinline \newcite% -} -\biblio -\bye diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..f1f858e --- /dev/null +++ b/examples/README.md @@ -0,0 +1,3 @@ +# examples + +These are examples for all formats. `mla8.tex` shows the format for `mla8.tex`, for example. They try to make light of all features, but full documentation at root `README` is available. diff --git a/examples/mla8.tex b/examples/mla8.tex new file mode 100644 index 0000000..0528d44 --- /dev/null +++ b/examples/mla8.tex @@ -0,0 +1,31 @@ +\input mla8.tex + +\numberfirstpage \spaceaftertitle +\name{Holden} \last{Rohrer} +\prof{Jones} +\header +\title{Text} +epic bruh moment: +\blockquote{yo your mom was here last nite it was litty + +test par that should continue onto the next line like this tlike this like this like this like this like this like this like this + +but what if} +This stuff is back outside of the blockquote \cite{% + \name{McDonald and Patten Jr.}{McDonald, Douglas, and Carl Patten Jr}% + \contain{Emerging Issues on Privatized Prisons}% + \publish{Bureau of Justice Assistance}% + \pubdate{Feb. 2001}% + \locator{www.ncjrs.gov/pdffiles1/nij/grants/203968.pdf}% + \nameinline \newcite +} + +Second paragraph with new citation \cite{% + \name{Bhwartz}{Bhwartz, Aaron}% + \contain{TeX Academy}% + \publish{Not really}% + \pubdate{44 Sep. 2001}% + \nameinline \newcite% +} +\biblio +\bye diff --git a/examples/notes.tex b/examples/notes.tex new file mode 100644 index 0000000..04d2bc9 --- /dev/null +++ b/examples/notes.tex @@ -0,0 +1,8 @@ +\input notes.tex +\sepcol %Makes the boxes + +\hoffset=-.8in \fullhsize=8.1in %these variables, as listed in 13-17, can be edited to change the page shape + +This is some text which should be long enough to trigger the linebreak. This is some math: $x=3y+4$. {\it And these words are italicized.} + +\bye diff --git a/notes.tex b/notes.tex index df5e228..61e9517 100644 --- a/notes.tex +++ b/notes.tex @@ -13,9 +13,10 @@ \hoffset=-.9in \hsize=2.4in \newdimen\marghsize \marghsize=2.6in %margin hsize \newdimen\fullhsize \fullhsize=8.3in -\voffset=-.9in \vsize=10.6in \def\realpage{\vsize=10.8in} -\def\fullline{\hbox to \fullhsize} +\newdimen\fullvsize \fullvsize=10.8in +\voffset=-.9in \vsize=10.6in \emergencystretch=.15in +\def\fullline{\hbox to \fullhsize} % \def\makeheadline{% \vbox to 0pt{\vskip-22.5pt @@ -41,5 +42,5 @@ \ifnum\outputpenalty>-20000 \else\dosupereject\fi } \def\finformat{\shipout\vbox{\makeheadline -\fullline{\tracingall \realpage \bigstruct{\struct\columnone \hfil \struct\columntwo \hfil \struct\columnthree}} +\fullline{\tracingall \vsize=\fullvsize \bigstruct{\struct\columnone \hfil \struct\columntwo \hfil \struct\columnthree}} \makefootline} \advancepageno} -- cgit