[NTG-context] \FirstNCharacters is undefined
Latest beta, MkIV: I get ! Undefined control sequence. for \FirstNCharacters If I copy its definition from supp-fun.tex (source.contextgarden.net) to my project, it works. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] \FirstNCharacters is undefined
On 18-8-2012 10:13, Henning Hraban Ramm wrote: Latest beta, MkIV: I get ! Undefined control sequence. for \FirstNCharacters If I copy its definition from supp-fun.tex (source.contextgarden.net) to my project, it works. Hm, I didn't know that anyone was using those macros. Put this in cont-new.mkiv: \def\getsubstring#1#2#3{\cldcontext{utf.sub([[#3]],tonumber(#1),tonumber(#2))}} And you can use: \getsubstring{4}{}{Who Wants This} \par \getsubstring{4}{9}{Who Wants This} \par \getsubstring{9}{-2}{Who Wants This} \par \getsubstring{1}{5}{Who Wants This} \par (I've added a slightly different implementation to the not yet uploaded beta.) Hans - 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 ___
[NTG-context] MetaPost Page height
The follow code produces a PDF whose page height is too large (i.e., is not tight enough around the graphic). How can I get this the height to be as tight as the width? \startMPpage bboxmargin:=0; label(btex foo etex,origin); \stopMPpage Thanks in advance, Troy Henderson ___ 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 ___
[NTG-context] 3D annotations problems
Dear Hans and All, the examples from back-u3d.mkiv fail to work with latest beta (rectangled undefined message appears instead of annotation), but if \textwidth is replaced by in in the tex file 3D annotations appear OK. Is that a bug, a feature or some transitional state of ConTeXt (case when things are known to be broken something else is under reform). Sincerely, Michail ___ 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 ___
[NTG-context] subformulas: error in latest beta
Dear all, I am having problems with subformulas. The following example does not display a subnumber (i.e. I get (1) and (2) instead of (1a) and (1b)): % start example \starttext % from % does not display subformula numbers \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula % stop example % This example is taken from http://dl.contextgarden.net/myway/mathalign.pdf page 6 I am not quite sure for how long this is not working. I have been using the following alternative, which used to work but now gives me an error with the latest beta (ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.18): % start example % the following used to work in an earlier version \startsubformulas[eq:ax=b] \placeformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula \stoptext % stop example % Any suggestions? Cheers, Andreas ___ 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] subformulas: error in latest beta
sorry... the error message is: TeX capacity exceeded, sorry [ ... \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi Am Aug 18, 2012 um 9:01 PM schrieb Andreas Mang: Dear all, I am having problems with subformulas. The following example does not display a subnumber (i.e. I get (1) and (2) instead of (1a) and (1b)): % start example \starttext % from % does not display subformula numbers \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula % stop example % This example is taken from http://dl.contextgarden.net/myway/mathalign.pdf page 6 I am not quite sure for how long this is not working. I have been using the following alternative, which used to work but now gives me an error with the latest beta (ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.18): % start example % the following used to work in an earlier version \startsubformulas[eq:ax=b] \placeformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula \stoptext % stop example % Any suggestions? Cheers, Andreas ___ 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 ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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 ___