ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \starthiding inside \doifmode?
@ 2016-02-12  8:44 Procházka Lukáš Ing.
  2016-02-12  8:53 ` Pablo Rodriguez
  2016-02-12  9:35 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Procházka Lukáš Ing. @ 2016-02-12  8:44 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

Hello,

it seems that \starthiding ... \stophiding dislikes \doifmode scope.
The following code fails:

----
\enablemode[A]

\starttext

   Hello

\starthiding
   Don't show me
%\stophiding

   \doifmode{A}
     {
       Aaa

\starthiding
   Don't show me
%\stophiding

     }

   World

\stoptext
----

On the contrary, the following code is OK:

----
\enablemode[A]

\starttext

   Hello

\starthiding
   Don't show me
%\stophiding

   \doifmode{A}
     {
       Aaa
     }

   World

\stoptext
----

So, should I deduce that \starthiding ... \stophiding block cannot be used inside \doifmode (and family)?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

[-- Attachment #2: ModHid.log --]
[-- Type: application/octet-stream, Size: 2533 bytes --]

system          > synctex functionality is enabled (1), expect runtime overhead!

system          > callbacks > not registering frozen 'find_format_file'

open source     > 1 > 1 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.02.06 14:06 MKIV beta  fmt: 2016.2.8  int: english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
close source    > 2 > 2 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv

system          > jobfiles > using path: C:\\Lukas\\ConTeXt\\Styles
system          > files > jobname 'ModHid', input 'D:\\Lukas\\Jobs\\NovaVes.RDS\\SO_201\\TZ\\~\\ModHid.mkiv', result 'ModHid'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > D://Lukas/Jobs/NovaVes.RDS/SO_201/TZ/~/ModHid.mkiv
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
close source    > 2 > 3 > D://Lukas/Jobs/NovaVes.RDS/SO_201/TZ/~/ModHid.mkiv

tex error       > tex error on line 1 in file d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv: ! TeX capacity exceeded, sorry [input stack size=10000]


\glet ->\global 
                \let 
\dostoptext ->\glet 
                    \dostoptext \relax \strc_pagenumbers_flush_final_page \p...
\dostoptext ->\glet \dostoptext 
                                \relax \strc_pagenumbers_flush_final_page \p...
\dostoptext ->\glet \dostoptext 
                                \relax \strc_pagenumbers_flush_final_page \p...
\dostoptext ->\glet \dostoptext 
                                \relax \strc_pagenumbers_flush_final_page \p...
\dostoptext ->\glet \dostoptext 
                                \relax \strc_pagenumbers_flush_final_page \p...
...
l.97 \getvalue{clf_processjob}
                             % from cont-run.lua

 1 >>  %D \module
 2     %D   [       file=cont-yes,
 3     %D        version=2012.06.01,
 4     %D          title=\CONTEXT\ Miscellaneous Macros,
 5     %D       subtitle=Startup Stub,
 6     %D         author=Hans Hagen,
 7     %D           date=\currentdate,
 8     %D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
 9     %C
10     %C This module is part of the \CONTEXT\ macro||package and is
11     %C therefore copyrighted by \PRAGMA. See mreadme.pdf for

If you really absolutely need more capacity,
you can ask a wizard to enlarge me.



[-- Attachment #3: ModHid.mkiv --]
[-- Type: application/octet-stream, Size: 204 bytes --]

\enablemode[A]

\starttext

  Hello

\starthiding
  Don't show me
%\stophiding

  \doifmode{A}
    {
      Aaa

\starthiding
  Don't show me
%\stophiding

    }

  World

\stoptext

[-- Attachment #4: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \starthiding inside \doifmode?
  2016-02-12  8:44 \starthiding inside \doifmode? Procházka Lukáš Ing.
@ 2016-02-12  8:53 ` Pablo Rodriguez
  2016-02-12  9:35 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2016-02-12  8:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/12/2016 09:44 AM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> it seems that \starthiding ... \stophiding dislikes \doifmode scope.
> The following code fails:
> [...]
> So, should I deduce that \starthiding ... \stophiding block cannot
> be used inside \doifmode (and family)?

Hi Lukáš,

\starthiding works fine inside a \startmode[A]...\stopmode.

Wouldn’t it be an option?

Just in case it helps,

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \starthiding inside \doifmode?
  2016-02-12  8:44 \starthiding inside \doifmode? Procházka Lukáš Ing.
  2016-02-12  8:53 ` Pablo Rodriguez
@ 2016-02-12  9:35 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2016-02-12  9:35 UTC (permalink / raw)
  To: ntg-context

On 2/12/2016 9:44 AM, Procházka Lukáš Ing. wrote:
> Hello,
>
> it seems that \starthiding ... \stophiding dislikes \doifmode scope.
> The following code fails:

they are just ignored buffers and buffers are collected as-is i.e. no 
fancy macro usage with their start/stop


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | 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!

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-12  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-12  8:44 \starthiding inside \doifmode? Procházka Lukáš Ing.
2016-02-12  8:53 ` Pablo Rodriguez
2016-02-12  9:35 ` Hans Hagen

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).