mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-01-18 18:56:37 +00:00
Issue #221: logo-width
has no hardcoded unit pt
anymore
This commit is contained in:
parent
3a1c96e507
commit
9c56c48b99
19
README.md
19
README.md
@ -144,9 +144,24 @@ This template defines some new variables to control the appearance of the result
|
||||
|
||||
path to an image that will be displayed on the title page. The path is always relative to where pandoc is executed. The option `--resource-path` has no effect.
|
||||
|
||||
- `logo-width` (defaults to `100`)
|
||||
- `logo-width` (defaults to `35mm`)
|
||||
|
||||
the width of the logo (in points)
|
||||
the width of the logo. One needs to specify the width with a (TeX) unit e.g. `100pt` or `35mm`. The following units can be used:
|
||||
|
||||
- `pt`: Point
|
||||
- `pc`: pica (12 `pt`)
|
||||
- `in`: inch (72.27 `pt`)
|
||||
- `bp`: Big point (72 `bp` = 1 `in`)
|
||||
- `cm`: Centimeter
|
||||
- `mm`: Millimeter
|
||||
- `dd`: Didot point
|
||||
- `cc`: cicero (12 `dd`)
|
||||
- `sp`: Scaled point (65,536 `sp` = 1 `pt`)
|
||||
- `ex`: Nomimal x-height
|
||||
- `em`: Nominal m-width
|
||||
- `px`: Pixel (only for pdfTeX and LuaTeX) The dimension given to the `\pdfpxdimen` primitive; default value is 1 `bp`, corresponding to a pixel density of 72 dpi.
|
||||
|
||||
A visual overview of the length units is available at <https://github.com/tweh/tex-units>.
|
||||
|
||||
- `first-chapter` (defaults to `1`)
|
||||
|
||||
|
@ -942,7 +942,7 @@ $endif$
|
||||
|
||||
$if(logo)$
|
||||
\noindent
|
||||
\includegraphics[width=$if(logo-width)$$logo-width$$else$100$endif$pt, left]{$logo$}
|
||||
\includegraphics[width=$if(logo-width)$$logo-width$$else$35mm$endif$, left]{$logo$}
|
||||
$endif$
|
||||
|
||||
$if(titlepage-background)$
|
||||
|
@ -11,7 +11,7 @@ titlepage-text-color: "7137C8"
|
||||
titlepage-rule-color: "7137C8"
|
||||
titlepage-rule-height: 2
|
||||
logo: "logo.pdf"
|
||||
logo-width: 120
|
||||
logo-width: 30mm
|
||||
...
|
||||
|
||||
# Vinaque sanguine metuenti cuiquam Alcyone fixus
|
||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 271 KiB |
Loading…
Reference in New Issue
Block a user