aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2012-01-23Slides: New approach, using hierarchicalize.John MacFarlane1-23/+31
This will work better with the HTML slideshows.
2012-01-23LaTeX beamer: Only add [fragile] to slide if it contains verbatim.John MacFarlane1-1/+8
Closes #385.
2012-01-23Use Slides in LaTeX writer for beamer.John MacFarlane1-29/+17
2011-12-30Fixed layout bug in ConTeXt and LaTeX writers.John MacFarlane1-2/+2
This was a regression introduced by the recent internal links changes.
2011-12-30LaTeX writer: only use hyperdef on section if there's a link to it.John MacFarlane1-27/+34
2011-12-30Add support for internal links to LaTeX writer.John MacFarlane1-27/+50
Based on a patch by B. Scott Michel.
2011-12-30LaTeX writer: Improved detection of book classes.John MacFarlane1-6/+9
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-29Added 'beamer' as an output format.John MacFarlane1-13/+75
Beamer output uses the default LaTeX template, with some customizations via variables. Added `writerBeamer` to `WriterOptions`. Added `--beamer` option to `markdown2pdf`.
2011-12-27Added `--highlight-style` and `--no-highlight` options.John MacFarlane1-2/+3
2011-12-27Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane1-8/+5
2011-12-26Updated highlighting for highlighting-kate 0.4.John MacFarlane1-5/+7
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-23LaTeX writer: Support highlighting for inline code.John MacFarlane1-8/+18
2011-12-23LaTeX writer: Have LHS files set the "listings" variable.John MacFarlane1-1/+1
2011-12-23LaTeX writer: Implemented syntax highlighting for CodeBlocks.John MacFarlane1-69/+82
2011-10-01LaTeX writer: don't escape # or ~ inside href{...}.John MacFarlane1-7/+11
Closes #309.
2011-09-23Added escaping of euro character to LaTeX writer.John MacFarlane1-0/+1
Partially resolves #309.
2011-07-23Use \enquote{..} for latex quotes if template uses csquotes package.John MacFarlane1-16/+31
This provides better support for foreign language quoting. Thanks to Andreas Wagner for the idea.
2011-07-23LaTeX writer: don't set stVerbInNote unnecessarily.John MacFarlane1-3/+4
2011-07-22Deprecated `--xetex` option - it is no longer needed.John MacFarlane1-1/+0
Deprecated `writerXeTeX` and the `--xetex` option. The latex writer now produces a file that can be processed by latex, pdflatex, lualatex, or xelatex, so this option isn't needed. The option is still neded in markdown2pdf, however, which has been modified to take some options that aren't in pandoc.
2011-07-22LaTeX writer: Use \texttt and escapes instead of \verb!..!.John MacFarlane1-23/+14
\verb is simply too fragile; it doesn't work inside command arguments.
2011-07-19LaTeX writer: make verbatim environments flush to avoid extra space.John MacFarlane1-2/+3
The indented `\end{verbatim}` was causing an extra blank line in the output. Closes #277.
2011-07-16Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.John MacFarlane1-1/+5
Also do this when copying image files into EPUBs and ODTs. Closes #263.
2011-07-10Improved LaTeX tables.John MacFarlane1-33/+56
* Use ctable package, which allows footnotes and provides additional options. * Made cell alignments work in multiline tables. * Closes #272.
2011-07-10LaTeX tables: more space btw lines, top-align cells.John MacFarlane1-3/+4
Closes #271.
2011-05-24LaTeX writer: use deVerb on table and picture captions.John MacFarlane1-2/+2
Otherwise LaTeX complains about \verb inside command argument. Thanks to bbanier for reporting the bug.
2011-02-11LaTeX writer: Changed figure defaults to htbp.John MacFarlane1-1/+1
This prevents "too many unprocessed floats." Resolves Issue #285.
2011-01-28Add possibility to use listings package for code blocks andJosef Svenningsson1-8/+39
inline code in the LaTeX writer.
2011-01-26Add support for attributes in inline Code.John MacFarlane1-3/+3
Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
2011-01-26Adjusted writers to use "tex".John MacFarlane1-0/+1
2011-01-26Distinguish latex & context environments; blank line after in writers.John MacFarlane1-1/+1
2011-01-26Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane1-4/+5
The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
2011-01-16Added --chapters option affecting docbook and latex.John MacFarlane1-1/+1
* Added writerChapters to WriterOptions. * Added --chapters command-line option. * --chapters causes top-level headers to be "chapter" instead of "section" in LaTeX and DocBook. * Resolves Issue #225.
2011-01-14LaTeX writer: Escape strings in \href{..}.John MacFarlane1-2/+2
Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
2011-01-14LateX writer: In nonsimple tables, put cells in \parbox.John MacFarlane1-9/+12
Otherwise we can get problems with linebreaks, and cell spacing isn't right. Thanks to Jef Allbright for pointing out the problem.
2010-12-24Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane1-1/+2
2010-12-19LaTeX writer: A bit of code polish.John MacFarlane1-29/+28
2010-12-19LaTeX writer: Modified to use Pretty.John MacFarlane1-34/+30
Improved footnote formatting, removed spurious blank lines.
2010-12-18LaTeX writer: Use \paragraph, \subparagraph for level 4,5 headers.John MacFarlane1-9/+10
2010-12-15Use top-level header at end as bibliography title for natbib and biblatex ↵Nathan Gass1-4/+13
output.
2010-12-15Remove punctuation at start of suffix for natbib and biblatex output.Nathan Gass1-2/+6
This is necessary as the latex citation commands include there own punctuation, which resulted in doubled commas for markdown documents where citeproc output works correctly.
2010-12-15Support multiple bibliography files with natbib and biblatex output.Nathan Gass1-1/+2
2010-12-13Added support to write natbib or biblatex citations in latex output.Nathan Gass1-5/+113
2010-11-27LaTeX writer: Escape curly quotes.John MacFarlane1-0/+4
2010-10-24LaTeX & ConTeXt writers: escape [ and ] as {[} and {]}.John MacFarlane1-0/+2
This avoids unwanted interpretation as optional arguments in some contexts, which caused the brackets to silently disappear!
2010-04-10Give LaTeX images a maximum width using the prelude onlyMax Bolingbroke1-1/+1
2010-03-23Updated copyright notices.John MacFarlane1-2/+2
2010-03-17Revert "LaTeX writer: Add unique labels to figures."fiddlosopher1-11/+4
This reverts commit be344321227a33c9a3f3e2031b88045f5159d1ff. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1896 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-16LaTeX writer: Add unique labels to figures.fiddlosopher1-4/+11
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1895 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-16LaTeX writer: support figures with captions.fiddlosopher1-0/+5
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1892 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-13Use template variables for include-before/after.fiddlosopher1-7/+1
* These options now imply -s; previously they worked also in fragment mode. * Users can now adjust position of include-before and include-after text in the templates. * Default position of include-before moved back (as it originally was) before table of contents. * Resolves Issue #217. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1883 788f1e2b-df1e-0410-8736-df70ead52e1b