summaryrefslogtreecommitdiff
path: root/tests/writer.latex
Commit message (Collapse)AuthorAge
...
* LaTeX writer: New template.John MacFarlane2011-07-23
|
* Updated tests for new latex templates.John MacFarlane2011-07-22
|
* LaTeX writer: Use \texttt and escapes instead of \verb!..!.John MacFarlane2011-07-22
| | | | | \verb is simply too fragile; it doesn't work inside command arguments.
* LaTeX reader & writer: Use \and to separate authors.John MacFarlane2011-07-21
| | | | Closes #279.
* LaTeX writer: make verbatim environments flush to avoid extra space.John MacFarlane2011-07-19
| | | | | | | The indented `\end{verbatim}` was causing an extra blank line in the output. Closes #277.
* LaTeX writer: Changed figure defaults to htbp.John MacFarlane2011-02-11
| | | | | This prevents "too many unprocessed floats." Resolves Issue #285.
* Distinguish latex & context environments; blank line after in writers.John MacFarlane2011-01-26
|
* Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane2011-01-26
| | | | | | | 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.
* latex template: move special treatment of \sout.John MacFarlane2011-01-21
| | | | | | It needs to be inside the if(strikeout) condition, after the ulem package is imported; otherwise we try to renewcommand{\sout} when \sout isn't yet defined.
* Fixed problem with strikout in LaTeX headers with hyperref.John MacFarlane2011-01-19
| | | | | Added a command to the latex template to disable \sout inside pdf strings. Thanks to Joost Kremers for the fix.
* LaTeX writer: Escape strings in \href{..}.John MacFarlane2011-01-14
| | | | | Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
* LaTeX writer: Modified to use Pretty.John MacFarlane2010-12-19
| | | | Improved footnote formatting, removed spurious blank lines.
* LaTeX writer: Use \paragraph, \subparagraph for level 4,5 headers.John MacFarlane2010-12-18
|
* Disabled colored boxes around cites in latex template.Nathan Gass2010-12-13
|
* LaTeX & ConTeXt writers: escape [ and ] as {[} and {]}.John MacFarlane2010-10-24
| | | | | | This avoids unwanted interpretation as optional arguments in some contexts, which caused the brackets to silently disappear!
* Added amssymb to default latex template.John MacFarlane2010-07-20
| | | | Resolves github Issue 1.
* Made spacing at end of output more consistent.John MacFarlane2010-07-20
| | | | | | | | | | | | Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
* Give LaTeX images a maximum width using the prelude onlyMax Bolingbroke2010-04-10
|
* Revert "LaTeX writer: Add unique labels to figures."fiddlosopher2010-03-17
| | | | | | This reverts commit be344321227a33c9a3f3e2031b88045f5159d1ff. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1896 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: Add unique labels to figures.fiddlosopher2010-03-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1895 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: support figures with captions.fiddlosopher2010-03-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1892 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX template: redefine labelwidth when using enumerate package.fiddlosopher2010-03-01
| | | | | | | Otherwise the list labels (numbers) often extend past the left margin, which looks bad. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1858 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX template: always include hyperref package.fiddlosopher2010-01-05
| | | | | | | | | It is used not just for links but for toc, section heading bookmarks, footnotes, etc. Also added unicode=true on hyperref options. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1795 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: Only require listings package if needed.fiddlosopher2009-12-31
| | | | | | That is, if literate Haskell code is used. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1759 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated latex writer tests to conform to recent changes.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1740 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed spacing in latex, context templates.fiddlosopher2009-12-31
| | | | | | Minor fixes in latex, context tests. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1707 788f1e2b-df1e-0410-8736-df70ead52e1b
* Add legacy-header to LaTeX template.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1680 788f1e2b-df1e-0410-8736-df70ead52e1b
* Revised LaTeX writer to use templates.fiddlosopher2009-12-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1675 788f1e2b-df1e-0410-8736-df70ead52e1b
* Improved syntax for markdown definition lists.fiddlosopher2009-12-07
| | | | | | | | | | | | | | | | | | | Definition lists are now more compatible with PHP Markdown Extra. Resolves Issue #24. + You can have multiple definitions for a term (but still not multiple terms). + Multi-block definitions no longer need a column before each block (indeed, this will now cause multiple definitions). + The marker no longer needs to be flush with the left margin, but can be indented at or two spaces. Also, ~ as well as : can be used as the marker (this suggestion due to David Wheeler.) + There can now be a blank line between the term and the definitions. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1656 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added new listings include to LaTeX writer test.fiddlosopher2008-12-17
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1514 788f1e2b-df1e-0410-8736-df70ead52e1b
* Support for display math; changed ASCIIMathML -> LaTeXMathML:fiddlosopher2008-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | Resolves Issue #47. + Added a DisplayMath/InlineMath selector to Math inlines. + Markdown parser yields DisplayMath for $$...$$. + LaTeX parser yields DisplayMath when appropriate. Removed mathBlock parsers, since the same effect is achieved by the math inline parsers, now that they handle display math. + Writers handle DisplayMath as appropriate for the format. + Changed -m option to use LaTeXMathML rather than ASCIIMathML. LaTeXMathML is closer to LaTeX in its display of math, and supports many non-math LaTeX environments. + Modified HTML writer to print raw TeX when LaTeXMathML is being used instead of suppressing it. + Removed ASCIIMathML files from data/ and added LaTeXMathML. + Replaced ASCIIMathML with LaTeXMathML in source files. + Modified README and pandoc man page source. + Modified web page. + Added --latexmathml option (kept --asciimathml as a synonym for backwards compatibility) + Modified tests accordingly; added new tests for display math. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1409 788f1e2b-df1e-0410-8736-df70ead52e1b
* Rewrote test suite so it doesn't depend on perl or unix tools.fiddlosopher2008-08-09
| | | | | | | | | | | | | | | | | | + Replaced old runtests.pl with a Haskell script RunTests.hs. + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'. + Added test hook to Setup.hs, so tests may be run from cabal. + Changed Makefile's 'test' target to run tests via cabal. + Removed old generate.sh. + Since we no longer have 'sed' to filter out raw HTML sections from the docbook writer test, or raw LaTeX sections from the context writer test, we now just include these sections. They can be taken out if it is necessary to process the files. + Updated latex and context writer tests to remove extra spaces after '\\item' + Added a markdown table reader test. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1385 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in Markdown parser: regular $s triggering math mode.fiddlosopher2008-07-15
| | | | | | | | | | | | | For example: "shoes ($20) and socks ($5)." The fix consists in two new restrictions: + the $ that ends a math span may not be directly followed by a digit. + no blank lines may be included within a math span. Thanks to Joseph Reagle for noticing the bug. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1326 788f1e2b-df1e-0410-8736-df70ead52e1b
* In smart mode, use nonbreaking spaces after abbreviations in markdown parser.fiddlosopher2008-07-11
| | | | | | | | Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does not produce a sentence-separating space. Resolves Issue #75. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1298 788f1e2b-df1e-0410-8736-df70ead52e1b
* Treat '\ ' in (extended) markdown as nonbreaking space.fiddlosopher2008-07-11
| | | | | | | Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1297 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use \textsubscr instead of \textsubscript for LaTeX subscript macro.fiddlosopher2008-06-08
| | | | | | | | \textsubscript conflicts with a definition in the memoir class. Resolves Issue #65. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1280 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown smart typography: Em dashes no longer eat surrounding whitespace.fiddlosopher2008-06-08
| | | | | | | Resolves Issue #69. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1279 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added amsmath package to default LaTeX header. Resolves Issue #48.fiddlosopher2008-03-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1249 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed support for "box-style" block quotes in markdown.fiddlosopher2007-12-08
| | | | | | | | | This adds unneeded complexity and makes pandoc diverge further than necessary from other markdown extensions. Brought documentation, tests, and debian/changelog up to date. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1141 788f1e2b-df1e-0410-8736-df70ead52e1b
* Adjusted test suite for footnote changes in LaTeX and ConTeXt writers.fiddlosopher2007-12-04
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1138 788f1e2b-df1e-0410-8736-df70ead52e1b
* Adjusted formatting of LaTeX and ConTeXt footnotes:fiddlosopher2007-11-17
| | | | | | | | | | | - in ConTeXt, % is not needed at end of line before note, since space is gobbled. - beginning of footnote indented four spaces. - this required an additional parameter in wrappedTeX and wrapTeXIfNeeded, in Text.Pandoc.Shared. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1080 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated tests for changes in LaTeX and ConTeXt writers.fiddlosopher2007-11-15
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1073 788f1e2b-df1e-0410-8736-df70ead52e1b
* Cleaned up LaTeX footnotes:fiddlosopher2007-11-01
| | | | | | | | | | | + Footnotes start on a separate line. A comment % is used at the end of the previous line to prevent unwanted spaces. This makes footnotes easier to see, delete, and move around. + The final } now only appears on a separate line if it needs to (i.e. if the note ends with a Verbatim environment). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1061 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed extra blank lines at end of LaTeX writer tests.fiddlosopher2007-08-30
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@966 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified latex writer tests for new latex writer using prettyprinter.fiddlosopher2007-08-30
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@963 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in LaTeX writer: autolinks would not cause fiddlosopher2007-08-29
| | | | | | | | | '\usepackage{url}' to be put in the document header. Also, changes to state in enumerated list items would be overwritten. git-svn-id: https://pandoc.googlecode.com/svn/trunk@947 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in LaTeX writer. When a footnote ends with a Verbatimfiddlosopher2007-08-25
| | | | | | | | | environment, the close } of the footnote needs to occur on the same line or an error occurs. Fixed by adding a newline before the close } in every footnote. git-svn-id: https://pandoc.googlecode.com/svn/trunk@897 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added new rule for enhanced markdown ordered lists: if the list markerfiddlosopher2007-08-23
| | | | | | | | | | | | | | | | | is a capital letter followed by a period (including a single-letter capital roman numeral), then it must be followed by at least two spaces. The point of this is to avoid accidentally treating people's initials as list markers: a paragraph may begin: B. Russell was an English philosopher. and this shouldn't be treated as a list. Modified Markdown reader and README documentation. Added a test case. git-svn-id: https://pandoc.googlecode.com/svn/trunk@880 788f1e2b-df1e-0410-8736-df70ead52e1b
* + Fixed bug in markdown ordered list parsing. The problem wasfiddlosopher2007-08-18
| | | | | | | | | | | | that anyOrderedListStart did not check for a space following the ordered list marker. So, 'A.B. 2007' would be parsed as a list item, then fail because of the lack of space after 'A.' (required by orderedListStart). Resolves Issue #22. + Fixed a similar problem in RST reader. + Added regression test. git-svn-id: https://pandoc.googlecode.com/svn/trunk@861 788f1e2b-df1e-0410-8736-df70ead52e1b
* Major change in the way ordered lists are handled:fiddlosopher2007-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + The changes are documented in README, under Lists. + The OrderedList block element now stores information about list number style, list number delimiter, and starting number. + The readers parse this information, when possible. + The writers use this information to style ordered lists. + Test suites have been changed accordingly. Motivation: It's often useful to start lists with numbers other than 1, and to have control over the style of the list. Added to Text.Pandoc.Shared: + camelCaseToHyphenated + toRomanNumeral + anyOrderedListMarker + orderedListMarker + orderedListMarkers Added to Text.Pandoc.ParserCombinators: + charsInBalanced' + withHorizDisplacement + romanNumeral RST writer: + Force blank line before lists, so that sublists will be handled correctly. LaTeX reader: + Fixed bug in parsing of footnotes containing multiple paragraphs, introduced by use of charsInBalanced. Fix: use charsInBalanced' instead. LaTeX header: + use mathletters option in ucs package, so that basic unicode Greek letters will work properly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@834 788f1e2b-df1e-0410-8736-df70ead52e1b