* latex to html or plain text without any latex construct @ 2017-08-21 14:26 Uwe Brauer [not found] ` <87r2w5xaie.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-21 14:26 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hi I want to strip from my latex file any latex command. I know about the detex command but even that leaves some text constructs. Is there any option in pandoc which can achieve that? I tried pandoc file.tex -o file.epub pandoc file.epub -t plain -o result.text But still the file contains stuff like $$\begin{aligned} \label{eq:iteration-scheme:1} \partial_t\rho + v^a\partial_a\rho + \rho \partial_a v^a &= 0 \\ \label{eq:iteration-scheme:2} \rho \left(\partial_t v^a + v^b\partial_b v^a \right) + \partial^a p &= - \rho\partial^a\phi \\ \label{eq:iteration-scheme:3} \Delta\phi &= Etc etc Thanks Uwe Brauer ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <87r2w5xaie.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: latex to html or plain text without any latex construct [not found] ` <87r2w5xaie.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-21 21:00 ` John MACFARLANE 2017-08-22 12:20 ` Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MACFARLANE @ 2017-08-21 21:00 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw With -t plain, pandoc will only emit tex math if it can't "fake it with unicode." (Of course, that will be the case with the complicated equation you mention.) If you want this to be simply removed, you can combine -t plain with a filter that removes all Math elements. +++ Uwe Brauer [Aug 21 17 14:26 ]: >Hi > >I want to strip from my latex file any latex command. I know about the >detex command but even that leaves some text constructs. >Is there any option in pandoc which can achieve that? > >I tried > >pandoc file.tex -o file.epub > >pandoc file.epub -t plain -o result.text > >But still the file contains stuff like >$$\begin{aligned} \label{eq:iteration-scheme:1} \partial_t\rho + >v^a\partial_a\rho + \rho \partial_a v^a &= 0 \\ >\label{eq:iteration-scheme:2} \rho \left(\partial_t v^a + v^b\partial_b >v^a \right) + \partial^a p &= - \rho\partial^a\phi \\ >\label{eq:iteration-scheme:3} \Delta\phi &= > >Etc etc > >Thanks > >Uwe Brauer > >-- >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/87r2w5xaie.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: latex to html or plain text without any latex construct 2017-08-21 21:00 ` John MACFARLANE @ 2017-08-22 12:20 ` Uwe Brauer [not found] ` <871so3yet8.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-22 12:20 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > With -t plain, pandoc will only emit tex math if it can't > "fake it with unicode." (Of course, that will be the case > with the complicated equation you mention.) > If you want this to be simply removed, you can combine > -t plain with a filter that removes all Math elements. Sorry, I just realized that I asked this some years ago and you proposed the following solution > -- stripmath.hs > -- compile: ghc --make stripmath.hs > -- run: pandoc input.txt -t json | ./stripmath | pandoc -f json -t plain where stripmath is import Text.Pandoc main = toJsonFilter stripmath where stripmath (Math _ _) = Str "FORMULA" stripmath x = x I just tried that out with the old compiled stripmath but I obtain /home/oub/scripts/stripmath: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory So I presume I have to recompile it again but this time I receive hc --make stripmath.hs [1 of 1] Compiling Main ( stripmath.hs, stripmath.o ) stripmath.hs:3:8: No instance for (ToJsonFilter (Inline -> Inline)) arising from a use of `toJsonFilter' Possible fix: add an instance declaration for (ToJsonFilter (Inline -> Inline)) In the expression: toJsonFilter stripmath In an equation for `main': main = toJsonFilter stripmath where stripmath (Math _ _) = Str "FORMULA" stripmath x = x I don't know enough haskell to deal with this. Any help is appreciated. Thanks Uwe Brauer ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <871so3yet8.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: latex to html or plain text without any latex construct [not found] ` <871so3yet8.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-22 17:50 ` John MACFARLANE 2017-08-22 20:16 ` Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MACFARLANE @ 2017-08-22 17:50 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Try with toJSONFilter rather than toJsonFilter >import Text.Pandoc > >main = toJsonFilter stripmath > where stripmath (Math _ _) = Str "FORMULA" > stripmath x = x ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: latex to html or plain text without any latex construct 2017-08-22 17:50 ` John MACFARLANE @ 2017-08-22 20:16 ` Uwe Brauer [not found] ` <878tibz7c2.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-22 20:16 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > Try with toJSONFilter rather than toJsonFilter >> import Text.Pandoc >> >> main = toJsonFilter stripmath >> where stripmath (Math _ _) = Str "FORMULA" >> stripmath x = x Then I obtain stripmath.hs:3:8: Not in scope: `toJSONFilter' Perhaps you meant `toJsonFilter' (imported from Text.Pandoc) I am running pandoc 1.17.2 ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <878tibz7c2.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: latex to html or plain text without any latex construct [not found] ` <878tibz7c2.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-23 0:09 ` John MacFarlane 2017-08-23 12:22 ` [SOLVED, almost] (was: latex to html or plain text without any latex construct) Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MacFarlane @ 2017-08-23 0:09 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Ah, you also need import Text.Pandoc.JSON instead of import Text.Pandoc +++ Uwe Brauer [Aug 22 17 20:16 ]: >>>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > > > Try with toJSONFilter rather than toJsonFilter > >> import Text.Pandoc > >> > >> main = toJsonFilter stripmath > >> where stripmath (Math _ _) = Str "FORMULA" > >> stripmath x = x > >Then I obtain >stripmath.hs:3:8: > Not in scope: `toJSONFilter' > Perhaps you meant `toJsonFilter' (imported from Text.Pandoc) > > >I am running pandoc 1.17.2 > >-- >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/878tibz7c2.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* [SOLVED, almost] (was: latex to html or plain text without any latex construct) 2017-08-23 0:09 ` John MacFarlane @ 2017-08-23 12:22 ` Uwe Brauer [not found] ` <87k21uwk14.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-23 12:22 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > Ah, you also need > import Text.Pandoc.JSON Thanks! That works like charm. However a typical sentence could look like this. Replacing the density $\rho$ by the Makino variable $w$, the system (\ref{eq:iteration-scheme:1})--(\ref{eq:iteration-scheme:3}) coupled with the equation of state (\ref{eq:state}) takes the following form. Which is then replace by Replacing the density FORMULA by the Makino variable FORMULA, the system ([eq:iteration-scheme:1])–([eq:iteration-scheme:3]) coupled with the equation of state ([eq:state]) takes the following form: Is there any change to replace \ref{eq:iteration-scheme:1} by the word LABEL? Thanks Uwe Brauer -- 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/87k21uwk14.fsf_-_%40mat.ucm.es. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <87k21uwk14.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: (was: latex to html or plain text without any latex construct) [not found] ` <87k21uwk14.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-23 14:15 ` John MacFarlane 2017-08-23 16:13 ` Uwe Brauer 2017-08-23 14:15 ` (was: latex to html or plain text without any latex construct) John MacFarlane 1 sibling, 1 reply; 30+ messages in thread From: John MacFarlane @ 2017-08-23 14:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ Uwe Brauer [Aug 23 17 12:22 ]: >However a typical sentence could look like this. >Replacing the density $\rho$ by the Makino variable $w$, the system >(\ref{eq:iteration-scheme:1})--(\ref{eq:iteration-scheme:3}) coupled with the >equation of state (\ref{eq:state}) takes the >following form. > >Which is then replace by > >Replacing the density FORMULA by the Makino variable FORMULA, the system >([eq:iteration-scheme:1])–([eq:iteration-scheme:3]) coupled with the >equation of state ([eq:state]) takes the following form: > >Is there any change to replace \ref{eq:iteration-scheme:1} by the word >LABEL? It's quite easy to do that with the dev version of pandoc, but with the version you're using you'd need to filter for a string with contents beginning "[eq:". Use pandoc -t native to see what the parsed document looks like, and that should help you write the filter. -- 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/20170823141516.GA22331%40Johns-MacBook-Pro.local. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2017-08-23 14:15 ` John MacFarlane @ 2017-08-23 16:13 ` Uwe Brauer [not found] ` <8760dew9da.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-23 16:13 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > +++ Uwe Brauer [Aug 23 17 12:22 ]: > It's quite easy to do that with the dev version of pandoc, > but with the version you're using you'd need to filter for > a string with contents beginning "[eq:". I wouldn't mind to download and compile the dev version of pandoc. But how am I supposed to do it with that version? ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <8760dew9da.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: [not found] ` <8760dew9da.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-23 20:54 ` John MACFARLANE 2017-08-24 16:26 ` Re: Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MACFARLANE @ 2017-08-23 20:54 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ Uwe Brauer [Aug 23 17 16:13 ]: >I wouldn't mind to download and compile the dev version of pandoc. >But how am I supposed to do it with that version? With dev pandoc, pandoc -t native -f latex \label{hi} [Para [Span ("hi",[],[("label","hi")]) [Str "[hi]"]]] So your filter could pattern match on a Span with label attribute: go (Math _ _) = Str "FORMULA" go (Span (_,_,[("label",_)]) _) = Str "LABEL" go x = x ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2017-08-23 20:54 ` Re: John MACFARLANE @ 2017-08-24 16:26 ` Uwe Brauer [not found] ` <87378h53vq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-24 16:26 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > +++ Uwe Brauer [Aug 23 17 16:13 ]: >> I wouldn't mind to download and compile the dev version of pandoc. >> But how am I supposed to do it with that version? > With dev pandoc, > pandoc -t native -f latex > \label{hi} > [Para [Span ("hi",[],[("label","hi")]) [Str "[hi]"]]] > So your filter could pattern match on a Span with > label attribute: > go (Math _ _) = Str "FORMULA" > go (Span (_,_,[("label",_)]) _) = Str "LABEL" > go x = x I just found out that I have a compiled version from march this year. ,---- | pandoc 1.19.2.1 | Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4 | Default user data directory: /home/oub/.pandoc | Copyright (C) 2006-2016 John MacFarlane | Web: http://pandoc.org | This is free software; see the source for copying conditions. | There is no warranty, not even for merchantability or fitness | for a particular purpose. `---- So I hoped this is recent enough. I now considered the following stripmath.hs file ,---- | import Text.Pandoc.JSON | | main = toJSONFilter stripmath | where stripmath (Math _ _) = Str "FORMULA" | stripmath x = x | go (Math _ _) = Str "FORMULA" | go (Span (_,_,[("label",_)]) _) = Str "LABEL" | go x = x `---- then I did ghc --make stripmath.hs And after compilation /home/oub/.local/bin/pandoc eulerpoisson.tex -t json | /home/oub/scripts/Strip2/stripmath | pandoc -f json -t plain -o euler-grammar.tex But I obtainedstripmath: Error in $: expected product (:*:), encountered Object pandoc: Error in $: not enough input Sorry for this elementary question. Uwe Brauer ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <87378h53vq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: [not found] ` <87378h53vq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-24 16:43 ` John MACFARLANE 2017-08-24 17:30 ` Re: Uwe Brauer 2017-08-24 16:44 ` Re: John MACFARLANE 1 sibling, 1 reply; 30+ messages in thread From: John MACFARLANE @ 2017-08-24 16:43 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw No, you need dev pandoc. +++ Uwe Brauer [Aug 24 17 16:26 ]: >>>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > > > +++ Uwe Brauer [Aug 23 17 16:13 ]: > >> I wouldn't mind to download and compile the dev version of pandoc. > >> But how am I supposed to do it with that version? > > > With dev pandoc, > > > pandoc -t native -f latex > > \label{hi} > > [Para [Span ("hi",[],[("label","hi")]) [Str "[hi]"]]] > > > So your filter could pattern match on a Span with > > label attribute: > > > go (Math _ _) = Str "FORMULA" > > go (Span (_,_,[("label",_)]) _) = Str "LABEL" > > go x = x > >I just found out that I have a compiled version from march this year. > >,---- >| pandoc 1.19.2.1 >| Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4 >| Default user data directory: /home/oub/.pandoc >| Copyright (C) 2006-2016 John MacFarlane >| Web: http://pandoc.org >| This is free software; see the source for copying conditions. >| There is no warranty, not even for merchantability or fitness >| for a particular purpose. >`---- > >So I hoped this is recent enough. >I now considered the following stripmath.hs file >,---- >| import Text.Pandoc.JSON >| >| main = toJSONFilter stripmath >| where stripmath (Math _ _) = Str "FORMULA" >| stripmath x = x >| go (Math _ _) = Str "FORMULA" >| go (Span (_,_,[("label",_)]) _) = Str "LABEL" >| go x = x >`---- >then I did >ghc --make stripmath.hs > >And after compilation > >/home/oub/.local/bin/pandoc eulerpoisson.tex -t json | /home/oub/scripts/Strip2/stripmath | pandoc -f json -t plain -o euler-grammar.tex > >But I obtainedstripmath: Error in $: expected product (:*:), encountered Object >pandoc: Error in $: not enough input > >Sorry for this elementary question. > >Uwe Brauer > >-- >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/87378h53vq.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2017-08-24 16:43 ` Re: John MACFARLANE @ 2017-08-24 17:30 ` Uwe Brauer [not found] ` <87y3q850vx.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2017-08-24 17:30 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > No, you need dev pandoc. Following the INSTALL.md file I run stack setup stack install --test and got an error. Warning: File listed in pandoc.cabal file does not exist: data/odt/Configurations2/accelerator/current.xml pandoc-1.19.2.1: build (lib + exe + test) Package pandoc uses a custom Cabal build, but does not use a custom-setup stanza Not using the explicit setup deps approach based on configuration Strongly recommend fixing the package's cabal file Preprocessing library pandoc-1.19.2.1... Preprocessing executable 'pandoc' for pandoc-1.19.2.1... Preprocessing test suite 'test-pandoc' for pandoc-1.19.2.1... Warning: File listed in pandoc.cabal file does not exist: data/odt/Configurations2/accelerator/current.xml pandoc-1.19.2.1: copy/register Package pandoc uses a custom Cabal build, but does not use a custom-setup stanza Not using the explicit setup deps approach based on configuration Strongly recommend fixing the package's cabal file data/odt/Configurations2/accelerator/current.xml: copyFile: does not exist (No such file or directory) Progress: 0/2'cabal copy' failed. Error message: -- While building package pandoc-1.19.2.1 using: /home/oub/ALLES/src/pandoc-hg/.stack-work/dist/i386-linux/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/i386-linux/Cabal-1.24.0.0 copy Process exited with code: ExitFailure 1 Possible causes of this issue: * No module named "Main". The 'main-is' source file should usually have a header indicating that it's a 'Main' module. * The Setup.hs file is changing the installation target dir. ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <87y3q850vx.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: [not found] ` <87y3q850vx.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2017-08-24 17:56 ` John MACFARLANE 0 siblings, 0 replies; 30+ messages in thread From: John MACFARLANE @ 2017-08-24 17:56 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Doesn't look like you're using the right source code (it says pandoc-1.19.2.1). Easiest approach would be to grab a binary from pandoc-nightly. For compiling the filters, it should suffice if you 'cabal install pandoc-types' first, then use ghc. +++ Uwe Brauer [Aug 24 17 17:30 ]: > > > No, you need dev pandoc. > >Following the INSTALL.md file >I run >stack setup >stack install --test >and got an error. > >Warning: File listed in pandoc.cabal file does not exist: data/odt/Configurations2/accelerator/current.xml >pandoc-1.19.2.1: build (lib + exe + test) >Package pandoc uses a custom Cabal build, but does not use a custom-setup stanza >Not using the explicit setup deps approach based on configuration >Strongly recommend fixing the package's cabal file >Preprocessing library pandoc-1.19.2.1... >Preprocessing executable 'pandoc' for pandoc-1.19.2.1... >Preprocessing test suite 'test-pandoc' for pandoc-1.19.2.1... >Warning: File listed in pandoc.cabal file does not exist: data/odt/Configurations2/accelerator/current.xml >pandoc-1.19.2.1: copy/register >Package pandoc uses a custom Cabal build, but does not use a custom-setup stanza >Not using the explicit setup deps approach based on configuration >Strongly recommend fixing the package's cabal file >data/odt/Configurations2/accelerator/current.xml: copyFile: does not exist (No >such file or directory) >Progress: 0/2'cabal copy' failed. Error message: > >-- While building package pandoc-1.19.2.1 using: > /home/oub/ALLES/src/pandoc-hg/.stack-work/dist/i386-linux/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/i386-linux/Cabal-1.24.0.0 copy > Process exited with code: ExitFailure 1 > >Possible causes of this issue: >* No module named "Main". The 'main-is' source file should usually have >a header indicating that it's a 'Main' module. >* The Setup.hs file is changing the installation target dir. > > > > >-- >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/87y3q850vx.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [not found] ` <87378h53vq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-24 16:43 ` Re: John MACFARLANE @ 2017-08-24 16:44 ` John MACFARLANE 2017-08-24 17:32 ` Re: Uwe Brauer 1 sibling, 1 reply; 30+ messages in thread From: John MACFARLANE @ 2017-08-24 16:44 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw And in addition, you must make sure that your filter is compiled against the same version of pandoc-types as the pandoc executable. +++ Uwe Brauer [Aug 24 17 16:26 ]: >>>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > > > +++ Uwe Brauer [Aug 23 17 16:13 ]: > >> I wouldn't mind to download and compile the dev version of pandoc. > >> But how am I supposed to do it with that version? > > > With dev pandoc, > > > pandoc -t native -f latex > > \label{hi} > > [Para [Span ("hi",[],[("label","hi")]) [Str "[hi]"]]] > > > So your filter could pattern match on a Span with > > label attribute: > > > go (Math _ _) = Str "FORMULA" > > go (Span (_,_,[("label",_)]) _) = Str "LABEL" > > go x = x > >I just found out that I have a compiled version from march this year. > >,---- >| pandoc 1.19.2.1 >| Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4 >| Default user data directory: /home/oub/.pandoc >| Copyright (C) 2006-2016 John MacFarlane >| Web: http://pandoc.org >| This is free software; see the source for copying conditions. >| There is no warranty, not even for merchantability or fitness >| for a particular purpose. >`---- > >So I hoped this is recent enough. >I now considered the following stripmath.hs file >,---- >| import Text.Pandoc.JSON >| >| main = toJSONFilter stripmath >| where stripmath (Math _ _) = Str "FORMULA" >| stripmath x = x >| go (Math _ _) = Str "FORMULA" >| go (Span (_,_,[("label",_)]) _) = Str "LABEL" >| go x = x >`---- >then I did >ghc --make stripmath.hs > >And after compilation > >/home/oub/.local/bin/pandoc eulerpoisson.tex -t json | /home/oub/scripts/Strip2/stripmath | pandoc -f json -t plain -o euler-grammar.tex > >But I obtainedstripmath: Error in $: expected product (:*:), encountered Object >pandoc: Error in $: not enough input > >Sorry for this elementary question. > >Uwe Brauer > >-- >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/87378h53vq.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2017-08-24 16:44 ` Re: John MACFARLANE @ 2017-08-24 17:32 ` Uwe Brauer 0 siblings, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2017-08-24 17:32 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > And in addition, you must make sure that your > filter is compiled against the same version of > pandoc-types as the pandoc executable. How do I do that? The installation file INSTALL.md does not give hints or is it ### Building the whole pandoc ecosystem ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: (was: latex to html or plain text without any latex construct) [not found] ` <87k21uwk14.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-23 14:15 ` John MacFarlane @ 2017-08-23 14:15 ` John MacFarlane 2017-08-23 16:13 ` Uwe Brauer 1 sibling, 1 reply; 30+ messages in thread From: John MacFarlane @ 2017-08-23 14:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Or, you could use sed or perl to convert the \refs before processing with pandoc. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2017-08-23 14:15 ` (was: latex to html or plain text without any latex construct) John MacFarlane @ 2017-08-23 16:13 ` Uwe Brauer 0 siblings, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2017-08-23 16:13 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > Or, you could use sed or perl to convert the \refs before > processing with pandoc. I think than I would prefer elisp and emacs. :-D ^ permalink raw reply [flat|nested] 30+ messages in thread
* pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON' @ 2018-01-31 13:43 Uwe Brauer 2018-01-31 16:30 ` [installed from source] (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2018-01-31 13:43 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hi I just switched from Ubuntu 14.04 32bit to 64 bit and the per-user installed pandoc did not work anymore, so I just downloaded and installed the deb package from https://github.com/jgm/pandoc/releases/tag/2.1.1 That worked nicely However I used a short but very useful hs script Which looks like ,---- | import Text.Pandoc.JSON | | main = toJSONFilter stripmath | where stripmath (Math _ _) = Str "FORMULA" | stripmath x = x `---- And which I call pandoc file -t json | /home/oub/ALLES/HGs/scripts/stripmath | pandoc -f json -t plain -o file2 However when I do that I obtain /home/oub/ALLES/HGs/scripts/stripmath: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory JSON parse error That is strange since libgmp.so.10 is installed but now in /usr/lib/x86_64-linux-gnu/libgmp.so.10 So I should recompile that script I presume Which I compiled via ghc --make stripmath.hs But then I obtain stripmath.hs:1:8: Could not find module `Text.Pandoc.JSON' Use -v to see a list of the files searched for. Any help would be strongly appreciated Uwe Brauer ^ permalink raw reply [flat|nested] 30+ messages in thread
* [installed from source] (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') 2018-01-31 13:43 pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON' Uwe Brauer @ 2018-01-31 16:30 ` Uwe Brauer 2018-01-31 17:54 ` John MacFarlane 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2018-01-31 16:30 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "Uwe" == Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: > Hi I even installed pandoc from source using stack, but the compilation problem remains. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') @ 2018-01-31 17:54 ` John MacFarlane 2018-01-31 19:03 ` Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MacFarlane @ 2018-01-31 17:54 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ Uwe Brauer [Jan 31 18 17:30 ]: >>>> "Uwe" == Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: > > > Hi > >I even installed pandoc from source using stack, but the compilation >problem remains. Use 'stack ghc' instead of 'ghc' to compile the filter. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2018-01-31 17:54 ` John MacFarlane @ 2018-01-31 19:03 ` Uwe Brauer 0 siblings, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2018-01-31 19:03 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > +++ Uwe Brauer [Jan 31 18 17:30 ]: >>>>> "Uwe" == Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: >> >> > Hi >> >> I even installed pandoc from source using stack, but the compilation >> problem remains. > Use 'stack ghc' instead of 'ghc' to compile the filter. Do you mean stack ghc stripmath.hs Does not work neither stripmath.hs:1:1: error: Could not find module ‘Text.Pandoc.JSON’ Use -v to see a list of the files searched for. | 1 | import Text.Pandoc.JSON | ^^^^^^^^^^^^^^^^^^^^^^^ -- 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/87tvv1onpd.fsf%40mat.ucm.es. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Ubuntu 16.04 pandoc installation via cabal fails @ 2018-02-08 11:34 Uwe Brauer 2018-02-08 21:15 ` John MACFARLANE 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2018-02-08 11:34 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hi I need a decent version of cabal and I want to compile a filter and that is why I cannot used stack as we discussed a week ago. So I finally tried out the cabal way. Ubuntu ship the haskell platform with ghd 7.10.3 which should be ok, However cabal update cabal install pandoc --enable-tests gave the error In-place registering pandoc-2.1.1... Preprocessing executable 'pandoc' for pandoc-2.1.1... [1 of 1] Compiling Main ( pandoc.hs, dist/build/pandoc/pandoc-tmp/Main.o ) Linking dist/build/pandoc/pandoc ... Preprocessing test suite 'test-pandoc' for pandoc-2.1.1... test/Tests/Helpers.hs:16:8: Could not find module ‘Data.Algorithm.Diff’ There are files missing in the ‘Diff-0.3.4@Diff_6besMvdnwF71rCmmNvH4et’ package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. cabal: Error: some packages failed to install: pandoc-2.1.1 failed during the building phase. The exception was: ExitFailure 1 While hc-pkg check There are problems in package Diff-0.3.4: Warning: library-dirs: /home/oub/.cabal/lib/x86_64-linux-ghc-7.10.3/Diff-0.3.4-6besMvdnwF71rCmmNvH4et doesn't exist or isn't a directory import-dirs: /home/oub/.cabal/lib/x86_64-linux-ghc-7.10.3/Diff-0.3.4-6besMvdnwF71rCmmNvH4et doesn't exist or isn't a directory cannot find any of ["Data/Algorithm/Diff.hi","Data/Algorithm/Diff.p_hi","Data/Algorithm/Diff.dyn_hi"] cannot find any of ["Data/Algorithm/DiffOutput.hi","Data/Algorithm/DiffOutput.p_hi","Data/Algorithm/DiffOutput.dyn_hi"] cannot find any of ["Data/Algorithm/DiffContext.hi","Data/Algorithm/DiffContext.p_hi","Data/Algorithm/DiffContext.dyn_hi"] cannot find any of ["libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et.a","libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et.p_a","libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et-ghc7.10.3.so","libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et-ghc7.10.3.dylib","HSDiff-0.3.4-6besMvdnwF71rCmmNvH4et-ghc7.10.3.dll"] on library path The following packages are broken, either because they have a problem listed above, or because they depend on a broken package. Diff-0.3.4 So I am stack at this point. Any ideas? Uwe Brauer -- 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/87inb767g7.fsf%40mat.ucm.es. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Ubuntu 16.04 pandoc installation via cabal fails @ 2018-02-08 21:15 ` John MACFARLANE 2018-02-10 10:58 ` [compiled filter does not work anymore] (was: Ubuntu 16.04 pandoc installation via cabal fails) Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MACFARLANE @ 2018-02-08 21:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Try removing/backing up your ~/.cabal and ~/.ghc directories (if present) and trying again. +++ Uwe Brauer [Feb 08 18 12:34 ]: > > >Hi > >I need a decent version of cabal and I want to compile a filter and that >is why I cannot used stack as we discussed a week ago. So I finally >tried out the cabal way. Ubuntu ship the haskell platform with ghd >7.10.3 which should be ok, > >However >cabal update >cabal install pandoc --enable-tests >gave the error >In-place registering pandoc-2.1.1... >Preprocessing executable 'pandoc' for pandoc-2.1.1... >[1 of 1] Compiling Main ( pandoc.hs, dist/build/pandoc/pandoc-tmp/Main.o ) >Linking dist/build/pandoc/pandoc ... >Preprocessing test suite 'test-pandoc' for pandoc-2.1.1... > >test/Tests/Helpers.hs:16:8: > Could not find module ‘Data.Algorithm.Diff’ > There are files missing in the ‘Diff-0.3.4@Diff_6besMvdnwF71rCmmNvH4et’ package, > try running 'ghc-pkg check'. > Use -v to see a list of the files searched for. >cabal: Error: some packages failed to install: >pandoc-2.1.1 failed during the building phase. The exception was: >ExitFailure 1 > >While >hc-pkg check >There are problems in package Diff-0.3.4: > Warning: library-dirs: /home/oub/.cabal/lib/x86_64-linux-ghc-7.10.3/Diff-0.3.4-6besMvdnwF71rCmmNvH4et doesn't exist or isn't a directory > import-dirs: /home/oub/.cabal/lib/x86_64-linux-ghc-7.10.3/Diff-0.3.4-6besMvdnwF71rCmmNvH4et doesn't exist or isn't a directory > cannot find any of ["Data/Algorithm/Diff.hi","Data/Algorithm/Diff.p_hi","Data/Algorithm/Diff.dyn_hi"] > cannot find any of ["Data/Algorithm/DiffOutput.hi","Data/Algorithm/DiffOutput.p_hi","Data/Algorithm/DiffOutput.dyn_hi"] > cannot find any of ["Data/Algorithm/DiffContext.hi","Data/Algorithm/DiffContext.p_hi","Data/Algorithm/DiffContext.dyn_hi"] > cannot find any of ["libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et.a","libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et.p_a","libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et-ghc7.10.3.so","libHSDiff-0.3.4-6besMvdnwF71rCmmNvH4et-ghc7.10.3.dylib","HSDiff-0.3.4-6besMvdnwF71rCmmNvH4et-ghc7.10.3.dll"] on library path > >The following packages are broken, either because they have a problem >listed above, or because they depend on a broken package. >Diff-0.3.4 > > >So I am stack at this point. Any ideas? > >Uwe Brauer > > >-- >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/87inb767g7.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. -- 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/20180208211548.GE1526%40protagoras. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* [compiled filter does not work anymore] (was: Ubuntu 16.04 pandoc installation via cabal fails) 2018-02-08 21:15 ` John MACFARLANE @ 2018-02-10 10:58 ` Uwe Brauer 2018-02-12 6:02 ` John MacFarlane 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2018-02-10 10:58 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > Try removing/backing up your ~/.cabal and ~/.ghc directories > (if present) and trying again. That seems to work, thanks very much. Now I have pandoc 2.1.1 installed, however the filter ,---- | | import Text.Pandoc.JSON | | main = toJSONFilter stripmath | where stripmath (Math _ _) = Str "FORMULA" | stripmath x = x `---- Which I compiled via ghc --make stripmath.hs Results in an excutable which I use as pandoc test.tex -t json | /home/oub/ALLES/HGs/scripts/stripmath64bit | pandoc -f json -t plain -o test.txt But I receive now the error: Error at "source" (line 96, column 46): unexpected % \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% ^ stripmath64bit: Error in $: not enough input JSON parse error The relevant code looks like \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% } But I can run this file with that bibtex entry perfectly with my old (32bit compiled against 1.17 pandoc version) So what shall I do? Thanks Uwe Brauer ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: (was: Ubuntu 16.04 pandoc installation via cabal fails) @ 2018-02-12 6:02 ` John MacFarlane 2018-02-13 11:07 ` Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MacFarlane @ 2018-02-12 6:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw The filter has to be compiled againts the same version of pandoc-types as the binary you're using. I'm guessing this hasn't happened in this case, but I'd need to know more about your package versions. One solution would be to remove your pandoc 2.1.1 (assuming you installed from our binary package) and use cabal to install pandoc itself. +++ Uwe Brauer [Feb 10 18 11:58 ]: > > > Try removing/backing up your ~/.cabal and ~/.ghc directories > > (if present) and trying again. > >That seems to work, thanks very much. > >Now I have pandoc 2.1.1 installed, however the >filter >,---- >| >| import Text.Pandoc.JSON >| >| main = toJSONFilter stripmath >| where stripmath (Math _ _) = Str "FORMULA" >| stripmath x = x >`---- > >Which I compiled via >ghc --make stripmath.hs > >Results in an excutable which I use as > >pandoc test.tex -t json | /home/oub/ALLES/HGs/scripts/stripmath64bit | pandoc -f json -t plain -o test.txt > >But I receive now the error: > > >Error at "source" (line 96, column 46): >unexpected % >\cite{oliynyk16:_futur_flrw,oliynyk15:_newton% > ^ >stripmath64bit: Error in $: not enough input >JSON parse error > > >The relevant code looks like > >\cite{oliynyk16:_futur_flrw,oliynyk15:_newton% >} > > >But I can run this file with that bibtex entry perfectly with my old >(32bit compiled against 1.17 pandoc version) > >So what shall I do? > >Thanks > >Uwe Brauer > >-- >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/87eflt1574.fsf_-_%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2018-02-12 6:02 ` John MacFarlane @ 2018-02-13 11:07 ` Uwe Brauer [not found] ` <873725jggo.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2018-02-13 11:07 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > The filter has to be compiled againts the same version of > pandoc-types as the binary you're using. I'm guessing > this hasn't happened in this case, but I'd need to > know more about your package versions. > One solution would be to remove your pandoc 2.1.1 > (assuming you installed from our binary package) > and use cabal to install pandoc itself. I desinstalled all the deb binary pandoc packages deleted .cabal and .ghc and run cabal update cabal install pandoc --enable-tests I compile the filter, ghc --make stripmath.hs This is the filter which worked fine in pandoc 1.17 ,---- | | import Text.Pandoc.JSON | | main = toJSONFilter stripmath | where stripmath (Math _ _) = Str "FORMULA" | stripmath x = x | `---- I run it pandoc test.tex -t json | /home/oub/ALLES/HGs/scripts/stripmath | pandoc -f json -t plain -o test.txt' and again the error message pops up Error at "source" (line 96, column 46): unexpected % \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% ^ stripmath64bit: Error in $: not enough input JSON parse error Again everything was fine in 1.17 Uwe Brauer ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <873725jggo.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: [not found] ` <873725jggo.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2018-02-13 17:12 ` John MacFarlane 2018-02-13 17:46 ` Re: Uwe Brauer 2018-02-15 8:53 ` [Bug/Error in latex reader, but syntax ok] (was: ) Uwe Brauer 2018-02-13 18:32 ` Re: Jesse Rosenthal 1 sibling, 2 replies; 30+ messages in thread From: John MacFarlane @ 2018-02-13 17:12 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw It looks like this error may have something to do with the specifics of your filter; perhaps you could post it? +++ Uwe Brauer [Feb 13 18 12:07 ]: >>>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > > > The filter has to be compiled againts the same version of > > pandoc-types as the binary you're using. I'm guessing > > this hasn't happened in this case, but I'd need to > > know more about your package versions. > > > One solution would be to remove your pandoc 2.1.1 > > (assuming you installed from our binary package) > > and use cabal to install pandoc itself. > >I desinstalled all the deb binary pandoc packages deleted .cabal and >.ghc >and run > >cabal update >cabal install pandoc --enable-tests >I compile the filter, > >ghc --make stripmath.hs > >This is the filter which worked fine in pandoc 1.17 >,---- >| >| import Text.Pandoc.JSON >| >| main = toJSONFilter stripmath >| where stripmath (Math _ _) = Str "FORMULA" >| stripmath x = x >| >`---- > >I run it >pandoc test.tex -t json | /home/oub/ALLES/HGs/scripts/stripmath | pandoc -f json -t plain -o test.txt' > > >and again the error message pops up > > > >Error at "source" (line 96, column 46): >unexpected % >\cite{oliynyk16:_futur_flrw,oliynyk15:_newton% > ^ >stripmath64bit: Error in $: not enough input >JSON parse error > > >Again everything was fine in 1.17 > >Uwe Brauer > >-- >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/873725jggo.fsf%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2018-02-13 17:12 ` Re: John MacFarlane @ 2018-02-13 17:46 ` Uwe Brauer 2018-02-15 8:53 ` [Bug/Error in latex reader, but syntax ok] (was: ) Uwe Brauer 1 sibling, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2018-02-13 17:46 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > It looks like this error may have something to do with > the specifics of your filter; perhaps you could post it? But I did it my last post. Ok here it comes again ,---- | | import Text.Pandoc.JSON | | main = toJSONFilter stripmath | where stripmath (Math _ _) = Str "FORMULA" | stripmath x = x `---- You wrote that filter a couple of months ago or maybe more than a year ago. ^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug/Error in latex reader, but syntax ok] (was: ) 2018-02-13 17:12 ` Re: John MacFarlane 2018-02-13 17:46 ` Re: Uwe Brauer @ 2018-02-15 8:53 ` Uwe Brauer 2018-02-15 18:02 ` John MacFarlane 1 sibling, 1 reply; 30+ messages in thread From: Uwe Brauer @ 2018-02-15 8:53 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw > It looks like this error may have something to do with > the specifics of your filter; perhaps you could post it? I followed Jesse's advice and indeed there is a problem with the latex reader in new versions of pandoc. Syntactical correct latex, Such as \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% } So running Pandoc test.tex -o test.txt with such a file leads to pandoc Report.tex -o test.txt Error at "source" (line 96, column 46): unexpected % \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% This is a but in pandoc, I think. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: (was: ) @ 2018-02-15 18:02 ` John MacFarlane 2018-02-17 17:59 ` Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: John MacFarlane @ 2018-02-15 18:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Looks like a bug, yes. Can you report it on the github tracker? +++ Uwe Brauer [Feb 15 18 09:53 ]: > > > It looks like this error may have something to do with > > the specifics of your filter; perhaps you could post it? > >I followed Jesse's advice and indeed there is a problem with the latex >reader in new versions of pandoc. Syntactical correct latex, > >Such as > >\cite{oliynyk16:_futur_flrw,oliynyk15:_newton% >} > > >So running > >Pandoc test.tex -o test.txt >with such a file leads to > >pandoc Report.tex -o test.txt > >Error at "source" (line 96, column 46): >unexpected % >\cite{oliynyk16:_futur_flrw,oliynyk15:_newton% > > >This is a but in pandoc, I think. > > >-- >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/87inay7hx0.fsf_-_%40mat.ucm.es. >For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2018-02-15 18:02 ` John MacFarlane @ 2018-02-17 17:59 ` Uwe Brauer 0 siblings, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2018-02-17 17:59 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > Looks like a bug, yes. Can you report it on the github tracker? Done! ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [not found] ` <873725jggo.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2018-02-13 17:12 ` Re: John MacFarlane @ 2018-02-13 18:32 ` Jesse Rosenthal [not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921@mat.ucm.es> 2018-02-13 21:43 ` Re: Uwe Brauer 1 sibling, 2 replies; 30+ messages in thread From: Jesse Rosenthal @ 2018-02-13 18:32 UTC (permalink / raw) To: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: >>>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > Error at "source" (line 96, column 46): > unexpected % > \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% The error here seems to be not in the filter, but in the fact that pandoc can't parse the LaTeX. Note that running `pandoc -f latex` on this input: \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% } will produce the above error. And then since you have no output, you're passing nothing through the pipe to your script. Try running just pandoc on the file, and see if this is the issue. ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <c5aa96f9-40a0-6ebc-c376-6d1d7b695921@mat.ucm.es>]
[parent not found: <c5aa96f9-40a0-6ebc-c376-6d1d7b695921-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: [not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2018-02-13 19:00 ` Jesse Rosenthal 2018-02-13 21:48 ` Re: Uwe Brauer 0 siblings, 1 reply; 30+ messages in thread From: Jesse Rosenthal @ 2018-02-13 19:00 UTC (permalink / raw) To: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: > but why does it work with the filter compiled against pandoc 1.17? Again, I don't think it has anything to do with the filter. I assume the LaTeX reader must have changed. Did you try running the file through a recent pandoc without the filter? (The JSON format changed in 1.18, so I'm almost certain you couldn't be running the output of a new pandoc through a filter compiled against 1.17.) ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2018-02-13 19:00 ` Re: Jesse Rosenthal @ 2018-02-13 21:48 ` Uwe Brauer 0 siblings, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2018-02-13 21:48 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "Jesse" == Jesse Rosenthal <jrosenthal-4GNroTWusrE@public.gmane.org> writes: > Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: >> but why does it work with the filter compiled against pandoc 1.17? > Again, I don't think it has anything to do with the filter. I assume the > LaTeX reader must have changed. Did you try running the file through a > recent pandoc without the filter? > (The JSON format changed in 1.18, so I'm almost certain you couldn't be > running the output of a new pandoc through a filter compiled against > 1.17.) Maybe I misunderstood you I wanted to combine the old filter with the new reader. Old filter and old reader are involved via pandoc Report.tex -t json /home/oub/ALLES/HGs/scripts/stripmath32bit | pandoc -f json -t plain -o out.txt So I tried pandoc Report.tex -t json /home/oub/ALLES/HGs/scripts/stripmath32bit But I got pandoc: Cannot decode byte '\xc7': Data.Text.Internal.Encoding.Fusion.streamUtf8: Invalid UTF-8 stream Now I am even more puzzled. ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: 2018-02-13 18:32 ` Re: Jesse Rosenthal [not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921@mat.ucm.es> @ 2018-02-13 21:43 ` Uwe Brauer 1 sibling, 0 replies; 30+ messages in thread From: Uwe Brauer @ 2018-02-13 21:43 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "Jesse" == Jesse Rosenthal <jrosenthal-4GNroTWusrE@public.gmane.org> writes: > Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: >>>>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: >> Error at "source" (line 96, column 46): >> unexpected % >> \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% > The error here seems to be not in the filter, but in the fact that > pandoc can't parse the LaTeX. Note that running `pandoc -f latex` on > this input: > \cite{oliynyk16:_futur_flrw,oliynyk15:_newton% > } > will produce the above error. And then since you have no output, > you're passing nothing through the pipe to your script. Try running > just pandoc on the file, and see if this is the issue. Ok now I understand, I am sorry I have not read your email carefully enough before. I have the different filters in different machine, I will now run the old filter and see tomorrow whether the new reader can deal with it. In case it can't what would be the solution. I was so happy with the old filter and reader because it solved an important issue for me. Uwe ^ permalink raw reply [flat|nested] 30+ messages in thread
* (unknown) @ 2019-04-25 1:09 lcy1980.ly [not found] ` <5cc108ce.1c69fb81.7cd5a.f1b5-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: lcy1980.ly @ 2019-04-25 1:09 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 607 bytes --] Unsubscribe me from this group now! -- 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/5cc108ce.1c69fb81.7cd5a.f1b5%40mx.google.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 1089 bytes --] ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <5cc108ce.1c69fb81.7cd5a.f1b5-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org>]
* Re: [not found] ` <5cc108ce.1c69fb81.7cd5a.f1b5-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org> @ 2019-04-25 1:27 ` Xing GUO 2019-04-25 7:02 ` Re: Joost Kremers 1 sibling, 0 replies; 30+ messages in thread From: Xing GUO @ 2019-04-25 1:27 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1649 bytes --] Note: To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org lcy1980.ly <lcy1980.ly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 於 2019年4月25日 週四 上午9:09 寫道: > Unsubscribe me from this group now! > > -- > 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/5cc108ce.1c69fb81.7cd5a.f1b5%40mx.google.com > <https://groups.google.com/d/msgid/pandoc-discuss/5cc108ce.1c69fb81.7cd5a.f1b5%40mx.google.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CACpMh%2BC9xsNSx7pMvOoqES92QiVchJHqrf7Y2qDWQk5Gn3jirw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 3003 bytes --] ^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [not found] ` <5cc108ce.1c69fb81.7cd5a.f1b5-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org> 2019-04-25 1:27 ` Xing GUO @ 2019-04-25 7:02 ` Joost Kremers 1 sibling, 0 replies; 30+ messages in thread From: Joost Kremers @ 2019-04-25 7:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw On Thu, Apr 25 2019, lcy1980.ly wrote: > Unsubscribe me from this group now! *Every* message from this list has a footer explaining exactly how to unsubscribe. -- Joost Kremers Life has its moments ^ permalink raw reply [flat|nested] 30+ messages in thread
* (unknown) @ 2021-06-08 20:31 T. Kurt Bond [not found] ` <CAN1EhV_aNcHtsaajksgMqk3+nu0spmWMkvkCSh78PyBGLng=vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 30+ messages in thread From: T. Kurt Bond @ 2021-06-08 20:31 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 3920 bytes --] Here's a reStructuredText table that renders improperly: +---------------+------------+---------------+-------------+ | | **Damage** | | **Damage** | +===============+============+===============+=============+ | Axe | +3D | *Modern Tech* | | +---------------+------------+---------------+-------------+ | Club | +1D+1 | Light Pistol | 3D+2 | +---------------+------------+---------------+-------------+ | Hatchet | +1D+1 | Heavy Pistol | 4D | +---------------+------------+---------------+-------------+ | Halberd | +3D | Rifle | 5D | +---------------+------------+---------------+-------------+ | Knife | +1D | Shotgun | 4D+2 | +---------------+------------+---------------+-------------+ | Mace | +1D+1 | BFG | 6D | +---------------+------------+---------------+-------------+ | Rapier | +2D | *Sci-Fi Tech* | +---------------+------------+---------------+-------------+ | Staff | +1D+2 | Plasma Pistol | 5D | +---------------+------------+---------------+-------------+ | Spear | +2D | Plasma Rifle | 6D | +---------------+------------+---------------+-------------+ | Sword | +2D+2 | Plasma BFG | 7D | +---------------+------------+---------------+-------------+ | Sword, 2h | +3D+1 | Plasma Sword | +4D | +---------------+------------+---------------+-------------+ | Warhammer | +3D | *Ranges in Feet (S/M/L)* | +---------------+------------+---------------+-------------+ | Bow | +2D+2 | Bow | 30/100/300 | +---------------+------------+---------------+-------------+ | Crossbow | 4D+1 | Crossbow | 50/150/400 | +---------------+------------+---------------+-------------+ | *Armor Value* | All Pistols | 30/100/350 | +---------------+------------+---------------+-------------+ | Leather | +2 | All Rifles | 100/350/500 | +---------------+------------+---------------+-------------+ | Chainmail | +6 | Shotguns | 50/150/400 | +---------------+------------+---------------+-------------+ | Platemail | +9 | BFG | 100/400/700 | +---------------+------------+---------------+-------------+ | Shield | +4 | Grenades | 10/20/30 | +---------------+------------+---------------+-------------+ Here's the PDF produced with pandoc 2.14.01 via ms output: [image: image.png] The "*Ranges with Feet (S/M/L)*" eight lines from the bottom in the 3rd and 4th columns should be one cell, not two, and the asterisks should have turned it into italics. Same thing in the ConTeXt output: [image: image.png] Here's the docutils output via LaTeX for comparison: [image: image.png] Here's the native output for the row in question: ,Row ("",[],[]) [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) [Plain [Str "Warhammer"]] ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) [Plain [Str "+3D"]] ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) [Plain [Str "*Ranges",Space,Str "in",Space,Str "Feet"]] ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) [Plain [Str "(S/M/L)*"]]] Any ideas? -- T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV_aNcHtsaajksgMqk3%2Bnu0spmWMkvkCSh78PyBGLng%3DvQ%40mail.gmail.com. [-- Attachment #1.2: Type: text/html, Size: 5496 bytes --] [-- Attachment #2: image.png --] [-- Type: image/png, Size: 190230 bytes --] [-- Attachment #3: image.png --] [-- Type: image/png, Size: 220405 bytes --] [-- Attachment #4: image.png --] [-- Type: image/png, Size: 254028 bytes --] ^ permalink raw reply [flat|nested] 30+ messages in thread
[parent not found: <CAN1EhV_aNcHtsaajksgMqk3+nu0spmWMkvkCSh78PyBGLng=vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [not found] ` <CAN1EhV_aNcHtsaajksgMqk3+nu0spmWMkvkCSh78PyBGLng=vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2021-06-09 15:24 ` John MacFarlane 0 siblings, 0 replies; 30+ messages in thread From: John MacFarlane @ 2021-06-09 15:24 UTC (permalink / raw) To: T. Kurt Bond, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw colspans aren't currently supported. See https://github.com/jgm/pandoc/issues/6991 "T. Kurt Bond" <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Here's a reStructuredText table that renders improperly: > > +---------------+------------+---------------+-------------+ > | | **Damage** | | **Damage** | > +===============+============+===============+=============+ > | Axe | +3D | *Modern Tech* | | > +---------------+------------+---------------+-------------+ > | Club | +1D+1 | Light Pistol | 3D+2 | > +---------------+------------+---------------+-------------+ > | Hatchet | +1D+1 | Heavy Pistol | 4D | > +---------------+------------+---------------+-------------+ > | Halberd | +3D | Rifle | 5D | > +---------------+------------+---------------+-------------+ > | Knife | +1D | Shotgun | 4D+2 | > +---------------+------------+---------------+-------------+ > | Mace | +1D+1 | BFG | 6D | > +---------------+------------+---------------+-------------+ > | Rapier | +2D | *Sci-Fi Tech* | > +---------------+------------+---------------+-------------+ > | Staff | +1D+2 | Plasma Pistol | 5D | > +---------------+------------+---------------+-------------+ > | Spear | +2D | Plasma Rifle | 6D | > +---------------+------------+---------------+-------------+ > | Sword | +2D+2 | Plasma BFG | 7D | > +---------------+------------+---------------+-------------+ > | Sword, 2h | +3D+1 | Plasma Sword | +4D | > +---------------+------------+---------------+-------------+ > | Warhammer | +3D | *Ranges in Feet (S/M/L)* | > +---------------+------------+---------------+-------------+ > | Bow | +2D+2 | Bow | 30/100/300 | > +---------------+------------+---------------+-------------+ > | Crossbow | 4D+1 | Crossbow | 50/150/400 | > +---------------+------------+---------------+-------------+ > | *Armor Value* | All Pistols | 30/100/350 | > +---------------+------------+---------------+-------------+ > | Leather | +2 | All Rifles | 100/350/500 | > +---------------+------------+---------------+-------------+ > | Chainmail | +6 | Shotguns | 50/150/400 | > +---------------+------------+---------------+-------------+ > | Platemail | +9 | BFG | 100/400/700 | > +---------------+------------+---------------+-------------+ > | Shield | +4 | Grenades | 10/20/30 | > +---------------+------------+---------------+-------------+ > > Here's the PDF produced with pandoc 2.14.01 via ms output: > [image: image.png] > The "*Ranges with Feet (S/M/L)*" eight lines from the bottom in the > 3rd and 4th columns should be one cell, not two, and the asterisks should > have turned it into italics. > > Same thing in the ConTeXt output: > [image: image.png] > > Here's the docutils output via LaTeX for comparison: > [image: image.png] > > Here's the native output for the row in question: > ,Row ("",[],[]) > [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) > [Plain [Str "Warhammer"]] > ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) > [Plain [Str "+3D"]] > ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) > [Plain [Str "*Ranges",Space,Str "in",Space,Str "Feet"]] > ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) > [Plain [Str "(S/M/L)*"]]] > > Any ideas? > -- > T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV_aNcHtsaajksgMqk3%2Bnu0spmWMkvkCSh78PyBGLng%3DvQ%40mail.gmail.com. ^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2021-06-09 15:24 UTC | newest] Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-08-21 14:26 latex to html or plain text without any latex construct Uwe Brauer [not found] ` <87r2w5xaie.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-21 21:00 ` John MACFARLANE 2017-08-22 12:20 ` Uwe Brauer [not found] ` <871so3yet8.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-22 17:50 ` John MACFARLANE 2017-08-22 20:16 ` Uwe Brauer [not found] ` <878tibz7c2.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-23 0:09 ` John MacFarlane 2017-08-23 12:22 ` [SOLVED, almost] (was: latex to html or plain text without any latex construct) Uwe Brauer [not found] ` <87k21uwk14.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-23 14:15 ` John MacFarlane 2017-08-23 16:13 ` Uwe Brauer [not found] ` <8760dew9da.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-23 20:54 ` Re: John MACFARLANE 2017-08-24 16:26 ` Re: Uwe Brauer [not found] ` <87378h53vq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-24 16:43 ` Re: John MACFARLANE 2017-08-24 17:30 ` Re: Uwe Brauer [not found] ` <87y3q850vx.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2017-08-24 17:56 ` Re: John MACFARLANE 2017-08-24 16:44 ` Re: John MACFARLANE 2017-08-24 17:32 ` Re: Uwe Brauer 2017-08-23 14:15 ` (was: latex to html or plain text without any latex construct) John MacFarlane 2017-08-23 16:13 ` Uwe Brauer 2018-01-31 13:43 pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON' Uwe Brauer 2018-01-31 16:30 ` [installed from source] (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') Uwe Brauer 2018-01-31 17:54 ` John MacFarlane 2018-01-31 19:03 ` Uwe Brauer 2018-02-08 11:34 Ubuntu 16.04 pandoc installation via cabal fails Uwe Brauer 2018-02-08 21:15 ` John MACFARLANE 2018-02-10 10:58 ` [compiled filter does not work anymore] (was: Ubuntu 16.04 pandoc installation via cabal fails) Uwe Brauer 2018-02-12 6:02 ` John MacFarlane 2018-02-13 11:07 ` Uwe Brauer [not found] ` <873725jggo.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2018-02-13 17:12 ` Re: John MacFarlane 2018-02-13 17:46 ` Re: Uwe Brauer 2018-02-15 8:53 ` [Bug/Error in latex reader, but syntax ok] (was: ) Uwe Brauer 2018-02-15 18:02 ` John MacFarlane 2018-02-17 17:59 ` Uwe Brauer 2018-02-13 18:32 ` Re: Jesse Rosenthal [not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921@mat.ucm.es> [not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 2018-02-13 19:00 ` Re: Jesse Rosenthal 2018-02-13 21:48 ` Re: Uwe Brauer 2018-02-13 21:43 ` Re: Uwe Brauer 2019-04-25 1:09 (unknown) lcy1980.ly [not found] ` <5cc108ce.1c69fb81.7cd5a.f1b5-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org> 2019-04-25 1:27 ` Xing GUO 2019-04-25 7:02 ` Re: Joost Kremers 2021-06-08 20:31 (unknown) T. Kurt Bond [not found] ` <CAN1EhV_aNcHtsaajksgMqk3+nu0spmWMkvkCSh78PyBGLng=vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2021-06-09 15:24 ` 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).