summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-22 13:42:38 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-22 13:43:35 -0800
commit3861df510c45ecfc0ac9581dc6f16b07eac4a62d (patch)
tree2b3601b496db14daff3ee5a282084d2065c20236 /README
parent297345098db4b06bcb46cf39d2a74518eb24eb3a (diff)
Updated README with margin and papersize variables.
Diffstat (limited to 'README')
-rw-r--r--README17
1 files changed, 15 insertions, 2 deletions
diff --git a/README b/README
index ea6226d38..3f1844105 100644
--- a/README
+++ b/README
@@ -194,8 +194,10 @@ To do this, specify an output file with a `.pdf` extension,
as before, but add `-t context` or `-t html5` to the command line.
PDF output can be controlled using [variables for LaTeX] (if
-LaTeX is used), [variables for ConTeXt] (if ConTeXt is used),
-and `--css` (if `wkhtmltopdf` is used).
+LaTeX is used) and [variables for ConTeXt] (if ConTeXt is used).
+If `wkhtmltopdf` is used, then the variables `margin-left`,
+`margin-right`, `margin-top`, `margin-bottom`, and `papersize`
+will affect the output, as will `--css`.
[`amsfonts`]: https://ctan.org/pkg/amsfonts
[`amsmath`]: https://ctan.org/pkg/amsmath
@@ -1150,6 +1152,9 @@ Variables for LaTeX
LaTeX variables are used when [creating a PDF].
+`papersize`
+: paper size, e.g. `letter`, `A4`
+
`fontsize`
: font size for body text (e.g. `10pt`, `12pt`)
@@ -1164,6 +1169,10 @@ LaTeX variables are used when [creating a PDF].
: option for [`geometry`] package, e.g. `margin=1in`;
may be repeated for multiple options
+`margin-left`, `margin-right`, `margin-top`, `margin-bottom`
+: sets margins, if `geometry` is not used (otherwise `geometry`
+ overrides these)
+
`linestretch`
: adjusts line spacing using the [`setspace`]
package, e.g. `1.25`, `1.5`
@@ -1256,6 +1265,10 @@ Variables for ConTeXt
: options for page margins and text arrangement (see [ConTeXt Layout]);
may be repeated for multiple options
+`margin-left`, `margin-right`, `margin-top`, `margin-bottom`
+: sets margins, if `layout` is not used (otherwise `layout`
+ overrides these)
+
`fontsize`
: font size for body text (e.g. `10pt`, `12pt`)