[NTG-context] unknown script 'context.lua' or 'mtx-context.lua'

2014-02-27 Thread Tim Li
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

[NTG-context] unknown script 'context.lua' or 'mtx-context.lua

2014-02-27 Thread Tim Li
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

Re: [NTG-context] distinguish different characters from different languages

2013-06-10 Thread Tim Li
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

[NTG-context] distinguish different characters from different languages

2013-06-09 Thread Tim Li
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

[NTG-context] Formulas in ConTeXt are different from those in plain TeX

2013-05-10 Thread Tim Li
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

[NTG-context] Set layout for the first page of Chapters

2013-05-09 Thread Tim Li
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,

Re: [NTG-context] Set layout for the first page of Chapters

2013-05-09 Thread Tim Li
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

Re: [NTG-context] Can't use \type{\} in a footnote

2013-05-07 Thread Tim Li
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

[NTG-context] Can't use \type{\} in a footnote

2013-05-06 Thread Tim Li
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

[NTG-context] Draw a line below the header texts

2013-04-27 Thread Tim Li
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)

[NTG-context] How to know I am in frontmatter or bodymatter?

2013-04-26 Thread Tim Li
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

Re: [NTG-context] ``fallback in Typescript

2013-04-23 Thread Tim Li
: [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

[NTG-context] Set background color for a single page

2013-04-23 Thread Tim Li
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

Re: [NTG-context] Set background color for a single page

2013-04-23 Thread Tim Li
, 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

Re: [NTG-context] Set background color for a single page

2013-04-23 Thread Tim Li
, 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

Re: [NTG-context] Set background color for a single page

2013-04-23 Thread Tim Li
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

[NTG-context] ``fallback in Typescript

2013-04-22 Thread 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

Re: [NTG-context] ``fallback in Typescript

2013-04-22 Thread Tim Li
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

[NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-20 Thread Tim Li
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

Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-20 Thread Tim Li
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

Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-20 Thread Tim Li
@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

[NTG-context] Decomposing the glyphs of a font

2013-04-18 Thread Tim Li
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

Re: [NTG-context] Horzontal line between header and text

2013-04-18 Thread Tim Li
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:

[NTG-context] Mismatched font size when switching fonts in the chapter title

2013-04-17 Thread Tim Li
\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

Re: [NTG-context] Mismatched font size when switching fonts in the chapter title

2013-04-17 Thread Tim Li
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

[NTG-context] Vanishing chapter title from Contents

2013-04-17 Thread Tim Li
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

Re: [NTG-context] Vanishing chapter title from Contents

2013-04-17 Thread Tim Li
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

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-16 Thread Tim Li
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

[NTG-context] how to clear the header and footer in some page?

2013-04-16 Thread Tim Li
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.

Re: [NTG-context] how to clear the header and footer in some page?

2013-04-16 Thread Tim Li
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

[NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li
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

Re: [NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li
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

Re: [NTG-context] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread Tim Li
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,

Re: [NTG-context] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread Tim Li
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

[NTG-context] How to change the color of numbers just before the footnote text?

2013-04-15 Thread Tim Li
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

[NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Tim Li
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

[NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
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

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
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

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Tim Li
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

[NTG-context] the difference between \def and \define

2013-04-15 Thread Tim Li
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

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
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

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
: [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

Re: [NTG-context] Different fonts for titles

2013-04-14 Thread Tim Li
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] Is the lastest beta broken?

2013-04-13 Thread Tim Li
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'