John MacFarlane
7d7c1f2f8e
Fixed footnote numbers in LaTeX/PDF tables.
...
This fixes a bug wherein notes were numbered incorrectly
in tables. Closes #827 .
Now that we are using longtable, we can just use regular
`\footnote` commands for notes, which simplifies the code
considerably.
2013-04-15 09:10:29 -07:00
John MacFarlane
6217623d0a
Added syntax for "pauses" in beamer or reaveljs slide shows.
...
This gives
. . .
a pause.
2013-03-24 21:03:04 -07:00
John MacFarlane
3b63cb0903
Hide Text.Pandoc.Highlighting.
...
* Moved code for translating listings language names to
highlighting-kate names and back from LaTeX reader to Highlighting.
* Text.Pandoc.Highlighting no longer exposed (API change)
* Text.Pandoc.Highlighting exports toListingsLang, fromListingsLang
2013-03-05 22:09:42 -08:00
John MacFarlane
0bbee1bcf6
LaTeX writer: Support line numbering with --listings
.
...
If "numberLines" class is present, we add "numbers=left";
if "startFrom" is present, we add "firstnumber=".
Partially addresses #763 .
2013-03-04 09:31:31 -08:00
John MacFarlane
8dd00b93e2
LaTeX writer: Omit lists with no items.
...
Otherwise we get LaTeX errors.
2013-02-16 17:47:45 -08:00
John MacFarlane
11f7407445
LaTeX writer: Include unnumbered sections in TOC.
2013-02-15 19:23:51 -08:00
John MacFarlane
0d1fa0a763
Implemented "unnumbered" headers in LaTeX writer.
...
Starred variants of section commands used when header
has "unnumbered" class.
2013-02-14 19:50:11 -08:00
John MacFarlane
5330e63421
Shared: Changed type of Element.
...
Sec now includes a field for Attr rather than just String
(the identifier).
Note, this is an API change.
2013-02-12 20:13:23 -08:00
John MacFarlane
229c22582f
LaTeX writer: Avoid extra space at start/end of table cell.
...
Thanks to Nick Bart for the suggestion of using @{}.
2013-01-28 10:21:18 -08:00
John MacFarlane
4aea26e8e1
Convert highlighting-kate language to listings language
...
if --listings is used.
Closes #704 .
2013-01-17 19:47:03 -08:00
John MacFarlane
fa71969e81
LaTeX writer: Prevent paragraphs containing only linebreaks or spaces.
2013-01-15 23:02:08 -08:00
John MacFarlane
7bc37e4414
Use 'fig:' instead of '\SOH' in title to indicate figure.
...
Revises 1a4b47e933
2013-01-15 08:46:09 -08:00
John MacFarlane
1a4b47e933
Implemented Ext_implicit_figures.
...
* In markdown reader, add a '\1' character to the beginning
of the title of an image that is alone in its paragraph,
if implicit_figures extension is selected.
* In writers, check for Para [Image alt (src,'\1':tit)] and treat
it as a figure if possible.
* Updated tests.
This is a bit of a hack, but it allows us to make implicit_figures
an extension of the markdown reader, rather than the writers.
2013-01-14 20:53:08 -08:00
John MacFarlane
70e308f2f9
Escape |
as \vert
in LaTeX math.
...
This avoids a clash with highlighting-kate's macros, which
redefine | as a short verbatim delimiter. Thanks to
Björn Peemöller for raising this issue.
2013-01-12 10:21:19 -08:00
John MacFarlane
f07ce6fead
Changed hspace in last commit to 0.333em.
...
This seems to match the spacing of ~ exactly.
2013-01-11 20:44:39 -08:00
John MacFarlane
c29a1942d0
LaTeX writer: Use \hspace*
for nonbreaking space after line break.
...
Since `~` spaces after a line break are just ignored.
Closes #687 .
2013-01-11 20:40:00 -08:00
John MacFarlane
0998f774ce
Fixed regression in example lists.
...
This was associated with e1be934dc2
.
2013-01-09 15:54:39 -08:00
John MacFarlane
d599c4cdab
Added Attr field to Header.
...
Previously header ids were autogenerated by the writers.
Now they are generated (unless supplied explicitly) in the
markdown parser, if the `header_identifiers` extension is
selected.
In addition, the textile reader now supports id attributes on
headers.
2013-01-09 09:30:05 -08:00
John MacFarlane
1a9193c30d
Implemented tight lists in context, latex writers.
2013-01-07 20:12:13 -08:00
John MacFarlane
8c48bd8feb
Don't put the text of an autolink in Code font.
2013-01-06 20:51:51 -08:00
John MacFarlane
dd6dab45fb
LaTeX tables: Use minipage rather than parbox for block containers.
...
This allows verbatim code to be included in grid tables.
Closes #663 .
2013-01-05 19:12:41 -08:00
John MacFarlane
c45ae571cc
Changed --toc-level to --toc-depth.
2013-01-05 12:03:05 -08:00
John MacFarlane
123b94ad81
Implemented --toc-level in LaTeX writer.
2013-01-05 11:49:42 -08:00
John MacFarlane
a2cb53640d
LaTeX writer: Don't use [fragile] unnecessarily.
...
We were using [fragile] on slides even if they only contained
code that was rendered using `\texttt`. Now `[fragile]` is
only used for slides containing inline code if that code
is rendered using listings. Closes #649 .
2012-11-04 11:09:42 -08:00
John MacFarlane
e1be934dc2
LaTeX writer: Don't rely on the enumerate package.
...
Instead, use standard LaTeX commands to change numbering style.
2012-09-16 22:24:55 -07:00
John MacFarlane
1e2b20f8bc
LaTeX writer: Properly escape strings inside \url{}.
...
Closes #576 .
2012-09-16 11:20:53 -07:00
John MacFarlane
1461693159
LaTeX writer: Don't escape _ in hyperref identifiers.
2012-09-15 20:50:43 -07:00
John MacFarlane
d9e34ce34d
LaTeX writer: don't escape _ in url.
2012-09-15 20:43:36 -07:00
John MacFarlane
fc4ae15337
LaTeX writer: Don't use \endhead with longtable.
...
It causes the heading to be a different size form the body,
sometimes.
2012-09-15 20:40:48 -07:00
John MacFarlane
502242b9a0
LaTeX writer: Use longtable instead of ctable.
2012-09-15 17:55:01 -04:00
John MacFarlane
dfa4b76630
Changes to literate haskell options.
...
- Removed writerLiterateHaskell from WriterOptions.
- Removed readerLiterateHaskell from ReaderOptions.
- Added Ext_literate_haskell to Extensions. Test for this
instead of the above.
- Removed failUnlessLHS from Shared.
Note: At this point, +lhs and .lhs extension no longer has any effect.
Need to fix.
2012-08-08 23:18:19 -07:00
John MacFarlane
3f913c0cc5
Don't include empty captions in figures.
...
Closes #581 .
2012-08-04 11:34:01 -07:00
John MacFarlane
00dc1e715e
Moved WriterOptions and associated types Shared -> Options.
2012-07-26 22:59:56 -07:00
John MacFarlane
527be1ddf2
Don't generate empty H1 after hrule slide breaks.
...
We now use a slide-level header with contents [Str "\0"] to mark
an hrule break. This avoids creation of an empty H1 in these
contexts.
Closes #484 .
2012-06-25 14:52:09 -07:00
John MacFarlane
34fac208d2
Fixed --incremental
behavior for Beamer.
...
When `--incremental` is used, lists inside block quotes should
appear all at once (as in HTML).
2012-06-03 09:14:09 -07:00
John MacFarlane
e14712dabd
LaTeX writer: Ensure newline after Verbatim at end of footnote.
...
This fixes a regression. Also added a test for this.
2012-06-01 10:50:22 -07:00
John MacFarlane
4e35c67c23
LaTeX writer: More consistent interblock spacing.
2012-05-14 07:04:47 -07:00
John MacFarlane
428595469e
LaTeX reader: ensure we don't have extra blank lines at ends of cells.
...
This can cause LaTeX errors, as they are interpreted as new paragraphs.
2012-05-13 14:59:02 -07:00
John MacFarlane
5f889b9396
Added writerTeXLigatures to WriterOptions, --no-tex-ligatures
option.
...
This is useful for those who want to use advanced OpenType features
with xelatex/lualatex.
2012-05-11 23:00:46 -07:00
John MacFarlane
9961dc274a
Improved spacing around LaTeX block environments.
...
verbatim, itemize, description, enumerate.
2012-04-30 09:26:15 -07:00
John MacFarlane
8201257b5c
LaTeX writer: Fixed spacing in quote environments.
...
Closes #502 . Previously you'd get:
~~~
hi
\begin{quote}
hi
\end{quote}
hi
~~~
Now we get:
~~~
hi
\begin{quote}
hi
\end{quote}
hi
~~~
2012-04-30 07:46:38 -07:00
John MacFarlane
869ff43442
LaTeX writer: Use fixltx2e package to provide '\textsubscript'.
2012-04-21 09:59:36 -07:00
John MacFarlane
9989170df2
LaTeX writer: Use \hyperref[ident]{text}
for internal links.
...
Previously we used `\href{\#ident}{text}`, which didn't work on
all systems. Thanks to Dirk Laurie.
2012-04-21 09:41:05 -07:00
John MacFarlane
f25dcacedf
LaTeX writer: don't use eurosym package unless document has a €.
2012-04-03 18:49:05 -07:00
John MacFarlane
7bc4dc37b2
Added PDF metadata (title,author) in LaTeX standalone + PDF output.
...
Closes #459 .
2012-03-25 12:10:43 -07:00
John MacFarlane
60fb915351
Use {} around ctable caption. Closes #445 .
2012-03-12 11:06:49 -07:00
John MacFarlane
30cafd913a
Fixed ployglossia support in LaTeX template for multiple langs.
...
\setmainlanguage will now just use the last of a comma-separated
list of languages.
2012-03-05 09:07:14 -08:00
John MacFarlane
940b603548
Use \textasciitilde for ~ in LaTeX writer.
2012-03-03 06:33:24 -08:00
John MacFarlane
53e6bf36a9
Fixed bug in LaTeX string escaper (with ~).
2012-03-02 07:49:55 -08:00
John MacFarlane
66ac842456
LaTeX writer: prevent adjacent hyphens from forming ligatures.
...
This is important primarily for things like `--option`.
Em and En dashes will produce '---' and '--' in LaTeX, but
hyphens should not otherwise combine into dashes.
2012-02-06 13:48:59 -08:00