[NTG-context] Indenting nested itemize
The following does not seem to indent the second level itemization. The first level is indented correctly by 2em, but the second level is not indenting by 4em. Troy Henderson \setupindenting[no] \setupitemgroup[itemize][1][][margin=2em] \setupitemgroup[itemize][2][][margin=4em] \starttext Here is some text \startitemize \item Here is an item \item Here is another item \startitemize \item Here is a sub-item \item Here is another sub-item \stopitemize \stopitemize \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] Chapter headings macro
Am 08.02.2013 um 07:31 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello everyone, I have defined a macro for the chapter layouts -- nothing fancy, but still it is giving me trouble. Essentially, I call this macro using *command=* in *\setuphead*. My philosophy was to add all the details in the macro, so that I don't have to call anyother keyvalue pairs in *\setuphead*. However, the macro gives two different results when called for typesetting a chapter heading by ConTeXt internals and explicitly by me in the document (see attached file). I don't know why the chapter number font style is not obeyed. If I add *numberstyle=dfont* in *\setuphead*, then the font size is increased but the frame size has spurious space at top and bottom. When I call the macro myself, there is a single whitespace before the chapter heading (as can be seen in the attached file). I have gone through the wiki as much as possible and I think that I could have easily copied *much better* heading styles from it. But I do not want to use code that I don't fully understand. Any suggestions/help will be most appreciated. \definefont [ChaperNumberStyle][Serif at 60pt] \definecolor[ChaperNumberColor][x=d8dcd6] \startsetups[head:devendra] \startlinealignment[left] \startframed [frame=on, rulethickness=3pt, framecolor=ChaperNumberColor, foregroundcolor=ChaperNumberColor, corner=00] \hspace[big]\headnumbercontent \stopframed \hspace[big] \startframed [width=.1\textwidth, strut=no, frame=on, align={flushleft,nothyphenated,verytolerant}] \headtextcontent \stopframed \stoplinealignment \stopsetups \defineheadalternative[devendra][renderingsetup=head:devendra] \setuphead [chapter] [alternative=devendra, numberstyle=ChaperNumberStyle, textstyle={\tfc\kap\kerncharacters[.5]}] \starttext \chapter{Introduction to thesis} \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 ___
[NTG-context] Text structured by curly braces
Hi, I’m looking for something like the example attatched below, braces open left/right, collecting in hiearchies the entries with the capability of vertical lettering. Is there a mechanism in ConTeXt or third party module? attachment: braces.png___ 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] Adobe Garamond with Simplefont
Thanks Aditja, now I have the output: adobegaramondpro agaramondprobold -Bold.otf adobegaramondprobold agaramondprobold -Bold.otf adobegaramondproitalicagaramondprobolditalic -BoldItalic.otf adobegaramondpronormalagaramondproitalic -Italic.otf adobegaramondproregular agaramondprobold -Bold.otf and everything works fine! Thank you very much! Huseyin What is the output of mtxrun --expand-var OSFONTDIR If it includes the windows font directory, then run mtxrun --script font --reload and then run mtxrun --script font --list --all adobegaramond again. 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] Adobe Garamond with Simplefont
Ok, not everything works fine, now everything is bold. So ConTeXt cant recognize the different versions (normal, bold, italic) from adobe garamond pro correctly. But I use them without simplefonts, then it works. Why it is so hard for hard to recognize them correctly, I saw that for other fonts, too. Whereelse other programs do not have these problems. Huseyin ___ 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] Adobe Garamond with Simplefont
On 2/8/2013 6:16 PM, H. Özoguz wrote: Ok, not everything works fine, now everything is bold. So ConTeXt cant recognize the different versions (normal, bold, italic) from adobe garamond pro correctly. But I use them without simplefonts, then it works. Why it is so hard for hard to recognize them correctly, I saw that for other fonts, too. Whereelse other programs do not have these problems. it all depends on to what extent the style can be derived from the (internal) names when there is much choice it might be better to define a 10 lines typescript ... see examples in type-imp-* files if context couldn't handle bold etc it wouldn't be that useful Hans - 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 structured by curly braces
On 2/8/2013 2:43 PM, Markus Finke wrote: Hi, I’m looking for something like the example attatched below, braces open left/right, collecting in hiearchies the entries with the capability of vertical lettering. Is there a mechanism in ConTeXt or third party module? see meta-imp-fen.mkiv .. if you process that file you see some examples (usage: \useMPlibrary[fen]) - 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 ___
[NTG-context] margin notes in MKIV (doublesided pages)
I need margin notes in a doublesided page environment in MKIV. The following: \setuppagenumbering[alternative=doublesided] \setupinmargin[location=both] \starttext \inmargin{n1}\input knuth\inmargin{note 1} \page \inmargin{n2}\input knuth\inmargin{note 2} \page \inmargin{n3}\input knuth\inmargin{note 4} \stoptext works in MKII. In MKIV, however, all the margin notes are on the left. So how can I get this right in MKIV? Alan ___ 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] margin notes in MKIV (doublesided pages)
On 02/09/2013 06:51 AM, Alan Bowen wrote: I need margin notes in a doublesided page environment in MKIV. The following: \setuppagenumbering[alternative=doublesided] \setupinmargin[location=both] \starttext \inmargin{n1}\input knuth\inmargin{note 1} \page \inmargin{n2}\input knuth\inmargin{note 2} \page \inmargin{n3}\input knuth\inmargin{note 4} \stoptext works in MKII. In MKIV, however, all the margin notes are on the left. So how can I get this right in MKIV? Alan Probably, \setupmargin[location=outer] should do the trick (*not tested*). I have been using \setupmargintext[margintext][location=outer] \margintext{Note 1} without a problem. Regards, Devendra PS: sidenotes style [http://wiki.contextgarden.net/Sidenotes_style] by Andy thomas uses this setup. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Chapter headings macro
On 02/08/2013 06:43 PM, Wolfgang Schuster wrote: Am 08.02.2013 um 07:31 schrieb Devendra Ghate devendra.gh...@gmail.com: Hello everyone, I have defined a macro for the chapter layouts -- nothing fancy, but still it is giving me trouble. Essentially, I call this macro using *command=* in *\setuphead*. My philosophy was to add all the details in the macro, so that I don't have to call anyother keyvalue pairs in *\setuphead*. However, the macro gives two different results when called for typesetting a chapter heading by ConTeXt internals and explicitly by me in the document (see attached file). I don't know why the chapter number font style is not obeyed. If I add *numberstyle=dfont* in *\setuphead*, then the font size is increased but the frame size has spurious space at top and bottom. When I call the macro myself, there is a single whitespace before the chapter heading (as can be seen in the attached file). I have gone through the wiki as much as possible and I think that I could have easily copied *much better* heading styles from it. But I do not want to use code that I don't fully understand. Any suggestions/help will be most appreciated. \definefont [ChaperNumberStyle][Serif at 60pt] \definecolor[ChaperNumberColor][x=d8dcd6] \startsetups[head:devendra] \startlinealignment[left] \startframed [frame=on, rulethickness=3pt, framecolor=ChaperNumberColor, foregroundcolor=ChaperNumberColor, corner=00] \hspace[big]\headnumbercontent \stopframed \hspace[big] \startframed [width=.1\textwidth, strut=no, frame=on, align={flushleft,nothyphenated,verytolerant}] \headtextcontent \stopframed \stoplinealignment \stopsetups \defineheadalternative[devendra][renderingsetup=head:devendra] \setuphead [chapter] [alternative=devendra, numberstyle=ChaperNumberStyle, textstyle={\tfc\kap\kerncharacters[.5]}] \starttext \chapter{Introduction to thesis} \stoptext Wolfgang _ Thank you Wolfgang. I guess this is the proper ConTeXt way. Presumably I will have to define a plain set up for unnumbered chapters like bibliographies and call *\setuphead[chapter][alternative=plain]* for these chapters. Devendra __ 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 ___