Re: [NTG-context] ConTeXt not defending the right margin

2015-06-01 Thread Otared Kavian

> On 01 Jun 2015, at 09:33, Pablo Rodriguez  wrote:
> 
> On 06/01/2015 09:12 AM, Otared Kavian wrote:
>> Hi,
>> 
>> Probably instead of underscores you should use horizontal line, that is
>> 
>>  \hl[3]
>> 
>> (or any other value instead of 3), something like
>> 
>> \starttext
>> Date: \hl[8], 20\hl[5], at \hl[5], City \hl[7]
>> \stoptext
> 
> Hi Otared,
> 
> but I’m afraid that line breaks cannot take place inside \hl:
> 
>\starttext
>Date: \hl[50]
>\stoptext
> 
> 
> Pablo
> -- 
> http://www.ousia.tk

Hi Pablo,

Indeed you are right… I didn’t check the limit cases.
Sorry for the wrong hint I gave!

Best regards: OK
___
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] ConTeXt not defending the right margin

2015-06-01 Thread Pablo Rodriguez
On 06/01/2015 09:12 AM, Otared Kavian wrote:
> Hi,
> 
> Probably instead of underscores you should use horizontal line, that is
> 
>   \hl[3]
> 
> (or any other value instead of 3), something like
> 
> \starttext
> Date: \hl[8], 20\hl[5], at \hl[5], City \hl[7]
> \stoptext

Hi Otared,

but I’m afraid that line breaks cannot take place inside \hl:

\starttext
Date: \hl[50]
\stoptext


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] ConTeXt not defending the right margin

2015-06-01 Thread Otared Kavian
Hi,

Probably instead of underscores you should use horizontal line, that is

\hl[3]

(or any other value instead of 3), something like

\starttext
Date: \hl[8], 20\hl[5], at \hl[5], City \hl[7]
\stoptext

Best regards: OK

> On 01 Jun 2015, at 08:11, henman  wrote:
> 
> I am using "mtxrun  | ConTeXt TDS Runner Tool 1.31"
> 
> In real life I get documents that have long blank lines which are a sequence 
> of underscore characters.   I have to transcribe these into ConTeXt file.  
> But when compiled into a pdf file the long resulting rule line infringes on 
> the right boundary.
> 
> What can I do, to get ConTeXt to maintain the boundary and display the lines 
> as intended?
> 
> Thanks.
> 
>  Minimal Example
> \starttext
> 
> DATE: , 20__, at 
> __,  
> city___ \ state --\ country.
> 
> 1. Whereas , 
> as the artist(s) and    the patrons.
> 
> \stoptext
> 
> 
> 
> 
> 
> 
> ___
> 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
> ___

___
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] ConTeXt not defending the right margin

2015-05-31 Thread Pablo Rodriguez
On 06/01/2015 08:11 AM, henman wrote:
> I am using "mtxrun  | ConTeXt TDS Runner Tool 1.31"
> 
> In real life I get documents that have long blank lines which are a 
> sequence of underscore characters.   I have to transcribe these into 
> ConTeXt file.  But when compiled into a pdf file the long resulting rule 
> line infringes on the right boundary.
> 
> What can I do, to get ConTeXt to maintain the boundary and display the 
> lines as intended?

You have to insert \hskip0pt between two underscores (otherwise ConTeXt
cannot know where to break the line).

Your sample should read:

\starttext

DATE:
_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_,
20_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_, at
_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt,
_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_
city_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_
\ state --\ country.

1. Whereas
_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_,
as the
artist(s) and
_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_\hskip0pt_
 the patrons.

\stoptext

I hope it helps,


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
___

[NTG-context] ConTeXt not defending the right margin

2015-05-31 Thread henman

I am using "mtxrun  | ConTeXt TDS Runner Tool 1.31"

In real life I get documents that have long blank lines which are a 
sequence of underscore characters.   I have to transcribe these into 
ConTeXt file.  But when compiled into a pdf file the long resulting rule 
line infringes on the right boundary.


What can I do, to get ConTeXt to maintain the boundary and display the 
lines as intended?


Thanks.

 Minimal Example
\starttext

DATE: , 20__, at 
__, 
 city___ \ state --\ country.


1. Whereas 
, as the 
artist(s) and    the patrons.


\stoptext






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