Re: [NTG-context] "Redundant equation" is a MetaPost bug in MkIV?
2010/12/5 Aditya Mahajan : > On Sun, 5 Dec 2010, Li Yanrui (李延瑞) wrote: > > When a label (or btex ... etex) is present, ConTeXt processes the MP code > twice: once to typeset the labels and then to place to labels. You get a > redundant equation in the second pass. > > The easiest way to prevent this is to use := instead of = > I see now. Thank you Aditya and others ! -- Best regards, Li Yanrui ___ 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 and bold font: \definetypeface
On Dec 5, 2010, at 20:27 , Procházka Lukáš wrote: > Hello - > > On Sun, 05 Dec 2010 18:34:34 +0100, Florian Wobbe > wrote: > >> \definetypeface [\typescriptone] [mm] [math] [cambria] [default] > > - I don't know what the meaning of individual parameters is: > > \definetypeface > [\typescriptone] % What actually the \typescriptone does? What are other > options? just a placeholder, which comes in handy when you want to define multiple entries at once: \starttypescript [palatino,pagella] \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default] \stoptypescript is equivalent to: \starttypescript [palatino] \definetypeface [palatino] [rm] [serif] [palatino] [default] \stoptypescript \starttypescript [pagella] \definetypeface [pagella] [rm] [serif] [pagella] [default] \stoptypescript see texmf-context/tex/context/base/type-otf.mkiv for lots of examples (BTW: this is the place, where cambria is defined). > [mm] % OK, [re]define the 'mm' member of the font definition > bundle (= typeface) > [math] % Why this when I just specified math to be [re]defined by > 'mm' one line above? takes the fontsynonym from \starttypescript [math] [cambria] and not from \starttypescript [cambria]. again have a look at http://wiki.contextgarden.net/TypeScripts and texmf-context/tex/context/base/type-otf.mkiv. the examples are probably better than an explanation. Florian ___ 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] attention: setuplist kills hyperlinks!
Am 05.12.2010 um 20:59 schrieb Steffen Wolfrum: > Hi, > > please have a look at this minimal example: > > Normally you have a bidirectional hyperlink toc-entry <-> section-head. > But when you uncomment the line with "setuplist" these hyperlinks are gone! > > How does this feature come back? Only lists with the predefined alternatives provide hyperlinks but not ones customized ones with the command alternative. 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] C Pretty Printer module for ConTeXt Mark IV (from 2010.11.26 22:49 version)
Hi folks, A new c pretty printer is available on gitorious http://gitorious.org/c-pretty-printer-module-for-context-mark-iv. It is a LPeg rewritting of the previous pret-c.lua from Peter Münster. Feedbacks and reviews are welcome. Cheers, Renaud ___ 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] attention: setuplist kills hyperlinks!
Hi, please have a look at this minimal example: Normally you have a bidirectional hyperlink toc-entry <-> section-head. But when you uncomment the line with "setuplist" these hyperlinks are gone! How does this feature come back? Best regards, Steffen --- \def\AltCom#1#2#3{#1 #2 #3} \setupinteraction[state=start] \setuphead[chapter][interaction=list] %\setuplist[chapter][alternative=command,command=\AltCom] % <- un/comment \placelist[chapter][criterium=text,interaction=all] \starttext \chapter{test} \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] Math and bold font: \definetypeface
Hello - On Sun, 05 Dec 2010 18:34:34 +0100, Florian Wobbe wrote: \definetypeface [\typescriptone] [mm] [math] [cambria] [default] - I don't know what the meaning of individual parameters is: \definetypeface [\typescriptone] % What actually the \typescriptone does? What are other options? [mm] % OK, [re]define the 'mm' member of the font definition bundle (= typeface) [math] % Why this when I just specified math to be [re]defined by 'mm' one line above? [cambria]% OK, use 'cambria' font for math [default]% OK, keep defaults Would you kindly explain? Friendly regards, Lukas ___ 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] pret-c.lua -> v-c.lua
Hi Peter, > Yes, I've tested with my standard "test.tex" and it's really good, even more > coloring than my pret-c.lua ! I have added variable name coloring as in GNU/Emacs + { } block delimiters coloring (that's straightforward when starting from Hans's v-lua.lua). >> I let you add your copy(left) stuff > Why me? That code is not directly from your pret-c but You could be credited since your work is my entry point… >> and I will make a public git repo on gitorious if you agree. > Good idea (how could I disagree???). Ok, then it will be done later this evening. > Many thanks for your efforts! Your welcome, that's only a small contribution considering all the questions I have posted to that list until now. Cheers, Renaud ___ 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] pret-c.lua -> v-c.lua
On Sun, Dec 05 2010, Renaud AUBIN wrote: > Peter: could you test it? Hello Renaud, Yes, I've tested with my standard "test.tex" and it's really good, even more coloring than my pret-c.lua ! > I let you add your copy(left) stuff Why me? > and I will make a public git repo on gitorious if you agree. Good idea (how could I disagree???). Many thanks for your efforts! 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 ___
Re: [NTG-context] Math and bold font
On Dec 5, 2010, at 14:58 , Procházka Lukáš wrote: > Hello, > > thanks for the explanation - > > On Sat, 04 Dec 2010 09:55:25 +0100, Hans Hagen wrote: > >> On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote: >>> >>> to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I >> >> In fact in math these are not font switches, but switches to a different >> alphabet. In traditional tex that normally is a font switch so one gets >> the other bold or whatever shapes for free, given that they are in that >> font (so it's a side effect of the way math alphabets are implemented), >> but not so in open type math. >> >> there is no default math font in mkiv: one uses regular math or bold >> math (given that there are two font(set)s available which is seldom the >> case) and within them gets bold or heavy alphabets (plus a few chars) > > - So does it mean that the Vladimir's "cambria case" is exactly the seldom > case when regular and bold math are available, both defining Greek chars like > \alpha as well? > \setupbodyfont[cambria] \starttext This is a test. $a=\alpha$ $\bf a=\alpha$ $\bi a=\alpha$ \stoptext > > Please, could you give more examples of normal and bold math fonts "of the > same kin" (to be used for normal and bold math), both having Greek letters as > well? Hi, this does not work with cambria math: $\bf a=\alpha$ $\bi a=\alpha$ You should get the unicode math set of cambria math this way: bold math: $\fontchar{u1D41A}=\fontchar{u1D6C2}$ bold italic math: $\fontchar{u1D482}=\fontchar{u1D736}$ I wonder if there are shorthand macros for accessing the unicode math slots for script, bold, sans, etc. Really strange things happen though (see attachment): % tested with all three: %\setupbodyfont[cambria] %\setupbodyfont[asana] \setupbodyfont[xits] \startTEXpage[offset=1ex] This fails: $a=\alpha$ $\fontchar{u1D41A}=\fontchar{u1D6C2}$ $\fontchar{u1D482}=\fontchar{u1D736}$ However, this is OK (unicode inserted directly): $𝐚𝒂$ {\tfx This is small but the math remains unscaled and displays questionmarks: $a=\alpha$ $\fontchar{u1D41A}=\fontchar{u1D6C2}$ $\fontchar{u1D482}=\fontchar{u1D736}$ } {\tfa This is big and math font is also big and displays correctly: $a=\alpha$ $\fontchar{u1D41A}=\fontchar{u1D6C2}$ $\fontchar{u1D482}=\fontchar{u1D736}$ } {\tfa\tfx This is normal (\type{\tfa\tfx}!) but the math remains big and displays ok: $a=\alpha$ $\fontchar{u1D41A}=\fontchar{u1D6C2}$ $\fontchar{u1D482}=\fontchar{u1D736}$ } \stopTEXpage > - Vladimir showed "cambria". Unfortunately, his solution changes the entire > document bodyfont (i.e. non-math font as well). You could of cause create your own font (e.g. pagella with cambria math): \starttypescript [pagella] \definetypeface [\typescriptone] [mm] [math] [cambria] [default] \stoptypescript \setupbodyfont[pagella] Florian unicode-math-xits.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] "Redundant equation" is a MetaPost bug in MkIV?
2010/12/5 Alan BRASLAU : > Hello, > > You should change all of the "=" to ":=", as in > u := 1cm; > > This instructs metapost to assign a value to the variable; > the standard form "u = 1cm" is a formula for metapost to solve. > It tries then to resolve u = 1cm; xmin = -2.6u; and xmax = 4u; > as a coupled set of equations. Sometimes you can get away with > this but in general one should use the := (assignment) form. > > Consider, for example: > u = u + 1; > (a standard programming statement but nonsense for a mathematician). > I know the difference between "=" and ":=". But that example shows the metafun in MkIV is abnormal since it can be compiled rightly in MkII, which should not have any syntax error. In fact, the following example can be compiled rightly in MkIV. \starttext \startMPcode save u, xmin, xmax; u = 1cm; xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); label.lft("hello",(0, 0)); \stopMPcode \stoptext -- Best regards, Li Yanrui (李延瑞) ___ 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] space in \longrightarrow in lucida (mkiv)
On Sat, Dec 4, 2010 at 19:38, Hans Hagen wrote: > > In lucida-math.lfg there is now: > > variables = { > joinrelfactor = 4, -- default is 3 > } > > and when set that variable will be used in composing the virtual glyph (the > default is 3). So, no complex defs are needed. Maybe there are more > relevant variables. Great, thanks a lot, Hans! This is exactly what I wanted to suggest (as it avoids complex situations with multiple definitions). 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 in resume module
Am 04.12.2010 um 18:01 schrieb Hans Hagen: > so what does the minimal test look like \starttext \starttable[|s0l|] \NC text \NC\NR \stoptable \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] "Redundant equation" is a MetaPost bug in MkIV?
Hello, You should change all of the "=" to ":=", as in u := 1cm; This instructs metapost to assign a value to the variable; the standard form "u = 1cm" is a formula for metapost to solve. It tries then to resolve u = 1cm; xmin = -2.6u; and xmax = 4u; as a coupled set of equations. Sometimes you can get away with this but in general one should use the := (assignment) form. Consider, for example: u = u + 1; (a standard programming statement but nonsense for a mathematician). Alan On Sunday 05 December 2010 04:14:01 Li Yanrui (李延瑞) wrote: > Hi, > > See the following example: > > \starttext > \startMPcode > u = 1cm; > xmin = -2.6u; > xmax = 4u; > drawarrow (xmin,0)--(xmax,0); > \stopMPcode > \stoptext > > It can be compiled rightly. But when I add the 'label' line into it, see: > > \starttext > \startMPcode > u = 1cm; > xmin = -2.6u; > xmax = 4u; > drawarrow (xmin,0)--(xmax,0); > label.lft("hello",(0, 0)); > \stopMPcode > \stoptext > > Now it can not be compiled and luatex outputs: > > mplib : loading 'metafun.mp' (experimental metapost version two) > mplib > mp terminal: ! Redundant equation. > >; > <*> u = 1cm; > xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); > label.lf... > > ! Redundant equation. > > > Is this a bug or it always need to use 'save' macro to hold these > local variable in metafun? ___ 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] "Redundant equation" is a MetaPost bug in MkIV?
Li Yanrui (李延瑞) wrote: > Hi, > > Now it can not be compiled and luatex outputs: > > mplib : loading 'metafun.mp' (experimental metapost version two) > mplib > mp terminal: ! Redundant equation. > >; > <*> u = 1cm; > xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); > label.lf... > > ! Redundant equation. > > > Is this a bug or it always need to use 'save' macro to hold these > local variable in metafun? ConTeXt compiles all metapost code in one long run, so you have to re- declare 'u' to avoid this error (e.g. 'save' or 'numeric u;'). ___ 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] gaps in vertical border of table
Hello all, When creating a table with horizontal lines that do not run across the whole table, gaps are appearing in the vertical border at places the horizontal lines would have been (see attached png). Could someone tell me how to get rid of those spaces? Thanks in advance, Peter van Kranenburg Using Tex Live 2009: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (/usr/local/texlive/2009/texmf/web2c/natural.tcx) entering extended mode (./preklassieken.tex ConTeXt ver: 2009.08.19 17:10 MKII fmt: 2010.6.15 int: dutch/dutch The example was created with: \steltabellenin[korps=10pt,splitsen=herhaal] \plaatstabel[splitsen,hier][tab:custodeshymnes]{Caption.}{\start \starttabelkop \HL \VL \bf Hymne \VL \bf Verset \VL \bf Type A \VL \bf Type B \VL \bf Type C \VL \bf Type D \VL\MR \HL \stoptabelkop \starttabelstaart \HL \stoptabelstaart \starttabellen[|l|l|l|l|l|l|] \VL Ad C\oe{}nam \VL I \VL \VL \VL \VL \VL \MR \DC\DL[5]\DR \VL \VL II \VL 36, 40 \VL \VL \VL \VL \MR \DC\DL[5]\DR \VL \VL III \VL 12 \VL \VL \VL \VL \MR \DC\DL[5]\DR \VL \VL IV \VL 17, 19, 68, 69, 71, 74, 77, 86 \VL \VL \VL 18 \VL \MR \HL [... etc ...] \stoptabellen \stop} <>___ 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] multipage tables - vertical space
Hello all, What's wrong with this multipage table? \starttext \setuptables[split=repeat] \placetable[split,here][tab:example]{Long Table Example}{\start \starttablehead \HL \VL \bf A \VL \bf B \VL\MR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|l|] \dorecurse{100}{\VL first \VL second \VL\MR} \stoptables \stop} \stoptext On each page, I get a vertical space above the footer. see: http://syrinx.knorrie.org/~pvk/tableproblem/tableproblem.pdf Using TeX Live 2009 for Mac OS X: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (/usr/local/texlive/2009/texmf/web2c/natural.tcx) entering extended mode (./tableproblem.tex ConTeXt ver: 2009.08.19 17:10 MKII fmt: 2010.6.15 int: english/english Thanks in advance! Best, Peter van Kranenburg ___ 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] "Redundant equation" is a MetaPost bug in MkIV?
On Sun, 5 Dec 2010, Li Yanrui (李延瑞) wrote: Hi, See the following example: \starttext \startMPcode u = 1cm; xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); \stopMPcode \stoptext It can be compiled rightly. But when I add the 'label' line into it, see: \starttext \startMPcode u = 1cm; xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); label.lft("hello",(0, 0)); \stopMPcode \stoptext Now it can not be compiled and luatex outputs: mplib : loading 'metafun.mp' (experimental metapost version two) mplib > mp terminal: ! Redundant equation. ; <*> u = 1cm; xmin = -2.6u; xmax = 4u; drawarrow (xmin,0)--(xmax,0); label.lf... ! Redundant equation. Is this a bug or it always need to use 'save' macro to hold these local variable in metafun? When a label (or btex ... etex) is present, ConTeXt processes the MP code twice: once to typeset the labels and then to place to labels. You get a redundant equation in the second pass. The easiest way to prevent this is to use := instead of = 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] "Redundant equation" is a MetaPost bug in MkIV?
On 12/05/2010 04:14 AM, Li Yanrui (李延瑞) wrote: Is this a bug or it always need to use 'save' macro to hold these local variable in metafun? It is a side-effect of MkIV running your code through metapost multiple times. But why it does that, I am not sure. 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] substitute glyphs from another font
Hi again, the font I want to use keeps, despite its being otf, small caps and text figures in a separate file, not as features. I’m fine with the caps but I really need text figures as default and a switch to lining figures for the occasional table. Is there a way for typeface A to globally substitute the glyphs for R"09" with their aequivalents from typeface B? (I tried making numbers active but this messes things up royally. Modifying the font is not an option either. Also, some threads[*] on the ml seem to indicate that this is possible but predominantly done with math fonts.) Any solution would be appreciated no matter how hackish it might turn out. Thanks in advance Philipp [*] E.g. http://archive.contextgarden.net/message/20100825.073722.961ad8df.en.html http://archive.contextgarden.net/message/20090930.193712.bf6a4e0c.en.html http://archive.contextgarden.net/message/20101028.185641.136ab929.en.html -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpkwttPaOkDN.pgp Description: PGP signature ___ 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] Typescript Bodoni Old Fashion
On 2010-12-04 <17:38:07>, Mojca Miklavec wrote: > On Fri, Dec 3, 2010 at 23:57, Philipp Gesang wrote: > > > > [2] Can we get the strings > > \definesystemconstant{SerifSemiBold} > > \definesystemconstant{SerifSemiBoldItalic} > > added to mult-sys.mkiv? This would allow the use of > > “\s!SerifSemiBold” in typescripts. > > You can leave the \s! out and simply define "SerifSemiBold" if you want. Of course, but imagine those uneven exceptions in the source … > For other fonts you could have defined an enormous amount of different > synonyms, while you wouldn't have any shortcut such as \bi, \bs etc. > > You can take a look at > > http://meeting.contextgarden.net/2010/talks/2010-09-15-mojca-fonts/some-thoughts-about-typescripts.pdf > Not so much about the idea, but just to get the idea how big the > families could be and how many names you would have to invent (it's in > the order of a few hundred if not more to be able to cover > everything). > > And even then there would be no easy way to switch unless you know the > exact font name anyway. You have some (as in: lots of) valid points in the paper. Font selection, for instance, is a pain -- in my case, simplefonts just picks the bold weight for “\rm” and I can’t blame it because of the unpredictable nomenclature. The best thing that could happen would be a tool like xfontsel for the context font database. However, after looking at the naming schemes of too many fonts I doubt it could be written. > Hans started some basic support (but it needs to be polished out a > bit). See for example > tex/context/fonts/antykwapoltawskiego.lfg > in your TeX tree. This looks very promising. I did the same thing to my font (which is much smaller than antpołt) and had success loading it through “\loadfontgoodies” -- but it doesn’t quite serve as a typescript for font loading yet, does it? (Attached) Thanks for the insights, Philipp > > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments return { name = "bodoniofurw", version = "2010-12-05 12:39:08+0100", comment = "Hoping this will become (a) standard soon", author = "Ph. Gesang", copyright = "Unclaimed", files = { name = "bodoniofurw", list = { ["BodoniOldFasURW-Reg.otf"] = { weight = "normal", style = "regular", width = "normal", }, ["BodoniOldFasURW-RegIta.otf"] = { weight = "normal", style = "italic", width = "normal", }, ["BodoniOldFasURWSC-Reg.otf"] = { weight = "normal", style = "smallcaps", -- the font is old fashioned even wrt otf structure width = "normal", }, ["BodoniOldFasURW-Med.otf"] = { weight = "medium", style = "regular", width = "normal", }, ["BodoniOldFasURW-MedIta.otf"] = { weight = "medium", style = "italic", width = "normal", }, ["BodoniOldFasURW-Bol.otf"] = { weight = "bold", style = "regular", width = "normal", }, ["BodoniOldFasURW-BolIta.otf"] = { weight = "bold", style = "italic", width = "normal", }, }, }, typefaces = { ["bodoniof-normal"] = { shortcut = "rm", shape= "serif", fontname = "bodoniofurw", normalweight = "normal", boldweight = "medium", width= "normal", size = "default", features = "default", }, ["bodoniof-medium"] = { shortcut = "rm", shape= "serif", fontname = "bodoniofurw", normalweight = "medium", boldweight = "bold", width= "normal", size = "default", features = "default", }, ["bodoniof-normalbold"] = { shortcut = "rm", shape= "serif", fontname = "bodoniofurw", normalweight = "normal", boldweight = "bold", width= "normal",
[NTG-context] contextref vs. cont-enp; co-fonts (retry)
Hello, just two notices - 1) When searching for some learning stuff, I found the cont-enp.pdf/12.11.2001 (http://www.pragma-ade.com/show-man-9.htm) which "... is the big reference manual, the one that is supposed to cover the whole of CONTEXT.". Some time ago, I downloaded the contextref.pdf/8.10.2010 (http://pmrb.free.fr/contextref.pdf), whose content is near to that of cont-enp.pdf. Probably just one of both documents is supposed to be the FINAL Ctx manual - and this [only] one should be available for download at both sites. 2) Fonts: wiki refers to http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf (18.11.2009?), whilst the http://www.pragma-ade.com/general/manuals/mfonts.pdf (21.11.2005) is a cca twice wider (and newer?) document. Furthermore, the former document has some links broken (e.g. "(see section ??)" on the page 5 on the first line) and it would be nice if the links were INTERACTIVE (e.g. "(see section <1.5>" to jump to the section 1.5 of the document). Would it be possible to make links in the "mfonts.pdf" interactive ("jumpable"), even in the print version of the document, e.g. in TOC? Probably just one of both documents is supposed to explain deeply the stuff about fonts; this [only] one should be refered and available for download. Friendly regards, Lukas ___ 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 and bold font
Hello, thanks for the explanation - On Sat, 04 Dec 2010 09:55:25 +0100, Hans Hagen wrote: On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote: to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I In fact in math these are not font switches, but switches to a different alphabet. In traditional tex that normally is a font switch so one gets the other bold or whatever shapes for free, given that they are in that font (so it's a side effect of the way math alphabets are implemented), but not so in open type math. there is no default math font in mkiv: one uses regular math or bold math (given that there are two font(set)s available which is seldom the case) and within them gets bold or heavy alphabets (plus a few chars) - So does it mean that the Vladimir's "cambria case" is exactly the seldom case when regular and bold math are available, both defining Greek chars like \alpha as well? \setupbodyfont[cambria] \starttext This is a test. $a=\alpha$ $\bf a=\alpha$ $\bi a=\alpha$ \stoptext Please, could you give more examples of normal and bold math fonts "of the same kin" (to be used for normal and bold math), both having Greek letters as well? - Vladimir showed "cambria". Unfortunately, his solution changes the entire document bodyfont (i.e. non-math font as well). - What is the relationship to AMS fonts (http://www.ams.org/publications/authors/tex/amsfonts)? Or how to make them accessible in Ctx document? How to make them work? - - On the site it's written: "... What is AMSFonts? ... *Subscript sizes of bold math italic and bold Greek letters* ... Because these fonts are standard TeX fonts, they may be used with any standard TeX system ... " - - Wouldn't this be exactly what I'm looking for? Maybe \setupformulas[] should do this? And what \definetypeface[] should precede? best try to convert to the unicode math approach: bold a-z is different unicode slots than a-z and in context the \bf command does that transformation on ascii a-z (you can also key in the official unicode chars); the benefit is that you can cut and paste the bold characters in pdf files i.e. you retain that property; a bold b is not a bold one in typographic sense but a special symbol that happens to use a bold rendering; in for instance a section title, one can have all math bold, and then this regular bold character will become real bold Hans I guess this approach won't be useful in my situation. I need to generate some math by Lua. There is a function that should generate a context formulas with mixed case and/or Greek letters, e.g.: function t(var) context("$" .. var .. "\\alpha = {\\bf " .. -- Or something else instead of "bf" var "\\alpha}") end t("Abc") So the variable name a priori cannot have information whether or not to be printed with regular or bold math - this is up to the function 't()'. --- Now I'm trying to understand "This Way" (11/2003, mag-0005.pdf) where the mixed case is investigated. Also the "co-fonts.pdf"; but it seems to me that this document is a bit out-of-date and "mfonts.pdf" should be used instead. And also Mojca's presentation from Brejlov, the "some-thoughts-about-typescripts.pdf". To be honest, I have a bit mess with fonts: I'm trying to deduce the relationship between: "font script" (text/script/scriptscript?), "font typescript" (serif, sans-serif, math, mono, other?), "font size [marking]" (xx/x/?/a/b/c/d/e; ?/xsmall/small/?/?...?, 5pt, 6pt... 40pt; ... at 6pt, ... at 20pt...; sixpoint,eightpoint,tenpoint... used in some commands), "font weight" (light? semilight? normal/semibold/bold/extrabold?), "font family", "font typeface" - When I look at the Figure 1 "The current bodyfont environment" in mfonts.pdf, I see: \showbodyfontenvironment % [lbr] [lucida] [11.0pt] text script scriptscript x xx small biginterlinespace 20.7pt 14.4pt 12pt 17.3pt 14.4pt 17.3pt 20.7pt not set 17.3pt 12.1pt 8.6pt13.8pt 10.3pt 13.8pt 20.7pt not set ... So what's the relationship between "text", "script", "scriptscript" (and?) "x", "xx", "small" and "big"? Why size for the "script" on the first line is the same for "xx", "text" as for "big" and "x" the same as "small"? Why doesn't work the same on the next lines as well? - The abbreviations for [typefaces?]: rm = ? RoMan? (means serif) (but also wrong "Regular Math" comes to place) ss = Sans Serif tt = TeleType (but means Mono as well) mm = Math what? MatheMatics? (used for typesetting inside $...$) - When I call \definetypeface[whow][rm][serif][modern][computer-modern][encoding=ec] ("mfonts.pdf", pg. 10), why the arguments are "rm" and "serif", although they mark (?) the same [script/"shape"]? - - Why once "modern" and once "computer-modern"? - When I call ("mag-0005.pdf", pg. 4): \definetypeface [mainface] [mm] [bfmath] [lucida]
[NTG-context] contextref vs. cont-enp; co-fonts
Hello, just two notices - 1) When searching for some learning stuff, I found the cont-enp.pdf/12.11.2001 (http://www.pragma-ade.com/show-man-9.htm) which "... is the big reference manual, the one that is supposed to cover the whole of CONTEXT.". Some time ago, I downloaded the contextref.pdf/8.10.2010 (http://pmrb.free.fr/contextref.pdf), whose content is near to that of cont-enp.pdf. Probably just one of both documents is supposed to be the FINAL Ctx manual - and this [only] one should be available for download at both sites. 2) Fonts: wiki refers to http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf (18.11.2009?), whilst the http://www.pragma-ade.com/general/manuals/mfonts.pdf (21.11.2005) is a cca twice wider (and newer?) document. Furthermore, the former document has some links broken (e.g. "(see section ??)" on the page 5 on the first line) and it would be nice if the links were INTERACTIVE (e.g. "(see section <1.5>" to jump to the section 1.5 of the document). Would it be possible to make links in the "mfonts.pdf" interactive ("jumpable"), even in the print version of the document, e.g. in TOC? Probably just one of both documents is supposed to explain deeply the stuff about fonts; this [only] one should be refered and available for download. Friendly regards, Lukas ___ 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 ___