[NTG-context] Can I just put a footnote without marking in the main text?

2022-05-17 Thread Zhichu Chen via ntg-context
Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column environment and flush them when entering the two-column environment. The code is ugly but the result is acceptable. Except that the invisible footnote marks do

Re: [NTG-context] upload

2022-05-11 Thread Zhichu Chen via ntg-context
Hi Hans, Thanks for the update. But I noticed that the XITS fonts were still the old ones: zhichu@large /opt/context-lmtx/tex/texmf/fonts/opentype/public/xits $ fc-query -f '%{fontversion}\n' XITS-Regular.otf  | perl -E 'printf "%.3f\n",

[NTG-context] \placenotes ends up in wrong place when mixing one- and two- column layouts.

2022-05-10 Thread Zhichu Chen via ntg-context
Thanks Hans, works perfectly. Sorry for the late reply. Still working on the template and got another one. Again, sorry. The journal is in two-column form and the title, authors, and addresses are spanned to the full width. Very common. But the title may acknowledge to some fund(s) and

Re: [NTG-context] Increasing the textwidth locally

2016-04-09 Thread Zhichu Chen
Dear Joas, On 04/09/2016 08:47 PM, joasyann...@gmail.com wrote: Dear everyone, I am looking for a functionality similar to the \adjustwidth command in LaTeX ables to reduce or increase the \textwidth locally. I know that ConTeXt has \startnarrower, which reduces the \textwidth. But how to

Re: [NTG-context] unwanted head behavior

2016-04-09 Thread Zhichu Chen
Dear Hans, On 04/07/2016 06:31 PM, Hans Hagen wrote: \def\currentsectioncountervalue {\clf_depthnumber\numexpr\thenamedheadlevel\currenthead\relax} %def\previoussectioncountervalue{\clf_depthnumber\numexpr\thenamedheadlevel\currenthead+\minusone\relax}

Re: [NTG-context] unwanted head behavior

2016-04-07 Thread Zhichu Chen
o "sectioning" may prevent potential typos. On 04/05/2016 01:19 PM, Zhichu Chen wrote: Dear Hans and Wolfgang, The following code generates a pdf that I cannot understand. 1. Although "placehead" is set to "no," the \part macro still makes an empty line. 2. The f

Re: [NTG-context] unwanted head behavior

2016-04-06 Thread Zhichu Chen
(put the following lines just before \starttext) \unexpanded\def\strc_rendering_place_head_empty {\setheadmarking \getheadsyncs} Isn't that a bug? On 04/05/2016 01:19 PM, Zhichu Chen wrote: Dear Hans

[NTG-context] unwanted head behavior

2016-04-04 Thread Zhichu Chen
Dear Hans and Wolfgang, The following code generates a pdf that I cannot understand. 1. Although "placehead" is set to "no," the \part macro still makes an empty line. 2. The first \chapter does not open a new page, but if we switch the first \title

[NTG-context] Customize grid layout

2016-02-28 Thread Zhichu Chen
Dear TeXers, Is it possible to define the layout like: \setuplayout [grid=yes% ,lines=6% ,gridstyle={1,1,1,3.5,1,1}% ] so that I can have 6 lines per page, but the 4th line skips will be 3.5\baselineskip. For your information, the blank between the first 3 lines and the rest ones is

Re: [NTG-context] Character rotation font feature available?

2016-02-14 Thread Zhichu Chen
Hi Marco, On 02/15/2016 05:30 AM, Marco Patzer wrote: On Mon, 15 Feb 2016 04:42:31 +0800 Zhichu Chen <chenzhi...@sinap.ac.cn> wrote: I have some special needs that requires all the characters be rotated by 90 degrees. I've searched around the web and maybe adding /FontMatrix [0 1 -1

[NTG-context] Character rotation font feature available?

2016-02-14 Thread Zhichu Chen
Dear list, I have some special needs that requires all the characters be rotated by 90 degrees. I've searched around the web and maybe adding /FontMatrix [0 1 -1 0 0 0] to the font descriptor dictionary is helpful. But I can't find a \pdf??? primitive that can achieve this. (Am I wrong about

Re: [NTG-context] conTeXt Mkiv: the number of parameters can not be more than 9?

2015-07-04 Thread Zhichu Chen
Hi Dillon, First of all, I'm against defining such a complex macro, since that can be very confusing when you use it. I personal prefer the key-value definition: \def\DEFINETEST[#1]{% \getXXXparameters [paraA=defaultValueForParameterA% ,paraB=% or just empty ,#1]%

Re: [NTG-context] Virtual font question

2015-06-24 Thread Zhichu Chen
could not be remapped (WHY???). Fix me if I'm wrong about this conclusion. Best regards, Zhichu On 06/23/2015 01:20 PM, Zhichu Chen wrote: Hi Aditya, On 06/23/2015 11:57 AM, Aditya Mahajan wrote: I don't have the fonts, so I cannot describe the exact method. But see below and also have

[NTG-context] Virtual font question

2015-06-22 Thread Zhichu Chen
Hello list, I was trying to use the Math Times Pro 2 fonts in ConTeXt MKIV. This Type1 font contains a map file, a set of pfb files and the corresponding tfm files. I was managed to write a .lfg file and a type-imp-xxx file, but here's my problem. The font comes with three different sizes,

Re: [NTG-context] Virtual font question

2015-06-22 Thread Zhichu Chen
Hi Aditya, On 06/23/2015 11:57 AM, Aditya Mahajan wrote: I don't have the fonts, so I cannot describe the exact method. But see below and also have a look at Section 5 of https://www.tug.org/TUGboat/tb30-2/tb95mahajan-cmath.pdf The description is old, and some of the file locations have

Re: [NTG-context] Position of integral limits

2014-04-30 Thread Zhichu Chen
\setupmathematics[integral=nolimits] On Wed, Apr 30, 2014 at 12:54 PM, Darksair chris.cors...@gmail.com wrote: Hi, I notice today that in display math, \int_a^b places a and b completely below and above the integral symbol, rather than offsets them to the right at the bottom and top as

[NTG-context] Weird page numbering

2014-01-12 Thread Zhichu Chen
minimal code: === \setuppagenumbering[alternative=doublesided] \starttext \startstandardmakeup TITLE \stopstandardmakeup \startfrontmatter \chapter{Preface} \completecontent[criterium=all] \stopfrontmatter \stoptext

Re: [NTG-context] Simplefonts

2013-10-13 Thread Zhichu Chen
On 10/13/2013 01:39 AM, Wolfgang Schuster wrote: Am 12.10.2013 um 15:04 schrieb Zhichu Chen zhichu.c...@gmail.com mailto:zhichu.c...@gmail.com: Hi Wolfgang, Good to know that, but I might have some questions. On Fri, Oct 11, 2013 at 2:02 AM, Wolfgang Schuster wolfgang.schus...@gmail.com

Re: [NTG-context] Simplefonts

2013-10-12 Thread Zhichu Chen
Hi Wolfgang, Good to know that, but I might have some questions. On Fri, Oct 11, 2013 at 2:02 AM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Hi all, I’m happy to announce a new version of the simplefonts code. Thew new version of the code is a complete rewrite and brings many

Re: [NTG-context] simpleslides bug?

2013-02-21 Thread Zhichu Chen
On Thu, Feb 21, 2013 at 5:38 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On 02/21/2013 09:31 AM, Hans Hagen wrote: On 2/21/2013 2:21 AM, Zhichu Chen wrote: This must be a consequence of the new MP instance code. I can reproduce the error, but I can't isolate it. I

[NTG-context] simpleslides bug?

2013-02-17 Thread Zhichu Chen
Maybe this is my fault. The simpleslides module works just fine these days and I accidentally updated the ConTeXt to the latest version: context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file:

[NTG-context] Limitation of mixedcolumns?

2012-07-28 Thread Zhichu Chen
The nested mixedcolumns does not work properly when it reaches the bottom of the outer mixedcolumns here: $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: d:/ConTeXt/tex/texmf-local/tex/context/base/context.mkiv

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-30 Thread Zhichu Chen
On Thu, Dec 29, 2011 at 10:18 PM, Hans Hagen pra...@wxs.nl wrote: On 29-12-2011 04:22, Zhichu Chen wrote: All right, after some readings, I came out with a node solution. The major idea is listed below and works just fine. n from node_traverse (head) and n.id

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-28 Thread Zhichu Chen
.next = k5 k5.prev = r4 local box = node.hpack(k1) local tb = node.vpack(box) insert_after (head, n, tb) = On Thu, Dec 22, 2011 at 6:47 AM, Hans Hagen pra...@wxs.nl wrote: On 21-12-2011 12:16, Zhichu Chen wrote: Hi

[NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-21 Thread Zhichu Chen
Hi, I wrote some CJK vertical typesetting macros in mkii a long time ago and I want to adopt it to mkiv. Sadly the \iftracechinese is gone. Can I still draw boxes of each glyph to see if they are aligned in my way? Drawing a line in the background is so not cool. -- Best Regards Chen

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-21 Thread Zhichu Chen
Interesting, so I guess I should write some lua code? Since I have little experience in that area, could you provide a minimal example just to show me how to draw the baseline of each glyph? Thanks On Thu, Dec 22, 2011 at 6:47 AM, Hans Hagen pra...@wxs.nl wrote: mkiv does things completely

Re: [NTG-context] writing a label with a subscript in MetaFun.

2011-04-19 Thread Zhichu Chen
try label (textext($z_{ decimal (i) }$ ), z[i]) ; On Wed, Apr 20, 2011 at 10:03 AM, Jeong Dalyoung hak...@me.com wrote: Dear all, I'd like to write a label with a subscript in MetaFun where the subscript is a variable. I tried in several way but not succeed. The best which I made is

[NTG-context] problem with publication

2011-04-12 Thread Zhichu Chen
The following code generates an error about ! LuaTeX error ...onTeXt/tex/texmf-local/tex/context/base/bibl-tra.lua:192: attempt to compare number with string \startpublication[k=1,t=article,a={{Test},{}},y=2012] \artauthor[]{Test}[T.]{}{Test} \pubyear{2012} \arttitle{Test} \journal{Test}

Re: [NTG-context] m-obsolete mkii problem

2011-03-31 Thread Zhichu Chen
I think I've reported that feature a few days ago. It could be \m!systems, so I have to define \m!system as \m!systems before loading the bib module. On Thu, Mar 31, 2011 at 6:55 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Dear Hans, would it be possible to change the following

[NTG-context] columnset failed in the latest beta

2011-03-31 Thread Zhichu Chen
Minimal code: \definecolumnset[columntest][n=2,balance=yes] \definecolumnsetspan[wide][n=2] \starttext \startcolumnset[columntest] \startcolumnsetspan[wide] \dorecurse{3}{\input knuth\par} \stopcolumnsetspan \dorecurse{10}{\input knuth\par} \stopcolumnset \stoptext There is

[NTG-context] m-obsolete.tex has an undefined control sequence

2011-03-02 Thread Zhichu Chen
Hi Hans, I guess it should be \writestatus\m!system{skipping obsolete module} but somehow the file in the latest beta reads \writestatus\m!systems{skipping obsolete module} I have to define this macro to \def\m!systems{\m!system} before loading the bib module so that I can keep the system

[NTG-context] focus is gone in \setupinteraction?

2010-09-28 Thread Zhichu Chen
Well, focus=width doesn't work in my test file: \setupinteraction [state=start, focus=fit, openaction=FitWidth] \starttext \goto{link}[page(5)] \dorecurse{10}{\input knuth \page} \stoptext I also checked http://wiki.contextgarden.net/Reference/en/setupinteraction and no focus option --

Re: [NTG-context] beta

2010-09-12 Thread Zhichu Chen
I miss something? I've put the texmfcnf.lua under texmf/web2c. On Sat, Sep 11, 2010 at 12:19 PM, Zhichu Chen zhichu.c...@gmail.com wrote: On Fri, Sep 10, 2010 at 11:59 PM, Hans Hagen pra...@wxs.nl wrote: On 10-9-2010 10:43, Zhichu Chen wrote: My apology. I attach the test file here

Re: [NTG-context] beta

2010-09-10 Thread Zhichu Chen
On Fri, Sep 10, 2010 at 11:59 PM, Hans Hagen pra...@wxs.nl wrote: On 10-9-2010 10:43, Zhichu Chen wrote: My apology. I attach the test file here and hope that's gonna help. I extract everything from the font package to $texmf-fonts/fonts/data/bh/lucida and that's it. works ok here did

Re: [NTG-context] beta

2010-09-09 Thread Zhichu Chen
Works funny on my Lucida fonts, something about = structure : section @ level 3 : 0.0.9 - References define fonts font with name LucidaBright is not found define fonts unknown font LucidaBright, loading aborted define fonts unable to

[NTG-context] My mtx-fonts.lua script is broken?

2010-08-23 Thread Zhichu Chen
It may have happened a long time ago. I just updated my context and could not compile my document with \setupbodyfont[lucida], something like: === define fonts forced type afm of stmary10 not found define fonts font with name stmary10 is not found

Re: [NTG-context] My mtx-fonts.lua script is broken?

2010-08-23 Thread Zhichu Chen
On Mon, Aug 23, 2010 at 5:26 PM, Taco Hoekwater t...@elvenkind.com wrote: On 08/23/2010 10:33 AM, Zhichu Chen wrote: virtual math font LMMath8-Regular, no parameters set ! TeX capacity exceeded, sorry [parameter stack size=60]. == Well, can you

Re: [NTG-context] PDF Custom Page Numbering

2010-06-10 Thread Zhichu Chen
On Thu, Jun 10, 2010 at 12:35 PM, Aditya Mahajan adit...@umich.edu wrote: On Wed, 9 Jun 2010, Hartmut Henkel wrote: On Wed, 9 Jun 2010, Andreas Schneider wrote: while reading through the PDF to ISO-9075-1 (SQL99), I noticed something I had never seen before in a PDF: the page numbers

Re: [NTG-context] Math in MKIV - HOWTO

2010-03-02 Thread Zhichu Chen
On Tue, Mar 2, 2010 at 6:45 PM, Hans Hagen pra...@wxs.nl wrote: On 1-3-2010 17:26, Zhichu Chen wrote: Hi, I got some time today and checked some symbols of hlcra.tfm (LucidaNewMath-Arrows), and got this table: so that table replaces lbr-ma in math-vfu? yes. And don't forget the correction

Re: [NTG-context] Math in MKIV - HOWTO

2010-03-02 Thread Zhichu Chen
On Tue, Mar 2, 2010 at 11:23 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Tue, Mar 2, 2010 at 15:28, Hans Hagen wrote: On 2-3-2010 14:49, Mojca Miklavec wrote: hm, but for me name compatibility with every latex math package is no objective; i'd rather that we're unicode math

Re: [NTG-context] Math in MKIV - HOWTO

2010-03-01 Thread Zhichu Chen
Hi, I got some time today and checked some symbols of hlcra.tfm (LucidaNewMath-Arrows), and got this table: fonts.enc.math[lucida-ma] = { [0x025CB] = 0x00, -- circle [0x025CF] = 0x01, -- blackcircle [0x025A1] = 0x02, -- square

Re: [NTG-context] Math in MKIV - HOWTO

2010-03-01 Thread Zhichu Chen
Correction: [0x021D5] = 0x65, -- Downrightarrow It's wrong, should be: [0x021D8] = 0x65, -- Downrightarrow On Tue, Mar 2, 2010 at 12:26 AM, Zhichu Chen zhichu.c...@gmail.com wrote: Hi, I got some time today and checked some symbols of hlcra.tfm (LucidaNewMath-Arrows), and got this table

Re: [NTG-context] Math in MKIV - HOWTO

2010-02-24 Thread Zhichu Chen
On Wed, Feb 24, 2010 at 6:24 PM, Hans Hagen pra...@wxs.nl wrote: On 24-2-2010 10:01, Hans Hagen wrote: i uploaded a beta with mkiv lbr vectors (quick and dirty conversion hackery) \usemodule[fnt-25] \starttext    \setupbodyfont[lucida,12pt]    \showmathfontcharacters \stoptext up to

Re: [NTG-context] Math in MKIV - HOWTO (was: Lucida Fonts with MKIV)

2010-02-23 Thread Zhichu Chen
Thanks for the guidance, I finally get my Lucida Math work. After the \showfont step, I found that I didn't have the tex-ma vector font, and the last two lines in math-vfu.lua should be changed to: { name = hlcra.tfm, vector = tex-mb }, { name = hlcrm.tfm, vector = tex-mi }, in my case.

Re: [NTG-context] What is the luatex version of \pdfescapehex

2010-01-06 Thread Zhichu Chen
Thank you Hans, On Wed, Jan 6, 2010 at 4:38 PM, Hans Hagen pra...@wxs.nl wrote: On 6-1-2010 2:33, Zhichu Chen wrote: Hi, I've written a very old module which used a lot of pdf primitives like \pdfescapehex and \pdfescapename etc. and it turns out not they don't work in mkiv. So I just

Re: [NTG-context] What is the luatex version of \pdfescapehex

2010-01-06 Thread Zhichu Chen
Sorry to my previous posts. I found a LaTeX package named pdftexcmds and the lua script works just fine. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] What is the luatex version of \pdfescapehex

2010-01-05 Thread Zhichu Chen
Hi, I've written a very old module which used a lot of pdf primitives like \pdfescapehex and \pdfescapename etc. and it turns out not they don't work in mkiv. So I just want to know are there any alternatives? TIA -- Best Regards Chen

Re: [NTG-context] How to unfill a picture?

2009-06-24 Thread Zhichu Chen
Fine, I made it in a very weird way. I constructed a very strange path to go through the outer path in counter- clockwise direction and inner path in clockwise dir- ection and filled it. I don't feel good but it can be done now. On Wed, Jun 24, 2009 at 11:13 AM, Zhichu Chenzhichu.c...@gmail.com

Re: [NTG-context] How to unfill a picture?

2009-06-24 Thread Zhichu Chen
Cool, but just curiosity, metapost can handle fonts right? How those glyphs don't have this problem? I've read the specification of the type1 fonts, they don't seem to have such weird paths, just some borderlines with different directions. On Wed, Jun 24, 2009 at 3:32 PM, Taco

Re: [NTG-context] How to unfill a picture?

2009-06-24 Thread Zhichu Chen
I assume there's no -- between reverse and fullcircle scaled 1cm :) Well, my example is too simple. Actually, I was trying to draw a treble clef, and when there're too many intersection points (caused by the -- operator to join every path together) the output is not so good, kind of like an

Re: [NTG-context] How to unfill a picture?

2009-06-24 Thread Zhichu Chen
I guess I should use as few variables as possible, I suppose no one would name their paths Helper ;) This macro assumes the argument is clockwise, I've written a macro to find out whether a path is clockwise or not, but it took me forever to run the code. Maybe there's already some primitive

Re: [NTG-context] How to unfill a picture?

2009-06-24 Thread Zhichu Chen
On Wed, Jun 24, 2009 at 7:29 PM, Hans Hagenpra...@wxs.nl wrote: Zhichu Chen wrote: I guess I should use as few variables as possible, I suppose no one would name their paths Helper ;) Helper sounds ok, but ...  pair Oringin ; Oringin := center p ; ... Oringin kind of funny I'll change

Re: [NTG-context] How to unfill a picture?

2009-06-24 Thread Zhichu Chen
769ba7780906240342s4939ac2foe7bfd783ad2e8...@mail.gmail.com,  Zhichu Chen zhichu.c...@gmail.com wrote: Well, my example is too simple. Actually, I was trying to draw a treble clef If your goal is to draw a path with pens of varying width (kind of calligraphic strokes),'penpos' and 'penstroke' may be your friends

[NTG-context] How to unfill a picture?

2009-06-23 Thread Zhichu Chen
Hi, I got a problem in metapost. If I want to draw a ring, and use the code: fill fullcircle scaled 2cm ; unfill fullcircle scaled 1cm ; The inner part is not transparent, it has the color of background variable which is white by default. This case is a minimal example, I actually wanna draw

Re: [NTG-context] inserting Chinese characters (MKII)

2009-06-11 Thread Zhichu Chen
Since it's just two characters, why not make it a picture which you can generate it from your LaTeX output. That'll much easier than installing the Chinese fonts, generating the typescripts or so. On Thu, Jun 11, 2009 at 9:37 PM, Bowen Alan C.acbo...@princeton.edu wrote:  I have absolutely no

Re: [NTG-context] missing metafun graphics in mkii

2009-06-08 Thread Zhichu Chen
Well, I don't quite sure if it's the same problem with you guys but there's a weird thing that after I updated to the current beta release, I have to run texmfstart texexec twice to get the metapost figures. On Mon, Jun 8, 2009 at 7:30 PM, Peter Münsterpmli...@free.fr wrote: On Mon, 8 Jun 2009,

Re: [NTG-context] MKIV doesn't support units module?

2009-06-03 Thread Zhichu Chen
On Wed, Jun 3, 2009 at 3:26 PM, Hans Hagen pra...@wxs.nl wrote: Zhichu Chen wrote: Well, I shouldn't say the module units is not fully supported, but it won't give me what I want in MKIV. Those units it made are in italic shape but I really need them to be upright. I think I don't need

[NTG-context] MKIV doesn't support units module?

2009-06-02 Thread Zhichu Chen
Well, I shouldn't say the module units is not fully supported, but it won't give me what I want in MKIV. Those units it made are in italic shape but I really need them to be upright. I think I don't need to provide a test file, 'cause any files don't work for me. -- Best Regards Chen

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Zhichu Chen
On Sun, May 24, 2009 at 6:36 PM, Hans Hagen pra...@wxs.nl wrote: something like state=once would be handy but i'm not going to touch that code till i'm redoing some page-* code in mkiv I don't get it, the once made me confused. Should that just be affectedpage=current or range={1,2,15} which

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Zhichu Chen
On Mon, May 25, 2009 at 3:12 PM, Hans Hagen pra...@wxs.nl wrote: well, we have already state=repeat: same background each upcoming page state=start : enable background (calculate each time) state=stop  : disable backgrond so we would have state=once  : enable background and after this

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Zhichu Chen
On Mon, May 25, 2009 at 3:30 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 25.05.2009 um 08:55 schrieb Zhichu Chen: On Sun, May 24, 2009 at 6:36 PM, Hans Hagen pra...@wxs.nl wrote: something like state=once would be handy but i'm not going to touch that code till i'm

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Zhichu Chen
On Sun, May 24, 2009 at 4:00 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 24.05.2009 um 06:12 schrieb Zhichu Chen: As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. I don't think

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Zhichu Chen
On Sun, May 24, 2009 at 4:57 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 24.05.2009 um 10:46 schrieb Zhichu Chen: Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an \everypage

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Zhichu Chen
On Thu, May 21, 2009 at 9:25 AM, Yue Wang yuleo...@gmail.com wrote: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Zhichu Chen
As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an \everypage or

[NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
Hi guys, This may sound crazy, but I have to do a presentation with a stretched output. The thing is, I have a laptop with a normal screen, and it'll be plugged to a very big wide screen monitor so that people can see the slides on the big screen. I have to look at my laptop and present for the

Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
Well, since it's a presentation, I really have some cool style to show by using javascript. I think including separated pages will jeopardize it. On Fri, May 22, 2009 at 11:55 PM, luigi scarso luigi.sca...@gmail.com wrote: On Fri, May 22, 2009 at 4:48 PM, Zhichu Chen zhichu.c...@gmail.com

Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:08 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 22.05.2009 um 16:48 schrieb Zhichu Chen: Hi guys, This may sound crazy, but I have to do a presentation with a stretched output. The thing is, I have a laptop with a normal screen, and it'll

Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:46 AM, luigi scarso luigi.sca...@gmail.com wrote: On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen zhichu.c...@gmail.com wrote: Well, since it's a presentation, I really have some cool style to show by using javascript. I think including separated pages

Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:54 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 22.05.2009 um 18:47 schrieb Zhichu Chen: Is there an easy option for this? \setuppapersize[SM|SW] or a papersize with the the same width/height ratio as the projector. That won't go well

Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:55 AM, luigi scarso luigi.sca...@gmail.com wrote: On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen zhichu.c...@gmail.com wrote: Well, since it's a presentation, I really have some cool style to show by using javascript. I think including separated pages

Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
Schuster schuster.wolfg...@googlemail.com wrote: Am 22.05.2009 um 16:48 schrieb Zhichu Chen: Hi guys, This may sound crazy, but I have to do a presentation with a stretched output. The thing is, I have a laptop with a normal screen, and it'll be plugged to a very big wide screen monitor

Re: [NTG-context] How can I compare picture variables in metapost?

2009-05-05 Thread Zhichu Chen
Hi Taco, On Tue, May 5, 2009 at 8:51 PM, Taco Hoekwater t...@elvenkind.com wrote: Zhichu Chen wrote: Hi all, I want to draw some paths that won't intersect with each other in metapost. Those paths are generated randomly, e.g., draw 100 circles without any intersections. I use a very stupid

Re: [NTG-context] How can I compare picture variables in metapost?

2009-05-05 Thread Zhichu Chen
On Tue, May 5, 2009 at 11:04 PM, Taco Hoekwater t...@elvenkind.com wrote: Zhichu Chen wrote: What I want exactly is how to determine if there's anything on some region of the picture. I need this to test if the random point I picked is useful. That is easy to answer: you can't (well

Re: [NTG-context] How can I compare picture variables in metapost?

2009-05-05 Thread Zhichu Chen
Thank you all guys, To Aditya: Clearly I over-emphasized the randomness. Actually, what I meant is a little more complex: identical objects on random coordinates and they don't intersect with each other. We can rotate them but we can't re-size them and scale them. Your code is very interesting.

Re: [NTG-context] I need bold math italic and symbols

2009-01-06 Thread Zhichu Chen
euscript is part of amsfonts now. I tried amsl module, but found no effect. May I know how to trig euscript mathcal? 2009/1/6 Zhichu Chen zhichu.c...@gmail.com On Tue, Jan 6, 2009 at 6:36 AM, Aditya Mahajan adit...@umich.edu wrote: On Mon, 5 Jan 2009, Zhaopeng Xing wrote: Hi, Can anyone

Re: [NTG-context] I need bold math italic and symbols

2009-01-05 Thread Zhichu Chen
On Tue, Jan 6, 2009 at 6:36 AM, Aditya Mahajan adit...@umich.edu wrote: On Mon, 5 Jan 2009, Zhaopeng Xing wrote: Hi, Can anyone show me how to write math contents in bold and italic fonts? {\bf } can only produce upright letters. In LaTeX, we can make use of the command \pmb for this

Re: [NTG-context] PDF page numbers

2008-12-16 Thread Zhichu Chen
Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Zhichu Chen
Hi Bart On Thu, Dec 11, 2008 at 9:50 PM, Bart C. Wise [EMAIL PROTECTED] wrote: When I run the code below (via minimals), I get the following error, why? enter loop ! Extra \else. \@@plniterate ...\expandafter \@@plniterate \else \fi \myloop ...by 1 \ifnum \tempcnta #1\else \repeat I

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Zhichu Chen
Hi Bart, On Thu, Dec 11, 2008 at 11:05 PM, Bart C. Wise [EMAIL PROTECTED] wrote: Chen, Thanks. That makes sense now. However, when I take your code and run it, it only goes through 1 iteration of the loop and exits. I'm puzzled. Bart Really? 'cause when I run the following code

[NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread Zhichu Chen
Hi, I've met a weird thing, I can't get \totalnumberofpages in the preamble. But it used to work. A simple test file is ++ \dorecurse{\totalnumberofpages}{\setvalue{test::\recurselevel}{:\recurselevel:}} \def\test{\getvalue{test::\pagenumber}} \starttext \input

Re: [NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread Zhichu Chen
On Mon, Dec 8, 2008 at 5:47 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, I've met a weird thing, I can't get \totalnumberofpages in the preamble. But it used to work. A simple test file

[NTG-context] luatex and javascript

2008-12-07 Thread Zhichu Chen
Hi, I've searched the list and it seems that no one has been occurred to my problem. Has the javascript interface gone? 'cause I failed the following simplest file: \setupinteraction[state=start] \starttext A few years back,

Re: [NTG-context] luatex and javascript

2008-12-07 Thread Zhichu Chen
On Sun, Dec 7, 2008 at 8:56 PM, Taco Hoekwater [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, I've searched the list and it seems that no one has been occurred to my problem. Has the javascript interface gone? 'cause I failed the following No, just bugged. Hans ran into that himself

Re: [NTG-context] luatex and javascript

2008-12-07 Thread Zhichu Chen
On Mon, Dec 8, 2008 at 2:32 AM, Hans Hagen [EMAIL PROTECTED] wrote: Taco Hoekwater wrote: Zhichu Chen wrote: Hi, I've searched the list and it seems that no one has been occurred to my problem. Has the javascript interface gone? 'cause I failed the following No, just bugged. Hans ran

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Zhichu Chen
On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: but it might make more sense to look into metatables (i assume that you own the programming in lua book which explains that) I don't have one :(, I'll take a good at it later. You really should look into the book, it

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Zhichu Chen
On Thu, Dec 4, 2008 at 5:28 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know

[NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-03 Thread Zhichu Chen
Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know there's a self variable for object-oriented programming, like

Re: [NTG-context] Happy Single's Day

2008-11-10 Thread Zhichu Chen
Sounds like a bachelor day. Not for me but thanks and congratulations. On Mon, Nov 10, 2008 at 11:59 AM, Yue Wang [EMAIL PROTECTED] wrote: Hi, all: Tomorrow is 11/11 single day. (I dont know whether the holiday exists in other places, but on 11:11 am, 11/11, (all the numbers are single[1]),

Re: [NTG-context] Lettermodule

2008-11-01 Thread Zhichu Chen
Hi Willi, On Sat, Nov 1, 2008 at 11:16 AM, Willi Egger [EMAIL PROTECTED] wrote: Hello Wolfgang, I just updated to the latest beta of context. Unfortunately I get now an error when using the letter module. I have no clue. ConTeXt ver: 2008.10.31 13:58 MKIV fmt: 2008.11.1 int: english/

Re: [NTG-context] external figure extension name PDF not supported

2008-11-01 Thread Zhichu Chen
Hi Zhaopeng, On Sat, Nov 1, 2008 at 1:31 PM, Zhaopeng Xing [EMAIL PROTECTED] wrote: Hi, There is a problem about a figure name. When I use pdf figures, capital xx.PDF can not be identified, while only xx.pdf is supported. I hope it can be fixed because my odf printer always give extension

[NTG-context] \startvariables failed after the current update

2008-10-28 Thread Zhichu Chen
Hi there, I haven't updated my ConTeXt distribution for a very long time (for the internet connection problem here) and somehow my network worked, so I use ctxtools --update to make an update. During the updating, I got some error message like I can't find mult-def.tex and some other files more.

Re: [NTG-context] \startvariables failed after the current update

2008-10-28 Thread Zhichu Chen
Oops. Thanks. Although I think it would be much simpler if we can do this by using comma lists. On Tue, Oct 28, 2008 at 8:30 AM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi there, I haven't updated my ConTeXt distribution for a very long time (for the internet connection

Re: [NTG-context] why does not this style work?

2008-10-26 Thread Zhichu Chen
Hi Ruini, Since \dosanhao has nothing to do with it's argument, why not just define like \def\mybig {\switchtobodyfont[24pt]} On Sun, Oct 26, 2008 at 3:55 PM, Ruini Xue [EMAIL PROTECTED] wrote: I want to use a dedicated font size for the chapter title, so I wrote this piece of code:

Re: [NTG-context] why does not this style work?

2008-10-26 Thread Zhichu Chen
Hi Ruini, by the way, maybe this is what you wanted: == \unexpanded\def\mybig {\dosingleempty\dosanhao} \unexpanded\def\dosanhao[#1]% {\iffirstargument \switchtobodyfont[#1]% \else \switchtobodyfont[24pt]% \fi} \setuphead [chapter]

[NTG-context] Page numbering in Adobe Reader

2008-10-16 Thread Zhichu Chen
Hi Hans and Taco, Some guy think it's cool to use romannumeral numbers in the preface and so is in the Adobe Reader. I searched the source but apparently it is not provided. I made a very dirty test file so could you make a switch in the \setupinteraction officially? My test file is like:

Re: [NTG-context] Has anybody used asymptote without LaTeX?

2008-10-11 Thread Zhichu Chen
Hi all, On Sat, Oct 11, 2008 at 1:25 PM, Michail Vidiassov [EMAIL PROTECTED] wrote: Dear All, On Fri, 10 Oct 2008, Zhichu Chen wrote: If I want to embed the .prc file into a pdf document, all I need to do is specify the correct /Subtype and mime type. That's very easy. I think creating 3D

Re: [NTG-context] Has anybody used asymptote without LaTeX?

2008-10-09 Thread Zhichu Chen
Hi, all, It's me again. Since Asymptote 1.44 has been released, I don't have to compile it myself. So I played a little bit and find out that if I don't want labels nor produce a pdf format of that image, I can live without LaTeX. That's kind of a good news. If I want to embed the .prc file into

Re: [NTG-context] Has anybody used asymptote without LaTeX?

2008-10-08 Thread Zhichu Chen
Hi Michail, It's a little late for me to check my mailbox. Thank you for your work and yes, I'm interested in it. Can I get a copy of it? On Mon, Sep 29, 2008 at 5:19 PM, Michail Vidiassov [EMAIL PROTECTED] wrote: Dear All, And how to embed .prc files into the .pdf document? I have made a

Re: [NTG-context] Has anybody used asymptote without LaTeX?

2008-09-29 Thread Zhichu Chen
Hi Yue, On Mon, Sep 29, 2008 at 1:57 PM, Yue Wang [EMAIL PROTECTED] wrote: Hi, Zhichu: $n$ years ago ($n\geq 2$), some user had successfully embed a u3d format file into pdf using ConTeXt with the instruction from Hans. I think the module is still there. Maybe you can have a look. In fact

  1   2   3   >