From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112386 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeroen via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Code document and simpleslides and create in one go the document with simpleslides added Date: Fri, 6 Aug 2021 19:02:43 +0200 Message-ID: References: <0c99551b-0221-996e-71e3-07a721e40ff8@uni-bonn.de> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4344149673491324696==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7664"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jeroen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 06 19:03:50 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mC3GA-0001mM-9Y for gctc-ntg-context-518@m.gmane-mx.org; Fri, 06 Aug 2021 19:03:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B49582863CE; Fri, 6 Aug 2021 19:03:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0LeLdkezbYqk; Fri, 6 Aug 2021 19:03:01 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7347B2864EE; Fri, 6 Aug 2021 19:03:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 33BE22864C6 for ; Fri, 6 Aug 2021 19:02:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mp7MDBkzfNsm for ; Fri, 6 Aug 2021 19:02:57 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.45; helo=mail-io1-f45.google.com; envelope-from=contextntg@gmail.com; receiver= Original-Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 83A482863CE for ; Fri, 6 Aug 2021 19:02:57 +0200 (CEST) Original-Received: by mail-io1-f45.google.com with SMTP id a13so12473279iol.5 for ; Fri, 06 Aug 2021 10:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3eaho3NZfS95IFYNYtDdUemC/4MmlKF+EE1B0ULmPrM=; b=aWrtNhUzajHYC9OYa+pJ5QzdgfhdpVjBzXdYNs50IIeQ+I/015H6B05NCLzX20xz/T R3zR/zHWTcFVSCzL608LOZJuWcjLEq0mCl2XRiIOAiTwYD0jmZcEkQK5nhpTb9UcEmDh qeVlegK9VUopM/vcUEP1fslQAsdE2kt6a0WzRfC/w6s3Wpa4amZo2DHz6limRgjEwUkK jWbAkpCy8O1w9K3s5s3f0rGEUhMqxO+/MkeOuAUDlUG/PCcs8sxwkaVlpDZQKeMZ9IJa yGFOLa5raPW8nv3+ZrHE2ukOybSP/EyQV8yny2ddecV8ehuTSX5FqdUKGqHtWXs9oXu7 fdEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3eaho3NZfS95IFYNYtDdUemC/4MmlKF+EE1B0ULmPrM=; b=O1vKHm5Y3XCcIlJJzj6S2uPsAOSoYV6RD+DJQvEE6gDU/EfdySA1N5be337xLyKF2E ZDv82v/r5JKTR7EhOE3VIA/J98olglmNI8cXrtlZ+Ry87y+Wj5RLnJXEI+1Z6fvFRWZS krfL6Y0/exJdiHqrmHed6QJ9RIRtaexswCLAP6c04VgzVBYbb+1ApYgo6RWDFeZvO+P9 k5hkp4oRKrMUiR32l7NUszIwBw+QfCwYH2HL4LBccboxutTc4ZBl3ZhlQtFYtqywKReI 0+E5eAkOLCTvnSXXzHmly353ske9KtvouqhvU92YPCS3MyVzuj5L195kzs/trcJRSKL6 ++hA== X-Gm-Message-State: AOAM532DtWj64gaQ0CxGyRGFQS8FC+SOmA5CTr8blZiR/jYDY7w9Uc31 IvqdG255EeVpvKrCg+f4lV+bwQ/B194c+x12cfdzlGEhKspYOA== X-Google-Smtp-Source: ABdhPJxGp+H1FhQ8BxZxmTaLlP1721TXvHa4nUM6e1xC5Vj6WK48w9qICBuZXkHLFJSol6enK86nr/xAP7gFyDL30R4= X-Received: by 2002:a5e:a510:: with SMTP id 16mr353422iog.42.1628269374310; Fri, 06 Aug 2021 10:02:54 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112386 Archived-At: --===============4344149673491324696== Content-Type: multipart/alternative; boundary="000000000000a78a8205c8e70159" --000000000000a78a8205c8e70159 Content-Type: text/plain; charset="UTF-8" > > > One final question on this one. As per latest comments this works great, > but is there a way so the presentation pages in the appendix are made-up > landscape as they are now, but are rotated 90 degrees so they are created > in the pdf document as the first two pages. \startbuffer[slides] \setuptolerance[ horizontal, tolerant, stretch] \setuppapersize[ A4,landscape] \setuplayout[ width=middle, backspace=35mm, cutspace=35mm, height=middle, topspace=5mm, bottomspace=20mm] \setuppagenumbering[ location={footer,center}] \setuphead [section] [page={yes}] \usetypescript[pagella] \setupbodyfont[pagella,18pt] \setupbodyfontenvironment[ 28pt][ % For body d=36pt, % For title a=12pt, % For author & date ] \setuptype[style=medium] \setuptyping[typing][bodyfont=16pt] \setupwhitespace[medium] \setbreakpoints[compound] \setuphead[chapter][style=\bfd] \setuphead[section][style=\bfc] \setuphead[subsection][style=\bfb] \setuphead[subsubsection][style=\bf] \setupitemize[autointro] % prevent orphan list intro \setupitemize[indentnext=no] \starttext \startsection[title={MySlideTitle},ref={myref1}] Body text \startitemize \item Item 1 \item Item 2 \stopitemize \stopsection \startsection[title={MySlideTitle},ref={myref2}] Body text \startitemize \item Item 1 \item Item 2 \stopitemize \stopsection \stoptext\starttext text \stoptext \stopbuffer \savebuffer[list=slides, file=slides.tex] \starttext \startbodymatter \dorecurse{10}{\input zapf\par} \typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt] \stopbodymatter \startappendices \getfiguredimensions[\jobname-slides.pdf] \dorecurse{\noffigurepages} {\startTEXpage \externalfigure[\jobname-slides.pdf][page=\recurselevel] \stopTEXpage} \stopappendices \stoptext --000000000000a78a8205c8e70159 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

One final question on this one. As per latest commen= ts this works great, but is there a way so the presentation pages in the ap= pendix are made-up landscape as they are now, but are rotated 90 degrees so= they are created in the pdf document as the first two pages.
<= div>
=C2=A0

\startbuffer[slides]
\setu= ptolerance[
=C2=A0 horizontal,
=C2=A0 tolerant,
=C2=A0 stretch]
\setuppapersize[
=C2=A0 A4,landscape]

\setuplayout[
=C2= =A0 width=3Dmiddle,
=C2=A0 backspace=3D35mm,
=C2=A0 cutspace=3D35mm,<= br>=C2=A0 height=3Dmiddle,
=C2=A0 topspace=3D5mm,
=C2=A0 bottomspace= =3D20mm]

\setuppagenumbering[
=C2=A0 location=3D{footer,center}]<= br>
\setuphead
=C2=A0 [section]
=C2=A0 [page=3D{yes}]

\uset= ypescript[pagella]
\setupbodyfont[pagella,18pt]
\setupbodyfontenviron= ment[
=C2=A0 28pt][ =C2=A0% For body
=C2=A0 d=3D36pt, % For title
= =C2=A0 a=3D12pt, % For author & date
=C2=A0 ]
\setuptype[style=3D= medium]
\setuptyping[typing][bodyfont=3D16pt]

\setupwhitespace[me= dium]

\setbreakpoints[compound]

\setuphead[chapter][style=3D\= bfd]
\setuphead[section][style=3D\bfc]
\setuphead[subsection][style= =3D\bfb]
\setuphead[subsubsection][style=3D\bf]

\setupitemize[aut= ointro] % prevent orphan list intro
\setupitemize[indentnext=3Dno]
\starttext

\startsection[title=3D{MySlideTitle},ref=3D{myref1}]
Body text

\startitemize
\item Item 1
\item Item 2
\sto= pitemize

\stopsection

\startsection[title=3D{MySlideTitle},re= f=3D{myref2}]

Body text

\startitemize
\item Item 1
\ite= m Item 2
\stopitemize

\stopsection

\stoptext\starttext
= text

\stoptext
\stopbuffer

=C2=A0 \savebuffer[list=3Dslide= s, file=3Dslides.tex]

=C2=A0 \starttext
=C2=A0 \startbodymatter=C2=A0 \dorecurse{10}{\input zapf\par}
=C2=A0 \typesetfile[\jobname-sl= ides.tex][--purgeall][object=3Dno, width=3D0pt]
=C2=A0 \stopbodymatter=C2=A0 \startappendices
=C2=A0 \getfiguredimensions[\jobname-slides.pd= f]
=C2=A0 \dorecurse{\noffigurepages}
=C2=A0 =C2=A0 =C2=A0 {\startTEX= page
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \externalfigure[\jobname-slides.pdf][pa= ge=3D\recurselevel]
=C2=A0 =C2=A0 =C2=A0 =C2=A0\stopTEXpage}
=C2=A0 \= stopappendices
=C2=A0 \stoptext=C2=A0
--000000000000a78a8205c8e70159-- --===============4344149673491324696== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4344149673491324696==--