aboutsummaryrefslogtreecommitdiff
path: root/test/writer.latex
AgeCommit message (Collapse)AuthorFilesLines
2020-10-19Update tests for latex template changes.John MacFarlane1-1/+2
2020-07-15Use selnolig to selectively suppress ligatures with lualatex.John MacFarlane1-0/+3
Closes #6534
2019-10-29Remove include of grffile from default latex template.John MacFarlane1-1/+1
This package is needed for proper handling of image filenames containing periods (in addition to the period before the extension). Unfortunately, grffile breaks in the latest texlive update. Until a fix is released (see ho-tex/oberdiek#73) it seems best to remove this from the default template. This may cause problems if you have filenames with periods. The workaround is to put `\usepackage{grffile}` in header-includes, and be sure you're using an older version of texlive packages. See #5848. We will leave that issue open to remind us to check upstream, and restore grffile when it's possible to do so.
2019-10-12LaTeX writer: fix horizontal rule.John MacFarlane1-13/+13
We change to use 0.5pt rather than `\linethickness`, which apparently only ever worked "by accident" and no longer works with recent updates to texlive. Closes #5801.
2019-04-02LaTeX template: Ensure correct heading/table order (#5421)Andrew Dunning1-12/+2
Improve the workaround for #1658, adapting a solution by @u-fischer in <https://github.com/latex3/latex2e/issues/131> that works whether or not the `indent` variable is enabled. Remove `subparagraph` variable in LaTeX template. The default is now to use run-in style for level 4 and 5 headings (`\paragraph` and `\subparagraph`). To get the previous default behavior (where these were formatted as blocks, like `\subsubsection`), set the `block-headings` variable. An example is given in the manual of reformatting the appearance of headings more thoroughly using KOMA-Script. Closes #5365.
2019-03-25LaTeX template: Add pandoc to PDF metadata (#5388)Andrew Dunning1-1/+1
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-22LaTeX template: Group graphics-related code (#5389)Andrew Dunning1-7/+6
* LaTeX template: Group graphics-related code The default figure placement was added in <https://github.com/jgm/pandoc/commit/f3ab4bc2b99e9f7f3917708a9110d6500aa051a0>; there does not appear to have been a reason for placing it at the end of the preamble. * Update tests
2019-03-13 LaTeX template: Improve readability (#5363)Andrew Dunning1-8/+9
+ LaTeX template: Improve template readability Use `hidelinks` option for hyperref, which has the same effect as `pdfborder={0 0 0}`, but its purpose is clearer. Use a simpler conditional for Polyglossia/Babel. Format comments more consistently. + Update tests + Remove hyperref breaklinks option. According to the documentation, hyperref sets this automatically as appropriate to the driver.
2019-03-04 LaTeX template: Robust section numbering removal (#5351)Andrew Dunning1-1/+1
Ensures that section numbering does not reappear with custom section levels. See <https://tex.stackexchange.com/questions/473653/>. Update tests
2019-02-01LaTeX writer: avoid `{}` after control sequences when escaping.John MacFarlane1-2/+2
`\ldots{}.` doesn't behave as well as `\ldots.` with the latex ellipsis package. This patch causes pandoc to avoid emitting the `{}` when it is not necessary. Now `\ldots` and other control sequences used in escaping will be followed by either a `{}`, a space, or nothing, depending on context. Thanks to Elliott Slaughter for the suggestion.
2019-01-22LaTeX template: Respect `numbersections` for books (#5235)Andrew Dunning1-1/+1
Ensure that `\part` and `\chapter` are only numbered if `numbersections` is set. To return to the previous behaviour, use `-V numbersections -V secnumdepth=0`. Notes on secnumdepth: 1 = Number `\section` 0 = Number `\chapter` -1 = Number `\part` -2 = No numbering
2019-01-12LaTeX template: Simplify fontspec usage (#5218)Andrew Dunning1-0/+2
Simplify the approach of #5212, ensuring that `mainfont` is used as the base font for scaling and that LuaLaTeX does not display the mono font with TeX ligatures (as it does not use the `Mapping=tex-ansi` option). With a modified version of `\defaultfontfeatures`, fontspec will continue to report scaling against the old default font in the log, but it nonetheless displays main font at the specified size. Using this rather than setting `Scale=MatchLowercase` for each family individually means that users will not lose scaling when upgrading to the new template if they were using other font options. Scaling can be disabled for an individual family by adding the option `Scale=1` to `sansfontoptions`, `monofontoptions`, etc. Remove the `\setromanfont` command added in #4665, as this is not documented in the fontspec manual and appears to be a deprecated alias for `\setmainfont`. For the release notes, I should also add that one can imitate the previous appearance with `-V mainfontoptions="Scale=MatchLowercase"`.
2019-01-10LaTeX template: Prevent scaling of main font (#5212)Andrew Dunning1-1/+0
When `Scale=MatchLowercase` is set as a default font option, this scales `mainfont` against the old default, meaning that it resizes whatever is set as the main font to match the metrics of Latin Modern. This can result, for example, in a document set to 12pt appearing in 11pt or 13pt. Setting this option for individual families allows everything to scale against the main font, and permits the user to override the setting if desired. Note that it is not necessary to specify `Ligatures=TeX`, as this is already set by default for the appropriate families. See the `fontspec` manual: <https://ctan.org/pkg/fontspec>. Those who specify font-options in metadata may need to add `Scale=MatchLowercase`, which will now only be provided if `(roman|sans|math|mono)fontoptions` aren't given explicitly.
2019-01-02LaTeX template: Require xcolorAndrew Dunning1-1/+1
2019-01-01Update LaTeX testsAndrew Dunning1-17/+18
2018-12-11template:latex: make @ letter before using it (#5145)Enno1-4/+7
This fixes the previous commit for parskip and KOMA classes.
2018-12-11Let KOMA document class handle parskip when applicable (#5143)Enno1-6/+7
This is just a change to the default latex template.
2017-09-08Write euro symbol directly in LaTeXAndrew Dunning1-0/+1
The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
2017-08-14Update tests for changes to LaTeX template.John MacFarlane1-2/+4
2017-05-25Added `spaced_reference_links` extension.John MacFarlane1-4/+0
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-05-09LaTeX: Load `parskip` before `hyperref`. (#3654)Václav Haisman1-6/+6
* LaTeX: Load `parskip` before `hyperref`. According to `hyperref` package's `README.pdf`, page 22, `hyperref` package should be loaded after `parskip` package. * Adjust tests for previous change.
2017-03-01LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane1-31/+62
Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
2017-02-06Use unicode-math by default in default.latex template.John MacFarlane1-5/+1
mathspec will be used in xelatex if the `mathspec` variable is set; otherwise unicode-math will be used. Thanks to Václav Haisman.
2017-02-04Moved tests/ -> test/.John MacFarlane1-0/+971