* ConTeXt not defending the right margin
@ 2015-06-01 6:11 henman
2015-06-01 6:40 ` Pablo Rodriguez
2015-06-01 7:12 ` Otared Kavian
0 siblings, 2 replies; 5+ messages in thread
From: henman @ 2015-06-01 6:11 UTC (permalink / raw)
To: ConTeXt Typesetting
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ConTeXt not defending the right margin
2015-06-01 6:11 ConTeXt not defending the right margin henman
@ 2015-06-01 6:40 ` Pablo Rodriguez
2015-06-01 7:12 ` Otared Kavian
1 sibling, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2015-06-01 6:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ConTeXt not defending the right margin
2015-06-01 6:11 ConTeXt not defending the right margin henman
2015-06-01 6:40 ` Pablo Rodriguez
@ 2015-06-01 7:12 ` Otared Kavian
2015-06-01 7:33 ` Pablo Rodriguez
1 sibling, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2015-06-01 7:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 <dhenman@gmail.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ConTeXt not defending the right margin
2015-06-01 7:12 ` Otared Kavian
@ 2015-06-01 7:33 ` Pablo Rodriguez
2015-06-01 7:43 ` Otared Kavian
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2015-06-01 7:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ConTeXt not defending the right margin
2015-06-01 7:33 ` Pablo Rodriguez
@ 2015-06-01 7:43 ` Otared Kavian
0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian @ 2015-06-01 7:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 01 Jun 2015, at 09:33, Pablo Rodriguez <oinos@gmx.es> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-01 7:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-01 6:11 ConTeXt not defending the right margin henman
2015-06-01 6:40 ` Pablo Rodriguez
2015-06-01 7:12 ` Otared Kavian
2015-06-01 7:33 ` Pablo Rodriguez
2015-06-01 7:43 ` Otared Kavian
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).