ConTeXt not defending the right margin
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
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
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 ___________________________________________________________________________________
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
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
participants (3)
-
henman
-
Otared Kavian
-
Pablo Rodriguez