pandoc/tests/Tests
Jose Luis Duran 9557eb6f8e LaTeX writer: Use a declaration for tight lists
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.
2014-09-01 05:08:24 +00:00
..
Readers Markdown reader: better handling of paragraph in div. 2014-08-31 12:55:47 -07:00
Writers LaTeX writer: Use a declaration for tight lists 2014-09-01 05:08:24 +00:00
Arbitrary.hs Added Cite to Arbitrary instance. 2014-04-29 18:32:42 -07:00
Helpers.hs Use new flexible metadata type. 2013-06-24 20:29:41 -07:00
Old.hs Dokuwiki writer: Add a test for multiblock table cells. 2014-08-30 15:34:40 -04:00
Shared.hs Added tests for collapseFilePath 2014-08-08 22:31:02 +01:00
Walk.hs HLint: Remove lambdas. 2013-12-19 20:28:53 -05:00