Here is the exact code:

\documentclass[00-main.tex]{subfiles}
\begin{document}

% Actually, the following two lines are in the 00-main.tex file.
\newif\ifepub
\epubtrue

\ifepub
\let\footnoteA\footnote
\let\footnoteB\footnote
\else
\fancyhf{} % delete current header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[CE,CO]{\bfseries YOHANES}
\headsep = 0pt
\setcounter{chapter}{1}
\chapter*{\begin{center}\textbf{YOHANES}\end{center}}
\addcontentsline{toc}{chapter}{Yohanes}
\begin{multicols}{2}
\fi

%The following line is an example of the footnotes that must be converted.
Dan dari kepenuhan-Nya kita semua sudah menerima, dan rahmat demi rahmat.\footnoteA{Rahmat adalah pemberian yang diberikan kepada seseorang yang tidak layak menerimanya.}

\ifepub
\else
\end{multicols}
\fi
\end{document}

On Wednesday, May 26, 2021 at 2:48:14 PM UTC-5 John MacFarlane wrote:

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 <louis...@gmail.com> 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-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3b7f9f69-038e-48b2-a4aa-a9ef9698d5e2n%40googlegroups.com.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a9e61a04-4165-4e6c-9ee8-bc437115c781n%40googlegroups.com.