John MacFarlane
823c0bcda9
Indicate when a multiblock footnote is omitted.
2011-11-17 23:13:29 -08:00
John MacFarlane
fcfbbd2caa
Supported definition lists.
2011-11-17 22:35:39 -08:00
John MacFarlane
b7cbd42d07
Use attributes for author/date.
2011-11-17 00:52:45 -08:00
John MacFarlane
fc1c17b174
Added an asciidoc writer (partial).
...
Still TODO:
- documentation in README
- add default.asciidoc to templates/
- lists
- tables
- proper escaping
- footnotes with blank lines - print separately at end?
currently they are just ignored.
- fix header (date gives weird result on pandoc README)
2011-11-16 19:14:55 -08:00
John MacFarlane
8ed33f6662
Add date to EPUB titlepage and metadata.
...
Closes #323 . Thanks to Ralf Stephan for the patch (slightly modified).
2011-11-12 12:25:43 -08:00
John MacFarlane
4f95aeb6d2
HTML writer: Use <section>
for footnotes if html5.
2011-11-07 12:23:05 -08:00
John MacFarlane
40cb070fe6
Don't generate superfluous file cover-image.jpg
.
...
Closes #319 .
2011-10-27 12:53:46 -07:00
John MacFarlane
1a1f6cb08b
Added TOC identifier in EPUB page template.
...
Closes #329 .
2011-10-27 12:00:34 -07:00
John MacFarlane
1b81981c5f
HTML reader now recognizes DocBook block and inline tags.
...
It was always possible to include raw DocBook tags in a markdown
document, but now pandoc will be able to distinguish block from
inline tags and behave accordingly. Thus, for example,
<sidebar>
hello
</sidebar>
will not be wrapped in `<para>` tags.
2011-10-25 12:44:20 -07:00
John MacFarlane
c335b6cbd8
HTML slides: only add id to div/section if --section-divs selected.
2011-10-02 23:19:03 -07:00
John MacFarlane
072df3f5dd
Simplified slide creation in HTML writer.
...
A horizontal rule now gets transformed into an empty H1 header
before 'hierarchicalize' is called.
If the document that does not begin with an H1 header, an
empty one is provided.
This avoids the need for kludgy raw HTML.
Also, the 'titleslide' class is added to any section containing
just a title:
----
----
2011-10-02 11:49:56 -07:00
John MacFarlane
9b37c9cc35
Added dzslides output option.
...
* Added DZSlides to HTMLSlideVariant.
* Added support for dzslides in HTML writer.
* Added dzslides template.
2011-10-01 23:02:24 -07: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
John MacFarlane
e3c560ac3d
RST writer: Fixed bug involving empty table cells.
...
isSimple was being calculated in a way that assumed there
were no non-empty cells.
Resolves #299 . Thanks to rmunoz for reporting the bug.
2011-09-05 19:13:30 -07:00
John MacFarlane
24095e0615
ConTeXt writer: Changed 'descr' to 'description', fixed alignment.
2011-08-20 15:30:57 -07:00
John MacFarlane
fa03bf52cb
ConTeXt: Use buffering for footnotes containing code blocks.
...
Closes #291 .
2011-08-18 19:23:34 -07:00
John MacFarlane
f9ae93d854
ConTeXt: Escape # in link URLs.
...
Partially addresses #291 .
2011-08-18 12:16:39 -07:00
John MacFarlane
57821e1cdf
Added s5-url and slidy-url variables, instead of hard-coding.
...
If you want to put your slidy files in the slidy subdirectory,
for example, you can do
pandoc -t slidy -V slidy-url=slidy -s
2011-07-28 17:35:26 -07:00
John MacFarlane
a3327835be
Docbook writer: Use programlisting for code blocks.
...
Instead of screen, as before.
2011-07-24 23:36:30 -07:00
John MacFarlane
07c7cd1945
Docbook writer: Use CALS tables (instead of XHTML tables).
...
Reason: Some older docbook software does not work with XHTML
tables.
Closes #77 .
2011-07-24 23:24:03 -07:00
John MacFarlane
3162adbd9b
HTML writer: Removed English title on footnote back links.
...
This is incongruous in non-English documents.
2011-07-24 16:24:27 -07:00
John MacFarlane
c872d9f7ef
Insert CDATA around inline js/css in HTML, slidy.
2011-07-24 08:23:38 -07:00
John MacFarlane
81c403d2d1
Use \enquote{..} for latex quotes if template uses csquotes package.
...
This provides better support for foreign language quoting.
Thanks to Andreas Wagner for the idea.
2011-07-23 13:12:11 -07:00
John MacFarlane
26418b7d14
HTML writer/templates: Made TOC more customizable.
...
The container for the TOC is now in the template, so users
can insert a header or other styling. Thanks to Bruce D'Arcus
for the suggestion.
2011-07-23 12:04:31 -07:00
John MacFarlane
48368061a1
LaTeX writer: don't set stVerbInNote unnecessarily.
2011-07-23 08:36:41 -07:00
John MacFarlane
18306c74fb
Deprecated --xetex
option - it is no longer needed.
...
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-22 13:11:46 -07:00
John MacFarlane
0cf2a631e8
LaTeX writer: Use \texttt and escapes instead of \verb!..!.
...
\verb is simply too fragile; it doesn't work inside command
arguments.
2011-07-22 12:19:34 -07:00
John MacFarlane
71736869bb
ConTeXt writer: Made \start/stoptyping flush with margin.
...
This prevents extra blank lines.
2011-07-19 16:29:33 -07:00
John MacFarlane
8fd3d0bdbb
LaTeX writer: make verbatim environments flush to avoid extra space.
...
The indented `\end{verbatim}` was causing an extra blank line in
the output.
Closes #277 .
2011-07-19 16:25:01 -07:00
John MacFarlane
1c28c5308f
Added unexported Text.Pandoc.MIME.
...
Moved getMimeType from Text.Pandoc.Shared to Text.Pandoc.MIME,
so we won't have an API change.
2011-07-19 12:01:20 -07:00
John MacFarlane
e2aec87956
ODT writer: Construct META-INF/manifest.xml based on archive contents.
...
This fixes a bug in ODTs containing images. LibreOffice would signal
that these ODTs were corrupt, because the manifest.xml did not contain
a reference to the image files.
2011-07-17 23:21:59 -07:00
John MacFarlane
b5da7adfb8
Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
...
Also do this when copying image files into EPUBs and ODTs.
Closes #263 .
2011-07-16 14:19:45 -07:00
John MacFarlane
8d13ff5bc3
HTML writer: Use embed tag for images with non-image extensions.
...
(e.g. PDFs).
Closes #264 .
2011-07-16 10:11:46 -07:00
John MacFarlane
b5411c06aa
Improved LaTeX tables.
...
* Use ctable package, which allows footnotes and
provides additional options.
* Made cell alignments work in multiline tables.
* Closes #272 .
2011-07-10 12:33:45 -07:00
John MacFarlane
09479ba7b2
LaTeX tables: more space btw lines, top-align cells.
...
Closes #271 .
2011-07-10 12:33:34 -07:00
John MacFarlane
ea0a09aef1
Fixed bug in slidy writer: unclosed div tag.
2011-07-06 17:24:40 -07:00
Kelsey Hightower
cf11673d83
EPUB writer: Add a meta element specify the cover.
...
Some EPUB e-readers, such as the Nook, require a meta element inside the
OPF metadata block to ensure the cover image is properly displayed.
When generating an EPUB using the `--epub-cover-image` option, this
patch adds the following meta element to the OPF metadata block in
`content.opf`:
<meta name="cover" content="cover-image" />
2011-07-04 23:39:50 -04:00
John MacFarlane
da2301387f
Markdown writer: Insert HTML comment btw list and indented code block.
...
This prevents the code block from being interpreted as part of the list.
2011-06-06 05:56:59 -07:00
John MacFarlane
8d54e304c6
LaTeX writer: use deVerb on table and picture captions.
...
Otherwise LaTeX complains about \verb inside command argument.
Thanks to bbanier for reporting the bug.
2011-05-24 23:56:23 -07:00
John MacFarlane
b9ba3847be
Allow non-plain math methods in epub.
2011-04-29 10:49:45 -07:00
John MacFarlane
cfaa9acd18
Fixed Slidy/S5 output to allow --section-divs.
...
This is also a cleaner way of inserting the slide divs.
Resolves Issue #296 .
2011-04-16 12:16:24 -07:00
John MacFarlane
8ddf7f5dc7
Whitespace cleanup.
2011-04-16 10:37:47 -07:00
John MacFarlane
220bd121d8
Allow --section-divs with slidy output.
2011-04-16 10:33:44 -07:00
John MacFarlane
679113ab02
Revert API change in EPUB writer.
...
Instead of passing the epub cover image as a parameter, we now pass
it in the list of variables. This avoids the API change introduced
in f5cbb68534
without losing the
new functionality.
2011-04-16 09:54:05 -07:00
John MacFarlane
4ad9360a97
Fixed bug in footnote order in HTML.
...
CircleCode pointed out that the following markdown produces
out-of-order footnote markers in HTML:
-8<------------------------
some text^[with a footnote which will be #1 ]
issue
some other text^[with a footnote which will be #2 ]
-8<------------------------
This fixes the problem.
2011-03-28 16:54:37 -07:00
John MacFarlane
d1304e8356
OpenDocument writer: Use "First paragraph" style after most non-para blocks.
...
(Not just headers, as in the last patch.)
Patch from Andrea Rossato, slightly modified by JM.
2011-03-16 12:35:32 -07:00
John MacFarlane
f5cbb68534
Added --epub-cover-image option.
...
API change: Added a parameter for the cover image path to
writeEPUB.
Followed best practices outlined in
http://blog.threepress.org/2009/11/20/best-practices-in-epub-cover-images/
2011-03-13 12:42:16 -07:00
John MacFarlane
e24ce1c11d
OpenDocument: Use special style for 1st para after heading.
...
"First paragraph" as opposed to "Text body." This allows
users to specify e.g. that only paragraphs after the first
paragraph of a section are to be indented.
Thanks to Andrea Rossato for the patch.
Closes github Issue #20 .
2011-03-12 13:38:04 -08:00
John MacFarlane
84bf846503
LaTeX writer: Changed figure defaults to htbp.
...
This prevents "too many unprocessed floats." Resolves
Issue #285 .
2011-02-11 19:03:46 -08:00