aboutsummaryrefslogtreecommitdiff
path: root/test/lhs-test.latex
AgeCommit message (Collapse)Author
2024-03-19Change lhs tests so they don't use `--standalone`.John MacFarlane
This will avoid test failures due to minor changes in skylighting versions, e.g. #9589.
2023-11-03LaTeX template: include bookmark package unconditionally.John MacFarlane
This package produces better PDF bookmarks than hyperref and does it on the first pass. As a consequence, we now default to running LaTeX only once in producing a PDF (instead of twice). If a table of contents is present, we still have to run three times to get the page numbers.
2023-08-19LaTeX writer: improve internal links and targets.John MacFarlane
We no longer wrap section headings in a `\hypertarget`. This is unnecessary (hyperref creates an anchor based on the label) and it interferes with tagging. In addition, we now use `\hyperref` rather than `\hyperlink` for internal links. Currently `\hypertarget` is still being used for link anchors not on headings. Closes #8744. Thanks to @u-fischer.
2022-11-10Add LaTeX variable `urlstyle` (#8429)Amar Al-Zubaidi
This is set to `same` by default, so users should not experience any change.
2022-10-06latex template: set fonts after Beamer themeJeremie Knuesel
Beamer themes such as metropolis and saintpetersburg change the default fonts. This change gives precedence to the user font settings by moving them after the loading of the Beamer theme.
2022-05-31Require skylighting 0.12.3.1 and update tests.John MacFarlane
2022-03-21LaTeX template: Move urlstyle and xurl commands to after hyperref.John MacFarlane
Closes #7978.
2022-03-13Remove special redefinition of `\sout`.John MacFarlane
This used to be necessary to avoid problems with hyperref, when headings contain strikeout text, but it does not seem to be necessary any more (tested).
2022-03-13LaTeX template: Move `\sout` correction after hyperref.John MacFarlane
This fixes the previous change the default.latex.
2022-03-13LaTeX template: move hyperref near end of preamble.John MacFarlane
It now comes after header-includes and right before title, author, date, abstract. The hyperref documentation says: “Make sure it comes last of your loaded packages”. The reason is that it redefines many LaTeX commands. For example, loading it after titlesec (which might be loaded in header-includes) causes links in the table of contents to point to the wrong page (#7960). Closes #5811. Note: Users who presuppose hyperref in their header-includes will now have to add `\usepackage{hyperref}` to their header-includes to make it available there. (The redundant `\usepackage` will do no harm in this case.)
2021-07-03Revert "LaTeX template: move title, author, date up to top of preamble."John MacFarlane
This reverts commit cc088687b4013c2b8b744eb337ed04fc63f315f2 and PR #7295. This fixes issues people had when using LaTeX commands defined later in the preamble (or in some cases UTF-8 text) in the title or author fields. Closes #7422.
2021-05-16LaTeX template: move title, author, date up to top of preamble.John MacFarlane
This allows header-includes to use them, and puts them in a position where you can see them immediately. Closes #7295.
2021-02-18Revert "LaTeX template: disable `` ?` `` and `` !` `` ligatures."John MacFarlane
This reverts commit 24d7cd539ba70aa94480976a7957420c020cb19a.
2021-02-18LaTeX template: disable `` ?` `` and `` !` `` ligatures.John MacFarlane
These are often triggered by accident in languagegs that use ` `` ` for end quote (e.g. German). See jgm/citeproc#54.
2021-02-03LaTeX template: Update to iftex package (#7073)Andrew Dunning
Load the iftex package directly rather than via the ifxetex and ifluatex compatibility wrappers, which have been merged into a single package that is part of the LaTeX core. The capitalization of the commands has been changed for compatibility with older versions of TeX Live that have the version of iftex by the Persian TeX Group. This had been removed in <https://github.com/jgm/pandoc/commit/2845794c0c31b2ef1f3e6a73bb5b109da4c74f37> for compatibility with BasicTeX, but that is no longer an issue.
2020-11-25latex template: put back amssymbJohn MacFarlane
We need it for checkboxes in todo lists, and maybe for other things. In this location it seems compatible with the cases that propmted #6469 and PR #6762.
2020-10-19Update tests for latex template changes.John MacFarlane
2020-07-15Use selnolig to selectively suppress ligatures with lualatex.John MacFarlane
Closes #6534
2020-01-27Fix test suite for new skylighting.John MacFarlane
Closes #6086.
2019-12-05Keep the \author{} command even if author is not specified (#5961)Yihui Xie
Otherwise there will be a LaTeX warning "No \author given" when the .tex file is compiled. This does not affect spacing in the title block.
2019-06-13Update test for skylighting 0.8.1.1.John MacFarlane
2019-04-02LaTeX template: Ensure correct heading/table order (#5421)Andrew Dunning
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 Dunning
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-22LaTeX template: Group graphics-related code (#5389)Andrew Dunning
* 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 Dunning
+ 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 Dunning
Ensures that section numbering does not reappear with custom section levels. See <https://tex.stackexchange.com/questions/473653/>. Update tests
2019-02-10Use latest skylighting.John MacFarlane
2019-01-22LaTeX template: Respect `numbersections` for books (#5235)Andrew Dunning
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 Dunning
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 Dunning
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 Dunning
2019-01-01Update LaTeX testsAndrew Dunning
2018-12-11template:latex: make @ letter before using it (#5145)Enno
This fixes the previous commit for parskip and KOMA classes.
2018-12-11Let KOMA document class handle parskip when applicable (#5143)Enno
This is just a change to the default latex template.
2018-10-08Fixed tests for new skylighting.John MacFarlane
2017-12-10Changes for skylighting-0.5.John MacFarlane
This fixes a bug in 2.0.4, whereby pandoc could not read the theme files generated with `--print-highlight-style`. It also fixes some CSS issues involving line numbers. Highlighted code blocks are now enclosed in a div with class sourceCode. Highlighting CSS no longer sets a generic color for pre and code; we only set these for class `sourceCode`. This will close #4133 and #4128.
2017-09-08Adjusted some tests for last commit.John MacFarlane
2017-08-14Update tests for changes to LaTeX template.John MacFarlane
2017-05-09LaTeX: Load `parskip` before `hyperref`. (#3654)Václav Haisman
* 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 MacFarlane
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 MacFarlane
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 MacFarlane