From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89176 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Pierre-Fran=E7ois_Bonnefoi?= Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt gobble my mind Date: Sat, 8 Nov 2014 00:00:22 +0100 Message-ID: <295DD760-4376-49B6-AA16-9E643D0B11A5@unilim.fr> References: <9B029B7D-7988-401E-8C9E-E97E2367F464@gmail.com> <10473267-C1C4-49CF-B26B-78679D53C5CB@unilim.fr> <545CAF44.2070908@wxs.nl> <114DDC9F-21C9-4B72-8F07-D71F3428C54F@unilim.fr> <545CE270.5090700@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1386814116==" X-Trace: ger.gmane.org 1415401294 20365 80.91.229.3 (7 Nov 2014 23:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 23:01:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 08 00:01:26 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XmsWz-00084b-T3 for gctc-ntg-context-518@m.gmane.org; Sat, 08 Nov 2014 00:01:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10FBA1021D for ; Sat, 8 Nov 2014 00:01:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LyUfaP9f88Mo for ; Sat, 8 Nov 2014 00:01:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 83D3F10230 for ; Sat, 8 Nov 2014 00:00:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2620101E7 for ; Sat, 8 Nov 2014 00:00:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Cd5-TPePxzpL for ; Sat, 8 Nov 2014 00:00:38 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 95C70101E3 for ; Sat, 8 Nov 2014 00:00:33 +0100 (CET) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.78]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sA7N0WrG000634 for ; Sat, 8 Nov 2014 00:00:32 +0100 Original-Received: from [192.168.0.100] (home.libpfb.so [109.190.20.216]) (authenticated bits=0) by smtp.unilim.fr (8.13.1/8.13.1) with ESMTP id sA7N0Mqn029516 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 8 Nov 2014 00:00:23 +0100 In-Reply-To: <545CE270.5090700@wxs.nl> X-Mailer: Apple Mail (2.1878.6) X-Univ-Limoges-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (smtp.unilim.fr [164.81.1.45]); Sat, 08 Nov 2014 00:00:23 +0100 (CET) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Scanned-By: MIMEDefang 2.67 on 164.81.1.45 X-Univ-Limoges-MailScanner-Information: Serveur Anti-virus Please contact postmaster@unilim.fr for more information X-Univ-Limoges-MailScanner-ID: sA7N0Mqn029516 X-Univ-Limoges-MailScanner: Found to be clean X-Univ-Limoges-MailScanner-Envelope-From: bonnefoi@unilim.fr X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=164.81.1.78; country=FR; region=Haute-Vienne; city=Limoges; latitude=45.8315; longitude=1.2578; http://maps.google.com/maps?q=45.8315,1.2578&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RNcL0whw - 54e73ba900ea - 20141108 (trained as not-spam) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:89176 Archived-At: --===============1386814116== Content-Type: multipart/alternative; boundary="Apple-Mail=_90A44F12-E3A8-425E-B35A-563ACD27ADAD" --Apple-Mail=_90A44F12-E3A8-425E-B35A-563ACD27ADAD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Just before going to bed, I've found a solution with all your help and = the help of Taco Hoekwater through the ntg mail archive : \def\startSlide% = {\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\g= etbuffer[Slide]}}% \dostartbuffer[Slide][startSlide][stopSlide]} Let me know if it's my philosopher's stone... I've tried it and it works so far. No more ugly gobbling, my mind is free. So depressing problem and so simple and elegant solution... On 07 Nov 2014, at 16:17, Hans Hagen wrote: > On 11/7/2014 2:26 PM, Pierre-Fran=E7ois Bonnefoi wrote: >> Hello Hans, >>=20 >> thank you for contributing to solve my problem. >>=20 >> I've tried your proposition : how can I get the content of the buffer >> afterward ? >> I've tried \getbuffer[Slide] with no success on MKIV beta that I've = just >> updated. >=20 > \starttext >=20 > \definebuffer[Slide] >=20 > foo >=20 > \startSlide > bla bla bla > \starttyping > language C code > \stoptyping > bla bla bla > \stopSlide >=20 > bar >=20 > \getbuffer[\thedefinedbuffer{Slide}] >=20 > \getSlide >=20 > \stoptext >=20 >=20 >> Does a buffer work only for verbatim content ? >=20 > no, for everything >=20 >> best regards, >> Pierre-Fran=E7ois. >>=20 >> On 07 Nov 2014, at 12:38, Hans Hagen > > wrote: >>=20 >>>=20 >>> \starttext >>>=20 >>> \definebuffer[Slide] >>>=20 >>> foo >>>=20 >>> % \skipSlide >>> \startSlide >>> bla bla bla >>> \startyping >>> language C code >>> \stoptyping >>> bla bla bla >>> \stopSlide >>>=20 >>> bar >>>=20 >>> \stoptext >>>=20 >>>=20 >>=20 >> -- >> 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. >>=20 >>=20 >>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >>=20 >=20 >=20 > --=20 >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --=20 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. --Apple-Mail=_90A44F12-E3A8-425E-B35A-563ACD27ADAD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Just = before going to bed, I've found a solution with all your help and the = help of Taco Hoekwater through the ntg mail archive = :

\def\startSlide%
{\def\stopSlide{\checkSlide= \doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}%
\dostartbuffer[Slide][startSlide][stopSlide]}

L= et me know if it's my philosopher's stone...
I've tried it and = it works so far.

No more ugly gobbling, my mind = is free.

So depressing problem and so simple = and elegant solution...

On 07 Nov 2014, at = 16:17, Hans Hagen <pragma@wxs.nl> wrote:

On = 11/7/2014 2:26 PM, Pierre-Fran=E7ois Bonnefoi wrote:
Hello Hans,

thank you for contributing to solve my = problem.

I've tried your proposition : how can I get the content = of the buffer
afterward ?
I've tried \getbuffer[Slide] with no = success on MKIV beta that I've = just
updated.

\starttext

\definebuffer[Slide= ]

foo

\startSlide
bla bla = bla
\starttyping
language C code
\stoptyping
bla bla = bla
\stopSlide

bar

\getbuffer[\thedefinedbuffer{Slide}]
\getSlide

\stoptext


Does= a buffer work only for verbatim content ?

no, for = everything

best = regards,
Pierre-Fran=E7ois.

On 07 Nov 2014, at 12:38, Hans = Hagen <pragma@wxs.nl
<mailto:pragma@wxs.nl>> = wrote:


\starttext

\definebuffer[Slide]

foo
% \skipSlide
\startSlide
bla bla bla
\startyping
language C = code
\stoptyping
bla bla = bla
\stopSlide

bar

\stoptext



= --
Bonnefoi Pierre-Francois =             &n= bsp;  |    E-mail : bonnefoi@unilim.fr
<mailto:bonnefoi@unilim.fr> http://libpfb.so/
Universite de = Limoges, Laboratoire XLIM |       Tel : 06 = 28 18 03 38
123 av Albert Thomas =             &n= bsp;      |  Mrs. Peel, we're = needed...
87060 Limoges CEDEX - FRANCE =            | =             &n= bsp;   The = Avengers.



_________________________________________________= __________________________________
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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _



-- =

-----------------------------------------------------------------<= br> =             &n= bsp;           &nbs= p;            =     Hans Hagen | PRAGMA ADE
=             &n= bsp;Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
=    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=             &n= bsp;           &nbs= p;            =        | www.pragma-pod.nl
---------------= --------------------------------------------------
____________________= _______________________________________________________________
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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

Bonnefoi Pierre-Francois     =            |    E-mail : bonnefoi@unilim.fr http://libpfb.so/
<= font class=3D"Apple-style-span" face=3D"Courier" size=3D"3">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.