Dear list I experience weird results with latest beta (2014.05.30 23:26). Here is the sample: \setuppapersize[A6] \setuptagging[state=start] \setuptyping[margin=yes,align={right,broad}] \starttext \starttyping \setuptyping[margin=yes, align={right,broad}] \stoptyping \stoptext 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? Many thanks for your help, Pablo -- http://www.ousia.tk
On 5/31/2014 8:30 AM, Pablo Rodriguez wrote:
Dear list
I experience weird results with latest beta (2014.05.30 23:26).
Here is the sample:
\setuppapersize[A6] \setuptagging[state=start] \setuptyping[margin=yes,align={right,broad}] \starttext \starttyping \setuptyping[margin=yes, align={right,broad}] \stoptyping \stoptext
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 and see if that is acceptable. Normally in exports context has some heuristic to add spaces in the output (also pdf) instead of skips but for verbatim this has to be more strict. Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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
Am 31.05.2014 um 13:37 schrieb Pablo Rodriguez
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
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
Am 31.05.2014 um 18:01 schrieb Pablo Rodriguez
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
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
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster