[NTG-context] metafun: formatting numbers
Hello, Formatting numbers seems to be buggy: \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20, 1, 20cm, "@3e") ; \stopMPcode \stoptext See also page 381 of latest metafun-s.pdf. 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] bold small caps
On Sat, Dec 11 2010, Florian Wobbe wrote: > {\setff{smallcaps} SmallCaps {\bf BoldCaps}} Hello, Thanks! What's the difference between \sc and \setff{smallcaps}? Could something like "\def\sc{\setff{smallcaps}}" in the preamble harm in any way? Depending on your answers, I would perhaps request to trigger \setff{smallcaps} by \sc in the core. 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] bold small caps
On Dec 11, 2010, at 23:40 , Peter Münster wrote: > Hello, > > Is there a font in the minimals with bold small caps? I've tried lm and some > tex-gyre fonts, but no success so far... > > Test file: > > \setupbodyfont[???] > \starttext > {\sc\bf Test} or {\bf\sc Test} should give bold small caps... > \stoptext Hi, this should work: \setupbodyfont[pagella] \starttext {\setff{smallcaps} SmallCaps {\bf BoldCaps}} \stoptext 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 ___
[NTG-context] bold small caps
Hello, Is there a font in the minimals with bold small caps? I've tried lm and some tex-gyre fonts, but no success so far... Test file: \setupbodyfont[???] \starttext {\sc\bf Test} or {\bf\sc Test} should give bold small caps... \stoptext http://wiki.contextgarden.net/Pseudo_Small_Caps seems to apply only to mkii. TIA for any help! 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] TEI - conTeXt
On Fri, Dec 10, 2010 at 12:40 PM, Thomas Schmitz wrote: > processing an attribute with the 'xml:' namespace has been fixed by Hans > very recently (last weekend), so if you haven't updated to the latest beta > version, please do and try again; your syntax > \xmlsetsetup{#1}{d...@xml:id='a']} is basically right. I've done as you suggest and downloaded the minimals beta leaving the TeX-live distribution behind, so I can be on the same page with you all. Hans's fix has worked. I'm gratified that my intuition about how @xml:id should work was not wrong. The example in my last message now works as expected. > Addressing content that has been set in xml anchors is possible, but not > quite easy. I wouldn't have been able to figure it out without Hans. Just to > show you an example: here's code that in my TEI document will fetch the > content of a witness list: > > \xmlfirst{#1}{root::/TEI/text/front/d...@type=='sigla']/listWit/witne...@xml:id==string.sub('\xmlatt{#1}{wit}',2)]} > This looks sensible to me. I'll see if I can't make it work with my document next week. Thanks ever so much. Is that string substitution function a bit of Lua? > Last point: I don't want to sound negative, but what you're attempting is > not straightforward and certainly not easy stuff. I am currently planning on > doing a long-term project on editing texts in this manner, and I'm quite > optimistic that all problems can eventually be solved. But if you need > short-term solutions, a perfectly typeset edition within a matter of weeks, > this may not be possible right away. E.g., I don't think we really have a > solid framework yet for a bilingual edition as you envisage it. It is > possible, but not easy, Hans needs the time and many test cases to make the > code work. There is a research group here in Germany (with public funding) > who are currently working on xml printing of material of exactly this type. > I can assure you that for the time being, there's nothing out there which > comes even close to ConTeXt in this area, but we're still at the beginning. > So: if you want to help and test and be part of this, you are more than > welcome, but none of us has a magic bullet; this is work in progress, not > drop-in solutions. Thomas, I do not take it in a negative way; simply practical. I take seriously both the principle and practice of open-source endeavors like ConTeXt, and the scholarly work it can support. I hope and intend that as I get up to speed, I'll be able to make some small contribution, even if it's only posting the commented example of our project on the wiki. I've done some programming in Python, and am rather keen to learn something about Lua, as they have quite a bit in common. It's unlikely I'll be able to make substantive contributions to the code, but not impossible in the fullness of time. I'm mindful of the generosity of all involved, and all on this list, and offer great thanks and kudos. Your cautionary note on the bilingual edition is taken to heart, and I have recommended that for the time being our project will not try to implement a facing page translation. This remains an important desideratum for us however, and I will attend with great interest your progress, and the insights of any engaged in similar efforts. The specific use-case we have in mind, and the problems associated with it may be of interest to others and I'll post it on the wiki. ___ 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] Saveable PDF-Files for Adobe Reader
... As highlighting and adding comments/hand drawings are concerned, I can recommend [free] pdfXChange Viewer. http://www.tracker-software.com/product/pdf-xchange-viewer Lukas On Fri, 10 Dec 2010 12:13:20 +0100, Daniel Grycman wrote: Using Foxit Reader helps a lot... :-) On 10.12.10 11:21, "Martin Schröder" wrote: 2010/12/8 Daniel Grycman : how can I create saveable PDF-Files with ConTeXt for Adobe Reader? ___ 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] empty page before chapter and part
Am 11.12.2010 um 17:58 schrieb Emanuele Sacco: > Hi all. > With the following code the second and eighth pages of the document > are not empty as it would like. > Thanks in advance > > > > \setuppapersize[A4][A4] > > \setuplayout > [location=doublesided, > header=5mm, > headerdistance=15mm, > footerdistance=0mm, > textwidth=14cm] > \setuppagenumbering > [alternative=doublesided, > location=marginedge, > way=bytext, > partnumber=no] > > > \setupheadertexts[][part][chapter][] You can replace this block > \setupbackgrounds[state=repeat] > \setupbackgrounds[header][text][background=whatever] > \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}] > \couplepage[chapter][before={\defineoverlay[whatever][]}] > \setuphead[chapter][before={\pagetype[chapter]}] with \setupheader[text][after=\hrule] % \thinrule Now you can suppress the line on an empty page before the chapter start with \setuphead [chapter] [page={yes,header,right}] 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] customized item list symbol/graphic [solved]
On 2010-12-11 18:24, Wolfgang Schuster wrote: Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf: None of the above setting worked for me. Even tried \startitemize[columns,2*broad][inbetween={\blank[1cm]}] With the „columns“ keyword you get also packed items, to unset this setting add „unpacked“ to your setup: \startitemize[columns,unpacked,2*broad][inbetween={\blank[1cm]}] Please make complete examples next time which can be used without adding extra lines, e.g. this is what i used for your problem: \starttext \startitemize[columns,unpacked][inbetween={\blank[2*big]}] \dorecurse{4}{\item text} \stopitemize \stoptext Wolfgang It worked! I will follow your advice next time! Thanks a lot! Jannema ___ 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] customized item list symbol/graphic
Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf: > None of the above setting worked for me. Even tried > > \startitemize[columns,2*broad][inbetween={\blank[1cm]}] With the „columns“ keyword you get also packed items, to unset this setting add „unpacked“ to your setup: \startitemize[columns,unpacked,2*broad][inbetween={\blank[1cm]}] Please make complete examples next time which can be used without adding extra lines, e.g. this is what i used for your problem: \starttext \startitemize[columns,unpacked][inbetween={\blank[2*big]}] \dorecurse{4}{\item text} \stopitemize \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] customized item list symbol/graphic
On 2010-12-11 17:14, Jan-Erik Hägglöf wrote: On 2010-12-11 16:23, Wolfgang Schuster wrote: Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf: Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with \setupitemize [before={\blank[ or]}, after={\blank[ or]}] and between the individual items with \setupitemize [inbetween={\blank[ or]}] Wolfgang None of the above setting worked for me. Even tried \startitemize[columns,2*broad][inbetween={\blank[1cm]}] ... ... \stopitemize with no luck :-( ___ 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 ___ I've tested without the "columns" parameter and spacing works, seems to be a bug?? Too bad I want the columns!! Janneman ___ 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] empty page before chapter and part
I'm using MKII. 2010/12/11 Emanuele Sacco : > Hi all. > With the following code the second and eighth pages of the document > are not empty as it would like. > Thanks in advance > > > > \setuppapersize[A4][A4] > > \setuplayout > [location=doublesided, > header=5mm, > headerdistance=15mm, > footerdistance=0mm, > textwidth=14cm] > \setuppagenumbering > [alternative=doublesided, > location=marginedge, > way=bytext, > partnumber=no] > > > \setupheadertexts[][part][chapter][] > > \setupbackgrounds[state=repeat] > \setupbackgrounds[header][text][background=whatever] > \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}] > \couplepage[chapter][before={\defineoverlay[whatever][]}] > \setuphead[chapter][before={\pagetype[chapter]}] > > \setuphead[part] > [placehead=yes, > before={\pagetype[chapter]\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[20pt]}, > after=\stopstandardmakeup, > align=middle, > prefix=no, > resetnumber=no] > \setuphead[chapter] > [header=empty] > > \starttext > > \completecontent > > > \part{Parte} > \chapter{Capitolo} > \section{Sezione} > \input knuth > \subsection{Sottosezione} > \input knuth > \input tufte > \section{Altra sezione} > \input knuth > \input tufte > \input knuth > \input tufte > \input knuth > \input tufte > \chapter{Altro Capitolo} > \input knuth > \input tufte > \input knuth > \input tufte > \input knuth > \input tufte > \input tufte > \input knuth > \input tufte > \input knuth > \input tufte > > \stoptext > > > > Emanulele > -- Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema binario e quelli che non lo conoscono. ___ 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] empty page before chapter and part
Hi all. With the following code the second and eighth pages of the document are not empty as it would like. Thanks in advance \setuppapersize[A4][A4] \setuplayout [location=doublesided, header=5mm, headerdistance=15mm, footerdistance=0mm, textwidth=14cm] \setuppagenumbering [alternative=doublesided, location=marginedge, way=bytext, partnumber=no] \setupheadertexts[][part][chapter][] \setupbackgrounds[state=repeat] \setupbackgrounds[header][text][background=whatever] \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}] \couplepage[chapter][before={\defineoverlay[whatever][]}] \setuphead[chapter][before={\pagetype[chapter]}] \setuphead[part] [placehead=yes, before={\pagetype[chapter]\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[20pt]}, after=\stopstandardmakeup, align=middle, prefix=no, resetnumber=no] \setuphead[chapter] [header=empty] \starttext \completecontent \part{Parte} \chapter{Capitolo} \section{Sezione} \input knuth \subsection{Sottosezione} \input knuth \input tufte \section{Altra sezione} \input knuth \input tufte \input knuth \input tufte \input knuth \input tufte \chapter{Altro Capitolo} \input knuth \input tufte \input knuth \input tufte \input knuth \input tufte \input tufte \input knuth \input tufte \input knuth \input tufte \stoptext Emanulele ___ 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] Proposal for math mappings
I'll try once more to explain the setup. If I understand the unicode philosopy correctly, then we do not any font switching macros in math. If we want math italic A, we can simply type 0x1D434; if we want math bold A, we can type 0x1D400; and so on. One difficulty with this approach is that it is not easy to type (and see) these characters in an editor. One way to circumvent this, as is done by the latex unicode-math package, is to define a macro for each symbol: \mathitA, \mathbfA, etc. Even if we define such macros, writing such macros is inconvinient. A more nature way is to write $A {\bf A}$ rather than $\mathitA \mathbfA$ etc. Traditionally, commands like \bf, \it, etc are font switches. However, in unicode math, rather than font switches, these macros are simply input mapping commands. Thus, by default, 0x0041 (latin A) maps to 0x1D434 (math italic A), and so on. If \bf is active, 0x0041 (latin A) maps to 0x1D400 (math bold A), and so on. Roughly speaking, this is how \bf. \it, \bi, \cal, \Bbd, etc work in the background. However, at present these mappings are unsatisfactory. For example, by default, 0x03B1 (Greek alpha) maps 0x1D6FC (Math italic small alpha), while 0xO391 (Greek capital Alpha) maps to itself. What should these mappings be when \bf is active? Or when \bi is active? The trouble with the current implementation of \bf, \bi, \cal, etc is that these mappings are not explicitly specified. My proposal is to allow users to customize these mappings. I agree that digits, upper and lower case latin and greek does not capture all mathematic characters for which such mappings are needed. Similar mappings might also be needed for some symbols like nabla (are there other such symbols?). These can also be added as a key like nabla={normal,italic} or nabla={bold,normal} Hopefully, the above explanation makes more sense. Aditya On Thu, 9 Dec 2010, Aditya Mahajan wrote: This is a proposal for a new way of selecting math mappings in MkIV. I want to get input from other math users whether this syntax would take care of all scenarios or not. There are five different ranges in mathematics: - digits (0..9) - lower case Latin (abc..z) - upper case Latin (ABC..Z) - lower case Greek (αβγ..ζ) - upper case Greek (ΑΒΓ..Z) A user may want to control what each range is mapped to. So, I suggest a setup command \setupmathmappings [ digits={style,alternative}, lclatin={style,alternative}, uclatin={style,alternative}, lcgreek={style,alternative}, ucgreek={style,alternative}, ] where the options for style are normal, bold while the options for alternative are normal, italic, sans, sansitalic, blackboard, script This command will the mappings for each range. **NOTE**: All combinations are not valid. A companion command \definemathmappings [whatever] [] can be used to define multiple mappings. These mappings can be used by \setupmathmappings[whatever] (An alternative is that these mappings are activated using \whatever ...) For example, we can define a command to typeset vectors using \definemathmappings [vectors] [ digits={bold,normal}, lclatin={bold,normal}, uclatin={bold,normal}, lcgreek={bold,normal}, ucgreek={bold,normal}] \def\VEC{\groupedcommand{\setupmathmappings[vector]}{}} If later, we want to represent vectors as sans serif, we can use \definemathmappings [vectors] [ digits={normal,sans}, lclatin={normal,sans}, uclatin={normal,sans}, lcgreek={normal,sans}, ucgreek={normal,sans}] This interface makes it easy to switch math fonts for disiplines that want different style for different alphabet ranges. It is relatively easy to implement the above interface. All we need is some bookkeeping to set the right attributes. The default math mapping commands can be reimplmeneted using \definemappings. Before implementing this, I want to ask the opinion of other math users. Would the above interface take care of different use cases, or is it missing something? Finally, I am not too happy with the syntax. There are only a few ConTeXt commands in which the keys take a pair of values. Another option is to allow all 12 valid options normal, italic, sans, sansitalic, blackboard, script, bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmyms. Which way of specifying the keys do you prefer? 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] customized item list symbol/graphic
On 2010-12-11 16:23, Wolfgang Schuster wrote: Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf: Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with \setupitemize [before={\blank[ or]}, after={\blank[ or]}] and between the individual items with \setupitemize [inbetween={\blank[ or]}] Wolfgang None of the above setting worked for me. Even tried \startitemize[columns,2*broad][inbetween={\blank[1cm]}] ... ... \stopitemize with no luck :-( ___ 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] customized item list symbol/graphic
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf: > Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with \setupitemize [before={\blank[ or ]}, after={\blank[ or ]}] and between the individual items with \setupitemize [inbetween={\blank[ or ]}] 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] Proposal for math mappings
Dear Aditya, I do think that your proposal would be of great help in writing mathematics. Indeed the use of different alphabets, or range of characters with different styles, depend on the fields of mathematics, so having a \setup command like the one you suggest would be wonderful. However, IMHO, the new setup command should follow the general rules of ConTeXt commands for setting up different environments. So maybe the option of having all the 12 forms, as you suggest, normal, italic, sans, sansitalic, blackboard, script, bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript would be more homogeneous with the usual style choice. Best regards: OK On 10 déc. 2010, at 16:29, Aditya Mahajan wrote: > On Fri, 10 Dec 2010, Vladimir Lomov wrote: >> >> ** Aditya Mahajan [2010-12-09 23:49:26 -0500]: >> >>> This is a proposal for a new way of selecting math mappings in MkIV. I want >>> to get input from other math users whether this syntax would take care of >>> all >>> scenarios or not. >>> >>> There are five different ranges in mathematics: >>> - digits (0..9) >>> - lower case Latin (abc..z) >>> - upper case Latin (ABC..Z) >>> - lower case Greek (αβγ..ζ) >>> - upper case Greek (ΑΒΓ..Z) >> Should be: αβγ..ω >> and ΑΒΓ..Ω > > Thanks. I need to learn my Greek :) > >>> A user may want to control what each range is mapped to. So, I suggest a >>> setup >>> command >>> >>>\setupmathmappings >>> [ >>> digits={style,alternative}, >>>lclatin={style,alternative}, >>>uclatin={style,alternative}, >>>lcgreek={style,alternative}, >>>ucgreek={style,alternative}, >>> ] >>> >>> where the options for style are >>> >>> normal, bold >>> >>> while the options for alternative are >>> >>> normal, italic, sans, sansitalic, blackboard, script >>> >>> This command will the mappings for each range. **NOTE**: All combinations >>> are not valid. >>> >>> A companion command >>> >>>\definemathmappings >>> [whatever] >>> [] >>> >>> can be used to define multiple mappings. These mappings can be used by >>> >>>\setupmathmappings[whatever] >>> >>> (An alternative is that these mappings are activated using \whatever ...) >>> >>> For example, we can define a command to typeset vectors using >>> >>>\definemathmappings >>> [vectors] >>> [ digits={bold,normal}, >>> lclatin={bold,normal}, >>> uclatin={bold,normal}, >>> lcgreek={bold,normal}, >>> ucgreek={bold,normal}] >>> >>>\def\VEC{\groupedcommand{\setupmathmappings[vector]}{}} >> Is it should be >> \def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}} >> ? > > Indeed. Thanks. > >>> If later, we want to represent vectors as sans serif, we can use >>> >>> >>>\definemathmappings >>> [vectors] >>> [ digits={normal,sans}, >>> lclatin={normal,sans}, >>> uclatin={normal,sans}, >>> lcgreek={normal,sans}, >>> ucgreek={normal,sans}] >>> >>> This interface makes it easy to switch math fonts for disiplines that want >>> different style for different alphabet ranges. >>> >>> It is relatively easy to implement the above interface. All we need >>> is some bookkeeping to set the right attributes. The default math >>> mapping commands can be reimplmeneted using \definemappings. Before >>> implementing this, I want to ask the opinion of other math users. >>> >>> Would the above interface take care of different use cases, or is it missing >>> something? >> IMHO, style is already used so it is normal. >>> Finally, I am not too happy with the syntax. There are only a few ConTeXt >>> commands in which the keys take a pair of values. Another option is to >>> allow all >>> 12 valid options >>> >>> normal, italic, sans, sansitalic, blackboard, script, >>> bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript > >> This very depends on used fonts. > > I am assuming a complete opentype math font. > >>> with the variants sansitalic-italicsans, boldsans-sansbold, etc. as >>> synonmyms. >>> >>> Which way of specifying the keys do you prefer? >>> >> Actually I don't get what you try to do. > > I'll try to explain better in a later post. > >> I thought that 'font >> switching' command should take care of font switching either in math or >> text modes (if typescript is set properly). > > I am proposing to separate out math font switching from text mode font > switching. > >> Right now the only good >> example of usage of proposed mechanism is \VEC command (for vectors and etc). > > More on this later. > > 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/project
Re: [NTG-context] customized item list symbol/graphic
On 2010-12-11 14:42, Taco Hoekwater wrote: On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote: HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here is an example: There are two small problems with your example code: \defineoverlay[square][\uniqueMPgraphic{square}] That line should read \definesymbol[square][\uniqueMPgraphic{square}] as you need a symbol, not an overlay \startitemize[1,columns] And this '1' should go away: \startitemize[columns] because a '1' there is not a level, but a symbol identifier. Best wishes, Taco Thanks that worked but how to manage more vertical whitespace? Janneman ___ 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] customized item list symbol/graphic
On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote: HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here is an example: There are two small problems with your example code: \defineoverlay[square][\uniqueMPgraphic{square}] That line should read \definesymbol[square][\uniqueMPgraphic{square}] as you need a symbol, not an overlay \startitemize[1,columns] And this '1' should go away: \startitemize[columns] because a '1' there is not a level, but a symbol identifier. 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] customized item list symbol/graphic
HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here is an example: \startuniqueMPgraphic{square} draw roundedsquare(20,20,2) withrgbcolor (.625,0,0); \stopuniqueMPgraphic \defineoverlay[square][\uniqueMPgraphic{square}] \setupitemgroup [itemize] [1] [symbol=square] \starttext \startitemize[1,columns] \dorecurse{10}{\item itempoint \par} \stopitemize \stoptext This doesn't have any effect so my question is how do I manage this? I did following as an alternative solution and it worked as I wanted but If I run this example the linebreak comes in to the next column(third item), which is not what I want. See example below! \definedescription [task] [text=\uniqueMPgraphic{square}, width=broad] \startcolumns \dorecurse{5}{\task very long sentence i will now write to create this weird issue \par} \stopcolumns How do I prevent this, or is there a better solution? Many thanks in advance Janneman \startuniqueMPgraphic{square} draw roundedsquare(20,20,2) withrgbcolor (.625,0,0); \stopuniqueMPgraphic \defineoverlay[square][\uniqueMPgraphic{square}] \definedescription [task] [text=\uniqueMPgraphic{square}, width=broad] \setupitemgroup [itemize] [1] [symbol=square] \starttext \section {First try to change symbol} \startitemize[1,columns] \dorecurse{10}{\item itempoint \par} \stopitemize \section {Next try to define an own description} \startcolumns \dorecurse{5}{\task very long sentence i will now write to create this weird issue \par} \stopcolumns \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 ___