[NTG-context] How to define fallback font for symbols
Hi all, Is it possible to set a fallback font from which glyphs will be taken if the current font doesn't have it? For example, I'd want to use fancy miscellaneous symbols from the Symbola font using their unicode codepoint without any extra font-changing command (and obviously, I don't want to use Symbola for the rest of the text). Alternatively, setting different fonts for different unicode blocks would also do the trick. Vianney ___ 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 define fallback font for symbols
2011/6/17 Hans Hagen pra...@wxs.nl: % \definefontfeature[zh][mode=node,script=hang,lang=zhs] % \definefontfallback[serifwhatever] [lmroman10-regular] [0x-0x0400][force=yes] % \definefontfallback[serifboldwhatever] [lmroman10-bold] [0x-0x0400][force=yes] % \definefontfallback[serifitalicwhatever] [lmroman10-italic] [0x-0x0400][force=yes] % \definefontfallback[serifbolditalicwhatever][lmroman10-bolditalic][0x-0x0400][force=yes] % % \starttypescript [serif] [zhfont] % \definefontsynonym [zhserif] [AdobeSongStd-Light] [features=zh,fallbacks=serifwhatever] % \definefontsynonym [zhserifbold] [AdobeHeitiStd-Regular][features=zh,fallbacks=serifboldwhatever] % \definefontsynonym [zhserifitalic] [AdobeKaitiStd-Regular][features=zh,fallbacks=serifitalicwhatever] % \definefontsynonym [zhserifbolditalic][AdobeHeitiStd-Regular][features=zh,fallbacks=serifbolditalicwhatever] % \stoptypescript % % \starttypescript [serif][zhfont][name] % \definefontsynonym[Serif] [zhserif] % [fallbacks=serifwhatever] % \definefontsynonym[SerifBold] [zhserifbold] % [fallbacks=serifboldwhatever] % \definefontsynonym[SerifItalic] [zhserifitalic] % [fallbacks=serifitalicwhatever] % \definefontsynonym[SerifBoldItalic] [zhserifbolditalic] % [fallbacks=serifbolditalicwhatever] % \stoptypescript % % \starttypescript[myfont] % \definetypeface[myfont][rm][serif][zhfont] % \stoptypescript % % \usetypescript[myfont] \setupbodyfont[myfont,rm,12pt] % % \starttext % fonts {\bf fonts} {\bi fonts} {\it fonts} % \stoptext This works fine, thanks. However, instead of redefining the typescripts, is it possible to set a global fallback for all fonts, like we can do for font features? E.g. \definefontfeature[default][default][fallbacks=whatever] to be able to reuse existing typescripts. Vianney ___ 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] \rotate broken
Hi, The latest beta seems to have broken the \rotate command. \starttext \rotate{Test} \stoptext gives the following error ! Missing { inserted. system tex error on line 2 in file test.tex: Missing { inserted ... 1 \starttext 2 \rotate{Test} 3 \stoptext 4 to be read again \hbox \grph_rotate_finish_indeed -\hbox \bgroup \ifx \p_rotation_rotation \empty ... \syst_boxes_with_next_box ...rotate_finish_indeed \egroup \egroup l.2 \rotate{Test} Vianney ___ 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] \rotate broken
2012/1/5 Hans Hagen pra...@wxs.nl: indeed, i already fixed it yesterday but didn't upload yet Hans Always nice to hear. I'll patiently wait for the Wise Men then :o). Thanks, Vianney ___ 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] Inline itemize
Hello, If I type Blabla. \startitemize[a,text] \item one \item two \stopitemize Blabla. I get a linebreak before and after the itemize. Is this the intended behaviour? How can I get a fully inline enumeration? Thanks, Vianney ___ 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] Inline itemize
On Fri, Jan 6, 2012 at 00:25, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: No, this is a bug because with the “text” keyword you can create a inline item which doesn’t start a new paragraph. Wolfgang Thanks for the confirmation. I hope it will be fixed soon. Vianney ___ 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] footnote way=bypage
Hi, I think I've found another bug. When asking to number footnotes by page, context says the \checkpagechange macro is undefined. Minimal example: \setupnote[footnote][way=bypage] \starttext \input{tufte}\footnote{Note} \stoptext Vianney ___ 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] beta
On Sun, Jan 8, 2012 at 18:40, Hans Hagen pra...@wxs.nl wrote: I uploaded a new beta. Apart from some fixes the core font/type modules have been cleaned up so there might be temporary font side effects. Seems like those cleanups have broken the simplefonts module. \usemodule[simplefonts] \setmainfont[Gentium] \starttext \input{tufte} \stoptext Vianney ___ 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] beta
2012/1/9 Wolfgang Schuster schuster.wolfg...@googlemail.com: Fixed. Wolfgang Thanks Wolfgang, it works with today's minimals. @Hans: in the latest beta, the textdistance parameter for inline itemize does not work anymore. But it's not a showstopper for me as I'm happy with the new default :o). Example: \starttext Hello \startitemize[text][textdistance=0.5em] \item One \item Two \stopitemize world. \stoptext BTW, the bypage footnote numbering is still broken. Any workaround? Vianney ___ 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] Protrusion and expansion in simplefonts not working in latest beta?
Hello, Protrusion and expansion seem to be not working anymore when using the simplefonts module in the latest betas. I used to write something like \usemodule[simplefonts][protrusion=quality,expansion=quality] \setupalign[hanging,hz] \setmainfont[Tex Gyre Bonum] but that doesn't give me any of the nice effects anymore. Has something changed in the interface to access those features? BTW, I would definitely love an option in simplefonts to take care of this whole setup at once. Something like \setupmodule[simplefonts][microtypography=yes] to take care of the first two lines of the previous example. Or at least imply \setupalign[hanging] when setting the protrusion parameter and similarly for the expansion parameter. Thanks, Vianney ___ 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] Protrusion and expansion in simplefonts not working in latest beta?
On Tue, Aug 17, 2010 at 20:23, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \setmainfont[Tex Gyre Bonum][protrusion=quality,expansion=quality] Thanks, that does the trick. Any reason why we cannot set these settings as module parameters anymore? 2010/8/17 Hans Hagen pra...@wxs.nl: please keep the original key names (protrusion and expansion) as it's already complex enough .. nowhere we use the term microtypography and it is a rather meaningless term as there is much micro going on Ok, that's rational. No problem, I can live without it. to take care of the first two lines of the previous example. Or at least imply \setupalign[hanging] when setting the protrusion parameter and similarly for the expansion parameter. in many case you don't want to use them both at the same time Could you expand a bit more on this? My understanding was that setting protrusion=quality without \setupalign[hanging] did nothing, but of course I may be completely wrong. Thanks, Vianney ___ 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] parsing custom syntax in lua
Hello, What is the best way to pass verbatim text to lua for processing? I would like to write a lua parser for non-TeX text with a custom syntax (could be something like Markdown for instance). The interface would be \startMyFormat % custom syntax % \stopMyFormat \processMyFormatfile[external file.custom] % alternative The text between \startMyFormat and \stopMyFormat or the text read from the external file should be passed as one utf8-encoded string to a lua function. Any ideas on how to write these macros? On a side note, does anyone know of a quick way to strip diacritical marks from utf8-encoded strings in lua (i.e., transform them to pure ascii)? Thanks, Vianney ___ 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] parsing custom syntax in lua
On Tue, Aug 31, 2010 at 11:05, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Take a look at this module: http://github.com/adityam/filter You can find examples here: http://randomdeterminism.wordpress.com/ Wolfgang Thanks Wolfgang, that module does indeed seem very interesting and do something related to my problem. I'll dig into it. Vianney ___ 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] No bleeding with 2UP arranging
Hello, When using 2UP arranging, the pages are clipped to their bounding box, loosing any bleeding. Example: \setuppapersize[A6][A4,landscape] \setuparranging[2UP] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \showframe \startreusableMPgraphic{background} StartPage; fill fullcircle scaled 1cm; StopPage; \stopreusableMPgraphic \defineoverlay[background][\reuseMPgraphic{background}] \setupbackgrounds[page][background=background] \starttext \dorecurse{4}{\page\input tufte} \stoptext There should be a circle centered in the lower-left corner of every page. With 2UP arranging, this circle is clipped. With no arranging or 2**2 arranging, everything works fine. Is there any way around this? Thanks, Vianney ___ 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] \structureheadnumber does not work before first section
Hi, I'm trying to get the last section number using \structureheadnumber[section][last]. This works fine inside a section, but expands to nothing when used at the beginning of the document. Here is a minimal example: \starttext Last: \structureheadnumber[section][last] \dorecurse{4} {\section{Test #1} Last: \structureheadnumber[section][last]} \stoptext Vianney ___ 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] looking for fonts in a project's subdirectory
Hi, In order for some projects (mkiv) to be self-contained, I want to put the used fonts inside the project directory. Putting them next to the .tex files works fine, but I would like to put them in a subdirectory, e.g., to have the following kind of structure: project/ fonts/ fontA.otf fontB.otf env.tex document1.tex document2.tex I could modify the OSFONTDIR environment variable before calling context, but that's not very editor-friendly. Is there any command or Lua code that I can put in my environment file env.tex forcing context to also look into the fonts subdirectory? Thanks, Vianney ___ 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] \definenamespace
Could there also be a bug in the \setup command definition: \unexpanded\def\doinstallsetuphandler#1#2#3#4#5% {\unexpanded\def#2{\dodoubleempty#4}% \newtoks#5% \def#4[##1][##2]% {\ifsecondargument \def\docommand1% we will have a simple one as well {\edef#3{##1}% \getparameters[#1#3][##2]% \the#5}% \processcommalist[##1]\docommand \else \let#3\empty \getparameters[#1][##1]% \the#5% \fi}} I would expect (difference is on the seventh line): \unexpanded\def\doinstallsetuphandler#1#2#3#4#5% {\unexpanded\def#2{\dodoubleempty#4}% \newtoks#5% \def#4[##1][##2]% {\ifsecondargument \def\docommand1% we will have a simple one as well {\edef#3{1}%-- argument of \docommand instead of the comma-separated list \getparameters[#1#3][##2]% \the#5}% \processcommalist[##1]\docommand \else \let#3\empty \getparameters[#1][##1]% \the#5% \fi}} Vianney PS: just to learn some TeXnical details, could someone explain what the \unexpanded is supposed to do here? ___ 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] index sort question
On Sun, Nov 21, 2010 at 22:48, Horacio Suarez horaciosua...@hotmail.com wrote: A\index[arbol+\pagenumber]{arbol+rojo}\page B\index[araña+\pagenumber]{araña+linda}\page C\index[arbol+\pagenumber]{arbol+verde}\page D\index[araña+\pagenumber]{araña+grande}\page E\index[arbol+\pagenumber]{arbol+blanco}\page I guess you should ensure that \pagenumber is expanded immediately. Otherwise, it will be expanded on your table of contents page, which will of course be the same number for every entry. Maybe try with \setupregister[expansion=yes] If that doesn't work, you could try replacing your \index commands with \expanded{\index[arbol+\pagenumber]{arbol+rojo}} These are only guesses, I may be wrong. Vianney ___ 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] Updated manual
On Sat, Nov 27, 2010 at 10:13, Alan BRASLAU alan.bras...@cea.fr wrote: Are the manuals available with the minimals? If not, could they be, perhaps via an optional switch? Second that. It would be awesome. Vianney ___ 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] some questions related to sorting in registers
Hello, There has been some discussion about this lately, but I have some questions about the sort order in registers. Consider this example: \starttext \index{42 numbers} \index{'apostrophe} \index{‘apostrophe} \index{’apostrophe} \index{quote} \index{“quote} \index{”quote} \index{Oo} \index{ob} \index{oz} \index{Öa} Test \subject{Method zm} \placeindex[method=zm] \subject{Method zc} \placeindex[method=zc] \stoptext First of all, common to both methods, I'd like the unicode apostrophes and quotes to be ignored just like their straight counterpart. Is there a method to do so, apart from specifying the key manually? Using the zm method, entries beginning with a number appear at the very bottom of the index, which is quite a strange place especially as there is no separation with the previous letter. Using the zc method, the numbers are at the right place, but now entries beginning with an accented character appear wrongly in a separate group after the unaccented letters. Is there a way to get the best of both methods? Thanks, Vianney ___ 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] Layout for the first page
On Thu, Dec 30, 2010 at 01:32, Sam Qasbah samqas...@gmail.com wrote: I'm working on a document that must have a layout for the first page and a different layout for all the other pages. This works for me: \setuplayout[...=...] % global layout \definelayout[first][...=...] % layout for the first page \definelayout[2][reset] \setuplayout[first] However, I don't know if there is a better way. Vianney ___ 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] Layout for the first page
Sorry Vianney, I don't understand how it works your code. Please can you type some lines more? Something with Even simpler than before, using your example: \setuplayout[% default layout for all the pages backspace=1cm, width=middle] \definelayout[1][% set this layout on the first page backspace=6cm] \definelayout[2][reset] % reset to the default layout starting from the second page \starttext \showframe \dorecurse{20}{\input dawkins \par \input knuth \par} \stoptext Vianney ___ 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] Layout for the first page
On Thu, Dec 30, 2010 at 16:05, Hans Hagen pra...@wxs.nl wrote: maybe good to put this on the wiki Done: http://wiki.contextgarden.net/Layout#Multiple_layouts ___ 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] Working with conditionals
\def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[10] \fi \startalignment[center] { \blank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \blank \stopalignment } Vianney On Mon, Jan 3, 2011 at 10:46, Cecil Westerhof cldwester...@gmail.com wrote: I have the folowing function for a title: \def\Title[#1]{ \testpage[10] \startalignment[center] { \blank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \blank \stopalignment } What I would like is that there is an optional second parameter. When it is there, it is used in the testpage command. Otherwise the default value is used. How would I do this? -- Cecil Westerhof ___ 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] [OT] Public Fonts for Minority Languages of Russia
On Wed, Jan 5, 2011 at 19:57, luigi scarso luigi.sca...@gmail.com wrote: http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html http://www.paratype.com/public/ What do you think ? I've already used PT Sans for some documents. It's a really nice font in my amateur opinion. However, I wasn't aware of the new PT Serif font. I'll check that out later. As a new year present, here is the typescript I use for PT Sans: \starttypescriptcollection [ptsans] \usetypescriptfile[type-optical] \starttypescript [\s!sans] [ptsans] \definefontsynonym [PTSans-Regular][\s!name:ptsansregular] [\s!features=\s!default] \definefontsynonym [PTSans-Italic] [\s!name:ptsansitalic] [\s!features=\s!default] \definefontsynonym [PTSans-Bold] [\s!name:ptsansbold] [\s!features=\s!default] \definefontsynonym [PTSans-BoldItalic] [\s!name:ptsansbolditalic] [\s!features=\s!default] \definefontsynonym [PTSans-Caption] [\s!name:ptsanscaption] [\s!features=\s!default] \definefontsynonym [PTSans-CaptionBold] [\s!name:ptsanscaptionbold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [ptsans-narrow] \definefontsynonym [PTSans-Narrow] [\s!name:ptsansnarrow] [\s!features=\s!default] \definefontsynonym [PTSans-NarrowBold] [\s!name:ptsansnarrowbold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [ptsans] \setups[font:optical:sans] \definefontsynonym [SansRegular-Regular][PTSans-Regular] [\s!features=\s!default] \definefontsynonym [SansRegular-Italic] [PTSans-Italic] [\s!features=\s!default] \definefontsynonym [SansRegular-Bold] [PTSans-Bold] [\s!features=\s!default] \definefontsynonym [SansRegular-BoldItalic] [PTSans-BoldItalic] [\s!features=\s!default] \definefontsynonym [SansCaption-Regular][PTSans-Caption] [\s!features=\s!default] \definefontsynonym [SansCaption-Bold] [PTSans-CaptionBold] [\s!features=\s!default] \stoptypescript \starttypescript [\s!sans] [ptsans-narrow] \setups[\s!font:\s!fallback:\s!sans] \definefontsynonym [\s!Sans] [PTSans-Narrow] [\s!features=\s!default] \definefontsynonym [\s!SansBold] [PTSans-NarrowBold] [\s!features=\s!default] \stoptypescript \starttypescript [ptsans] \definetypeface [ptsans] [ss] [\s!sans] [ptsans] [optical] \stoptypescript \starttypescript [ptsans-narrow] \definetypeface [ptsans-narrow] [ss] [\s!sans] [ptsans-narrow] [\s!default] \stoptypescript \stoptypescriptcollection Vianney ___ 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] Symbola font glyph size
Hello, I have some troubles using the Symbola font mentioned some time ago on the mailing list (http://users.teilar.gr/~g1951d/Symbola602.zip). It seems like the font metrics are loaded correctly, but the glyphs in the pdf appear approximately half the size, leaving white space above and next to it. Here is a minimal example: \starttext Gg {\definedfont[file:Symbola602.otf]Gg} Gg \stoptext If I use \definedfont[file:Symbola602.otf sa 2], the glyphs are more or less the good size, but the metrics are way too large. I have no problems with this font in OpenOffice. Any ideas? Vianney ___ 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] Symbola font glyph size
On Sat, Feb 12, 2011 at 21:09, Taco Hoekwater t...@elvenkind.com wrote: How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting) Thanks for your answer. I'm using the latest context beta minimals (updated today): ConTeXt - 2011.02.11 18:18 and LuaTeX-0.65.0. Is there a newer version fixing the problem? Vianney ___ 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] Symbola font glyph size
On Sun, Feb 13, 2011 at 08:03, luigi scarso luigi.sca...@gmail.com wrote: No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-) It is indeed what I want: use it as a symbol font. But even when trying to access symbols like this: \definesymbol[Masks][{\definedfont[file:Symbola602.otf sa *]\char1F3AD}] I still have the problem that the glyphs are too small. Do you have a better way to access the symbols and have them at the right size? Thanks, Vianney ___ 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] Symbola font glyph size
2011/2/13 Taco Hoekwater t...@elvenkind.com: It is an error in the context font loader, apparently. It seems it assumes that .otf == postscript. Something for Hans to look at. Renaming the font to Symbola602.ttf is a usable workaround (but you have to clear the font cache). Best wishes, Taco This workaround works perfectly. Now I can use all those neat symbols. Hartelijk bedankt. Vianney ___ 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] Symbola font glyph size
On Sun, Feb 13, 2011 at 09:56, luigi scarso luigi.sca...@gmail.com wrote: \definedfont[file:Symbola602.otf sa 2] seems ok. Try \setupbodyfont[18pt] \starttext Gg {\definedfont[file:Symbola602.otf sa 2]Gg} Gg M{\definedfont[file:Symbola602.otf sa 2 ]\char1F3AD}M and change \setupbodyfont to differents sizes. Symbols should look ok. \stoptext -- luigi The problem with sa 2 is that the lineheight becomes too large and there is a lot of space at the right of the symbol. The glyphs look alright, but the metrics are twice too big. Renaming the file to .ttf as Taco suggests works fine though. Thanks both for your help. Vianney ___ 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] \framed[location=top] and slanted tex gyre bonum
Hello, Yet another new ConTeXt user here. To briefly introduce myself, I am a computer scientist interested in typography as a hobby. Up to now, I did most things in LaTeX (sometimes resorting to ugly TeX hacking). Recently I gave ConTeXt MkIV a try and am quite happy with it. Now my question: I have some problems with the vertical alignment of \framed and some slanted fonts. Using the latest beta, the test file at the end of this message adds a slight whitespace in the two last blocks (using a slanted font). This does not happen when using the default Latin Modern font. Is this a bug or am I doing something wrong? Vianney \showstruts \usemodule[simplefonts] \setmainfont[Tex Gyre Bonum] \setupframed [frame=none, offset=0pt, location=top] \defineoverlay[bg][] \starttext \strut First line\par \strut Second line\par \strut Third line\par \blank \strut First line\par \framed{\strut Second line}\par \strut Third line\par \blank\sl \strut First line\par \strut Second line\par \strut Third line\par \blank \strut First line\par \framed{\strut Second line}\par \strut Third line\par \blank \strut First line\par \framed[background=bg]{\strut Second line}\par \strut Third line\par \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] temporarily disabling enumeration numbering
Hello again, Section 10.3 of the manual says that one can disable numbering for one item of an enumeration by putting [-]. However, this seems to affect the following item instead of the current one. For example, \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-] Second\par \MyEnum Third\par \MyEnum Fourth\par \stoptext removes the number of the third line, instead of the second one. Vianney ___ 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] \framed[location=top] and slanted tex gyre bonum
\setupinterlinespace without changing offset does the trick. Many thanks, Vianney On Mon, Apr 5, 2010 at 14:13, Peter Münster pmli...@free.fr wrote: On Mon, Apr 05 2010, Vianney le Clément wrote: \setupframed [frame=none, offset=0pt, location=top] Hello, I cannot explain why, but offset=overlay seems to be slightly better. \blank\sl \setupinterlinespace Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] temporarily disabling enumeration numbering
Thanks for the patch. Vianney On Mon, Apr 5, 2010 at 14:33, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.04.10 14:04, schrieb Vianney le Clément: Hello again, Section 10.3 of the manual says that one can disable numbering for one item of an enumeration by putting [-]. However, this seems to affect the following item instead of the current one. For example, \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-] Second\par \MyEnum Third\par \MyEnum Fourth\par \stoptext removes the number of the third line, instead of the second one. A perfect example. \unprotect %\def\@@makedescription[#1]#2% % {\postponenotes % new, assumes grouping % \doenumerationcheckconditions % \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% % \@@dostartdescriptionindeed} \def\@@makedescription[#1]#2% {\postponenotes % new, assumes grouping \doenumerationcheckconditions{#1}% \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% \@@dostartdescriptionindeed} %\def\doenumerationcheckconditions % {\doifelse{\descriptionparameter\c!number}\v!yes % {\ifx\currentdescriptionreference\enumerationdisablenumbersignal % \setfalse\enumerationnumberenabled \else \settrue\enumerationnumberenabled % \fi}% % {\setfalse\enumerationnumberenabled}% % \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} \def\doenumerationcheckconditions#1% {\doifelse{\descriptionparameter\c!number}\v!yes {\doifelse{#1}\enumerationdisablenumbersignal\setfalse\settrue\enumerationnumberenabled} {\setfalse\enumerationnumberenabled}% \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} \protect \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-] Second\par \MyEnum Third\par \MyEnum Fourth\par \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 ___ ___ 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] temporarily disabling enumeration numbering
The patch seems to break \footnote: \unprotect % workaround \def\@@makedescription[#1]#2% {\postponenotes % new, assumes grouping \doenumerationcheckconditions{#1}% \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]% \@@dostartdescriptionindeed} \def\doenumerationcheckconditions#1% {\doifelse{\descriptionparameter\c!number}\v!yes {\doifelse{#1}\enumerationdisablenumbersignal\setfalse\settrue\enumerationnumberenabled} {\setfalse\enumerationnumberenabled}% \edef\currentenumerationcoupling{\descriptionparameter\c!coupling}} \protect \starttext Blabla\footnote{blabla} \stoptext writes Blablaln:linenotefootnote. Vianney ___ 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] page layout
I'm trying to find a French equivalent for back/cutspace... any idea? Marge intérieure / marge extérieure? ___ 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] page layout
retourarriere is a litteral translation (to my opinion) and is not reflecting what the keyword backspace really means. In fact, I find it quite exotic in a definition of a page layout... I agree on that one. Maybe we can try some literal translation of the dutch terms: backspace - rugwit - blanc de dos? cutspace - snijwit - blanc de coupure? ___ 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] No indicators in registers when using french as main language
Hello, The subject says it all. \mainlanguage[fr] \starttext \index{Item}Item \placeindex \stoptext There is no indicator i in the index. It appears when you comment out the first line or change it to another language. Adding \setupregister[index][indicator=yes] does not help. Another, probably unrelated, problem is that \completeindex does not seem to do anything. Vianney ___ 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] No indicators in registers when using french as main language
Can you add \startluacode sorters.entries ['fr'] = sorters.entries ['en'] sorters.mappings['fr'] = sorters.mappings['en'] \stopluacode at the begin of your file. Sorting for diacritics won't be perfect but you get now a index. Thanks. Works perfectly. Vianney ___ 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] MetaPost in TABLEs ?
use textbackgrounds ... instead of drawing lines you then do a textext that does a \left{ in math alongside a vbox that has the height of the lefgt boundary etc etc That would be really interesting for a project I'm working on (a songbook). I thought textbackgrounds could only put a color behind the text. Could you give an example of putting such a brace next to an arbitrary number of lines, please? Thank you in advance, Vianney ___ 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] quotechar and command with database module
Hello, There seems to be a bug in the database module when using the quotechar and command option at the same time. Here is a minimal example. \usemodule[database] \defineseparatedlist [CSV] [separator=comma, quotechar={}, command=\Whatever] \def\Whatever#1#2{[#1][#2]\par} \starttext \startCSV One,Two Three,Four \stopCSV \startCSV One,Two Three,three,Four \stopCSV \stoptext It works as expected when commenting the fifth line. Regards, Vianney ___ 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] processaction inside MP graphic
Hello, I'm having some trouble with a macro using \processaction inside a metapost graphic. Here is a minimal example. \def\Shape#1% {\processaction[#1] [square=unitsquare, circle=unitcircle]} \starttext \startuseMPgraphic{test} fill \Shape{square} scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext It stops with the error Use of \p!compareprocessaction doesn't match its definition. Any ideas? Vianney ___ 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] processaction inside MP graphic
On Thu, May 13, 2010 at 09:30, Taco Hoekwater t...@elvenkind.com wrote: Like many of the more complex commands, \processaction does not expand totally. If you are using mkiv, you could define \Shape like this: \def\Shape#1% {\directlua{ local known = {square = 'unitsquare', circle = 'unitcircle' } tex.sprint(known[#1] or 'unitsquare')}} Thanks Taco. That does the trick provided you enclose #1 with quotes: \def\Shape#1% {\directlua{ local known = {square = 'unitsquare', circle = 'unitcircle' } tex.sprint(known['#1'] or 'unitsquare')}} Another, maybe uglier but plain TeX, solution I've come up with is defining auxiliary macros: \def\ShapeSSSsquare{unitsquare} \def\ShapeSSScircle{unitcircle} \def\Shape#1{\csname ShapeSSS#1\endcsname} But of course, this does not handle unknown options (though that could be added). I'll add this to the wiki. Vianney ___ 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] processaction inside MP graphic
\getparameters[Shape][square={unitsquare }, circle={unitcircle }] \starttext \startuseMPgraphic{test} fill \Shapesquare scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext This one's very nice. Thanks. Vianney ___ 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] processaction inside MP graphic
becareful at the spaces at the end, ie \getparameters[Shape][square={unitsquare}, circle={unitcircle}] doesn't work. That's logical, because \Shapesquare eats the spaces following it. In my case, I define my macros like \getparameters[Shape:] [square=unitsquare, circle=unitcircle] \def\Shape#1{\csname Shape:#1\endcsname} and then use \Shape{square}, so it doesn't have the problem. But thanks for pointing that out. Vianney ___ 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] footnote in TABLE
You may want to try localfootnotes. Have a look at the first example of http://wiki.contextgarden.net/Footnotes Regards, Vianney ___ 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] \vskip-\baselineskip after section header in mkIV
Hello, \vskip-\baselineskip behaves strangely when put after a section header. Here is a minimal example. \setuphead[subject][after=] \starttext \subject{Header} \vskip-\baselineskip Text \stoptext One would expect to have Header overprinted by Text. This is the case in mkII, but not in mkIV where we get Header followed by Text on the same line. Is this a bug or a feature? Also interesting is when you add \setuphead[subject][style=] in the preample, then the behavior is like mkII. BTW, if you wonder why I'm using this, I want to put some additional info on the right side of the title when there is room left. Otherwise it should be put just below. Thanks, Vianney ___ 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 ___