ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in \setuptagging?
@ 2014-05-31  6:30 Pablo Rodriguez
  2014-05-31 10:49 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2014-05-31  6:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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] 7+ messages in thread

* Re: bug in \setuptagging?
  2014-05-31  6:30 bug in \setuptagging? Pablo Rodriguez
@ 2014-05-31 10:49 ` Hans Hagen
  2014-05-31 11:37   ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2014-05-31 10:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Re: bug in \setuptagging?
  2014-05-31 10:49 ` Hans Hagen
@ 2014-05-31 11:37   ` Pablo Rodriguez
  2014-05-31 12:20     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2014-05-31 11:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: bug in \setuptagging?
  2014-05-31 11:37   ` Pablo Rodriguez
@ 2014-05-31 12:20     ` Wolfgang Schuster
  2014-05-31 16:01       ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2014-05-31 12:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 31.05.2014 um 13:37 schrieb Pablo Rodriguez <oinos@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
___________________________________________________________________________________


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

* Re: bug in \setuptagging?
  2014-05-31 12:20     ` Wolfgang Schuster
@ 2014-05-31 16:01       ` Pablo Rodriguez
  2014-05-31 16:17         ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2014-05-31 16:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: bug in \setuptagging?
  2014-05-31 16:01       ` Pablo Rodriguez
@ 2014-05-31 16:17         ` Wolfgang Schuster
  2014-05-31 17:05           ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2014-05-31 16:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez


Am 31.05.2014 um 18:01 schrieb Pablo Rodriguez <oinos@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
___________________________________________________________________________________


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

* Re: bug in \setuptagging?
  2014-05-31 16:17         ` Wolfgang Schuster
@ 2014-05-31 17:05           ` Pablo Rodriguez
  0 siblings, 0 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2014-05-31 17:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2014-05-31 17:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-31  6:30 bug in \setuptagging? Pablo Rodriguez
2014-05-31 10:49 ` Hans Hagen
2014-05-31 11:37   ` Pablo Rodriguez
2014-05-31 12:20     ` Wolfgang Schuster
2014-05-31 16:01       ` Pablo Rodriguez
2014-05-31 16:17         ` Wolfgang Schuster
2014-05-31 17:05           ` Pablo Rodriguez

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