aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2012-02-19LaTeX math environment fixes. Closes #423.John MacFarlane1-8/+8
`aligned` is now used instead of the nonexistent `aligned*`. `multline` instead of the nonexistent `multiline`.
2012-02-19PDF: run latex 3 times if --toc specified.John MacFarlane1-1/+1
Closes #424.
2012-02-17Don't escape `<` in `<style>` tags with `--self-contained`.John MacFarlane2-4/+22
Closes #422: highlighting lost using `--self-contained`.
2012-02-14Add TableNormal style to tables.John MacFarlane1-2/+3
Needs testing with Word.
2012-02-11Fix _rels/.rels if it has been screwed up by Word.John MacFarlane1-1/+10
Closes #414. Previously, if you edited the reference.docx with Word, then created a new docx using the edited reference.docx, Word would complain about the file being corrupt. The problem seems to be that Word changes _rels/.rels, changing the Type of the Relationship to docProps/core.xml from "http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties" to "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties". As far as I can see, this is a bug in Word, since the latter is not valid. (See http://idippedut.dk/post/2010/04/22/Correct-according-to-spec-or-implementation.aspx.) This change simply does a global replace on _rels/.rels that reverts the change Word makes. And now producing docx files with Word-modified reference.docx seems to work.
2012-02-10LaTeX reader: Add ", " to suffix...John MacFarlane1-9/+13
if it doesn't start w space or punctuation. Otherwise we get no space between the year and the suffix in author-date styles.
2012-02-09Made LaTeX parser more robust.John MacFarlane1-22/+26
+ Skip options after block commands. + Correctly handle {\\} in braced. + Added a needed 'try'.
2012-02-09Better handling of raw latex environments in markdown.John MacFarlane1-9/+1
Now \begin{equation} a_1 \end{equation} turns into a raw latex block as expected.
2012-02-08Improvements to markdown attributes syntax (on code blocks).John MacFarlane1-4/+5
(1) Attributes can contain line breaks. (2) Values in key-value attributes can be surrounded by either double or single quotes, or left unquoted if they contain no spaces.
2012-02-08Put LaTeX verse environments in blockquotes.John MacFarlane1-0/+1
2012-02-08Don't wrap headers in markdown or rst.John MacFarlane2-2/+3
2012-02-08More efficient implementation of nowrap in Pretty.John MacFarlane1-4/+4
2012-02-07Limit nesting of strong/emph.John MacFarlane2-2/+16
This avoids exponential lookahead in parasitic cases, like a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**. Added stateMaxNestingLevel to ParserState. We set this to 6, so you can still have Emph inside Emph, just not indefinitely.
2012-02-07PDF: Only run latex twice if \tableofcontents is present.John MacFarlane1-1/+4
Note: This will pick up on \tableofcontents even if it's in a verbatim environment. But the worst that can happen is that the document takes a bit longer to build.
2012-02-07Handle escaped $ in latex math. Closes #186.John MacFarlane1-2/+8
2012-02-06LaTeX writer: prevent adjacent hyphens from forming ligatures.John MacFarlane1-20/+32
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-06LaTeX reader: use raw latex as fallback for Cites.John MacFarlane1-53/+57
This way you can still get the raw latex back, even if you don't process with citeproc. Previously, cites were not visible at all unless you specified --biblio on the command line and converted them using citeproc, or used --natbib or --biblatex.
2012-02-06Text.Pandoc.PDF: Simplified tex2pdf.John MacFarlane1-26/+16
We no longer try to parse the log file to determine whether latex needs to be rerun. Instead, we run latex twice -- which should be enough for table of contents and hyperrefs. Closes #402.
2012-02-05Fixed bug in fromEntities: require semicolon to process as entity.John MacFarlane1-1/+1
2012-02-05Parsing: Make characterReference fail if entity not found.John MacFarlane1-2/+2
2012-02-05Removed module Text.Pandoc.CharacterReferences.John MacFarlane4-79/+16
Moved characterReference parser to Text.Pandoc.Parsing. decodeCharacterReferences is now replaced by fromEntities in Text.Pandoc.XML.
2012-02-05Removed outdated comment in LaTeX reader.John MacFarlane1-2/+0
2012-02-05Fixed Pretty so it uses Data.Monoid's <> w/ GHC 7.4.John MacFarlane1-2/+13
Note: changed fixity to infixr 6.
2012-02-05Text.Pandoc.XML: Export fromEntities.John MacFarlane1-1/+15
Remove old 'deEntities' from pandoc.hs.
2012-02-05Remove dependency on dlist.John MacFarlane1-6/+7
Use sequence in Pretty instead.
2012-02-05Normalize date in EPUB metadata.John MacFarlane1-1/+1
2012-02-05Support \frametitle, \framesubtitle.John MacFarlane1-0/+5
2012-02-05LaTeX reader: Fixed bug in authors.John MacFarlane1-1/+3
2012-02-05LaTeX reader: Support \TeX, \LaTeX.John MacFarlane1-0/+2
2012-02-05LaTeX reader: Skip everything after \end{document}.John MacFarlane1-1/+1
2012-02-04Added \vspace and \hspace to latex ignored block commands.John MacFarlane1-0/+1
2012-02-04Improvements to LaTeX reader:John MacFarlane1-26/+63
* Handle \ps * Ignore ignorable commands in a uniform way. * Handle \P * handleIncludes skips \verb commands.
2012-02-04Handle \address and \signature in letter environment. Closes #393.John MacFarlane1-2/+19
2012-02-04LaTeX reader: support macron accents \=o.John MacFarlane1-0/+14
2012-02-04LaTeX reader: support \. dot accent.John MacFarlane1-0/+13
2012-02-04handleIncludes: read file as UTF8, allow multiples separated by commas.John MacFarlane1-8/+13
e.g. \usepackage{a,b}
2012-02-04Don't print warnings for not-found packages, includes.John MacFarlane1-4/+1
2012-02-04Revert "LaTeX reader: Use kpsewhich to find paths for handleIncludes."John MacFarlane1-11/+1
This reverts commit 1f90c6d7e0800621367ff72601a4f66159688ca9.
2012-02-04LaTeX reader: Use kpsewhich to find paths for handleIncludes.John MacFarlane1-1/+11
Fall back without an error if kpsewhich is not available.
2012-02-04Have handleIncludes look for local .sty files from \usepackage.John MacFarlane1-3/+7
2012-02-04LaTeX reader: small bug fixes.John MacFarlane1-8/+10
2012-02-04Minor formatting changeJohn MacFarlane1-1/+2
2012-02-04LaTeX reader: Factored out rawEnvJohn MacFarlane1-7/+11
2012-02-04Small improvements in latex table parser.John MacFarlane1-3/+2
2012-02-04Complete rewrite of LaTeX reader.John MacFarlane4-986/+780
* The new reader is more robust, accurate, and extensible. It is still quite incomplete, but it should be easier now to add features. * Text.Pandoc.Parsing: Added withRaw combinator. * Markdown reader: do escapedChar before raw latex inline. Otherwise we capture commands like \{. * Fixed latex citation tests for new citeproc. * Handle \include{} commands in latex. This is done in pandoc.hs, not the (pure) latex reader. But the reader exports the needed function, handleIncludes. * Moved err and warn from pandoc.hs to Shared. * Fixed tests - raw tex should sometimes have trailing space. * Updated lhs-test for highlighting-kate changes.
2012-01-31Don't let autolinks create reference links.John MacFarlane1-1/+1
Previously we got bad results with -t markdown --reference-links if the input contained autolinks like <http://yahoo.com>.
2012-01-31Don't include mathml javascript for html5 output.John MacFarlane1-1/+2
mathml is supposed to be supported in HTML5.
2012-01-31Support `--mathml` flag in docbook.John MacFarlane1-2/+28
2012-01-30Added `--epub-embed-font` option.John MacFarlane2-5/+25
* This can be repeated for multiple fonts. * Added parameter for fonts to embed to writeEPUB. * Added ttf, otf to Mime types in Text.Pandoc.MIME.
2012-01-30Added default.beamer template (separate from default.latex).John MacFarlane1-1/+0