[NTG-context] unknown script 'context.lua' or 'mtx-context.lua'
Hi guys, I haven't played with ConTeXt for three month because of my examinations. Today, I delete the old version and reinstall a new one from the ConTeXt garden, but it seems that the new one can't run successfully. It says that unknown script 'context.lua' or 'mtx-context.lua. The error messages is the following: mtxrun | forcing cache reload resolvers | resolving | looking for 'texmfcnf.lua' on given path '/home/peng/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path '/usr/bin/' from specification 'selfautoloc:' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/share/texmf-local/web2c' from specification 'selfautoloc:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/share/texmf/web2c' from specification 'selfautoloc:/share/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path '/usr/' from specification 'selfautodir:' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/share/texmf-local/web2c' from specification 'selfautodir:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/share/texmf/web2c' from specification 'selfautodir:/share/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/texmf-local/web2c' from specification 'selfautodir:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/texmf/web2c' from specification 'selfautodir:/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './../texmf-local/web2c' from specification 'selfautoparent:/../texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path './' from specification 'selfautoparent:' resolvers | resolving | looking for 'texmfcnf.lua' on given path './share/texmf-local/web2c' from specification 'selfautoparent:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './share/texmf/web2c' from specification 'selfautoparent:/share/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-contexts.lua' resolvers | resolving | remembered file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'context.lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' Best wishes, Tim ___ 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] unknown script 'context.lua' or 'mtx-context.lua
Hi guys, I haven't played with ConTeXt for three month because of my examinations. Today, I delete the old version and reinstall a new one from the ConTeXt garden, but it seems that the new one can't run successfully. It says that unknown script 'context.lua' or 'mtx-context.lua. The error messages is the following: mtxrun | forcing cache reload resolvers | resolving | looking for 'texmfcnf.lua' on given path '/home/peng/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path '/usr/bin/' from specification 'selfautoloc:' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/share/texmf-local/web2c' from specification 'selfautoloc:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/share/texmf/web2c' from specification 'selfautoloc:/share/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path '/usr/' from specification 'selfautodir:' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/share/texmf-local/web2c' from specification 'selfautodir:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/share/texmf/web2c' from specification 'selfautodir:/share/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/texmf-local/web2c' from specification 'selfautodir:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path '/usr/texmf/web2c' from specification 'selfautodir:/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './../texmf-local/web2c' from specification 'selfautoparent:/../texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path './' from specification 'selfautoparent:' resolvers | resolving | looking for 'texmfcnf.lua' on given path './share/texmf-local/web2c' from specification 'selfautoparent:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './share/texmf/web2c' from specification 'selfautoparent:/share/texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path './texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-contexts.lua' resolvers | resolving | remembered file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'context.lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' Best wishes, Tim ___ 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] distinguish different characters from different languages
@hwitloc I don't think this is only an interword question, especially when you are typesetting a book like `The Joy of Chinese` which will involve many paragraphs containing many English words nested in Chinese sentences. So if users pay more attention to insert spaces when switcting different languages, they will pay less attention to the contents they are typesetting. In this case, we need ConTeXt to do this task (insert spaces when switching to English from Chinese) automatically. @Hans Which file or Which files should I read in the subpath of `scripts`? All? Date: Mon, 10 Jun 2013 07:57:50 +0900 From: hwit...@gmail.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] distinguish different characters from different languages This seems to be about inter-word spacing, rather than character sets. For the phrase: 据我所知,中国人将typography写作排版 The intuitive operation for ConTeXt should be to preserve the explict space after the comma, but the word typography is not seperated from the rest of the text with spaces. If you input the text as 据我所知,中国人将 typography 写作排版 Then the spaces should be preserved as in English or other languages. This was not the case once for Japanese, but a (temporary?) fix was put into the ongoing development version, I believe. The space removal was due to the fact that Chinese and Japanese do not use space between words in normal text. For now can you use the ~ or some like escape sequence to force a space where you want it? Tim Li timli2...@outlook.com wrote: Hi, Is there a way in ConTeXt to distinguish (or recognise) different characters from different languages, especially distinguishing those used in China, Japan and Korea (CJK) from English. For example, sentence(1) and its translation (sentence (2)) below are mixed English with Chinese characters, as far as I know, Chinese write 排版 as typography. (1) translation: 据我所知,中国人将typography写作排版。(2) If I input this sentence in the ConTeXt source file, how can I recognise English characters and Chinese characters respectively so that I can insert space (say, 1/4 space) when nesting English words into Chinese (the result of sentence (2) in PDF file will look like this: 据我所知,中国人将 typography 写作排版。) Are there some materials or topics about this? Tim ___ 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 ___ ___ 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] distinguish different characters from different languages
Hi, Is there a way in ConTeXt to distinguish (or recognise) different characters from different languages, especially distinguishing those used in China, Japan and Korea (CJK) from English. For example, sentence(1) and its translation (sentence (2)) below are mixed English with Chinese characters, as far as I know, Chinese write 排版 as typography. (1) translation: 据我所知,中国人将typography写作排版。 (2) If I input this sentence in the ConTeXt source file, how can I recognise English characters and Chinese characters respectively so that I can insert space (say, 1/4 space) when nesting English words into Chinese (the result of sentence (2) in PDF file will look like this: 据我所知,中国人将 typography 写作排版。) Are there some materials or topics about this? Tim ___ 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] Formulas in ConTeXt are different from those in plain TeX
Hi, I have asked this question on tex.stackexchange.com http://tex.stackexchange.com/questions/113592/formulas-in-context-are-different-from-those-in-plain-tex/113609?noredirect=1#comment250549_113609 as the title said, formulas typeset by ConTeXt are different from those by plain TeX. The minimal examples are here: % plain luatex in ConTeXt standalone $$\int_a^bf(x)dx=F(b)-F(a)$$ \bye % context \starttext \startformula \int\nolimits_a^bf(x)dx=F(b)-F(a) \stopformula \stoptext Marco said to me that that's because the fonts used by LuaTeX and ConTeXt are different. This can be seen from the pdf produced by them pdffonts context.pdf name type emb sub uni object ID - --- --- --- -OLAZTU+LMRoman12-Regular CID Type 0C yes yes yes 18 0 RXHAAY+LatinModernMath-Regular CID Type 0C yes yes yes 19 0JTHTZJ+LatinModernMath-Regular CID Type 0C yes yes yes 20 0 pdffonts plain.pdf name type emb sub uni object ID - --- --- --- - APMHZE+LMMathExtension10-Regular Type 1yes yes no 4 0 AWBTPY+LMMathItalic7-Regular Type 1yes yes no 5 0 ITITNI+LMMathItalic10-RegularType 1yes yes no 6 0 DMNVHT+LMRoman10-Regular Type 1yes yes no 7 0 MGKPYK+LMMathSymbols10-Regular Type 1yes yes no 8 0 even if using the `modern-designsize-virtual` typescript(advice from Marco), I still get the different outputs. Now, I get confused about this qustion. If ConTeXt uses LuaTeX as its engine, how can I tune ConTeXt so that it can produce the same formulas with those in plain TeX? Tim ___ 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] Set layout for the first page of Chapters
Hi, when designing some documents, I hope I can set a global layout and another layout for the first page of all chapters. I have defined two layouts as follows: \setuppagenumbering [alternative=doublesided, location=] % global layout for the whole document \setuplayout [backspace=2.5cm, width=16.5cm, topspace=2cm, height=25.2cm, header=\lineheight, headerdistance=\lineheight, footer=0cm] % layout for the first page of Chapters \definelayout [firstpage] [height=26.2cm, footerdistance=\lineheight, footer=\lineheight] \starttext \chapter{First Chapter} I am in the first page. \page I am in the second page. \stoptext my question is that how I can apply this `firstpage' layout to the first page of the chapter `First Chapter' and switch back to the global layout after the first page of this chapter? Best Regards,Tim ___ 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] Set layout for the first page of Chapters
Hi, Wolfgang, I am reading a book desinged by Springer-Verlag, whose size if 152mm X 226mm. Its backspace is 25mm, width 107mm, topspace 20mm, height 181 mm, this is the global layout. And the page number lies in the header, but no footers. The chapter page in this book has a different layout, whose footer in not empty and the page number of the chapter page is in the footer. the height is 191mm, footer \lineheight(=\baselineskip?), footerdistance \lineheight. Other keys are the same with the global layout. If I want to achieve the layouts like this book, do I need the two layouts in my codes? In my view, I need them, but I don't know if there is a better method. Tim From: schuster.wolfg...@gmail.com Date: Thu, 9 May 2013 19:32:36 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Set layout for the first page of Chapters Am 09.05.2013 um 13:45 schrieb Tim Li timli2...@outlook.com:Hi, when designing some documents, I hope I can set a global layout and another layout for the first page of all chapters. I have defined two layouts as follows: What’t the purpose of the different layout for the chapter pages, the only difference between normal and chapter pages is that you have a footer for chapters while normal pages don’t have them. When you want only a different footer for chapters this can be done with a different method. 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] Can't use \type{\} in a footnote
Thanks, Huseyin. My codes in context is reasonable, so I want to know why this is wrong. Tim Date: Tue, 7 May 2013 09:13:58 +0200 From: h.oezo...@mmnetz.de To: ntg-context@ntg.nl Subject: Re: [NTG-context] Can't use \type{\} in a footnote You could use this: \starttext aa\footnote{I can get a backslash\textbackslash in footnote!} \stoptext 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 ___ ___ 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] Can't use \type{\} in a footnote
Hi, I think these codes is normal in context, \starttext aa\footnote{I can't get a backslash \type{\} in footnote!} \stoptext Since I have changed the catcode of `\` using `\type`, why can I not still use \type{\} in a footnote? Tim ___ 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] Draw a line below the header texts
Hi, now I need a line below the header text to seperate the header texts from the text area. I have't soloved this problem, have to ask for help (the method from google doesn't work any more. This new one is from Aditya, but still has some problem that I don't know how to deal with) \setuplayout [header=\lineheight, headerdistance=\lineheight, footer=\lineheight, footerdistance=\lineheight] \setuppagenumbering [location=, alternative=doublesided] \definepagebreak [chapterpagebreak] [yes,header,footer,right] \definetext [chapterstart] [footer] [{\hfill\it\pagenumber}] \setuphead [chapter] [style=\bfc, header=empty, footer=chapterstart, page=chapterpagebreak] \setupheader [style=\it] \setupheadertexts [{\getmarking[sectionnumber]\hskip1em\getmarking[section][first]}] [pagenumber] [{Chapter~\getmarking[chapternumber]\hskip1em\getmarking[chapter]}] [pagenumber] \setupbackgrounds [header][text] [bottomframe=on] \starttext \chapter{First Chapter} this is the first chapter \section{section 1} \page \section{section 2} the second page of the first chapter \page \section{section 3} the third page of the first chapter \chapter{Second Chapter} this is the second chapter \section{section 1} \page \section{section 2} the second page of the second chapter \stoptext The rule shouldn't be above the chapter head ``1 First Chapter at page 1 and page 4 should be true empty, since it is just before Chapter 2 and has no contents. Of course, I hope that I can solve these two problems by myself, but ... I really need some help from you. Best regards, Tim ___ 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 know I am in frontmatter or bodymatter?
Sometimes, it is convenient if I know I am in frontmatter or bodymatter. when desinging a book, we make a new chapter open at a right page and design the header to show the chapter title and pagenumber. We have to set the pagenumber at the page where a chapter title is located. \definetext [chapterstart] [footer] [{\hfill\bf\pagenumber\hfill}]\setuphead [chapter] [footer=chapterstart] if this book consists of a frontmatter and a backmatter, I have to set the text for the titles in frontmatter and chapters in bodymatter like this, for roman pagenumber in frontmatter. \startsectionblockenvironment[frontpart] \definetext[titlestart] [footer][{\hfill\bf\romannumerals\pagenumber\hfill}] \setuphead[title] [footer=titlestart]\stopsectionblockenvironment \startsectionblockenvironment[bodypart] \definetext[chapterstart] [footer][{\hfill\bf\pagenumber\hfill}] \setuphead[chapter] [footer=chapterstart]\stopsectionblockenvironment so, is there a command to make me know if I am in frontmatter or bodymatter? if so, I can use only one command to achieve that setup \definetext [chapterstart] [footer] [{\hfill\bf\ifinfrontmatter ... \else ... \fi\hfill}] regards, Tim ___ 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] ``fallback in Typescript
Wolfgang, many thanks to you, for your comprehensive explaination. After reading your mail, as a ConTeXt user, I think I can apply the `fallback' to my typescript definition well. Tim From: schuster.wolfg...@gmail.com Date: Tue, 23 Apr 2013 09:28:15 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] ``fallback in Typescript Am 23.04.2013 um 04:05 schrieb Tim Li timli2...@outlook.com:Thanks. I am reading these codes. That won’t help to understand what’s the meaning of these lines. To demonstrate what these lines are for a wrote a small example. \starttypescript[serif][palatino-clone] \definefontsynonym [Serif] [file:texgyrepagellaregular] [features=default] \definefontsynonym [SerifItalic] [file:texgyrepagellaitalic] [features=default]\stoptypescript \starttypescript[sans][helvetica-clone] \definefontsynonym [Sans] [file:texgyreherosregular] [features=default] \definefontsynonym [SansItalic] [file:texgyreherositalic] [features=default]\stoptypescript \definetypeface[mainface][rm][serif][palatino-clone] [default]\definetypeface[mainface][ss][sans] [helvetica-clone][default] %\setupbodyfont[modern]\setupbodyfont[mainface] \starttext \rm\tf Regular \it Italic \sl Slanted \ss\tf Regular \it Italic \sl Slanted \stoptext When you put the code in a file and process you will notice that “\sl Slanted” always usesthe upright Pagella font, this happens because no font was set for this style in the typescriptsand a default font is used. You prevent this unwanted result by adding additional \definefontsynonym lines to thetypescript where you say context to use the italic font for the slanted style. \starttypescript[serif][palatino-clone] \definefontsynonym [Serif] [file:texgyrepagellaregular] [features=default] \definefontsynonym [SerifItalic] [file:texgyrepagellaitalic] [features=default] \definefontsynonym [SerifSlanted] [SerifItalic]\stoptypescript \starttypescript[sans][helvetica-clone] \definefontsynonym [Sans] [file:texgyreherosregular] [features=default] \definefontsynonym [SansItalic] [file:texgyreherositalic] [features=default] \definefontsynonym [SansSlanted] [SansItalic]\stoptypescript Still this wouldn’t be enough when you want to use also the bold and bolditalicstyles for your font even more fallback definitions are needed. The completetypescript for the serif font has to look now like this. \starttypescript[serif][palatino-clone] \definefontsynonym [Serif] [file:texgyrepagellaregular] [features=default] \definefontsynonym [SerifItalic] [file:texgyrepagellaitalic] [features=default] \definefontsynonym [SerifSlanted] [SerifItalic] \definefontsynonym [SerifBold][Serif] \definefontsynonym [SerifBoldItalic] [SerifBold] \definefontsynonym [SerifBoldSlanted] [SerifBoldItalic] \definefontsynonym [SerifCaps][Serif]\stoptypescript Because such fallback definitions are needed for many font (especially the slantedto italic mappings) you can predefined lists in type-fbk.mkiv which you can loadat the begin at your typescript to save a few lines and we can abbreviate the abovetypescript in this form. \starttypescript[serif][palatino-clone] \setups[font:fallback:serif] \definefontsynonym [Serif][file:texgyrepagellaregular] [features=default] \definefontsynonym [SerifItalic] [file:texgyrepagellaitalic] [features=default]\stoptypescript 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 ___
[NTG-context] Set background color for a single page
Sometimes, I only want a single page, say, the titlepage or page 32, with colored background rather that the whole document. Here are some codes: \starttext% titlepage (yellow) \startmakeup[standard] \midaligned{How to make document} \stopmakeup % page1 (gray) Many \CONTEXT\ users $\ldots$ \page % page2 (darkyellow) Many \TEX\ users $\ldots$ \stoptext Of course, it is awful that if I set the titlepage yellow, page1 gray and page2 darkyellow. How can I achieve this? regrads, Tim ___ 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] Set background color for a single page
Aditya, Thanks. Defining a color conversion is a good idea, and we can apply this conversion easily to somethings like chapter, section, etc. which has a `color' filed to assign, but not pages. Is there a way to set the color of a page like that done for chapters and sections? Tim Date: Tue, 23 Apr 2013 07:28:09 -0400 From: adit...@umich.edu To: ntg-context@ntg.nl Subject: Re: [NTG-context] Set background color for a single page On Tue, 23 Apr 2013, Tim Li wrote: Sometimes, I only want a single page, say, the titlepage or page 32, with colored background rather that the whole document. Here are some codes: \starttext% titlepage (yellow) \startmakeup[standard] \midaligned{How to make document} \stopmakeup % page1 (gray) Many \CONTEXT\ users $\ldots$ \page % page2 (darkyellow) Many \TEX\ users $\ldots$ \stoptext Of course, it is awful that if I set the titlepage yellow, page1 gray and page2 darkyellow. How can I achieve this? regrads, Tim See: http://thread.gmane.org/gmane.comp.tex.context/75726/focus=75743 Another alternative is to pick the color from a list using \convertnumber{colors}{userpage}, similar to the solution at http://tex.stackexchange.com/a/54062/323 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 ___ ___ 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] Set background color for a single page
Aditya, I want to know both please. Now I use the \start \definecolor ... ... \startmakeup[standard] ... \stopmakeup \stopto assign a specific color to the tilepage whose content is on a single page exactly. But I don't know how to set the background for a single page, say, page 3 if a document has more than three pages. Also, I don't know how to cycle pages through a finite list of colors. Can you show me that? Tim Date: Tue, 23 Apr 2013 09:47:32 -0400 From: adit...@umich.edu To: ntg-context@ntg.nl Subject: Re: [NTG-context] Set background color for a single page On Tue, 23 Apr 2013, Tim Li wrote: Aditya, Thanks. Defining a color conversion is a good idea, and we can apply this conversion easily to somethings like chapter, section, etc. which has a `color' filed to assign, but not pages. Is there a way to set the color of a page like that done for chapters and sections? Tim Do you want to assign a specific color to each page, or do you want the pages to cycle through a finite list of colors. 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 ___ ___ 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] Set background color for a single page
Aditya, thanks. I like this Lua way, but I have to explore the Lua world first. Ok, reading PIL and coding in Lua. Tim Date: Tue, 23 Apr 2013 10:51:24 -0400 From: adit...@umich.edu To: ntg-context@ntg.nl Subject: Re: [NTG-context] Set background color for a single page Aditya, I want to know both please. Now I use the \start \definecolor ... ... \startmakeup[standard] ... \stopmakeup \stopto assign a specific color to the tilepage whose content is on a single page exactly. But I don't know how to set the background for a single page, say, page 3 if a document has more than three pages. Also, I don't know how to cycle pages through a finite list of colors. Can you show me that? Tim One way to do this is to set \setupbackgrounds[page][background=color, backgroundcolor=\PageColor] and define \PageColor such that it expands to an appropriate color. For arbitrary control, you can use a lua function, for example: \startluacode thirddata = thirddata or {} function thirddata.getpagecolor(num) -- A lua function that assigns colors based on page numbers if num == 3 then context(blue) elseif num == 5 then context(red) end end \stopluacode \def\PageColor% {\ctxlua{thirddata.getpagecolor(\rawcountervalue[userpage])}} \setupbackgrounds[page][background=color, backgroundcolor=\PageColor] \setuppapersize[S3] \starttext \dorecurse{10}{\input knuth \par} \stoptext You can also use a lua table to assign colors, and then you do not have to build a ladder of if statements. 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 ___ ___ 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] ``fallback in Typescript
Hi, In the wiki, fallback often appears in the definition of typescript. I am curious about this ``fallback, is there a place to learn the fallback in detail? I haven't found this place in our wiki. Regards, Tim ___ 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] ``fallback in Typescript
Thanks. I am reading these codes. Tim Date: Mon, 22 Apr 2013 20:31:25 +0200 From: pra...@wxs.nl To: ntg-context@ntg.nl Subject: Re: [NTG-context] ``fallback in Typescript On 4/22/2013 8:11 PM, Philipp Gesang wrote: Hi Tim, ・・・date: 2013-04-22, Monday・・・from: Tim Li・・・ Hi, In the wiki, fallback often appears in the definition of typescript. I am curious about this ``fallback, is there a place to learn the fallback in detail? I haven't found this place in our wiki. Regards, Tim use the source, Luke: http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/font-col.mkvi#l94 http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/type-fbk.mkiv As the manual says: It really makes sense to take a look at the font and type definition files (font-*.tex and type-*.tex). There are fallbacks defined, as well as generic definitions. Studying styles and manual source code may also teach you a few tricks. I assure you the effort is well worth it. Best regards Philipp ___ 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 ___ -- - 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] use plain LuaTeX in ConTeXt standalone
Hi, many context users are also luatex user, and the context standalone also contains luatex binary (windows). I input the 'luatex' in the cmd, but it can't work. The message is as follows: d:\luatex luatex This is LuaTeX, Version beta-0.77.0-2013041621 (rev 4633) \write18 enabled. **\relax I can't find the format file `luatex.fmt'!kpathsea: Running mktexfmt luatex.fmtThe command name is D:\context\tex\texmf-mswin\bin\mktexfmt Since there is not mktexfmt in the context standalone, is that mean I can't use plain luatex in the context standalone?___ 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] use plain LuaTeX in ConTeXt standalone
Marco, many thanks. By the way, how can I load the `luatex-plain.fmt` by default when typing luatex somefile.tex? Date: Sat, 20 Apr 2013 12:05:25 +0200 From: home...@lavabit.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] use plain LuaTeX in ConTeXt standalone On 2013�C04�C20 Tim Li wrote: Hi, many context users are also luatex user, and the context standalone also contains luatex binary (windows). I input the 'luatex' in the cmd, but it can't work. The message is as follows: d:\luatex luatex This is LuaTeX, Version beta-0.77.0-2013041621 (rev 4633) \write18 enabled. **\relax I can't find the format file `luatex.fmt'!kpathsea: Running mktexfmt luatex.fmtThe command name is D:\context\tex\texmf-mswin\bin\mktexfmt Since there is not mktexfmt in the context standalone, is that mean I can't use plain luatex in the context standalone? 1) Create a file “luatex-plain.tex” with the following context: \input plain \directlua {tex.enableprimitives('', tex.extraprimitives())} \pdfoutput=1 \everyjob \expandafter {% \the\everyjob \input luatex-basics\relax \input luatex-fonts\relax \input luatex-mplib\relax } \edef\fmtversion{\fmtversion+luatex} \dump 2) Build the format: luatex --ini luatex-plain.tex 3) Compile with: luatex --fmt=luatex-plain.fmt somefile.tex Marco ___ 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] use plain LuaTeX in ConTeXt standalone
Yeah, I found that just now, so I changed luatex-plain.fmt to luatex.fmt. I try to move the new luatex.fmt to some directory in the ConTeXt standalone, but it seems that the kpathsea can't find my luatex.fmt. Tim Date: Sat, 20 Apr 2013 12:37:19 +0200 From: home...@lavabit.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] use plain LuaTeX in ConTeXt standalone On 2013�C04�C20 Tim Li wrote: Marco, many thanks. By the way, how can I load the `luatex-plain.fmt` by default when typing luatex somefile.tex? TeX checks for a format which is named the same as the binary. You can create a link: ln -s /path/to/binary/luatex luatex-plain and then call luatex-plain somefile.tex and it'll use the format “luatex-plain”. Marco ___ 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] Decomposing the glyphs of a font
Hi, Can I decompose the glyphs of an OpenType font? In other words, I hope to draw the outline of a font and its bounding box.What way has ConTeXt provided? Best regards,Tim ___ 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] Horzontal line between header and text
Maybe, this can solove this problemhttp://www.ntg.nl/pipermail/ntg-context/2005/010917.html Tim Date: Thu, 18 Apr 2013 14:08:18 +0200 From: h.oezo...@mmnetz.de To: ntg-context@ntg.nl Subject: [NTG-context] Horzontal line between header and text I forgot and could not find it in the wiki: How to make horizontal lines on every page between header (where the section-titles are) and the textplace? Thanks. 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 ___ ___ 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] Mismatched font size when switching fonts in the chapter title
Mismatched font size when switching fonts in the chapter title \setupbodyfont[12pt] \definefontsynonym[PalatinoRoman][name:palatinolinotyperoman][features=default] \definefont[AnotherFont][PalatinoRoman sa 1] \starttext \chapter{On \AnotherFont Fonts} General readers \stoptextIt seems that if switching to another font in the chapter title, the size of these two typefaces is mismatched. This will produce the mismatched font size(On and Font), how to deal with this problem? Tim Li ___ 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] Mismatched font size when switching fonts in the chapter title
Sietse, Thanks for your detailed explanation. With your help, I have known the reason. Also, I am reading the new chapter on fonts. Best regards,Tim From: sbbrou...@gmail.com Date: Wed, 17 Apr 2013 10:11:19 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Mismatched font size when switching fonts in the chapter title Hi Tim, [PalatinoRoman sa 1] This means PalatinoRoman scaled at 1 x bodyfontsize. The document's body font size is 12 pt, but chapter headers usually are ... like, about 2.4 * body font size? Hence the size mismatch. [PalatinoRoman sa *] This means AnotherFont is PalatinoRoman scaled to 1 x the font size at time of calling. Compare these two MWE's (I've changed the font name to texgyrepagellaregular so that the example will work for any ConTeXt user.) \setupbodyfont[12pt] \definefontsynonym[PalatinoRoman][texgyrepagellaregular][features=default] \definefont[AnotherFontSaOne][PalatinoRoman sa 1] \definefont[AnotherFontSaStar][PalatinoRoman sa *] \starttext \chapter{Fonts and \AnotherFontSaOne Fonts} Generalized \AnotherFontSaOne Generals. (Constant size) \chapter{Fonts and \AnotherFontSaStar Fonts} Generalized \AnotherFontSaStar Generals. (Adapt to current size) \stoptext I got this information from page 5 of the Fonts chapter of the long-coming manual. (Not the same as the document detailing what you can do with OTF and Lua, although I think that one, too, is called a fonts manual.) http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf Cheers, Sietse ___ 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] Vanishing chapter title from Contents
Hi, maybe, codes is our language :-) % define a new head\definehead[backmatterchapter][chapter] \starttext \startfrontmatter \title{Preface} \completecontent \stopfrontmatter \startbodymatter \chapter{First Chapter} \stopbodymatter \startbackmatter \backmatterchapter{Backmatter} \stopbackmatter \stoptext The chapter title Backmatter in the backmatter won't appear in the Contents. Why? How can I make it appear in the Contents? Best regards,Tim ___ 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] Vanishing chapter title from Contents
Thanks Wolfgang, it works well. TimFrom: schuster.wolfg...@gmail.com Date: Wed, 17 Apr 2013 18:15:13 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Vanishing chapter title from Contents Am 17.04.2013 um 17:59 schrieb Tim Li timli2...@outlook.com:Hi, maybe, codes is our language :-) % define a new head \definehead[backmatterchapter][chapter] […] The chapter title Backmatter in the backmatter won't appear in the Contents. Why? How can I make it appear in the Contents? You have to redefine the \completecontent command to include “backmatterchapter” in the list of headings. \definecombinedlist[content][part,chapter,backmatterchapter,section,subsection,subsubsection,subsubsubsection] 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] Sadness from a Windows ConTeXt user
Thanks very much. I have updated my context and the problem has disappeared. Date: Tue, 16 Apr 2013 09:42:45 +0200 From: pra...@wxs.nl To: ntg-context@ntg.nl CC: mojca.miklavec.li...@gmail.com Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user On 4/16/2013 8:00 AM, Mojca Miklavec wrote: Hi, This was a known problem for a short period of time, but I thought that both Akira and Hans fixed it by now. (Hans added a workaround.) eh ... you asked me to remove that workaround as the binary would be fixed ... it's either using the build in spec (somewhat messy) or using our own path spec (more controlled) the built in path cannot be used to determine if we have a garden version and we also cannot inject something in it as one doesn't know where to insert the texmf path (if not present) because the order of path sis not standardized (ok, i could probably mess a bit and try inject the texmf path at the end, which the might result in double loading of trees but i'd rather first see if the bin is fixed) the luatex i synced with the garden a few minutes ago gives: table={ C:/Users/hagen/texmf/web2c, c:/data/develop/tex-context/tex/texmf-mswin/bin/, c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf-local/web2c, c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf-dist/web2c, c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf/web2c, c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf-local/web2c, c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf-dist/web2c, c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf/web2c, c:/data/develop/tex-context/tex/texmf-mswin/, c:/data/develop/tex-context/tex/texmf-mswin//share/texmf-local/web2c, c:/data/develop/tex-context/tex/texmf-mswin//share/texmf-dist/web2c, c:/data/develop/tex-context/tex/texmf-mswin//share/texmf/web2c, c:/data/develop/tex-context/tex/texmf-mswin//texmf-local/web2c, c:/data/develop/tex-context/tex/texmf-mswin//texmf-dist/web2c, c:/data/develop/tex-context/tex/texmf-mswin//texmf/web2c, c:/data/develop/tex-context/texmf-local/web2c, c:/data/develop/tex-context/tex/, c:/data/develop/tex-context/tex//share/texmf-local/web2c, c:/data/develop/tex-context/tex//share/texmf-dist/web2c, c:/data/develop/tex-context/tex//share/texmf/web2c, c:/data/develop/tex-context/tex//texmf-local/web2c, c:/data/develop/tex-context/tex//texmf-dist/web2c, c:/data/develop/tex-context/tex//texmf/web2c, } so it looks like texmf is back in the list 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 ___ ___ 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 clear the header and footer in some page?
I have set the header and footer in the setup area, so it will occur in every page unless clearing them. In some pages, for example, the page of dedication that the header and footer shouldn't occur there, how can I clear them in pages like this ? Best regards. ___ 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 clear the header and footer in some page?
oh, sorry, I must remember to do this next time. Date: Tue, 16 Apr 2013 12:41:57 +0200 From: home...@lavabit.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] how to clear the header and footer in some page? On 2013�C04�C16 Tim Li wrote: I have set the header and footer in the setup area, so it will occur in every page unless clearing them. In some pages, for example, the page of dedication that the header and footer shouldn't occur there, how can I clear them in pages like this ? It would be nice to provide a minimal example next time. It's not always necessary for understanding, but it's just simpler to copy-paste the code than to write it yourself. It will increase the chances of getting a response. \setupheadertexts [My Header] \definehead [dedication] [chapter] [header=empty] \starttext \startchapter [title=Foo] \input knuth \stopchapter \startdedication [title=Dedication] \input knuth \stopdedication \startchapter [title=Bar] \input knuth \stopchapter \stoptext Marco ___ 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] How to typeset the titlepage and its verso in ConTeXt?
I try to typeset the titlepage and its verso using ConTeXt, but it always generate an empty page on the right if facing. \setupinteraction [state=stop, title=Life in These Days, author=Tim Li] \setupinteractionscreen [option=doublesided] \usetypescript[palatino] \setupbodyfont[palatino,12pt] \setuppagenumbering [location={footer,middle}, alternative=doublesided] \setupmakeup [standard] [pagestate=start] \starttext \startfrontmatter % titlepage \startmakeup[standard] %[doublesided=no] \vskip2in \midaligned{\switchtobodyfont[36pt]\bf Life in These Days} \vfill \midaligned{\switchtobodyfont[20pt]\bf Tim Li} \blank[medium] \midaligned{\switchtobodyfont[20pt]\bf January 11, 2013} \stopmakeup % its verso \startmakeup[standard] %[page=no] This document was typeset by using \CONTEXT. \vfill \stopmakeup % dedication % preface % contents \stopfrontmatter \startbodymatter % \stopbodymatter \stoptext If add [doubesided=no] to the first \startmakeup[standard] that produce the titlepage, it will produce a page with page number 2 at the right of the titlepage and the verso of this titlepage will be the next page following page 2. That's not what I want. How to set the options of the \startmakeup so that I can typeset the titlepage with its verso just after it. If so, when the document is printed, the titlepage and its verso will be presented on the same paper like that in the ConTeXt manual(if printed, the tiltepage and its verso of the manual will be on the same paper). ___ 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 typeset the titlepage and its verso in ConTeXt?
Thanks very much, it works exactly! From: schuster.wolfg...@gmail.com Date: Tue, 16 Apr 2013 17:51:15 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] How to typeset the titlepage and its verso in ConTeXt? Am 16.04.2013 um 17:41 schrieb Tim Li timli2...@outlook.com: I try to typeset the titlepage and its verso using ConTeXt, but it always generate an empty page on the right if facing. \setupinteraction [state=stop, title=Life in These Days, author=Tim Li] \setupinteractionscreen [option=doublesided] \usetypescript[palatino] \setupbodyfont[palatino,12pt] \setuppagenumbering [location={footer,middle}, alternative=doublesided] \setupmakeup [standard] [pagestate=start] \setupmakeup [standard] [pagestate=start, page=yes] 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] [***SPAM***] Changing the font of the TOC-Title
I have achieved this by the following method: I think we'd better only change the label by \setupheadtext and chage its style by \setuphead. An example as follows \setupheadtext[content={CONTENTS}] \def\mytitle#1{% \midaligned{#1}} \setuphead [title] [style={\bfb}, color=red, before={}, after={\blank[3*big]}, textcommand={\mytitle}] it works well for me :-) but please note that if you use \title in the frontmatter, the title also will be changed. Maybe you want to define your own title to solve this problem. Date: Mon, 15 Apr 2013 08:06:54 +0200 From: h.oezo...@mmnetz.de To: ntg-context@ntg.nl Subject: [NTG-context] [***SPAM***] Changing the font of the TOC-Title Hello, I know, that I can change the TOC-Title by \setupheadtext[content=Whatever the TOC-Title may be] How can I change the Font of the TOC-Title, is there a style key, or somewhat like that? (Directly \setupheadtext[content=Whatever the TOC-Title may be, style=Chapterstyle] does not work, where Chapterstyle is a defined Font) 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 ___ ___ 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] [***SPAM***] Changing the font of the TOC-Title
oh, sorry, I don't konw Wolfgang has replied to this question. Please take the method provided by Wolfgang. From: timli2...@outlook.com To: ntg-context@ntg.nl Subject: RE: [NTG-context] [***SPAM***] Changing the font of the TOC-Title Date: Mon, 15 Apr 2013 08:20:11 + I have achieved this by the following method: I think we'd better only change the label by \setupheadtext and chage its style by \setuphead. An example as follows \setupheadtext[content={CONTENTS}] \def\mytitle#1{% \midaligned{#1}} \setuphead [title] [style={\bfb}, color=red, before={}, after={\blank[3*big]}, textcommand={\mytitle}] it works well for me :-) but please note that if you use \title in the frontmatter, the title also will be changed. Maybe you want to define your own title to solve this problem. Date: Mon, 15 Apr 2013 08:06:54 +0200 From: h.oezo...@mmnetz.de To: ntg-context@ntg.nl Subject: [NTG-context] [***SPAM***] Changing the font of the TOC-Title Hello, I know, that I can change the TOC-Title by \setupheadtext[content=Whatever the TOC-Title may be] How can I change the Font of the TOC-Title, is there a style key, or somewhat like that? (Directly \setupheadtext[content=Whatever the TOC-Title may be, style=Chapterstyle] does not work, where Chapterstyle is a defined Font) 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 ___ ___ 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 change the color of numbers just before the footnote text?
Now I have to change the color of numbers just before the footnote text so that it can match the color of text area. I try to do it like this: \def\myfootnotecolor#1{%\startcolor[red]#1\stopcolor} \setupfootnotes [numbercommand={\myfootnotecolor}] or \setupfootnotes [foregroundcolor=red] either method has no effect.___ 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] options of \setupnotation and \setupnote
Could you tell me what's the options of these two commands that haven't been updated 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 ___
[NTG-context] Sadness from a Windows ConTeXt user
I have asked Hans about this problem two days ago, but now the problem still. I make sure that my context standalone is the lastest. I download the context-setup-mswin.zip from the ConTeXt wiki and extract it to the D:\, double-clicking the firstsetup.bat. When it finish the rest, I add D:\context\tex\texmf-mswin\bin to User Path. Can this get the lastest ConTeXt standalone? I think it can. But when I input context in the cmd, it always tell me this error messages: d:\context contextmtxrun | forcing cache reload resolvers | resolving | looking for 'texmfcnf.lua' on given path 'C:/Users/peng/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/' from specification 'selfautoloc:' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/share/texmf-local/web2c' from specification 'selfautoloc:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/share/texmf-dist/web2c' from specification 'selfautoloc:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/texmf-dist/web2c' from specification 'selfautoloc:/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/' from specification 'selfautodir:' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/share/texmf-local/web2c' from specification 'selfautodir:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/share/texmf-dist/web2c' from specification 'selfautodir:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/texmf-local/web2c' from specification 'selfautodir:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/texmf-dist/web2c' from specification 'selfautodir:/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/../texmf-local/web2c' from specification 'selfautoparent:/../texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/' from specification 'selfautoparent:' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/share/texmf-local/web2c' from specification 'selfautoparent:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/share/texmf-dist/web2c' from specification 'selfautoparent:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-contexts.lua' resolvers | resolving | remembered file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'context.lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' d:\ I am only a newbie in ConTeXt so I don't know how to solve this problem. Is it mean that I have to wait for the updated binaries for windows? ___ 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 :
Re: [NTG-context] Sadness from a Windows ConTeXt user
I have run the setuptex.bat just before running context, but the problem still :-( Date: Mon, 15 Apr 2013 14:19:11 +0200 From: luigi.sca...@gmail.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user hm, have you seen the file setuptex.bat in the tex folder ? You have to call it before to start using context. ___ 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] options of \setupnotation and \setupnote
thanks for your help. From: schuster.wolfg...@gmail.com Date: Mon, 15 Apr 2013 15:01:54 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] options of \setupnotation and \setupnote Am 15.04.2013 um 13:17 schrieb Tim Li timli2...@outlook.com:Could you tell me what's the options of these two commands that haven't been updated on the wiki? http://www.ntg.nl/pipermail/ntg-context/2013/072165.html 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 ___
[NTG-context] the difference between \def and \define
In plain TeX, we always use \def for creating a new macro, but in ConTeXt, sometimes it won't work, especially when making own chapter titles. The \def can produce the error message like this : Argument of \... has an extra }. \define in ConTeXt can solve this problem. What's the difference between \def and \define? Can I use \define to replace all \def? ___ 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] Sadness from a Windows ConTeXt user
I really have done the 1, 2 and 3 as you said, but it failed to start context, unless have set the TEXMFCNF to D:\context\texmf\web2c. weird. Date: Mon, 15 Apr 2013 13:58:00 -0400 From: adit...@umich.edu To: ntg-context@ntg.nl Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user On Mon, 15 Apr 2013, Tim Li wrote: Date: Mon, 15 Apr 2013 14:19:11 +0200 From: luigi.sca...@gmail.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user hm, have you seen the file setuptex.bat in the tex folder ? You have to call it before to start using context. I have run the setuptex.bat just before running context, but the problem still :-( Just to make sure, are you following the following procedure: 1. Open cmd prompt. 2. run C:\path-to-context\setuptex.bat 3. run context filename.tex 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 ___ ___ 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] Sadness from a Windows ConTeXt user
This problem can be sovled if I copy the web2c folder under the texmf to texmf-local. It seems that ConTeXt can't find the configuration file but this problem won't happen in the TeXLive 2012. From: timli2...@outlook.com To: ntg-context@ntg.nl Date: Tue, 16 Apr 2013 01:27:35 + Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user I really have done the 1, 2 and 3 as you said, but it failed to start context, unless have set the TEXMFCNF to D:\context\texmf\web2c. weird. Date: Mon, 15 Apr 2013 13:58:00 -0400 From: adit...@umich.edu To: ntg-context@ntg.nl Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user On Mon, 15 Apr 2013, Tim Li wrote: Date: Mon, 15 Apr 2013 14:19:11 +0200 From: luigi.sca...@gmail.com To: ntg-context@ntg.nl Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user hm, have you seen the file setuptex.bat in the tex folder ? You have to call it before to start using context. I have run the setuptex.bat just before running context, but the problem still :-( Just to make sure, are you following the following procedure: 1. Open cmd prompt. 2. run C:\path-to-context\setuptex.bat 3. run context filename.tex 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 ___ ___ 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] Different fonts for titles
maybe you can use another method that I usually use \definefontsynonym[PalatinoRoman][name:palatinolinotypebold][features=default]\definefont[TitleFont][PalatinoRoman sa 1]... From: schuster.wolfg...@gmail.com Date: Sun, 14 Apr 2013 23:42:16 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] Different fonts for titles Am 14.04.2013 um 14:34 schrieb H. Özoguz h.oezo...@mmnetz.de: Hoping for some hints :) What you’re looking for is the \definefont command, in one way a low level method to access a font but also a usefull command to create styles for headings etc. Let me start with the following example: \definefont[Test][texgyrepagellaregular at 12pt] \starttext \Test VA ffl \stoptext What I do here is to create the new command \Test which loads the file “texgrepagellaregular” at a size 12pt. With the optional prefix on front of the font name you can specify the search method, context provides the three different methods a) file b) name and c) spec. a) \definefont[Test][file:texgyrepagellaregular] b) \definefont[Test][name:texgyrepagellaregular] c) \definefont[Test][spec:texgyrepagella-normal-normal] Instead of a fixed size for the font you can also use a relative size which depends on the bodyfont. \definefont[Test][texgyrepagellaregular sa 1] \starttext \Test VA ffl \switchtobodyfont[20pt]\Test VA ffl \stoptext When you use “sa XX” as argument for the size your font scales also when you change the bodyfont in the middle of the document. One problem of the definitions above is that kerning, ligatures etc. aren’t activated for the font because no feature isn’t applied. To apply a feature set you have to use a different method than the one which is used in a typescript because \definefont has no feature-key. What you have to do to apply the set is to append it after the name name and separate both with a asterisks. \definefont[Test][texgyrepagellaregular*default sa 1] \starttext \Test VA ffl \stoptext Instead of the real name of a file you can also use a symbolic name from a typescript. \definefont[Test][SansBold sa 1] \starttext \Test VA ffl \stoptext In this example I used the bold version of the sans style for my \Test font, in this case you don’t have to add the name of a feature because it has been already set in the typescript. A complete example in a document could be look like this: \definetypeface[mainface][rm][specserif][Antykwa Poltawskiego] \definetypeface[mainface][ss][specsans] [Iwona] \definefont[ChapterStyle][SansBold sa 3] \setuphead[chapter][style=ChapterStyle] \setupbodyfont[mainface] \starttext \chapter{Knuth} \input knuth \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 ___
[NTG-context] Is the lastest beta broken?
Today, I updated my ConTeXt standalone but after that, if I ran `context' it would give these message: d:\context contextmtxrun | forcing cache reload resolvers | resolving | looking for 'texmfcnf.lua' on given path 'C:/Users/peng/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/' from specification 'selfautoloc:' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/share/texmf-local/web2c' from specification 'selfautoloc:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/share/texmf-dist/web2c' from specification 'selfautoloc:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/bin/texmf-dist/web2c' from specification 'selfautoloc:/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/' from specification 'selfautodir:' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/share/texmf-local/web2c' from specification 'selfautodir:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/share/texmf-dist/web2c' from specification 'selfautodir:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/texmf-local/web2c' from specification 'selfautodir:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/texmf-mswin/texmf-dist/web2c' from specification 'selfautodir:/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/../texmf-local/web2c' from specification 'selfautoparent:/../texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on weird path 'D:/context/tex/' from specification 'selfautoparent:' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/share/texmf-local/web2c' from specification 'selfautoparent:/share/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/share/texmf-dist/web2c' from specification 'selfautoparent:/share/texmf-dist/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for 'texmfcnf.lua' on given path 'D:/context/tex/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-contexts.lua' resolvers | resolving | remembered file 'mtx-t-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'context.lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' d:\ Is this suggesting that the new beta is broken? If not, how can I solve this problem? I like ConTeXt very much! ___ 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 ___