public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: latex to html or plain text without any latex construct
Date: Mon, 21 Aug 2017 14:00:00 -0700	[thread overview]
Message-ID: <20170821210000.GD9940@protagoras.berkeley.edu> (raw)
In-Reply-To: <87r2w5xaie.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>

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.


  parent reply	other threads:[~2017-08-21 21:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-21 14:26 Uwe Brauer
     [not found] ` <87r2w5xaie.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2017-08-21 21:00   ` John MACFARLANE [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170821210000.GD9940@protagoras.berkeley.edu \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).