From: Jeroen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jeroen <contextntg@gmail.com>
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 [thread overview]
Message-ID: <CAPtmdbNef9LpOwX1QZA_=ob_ojuuWiokEm_FROaGOpXkfpuWbA@mail.gmail.com> (raw)
In-Reply-To: <b8dec005-bb59-930b-da86-8bcc94f6239b@gmx.es>
[-- Attachment #1.1: Type: text/plain, Size: 1838 bytes --]
>
>
> 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
[-- Attachment #1.2: Type: text/html, Size: 2382 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2021-08-06 17:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-31 13:27 Jeroen via ntg-context
2021-07-31 14:00 ` Henning Hraban Ramm via ntg-context
2021-07-31 14:06 ` Pablo Rodriguez via ntg-context
2021-07-31 14:22 ` Thomas A. Schmitz via ntg-context
2021-07-31 20:23 ` Jeroen via ntg-context
2021-08-01 11:56 ` Hans Hagen via ntg-context
2021-08-01 13:02 ` Wolfgang Schuster via ntg-context
2021-08-01 13:44 ` Hans Hagen via ntg-context
2021-08-01 16:03 ` Pablo Rodriguez via ntg-context
2021-08-06 17:02 ` Jeroen via ntg-context [this message]
2021-07-31 14:19 ` Thomas A. Schmitz via ntg-context
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='CAPtmdbNef9LpOwX1QZA_=ob_ojuuWiokEm_FROaGOpXkfpuWbA@mail.gmail.com' \
--to=ntg-context@ntg.nl \
--cc=contextntg@gmail.com \
/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).