Commit graph

2994 commits

Author SHA1 Message Date
Greg Maslov
618dc294f9 Add parsing support for the rST default-role directive. 2012-03-24 21:48:54 -04:00
John MacFarlane
3c4e1ff063 RST reader: allow :math:... even when not followed by blank or \.
This does not implement the complex rule described at
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules,
but it should be good enough for most purposes.

Closes #453.
2012-03-24 16:11:56 -07:00
John MacFarlane
d7f2b5d0f5 RST reader: '\ ' is null, not escaped space. 2012-03-24 16:03:46 -07:00
John MacFarlane
9352750cb2 RST writer: Better handling of inline formatting.
* `hi*there*hi` now gets rendered properly as `hi\ *there*\ hi`
* Unnecessary '\ ' are avoided around :math:, :sub:, :sup:
* Implemented most of the rules in
  http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules,
  though some unnecessary '\ ' may be inserted when unicode quotes
  are used.
2012-03-24 15:53:57 -07:00
John MacFarlane
4c2249ea89 dzslides: Updated template.html and styles in default template.
Closes #454.
2012-03-23 11:37:09 -07:00
John MacFarlane
b1bf8babae Merge pull request #452 from wangp/master
Texinfo writer: retain directories in image paths.
2012-03-20 15:54:01 -07:00
Peter Wang
d74f3e1f28 Texinfo writer: retain directories in image paths. 2012-03-21 09:20:30 +11:00
John MacFarlane
29c8f1554b PDF: Run latex at least two times.
This ensures that the PDFs will have hyperlinked bookmarks
(PDF table of contents that can be displayed in the sidebar).
2012-03-19 09:25:33 -07:00
John MacFarlane
2894df7b76 Added test for one column table in LaTeX. 2012-03-19 08:29:19 -07:00
John MacFarlane
1db909e49b Fixed bug parsing LaTeX tables with one column.
Thanks to Steven Solie for finding the bug.
2012-03-19 08:18:32 -07:00
John MacFarlane
13eebc6cfb Added mathfont variable to latex template. 2012-03-15 14:39:03 -07:00
John MacFarlane
68503311cc Bumped version bound for test-framework. 2012-03-15 11:18:41 -07:00
John MacFarlane
f29e67e161 LaTeX template tweaks:
- allow geometry variable to be repeated for multiple options
- use mainfont instead of romanfont
2012-03-15 10:49:36 -07:00
John MacFarlane
783cfdc0eb Updated latex template. 2012-03-14 19:06:33 -07:00
John MacFarlane
43b7dc0fdf Updated latex template. 2012-03-14 18:50:20 -07:00
John MacFarlane
8538b6764d Fixed travis-CI script to build tests. 2012-03-14 18:34:33 -07:00
John MacFarlane
9a664d7519 Added romanfont, sansfont, monofont variables to latex template. 2012-03-14 14:41:34 -07:00
John MacFarlane
772c0757c1 Added geometry variable to default LaTeX template. 2012-03-14 14:17:22 -07:00
John MacFarlane
965dcd3a00 Removed stripansi.sh. 2012-03-13 08:40:42 -07:00
John MacFarlane
4c0b6ad48e Added .travis.yml. 2012-03-13 08:39:26 -07:00
John MacFarlane
4ebfc8ae2e Removed stripansi.sh. 2012-03-13 08:39:14 -07:00
John MacFarlane
acb267ef33 Windows installer: fix dzslides directory. Closes #446. 2012-03-12 22:14:26 -07:00
John MacFarlane
14050e77a3 README: Removed misleading note on reST math. 2012-03-12 12:47:25 -07:00
John MacFarlane
60fb915351 Use {} around ctable caption. Closes #445. 2012-03-12 11:06:49 -07:00
John MacFarlane
1202f016bb Added section on Internal links. 2012-03-12 10:19:41 -07:00
John MacFarlane
1b1d7d570a Merge pull request #444 from trofi/master
fix doc generation failure against haddock-2.10.0
2012-03-12 08:36:40 -07:00
Sergei Trofimovich
e838cca4e6 fix doc generation failure against haddock-2.10.0
$ cabal configure --haddock-option=-v3
$ cabal haddock -v3
    Creating interface...
     100% (  2 /  2) in 'Text.Pandoc.Readers.Native'
    Checking module Text.Pandoc.Readers.HTML...
    Creating interface...
      50% (  4 /  8) in 'Text.Pandoc.Readers.HTML'
    Checking module Text.Pandoc.Readers.Textile...
    Creating interface...
    haddock: internal error: lexical error
    /usr/bin/haddock returned ExitFailure 1

Patch changes UTF-8 spaces to ASCII spaces.

It's a known haddock issue:
    http://www.haskell.org/pipermail/haskell-cafe/2012-March/099870.html

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-12 10:40:08 +03:00
John MacFarlane
a768844751 Fixed lstlisting environment in LaTeX reader.
Closes #443.
2012-03-10 12:33:55 -08:00
John MacFarlane
7253946318 Fixed typo in README 2012-03-10 07:47:59 -08:00
John MacFarlane
b4314620bc Merge pull request #442 from trofi/master
pandoc.cabal: fix typo in zlib's upper bound '<= 0.6' should be '< 0.6'
2012-03-10 07:06:45 -08:00
Sergei Trofimovich
b7c13f1645 pandoc.cabal: fix typo in zlib's upper bound '<= 0.6' should be '< 0.6'
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-10 13:24:25 +03:00
John MacFarlane
d154aff4fc make_osx_package: removed --reinstall flag on citeproc-hs. 2012-03-09 14:23:06 -08:00
John MacFarlane
1f7ca66627 Updated changelog. 2012-03-09 13:54:36 -08:00
John MacFarlane
5f013051e2 Made man writer more robust.
Previously it assumed that inlines weren't normalized.
2012-03-09 13:39:19 -08:00
John MacFarlane
96274b2838 Fixed permissions on installed man pages.
Thanks to Magnus Therning for the patch.
2012-03-09 13:30:14 -08:00
John MacFarlane
0d095be64f OSX package: Check for 64-bit Intel CPU before installing. 2012-03-09 13:07:26 -08:00
John MacFarlane
5fe63436c8 Create osx package in osx_package dir. 2012-03-09 12:37:29 -08:00
John MacFarlane
d4d9504950 Changed -V so that you can specify a key without a value.
Such keys get the value `true`.
2012-03-09 10:45:01 -08:00
John MacFarlane
9766b532f3 Added beamer+lhs as output format. 2012-03-09 10:32:32 -08:00
John MacFarlane
6787cf2fbf Bump version to 1.9.1.2. 2012-03-09 09:30:32 -08:00
John MacFarlane
4a17d661ff EPUB reader: convert e.g. en_US from locale to en-US in language. 2012-03-09 09:25:24 -08:00
John MacFarlane
95b0f28831 Updated tests for euro-related template changes. 2012-03-07 13:29:03 -08:00
John MacFarlane
7a5f51eb95 Merge pull request #438 from michaelt/patch-2
Fix initial `Str "."` after `LineBreak` as well?
2012-03-07 12:50:56 -08:00
John MacFarlane
45aed51628 Merge pull request #437 from michaelt/patch-1
escape initial dot in code lines
2012-03-07 10:50:08 -08:00
John MacFarlane
8a8d4a8abc Set mainlang variable in context writer.
This parallels behavior of latex writer.  Mainlang is the last
of a comma-separated list of languages in lang.
2012-03-07 10:09:17 -08:00
John MacFarlane
0cadc5f757 Fixes list label positions in beamer. 2012-03-07 09:59:44 -08:00
Michael Thompson
2d1703e8a0 Fix initial Str "." after LineBreak as well? 2012-03-07 12:27:46 -05:00
Michael Thompson
698eb059b7 escape initial dot in code lines 2012-03-07 11:35:18 -05: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
b44fec5877 Windows installer: require XP or higher.
Trying to run pandoc on Win2K yields:
"addrinfo could not be located in the dynamic link library WS2_32.dll".
This is a function added in XP.
2012-03-05 00:23:31 -08:00