[NTG-context] New math collection ?
Hi, I defined some extra math symbols based on the help of David Munger. David posted a question 2 years ago, asking the group how to define extra math symbols. He found a solution himself (see below) and what I am trying to do is to put this into a math collection like math-eul.tex but I am not successfull. I used his solution to define a module math-extra.tex based on math-eul.tex but I am getting errors like ! \textfont 14 is undefined (character). \stopdisplaymath -\stopinnermath $$ \ifgridsnapping \egroup \afterdisplayspa... \dostopformula ...eter \c!alternative \v!formula } \resetlastlinewidth \nonoi... l.18 \stopformula I don't know what I am doing wrong, hope someone can help me Attached my test files. Kind regards W. Neimeijer David's solution % \definebodyfont [28pt,24pt,18pt, 17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [ ex=txex sa 1, mc=txexa sa 1, mrbf=cmbx10 sa 1, exbf=cmex10 sa 1, mibf=cmmib10 sa 1, sybf=cmbsy10 sa 1, mabf=msam10 sa 1] \setupbodyfont [12pt] %%% % txfonts %%% \definemathsymbol [oiint] [op] [mc] [08] [mc] [09] \definemathsymbol [oiiint] [op] [mc] [29] [mc] [2a] \definemathsymbol [ointctrclockwise][op] [mc] [0A] [mc] [0B] \definemathsymbol [ointclockwise] [op] [mc] [0C] [mc] [0D] \definemathsymbol [varointctrclockwise] [op] [mc] [2B] [mc] [2C] \definemathsymbol [varointclockwise][op] [mc] [2D] [mc] [2E] \definemathsymbol [iint][op] [mc] [21] [mc] [22] \definemathsymbol [iiint] [op] [mc] [23] [mc] [24] \definemathsymbol [nt] [op] [mc] [25] [mc] [26] \definemathsymbol [idotsint][op] [mc] [27] [mc] [28] \definemathsymbol [oiintctrclockwise] [op] [mc] [40] [mc] [41] \definemathsymbol [oiintclockwise] [op] [mc] [48] [mc] [49] \definemathsymbol [varoiintctrclockwise][op] [mc] [4A] [mc] [4B] \definemathsymbol [varoiintclockwise] [op] [mc] [42] [mc] [43] \definemathsymbol [oiiintctrclockwise] [op] [mc] [44] [mc] [45] \definemathsymbol [oiiintclockwise] [op] [mc] [4C] [mc] [4D] \definemathsymbol [varoiiintctrclockwise][op] [mc] [4E] [mc] [4F] \definemathsymbol [varoiiintclockwise] [op] [mc] [46] [mc] [47] \starttext The integral equation \startformula \frac{d}{dt} \iiint_{\Omega} f \,dV = \iiint_{\Omega} Q \,dV - \oiint_{\partial\Omega} \vec J \cdot \vec{da} \stopformula can be written under the differential form \startformula \frac{\partial f}{\partial t} = Q - \vec\nabla\cdot\vec J. \stopformula \stoptext % \usemodule[math-extra] \def\X#1{$#1$ \space {\rm{\string#1}}} \def\Y#1{$#1$ \space \rm{\string#1}} \usetypescript[wim] \enablemathcollection[wim] \usemathcollection[wim] \usemathcollection[ams] %\usetypescript[wim] %\switchtobodyfont[wim] \starttext \startformula \oiint , \oiiint, \ointctrclockwise, \ointclockwise, \varointctrclockwise \stopformula \stoptext \placetable{Binary Operators} \starttable[|l|l|l|l|] \NC \X\amalg \NC \X\cup \NC \X\oplus\NC \X\times \NC\NR \NC \X\ast \NC \X\dagger \NC \X\oslash \NC \X\triangleleft\NC\NR \NC \X\bigcirc \NC \X\ddagger \NC \X\otimes \NC \X\triangleright \NC\NR \NC \X\bigtriangledown \NC \X\diamond \NC \X\pm \NC \X\unlhd \NC\NR \NC \X\bigtriangleup \NC \X\div \NC \X\rhd \NC \X\unrhd \NC\NR \NC \X\bullet \NC \X\lhd \NC \X\setminus \NC \X\uplus \NC\NR \NC \X\cap \NC \X\mp \NC \X\sqcap\NC \X\vee \NC\NR \NC \X\cdot\NC \X\odot \NC \X\sqcup\NC \X\wedge \NC\NR \NC \X\circ\NC \X\ominus \NC \X\star \NC \X\wr \NC\NR \stoptable \blank \placetable{AMS Binary Operators} \starttable[|l|l|l|] \NC \X\barwedge\NC \X\circledcirc \NC \X\intercal\NC\NR \NC \X\boxdot \NC \X\circleddash \NC \X\leftthreetimes \NC\NR \NC \X\boxminus\NC \X\Cup \NC \X\ltimes \NC\NR \NC \X\boxplus \NC \X\curlyvee\NC \X\rightthreetimes \NC\NR \NC \X\boxtimes\NC \X\curlywedge \NC \X\rtimes \NC\NR \NC \X\Cap \NC \X\divideontimes \NC \X\smallsetminus \NC\NR \NC \X\centerdot \NC \X\dotplus \NC \X\veebar \NC\NR \NC \X\circledast \NC \X\doublebarwedge \NC \NC\NR \stoptable \blank \placetable{AMS Negated Binary Operators} \starttable[|l|l|l|] \NC \X\ncong \NC \X\nshortparallel \NC \X\nVDash \NC\NR \NC \X\nmid \NC \X\nsim \NC \X\precnapprox \NC\NR \NC \X\nparallel \NC \X\nsucc \NC \X\precnsim\NC\NR \NC \X\nprec \NC \X\nsucceq
[NTG-context] table-caption: centred or not??
Hello, how are the rules, that determine if the caption is centred? Here my test-case, ok means: this is how I like it and not ok means, I don't like it: \setupcaptions[width=\makeupwidth] \def\MyTable#1{\placetable{\dorecurse{#1}{bla }}{\starttable[|c|] \NC This is a table.\NC\AR\stoptable}} \starttext \MyTable{2} % ok \MyTable{10} % not ok \MyTable{30} % ok \setupcaptions[align=middle] \MyTable{2} % ok \MyTable{10} % ok \MyTable{30} % not ok \stoptext What should I do, to get 3 times ok ? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Multi-page tables
Hi all, I'm having a bit of trouble getting multiple page tables to work when also using \placetable for captions. Essentially, I want: (1) Captions and the ability to reference with \in[]. (2) Alignment within a cell at a decimal point. (3) Span multiple pages with header/footer. I think I would prefer to use the standard 'TABLES' method but it looks like item 2 is only supported in natural tables? Below are two examples. I don't get page breaks in either case and the table runs off the bottom of pages 2 and 3. Thanks, Randall \definepapersize [width=8.5in, height=11in] \setupcaption[table] [location=top] \starttext \section{Testing} This is a silly table test. \placetable[page][tbl:sample] {Sample table caption goes here} {\start \switchtobodyfont[small] \starttablehead \HL \VL command \NC meaning \NC $\lambda$ (deg.) \VL\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|c|l|c|] \VL \tex{NC}\NC next column \NC1.15 \VL\FR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\LR \stoptables \stop} \section{Natural Testing} This is a silly natural table test. \placetable[page][tbl:naturalSample] {Sample table caption goes here} {\start \switchtobodyfont[small] \bTABLE[split=repeat, splitmethod=a] % Outside border \setupTABLE[frame=off] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \setupTABLE[row][first][topframe=on] \setupTABLE[row][last][bottomframe=on] % Heading line bottom rule \setupTABLE[row][first][bottomframe=on] % Alignment \setupTABLE[column][1][width=2.5cm,align=middle] \setupTABLE[column][2][width=2.5cm,align=right] \setupTABLE[column][3][width=2.5cm,alignmentcharacter={.},aligncharacter=yes,align=middle] % Header \bTABLEhead \bTR\bTD command \eTD\bTD meaning \eTD\bTD $\lambda$ (deg.) \eTD\eTR \eTABLEhead % Body \bTABLEbody \bTR\bTD \tex{NC}\eTD\bTD next column \eTD\bTD1.15 \eTD\eTR \bTR\bTD \tex{HL}\eTD\bTD horizontal line \eTD\bTD 10.20 \eTD\eTR \bTR\bTD \tex{VL}\eTD\bTD vertical line \eTD\bTD -14.30 \eTD\eTR \bTR\bTD \tex{NR}\eTD\bTD next row
[NTG-context] \defineparagraphs, \setupparagraphs newbie question
hi there, i am trying to step a 2 column paragraph \defineparagraphs [poem][n=2] \setupparagraphs [poem][1][width=.4\textwidth] \startpoem poemtitle \poem \startlines ... ... \stoplines \stoppoem the second column is always in \startlines .. \stoplines it is not clear to me after reading the manual what are before, after, inner, or that if these could be used for something like this. -f -- smile, its the second best thing you can do with your lips. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context