[NTG-context] crlf in textext?
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 ___
Re: [NTG-context] crlf in textext?
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 ___
Re: [NTG-context] crlf in textext?
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 ___
Re: [NTG-context] crlf in textext?
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 ___