From: "Pierre-François Bonnefoi" <bonnefoi@unilim.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt gobble my mind
Date: Thu, 6 Nov 2014 13:59:50 +0100 [thread overview]
Message-ID: <CA036609-55FA-43D6-AFDF-C822569DFD65@unilim.fr> (raw)
In-Reply-To: <9B029B7D-7988-401E-8C9E-E97E2367F464@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2606 bytes --]
Hello Wolfgang and Luigi,
My example lines are too small to fully understand the purpose of using the gobbleinput instruction :
I have made some slides for my students that I can choose or not ton include in the final presentation :
\skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide
I've made some macros to include or not a slide according to its number given into a list or by just putting before the macro \skipSlide.
This is very useful as I have students of different levels.
The gobbleinput solution is the best solution : I can activate or not a slide according to my audience.
If I use the buffer solution, I'll not be able to deactivate the whole slide containing the typing region.
From my understanding, I've used the gobbleinput command as in shell :
cat << EOF
one
two
three
EOF
And now, I've ran into this problem.
On 06 Nov 2014, at 13:12, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>>
>> Am 06.11.2014 um 10:35 schrieb Pierre-François Bonnefoi <bonnefoi@unilim.fr>:
>>
>> Hello,
>>
>> I've made a lot of improvement to my slides format for my teaching material and I've run into a serious issue with gobbleinput that I can express with with simple lines :
>>
>> \starttext
>> \gobbleuntil\stoptyping
>> \starttyping
>> { printf("%d", data); }
>> \stoptyping
>> This is ignored !
>> \stoptext
>>
>> How can I use correctly gobbleinput to make it works ?
>
> Replace the typing environment with normal buffers and use the \typebuffer command to print the content of the buffer.
>
> \starttext
>
> \startbuffer
> { printf("%d", data); }
> \stopbuffer
> %\typebuffer
> This is ignored !
>
> \stoptext
>
> Wolfgang
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--
Bonnefoi Pierre-Francois | E-mail : bonnefoi@unilim.fr http://libpfb.so/
Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38
123 av Albert Thomas | Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE | The Avengers.
[-- Attachment #1.2: Type: text/html, Size: 26036 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2014-11-06 12:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 9:35 Pierre-François Bonnefoi
2014-11-06 11:16 ` luigi scarso
2014-11-06 12:36 ` Pierre-François Bonnefoi
2014-11-06 12:46 ` luigi scarso
2014-11-06 13:00 ` Herbert Voss
2014-11-06 13:30 ` Pierre-François Bonnefoi
2014-11-06 12:12 ` Wolfgang Schuster
2014-11-06 12:59 ` Pierre-François Bonnefoi [this message]
2014-11-06 13:12 ` luigi scarso
2014-11-06 13:29 ` Pierre-François Bonnefoi
2014-11-07 11:38 ` Hans Hagen
2014-11-07 13:26 ` Pierre-François Bonnefoi
2014-11-07 15:17 ` Hans Hagen
2014-11-07 23:00 ` Pierre-François Bonnefoi
2014-11-08 11:08 ` Wolfgang Schuster
2014-11-09 13:34 ` Pierre-François Bonnefoi
2014-11-09 14:17 ` Hans Hagen
2014-11-06 16:57 ` Keith J. Schultz
2014-11-07 10:59 ` Pierre-François Bonnefoi
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=CA036609-55FA-43D6-AFDF-C822569DFD65@unilim.fr \
--to=bonnefoi@unilim.fr \
--cc=ntg-context@ntg.nl \
/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).