ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Jeroen via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: Code document and simpleslides and create in one go the document with simpleslides added
Date: Sat, 31 Jul 2021 16:06:34 +0200	[thread overview]
Message-ID: <c9c1abee-2cc3-c6fd-29b4-95ba7f71a345@gmx.es> (raw)
In-Reply-To: <CAPtmdbN4Kg9-h8JDSR6iuwYuMXh1z_7ggrjbj-dCHS6qOzrAeA@mail.gmail.com>

On 7/31/21 3:27 PM, Jeroen via ntg-context wrote:
> Is there an easy way to write a Context document and also code
> simpleslides in the same document so that the simpleslides are
> automatically added to the document as for example an appendix? Ie
> one tex document with Context code, perhaps with some \input and
> something like a two-pass job.
Hi Jeroen,

not sure this might help you (I’m not sure you intend a single source
file, in addition to a single PDF document), but here you have:

  \startbuffer[slides]
  \setuppapersize[CD]
  \setupbodyfont[60pt]
  \starttext
  \dorecurse{25}
  {\startmakeup[standard][pagestate=start, style={\ss\bf}, align=center]
  Slide \pagenumber
  \stopmakeup}
  \stoptext
  \stopbuffer

  \savebuffer[list=slides, file=\jobname_slides.tex, prefix=no]

  \starttext
  \startbodymatter
  \dorecurse{25}{\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

BTW, I cannot get simpleslides working with LMTX.

> I was thinking if the simpleslides could be saved as a number of png
> images and then with the recurse add them to the document with
> placefigure.
\externalfigure is your friend here and there is no need to convert the
slides to PNG (see above).

Just in case it may help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2021-07-31 14:06 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 [this message]
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
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=c9c1abee-2cc3-c6fd-29b4-95ba7f71a345@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).