ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* lines in \setuptyping
@ 2017-08-29 14:43 Pablo Rodriguez
  2017-08-29 17:25 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-29 14:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \setuptyping[TEX][lines=yes]
    \starttext
    \startTEX
    code

    one line before


    two lines before



    three lines before
    \stopTEX
    \stoptext

I thought the lines key should display multiple lines when they are in
the code.

How should I got the multiple lines 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: lines in \setuptyping
  2017-08-29 14:43 lines in \setuptyping Pablo Rodriguez
@ 2017-08-29 17:25 ` Hans Hagen
  2017-08-29 19:02   ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2017-08-29 17:25 UTC (permalink / raw)
  To: ntg-context

On 8/29/2017 4:43 PM, Pablo Rodriguez wrote:
> Dear list,
> 
> I have the following sample:
> 
>      \setuptyping[TEX][lines=yes]
>      \starttext
>      \startTEX
>      code
> 
>      one line before
> 
> 
>      two lines before
> 
> 
> 
>      three lines before
>      \stopTEX
>      \stoptext
> 
> I thought the lines key should display multiple lines when they are in
> the code.
> 
> How should I got the multiple lines in the sample above?
empty lines are always collapsed

Hans

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

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

* Re: lines in \setuptyping
  2017-08-29 17:25 ` Hans Hagen
@ 2017-08-29 19:02   ` Pablo Rodriguez
  2017-08-29 21:28     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-29 19:02 UTC (permalink / raw)
  To: ntg-context

On 08/29/2017 07:25 PM, Hans Hagen wrote:
> On 8/29/2017 4:43 PM, Pablo Rodriguez wrote:
>> [...]
>> I thought the lines key should display multiple lines when they are in
>> the code.
>>
>> How should I got the multiple lines in the sample above?
> empty lines are always collapsed

Many thanks for your reply, Hans.

In that case, what enables [lines=yes] in \setuptyping?

I need this to provide a sample in a ConTeXt introduction of empty lines
collapse in ConTeXt.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: lines in \setuptyping
  2017-08-29 19:02   ` Pablo Rodriguez
@ 2017-08-29 21:28     ` Hans Hagen
  2017-08-30  0:50       ` Aditya Mahajan
  2017-08-30  5:51       ` Pablo Rodriguez
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2017-08-29 21:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

On 8/29/2017 9:02 PM, Pablo Rodriguez wrote:
> On 08/29/2017 07:25 PM, Hans Hagen wrote:
>> On 8/29/2017 4:43 PM, Pablo Rodriguez wrote:
>>> [...]
>>> I thought the lines key should display multiple lines when they are in
>>> the code.
>>>
>>> How should I got the multiple lines in the sample above?
>> empty lines are always collapsed
> 
> Many thanks for your reply, Hans.
> 
> In that case, what enables [lines=yes] in \setuptyping?
linebreaks


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

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

* Re: lines in \setuptyping
  2017-08-29 21:28     ` Hans Hagen
@ 2017-08-30  0:50       ` Aditya Mahajan
  2017-08-30  5:53         ` Pablo Rodriguez
  2017-08-30  5:51       ` Pablo Rodriguez
  1 sibling, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2017-08-30  0:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

On Tue, 29 Aug 2017, Hans Hagen wrote:

> On 8/29/2017 9:02 PM, Pablo Rodriguez wrote:
>> On 08/29/2017 07:25 PM, Hans Hagen wrote:
>>> On 8/29/2017 4:43 PM, Pablo Rodriguez wrote:
>>>> [...]
>>>> I thought the lines key should display multiple lines when they are in
>>>> the code.
>>>>
>>>> How should I got the multiple lines in the sample above?
>>> empty lines are always collapsed
>> 
>> Many thanks for your reply, Hans.
>> 
>> In that case, what enables [lines=yes] in \setuptyping?
> linebreaks

There is only a subtle difference between the two:

\setuppapersize[A6]
\showframe

\starttext
\starttyping[lines=no]
Here is some text with very very long line that goes on
\stoptyping

\starttyping[lines=yes]
Here is some text with very very long line that goes on
\stoptyping

\stoptext


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

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

* Re: lines in \setuptyping
  2017-08-29 21:28     ` Hans Hagen
  2017-08-30  0:50       ` Aditya Mahajan
@ 2017-08-30  5:51       ` Pablo Rodriguez
  1 sibling, 0 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-30  5:51 UTC (permalink / raw)
  To: ntg-context

On 08/29/2017 11:28 PM, Hans Hagen wrote:
> On 8/29/2017 9:02 PM, Pablo Rodriguez wrote:
>> [...]
>> In that case, what enables [lines=yes] in \setuptyping?
> linebreaks

Many thanks for your reply, Hans.

I’m afraid this isn’t what I get in the following sample:

    \setuppapersize[A6]
    \showframe

    \starttext
    \starttyping[lines=no]
    Here is some text with
    very very long line that

    goes on
    \stoptyping

    \starttyping[lines=yes]
    Here is some text with
    very very long line that

    goes on
    \stoptyping
    \stoptext

Exactly the same breaks in both cases using beta from 2017.08.29 19:35.

BTW, I realized that I can fake extra line breaks with a non-breaking space.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: lines in \setuptyping
  2017-08-30  0:50       ` Aditya Mahajan
@ 2017-08-30  5:53         ` Pablo Rodriguez
  0 siblings, 0 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-30  5:53 UTC (permalink / raw)
  To: ntg-context

On 08/30/2017 02:50 AM, Aditya Mahajan wrote:
> On Tue, 29 Aug 2017, Hans Hagen wrote:
>> On 8/29/2017 9:02 PM, Pablo Rodriguez wrote:
>>> [...]
>>> In that case, what enables [lines=yes] in \setuptyping?
>> linebreaks
> 
> There is only a subtle difference between the two:

Many thanks for the info, Aditya.

Pablo


> \setuppapersize[A6]
> \showframe
> 
> \starttext
> \starttyping[lines=no]
> Here is some text with very very long line that goes on
> \stoptyping
> 
> \starttyping[lines=yes]
> Here is some text with very very long line that goes on
> \stoptyping
> 
> \stoptext

-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-08-30  5:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 14:43 lines in \setuptyping Pablo Rodriguez
2017-08-29 17:25 ` Hans Hagen
2017-08-29 19:02   ` Pablo Rodriguez
2017-08-29 21:28     ` Hans Hagen
2017-08-30  0:50       ` Aditya Mahajan
2017-08-30  5:53         ` Pablo Rodriguez
2017-08-30  5:51       ` 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).