* Right Margin Being ignored bug?
@ 2015-05-02 7:36 henman
2015-05-02 17:46 ` Pablo Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: henman @ 2015-05-02 7:36 UTC (permalink / raw)
To: ConTeXt Typesetting
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
The following minimal example demonstrate how a series of underscores in
not handled right with regards to right margins.
I realize there are a few rules command and I plan to use them in the
future but for now I am just trying to port old forms into ConText and
have them be usable.
Any ideas on how I can get ConText to split the lines and honor the righ
margin space?
Thanks
[-- Attachment #2: minimal.mkiv --]
[-- Type: text/plain, Size: 880 bytes --]
\starttext
% \showlayout
\showframe
_____________, 20______, at ____________________________________________________, California.
\startitemize[n]
\item ....by Lessor/Optionor and Lessee/Optionee, regarding property situated in the City of _____________________, County of ________________ California, referred to as
___________________________________________________________________________________________
___________________________________________________________________________________________
\item ....by Lessor/Optionor and Lessee/Optionee, regarding property situated in the City of _____________________, County of ________________ California, referred to as
___________________________________________________________________________________________
___________________________________________________________________________________________
\stoptext
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 2+ messages in thread
* Re: Right Margin Being ignored bug?
2015-05-02 7:36 Right Margin Being ignored bug? henman
@ 2015-05-02 17:46 ` Pablo Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Rodriguez @ 2015-05-02 17:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 05/02/2015 09:36 AM, henman wrote:
>
> The following minimal example demonstrate how a series of underscores in
> not handled right with regards to right margins.
>
> I realize there are a few rules command and I plan to use them in the
> future but for now I am just trying to port old forms into ConText and
> have them be usable.
>
> Any ideas on how I can get ConText to split the lines and honor the righ
> margin space?
There are two commands that do what you intend:
http://wiki.contextgarden.net/Command/fillinline
http://wiki.contextgarden.net/Command/fillinrules
If required, you should add \hskip0pt between two underscore hyphens to
enable line breaking. I would avoid it since it doesn’t work well. It
might be a bug.
\showframe
\starttext
\fillinline[width=2cm]{name}
\fillinrules[n=4,width=2cm, separator=:]{Name}
_\hskip0pt_\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_, California.
\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] 2+ messages in thread
end of thread, other threads:[~2015-05-02 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 7:36 Right Margin Being ignored bug? henman
2015-05-02 17:46 ` 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).