Deutsch   English   Français   Italiano  
<77fa6d9f-4ce9-4c50-b422-814ad50e8b1en@googlegroups.com>

View for Bookmarking (what is this?)
Look up another Usenet article

X-Received: by 2002:a05:622a:1a1a:b0:393:aff4:c3f4 with SMTP id f26-20020a05622a1a1a00b00393aff4c3f4mr4010649qtb.350.1665146818548;
        Fri, 07 Oct 2022 05:46:58 -0700 (PDT)
X-Received: by 2002:a81:6ccf:0:b0:35b:c5a5:1df3 with SMTP id
 h198-20020a816ccf000000b0035bc5a51df3mr4535504ywc.132.1665146818299; Fri, 07
 Oct 2022 05:46:58 -0700 (PDT)
Path: ...!news.nobody.at!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: fr.comp.text.tex
Date: Fri, 7 Oct 2022 05:46:57 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:842a:838d:2c01:98ed:5371:afeb:61ec;
 posting-account=_4U1BQoAAAATFOu2QrnujIeoJPeIbW6L
NNTP-Posting-Host: 2a02:842a:838d:2c01:98ed:5371:afeb:61ec
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <77fa6d9f-4ce9-4c50-b422-814ad50e8b1en@googlegroups.com>
Subject: Deux PDFs via un lancement de compilation
From: projetmbc <projetmbc@gmail.com>
Injection-Date: Fri, 07 Oct 2022 12:46:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Bytes: 1806
Lines: 26

Bonjour.

Comment produire deux PDFs dont les rendus d=C3=A9pendent de la valeur d'un=
 bool=C3=A9en, et ceci en lan=C3=A7ant juste une compilation ?

C'est un coll=C3=A8gue qui m'a pos=C3=A9 la question. Pour ma part, je pass=
erais via un b=C3=AAte script bash, ou pourquoi pas un makefile.

~~~~~~~~~~~~~~~~~~~~~~~~

\documentclass[12pt]{article}

\usepackage{etoolbox}
\newbool{test}
\setbool{test}{false}

\begin{document}

\section{Double compilation ?}

\ifbool{test}{
	Bool=C3=A9en vrai.
}{
	Bool=C3=A9en faux.
}

\end{document}