* crlf in textext?
@ 2011-12-15 14:53 Hans van der Meer
2011-12-15 15:06 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Hans van der Meer @ 2011-12-15 14:53 UTC (permalink / raw)
To: ConTeXt NTG
Is it correct that the use of textext(label,pos) in MetApost pictures does not honor \crlf?
I could not make a twoline text with textext("abc\crlf xyz",pos), it comes out as one line "abcxyz".
Is it a feature or a defect?
Hans van der Meer
___________________________________________________________________________________
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] 4+ messages in thread
* Re: crlf in textext?
2011-12-15 14:53 crlf in textext? Hans van der Meer
@ 2011-12-15 15:06 ` Aditya Mahajan
2011-12-15 15:27 ` Meer, H. van der
2011-12-15 18:37 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Aditya Mahajan @ 2011-12-15 15:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 15 Dec 2011, Hans van der Meer wrote:
> Is it correct that the use of textext(label,pos) in MetApost pictures does not honor \crlf?
> I could not make a twoline text with textext("abc\crlf xyz",pos), it comes out as one line "abcxyz".
> Is it a feature or a defect?
textext("...") is a hbox. So you need to either use
textext("\vbox{... \crlf ...}")
or
textext("\noexpand\framed[align=normal]{... \crlf ...}")
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: crlf in textext?
2011-12-15 15:06 ` Aditya Mahajan
@ 2011-12-15 15:27 ` Meer, H. van der
2011-12-15 18:37 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Meer, H. van der @ 2011-12-15 15:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks. That solves the problem.
I obviously missed the fact that textext is an \hbox, a fact that explains its behaviour.
Hans van der Meer
On 15 dec. 2011, at 16:06, Aditya Mahajan wrote:
> On Thu, 15 Dec 2011, Hans van der Meer wrote:
>
>> Is it correct that the use of textext(label,pos) in MetApost pictures does not honor \crlf?
>> I could not make a twoline text with textext("abc\crlf xyz",pos), it comes out as one line "abcxyz".
>> Is it a feature or a defect?
>
> textext("...") is a hbox. So you need to either use
>
> textext("\vbox{... \crlf ...}")
>
> or
>
> textext("\noexpand\framed[align=normal]{... \crlf ...}")
>
> 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://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] 4+ messages in thread
* Re: crlf in textext?
2011-12-15 15:06 ` Aditya Mahajan
2011-12-15 15:27 ` Meer, H. van der
@ 2011-12-15 18:37 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-12-15 18:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 15-12-2011 16:06, Aditya Mahajan wrote:
> textext("\noexpand\framed[align=normal]{... \crlf ...}")
no need for a \noexpand here
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-15 18:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 14:53 crlf in textext? Hans van der Meer
2011-12-15 15:06 ` Aditya Mahajan
2011-12-15 15:27 ` Meer, H. van der
2011-12-15 18:37 ` Hans Hagen
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).