Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Show me a good loser, and I'll show you a loser." -- Vince Lombardi, football coach


computers / comp.text.tex / Re: Makefile for compiling beamer with and without notes

SubjectAuthor
* Makefile for compiling beamer with and without notesSivaram Neelakantan
+* Re: Makefile for compiling beamer with and without notesDenis Bitouzé
|`* Re: Makefile for compiling beamer with and without notesSivaram Neelakantan
| `* Re: Makefile for compiling beamer with and without notesDenis Bitouzé
|  `- Re: Makefile for compiling beamer with and without notesSivaram Neelakantan
`* Re: Makefile for compiling beamer with and without notesDr Eberhard Lisse
 +- Re: Makefile for compiling beamer with and without notesSivaram Neelakantan
 +- Re: Makefile for compiling beamer with and without notessamcarter8
 `* Re: Makefile for compiling beamer with and without notessamcarter8
  `- Re: Makefile for compiling beamer with and without notesDr Eberhard W Lisse

1
Makefile for compiling beamer with and without notes

<85ilxyi54z.fsf@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4260&group=comp.text.tex#4260

  copy link   Newsgroups: comp.text.tex
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram.net@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.text.tex
Subject: Makefile for compiling beamer with and without notes
Date: Fri, 15 Oct 2021 22:42:28 +0530
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <85ilxyi54z.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="ba0fa6494aba8262d2fa124681f1a6e3";
logging-data="14777"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nNA+gTbEv1BoDl2OeNZVEfwpVd8mrrnM="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:zbBHEjEQdYjZyBMTLO/Ja9Q5xv0=
sha1:vJUdCGNyj0M7WR/HDK/aeajkffc=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Fri, 15 Oct 2021 17:12 UTC

As the subject says, is there one that can do the equivalent of what I
have currently within the latex file below?

%\setbeameroption{hide notes} % Only slides
\setbeameroption{show notes on second screen=right} % Both
%\setbeameroption{show only notes} % Only notes

sivaram
--

Re: Makefile for compiling beamer with and without notes

<871r4mnnhk.fsf@example.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4261&group=comp.text.tex#4261

  copy link   Newsgroups: comp.text.tex
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dbitouze@wanadoo.fr (Denis Bitouzé)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Fri, 15 Oct 2021 20:37:11 +0200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <871r4mnnhk.fsf@example.com>
References: <85ilxyi54z.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="cc82e556965a616b5167a057b0ed87aa";
logging-data="7756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HjpJ8Td8rSfPuQSQNXsnf2d/PqqJhMOA="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:GxVuwB0t+1HLaXg3G9S9Pk6ed94=
sha1:OA/KIzduS+Fzov/fMbJYcwhT1eg=
X-Archive: encrypt
X-Url: http://gte.univ-littoral.fr/members/dbitouze/pub/latex
 by: Denis Bitouzé - Fri, 15 Oct 2021 18:37 UTC

Le 15/10/21 à 22h42, Sivaram Neelakantan a écrit :

> As the subject says, is there one that can do the equivalent of what I
> have currently within the latex file below?
>
> %\setbeameroption{hide notes} % Only slides
> \setbeameroption{show notes on second screen=right} % Both
> %\setbeameroption{show only notes} % Only notes
>
>
> sivaram

1. Create a `main.tex` containing all your current file, except:
- `\documentclass[...]{beamer}`,
- the `\setbeameroption{...}` above.
2. Create 3 files:
1. `only-slides.tex` containing only:
--8<---------------cut here---------------start------------->8---
\documentclass[...]{beamer}
\setbeameroption{hide notes}
\input{main}
--8<---------------cut here---------------end--------------->8---
2. `both.tex` containing only:
--8<---------------cut here---------------start------------->8---
\documentclass[...]{beamer}
\setbeameroption{show notes on second screen=right}
\input{main}
--8<---------------cut here---------------end--------------->8---
┌────
│ \documentclass[...]{beamer}
│ \setbeameroption{show only notes}
│ \input{main}
└────
3. `only-notes.tex` containing only:
--8<---------------cut here---------------start------------->8---
\documentclass[...]{beamer}
\setbeameroption{hide notes}
\input{main}
--8<---------------cut here---------------end--------------->8---
3. Create a `makefile` containing:
--8<---------------cut here---------------start------------->8---
only-slides:
latexmk only-slides
both:
latexmk both
only-notes:
latexmk only-notes
--8<---------------cut here---------------end--------------->8---
--
Denis

Re: Makefile for compiling beamer with and without notes

<85ee8lhtf6.fsf@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4262&group=comp.text.tex#4262

  copy link   Newsgroups: comp.text.tex
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram.net@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Sat, 16 Oct 2021 21:07:49 +0530
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <85ee8lhtf6.fsf@gmail.com>
References: <85ilxyi54z.fsf@gmail.com> <871r4mnnhk.fsf@example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f725e4c999f13a5cc855b2dabcad93c8";
logging-data="2727"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dOPBEXDfn6k1xP/8Y18XZl3vABUUYNd4="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:NbkLB4UO10j9hDuA6Xh67xCfQME=
sha1:/iyLMEBarhCq20ReAXEOVwqZBBU=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Sat, 16 Oct 2021 15:37 UTC

On Fri, Oct 15 2021,Denis Bitouzé wrote:

[snipped 12 lines]

> 1. Create a `main.tex` containing all your current file, except:
> - `\documentclass[...]{beamer}`,
> - the `\setbeameroption{...}` above.
> 2. Create 3 files:
> 1. `only-slides.tex` containing only:
> --8<---------------cut here---------------start------------->8---
> \documentclass[...]{beamer}
> \setbeameroption{hide notes}
> \input{main}
> --8<---------------cut here---------------end--------------->8---
> 2. `both.tex` containing only:
> --8<---------------cut here---------------start------------->8---
> \documentclass[...]{beamer}
> \setbeameroption{show notes on second screen=right}
> \input{main}
> --8<---------------cut here---------------end--------------->8---
> ┌────
> │ \documentclass[...]{beamer}
> │ \setbeameroption{show only notes}
> │ \input{main}
> └────
> 3. `only-notes.tex` containing only:
> --8<---------------cut here---------------start------------->8---
> \documentclass[...]{beamer}
> \setbeameroption{hide notes}
> \input{main}
> --8<---------------cut here---------------end--------------->8---
> 3. Create a `makefile` containing:
>
> only-slides:
> latexmk only-slides
> both:
> latexmk both
> only-notes:
> latexmk only-notes

Thank you. This is what I modified it to, which seems to work.

--8<---------------cut here---------------start------------->8---
DOC=ML_CNF
only_slides: clean
latexmk -pdf only_slides
mv only_slides.pdf ${DOC}_only_slides.pdf 2>/dev/null
both: clean
latexmk -pdf both
mv both.pdf ${DOC}_both_slides_notes.pdf 2>/dev/null
only_notes: clean
latexmk -pdf only_notes
mv only_notes.pdf ${DOC}_only_notes.pdf 2>/dev/null

all: clean only_slides both only_notes

clean:
rm -f *.log *.aux *.snm *.nav *.out *.toc *.fls *.fdb_latexmk *.dvi
--8<---------------cut here---------------end--------------->8---

though now I have a new issue that I don't know where to look

The only_notes deck has numbering which is going 2 of 1, 3 of 1 etc
instead of 1 of 4, 2 of 4, 3 of 4. The makefile output is below and I
have no idea where the error is. I have no idea why .nav is not
generated.

--8<---------------cut here---------------start------------->8---
Output written on only_notes.pdf (4 pages, 39489 bytes).
Transcript written on only_notes.log.
Latexmk: Examining 'only_notes.log'
=== TeX engine is 'pdfTeX'
Latexmk: Missing input file: 'only_notes.nav' from line
'No file only_notes.nav.'
Latexmk: Log file says output to 'only_notes.pdf'
Latexmk: All targets (only_notes.pdf) are up-to-date
mv only_notes.pdf ML_CNF_only_notes.pdf 2>/dev/null
--8<---------------cut here---------------end--------------->8---

sivaram
--

Re: Makefile for compiling beamer with and without notes

<it5621FbsbiU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4263&group=comp.text.tex#4263

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nospam@lisse.NA (Dr Eberhard Lisse)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Mon, 18 Oct 2021 14:02:07 +0200
Lines: 53
Message-ID: <it5621FbsbiU1@mid.individual.net>
References: <85ilxyi54z.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net AydspzY3FTVgd1JDYhra0wntaAKFwt8MHiaiDuD9OafQvcocWd
Cancel-Lock: sha1:uyEaGAZPr/gvzsAiWt6ZJElUhDE=
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2)
Gecko/20060308 Thunderbird/1.5.0.2 Mnenhy/0.7.4.0
Content-Language: en-US
In-Reply-To: <85ilxyi54z.fsf@gmail.com>
 by: Dr Eberhard Lisse - Mon, 18 Oct 2021 12:02 UTC

I would do something like this:

In the preable ot the tex file put

\usepackage{etoolbox}
\newbool{both}
\boolfalse{both}
\newbool{notes}
\boolfalse{notes}
\newbool{slides}
\booltrue{slides}

and

\ifbool{slides}{\setbeameroption{hide notes}}{}
\ifbool{both}{\setbeameroption{show notes on second screen=right}}{}
\ifbool{slides}{\setbeameroption{show only notes}}{}

and the in the makefile something like

notes: beamerfile.tex
perl -i -p \
-e 's/\\booltrue\{both\}/\\boolfalse\{both\}/g;' \
-e 's/\\booltrue\{slides\}/\\boolfalse\{slides\}/g;' \
-e 's/\\boolfalse\{notes\}/\\booltrue\{notes\}/g;' \
beamerfile.tex
latexmk beamerfile.tex

plus the other two possibilites...

then a

make notes

should do the trick

el

On 15/10/2021 19:12, Sivaram Neelakantan wrote:
> As the subject says, is there one that can do the equivalent of what I
> have currently within the latex file below?
>
> %\setbeameroption{hide notes} % Only slides
> \setbeameroption{show notes on second screen=right} % Both
> %\setbeameroption{show only notes} % Only notes
>
>
> sivaram
>

--
To email me replace 'nospam' with 'el'

Re: Makefile for compiling beamer with and without notes

<87r1ciwkz4.fsf@example.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4264&group=comp.text.tex#4264

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dbitouze@wanadoo.fr (Denis Bitouzé)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Mon, 18 Oct 2021 14:55:43 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <87r1ciwkz4.fsf@example.com>
References: <85ilxyi54z.fsf@gmail.com> <871r4mnnhk.fsf@example.com>
<85ee8lhtf6.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="e165d5521f3ec47a1390d79a38295790";
logging-data="8006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Nc2Z/jTZS6UX0wLfUldUeTacdqyx18jo="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:kj+cSvLDv0C7+wig1s8jHg9Db5w=
sha1:ktAGe+VPF/hPrT0RgIyHUJWveVo=
X-Archive: encrypt
X-Url: http://gte.univ-littoral.fr/members/dbitouze/pub/latex
 by: Denis Bitouzé - Mon, 18 Oct 2021 12:55 UTC

Le 16/10/21 à 21h07, Sivaram Neelakantan a écrit :

> I have no idea why .nav is not generated.

What happens if you don't clean the `*.nav` files?
--
Denis

Re: Makefile for compiling beamer with and without notes

<85a6j5iizx.fsf@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4265&group=comp.text.tex#4265

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram.net@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Tue, 19 Oct 2021 12:44:26 +0530
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <85a6j5iizx.fsf@gmail.com>
References: <85ilxyi54z.fsf@gmail.com> <871r4mnnhk.fsf@example.com>
<85ee8lhtf6.fsf@gmail.com> <87r1ciwkz4.fsf@example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="97e2727da9a8044fa3a2e21816b4653f";
logging-data="3386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uzRnbh9uWQfqc6bpwaheAi3injPt7clM="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:Bg4rV/O/1rAPbK7D8Goi40s/gg0=
sha1:9EPDIkL22dbar2z5lvgw4xtP1h4=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Tue, 19 Oct 2021 07:14 UTC

On Mon, Oct 18 2021,Denis Bitouzé wrote:

> Le 16/10/21 à 21h07, Sivaram Neelakantan a écrit :
>
>> I have no idea why .nav is not generated.
>
> What happens if you don't clean the `*.nav` files?

Same issue

--8<---------------cut here---------------start------------->8---
Latexmk: Examining 'only_notes.log'
=== TeX engine is 'pdfTeX'
Latexmk: Missing input file: 'only_notes.nav' from line
'No file only_notes.nav.'
Latexmk: Log file says output to 'only_notes.pdf'
Latexmk: All targets (only_notes.pdf) are up-to-date
mv only_notes.pdf ML_CNF_only_notes.pdf 2>/dev/null

$ ll *.nav
only_slides.nav

$ cat only_slides.nav # as it says above there's no only_notes.nav
\headcommand {\slideentry {0}{0}{1}{1/1}{}{0}}
\headcommand {\beamer@framepages {1}{1}}
\headcommand {\slideentry {0}{0}{2}{2/2}{}{0}}
\headcommand {\beamer@framepages {2}{2}}
\headcommand {\slideentry {0}{0}{3}{3/3}{}{0}}
\headcommand {\beamer@framepages {3}{3}}
\headcommand {\slideentry {0}{0}{4}{4/4}{}{0}}
\headcommand {\beamer@framepages {4}{4}}
\headcommand {\slideentry {0}{0}{5}{5/5}{}{0}}
\headcommand {\beamer@framepages {5}{5}}
\headcommand {\slideentry {0}{0}{6}{6/6}{}{0}}
\headcommand {\beamer@framepages {6}{6}}
\headcommand {\slideentry {0}{0}{7}{7/7}{}{0}}
\headcommand {\beamer@framepages {7}{7}}
\headcommand {\slideentry {0}{0}{8}{8/8}{}{0}}
\headcommand {\beamer@framepages {8}{8}}
\headcommand {\beamer@partpages {1}{8}}
\headcommand {\beamer@subsectionpages {1}{8}}
\headcommand {\beamer@sectionpages {1}{8}}
\headcommand {\beamer@documentpages {8}}
\headcommand {\gdef \inserttotalframenumber {8}}

$ cat only_notes.tex
\documentclass[usenames,dvipsnames]{beamer}
\setbeameroption{show only notes} % Only notes
\input{main}
--8<---------------cut here---------------end--------------->8---

sivaram
--

Re: Makefile for compiling beamer with and without notes

<855yttiiuh.fsf@gmail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4266&group=comp.text.tex#4266

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nsivaram.net@gmail.com (Sivaram Neelakantan)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Tue, 19 Oct 2021 12:47:42 +0530
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <855yttiiuh.fsf@gmail.com>
References: <85ilxyi54z.fsf@gmail.com> <it5621FbsbiU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="97e2727da9a8044fa3a2e21816b4653f";
logging-data="3386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vOt8ULwP4cDmy/YqLlP7vk/BKnwsCof8="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)
Cancel-Lock: sha1:XLKLxJlQZT6y4701j2VEA1siXws=
sha1:BOCzTvVjMC7zoD13c6yWe3oDo4Q=
User-Mail-Address: nsivaram.net@gmail.com
 by: Sivaram Neelakantan - Tue, 19 Oct 2021 07:17 UTC

On Mon, Oct 18 2021,Dr Eberhard Lisse wrote:

> I would do something like this:
>
> In the preable ot the tex file put
>
> \usepackage{etoolbox}
> \newbool{both}
> \boolfalse{both}
> \newbool{notes}
> \boolfalse{notes}
> \newbool{slides}
> \booltrue{slides}
>
> and
>
> \ifbool{slides}{\setbeameroption{hide notes}}{}
> \ifbool{both}{\setbeameroption{show notes on second screen=right}}{}
> \ifbool{slides}{\setbeameroption{show only notes}}{}
>
> and the in the makefile something like
>
> notes: beamerfile.tex
> perl -i -p \
> -e 's/\\booltrue\{both\}/\\boolfalse\{both\}/g;' \
> -e 's/\\booltrue\{slides\}/\\boolfalse\{slides\}/g;' \
> -e 's/\\boolfalse\{notes\}/\\booltrue\{notes\}/g;' \
> beamerfile.tex
> latexmk beamerfile.tex
>
> plus the other two possibilites...
>
> then a
>
> make notes
>
> should do the trick
>
> el

[snipped 12 lines]

Thank you. This too looks like a good way to generate docs.

sivaram
--

Re: Makefile for compiling beamer with and without notes

<skpacd$nrp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4267&group=comp.text.tex#4267

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sam.carter8@aol.com (samcarter8)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Wed, 20 Oct 2021 16:50:52 +0200
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <skpacd$nrp$1@dont-email.me>
References: <85ilxyi54z.fsf@gmail.com> <it5621FbsbiU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Oct 2021 14:50:53 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="47bcb6ba7cdd4472c424d27f34a32e59";
logging-data="24441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//f27yygvXFnV226ZsHvywCy217ytCdvA="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0)
Gecko/20100101 Thunderbird/78.11.0
Cancel-Lock: sha1:TEtYg6M/sVEvdf81FQQLk3fxlZU=
In-Reply-To: <it5621FbsbiU1@mid.individual.net>
Content-Language: en-GB
 by: samcarter8 - Wed, 20 Oct 2021 14:50 UTC

It is not necessary to actually change the .tex with perl, you can pass
the options via the `pretex` option of latexmk, see e.g. the example in

https://topanswers.xyz/tex?q=583#a632

On 18.10.21 14:02, Dr Eberhard Lisse wrote:
> I would do something like this:
>
> In the preable ot the tex file put
>
>      \usepackage{etoolbox}
>      \newbool{both}
>      \boolfalse{both}
>      \newbool{notes}
>      \boolfalse{notes}
>      \newbool{slides}
>      \booltrue{slides}
>
> and
>
>      \ifbool{slides}{\setbeameroption{hide notes}}{}
>      \ifbool{both}{\setbeameroption{show notes on second screen=right}}{}
>      \ifbool{slides}{\setbeameroption{show only notes}}{}
>
> and the in the makefile something like
>
>      notes:        beamerfile.tex
>           perl -i -p \
>                 -e 's/\\booltrue\{both\}/\\boolfalse\{both\}/g;' \
>                 -e 's/\\booltrue\{slides\}/\\boolfalse\{slides\}/g;' \
>                 -e 's/\\boolfalse\{notes\}/\\booltrue\{notes\}/g;' \
>                 beamerfile.tex
>             latexmk beamerfile.tex
>
> plus the other two possibilites...
>
> then a
>
>      make notes
>
> should do the trick
>
> el
>
>
> On 15/10/2021 19:12, Sivaram Neelakantan wrote:
>> As the subject says, is there one that can do the equivalent of what I
>> have currently within the latex file below?
>>
>> %\setbeameroption{hide notes} % Only slides
>> \setbeameroption{show notes on second screen=right} % Both
>> %\setbeameroption{show only notes} % Only notes
>>
>>
>> sivaram
>>
>

Re: Makefile for compiling beamer with and without notes

<skpaff$nrp$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4268&group=comp.text.tex#4268

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sam.carter8@aol.com (samcarter8)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Wed, 20 Oct 2021 16:52:31 +0200
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <skpaff$nrp$2@dont-email.me>
References: <85ilxyi54z.fsf@gmail.com> <it5621FbsbiU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Oct 2021 14:52:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="47bcb6ba7cdd4472c424d27f34a32e59";
logging-data="24441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183qTPA2cEtlJXbRwR3qOezzQF3eftTxSQ="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0)
Gecko/20100101 Thunderbird/78.11.0
Cancel-Lock: sha1:ekl+vqzZ7zj6vBy+Yv4d9PAxc6w=
In-Reply-To: <it5621FbsbiU1@mid.individual.net>
Content-Language: en-GB
 by: samcarter8 - Wed, 20 Oct 2021 14:52 UTC

P.S. if you then also choose different jobnames for the different
options you might avoid some unnecessary recompilations

On 20.10.21 16:50, samcarter8 wrote:
> It is not necessary to actually change the .tex with perl, you can pass
> the options via the `pretex` option of latexmk, see e.g. the example in
>
> https://topanswers.xyz/tex?q=583#a632
>
> On 18.10.21 14:02, Dr Eberhard Lisse wrote:
>> I would do something like this:
>>
>> In the preable ot the tex file put
>>
>>       \usepackage{etoolbox}
>>       \newbool{both}
>>       \boolfalse{both}
>>       \newbool{notes}
>>       \boolfalse{notes}
>>       \newbool{slides}
>>       \booltrue{slides}
>>
>> and
>>
>>       \ifbool{slides}{\setbeameroption{hide notes}}{}
>>       \ifbool{both}{\setbeameroption{show notes on second
>> screen=right}}{}
>>       \ifbool{slides}{\setbeameroption{show only notes}}{}
>>
>> and the in the makefile something like
>>
>>       notes:        beamerfile.tex
>>            perl -i -p \
>>                  -e 's/\\booltrue\{both\}/\\boolfalse\{both\}/g;' \
>>                  -e 's/\\booltrue\{slides\}/\\boolfalse\{slides\}/g;' \
>>                  -e 's/\\boolfalse\{notes\}/\\booltrue\{notes\}/g;' \
>>                  beamerfile.tex
>>              latexmk beamerfile.tex
>>
>> plus the other two possibilites...
>>
>> then a
>>
>>       make notes
>>
>> should do the trick
>>
>> el
>>
>>
>> On 15/10/2021 19:12, Sivaram Neelakantan wrote:
>>> As the subject says, is there one that can do the equivalent of what I
>>> have currently within the latex file below?
>>>
>>> %\setbeameroption{hide notes} % Only slides
>>> \setbeameroption{show notes on second screen=right} % Both
>>> %\setbeameroption{show only notes} % Only notes
>>>
>>>
>>> sivaram
>>>
>>
>

Re: Makefile for compiling beamer with and without notes

<itf6akF9en9U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4270&group=comp.text.tex#4270

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nospam@lisse.NA (Dr Eberhard W Lisse)
Newsgroups: comp.text.tex
Subject: Re: Makefile for compiling beamer with and without notes
Date: Fri, 22 Oct 2021 09:08:04 +0200
Lines: 16
Message-ID: <itf6akF9en9U1@mid.individual.net>
References: <85ilxyi54z.fsf@gmail.com> <it5621FbsbiU1@mid.individual.net>
<skpaff$nrp$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net JIJeYpV44kyZmVXXZPiKbwn9nvcgq7oU/iJjKH33ez+ddRQYNj
Cancel-Lock: sha1:q/tPzA/ylwGKBRL8RUX+ZPRXzVI=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.2.0
Content-Language: en-US
In-Reply-To: <skpaff$nrp$2@dont-email.me>
 by: Dr Eberhard W Lisse - Fri, 22 Oct 2021 07:08 UTC

Sam,

That will also work, but then you need to compile it with pretex every
time, which I sometimes don't.

greetings, el
On 2021-10-20 16:52 , samcarter8 wrote:
> P.S. if you then also choose different jobnames for the different
> options you might avoid some unnecessary recompilations
>
> On 20.10.21 16:50, samcarter8 wrote:
>> It is not necessary to actually change the .tex with perl, you can
>> pass the options via the `pretex` option of latexmk, see e.g. the
>> example in
[...]


computers / comp.text.tex / Re: Makefile for compiling beamer with and without notes

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor