Age | Commit message (Collapse) | Author | Files | Lines |
|
Using `text:h` causes problems with numbering. Closes #2059.
Thansk to @nkalvi for diagnosing this.
|
|
Works pretty much the same as Word writer.
Following styles are used for figures:
Figure -- for figure with empty caption
FigureWithCaption (based on Figure) -- for figure with caption
FigureCaption (based on Caption) -- for figure captions
Also, TableCaption (based on Caption) is used for table captions.
We need FigureWithCaption to set keepWithNext, in order to keep caption
with figure.
|
|
We use `` :raw-latex:`...` `` and add a definition for this
role to the template.
Closes #1961.
|
|
Closes #1987.
|
|
This allows custom css to modify themes, instead of being replaced
by themes.
|
|
(Dmitry Smirnov, jgm/pandoc-templates#89)
* Made option "center" configurable.
* Added new options "maxScale" and "slideNumber".
* Added comments to existing options.
|
|
Docx Writer/Reference: Add keepNext to objects w/ captions
|
|
|
|
|
|
Figures with empty captions use style "Figure"
Figures with nonempty captions use style "Figure with Caption", which is
based on "Figure", and additionally has keepNext set.
|
|
|
|
|
|
|
|
|
|
Following styles are set as custom:
* Author
* Abstract
* Compact
* Image Caption
* Table Caption
* Definition Term
* Definition
* First Paragraph
Following styles are renamed to correspond with Word Normal.dotm
* Block Quote -> Block Text
* Link -> Hyperlink
* Footnote Ref -> Footnote Reference
Following styles added:
* Caption
Following styles' inheritance changed:
* Image Caption <- Caption
* Table Caption <- Caption
|
|
Closes #1949.
|
|
Word uses, by default, footnotes with id -1 and 0 for separators. If a
user modifies reference.docx, they will end up with a settings.xml file
that references these footnotes, but no such footnotes in the
document. This will produce a corruption error. Here we add these to the
document and settings.xml file, so future modifications won't break the file.
|
|
Since blockquote derives from BodyText, we just want to specify by
default that it won't indent, regardless of what BodyText does. Note
that this will not produce any visible difference in the default
configuration.
|
|
This updates reference.docx to make BodyText a quick style, and inherit
from it appropriately.
|
|
|
|
The minified versions no longer ship with the library.
|
|
This is added automatically by the docx writer.
If it's in the template, we'll get two copies.
See #1872.
|
|
|
|
Not title page!
|
|
This fixes a bug introduced by the previous fix.
|
|
This aids styling, making it possible for example to set 0 margins
on the title page. Closes jgm/pandoc#1758.
|
|
Closes #1648.
|
|
Fixes jgm/pandoc-templates#70.
Thanks to bluebirch.
|
|
Fixes a bug when there is verbatim inside notes.
Closes #1616.
|
|
Currently, pandoc has hard-coded the following in order to make tight lists in
LaTeX:
```hs
text "\\itemsep1pt\\parskip0pt\\parsep0pt"
```
Which is fine, but does not allow customizations. For example, the `memoir`
class already has a `\tightlist` declaration for this purpose:
```tex
\newcommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
```
I'm proposing to use a similar solution:
```diff
@@ In Writers/LaTeX.hs:
-then text "\\itemsep1pt\\parskip0pt\\parsep0pt"
+then text "\\tightlist"
@@ In templates/default.latex:
+\newcommand{\tightlist}{%
+ \setlength{\itemsep}{1pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}}
```
This allows us to customize the tightness to our needs.
Backward Compatibility
If a person is using a custom LaTeX template (not based upon the `memoir`
class), the `\tightlist` declaration must be added.
|
|
Previously we just expected 'title', 'subtitle', 'author', 'date'.
Now we still support those, but also support the format recommended
for epub metadata in the pandoc README:
---
title:
- type: main
text: My Book
- type: subtitle
text: An investigation of metadata
creator:
- role: author
text: John Smith
- role: editor
text: Sarah Jones
identifier:
- scheme: DOI
text: doi:10.234234.234/33
publisher: My Press
rights: (c) 2007 John Smith, CC BY-NC
...
|
|
Closes #1559.
|
|
Closes #1549. Thanks to lemzwerg.
|
|
|
|
The templates are duel licensed, BSD3 and GPL2+.
|
|
|
|
Headers.
We might also want to do this elsewhere (for pars, for example).
|
|
|
|
Use Subtitle style.
See #1451.
|
|
Addresses docx part of #1451.
|
|
These can be set to get `\listoftables` and `\listoffigures`.
Closes #1407.
At this point we won't add a command line argument, because
this only affects one writer. But the variables can be set
at the command line with
-Vlof -Vlot
or in YAML metadata.
|
|
Removed HTML header scaffolding from data/sample.lua.
|
|
|
|
They are supposed to be only "advisory" in HTML5, but apparently
kindlegen needs them.
|
|
|
|
|
|
|
|
|
|
Closes #1327.
|
|
|