[NTG-context] Complete list of math symbols
Hi, I want to know the complete list of math symbols in MKIV. Thanks ___ 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] Mathdesign fonts usage
Hi, I have tested all samples in the arxive to use mathdesign fonts for math but no success has been reached. Any comment is wellcome. ___ 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] Complete list of math symbols
On Thu, Mar 18, 2010 at 08:01, Mehdi Omidali wrote: > Hi, > I want to know the complete list of math symbols in MKIV. See char-def.lua and search for mathname and mathspec. The list may not be complete, but any suggestions for adding new definitions are welcome. Mojca ___ 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] Mathdesign fonts usage
Am 18.03.10 08:12, schrieb Mehdi Omidali: Hi, I have tested all samples in the arxive to use mathdesign fonts for math but no success has been reached. Files: http://drp.ly/CC5aF Unzip the archive in one of your local TeX folders. Sample: http://drp.ly/CC86L Result: http://drp.ly/CC92k Replace the font defintions in math-vfu.lua with this and regenerate the format. mathematics.make_font ( "charter-math", { -- { name = "file:bchr8a", features = "virtualmath", main = true }, { name = "file:bchri8a", features = "virtualmath", main = true }, -- { name = "md-chr7m.tfm", vector = "tex-mr" }, { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = true }, { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, -- { name = "md-chbma.tfm", vector = "tex-ma" }, -- { name = "md-chbmb.tfm", vector = "tex-mb" }, { name = "msam10.tfm", vector = "tex-ma" }, { name = "msbm10.tfm", vector = "tex-mb" }, } ) mathematics.make_font ( "garamond-math", { -- { name = "file:ugmr8a", features = "virtualmath", main = true }, { name = "file:ugmri8a", features = "virtualmath", main = true }, -- { name = "md-gmr7m.tfm", vector = "tex-mr" }, { name = "md-gmri7m.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "md-gmri7m.tfm", vector = "tex-it", skewchar=0x7F }, { name = "md-gmr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = true }, { name = "md-gmr7v.tfm", vector = "tex-ex", extension = true }, -- { name = "md-gmmma.tfm", vector = "tex-ma" }, -- { name = "md-gmmmb.tfm", vector = "tex-mb" }, { name = "msam10.tfm", vector = "tex-ma" }, { name = "msbm10.tfm", vector = "tex-mb" }, } ) mathematics.make_font ( "utopia-math", { -- { name = "file:putr8a", features = "virtualmath", main = true }, { name = "file:putri8a", features = "virtualmath", main = true }, -- { name = "md-utr7m.tfm", vector = "tex-mr" }, { name = "md-utri7m.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "md-utri7m.tfm", vector = "tex-it", skewchar=0x7F }, { name = "md-utr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = true }, { name = "md-utr7v.tfm", vector = "tex-ex", extension = true }, -- { name = "md-utbma.tfm", vector = "tex-ma" }, -- { name = "md-utbmb.tfm", vector = "tex-mb" }, { name = "msam10.tfm", vector = "tex-ma" }, { name = "msbm10.tfm", vector = "tex-mb" }, } ) Wolfgang ___ 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] typescripts
Am 18.03.10 02:32, schrieb Michael Saunders: Consider, for example, something like this: a book on film with a header: "Fellini's Roma and 8 1/2". I'm used to setting something like this in this way: Fellini's \it{Roma} and \it{\cvfrac{8}{1}{2}} (where \cvfrac{}{}{} is a macro that gives me a compound vulgar fraction). The header is itself in smallcaps, so what comes out is: Fellini's Roma and 8 (italic and lining (i.e., uppercase) because it's a title) 1/2 all with minimal effort on the part of the writer. It seems natural that way. \setupbodyfont[pagella] \definefontfeature[smcp][smcp=yes] \definefontfeature[frac][frac=yes] \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] \starttext \chapter{Fellini’s {\it Roma} and 8 1/2} \input knuth \stoptext Wolfgang ___ 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] Complete list of math symbols
On Thu, 18 Mar 2010, Mojca Miklavec wrote: On Thu, Mar 18, 2010 at 08:01, Mehdi Omidali wrote: Hi, I want to know the complete list of math symbols in MKIV. See char-def.lua and search for mathname and mathspec. Or let ConTeXt search it for you: \usemodule[fnt-10] \starttext \ShowCompleteFont{name:Cambria-Math}{10pt}{1} \stoptext The names beginning with m: in the last columns are defined in math mode. The list may not be complete, but any suggestions for adding new definitions are welcome. +1 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] Mathdesign fonts usage
On Thu, Mar 18, 2010 at 10:40 AM, Wolfgang Schuster wrote: > Am 18.03.10 08:12, schrieb Mehdi Omidali: >> >> Hi, >> I have tested all samples in the arxive to use mathdesign fonts for math >> but no success has been reached. > > Files: http://drp.ly/CC5aF > > Unzip the archive in one of your local TeX folders. > > Sample: http://drp.ly/CC86L > Result: http://drp.ly/CC92k > > Replace the font defintions in math-vfu.lua with this and regenerate the > format. > > mathematics.make_font ( "charter-math", { > -- { name = "file:bchr8a", features = "virtualmath", main = true }, > { name = "file:bchri8a", features = "virtualmath", main = true }, > -- { name = "md-chr7m.tfm", vector = "tex-mr" }, > { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = > true }, > { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, > -- { name = "md-chbma.tfm", vector = "tex-ma" }, > -- { name = "md-chbmb.tfm", vector = "tex-mb" }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > mathematics.make_font ( "garamond-math", { > -- { name = "file:ugmr8a", features = "virtualmath", main = true }, > { name = "file:ugmri8a", features = "virtualmath", main = true }, > -- { name = "md-gmr7m.tfm", vector = "tex-mr" }, > { name = "md-gmri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-gmri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-gmr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = > true }, > { name = "md-gmr7v.tfm", vector = "tex-ex", extension = true }, > -- { name = "md-gmmma.tfm", vector = "tex-ma" }, > -- { name = "md-gmmmb.tfm", vector = "tex-mb" }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > mathematics.make_font ( "utopia-math", { > -- { name = "file:putr8a", features = "virtualmath", main = true }, > { name = "file:putri8a", features = "virtualmath", main = true }, > -- { name = "md-utr7m.tfm", vector = "tex-mr" }, > { name = "md-utri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-utri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-utr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = > true }, > { name = "md-utr7v.tfm", vector = "tex-ex", extension = true }, > -- { name = "md-utbma.tfm", vector = "tex-ma" }, > -- { name = "md-utbmb.tfm", vector = "tex-mb" }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > Wolfgang Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago, and what I probably did wrong was that I did not regenerate the file name database. Now the math is indeed italic and not upright.) It is, however, not completely perfect. With the following example, I get the attached result. I think the prime is too close to the f and also, sin should be "upright" and not italic. Any ideas? % mdprim.tex \definetypeface[charter][mm][math] [charter] [default] \definetypeface[charter][rm][serif][charter] [default] \setupbodyfont[charter,10pt] \starttext $f'(x)=\sin(x)$. \stoptext % end of mdprim.tex Best regards, Mikael PS I hope it is OK to attach a 10kB pdf file mdprim.pdf Description: Adobe PDF document ___ 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] Mathdesign fonts usage
Hi Mikael, Mikael Persson wrote: > > It is, however, not completely perfect. With the following example, I > get the attached result. I think the prime is too close to the f and This problem could be related to a luatex bug : http://tracker.luatex.org/view.php?id=345 First version with that fix was 0.52.0 Best wishes, Taco ___ 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] Mathdesign fonts usage
On Thu, 18 Mar 2010, Mikael Persson wrote: Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago, and what I probably did wrong was that I did not regenerate the file name database. Now the math is indeed italic and not upright.) It is, however, not completely perfect. With the following example, I get the attached result. I think the prime is too close to the f and I don't know. Do they come out correctly with latex? If so, it may be a bug in luatex's italic correction. also, sin should be "upright" and not italic. Any ideas? Try (Untested) \definetypeface[charter][mm][math] [charter] [default] [text=rm] 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] typescripts
Am 18.03.10 02:32, schrieb Michael Saunders: Do you need condensed and regular width together in the running text or do you want one in the text and the other in the header? The different widths of my sans is one thing I hadn't counted on using much (I spend more time in serif) but, since I have the fonts, I thought it would be nice to be able to use them. More than the specific uses I've mentioned above, I'm used to the freedom of being able to use what I have when the need arises. The easiest way is to use different typeface for regular width and condensed, e.g. \definetypeface[myfont][...] and \definetypeface[myfontcd] You can then switch between both with \myfont and \myfontcd. Wolfgang ___ 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] Mathdesign fonts usage
Am 18.03.10 11:14, schrieb Aditya Mahajan: It is, however, not completely perfect. With the following example, I get the attached result. I think the prime is too close to the f and I don't know. Do they come out correctly with latex? If so, it may be a bug in luatex's italic correction. LaTeX use virtual fonts and we use the tfm files only. also, sin should be "upright" and not italic. Any ideas? Try (Untested) \definetypeface[charter][mm][math] [charter] [default] [text=rm] The problem is the fonts do not contain roman letters and I use the italic style or the Charter fonts. { name = "file:bchri8a", features = "virtualmath", main = true }, LaTeX solves this with virtual fonts but we have only tfm’s. Wolfgang ___ 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] Complete list of math symbols
On 3/18/2010 12:47 PM, Mojca Miklavec wrote: See char-def.lua and search for mathname and mathspec. The list may not be complete, but any suggestions for adding new definitions are welcome. Mojca Thanks. I will test as many symbol as I can and report in this post. Just for now, I think \cong is not related to the correct symbol. Mehdi ___ 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] Mathdesign fonts usage
On Thu, Mar 18, 2010 at 11:14 AM, Aditya Mahajan wrote: > On Thu, 18 Mar 2010, Mikael Persson wrote: > >> Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago, >> and what I probably did wrong was that I did not regenerate the file >> name database. Now the math is indeed italic and not upright.) >> >> It is, however, not completely perfect. With the following example, I >> get the attached result. I think the prime is too close to the f and > > I don't know. Do they come out correctly with latex? If so, it may be a bug > in luatex's italic correction. > >> also, sin should be "upright" and not italic. Any ideas? > > Try (Untested) > > \definetypeface[charter][mm][math] [charter] [default] [text=rm] > > Aditya Thanks Aditya! The sin problem goes away with this! Then, there is only the prime problem left (as far as I can see. I should try this setup on a larger paper to see if something else looks strange) Best regards, Mikael ___ 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] ntg-context Digest, Vol 69, Issue 95
Wolfgang Schuster: > \setupbodyfont[pagella] > > \definefontfeature[smcp][smcp=yes] > \definefontfeature[frac][frac=yes] > > \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] ... This is just an example, but what I think you mean to say by it is that the new command \addfs{} has the behavior I describe, but only for otf features and not for things like switching to semibold or to condensed (and, presumably, even if I'm able to define my own commands for things like semibold, something like: \sb ABC \it DEF would set the DEF at regular weight). Since I've never seen anyone talk about \addfs{}, but only give examples, I'm guessing (but just guessing) that there exists somewhere a list of what otf features are active at any given point, and that this command can add to that list. That's great. I might not need it anytime soon, but I'm just curious---are there other commands of this kind? Maybe something to clear the list? That leaves me the problem of installing sets with more than two weights, more than one width and several design sizes, as we spoke about earlier. It's late in the day here, but I hope to try that out tomorrow. Just to make sure I understand the example you and Mojca gave me: > \definebodyfont [default] [rm] > [tf=Serif sa 1, > bf=SerifBold sa 1, > it=SerifItalic sa 1, > sl=SerifSlanted sa 1, > bi=SerifBoldItalic sa 1, > bs=SerifBoldSlanted sa 1, > sc=SerifCaps sa 1] > > You could add your > in=SerifYourFontVariantName sa 1, > bd=SerifYourOtherFontVariantName sa 1, I think I can add this block to the top of my own typescript, duplicate the existing definitions as shown, and, when making up my own, I think I'm free to define font switches with more than two characters, so, e.g.: sbexit=SansSemiboldExtendedItalic sa 1 so, I won't be able to switch variants of this kind independently, but at least I can get them installed. After that, I'll move on to the optical examples and see what I can do about that (I'm hoping they provide for automatic switching of design size). Thank you, -- m ___ 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] Mathdesign fonts usage
Am 18.03.10 11:10, schrieb Taco Hoekwater: Mikael Persson wrote: I think the prime is too close to the f and This problem could be related to a luatex bug : http://tracker.luatex.org/view.php?id=345 This is LuaTeX, Version beta-0.53.0-2010031812 (rev 3520) Unrelated to the bug, the bad kerning remains. Wolfgang ___ 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] Problem in sorting bibtex entries
Dear Taco and list, I have a problem (with the latest minimals) sorting bibtex entries: Consider the following example: % bibbug.tex \usemodule[bib] \setuppublications[ sorttype=bbl, ] \setupbibtex[ database=mp, ] \starttext See~\cite{resi3,resi4} and also~\cite{resi2,resi1}. \placepublications[criterium=all] \stoptext % end of bibbug.tex I get an eror: ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: attempt to compare two nil values stack traceback: ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in function <...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80> [C]: in function 'sort' ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in function 'flush' :1: in main chunk. \typesetpubslist ...hacks.flush("\@@pbsorttype ")} \doendoflist \dodoplacepublications ...sttrue \typesetpubslist \inpublistfalse \endgroup ... l.14 \placepublications[criterium=all] If I uncomment the sorttype=bbl line, it compiles. Attached is the tex file, the log file, and my bib file. Best regards, Mikael bibbug.tex Description: TeX document (/home/mickep/Dropbox/documents/fonttest/bibbug.tex ConTeXt ver: 2010.03.12 19:49 MKIV fmt: 2010.3.18 int: english/english system : cont-new loaded (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/home/mickep/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-lua.tex) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-siz.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-otf.tex (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv))) system : bibbug.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % special commands, mostly for the ctx development team % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ % "bibbug.tex", % } % \stopluacode % % process info % \setupsystem[inputfile=bibbug.tex] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (bibbug.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active (/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/m-obsolete.tex systems : skipping obsolete module ) system : module bib loaded publications: wrote a new auxiliary file cont-en.aux systems : begin file bibbug.tex at line 11 ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: attempt to compare two nil values stack traceback: ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: in function <...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:80> [C]: in function 'sort' ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:93: in function 'flush' :1: in main chunk. \typesetpubslist ...hacks.flush("\@@pbsorttype ")} \doendoflist \dodoplacepublications ...sttrue \typesetpubslist \inpublistfalse \endgroup ... l.14 \placepublications[criterium=all] ? fonts : resetting map file list {/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-base.map} fonts : using map file: original-ams-base {/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map} fonts : using map file: original-public-lm {/home/mickep/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map} fonts : using map file: lm-math {/home/mickep/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {/home/mickep/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} !pag
Re: [NTG-context] Mathdesign fonts usage
On Thu, Mar 18, 2010 at 12:27 PM, Wolfgang Schuster wrote: > Am 18.03.10 11:10, schrieb Taco Hoekwater: >> >> Mikael Persson wrote: >> >>> >>> I think the prime is too close to the f and >>> >> >> This problem could be related to a luatex bug : >> >> http://tracker.luatex.org/view.php?id=345 >> > > This is LuaTeX, Version beta-0.53.0-2010031812 (rev 3520) > > Unrelated to the bug, the bad kerning remains. > > Wolfgang I have now compiled a larger article and so let me update my example a bit: % mdprim.tex \definetypeface[charter][mm][math] [charter][default][text=rm] \definetypeface[charter][rm][serif][charter][default] \setupbodyfont[charter,10pt] \starttext $f'(x)=\sin(x)$, $\partial x$, $\alpha x_2^2$. Define $A\colon \mathbb{R}\to\mathbb{R}$ as\dots. \stoptext % end of mdprim.tex The output is attached. In my opinion the spacing between \partial and x is too small, and the spacing in the x_2^2 does not look right either, but I don't really know what is the problem. Maybe, on a second look the 2s are too big? I'd also expected that the \colon gives a colon (with some space), but maybe that is a ams(la)tex macro I have do define on my own? (As it is now it does not complain about the \colon, but it also gives no colon). Best regards, Mikael PS: The kerning for mathdesign in LaTeX is OK. But that is probably, as someone wrote, due to vf files(?) mdprim.pdf Description: Adobe PDF document ___ 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] Mathdesign fonts usage
On 3/18/2010 2:04 PM, Mikael Persson wrote: On Thu, Mar 18, 2010 at 11:14 AM, Aditya Mahajan wrote: On Thu, 18 Mar 2010, Mikael Persson wrote: Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago, and what I probably did wrong was that I did not regenerate the file name database. Now the math is indeed italic and not upright.) It is, however, not completely perfect. With the following example, I get the attached result. I think the prime is too close to the f and I don't know. Do they come out correctly with latex? If so, it may be a bug in luatex's italic correction. also, sin should be "upright" and not italic. Any ideas? Try (Untested) \definetypeface[charter][mm][math] [charter] [default] [text=rm] Aditya Thanks Aditya! The sin problem goes away with this! Then, there is only the prime problem left (as far as I can see. I should try this setup on a larger paper to see if something else looks strange) Best regards, Mikael ___ 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 ___ Thank you all. Still there is a problem with delimiters (which should be upright) and \mfunction. Please see the attached file. Mehdi %\environment fag-math \definetypeface [charter] [rm] [serif] [modern] [default] \definetypeface [charter] [mm] [math] [charter] [default][text=rm] \definetypeface [utopia] [rm] [serif] [modern] [default] \definetypeface [utopia] [mm] [math] [utopia] [default][text=rm] \definetypeface [garamond] [rm] [serif] [modern] [default] \definetypeface [garamond] [mm] [math] [garamond] [default][text=rm] \definemathcommand [AB] {{\mathblackboard A}} \definemathcommand [AC] {{\mathcal A}} \def\image{{\mathrm{Im}}} \def\af{\mathfrak{a}} \definemathcommand [closure] [nolop] {\mfunction{cl}} \setupheads[align=middle] \starttext \subject{Latin Modern} \startformula c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure \stopformula \startformula \sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon \stopformula \subject{Charter} \switchtobodyfont[charter] \startformula c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure \stopformula \startformula \sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon \stopformula \subject{Utopia} \switchtobodyfont[utopia] \startformula c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure \stopformula \startformula \sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon \stopformula \subject{Garamond} \switchtobodyfont[garamond] \startformula c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure \stopformula \startformula \sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon \stopformula \stoptext ___ 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] Mathdesign fonts usage
Wolfgang Schuster wrote: > Am 18.03.10 11:10, schrieb Taco Hoekwater: >> Mikael Persson wrote: >> >>> I think the prime is too close to the f and >>> >> This problem could be related to a luatex bug : >> >>http://tracker.luatex.org/view.php?id=345 >> > This is LuaTeX, Version beta-0.53.0-2010031812 (rev 3520) > > Unrelated to the bug, the bad kerning remains. In that case, I don't quite understand either. ___ 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] math error
Hallo, the following example compiles ok \starttext \startformula \frac{206}{7}=[29;2,2,1] \stopformula \stoptext while this compiles not \starttext \startformula [29;2,2,1]=\frac{206}{7} \stopformula \stoptext Bug or user error? Wolfgang ___ 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] Problem in sorting bibtex entries
Hi, Mikael Persson wrote: > Dear Taco and list, Better make that 'Dear Hans and list' :) > I have a problem (with the latest minimals) sorting bibtex entries: > > Consider the following example: > > % bibbug.tex > \usemodule[bib] > > \setuppublications[ > sorttype=bbl, > ] > > \setupbibtex[ > database=mp, > ] > > \starttext > See~\cite{resi3,resi4} and also~\cite{resi2,resi1}. > > \placepublications[criterium=all] > \stoptext > % end of bibbug.tex > > I get an eror: > ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: > attempt to compare two nil values For some reason that I do not understand, the publication items in the bbl are not properly registered for sorting. That's all I can figure out. Best wishes, Taco ___ 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] Problem in sorting bibtex entries
On Thu, Mar 18, 2010 at 1:48 PM, Taco Hoekwater wrote: > > Hi, > > Mikael Persson wrote: >> Dear Taco and list, > > Better make that 'Dear Hans and list' :) > sorry, I thought you were the bibtex guy :) >> I have a problem (with the latest minimals) sorting bibtex entries: >> >> Consider the following example: >> >> % bibbug.tex >> \usemodule[bib] >> >> \setuppublications[ >> sorttype=bbl, >> ] >> >> \setupbibtex[ >> database=mp, >> ] >> >> \starttext >> See~\cite{resi3,resi4} and also~\cite{resi2,resi1}. >> >> \placepublications[criterium=all] >> \stoptext >> % end of bibbug.tex >> >> I get an eror: >> ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:83: >> attempt to compare two nil values > > For some reason that I do not understand, the publication > items in the bbl are not properly registered for sorting. > That's all I can figure out. > > Best wishes, > Taco OK, I'll wait for others ideas... Thanks! Best regards, Mikael ___ 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] math error
On 3/18/2010 4:15 PM, Wolfgang Werners-Lucchini wrote: the following example compiles ok \starttext \startformula \frac{206}{7}=[29;2,2,1] \stopformula \stoptext while this compiles not \starttext \startformula [29;2,2,1]=\frac{206}{7} \stopformula \stoptext In context, commands accept options enclosed by [] after their name. In the second example, context expect [29;2,2,1] to be options for \startformula. So replace the second one with \startformula[] [29;2,2,1]=\frac{206}{7} \stopformula Mehdi ___ 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] math error
On Thu, Mar 18, 2010 at 1:45 PM, Wolfgang Werners-Lucchini wrote: > Hallo, > > the following example compiles ok > > \starttext > \startformula > \frac{206}{7}=[29;2,2,1] > \stopformula > \stoptext > > while this compiles not > > \starttext > \startformula > [29;2,2,1]=\frac{206}{7} > \stopformula > \stoptext > > Bug or user error? > > Wolfgang Try \starttext \startformula\relax [29;2,2,1]=\frac{206}{7} \stopformula \stoptext I think the [ is taken as starting an optional argument for \startformula. Best regards, Mikael ___ 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] math error
Sorry, I found it! \starttext \startformula[] [29;2,2,1]=\frac{206}{7} \stopformula \stoptext Wolfgang ___ 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] ntg-context Digest, Vol 69, Issue 95
On 18-3-2010 12:00, Michael Saunders wrote: Wolfgang Schuster: \setupbodyfont[pagella] \definefontfeature[smcp][smcp=yes] \definefontfeature[frac][frac=yes] \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] This is just an example, but what I think you mean to say by it is that the new command \addfs{} has the behavior I describe, but only for otf features and not for things like switching to semibold or to condensed (and, presumably, even if I'm able to define my own commands for things like semibold, something like: \sb ABC \it DEF would set the DEF at regular weight). Since I've never seen anyone talk about \addfs{}, but only give examples, I'm guessing (but just guessing) that there exists somewhere a list of what otf features are active at any given point, and that this command can add to that list. That's great. I might not need it anytime soon, but I'm just curious---are there other commands of this kind? Maybe something to clear the list? this mechanism is one of the spin off's of the oriental tex project (where we play font fonts that have 50+ stylistic variants and 20+ justification variants) \addfontfeaturetoset{..} % merge \subtractfontfeaturefromset {..} % merge \addfontfeaturetofont {..} % overload \subtractfontfeaturefromfont{..} % overload \let\addfs\addfontfeaturetoset \let\subfs\subtractfontfeaturefromset \let\addff\addfontfeaturetofont \let\subff\subtractfontfeaturefromfont there's also \setfontfeature and \setff in principle you can also use this to let fonts adapt to a language / script and in due time i'll add it as automatism there (internally in mkiv this is what we call dynamic features) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 ___
Re: [NTG-context] ntg-context Digest, Vol 69, Issue 95
On 18-3-2010 12:00, Michael Saunders wrote: > ... btw, can those who use the digest mail options please adapt the subject to something meaningful? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 ___
Re: [NTG-context] Complete list of math symbols
Hi! Aditya Mahajan a écrit : On Thu, 18 Mar 2010, Mojca Miklavec wrote: On Thu, Mar 18, 2010 at 08:01, Mehdi Omidali wrote: Hi, I want to know the complete list of math symbols in MKIV. See char-def.lua and search for mathname and mathspec. Or let ConTeXt search it for you: \usemodule[fnt-10] \starttext \ShowCompleteFont{name:Cambria-Math}{10pt}{1} \stoptext This doesn't compile here (MKIV); I get --- .../... system : maths.top loaded (maths.top) fonts : preloading latin modern fonts bodyfont : 12pt rm is loaded language : language en is active (C:/Programmes/ConTeXt/tex/texmf-context/tex/context/base/s-fnt-10.tex ---Here it stops and wait for an input???!!, so I have to crash it Alain The names beginning with m: in the last columns are defined in math mode. The list may not be complete, but any suggestions for adding new definitions are welcome. +1 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] ntg-context Digest, Vol 69, Issue 95
Hans Hagen wxs.nl> writes: > > On 18-3-2010 12:00, Michael Saunders wrote: > > > ... > > btw, can those who use the digest mail options please adapt the subject > to something meaningful? Or use the gmane archive for followups: http://news.gmane.org/gmane.comp.tex.context Just select the message you want to reply to, choose 'followup' from the dropdown list, and you will get a web form that you can use for replying (as I did here). Best wishes, Taco ___ 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] including movies broken?
Dear All, it seems including movies does not work: \starttext \placefigure[here]{none}{\externalfigure[demo.mov][width=0.7\textwidth, height=.7\textwidth, label=demo]} \stoptext processed with "context test_mov.tex" results in ! LuaTeX error ...text/tex/texmf-context/tex/context/base/grph-inc.lua:810: bad argument #4 to 'format' (string expected, got nil) under latest Minimals (Mac OS X 10.6). Did end-user interface change or we are (as so often) are in the middle of some integral migration from "used to work somehow" to "it is done the right way finally" via "the best way to test is to release"? 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] typescripts
I'm trying to follow the examples and getting surprising results: \definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes] \definefontfeature[body][default][onum=yes,pnum=yes,protrusion=quality,expansion=quality] \definefontfeature[smallcaps][body][smcp=yes, onum=yes] %I understood this to mean that "body" would inherit "default" and "smallcaps" would inherit "body". \starttypescript [sans] [gillLT] \definefontsynonym[Gill-Light][name:gillsansmtprolight][features=body] \definefontsynonym[Gill-Light-Italic][name:gillsansmtprolightitalic][features=body] \stoptypescript \starttypescript [sans] [gillLT] \definefontsynonym[Sans][Gill-Light][features=body] \definefontsynonym[SansItalic][Gill-Light-Italic][features=body] \stoptypescript \starttypescript [gill] \definetypeface [gillLT] [ss] [sans] [gillLT] [default] [features=body,script=latn,script=grek] \stoptypescript \setupalign[hanging,hz] \setupbodyfont[gillLT,12pt] \ss 1:1234567890 fi fl ffi ffl\addff{smallcaps} test smallcaps 2:\addff{body} 1234567890 fi fl ffi ffl\addff{smallcaps} test smallcaps In both 1 & 2, ligatures and small caps fail (though the glyphs are in the font). In 1, oldstyle fails. ___ 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] problem with TABLE in TABLE
Hello, How can I do the setups for the inner TABLE? Example: \startsetups outer-table \setupTABLE[c][last][width=5cm] \stopsetups \startsetups inner-table \setupTABLE[c][last][width=2cm] \stopsetups \starttext \bTABLE[setups=outer-table] \bTR\bTD bla \eTD\bTD { \bTABLE[setups=inner-table] \bTR\bTD bla \eTD\bTD problem: width is 5cm instead of 2cm \eTD\eTR \eTABLE } \eTD\eTR\eTABLE \stoptext TIA for any hints! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Which Mk is in TexLive?
Hullo, I wonder whether MkII or MkIV is included in TexLive 2009 (and which one in 2008)... Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suk...@gabbler.org ___ 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] Using external libraries in LuaTeX
<> Taco wrote: = Here is a trivial example using LuaExpat: \starttext \startluacode require "lxp"; text = 'hello world' callbacks = { EndElement = false, StartElement = false, Default = function (p, s) tex.sprint(s) end } p = lxp.new(callbacks) \stopluacode Some xml output: \directlua{p:parse(text)}!. \directlua{p:close()} \stoptext = Wonderful! Thanks Taco. Just for the record, for other Windows users, to get this working I downloaded luaexpat-1.1.win32-lua51.zip from http://luaforge.net/projects/luaexpat/files and from that I copied the following DLLs (from luaexpat-1.1.win32-lua51.zip) libexpat.dll lxp.dll into the following directory on my PC C:\Context\tex\texmf-mswin\bin\lib\lua (adapt to your ConText install) One question, in the minimal example below, the XML text: text = 'text more text ' parses fine *if* on a single line. If I break the text onto multiple lines, eg text = 'text more text ' it fails with ! LuaTeX error :3: unfinished string near '' text '. } = lxp.new(callbacks)d \dodostartluacode ...d \directlua \zerocount {#1}} l.21 \stopluacode Why is this --- is this a catcode issue? Can you suggest a fix? Once again, thank you, as always, for sharing your expertise. Warm wishes Graham === Minimal Example \startluacode require "lxp"; text = 'text more text ' callbacks = { StartElement = function (p, s) tex.sprint("Starting element: " ..s) end, EndElement = function (p, s) tex.sprint("Finishing element: " ..s) end, CharacterData = function (p, s) tex.sprint(s) end } p = lxp.new(callbacks) \stopluacode ___ 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] Using external libraries in LuaTeX
Hi Luigi That is very cool work. At present, it is a bit beyond my fuzzy skills, but I will dfinitely keep a copy of your slides for future reference as I slowly get a bit more familiar with LuaTeX etc. Thanks for sharing that. Warm wishes Graham ___ 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] Which Mk is in TexLive?
On Thu, Mar 18, 2010 at 22:36, Matija Šuklje wrote: > Hullo, > > I wonder whether MkII or MkIV is included in TexLive 2009 (and which one in > 2008)... Both are included in 2009, but MKIV is de-facto non-functional. (It's incompatible with LuaTeX in 2009 and even if present so old that it's useless in 2008.) But if you would like to make it work in TeX Live 2009 ... I have some 99%-working code on my TODO list since the meeting in Bohinj. Exclusive offer for you: "You can invite me for a beer at BachoTeX" in exchange for finishing and publishing it. Mojca ___ 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] problem with TABLE in TABLE
Am 18.03.10 22:28, schrieb Peter Münster: Hello, How can I do the setups for the inner TABLE? I know why i works it works when you write the setup before the table and how to solve it in the ugly way (don’t use this solution) but I can't provide a fix for this. \startsetups outer-table \setupTABLE[c][last][width=5cm] \stopsetups \startsetups inner-table \globalpushmacro\TBLlevel \doglobal\decrement\TBLlevel\relax \setupTABLE[c][last][width=2cm] \globalpopmacro\TBLlevel \stopsetups \starttext \bTABLE[setups=outer-table] \bTR \bTD bla \eTD \bTD { %\setupTABLE[c][last][width=2cm] \bTABLE[setups=inner-table] \bTR \bTD bla \eTD \bTD problem: width is 5cm instead of 2cm \eTD \eTR \eTABLE } \eTD \eTR \eTABLE \stoptext What you can do to separate setup and code you can write \bTD { \setups[inner-table] \bTABLE ... Wolfgang ___ 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] problem with TABLE in TABLE
On Fri, Mar 19 2010, Wolfgang Schuster wrote: > I know why i works it works when you write the setup before the table > and how to solve it in the ugly way (don’t use this solution) but I can't > provide a fix for this. Ok. So it's no real bug, but just a consequence of the design? > What you can do to separate setup and code you can write > > \bTD > { > \setups[inner-table] > \bTABLE Thanks. Indeed, there is no problem to put the setups outside, since I must use grouping anyway. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 ___