[arch-haskell] Pandoc fails creating document with citation styles

Magnus Therning magnus at therning.org
Sat Sep 6 11:58:55 UTC 2014


On Sat, Sep 06, 2014 at 01:43:06PM +0600, Ray Rashif wrote:
> Hi guys
> 
> I must admit that Haskell is unfamiliar territory and requires far
> more time to debug -- time that I do not have. For this reason I
> must seek your help in troubleshooting an issue with pandoc,
> citations and citation styles.
> 
> A while ago when the Haskell stuff were all in the official repos I
> successfully used pandoc with citations (--biblio) and *.csl style
> files (--csl $file). [1] Now that I have moved over to using the
> arch-haskell repos (after a hiatus from markdown), I see that this
> no longer works:
> 
> ~$ pandoc test.md -o test.pdf --biblio test.bib --csl apa.csl
> pandoc-citeproc: error while parsing the XML string pandoc: Error
> running filter pandoc-citeproc
> 
> In fact, none of the example styles included inside
> haskell-pandoc-citeproc works and they output the same error. You
> may get the test files from [1] and one or more csl files to test
> from /usr/share/i386-linux-ghc-7.8.3/pandoc-citeproc-0.5/tests/.
> 
> I also reported this upstream [2] and it looks like the problem is
> downstream -- either my system, the dependency chain, or a packaging
> error somewhere. I would appreciate it if someone else could first
> reproduce the error, and then we can try to fix it. Thanks!

I ran into this a week or two ago but haven't had time to look into
it.  I used a manually modified citation style that I got from one of
those main citation style sites.  What I did notice is that using the
default style (i.e. not specifying any CSL at all) works.  I'm not
sure, but I suspect that piecemeal turning the default CSL into one
that is accepted might reveal what causes the issue.  Then it's easier
to assign blame, pandoc-citeproc, pandoc, XML parser lib, etc...

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve The
Problem, saving the documentation for later.  Long live Fortran!
     -- Ed Post
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/arch-haskell/attachments/20140906/81bdab06/attachment.sig>


More information about the arch-haskell mailing list