Re: [NTG-context] Bug with \setuptagging and layers
On 6/10/2018 1:40 PM, Hans Hagen wrote: On 6/10/2018 12:05 AM, Rik Kabel wrote: When the first line of the following example is removed, all is well. With it present, the image in the layer has the text "image" added to the image. This problem is not present in, inter alia, TL18. \setuptagging [state=start] \setupexternalfigures [location=default] \definelayout [testpage] \definelayer [testpage] [width=\paperwidth,height=\paperheight] \startsetups [testpage] \setlayerframed [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, background=color,backgroundcolor=yellow] {\externalfigure[cow.pdf]} \stopsetups \setupbackgrounds [page] [setups=testpage,background={testpage}] \starttext \startmakeup [testpage] \framed[background=color,backgroundcolor=yellow] {\externalfigure[cow.pdf]} \stopmakeup \stoptext line 287 in strc-tag: \let\strc_tags_start_nop_ignore\gobbletwoarguments hm, not ok .. just wait for beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug with \setuptagging and layers
On 6/10/2018 12:05 AM, Rik Kabel wrote: When the first line of the following example is removed, all is well. With it present, the image in the layer has the text "image" added to the image. This problem is not present in, inter alia, TL18. \setuptagging [state=start] \setupexternalfigures [location=default] \definelayout [testpage] \definelayer [testpage] [width=\paperwidth,height=\paperheight] \startsetups [testpage] \setlayerframed [testpage] [preset=rightbottom,hoffset=.25in,voffset=.25in, background=color,backgroundcolor=yellow] {\externalfigure[cow.pdf]} \stopsetups \setupbackgrounds [page] [setups=testpage,background={testpage}] \starttext \startmakeup [testpage] \framed[background=color,backgroundcolor=yellow] {\externalfigure[cow.pdf]} \stopmakeup \stoptext line 287 in strc-tag: \let\strc_tags_start_nop_ignore\gobbletwoarguments fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setuptagging?
On 05/31/2014 12:49 PM, Hans Hagen wrote: On 5/31/2014 8:30 AM, Pablo Rodriguez wrote: [...] If I disable \setuptagging, output is fine. But with \setuptagging enabled, the typing environment doesn’t display multiple lines. Am I doing something wrong or have I hit a bug? The space in verbatim is defined differently because otherwise it can get lost in the export; you can experiment with: \appendtoks \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements Many thanks for your reply, Hans. I’m afraid I cannot make it work even with the minimal sample: \setuppapersize[A6] \setuptagging[state=start] \setuptyping[margin=yes,align={right,broad}] \appendtoks \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip% \zeropoint}% \to \everyenableelements \starttext \starttyping \setuptyping[margin=yes, align={right,broad}] \stoptyping \stoptext Since I’m not familiar with \appendtoks, I don’t know whether I applied it right. Is your code applied right in the sample above? Many thanks for your 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setuptagging?
Am 31.05.2014 um 13:37 schrieb Pablo Rodriguez oi...@gmx.es: On 05/31/2014 12:49 PM, Hans Hagen wrote: On 5/31/2014 8:30 AM, Pablo Rodriguez wrote: [...] If I disable \setuptagging, output is fine. But with \setuptagging enabled, the typing environment doesn’t display multiple lines. Am I doing something wrong or have I hit a bug? The space in verbatim is defined differently because otherwise it can get lost in the export; you can experiment with: \appendtoks \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements Many thanks for your reply, Hans. I’m afraid I cannot make it work even with the minimal sample: \setuppapersize[A6] \setuptagging[state=start] \setuptyping[margin=yes,align={right,broad}] \appendtoks \unexpanded\def\obeyedspace{\hskip\zeropoint\char32\hskip% \zeropoint}% \to \everyenableelements \starttext \starttyping \setuptyping[margin=yes, align={right,broad}] \stoptyping \stoptext Since I’m not familiar with \appendtoks, I don’t know whether I applied it right. Is your code applied right in the sample above? 1. I think you have to redefined the \doverbatimspace command. \appendtoks \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements 2. You have to put this code block *before* \setuptagging. 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 ___
Re: [NTG-context] bug in \setuptagging?
On 05/31/2014 02:20 PM, Wolfgang Schuster wrote: 1. I think you have to redefined the \doverbatimspace command. \appendtoks \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements 2. You have to put this code block *before* \setuptagging. Many thanks for your fast reply, Wolfgang. I’m afraid that it doesn’t work with this sample (ConTeXt isn’t able to compile the source): \appendtoks \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32}% \to \everyenableelements \setuptagging[state=start] \starttext \starttyping index 2d5ce1e..7a9f279 100644 \stoptyping \stoptext It is a sample from an introduction to git (it took me a while to find it in a +250-page book). Many thanks for your 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setuptagging?
Am 31.05.2014 um 18:01 schrieb Pablo Rodriguez oi...@gmx.es: On 05/31/2014 02:20 PM, Wolfgang Schuster wrote: 1. I think you have to redefined the \doverbatimspace command. \appendtoks \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32\hskip\zeropoint}% \to \everyenableelements 2. You have to put this code block *before* \setuptagging. Many thanks for your fast reply, Wolfgang. I’m afraid that it doesn’t work with this sample (ConTeXt isn’t able to compile the source): \appendtoks \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32}% \to \everyenableelements Why did you change the definition for \doverbatimspace? 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 ___
Re: [NTG-context] bug in \setuptagging?
On 05/31/2014 06:17 PM, Wolfgang Schuster: Am 31.05.2014 um 18:01 schrieb Pablo Rodriguez: Many thanks for your fast reply, Wolfgang. I’m afraid that it doesn’t work with this sample (ConTeXt isn’t able to compile the source): \appendtoks \unexpanded\def\doverbatimspace{\hskip\zeropoint\char32}% \to \everyenableelements Why did you change the definition for \doverbatimspace? I tried to force a one space indent for wrapped lines. I thought I was totally harmless. I see I was wrong. What I cannot understand is which text crashes the redefined \doverbatimspace. Many thanks for your 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___