ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing." <LPr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: \starthiding inside \doifmode?
Date: Fri, 12 Feb 2016 09:44:18 +0100	[thread overview]
Message-ID: <op.ycpo74bd62epfj@lpr> (raw)

[-- 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
___________________________________________________________________________________

             reply	other threads:[~2016-02-12  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-12  8:44 Procházka Lukáš Ing. [this message]
2016-02-12  8:53 ` Pablo Rodriguez
2016-02-12  9:35 ` Hans Hagen

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=op.ycpo74bd62epfj@lpr \
    --to=lpr@pontex.cz \
    --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).