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
John MacFarlane
513af8dd1b
LaTeX writer: escape # in href URLs. Closes #359 .
2012-01-27 13:44:17 -08:00
John MacFarlane
4321e27bfd
Removed some unused code.
2012-01-27 00:38:47 -08:00
John MacFarlane
60bf741d68
Added --slide-level option to override default.
...
This allows users to select a slide level below the first
header level with content.
Note that content under sections above the slide level will not appear
in slides (either in beamer or in HTML slide shows).
This is primarily useful for creating documents that can be made
into both slides and handouts (which contain additional content
outside the slides).
2012-01-25 17:51:52 -08:00
John MacFarlane
6fde073eb5
LaTeX/beamer: --chapters causes level 1 to be \part{..}.
2012-01-25 10:47:22 -08:00
John MacFarlane
0fd0dc2344
Slides: New approach, using hierarchicalize.
...
This will work better with the HTML slideshows.
2012-01-23 23:02:18 -08:00
John MacFarlane
05cf164edf
LaTeX beamer: Only add [fragile] to slide if it contains verbatim.
...
Closes #385 .
2012-01-23 21:03:10 -08:00
John MacFarlane
97af576729
Use Slides in LaTeX writer for beamer.
2012-01-23 13:25:55 -08:00
John MacFarlane
3e526918f8
Fixed layout bug in ConTeXt and LaTeX writers.
...
This was a regression introduced by the recent internal
links changes.
2011-12-30 16:28:44 -08:00
John MacFarlane
506a5b07d1
LaTeX writer: only use hyperdef on section if there's a link to it.
2011-12-30 16:14:35 -08:00
John MacFarlane
e3dfb2646d
Add support for internal links to LaTeX writer.
...
Based on a patch by B. Scott Michel.
2011-12-30 14:30:45 -08:00
John MacFarlane
b76ba44c52
LaTeX writer: Improved detection of book classes.
...
We now check the `documentclass` variable, and if that is
not set, we look through the template itself. Also, we
have added the KOMA classes scrreprt and scrbook.
You can now make a book using
markdown2pdf -V documentclass:book
2011-12-30 09:57:00 -08:00
John MacFarlane
ea39a607ed
Added 'beamer' as an output format.
...
Beamer output uses the default LaTeX template, with some
customizations via variables.
Added `writerBeamer` to `WriterOptions`.
Added `--beamer` option to `markdown2pdf`.
2011-12-29 13:26:04 -08:00
John MacFarlane
16629bf1ce
Added --highlight-style
and --no-highlight
options.
2011-12-27 23:46:47 -08:00
John MacFarlane
a579e2c892
Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.
2011-12-27 15:45:34 -08:00
John MacFarlane
45958de0e1
Updated highlighting for highlighting-kate 0.4.
...
Text.Pandoc.Highlighting now exports just one new function,
'highlight', and reexports all the other functions from
highlighting-kate that are used in the writers. This should
make it easy to switch highlighting engines if that is ever
desired.
2011-12-26 22:49:50 -08:00
John MacFarlane
cc18291baf
LaTeX writer: Support highlighting for inline code.
2011-12-23 18:37:52 -08:00
John MacFarlane
77815c63db
LaTeX writer: Have LHS files set the "listings" variable.
2011-12-23 18:26:03 -08:00
John MacFarlane
3fa98607db
LaTeX writer: Implemented syntax highlighting for CodeBlocks.
2011-12-23 18:05:14 -08:00
John MacFarlane
44bcb5da51
LaTeX writer: don't escape # or ~ inside href{...}.
...
Closes #309 .
2011-10-01 22:21:39 -07:00
John MacFarlane
f8df0f50fd
Added escaping of euro character to LaTeX writer.
...
Partially resolves #309 .
2011-09-23 14:58:16 -07:00