aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hdawg7797@yahoo.com>2019-08-18 01:24:39 -0400
committerHolden Rohrer <hdawg7797@yahoo.com>2019-08-18 01:33:12 -0400
commit99a4ecb644ba3f228d6c2d1981f782c1a092158f (patch)
tree6b68e2b49deb6e6809dd8e6b4dd37632fce6e355
parent25e41f265b1ba4b6e5df7410b33693e95b68facb (diff)
added notes example
-rw-r--r--README.md6
-rw-r--r--examples/README.md3
-rw-r--r--examples/mla8.tex (renamed from example.tex)0
-rw-r--r--examples/notes.tex8
-rw-r--r--notes.tex7
5 files changed, 21 insertions, 3 deletions
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/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/example.tex b/examples/mla8.tex
index 0528d44..0528d44 100644
--- a/example.tex
+++ b/examples/mla8.tex
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}