[NTG-context] Handling MathML in ConTEXt
Dear Sir, I am new to ConTEXt. I am using the below mentioned coding in a TEX file and try to compile it in ConTEXt to get a .DVI output. But I am getting PDF output only %=\setupbodyfont[times]\usemodule[mathml]\starttext\setupheader [state=stop]\startbuffermath xmlns=http://www.w3c.org/mathml; version=2.0 mcolumn mn123/mn mrow mn456/mn mo+/mo /mrow mline spacing=000+/ mn579/mn /mcolumn/math\stopbuffer\processxmlbuffer\stoptext%== Could you please help me to get .DVI output or PS from ConTEXt. Regards Anantha ___ 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] \pm set too low in MkIV?
On Wed, May 7, 2014 at 2:34 AM, Sanjoy Mahajan san...@mit.edu wrote: the + aligns on the math axis so one can argue if the type-one variant is ok ... so we would need a smaller (less height) + then which would look visually weird Plain TeX doesn't align the plus/minus to the math axis. Rather, the minus is aligned to the baseline, and the horizontal stroke of the plus is above the baseline. I agree that it looks a bit strange with the horizontal stroke of the plus sign not aligned with the horizontal stroke of the plus/minus. Bt it looks even more jarring to have the minus below the baseline, because the baseline is such a strong visual line. I don't think I've ever the minus below the baseline in a math book, and it looks very wrong to my eye. Pagella looks worse than the others, because it has a vertical gap between the minus and the plus sign, so the depth below the baseline is even larger. (all can be achieved ... but the idea of lm/gyre fonts is to provide an acceptable consistent set ... at some point we can think of variants - or maybe the fonts have a variant already) I realize that it's not a ConTeXt problem, but is there a ConTeXt workaround? Or better to go to the TeX guts and compute the depth of the box, then use \raise{}? -Sanjoy ___ 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 ___ Sanjoy, the following borrows the \pm sign from Asana (which also should be like palatino), which looks more normal. % Start example \definefallbackfamily[mainface][math][Asana Math] [range={00B1-00B1}] \definefontfamily[mainface][serif][Tex Gyre Pagella] \definefontfamily[mainface][math][Tex Gyre Pagella Math] \starttext \switchtobodyfont[pagella] Hello $\int x \pm 2 + a $\par \switchtobodyfont[asana] Hello $\int x \pm 2 + a $\par \switchtobodyfont[mainface] Hello $\int x \pm 2 + a $\par \stoptext % Stop example I guess one could do this for the other signs one don't like in TeX Gyre Pagella Math... /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] setuppage is ignored
Dear list, it seems as if \setupnumber is ignored or I am using the wrong way to reset the page numbering. How to start the page numbering at 1 in the bodymatter? ---minimal exampe--- \setuppapersize[A5] \setuppagenumbering[start=start,alternative=doublesided,location=] \setupheader[style=small] \setupheadertexts [{\getmarking[sectionnumber]~\getmarking[section]}] [pagenumber] [pagenumber] [{\getmarking[chapternumber]~\getmarking[chapter]}] \setuphead[chapter][page={yes,right},header=empty,textstyle=\tfc] \definehead [intro] [chapter] \setuphead [intro] [number=no] \definecombinedlist [content][intro,chapter,section] \setuplist [intro] [headnumber=no] \starttext \startfrontmatter \setuppagenumber[numberconversion=romannumerals,state=start,number=1] %\setupnumber[page][1] \completecontent \intro{No number} \input knuth \input knuth \input knuth \stopfrontmatter \startbodymatter \setuppagenumber[numberconversion=numbers,state=start,number=1] %\setupnumber[page][1] \chapter{Has number} \input knuth \input knuth \input knuth \chapter{Has number} \input knuth \input knuth \input knuth \chapter{Has number} \input knuth \input knuth \input knuth \stopbodymatter \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] Force two figures to appear on the same page
Thank you Wolfgang, it works like a bliss! Best Thomas 2014-05-06 12:49 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com: Am 06.05.2014 um 12:36 schrieb Thomas Friedrich friedr...@statistik.tu-dortmund.de: Unfortunately, this is not what I am looking for: Both figures have there own caption and shall appear as separate figures in the list of figures at the end of the document. You can use the floatcombination environment to put many floats into a single block, the figure environment around the combination environment where I disabled the counter is used to center the block. \setupexternalfigures[location=default] \starttext \input knuth \startplacefigure[location=nonumber] \startfloatcombination[1*2] \startplacefigure[title={Dutch cow}] \externalfigure[cow][width=4cm] \stopplacefigure \startplacefigure[title={English cow}] \externalfigure[cow][width=4cm] \stopplacefigure \stopfloatcombination \stopplacefigure \input ward \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 ___ -- Thomas Möbius Fakultät Statistik Technische Universität Dortmund 44221 Dortmund Telefon: 0231 755 - 3116 FAX: 0231 755 - 5304 E-Mail: friedr...@statistik.tu-dortmund.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \pm set too low in MkIV?
On 7 mai 2014, at 10:46, Mikael P. Sundqvist mic...@gmail.com wrote: […] I guess one could do this for the other signs one don't like in TeX Gyre Pagella Math… Hi, This is a good trick to know, especially if one combines \pm and \mp as in the counter-example given by Hans: % Start example \definefallbackfamily[mainface][math][Asana Math] [range={00B1-00B1}] \definefontfamily[mainface][serif][Tex Gyre Pagella] \definefontfamily[mainface][math][Tex Gyre Pagella Math] \starttext \switchtobodyfont[pagella] Hello $ x \pm 2 = a \mp 2 $\par \switchtobodyfont[asana] Hello $ x \pm 2 = a \mp 2 $\par \switchtobodyfont[mainface] Hello $ x \pm 2 = a \mp 2 $\par \stoptext % Stop example The sample with \switchtobodyfont[asana] Hello $ x \pm 2 = a \mp 2 $\par looks quite fine. Best regards: OK ___ 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] Handling MathML in ConTEXt
Hi, is this a duplicate email by accident? On Wed, May 7, 2014 at 6:59 AM, Ananth Narayanan wrote: Dear Sir, I am new to ConTEXt. I am using the below mentioned coding in a TEX file and try to compile it in ConTEXt to get a .DVI output. But I am getting PDF output only %= \setupbodyfont[times] \usemodule[mathml] \starttext \setupheader [state=stop] \startbuffer math xmlns=http://www.w3c.org/mathml; version=2.0 mcolumn mn123/mn mrow mn456/mn mo+/mo /mrow mline spacing=000+/ mn579/mn /mcolumn/math \stopbuffer \processxmlbuffer \stoptext %== Could you please help me to get .DVI output or PS from ConTEXt. You can in principle convert the resulting PDF to PostScript. DVI doesn't even support OpenType fonts and ConTeXt MKIV doesn't really support the old TFM fonts any longer. As Hans already asked: what do you need the DVI format for? While it is not *technically* impossible to implement it, it is certainly a lot of wasted effort for very little or no gain. A lot more useful would be to avoid the need for DVI on the other side. 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 ___
[NTG-context] How to place a verbatim environment in the text such that the following paragraph is not indented?
Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? --- minimal example --- \starttext \setupindenting[1.3em] \setupindenting[yes] \definetyping [R] [options=R, style={\ss}, before={\startframedtext [width=.975\makeupwidth, frame=off, bottomframe=on, topframe=on, background=screen, backgroundscreen=.95]}, after={\stopframedtext}, bodyfont=9pt, margin=1.3em] \input ward You can use the following syntax \startR f - function(x) x^2 \stopR to define a function. (Begging of line should not be indented.) \input ward Have a look at \startformula f(x) = x^2 \stopformula where $f$ is a function. (No indent as expected.) \input ward \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 ___
[NTG-context] Vertical alignment of \placefigure[right]
Hi, I would like to vertically shift the placement of figures (\placefigure[right]...), so that the upper side of the figure would be aligned with the top of the first line in a paragraph as opposed to the bottom of the first paragraph. Here's a minimal example. The second ugly workaround shows what I'm trying to achieve, but ideally using a cleaner approach. Does there exist a magic keyword for that? \starttext \hrule \placefigure[right]{Caption}{\framed[width=5cm,height=4cm]{}} \input knuth % ugly workaround \hrule \vskip-11pt \placefigure[right]{Caption}{\framed[width=5cm,height=4cm]{}} \vskip11pt \input knuth \stoptext Thank you, 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] setuppage is ignored
Am 07.05.2014 um 10:57 schrieb Thomas Möbius kont...@thomasmoebius.de: Dear list, it seems as if \setupnumber is ignored or I am using the wrong way to reset the page numbering. How to start the page numbering at 1 in the body matter? You have to change the value of the “userpage” counter, i.e. \setcounter[userpage][1] is needed. 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] How to place a verbatim environment in the text such that the following paragraph is not indented?
Am 07.05.2014 um 12:46 schrieb Thomas Möbius kont...@thomasmoebius.de: Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? Add “indentnext=auto” to your \definetyping setups. 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] Vertical alignment of \placefigure[right]
Am 07.05.2014 um 14:23 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: Hi, I would like to vertically shift the placement of figures (\placefigure[right]...), so that the upper side of the figure would be aligned with the top of the first line in a paragraph as opposed to the bottom of the first paragraph. Here's a minimal example. The second ugly workaround shows what I'm trying to achieve, but ideally using a cleaner approach. Does there exist a magic keyword for that? You can change the value with \setupfloat[spacebefore=] but it’s a global value for all float types. 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] Vertical alignment of \placefigure[right]
I would like to vertically shift the placement of figures (\placefigure[right]...), so that the upper side of the figure would be aligned with the top of the first line in a paragraph as opposed to the bottom [of the first line?] of the first paragraph. Ah, I can finally answer a question. The key is high: \starttext \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}} \input knuth \stoptext But that seems too easy. Is it what you want? -Sanjoy ___ 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] Vertical alignment of \placefigure[right]
On Wed, May 7, 2014 at 2:48 PM, Sanjoy Mahajan wrote: I would like to vertically shift the placement of figures (\placefigure[right]...), so that the upper side of the figure would be aligned with the top of the first line in a paragraph as opposed to the bottom [of the first line?] of the first paragraph. Ah, I can finally answer a question. The key is high: \starttext \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}} \input knuth \stoptext But that seems too easy. Is it what you want? Yes, perfect, that's *exactly* what I want. Thank you, Sanjoy. Now it would be nice to document this on http://wiki.contextgarden.net/Command/placefigure What other keywords are related to high? I'm guessing low which might or might not spare you an extra line on bottom (but that's just judging from a few quick experiments). If you know a bit more about how to combine these keywords, I would be grateful if you would add a few examples, else I'll document this one. 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] Vertical alignment of \placefigure[right]
I use high in combination with zero spacing afterwards, in order to tighten the text flowing around the figure. Compare the two variants below. (I confess to not knowing the difference between sidespaceafter and spaceafter, but both seem to have the same effect.) \starttext {\setupfloats[sidespaceafter=0pt] \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4.3cm]{}} \input knuth } \vskip1cm \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4.3cm]{}} \input knuth \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] Vertical alignment of \placefigure[right]
Here are a few more keys. I don't fully understand their effect, but I found them in strc-flt.mkvi (p.s. shouldn't that be .mkiv ?). In the final grid examples, I extended the figure height to 4.5cm, to show the effect of the grid, which seems to be that the bottom of the figure aligns with a baseline. The top can then protrude, if the height is not a multiple of the line height. But, if the figure heights are right, it would look good in combination with \setupfloats[sidespaceafter=0pt]. -Sanjoy \starttext \hrule \placefigure[right]{Caption}{\framed[width=5cm,height=4.3cm]{}} \input knuth \vskip1cm \hrule \placefigure[right,fit]{Fit}{\framed[width=5cm,height=4.3cm]{}} \input knuth \page \hrule \placefigure[right,depth]{Depth}{\framed[width=5cm,height=4.3cm]{}} \input knuth \vskip1cm \hrule \placefigure[right,height]{Height}{\framed[width=5cm,height=4.3cm]{}} \input knuth \page \hrule \placefigure[right,halfline]{Halfline}{\framed[width=5cm,height=4.3cm]{}} \input knuth \vskip1cm \hrule \placefigure[right,grid]{Grid}{\framed[width=5cm,height=4.5cm]{}} \input knuth \page \hrule \setupfloats[sidespaceafter=0pt] \placefigure[right,grid,high,none,nonumber]{Grid+high}{\framed[width=5cm,height=4.5cm]{}} The {\bf grid+high figure} \input tufte \input knuth \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] Vertical alignment of \placefigure[right]
Hi, Le 07/05/2014, Sanjoy Mahajan a écrit Here are a few more keys. I don't fully understand their effect, but I found them in strc-flt.mkvi (p.s. shouldn't that be .mkiv ?). Some of the keys are documented in the 'details' manual (http://www.pragma-ade.com/general/manuals/details.pdf) in section 6. I discovered the 'high' key there! All the best. -- Romain Diss ___ 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] LuaTeX-Plain and Inline Math
Hi, Sorry to be a pain: %%tst01.tex Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end %% $ luatex --fmt luatex-plain tst01.tex This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) (format=luatex-plain 2014.5.7) 7 MAY 2014 11:48 \write18 enabled. **tst01.tex 8 (../tex/generic/context/luatex/luatex mplib.tex) ! Missing { inserted. to be read again $ l.2 Inline $\sqrt{1.2}$ math. %-- same for $\root n of x$ Works fine with `luatex` and `pdftex` from MacTeXbasic 2013 (+extras) LuaTeX, Version beta-0.76.0-2013061817 (TeX Live 2013) (rev 4627) pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013) Font issue with roots? ___ 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] LuaTeX-Plain and Inline Math
On 5/7/2014 7:56 PM, Aíre Funvake wrote: Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end replace this in luatex-math.tex: \def\sqrt {\Uroot 0 221A{}} \def\root#1\of{\Uroot 0 221A{#1}} -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Text background that spans the width of the page
Hi Hans, On Tue, May 06, 2014 at 09:29:32PM +0200, Hans Hagen wrote: On 5/2/2014 5:59 PM, Darksair wrote: Hi all, I would like to have a colored horizontal stripe as background for one line of text. Sort of like what textbackground does, but I want it to span the whole \paperwidth, instead of just \textwidth. At the end of the day, I would use it to style for example my section heads, or to highlight one specific \item. What’s the best way to do it? you can use textbackgrounds and plug in some mp code that extends into the margins ... it depends a bit on what 'line' means here \startuniqueMPgraphic{whatever} fill OverlayBox leftenlarged BackSpace rightenlarged CutSpace withcolor OverlayColor ; setbounds currentpicture to OverlayBox enlarged max(BackSpace,CutSpace) ; \stopuniqueMPgraphic \defineoverlay[whatever][\uniqueMPgraphic{whatever}] \framed [background=whatever, backgroundcolor=green, frame=off, width=\textwidth] {test}% Thank you for this interesting solution! I didn’t know one could do that with Metapost. This does exactly what I want. -- Darksair http://darksair.org/ http://twitter.com/#!/MetroWind | http://about.me/darksair http://www.last.fm/user/Darksair ___ 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] LuaTeX-Plain and Inline Math
On 2014-05-07, 21:32 , Hans Hagen wrote: On 5/7/2014 7:56 PM, Aíre Funvake wrote: Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end replace this in luatex-math.tex: \def\sqrt {\Uroot 0 221A{}} \def\root#1\of{\Uroot 0 221A{#1}} Worked like a charm, thank you. ___ 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] \placeinitial query
On 5/6/2014 1:51 PM, Alan Bowen wrote: In the following: \definefallbackfamily[mainface][serif][IFAO Grec Unicode] [range={02BB-1D513}] \definefontfamily[mainface][serif][Tex Gyre Termes][] \setupbodyfont[mainface,10pt] \defineinitial[Greek] [location=margin, font={Regular sa 3}, n=2, distance=-1em, hoffset=1.25em] \starttext \placeinitial[Greek]Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου \blank \placeinitial[Greek]Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου \stoptext the first \placeinitial works but the second does not. I can get both if I make IFAO Grec the main font and Termes the fallback. But then I will lose italics and so forth. Are there some keys or values that I have missed? the first drop comes from termes .. here is a solution \definefontsynonym[DropFont][name:IFAO Grec Unicode] \definefallbackfamily[mainface][serif][IFAO Grec Unicode][range={02BB-1D513}] \definefontfamily[mainface][serif][Tex Gyre Termes][] \setupbodyfont[mainface,10pt] \defineinitial[Greek] [location=margin, font={DropFont sa 3}, n=2, distance=-1em, hoffset=1.25em] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \placeinitial query
Thanks, Hans. That works perfectly. Best, Alan On Wed, May 7, 2014 at 5:02 PM, Hans Hagen pra...@wxs.nl wrote: On 5/6/2014 1:51 PM, Alan Bowen wrote: In the following: \definefallbackfamily[mainface][serif][IFAO Grec Unicode] [range={02BB-1D513}] \definefontfamily[mainface][serif][Tex Gyre Termes][] \setupbodyfont[mainface,10pt] \defineinitial[Greek] [location=margin, font={Regular sa 3}, n=2, distance=-1em, hoffset=1.25em] \starttext \placeinitial[Greek]Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου Διὰ τί του ἡλίου \blank \placeinitial[Greek]Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου Ⲇιὰ τί του ἡλίου \stoptext the first \placeinitial works but the second does not. I can get both if I make IFAO Grec the main font and Termes the fallback. But then I will lose italics and so forth. Are there some keys or values that I have missed? the first drop comes from termes .. here is a solution \definefontsynonym[DropFont][name:IFAO Grec Unicode] \definefallbackfamily[mainface][serif][IFAO Grec Unicode][range={02BB-1D513}] \definefontfamily[mainface][serif][Tex Gyre Termes][] \setupbodyfont[mainface,10pt] \defineinitial[Greek] [location=margin, font={DropFont sa 3}, n=2, distance=-1em, hoffset=1.25em] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Continuous Item Numbering throughout an Entire Document
Hi all, I have a rather long document listing a number of items, which I need to be numbered continuously throughout the entire document. The following approach appears to work well, except that the numbering restarts at the beginning of every chapter. Is there a way that can be avoided? \startitemize[n] \item bar \item faz \stopitemize[n] \startitemize[n, continue] \item foo \item bla \stopitemize[n] Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency ___ 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] Continuous Item Numbering throughout an Entire Document
Am 08.05.2014 um 01:17 schrieb Malte Stien ma...@stien.de: Hi all, I have a rather long document listing a number of items, which I need to be numbered continuously throughout the entire document. The following approach appears to work well, except that the numbering restarts at the beginning of every chapter. Is there a way that can be avoided? \startitemize[n] \item bar \item faz \stopitemize[n] \startitemize[n, continue] \item foo \item bla \stopitemize[n] 1. Show complete examples and not only code snippets. 2. The \stopitemize command has *no* argument. 3. You have to use the \setupcounter command to set a continues numbering. \setupcounter[itemgroup:itemize][way=bytext] \setupitemgroup[itemize][each][n,continue] \starttext \dorecurse{2} {\chapter{First chapter} \dorecurse{2} {\startitemize \dorecurse{3}{\item Item \recurselevel} \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 ___