public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Conversion error (LaTeX->Html)
@ 2013-10-21  8:31 Stefan Ulbrich
       [not found] ` <ca71e800-4609-4b8c-ae25-37330cc2ba2f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Ulbrich @ 2013-10-21  8:31 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

Hi,

For a while, I have been looking for a conversion tool from LaTeX to Html 
and I just discovered pandoc. Thank you for the great work!

However, when I tried to give it a challenge by compiling a large document 
(my thesis), it stopped with the following error message:

pandoc: src/Text/Pandoc/Readers/LaTeX.hs:1091:7-26: Irrefutable pattern 
failed for pattern (c : cs)

The error occured with pandoc 1.12.1 and the preceding release.

How can I debug the parser to locate the problem (sorry, I cannot give 
access to the source document)?

Best,
Stefan

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ca71e800-4609-4b8c-ae25-37330cc2ba2f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[-- Attachment #2: Type: text/html, Size: 1568 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Conversion error (LaTeX->Html)
       [not found] ` <ca71e800-4609-4b8c-ae25-37330cc2ba2f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2013-10-21 16:35   ` John MacFarlane
       [not found]     ` <20131021163507.GF56864-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2013-10-21 16:35 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

That's a bug!  I can reproduce it with

    \citet{}

The current code apparently assumes there will be >0 citations.

I've already pushed a fix; if you installed from source, you can

    git clone git://github.com/jgm/pandoc
    cd pandoc
    git submodule update --init
    cabal install --force
    cabal install pandoc-citeproc

+++ Stefan Ulbrich [Oct 21 13 01:31 ]:
> Hi,
> 
> For a while, I have been looking for a conversion tool from LaTeX to Html 
> and I just discovered pandoc. Thank you for the great work!
> 
> However, when I tried to give it a challenge by compiling a large document 
> (my thesis), it stopped with the following error message:
> 
> pandoc: src/Text/Pandoc/Readers/LaTeX.hs:1091:7-26: Irrefutable pattern 
> failed for pattern (c : cs)
> 
> The error occured with pandoc 1.12.1 and the preceding release.
> 
> How can I debug the parser to locate the problem (sorry, I cannot give 
> access to the source document)?
> 
> Best,
> Stefan
> 
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ca71e800-4609-4b8c-ae25-37330cc2ba2f%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Conversion error (LaTeX->Html)
       [not found]     ` <20131021163507.GF56864-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2013-11-01 17:16       ` apaoluzzi-Re5JQEeQqe8AvxtiuMwx3w
       [not found]         ` <f44e24a5-10ec-4bac-a490-7d1f06413472-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: apaoluzzi-Re5JQEeQqe8AvxtiuMwx3w @ 2013-11-01 17:16 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 3208 bytes --]

Hello, 

I have exactly the same problem when using pandoc to convert from latex to 
markdown.
I experimented with your fix, but it stops with errors, given below.
Some suggestion?

Many thanks for your help
alberto

>>>>

cabal: Error: some packages failed to install:

blaze-builder-conduit-1.0.0 depends on lifted-base-0.2.1.0 which failed to

install.

conduit-1.0.8 depends on lifted-base-0.2.1.0 which failed to install.

http-conduit-1.9.5.1 depends on lifted-base-0.2.1.0 which failed to install.

lifted-base-0.2.1.0 failed during the building phase. The exception was:

ExitFailure 1

pandoc-1.12.1 depends on lifted-base-0.2.1.0 which failed to install.

resourcet-0.4.9 depends on lifted-base-0.2.1.0 which failed to install.

yaml-0.8.5.1 depends on lifted-base-0.2.1.0 which failed to install.

zlib-conduit-1.0.0 depends on lifted-base-0.2.1.0 which failed to install.


On Monday, October 21, 2013 6:35:07 PM UTC+2, fiddlosopher wrote:
>
> That's a bug!  I can reproduce it with 
>
>     \citet{} 
>
> The current code apparently assumes there will be >0 citations. 
>
> I've already pushed a fix; if you installed from source, you can 
>
>     git clone git://github.com/jgm/pandoc 
>     cd pandoc 
>     git submodule update --init 
>     cabal install --force 
>     cabal install pandoc-citeproc 
>
> +++ Stefan Ulbrich [Oct 21 13 01:31 ]: 
> > Hi, 
> > 
> > For a while, I have been looking for a conversion tool from LaTeX to 
> Html 
> > and I just discovered pandoc. Thank you for the great work! 
> > 
> > However, when I tried to give it a challenge by compiling a large 
> document 
> > (my thesis), it stopped with the following error message: 
> > 
> > pandoc: src/Text/Pandoc/Readers/LaTeX.hs:1091:7-26: Irrefutable pattern 
> > failed for pattern (c : cs) 
> > 
> > The error occured with pandoc 1.12.1 and the preceding release. 
> > 
> > How can I debug the parser to locate the problem (sorry, I cannot give 
> > access to the source document)? 
> > 
> > Best, 
> > Stefan 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "pandoc-discuss" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. 
>
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/ca71e800-4609-4b8c-ae25-37330cc2ba2f%40googlegroups.com. 
>
> > For more options, visit https://groups.google.com/groups/opt_out. 
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f44e24a5-10ec-4bac-a490-7d1f06413472%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[-- Attachment #2: Type: text/html, Size: 4559 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Conversion error (LaTeX->Html)
       [not found]         ` <f44e24a5-10ec-4bac-a490-7d1f06413472-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2013-11-01 20:46           ` John MacFarlane
  0 siblings, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2013-11-01 20:46 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Try

cabal install -v3 lifted-base

this will give you verbose output for the package that failed, and
perhaps some clues.  (It is also possible that it failed because of
memory exhaustion, in which case it may work this time.)

+++ apaoluzzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Nov 01 13 10:16 ]:
>    Hello,
>    I have exactly the same problem when using pandoc to convert from latex
>    to markdown.
>    I experimented with your fix, but it stops with errors, given below.
>    Some suggestion?
>    Many thanks for your help
>    alberto
>    >>>>
> 
>    cabal: Error: some packages failed to install:
> 
>    blaze-builder-conduit-1.0.0 depends on lifted-base-0.2.1.0 which failed
>    to
> 
>    install.
> 
>    conduit-1.0.8 depends on lifted-base-0.2.1.0 which failed to install.
> 
>    http-conduit-1.9.5.1 depends on lifted-base-0.2.1.0 which failed to
>    install.
> 
>    lifted-base-0.2.1.0 failed during the building phase. The exception
>    was:
> 
>    ExitFailure 1
> 
>    pandoc-1.12.1 depends on lifted-base-0.2.1.0 which failed to install.
> 
>    resourcet-0.4.9 depends on lifted-base-0.2.1.0 which failed to install.
> 
>    yaml-0.8.5.1 depends on lifted-base-0.2.1.0 which failed to install.
> 
>    zlib-conduit-1.0.0 depends on lifted-base-0.2.1.0 which failed to
>    install.
>    On Monday, October 21, 2013 6:35:07 PM UTC+2, fiddlosopher wrote:
> 
>      That's a bug!  I can reproduce it with
>          \citet{}
>      The current code apparently assumes there will be >0 citations.
>      I've already pushed a fix; if you installed from source, you can
>          git clone git://[1]github.com/jgm/pandoc
>          cd pandoc
>          git submodule update --init
>          cabal install --force
>          cabal install pandoc-citeproc
>      +++ Stefan Ulbrich [Oct 21 13 01:31 ]:
>      > Hi,
>      >
>      > For a while, I have been looking for a conversion tool from LaTeX
>      to Html
>      > and I just discovered pandoc. Thank you for the great work!
>      >
>      > However, when I tried to give it a challenge by compiling a large
>      document
>      > (my thesis), it stopped with the following error message:
>      >
>      > pandoc: src/Text/Pandoc/Readers/LaTeX.hs:1091:7-26: Irrefutable
>      pattern
>      > failed for pattern (c : cs)
>      >
>      > The error occured with pandoc 1.12.1 and the preceding release.
>      >
>      > How can I debug the parser to locate the problem (sorry, I cannot
>      give
>      > access to the source document)?
>      >
>      > Best,
>      > Stefan
>      >
>      > --
>      > You received this message because you are subscribed to the Google
>      Groups "pandoc-discuss" group.
>      > To unsubscribe from this group and stop receiving emails from it,
>      send an email to [2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>      > To post to this group, send email to [3]pandoc-...@googlegroups.
>      com.
>      > To view this discussion on the web visit
>      [4]https://groups.google.com/d/msgid/pandoc-discuss/ca71e800-
>      4609-4b8c-ae25-37330cc2ba2f%40googlegroups.com.
>      > For more options, visit [5]https://groups.google.com/
>      groups/opt_out.
> 
>    --
>    You received this message because you are subscribed to the Google
>    Groups "pandoc-discuss" group.
>    To unsubscribe from this group and stop receiving emails from it, send
>    an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>    To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>    To view this discussion on the web visit
>    [6]https://groups.google.com/d/msgid/pandoc-discuss/f44e24a5-10ec-4bac-
>    a490-7d1f06413472%40googlegroups.com.
>    For more options, visit [7]https://groups.google.com/groups/opt_out.
> 
> References
> 
>    1. http://github.com/jgm/pandoc
>    2. javascript:/
>    3. javascript:/
>    4. https://groups.google.com/d/msgid/pandoc-discuss/ca71e800-4609-4b8c-ae25-37330cc2ba2f%40googlegroups.com
>    5. https://groups.google.com/groups/opt_out
>    6. https://groups.google.com/d/msgid/pandoc-discuss/f44e24a5-10ec-4bac-a490-7d1f06413472%40googlegroups.com
>    7. https://groups.google.com/groups/opt_out


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-01 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-21  8:31 Conversion error (LaTeX->Html) Stefan Ulbrich
     [not found] ` <ca71e800-4609-4b8c-ae25-37330cc2ba2f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2013-10-21 16:35   ` John MacFarlane
     [not found]     ` <20131021163507.GF56864-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2013-11-01 17:16       ` apaoluzzi-Re5JQEeQqe8AvxtiuMwx3w
     [not found]         ` <f44e24a5-10ec-4bac-a490-7d1f06413472-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2013-11-01 20:46           ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).