public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Louis Turk <louisaturk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: \newif\ifepub
Date: Wed, 26 May 2021 12:47:59 -0700	[thread overview]
Message-ID: <m27djltgy8.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <3b7f9f69-038e-48b2-a4aa-a9ef9698d5e2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


Just to be clear on what you're looking for:  as I understand it,
you are converting from LaTeX to something else, and you want
pandoc to understand

\iffalse
\iftrue
\newif\iffoo  [ creates command \iffoo and defines it as \iffalse ]
\footrue  [ redefines \iffoo to \iftrue ]
\foofalse [ redefines \iffoo to \iffalse ]

So then you can do

\newif\iffoo
\foofalse

\iffoo

stuff you don't want pandoc to try to convert

\fi


Louis Turk <louisaturk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Thanks for responding. How much would it cost to get that \newif logic 
> implemented?
>
> On Wednesday, May 26, 2021 at 12:49:43 PM UTC-5 Louis Turk wrote:
>
>> How can I make pandoc use latex newif  logic so that latex code that 
>> pandoc can't handle is not read?
>
> -- 
> 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/3b7f9f69-038e-48b2-a4aa-a9ef9698d5e2n%40googlegroups.com.


  parent reply	other threads:[~2021-05-26 19:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 17:49 \newif\ifepub Louis Turk
     [not found] ` <7b095fb7-06ff-47ed-856c-e264f25eac11n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-26 18:23   ` \newif\ifepub John MacFarlane
2021-05-26 19:25   ` \newif\ifepub Louis Turk
     [not found]     ` <3b7f9f69-038e-48b2-a4aa-a9ef9698d5e2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-26 19:47       ` John MacFarlane [this message]
     [not found]         ` <m27djltgy8.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-26 20:27           ` \newif\ifepub Louis Turk
2021-05-27 16:22       ` \newif\ifepub John MacFarlane
     [not found]         ` <m2r1hsrvsf.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-06-01  1:12           ` \newif\ifepub Louis Turk

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=m27djltgy8.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=louisaturk-Re5JQEeQqe8AvxtiuMwx3w@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).