public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* 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
* 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
* 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
* (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
* (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

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).