[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 generate

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 "

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

2022-05-10 Thread Zhichu Chen via ntg-context
ut in wrong position. I hope there's another magic switch, or I have to put the marks in the title head and put "real" but invisible notes in the two-column texts. Thanks again, Hans. Yours, Zhichu MWE (not that minimal): ===

[NTG-context] Is there a "smart" capitalisation implementation?

2022-05-07 Thread Zhichu via ntg-context
Hi, I am going to convince the Board of a journal to consider ConTeXt as an additional option. I want to make a module before I say anything. Right now I have this title problem. The journal requires the titles to be CAPITALISED, except for the acronyms. I'm currently using backticks `...` to

Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Zhichu
oking forward to “some” module :-) -- From:Hans Hagen Send Time:2019 Jul. 5 (Fri.) 17:03 To:陈之初 ; mailing list for ConTeXt users Subject:Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.8 On 7/5/2019 8:32 AM, Zhichu wrote: > Hi

[NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-04 Thread Zhichu
Hi everyone, I was using metapost to generate some symbols, as in "tex/texmf-context/metapost/context/fonts/mpiv/demo-symbols.tex" Occasionally, I want to customize a glyph whose charcode is a little large, say the character "院": ~~~IPython In [1]: for c

Re: [NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-30 Thread Zhichu
] \stopplacemarginfigure \input knuth } \stoptext === -- From:Wolfgang Schuster Sent At:2019 May 29 (Wed.) 17:55 To:陈之初 ; mailing list for ConTeXt users Subject:Re: [NTG-context] Extend figure to margin, or extend figure from margin to text Zhichu schrieb am Mi., 29. Mai 2019, 10:30: Hi everyo

Re: [NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-29 Thread Zhichu
Dear Wolfgang, That's quick. Thank you so much. Best regards, Zhichu -- From:Wolfgang Schuster Sent At:2019 May 29 (Wed.) 17:55 To:陈之初 ; mailing list for ConTeXt users Subject:Re: [NTG-context] Extend figure to margi

[NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-29 Thread Zhichu
width } \stopplacefigure \input knuth \stoptext Lua codes are also welcomed. Best Regards, Zhichu Chen ___ If your question is of interest to others as well, please add an entry to the

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 i

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} \def\previoussectioncountervalue{\clf_de

Re: [NTG-context] unwanted head behavior

2016-04-06 Thread Zhichu Chen
ot; to "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.

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 Han

[NTG-context] unwanted head behavior

2016-04-04 Thread Zhichu Chen
put ward\page \part{TITLE}\input ward\par \title{Title} \chapter{Title} \chapter{Title} \title{Title} \chapter{Title} \stoptext == ConTeXt minimal information: zhichu  ~  context -version mtx-context | ConTeXt Process Management 0.63 mtx-context | mt

[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 use

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 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 0 0 0] to the font descr

[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 t

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]% \doSomethingWi

Re: [NTG-context] Virtual font question

2015-06-24 Thread Zhichu Chen
math font 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 b

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 change

[NTG-context] Virtual font question

2015-06-22 Thread Zhichu Chen
; fonts > defining > font with asked name 'MathTimeProA-Regular' is not found using lookup 'name' fonts > defining > not loaded and hashed: mathtimeproa-regular @ normal:goodies=math-times-pro-math @ 393216 fonts > defining > un

Re: [NTG-context] Position of integral limits

2014-04-29 Thread Zhichu Chen
\setupmathematics[integral=nolimits] On Wed, Apr 30, 2014 at 12:54 PM, Darksair 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 LaTeX does by default.

Re: [NTG-context] Unnumbered chapters before the ToC

2014-01-15 Thread Zhichu Chen
Hi Robert, On Thu, Jan 16, 2014 at 5:51 AM, Robert Blackstone < blackstone.rob...@gmail.com> wrote: > > On 15 Jan 2014, at 21:54 , Wolfgang Schuster > wrote: > > Am 15.01.2014 um 15:36 schrieb Robert Blackstone < > blackstone.rob...@gmail.com>: > > Dear all, > > Is there, in a book-project, a

[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 <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 mailto:wolfgang.schus...@gmail.co

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

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 >>&g

Re: [NTG-context] simpleslides bug?

2013-02-20 Thread Zhichu Chen
On Wed, Feb 20, 2013 at 4:54 PM, Thomas A. Schmitz < thomas.schm...@uni-bonn.de> wrote: > 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 Ma

[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: /opt/context/tex/texmf-context/tex/

[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 mtx-co

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

2011-12-30 Thread Zhichu Chen
sp .. " l s 0 1 0 RG 0 1 0 rg 0.1 w [2 1] 0 d 0 0 m " .. -wdsp .. " 0 l S Q" node.insert_after (head, n, w) end end end On Thu, Dec 29, 2011 at 10:18 PM, Hans Hagen wrote: > On 29-12-2011 04:22, Zhichu Chen wr

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

2011-12-28 Thread Zhichu Chen
r3.prev = k3 r3.next = k4 k4.prev = r3 k4.next = r4 r4.prev = k4 r4.next = k5 k5.prev = r4 local box = node.hpack(k1) local tb = node.vpack(box) insert_after (head, n, tb) =====

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 wrote: > > mkiv does things completely different > > H

[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] 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 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 > > f

[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} \pages{

[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 no

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 follow

[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 untouc

[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-11 Thread Zhichu Chen
ally. Did I miss something? I've put the texmfcnf.lua under texmf/web2c. On Sat, Sep 11, 2010 at 12:19 PM, Zhichu Chen wrote: > > > On Fri, Sep 10, 2010 at 11:59 PM, Hans Hagen wrote: > >> On 10-9-2010 10:43, Zhichu Chen wrote: >> >>> My apology. I atta

Re: [NTG-context] beta

2010-09-10 Thread Zhichu Chen
On Fri, Sep 10, 2010 at 11:59 PM, Hans Hagen 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 >>

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

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 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]. >> > > ==

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

2010-08-23 Thread Zhichu Chen
= mtxrun --script fonts --reload == I still could not find it: ====== zhi...@zhichu-pc /context/tex $ mtxrun --locate AdobeSongStd-Light.otf tree:///d:/ConTeXt/tex/texmf-fonts/fonts/opentype/public/A

Re: [NTG-context] PDF Custom Page Numbering

2010-06-09 Thread Zhichu Chen
On Thu, Jun 10, 2010 at 12:35 PM, Aditya Mahajan 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 displayed >>

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

2010-03-02 Thread Zhichu Chen
On Tue, Mar 2, 2010 at 11:23 PM, Mojca Miklavec 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 compiant (and i don't ca

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

2010-03-02 Thread Zhichu Chen
On Tue, Mar 2, 2010 at 6:45 PM, Hans Hagen 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

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 wrote: > Hi, I got some time today and checked some symbols of hlcra.tfm > (LucidaNewMath-Arrows), and got

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

2010-03-01 Thread Zhichu Chen
> you should coordinate this with mojca > > Just go on ... I'll check once I finish a few important task (and that > most probably won't be today), but I promise to do a precise check > (whether or not the vector will be complete by then

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

2010-02-24 Thread Zhichu Chen
On Wed, Feb 24, 2010 at 6:24 PM, Hans Hagen 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 othe

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 m

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@n

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 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 o

[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
2s4939ac2foe7bfd783ad2e8...@mail.gmail.com>, >  Zhichu Chen 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 '

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

2009-06-24 Thread Zhichu Chen
On Wed, Jun 24, 2009 at 7:29 PM, Hans Hagen 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

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 cou

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
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 Hoekwater wrote: > C

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

2009-06-23 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 Chen wrote: > Hi,

[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 s

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. wrote: >  I have absolutely no knowledge of Chinese, b

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ünster wrote: > On Mon, 8 Jun 2009, Mojca Miklave

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 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 u

[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 Mon, May 25, 2009 at 3:30 PM, Wolfgang Schuster wrote: > > Am 25.05.2009 um 08:55 schrieb Zhichu Chen: > >> On Sun, May 24, 2009 at 6:36 PM, Hans Hagen wrote: >>> >>> something like state=once would be handy but i'm not going to touch that >>>

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 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 page d

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

2009-05-24 Thread Zhichu Chen
On Sun, May 24, 2009 at 6:36 PM, Hans Hagen 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 will ma

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 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-24 Thread Zhichu Chen
On Sun, May 24, 2009 at 4:00 PM, Wolfgang Schuster 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. > >

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 \everyshipo

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 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 color backgroun

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

2009-05-22 Thread Zhichu Chen
fgang Schuster 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

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 wrote: > > > On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen wrote: >> >> Well, since it's a presentation, I really have some "cool" style to >> show by using >> javascript. I think including separated

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 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 >>>

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 wrote: > > > On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen wrote: >> >> Well, since it's a presentation, I really have some "cool" style to >> show by using >> javascript. I think including separate

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 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 wit

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 wrote: > > > On Fri, May 22, 2009 at 4:48 PM, Zhichu Chen wrote: >> &g

[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 p

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. I'

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 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

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 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

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

2009-05-05 Thread Zhichu Chen
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 way like: = % randomseed:= day + time*epsilon ; save minL ; nu

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

2009-01-06 Thread Zhichu Chen
ript 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 >> >> On Tue, Jan 6, 2009 at 6:36 AM, Aditya Mahajan wrote: >> > On Mon, 5 Jan 2009, Zhaopeng Xing wrote: >> > >>

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 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 purpos

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 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

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

2008-12-11 Thread Zhichu Chen
Hi Bart, On Thu, Dec 11, 2008 at 10:21 PM, Bart C. Wise <[EMAIL PROTECTED]> wrote: > > If I change the loop to be the following, I still get the same error: > > \def\myloop#1{% > \tempcnta=\the\startcnt% > \loop >\advance \tempcnta by 1 >\if\tempcnta=#1\else \repeat\fi > } > > Bart > N

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

Re: [NTG-context] PDF page numbers

2008-12-09 Thread Zhichu Chen
Hi Dereck On Tue, Dec 9, 2008 at 6:53 PM, Derek CORDEIRO <[EMAIL PROTECTED]> wrote: > In latex + book/memoir + hyperref, if \frontmatter \mainmatter are used, the > pdf files generated use the roman numbers in the pdf itself. It appears as > ii (2 of 500) in the pdfviewer. Is it possible to do the

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. >>

[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 knu

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. >>> >>>

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

[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, \TEX\

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

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 &g

[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   2   3   >