[NTG-context] Spacing between formula and texts
Hi, I happened to review the output of my article and found one thing which is not perfect for me. The spacing between a formula and its upper texts is not treated well when I tuned with some indent things. Here is my test file \usemodule[units] \setupindenting[big] \indenting[always,next] % no, not, yes, always, never, first, next % \setupformulas[spacebefore=5em] \starttext Blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, I love the following formula: \placeformula[-] \startformula 6.670 \times 10^{-11} \Newton \Times \Square \Meter \Per \Square \Kilo \Gram \stopformula which is very cool. which is very cool. which is very cool. which is very cool. which is very cool. % \showmathcharacters \stoptext I'm really uncomfortable with that, and I want to solve it by myself. When I looked up the indent macros in core-spa.tex, how complex is that. So I just hope you guys could help me. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Spacing between formula and texts
Hi Wolfgang, On 9/20/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Wed, 19 Sep 2007 23:30:26 +0800 Zhichu Chen [EMAIL PROTECTED] wrote: \usemodule[units] \setupindenting[big] \indenting[always,next] % no, not, yes, always, never, first, next % \setupformulas[spacebefore=5em] \starttext Blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, I love the following formula: \placeformula[-] \startformula 6.670 \times 10^{-11} \Newton \Times \Square \Meter \Per \Square \Kilo \Gram \stopformula which is very cool. which is very cool. which is very cool. which is very cool. which is very cool. % \showmathcharacters \stoptext Hi Chen, I can't give a real solution but only a workaround, the problem lies in the macro \beforedisplayspace which calls \docomplexdoblank which calls itself \presetindentation and this macro causes your real problem. You solve this now by placing \let\presetindentation\relax at the begin in your document or remove the next key for \setupindenting. Really! It works fine with first key. OK, I can just live with that, although I hope Hans will have time to fix it, it's not so cool with the first paragraph indented :) This is all what I can do for you in a few minutes, the rest is up to Hans to make a extra test in \beforedisplay or somewhere else to disable \preetindentation before a display formula. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] indent and blank question
Hi frantisek, On 9/20/07, frantisek holop [EMAIL PROTECTED] wrote: hi there, i am working on a book format document using: \setupindenting[medium,yes] so the parapgrahps have no whitespace between but the first line of the next paragraph is indented. as is customary, i would like to start a new part (lacking a better word) of the same chapter without a title, unrelated to the previous text but not warranting a new chapter. some books put some symbols inbetween these chapter parts like three stars or something. if a put a \blank and start a new paragprah, it gets indented. i know i can use \noindent to get what i want, but my question is, is there something more automatic, a space command which makes the next paragraph unindented or something? You can define a head. or for example if i wanted to put the 3 stars there, could i redefine subject or subsubject to output these _and_ make the next paragprah unindented? -f -- the golden rule: he who has the gold makes the rules. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] What's the ps_name of AdobeMingStd-Light?
Hi, I searched the mail list for a while and I got that if I didn't specify the font file, it will not be embeded and Acrobat Reader will just use its own fonts to show the characters. I want to make some Chinese documents and I think if I don't embed any fonts, it will be much smaller than it used to be. And there is a cool font AdobeMingStd-Light.otf coming along with Acrobat Reader so I wish I can use it. I converted it to ttf and then tfm files (I don't know whether it is legal) and write the map file like: uni-AdobeMingStd-Light-00 Adobe Ming Std Unicode00Encoding ReEncodeFont uni-00.enc I think the first column is for the tfm files, and I do get the uni-AdobeMingStd-Light-00.tfm to uni-AdobeMingStd-Light-ff.tfm files. And the second column is for the PS name of the font. I really don't know how to write it because it has spaces in it, and when I replaced it with another PS name that has no spaces or other special characters in it, say SimSun as a common Simplified Chinese font in Windows, it worked fine. So, any suggestions? -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
Hi, Wolfgang On Dec 11, 2007 12:05 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/12/10, Zhichu Chen [EMAIL PROTECTED]: Hi, Hi Chen, can't you ue XeTeX or LuaTeX for your document instead of pdfTeX, it will be easier for you because you don't need tfm and map files and you need only the typescripts. I don't know, but in this case, I don't want to embed fonts, I don't know how LuaTeX can do that but it runs really slow on my ancient PC, especially on the first time when it's generating font cache. I searched the mail list for a while and I got that if I didn't specify the font file, it will not be embeded and Acrobat Reader will just use its own fonts to show the characters. I want to make some Chinese documents and I think if I don't embed any fonts, it will be much smaller than it used to be. And there is a cool font AdobeMingStd-Light.otf coming along with Acrobat Reader so I wish I can use it. I converted it to ttf and then tfm files (I don't know whether it is legal) and write the map file like: pdfTeX can use OpenType fonts and you don't have to convert them into TrueType format. I convert it to ttf only because I want the tfm files, I can't find there's a tool that can to otf2tfm. And then I deleted the ttf and the otf fonts because I don't want to embed them so I don't need them any more. uni-AdobeMingStd-Light-00 Adobe Ming Std Unicode00Encoding ReEncodeFont uni-00.enc I think the first column is for the tfm files, and I do get the uni-AdobeMingStd-Light-00.tfm to uni-AdobeMingStd-Light-ff.tfm files. And the second column is for the PS name of the font. I really don't know how to write it because it has spaces in it, and when I replaced it with another PS name that has no spaces or other special characters in it, say SimSun as a common Simplified Chinese font in Windows, it worked fine. So, any suggestions? XeTeX or LuaTeX. Best Regards Chen 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Anyway, thank you for paying attention to my stupid and almost useless topic. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
On Dec 11, 2007 12:37 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: On Dec 10, 2007 4:58 PM, Zhichu Chen wrote: And the second column is for the PS name of the font. I really don't know how to write it because it has spaces in it, and when I replaced it with another PS name that has no spaces or other special characters in it, say SimSun as a common Simplified Chinese font in Windows, it worked fine. So, any suggestions? You can get the PS name of some font with otfinfo: -p, --postscript-name Print each font's PostScript name. For example: MinionPro-SemiboldItCapt So: otfinfo -p AdobeMingStd-Light.otf which returns AdobeMingStd-Light here. But I would be a bit surprised if you would manage to make it work that way. Yes, it doesn't work :( I have seen some pdf files that Acrobat Reader can automatically download fonts for them. I had thought that the reader may have some kind of font list so that if some unusual (non-base) fonts are invoked, it will just down them from the Adobe ftp. I guess I was wrong. I think I should read more about those Adobe specials. Mojca ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
Hi guys, Maybe this post has gone too far, and I've tried a bunch of methods to get my map work. Anyway, I can't. And there's something I must say, why pdftex must embed the whole otf file? It's about 15M for my only-one-character test file and about 20M for my another only-two-characters test file, besides, embedding otf files are so so slow. I don't think I'm ready for otf yet. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
Hi Wolfgang, On Dec 13, 2007 7:17 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/12/13, Zhichu Chen [EMAIL PROTECTED]: Hi guys, Maybe this post has gone too far, and I've tried a bunch of methods to get my map work. Anyway, I can't. And there's something I must say, why pdftex must embed the whole otf file? It's about 15M for my only-one-character test file and about 20M for my another only-two-characters test file, besides, embedding otf files are so so slow. I don't think I'm ready for otf yet. I tried the Song font from Adobe a few days ago with XeTeX and a older chinese example text from you and the file size with 37 pages of output was a little bit over 1 MB, the same result with luaTeX but I got more pages. Then XeTeX can treat otf fonts correctly? I never tried that. I convert the otf file into multiple type1 fonts (which compiles much more faster on my PC) and I got 1.7M with 60 pages with pdftex embed the subsets. And I got 440.9K with the same document and the same tfm files except I specify Adobe Reader to use SimSun and not embed any fonts. I like the later. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
Thanks Hans. Do you have any comments about how to now embed the standard Adobe CJK fonts? On Dec 13, 2007 8:25 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi guys, Maybe this post has gone too far, and I've tried a bunch of methods to get my map work. Anyway, I can't. And there's something I must say, why pdftex must embed the whole otf file? It's about 15M for my only-one-character test file and about 20M for my another only-two-characters test file, besides, embedding otf files are so so slow. I don't think I'm ready for otf yet. afaik pdftex does not do subsetting of cid fonts, but luatex does Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
Sorry Hans, I mean not embed, there's a typo in my last post. I've broken the otf file into multiple type 1 fonts before, and it compiles very fast comparing to ttf or otf. But I don't know whether it is legal to embed those pfb files. On Dec 14, 2007 4:03 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Thanks Hans. Do you have any comments about how to now embed the standard Adobe CJK fonts? you can split up the ttf file in smaller pfb files matching the tfm's Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What's the ps_name of AdobeMingStd-Light?
Hi Wolfgang, On Dec 14, 2007 6:24 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/12/14, Hans Hagen [EMAIL PROTECTED]: Zhichu Chen wrote: Hi Wolfgang, On Dec 13, 2007 7:17 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/12/13, Zhichu Chen [EMAIL PROTECTED]: Hi guys, Maybe this post has gone too far, and I've tried a bunch of methods to get my map work. Anyway, I can't. And there's something I must say, why pdftex must embed the whole otf file? It's about 15M for my only-one-character test file and about 20M for my another only-two-characters test file, besides, embedding otf files are so so slow. I don't think I'm ready for otf yet. I tried the Song font from Adobe a few days ago with XeTeX and a older chinese example text from you and the file size with 37 pages of output was a little bit over 1 MB, the same result with luaTeX but I got more pages. Then XeTeX can treat otf fonts correctly? I never tried that. I convert the otf file into multiple type1 fonts (which compiles much more faster on my PC) and I got 1.7M with 60 pages with pdftex embed the subsets. And I got 440.9K with the same document and the same tfm files except I specify Adobe Reader to use SimSun and not embed any fonts. I like the later. xetex just pipes data into dvipdfmx, and dvipdfmx can subset (this was accomplished by Chof, who lives in Korea and uses huge fonts) But you don't have to care about this normally because this is done automatic, it is harder to prevent this ConTeXt and produce only xdv files. The file size with XeTeX should be the same as in the pdfTeX way but I found no way to prevent xdvipdfmx to embedd the fonts, I know there is a -e flag but I don't if this should only lead to embedd the complete font or to disable font embedding but I can't test this because my xdvipdfmx has no -e flag. No offense but xdvipdfmx has some problem with the graphics. I'm kind of one of the managers of the Chinese TeX Society and we have a forum called CTeX forum, and there're a lot of posts complaining that xdvipdfmx will cut part of their graphics. For instance, if they draw a picture with metapost, xdvipdfmx will only show the first quadrant of it. I guess it's confused about the boundingbox and the accordinate. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Placing meaningful footnotes
Hi everybody, Right now I'm writing an article and in the title's block I wanna thank somebody and in the authors' block I wanna display the email addresses. And I want them done with footnotes with set 2 conversion. When I use === \definenote[thanks][conversion=set 2] \definenote[email] [conversion=set 2, textstyle=type] === The footnotes are shown with two areas, one for the \thanks and another for the \email, and they all started with * symbol, I mean there're two footnotes noted by star-symbol. I know I can just use \setupfootnotes[conversion=set 2] and do all my job by only using \footnote macro, but it's just of curiosity, can I use those meaningful macros to do continuously numbered footnotes and displayed only one area at the bottom of the page. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing meaningful footnotes
Thanks Wolfgang, I looked at the source a little bit but all macros are defined with insertion and I don't know how to make them share a same counter. Maybe we need a new \definerelatednote macro. Anyway, your suggestion makes sense. On Dec 18, 2007 5:59 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/12/17, Zhichu Chen [EMAIL PROTECTED]: Hi everybody, Right now I'm writing an article and in the title's block I wanna thank somebody and in the authors' block I wanna display the email addresses. And I want them done with footnotes with set 2 conversion. When I use === \definenote[thanks][conversion=set 2] \definenote[email] [conversion=set 2, textstyle=type] === The footnotes are shown with two areas, one for the \thanks and another for the \email, and they all started with * symbol, I mean there're two footnotes noted by star-symbol. I know I can just use \setupfootnotes[conversion=set 2] and do all my job by only using \footnote macro, but it's just of curiosity, can I use those meaningful macros to do continuously numbered footnotes and displayed only one area at the bottom of the page. Hi Chen, I took a quick look at the source and it seems this is not possible, but you define email as macro and call thank in the expansion text. \def\email#1{\thanks{\type{#1}}} or better \def\email#1{\thanks{\hyphenatedurl{#1}}} % breaks at the line end 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing meaningful footnotes
On Dec 19, 2007 7:54 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/12/18, Zhichu Chen [EMAIL PROTECTED]: Thanks Wolfgang, I looked at the source a little bit but all macros are defined with insertion and I don't know how to make them share a same counter. Maybe we need a new \definerelatednote macro. Anyway, your suggestion makes sense. You could try to look into the definition and description macros, Aditya provided souch a feature for enumerations to use the same number for different environments, the float mechanism has something similliar to use one number for different floats. You try to start with these moduls and adapt it to the note machanism. Yes, I would love to do that. But I have some politics things to read. I have to remember them in one month. So please forgive my laziness. After then, I will have time to test luatex on Chinese and some other interesting things like the Weiqi module or the footnote we are talking about. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing meaningful footnotes
On Dec 19, 2007 10:06 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: You try to start with these moduls and adapt it to the note machanism. Yes, I would love to do that. But I have some politics things to read. I have to remember them in one month. So please forgive my laziness. After then, I will have time to test luatex on Chinese and some other interesting things like the Weiqi module or the footnote we are talking about. I think you're also interested in the following link, there is module for LaTeX and plain TeX to write gezhu (intertextpostil) with XeTeX. http://code.google.com/p/gezhu/ I knew it. It's an excellent job, actually it uses hbox rather than vbox. And it end a paragraph to get the horizontal position with \lastbox before the intertextpostil and then it can test whether or not the postil could fit the rest of the line. Anyway, in the ancient Chinese people's defense, one column is just one page. They write things on a piece of long narrow bamboo from top to bottom and weave them from right to left. So I still think I should use a \box255 to store one column and change the \output routine to weave them on a page. But it's a little slow when using page arrangement so I guess I should design a new algorithm myself to make it useful. And the intertextpostil would use multicolumn with ConTeXt easily with no hacks. http://code.google.com/p/gezhu/ I have myself also no time to write any code for the second version of the weiqi module. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A ruby script to create the font for Chinese fonts
Hi, Although Hans has made the perfect ruby script ttf2uni.rb that meets most of our needs, I just found that sometimes embedding ttf files is very very slow, so I made some tiny modifications on it. It will convert an oft file to a ttf file if no ttf files are found in the names of the arguments, then use ttf2pt1 to span it into multiple type1 binaries with fontforge. Actually the only thing we need is the uni-??.enc, .tfm, .pfb, .map and .afm, I don't know what is the .enc files can do but I still kept them in a folder. Anyway, this script only works on Linux, because I'm bad at ruby and have to use some shell command to do what I need, like moving files into a sub-directory, I think maybe use File.foreach can do it but I never succeed. -- 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 | www.sinap.ac.cn uniCJKt1.rb Description: application/ruby ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A ruby script to create the font for Chinese fonts
Oops, seems that I've accidentally sent an old one. On Dec 21, 2007 8:45 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, Although Hans has made the perfect ruby script ttf2uni.rb that meets most of our needs, I just found that sometimes embedding ttf files is very very slow, so I made some tiny modifications on it. It will convert an oft file to a ttf file if no ttf files are found in the names of the arguments, then use ttf2pt1 to span it into multiple type1 binaries with fontforge. Actually the only thing we need is the uni-??.enc, .tfm, .pfb, .map and .afm, I don't know what is the .enc files can do but I still kept them in a folder. Anyway, this script only works on Linux, because I'm bad at ruby and have to use some shell command to do what I need, like moving files into a sub-directory, I think maybe use File.foreach can do it but I never succeed. -- 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 | www.sinap.ac.cn -- 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 | www.sinap.ac.cn uniCJKt1.rb Description: application/ruby ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Weird behavior about metafun
Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual. And I wanna draw a line from the text I wanna comment on to the marginal notes which my comments lay on. To highlight them, I drew an underline below the contexts which is to be commented and put a square around the comments. Everything is under control except I put \fpos and \tpos around the comments, the framed box is not exactly what I want. It seems that metafun still thought it's in the main text so it drew the bounding around the body. I found the mpos:par was defined in core-pgr.tex and it used show_par or draw_par which are defined in mp-core.mp. I don't think it's a good way to define another MPpositiongraphic called like mpos:marginpar to match my case. Do you think it's possible to change some of the core codes to make metafun recognize where she is. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Weird behavior about metafun
Oh, by the way, if I put \fpos at the beginning of a paragraph, it adds an extra blank line. I have to force it to the horizontal mode like: \leavevmode\fpos{A-1} . . . \tpos{A-1} So is it safe to change the definition of \fpos to add \leavevmode at the beginning of the macro? On Jan 7, 2008 10:45 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual. And I wanna draw a line from the text I wanna comment on to the marginal notes which my comments lay on. To highlight them, I drew an underline below the contexts which is to be commented and put a square around the comments. Everything is under control except I put \fpos and \tpos around the comments, the framed box is not exactly what I want. It seems that metafun still thought it's in the main text so it drew the bounding around the body. I found the mpos:par was defined in core-pgr.tex and it used show_par or draw_par which are defined in mp-core.mp. I don't think it's a good way to define another MPpositiongraphic called like mpos:marginpar to match my case. Do you think it's possible to change some of the core codes to make metafun recognize where she is. -- 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 | www.sinap.ac.cn -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Weird behavior about metafun
On Jan 7, 2008 9:41 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Oh, by the way, if I put \fpos at the beginning of a paragraph, it adds an extra blank line. I have to force it to the horizontal mode like: \leavevmode\fpos{A-1} . . . \tpos{A-1} \dontleavehmode \fpos ... So is it safe to change the definition of \fpos to add \leavevmode at the beginning of the macro? no, that could happen in the macro that uses \fpos, not in \fpos itself Cool, then I'll define my own macro to do that. Thanks. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Weird behavior about metafun
On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Mon, 7 Jan 2008, Zhichu Chen wrote: Hi Hans and Wolfgang, I'm just trying to make some illustrations about the Chinese typesetting features. So I choose the way which is described in Chapter 5 of the metafun manual. And I wanna draw a line from the text I wanna comment on to the marginal notes which my comments lay on. Something like this: http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf Yes! That's what I'm trying to do. I think there's a chance to implement that with few modifications on the existing core-pgr.tex and mp-core.mp. http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf It will be nice to have a ConTeXt module that can do this. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Weird behavior about metafun
Hi, On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Something like this: http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf It will be nice to have a ConTeXt module that can do this. I've made a test file which is somewhat like what it shows, but I still have many problems so it's far from perfect. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn FancyMarginTest.tex Description: TeX document ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Weird behavior about metafun
Pretty cool! I knew ConTeXt can do it and thank you Hans for teaching me so much. Hi Arthur, I'm suffering a network problem so sometimes mails may no be delivered correctly. But ignore my test file and get Hans' one. On Jan 9, 2008 1:04 AM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: Something like this: http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf It will be nice to have a ConTeXt module that can do this. I've made a test file which is somewhat like what it shows, but I still have many problems so it's far from perfect. stacking is already present \setupcolors [state=start] \definecolor [marginback] [darkcyan] \startMPpositiongraphic{mypos:underline} initialize_box(\MPpos{\MPvar{self}}) ; path p ; p := (llxy--lrxy) shifted (0,dxy) ; pickup pencircle scaled 1pt ; draw p withcolor .75red ; anchor_box(\MPanchor{\MPvar{self}}) ; \stopMPpositiongraphic \startMPpositiongraphic{mypos:ulcorner} initialize_box(\MPpos{\MPvar{self}}) ; path p ; p := llxy--ulxy--urxy ; pickup pencircle scaled 1pt ; draw p withcolor .75red ; anchor_box(\MPanchor{\MPvar{self}}) ; \stopMPpositiongraphic \startMPpositiongraphic{mypos:torightmargin} path pa, pb, pab ; numeric na, nb ; pair bxya, lxyb ; initialize_box(\MPpos{\MPvar{from}}) ; na := nxy ; pa := (llxy--lrxy) shifted (0,dxy) ; bxya := (center pa) - (0 , \the\baselineskip/4) ; initialize_box(\MPpos{\MPvar{to}}) ; nb := nxy ; lxyb := .5[llxy , ulxy] - (\the\rightmargindistance/2 , 0) ; pb := llxy--ulxy ; if na=nb : pab := center pa -- bxya -- (xpart lxyb , ypart bxya) -- lxyb -- center pb; pickup pencircle scaled 1pt ; draw pab withcolor transparent(1,.5,.625yellow) ; anchor_box(\MPanchor{\MPvar{from}}) ; fi ; \stopMPpositiongraphic \defineoverlay [margingraphics] [\positionoverlay{margingraphics}] \setupbackgrounds [page] [background=margingraphics] \starttext \setupinmargin[stack=yes] \defineframedtext [marginframe] [background=color, % backgroundcolor=marginback, offset=.25ex, frame=off, width=\the\rightmarginwidth, foregroundstyle=\bfx] \def\marginstuff#1#2% {\doglobal\increment\currentmarginstuff \startpositionoverlay{margingraphics}% % can be drawn in one graphic which is more efficient \setMPpositiongraphic{mstuff:t\currentmarginstuff}{mypos:underline}% \setMPpositiongraphic{mstuff:m\currentmarginstuff}{mypos:ulcorner}% \expanded{\setMPpositiongraphic{mstuff:t\currentmarginstuff}{mypos:torightmargin}{to=mstuff:m\currentmarginstuff}}% \stoppositionoverlay \hpos{mstuff:t\currentmarginstuff}{#1}\inright{\hpos{mstuff:m\currentmarginstuff}{\marginframe{#2 First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. This overlay can be attached to some overlay layer, like, in our case, the page. We define four small circles. These are drawn as soon as the page overlay is typeset. Because they are located in the background, they don't cover the text, while the lines do. The previous paragraph was typeset by saying: First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. This overlay can be attached to some overlay layer, like, in our case, the page. We define four small circles. These are drawn as soon as the page overlay is typeset. Because they are located in the background, they don't cover the text, while the lines do. The previous paragraph was typeset by saying: First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. This overlay can be attached to some overlay layer, like, in our case, the page. We define four small circles. These are drawn as soon as the page overlay is typeset. Because they are located in the background, they don't cover the text, while the lines do. The previous paragraph was typeset by saying: First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. First we have defined an \marginstuff {overlay} {Just a test in a margin that could be multiple lines.}. This overlay can be attached to some overlay layer, like, in our case, the page. We define four small circles. These are drawn as soon as the page overlay is typeset. Because they are located in the background, they don't cover the text, while the lines do. The previous paragraph was typeset by saying: \stoptext - Hans Hagen | PRAGMA ADE
Re: [NTG-context] mktexlsr in minimals
Hi Jean, That happened to me once too. I change the cases of the file names and module names, say from like MyModule to mymodule, and somehow pdftex could find it. I don't know whether it could be any useful to change your module's name to lower case. On Jan 23, 2008 1:33 AM, Jean Magnan de Bornier [EMAIL PROTECTED] wrote: Hi all, Having installed the minimal distro from http://minimals.contextgarden.net/ on my linux box (in my home directory) I added some own modules in /home/jean/lua/context/tex/texmf-context/tex/context/extra an tried various texhash and mktexlsr: mktexlsr lua/context/tex/texmf-context/tex/context/ texhash lua/context/tex/texmf-context/tex/context/ But these are still not found and I had to specify the complete path of the modules! This seems specific to the minimals -- Jean ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] JavaScript conflicts
Hi, I was trying to make a report for my job last year. I did some javascript things to put a clock at each page of my presentation to make sure I'll finish it in time. But I found some tricky conflicting between my script and the one in java-stp.tex OK, here is my test file (it's a little too long): \usemodule [pre-60] \setuppapersize[S6][S6] \setuppagenumbering[state=start,location=] \setuptolerance[verytolerant,stretch] \setupinteractionscreen [option=max] \setupinteraction[state=start,click=no,menu=on] \startJSpreamble functions used now font.Digital = Courier-Bold ; function start_clock() { this.getField(time.clock).value = util.printd(HH:MM:ss, new Date()); this.getField(time.clock).readonly = true ; this.getField(time.clock).textColor = color.red ; this.getField(time.clock).textSize = 13 ; this.getField(time.clock).textFont = font.Digital ; this.dirty = false } var timeout = app.setInterval(start_clock(),1000); \stopJSpreamble % Field of clock \useJSscripts[fld] \definefield [time.clock] [line] [TimeLogo] \setupfield [TimeLogo] [horizontal,frame] [width=fit,height=25pt,background=, backgroundcolor=,frame=off] [width=5.2cm,frame=off] [width=5.2cm,frame=off,style=type] \dorecurse{\totalnumberofpages}{\copyfield[time.clock ][clock::\recurselevel]} \def\clock{\field[clock::\pagenumber]} \setupfootertexts[{\color[white]\tfxx \midaligned{\rlap{\currentdate} \hfill TITLE\hfill \llap{AUTHOR}}}] \setuplayout[bottomspace=.8cm, bottom=12pt] \startinteractionmenu[bottom] {\interactionbar[alternative=f,width=\makeupwidth,height=1ex]} \stopinteractionmenu \setupfooter[state=start] \starttext \field[time.clock] \field[clock::\pagenumber] page number is \pagenumber. % \StartSteps % \starttabulate % \NC test \FlushStep \NC test \FlushStep \NC \NR % \NC test \FlushStep \NC test \FlushStep \NC \NR % \NC test \FlushStep \NC test \FlushStep \NC \NR % \stoptabulate % \StopSteps \page \field[clock::\pagenumber] page number is \pagenumber. \page \field[clock::\pagenumber] page number is \pagenumber. \page \field[clock::\pagenumber] page number is \pagenumber. \stoptext This is just a test file, I will put those fields into \setupfootertexts or somewhere else to make every page a clock. If I uncomment the \StartSteps . . . \StopSteps part, some PDF layer kind of error will show and nothing is generated. Do I have to remove the clock to make the fancy stepwise thing or keep the clock but lost the stepwise function of ConTeXt? -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Converting counters?
Hi, I'm trying to convert the counter to Chinese character one on one, like 0-a, 1-b, etc., so 10 will be ba (I use a, b, c, . . . to denote the Chinese glyphs which makes more sense for you). I used some codes like: == \def\ChineseZero {o} \def\ChineseOne {a} \def\ChineseTwo {b} \def\ChineseThree{c} \def\ChineseFour {d} \def\ChineseFive {e} \def\ChineseSix {f} \def\ChineseSeven{g} \def\ChineseEight{h} \def\ChineseNine {i} \unexpanded\def\zhnumber {\bgroup \catcode`\0=\active \uccode`\~=`\0 \uppercase{\let~\ChineseZero}% \catcode`\1=\active \uccode`\~=`\1 \uppercase{\let~\ChineseOne}% \catcode`\2=\active \uccode`\~=`\2 \uppercase{\let~\ChineseTwo}% \catcode`\3=\active \uccode`\~=`\3 \uppercase{\let~\ChineseThree}% \catcode`\4=\active \uccode`\~=`\4 \uppercase{\let~\ChineseFour}% \catcode`\5=\active \uccode`\~=`\5 \uppercase{\let~\ChineseFive}% \catcode`\6=\active \uccode`\~=`\6 \uppercase{\let~\ChineseSix}% \catcode`\7=\active \uccode`\~=`\7 \uppercase{\let~\ChineseSeven}% \catcode`\8=\active \uccode`\~=`\8 \uppercase{\let~\ChineseEight}% \catcode`\9=\active \uccode`\~=`\9 \uppercase{\let~\ChineseNine}% \loggingall \dozhnumber } \def\stripunwantedspaces{} \def\dozhnumber#1% {\expandafter\scantokens\expandafter {\detokenize{#1\stripunwantedspaces}}\egroup} == It works fine with \zhnumber{15}, it gives ae which is exactly what I want. But it won't work in the following situation: ++ \newcount\tcpageno \advance\tcpageno15 \zhnumber{\number\tcpageno} ++ I know it's not weird, I just don't know how to expand the counter to number. Thank you in advance. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Converting counters?
Yes, only I don't need that complex. I mean \chinesenumber{123} will give one hundred and twenty-three but all I want is one two three. Besides, I don't like to copy such long codes since I really don't want to load font-chi.tex which gives weird spacing problems while typesetting Chinese along with English. Anyway, I'd love to learn something rather than to use something. Thanks. On Tue, Apr 1, 2008 at 3:41 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Hi Chen, You could use \chinesenumber from font-chi.tex Wolfgang On Tue, Apr 1, 2008 at 9:18 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, I'm trying to convert the counter to Chinese character one on one, like 0-a, 1-b, etc., so 10 will be ba (I use a, b, c, . . . to denote the Chinese glyphs which makes more sense for you). I used some codes like: == \def\ChineseZero {o} \def\ChineseOne {a} \def\ChineseTwo {b} \def\ChineseThree{c} \def\ChineseFour {d} \def\ChineseFive {e} \def\ChineseSix {f} \def\ChineseSeven{g} \def\ChineseEight{h} \def\ChineseNine {i} \unexpanded\def\zhnumber {\bgroup \catcode`\0=\active \uccode`\~=`\0 \uppercase{\let~\ChineseZero}% \catcode`\1=\active \uccode`\~=`\1 \uppercase{\let~\ChineseOne}% \catcode`\2=\active \uccode`\~=`\2 \uppercase{\let~\ChineseTwo}% \catcode`\3=\active \uccode`\~=`\3 \uppercase{\let~\ChineseThree}% \catcode`\4=\active \uccode`\~=`\4 \uppercase{\let~\ChineseFour}% \catcode`\5=\active \uccode`\~=`\5 \uppercase{\let~\ChineseFive}% \catcode`\6=\active \uccode`\~=`\6 \uppercase{\let~\ChineseSix}% \catcode`\7=\active \uccode`\~=`\7 \uppercase{\let~\ChineseSeven}% \catcode`\8=\active \uccode`\~=`\8 \uppercase{\let~\ChineseEight}% \catcode`\9=\active \uccode`\~=`\9 \uppercase{\let~\ChineseNine}% \loggingall \dozhnumber } \def\stripunwantedspaces{} \def\dozhnumber#1% {\expandafter\scantokens\expandafter {\detokenize{#1\stripunwantedspaces}}\egroup} == It works fine with \zhnumber{15}, it gives ae which is exactly what I want. But it won't work in the following situation: ++ \newcount\tcpageno \advance\tcpageno15 \zhnumber{\number\tcpageno} ++ I know it's not weird, I just don't know how to expand the counter to number. Thank you in advance. -- Best Regards Chen ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Converting counters?
Thanks Wolfgang, it's perfect. On Tue, Apr 1, 2008 at 5:04 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 10:49 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 9:56 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Yes, only I don't need that complex. I mean \chinesenumber{123} will give one hundred and twenty-three but all I want is one two three. Besides, I don't like to copy such long codes since I really don't want to load font-chi.tex which gives weird spacing problems while typesetting Chinese along with English. Anyway, I'd love to learn something rather than to use something. Thanks. A slightly modified version. You could now also use counter values. \def\dododozhnumber#1% {\ifcase#1 a\or b\or c\or d\or e\or f\or g\or i\or h\or i\fi} \def\zhnumber#1% {\expandafter\dozhnumber#1\endzhnumber} \def\endzhnumber{\endzhnumber} \def\dozhnumber {\futurelet\next\dodozhnumber} \def\dodozhnumber {\ifx\next\endzhnumber \let\next\gobbleoneargument \else \def\next##1{\dododozhnumber{##1}\dozhnumber}% \fi\next} \starttext \zhnumber{01234} \zhnumber{\number\pageno} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt Manual Source
This? http://context.aanhet.net/svn/ On Thu, Apr 17, 2008 at 9:25 PM, Browder, Tom [EMAIL PROTECTED] wrote: Are the sources for the ConTeXt manuals publicly available? If not, are you willing to show how the beautiful contents and section headings are defined for ConTeXt: the manual? Thanks. -Tom ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to define my own list entry?
Hi everybody, I'm just writing a module to typeset the traditional Chinese books. Here is the thing: I use page-arrangement to put like 15 pages on one page or actually 30 pages on one page in a double-sided mode (I mean page 1 and page 2---which contain 15 mini-pages each---are on the same page), and yes I want to make a table of contents and some PDF bookmarks. But having searched the list, I find that I should use texexec --arrange file.tex to compile the file and get the real page number. That's not what I want. Because if I get one chapter on the second page, the page number is 31 rather than 2 which I really want it to be. And so do the bookmarks behave. If I click the bookmark of the first chapter, it will go to the 31st page of the PDF file if it has page 31. I don't really like the mess. I know it's normal, but I would like to know if there's any way to write the page counters I defined to the .tui or .tuo file so that I can totally handle them and display them on the contents and make the bookmarks not crazy any more. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to define my own list entry?
Thanks Wolfgang, After looking through the file you mentioned above, I finally find that \writeutilitycommand and \doutilities are what I want now. Maybe I should look into core-uti.tex to get more. On Wed, May 7, 2008 at 2:15 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Wed, May 7, 2008 at 4:55 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi everybody, I'm just writing a module to typeset the traditional Chinese books. Here is the thing: I use page-arrangement to put like 15 pages on one page or actually 30 pages on one page in a double-sided mode (I mean page 1 and page 2---which contain 15 mini-pages each---are on the same page), and yes I want to make a table of contents and some PDF bookmarks. But having searched the list, I find that I should use texexec --arrange file.tex to compile the file and get the real page number. That's not what I want. Because if I get one chapter on the second page, the page number is 31 rather than 2 which I really want it to be. And so do the bookmarks behave. If I click the bookmark of the first chapter, it will go to the 31st page of the PDF file if it has page 31. I don't really like the mess. I know it's normal, but I would like to know if there's any way to write the page counters I defined to the .tui or .tuo file so that I can totally handle them and display them on the contents and make the bookmarks not crazy any more. core-lst: - \definelist - \writetolist - \writebetweenlist - \placelist 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Has anybody used asymptote without LaTeX?
Hi, It is said that Asymptote has supported PRC format 3D file: http://asymptote.sourceforge.net/gallery/3D%20graphs/ I really wanna give it a try, but once I was building from the svn source, I was told that I don't have LaTeX in my $PATH. I haven't really been using LaTeX for a long time, and I prefer I don't need to install a bunch of LaTeX programs and packages just for a drawing program which, IMHO, only use LaTeX to make nice labels. Is there any workarounds? And how to embed .prc files into the .pdf document? -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Has anybody used asymptote without LaTeX?
Hi, Alan Thank you for your attention, but I don't need the psedu-3D effect. Asymptote could create real 3D file which pdf has supported since, maybe, version 1.5. On Sun, Sep 28, 2008 at 10:19 PM, Alan BRASLAU [EMAIL PROTECTED] wrote: On 2008-09-28 04:35 Zhichu Chen wrote: It is said that Asymptote has supported PRC format 3D file: http://asymptote.sourceforge.net/gallery/3D%20graphs/ I really wanna give it a try, but once I was building from the svn source, I was told that I don't have LaTeX in my $PATH. I haven't really been using LaTeX for a long time, and I prefer I don't need to install a bunch of LaTeX programs and packages just for a drawing program which, IMHO, only use LaTeX to make nice labels. Is there any workarounds? And how to embed .prc files into the .pdf document? -- Best Regards Chen This doesn't really answer your question but may be of some related interest to the mailing list. I am quite fond of pfg/tikz as a drawing package that works rather well with plain tex, latex and context. Asymptote is a similar tool, but it seems to be less portable. However, it appears on the other hand to be much more powerful for 3D. Neverless, I am sharing with this context list an impressive tikz example -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:[EMAIL PROTECTED] http://www-dna2006.cea.fr/ .''`. : :' : `. `'` `- that I have adapted to context. (I have put the author on copy.) Basically, the only changes to the latex source are \usepackage{preview} - \startTEXpage \stopTEXpage \begin{tikzpicture} - \starttikzpicture and a few other minor syntax adaptations...) Alan % What is it % == % % Examples inspired by the thread at comp.text.tex about how to convert some hand % drawn pictures into programmatic 3D sketches: % http://groups.google.com/group/comp.text.tex/browse_thread/thread/a03baf5d6fa64865/f7e7b903f1d87a6a % The sketches present stereographic and cylindrical map projections and they % pose some interesting challenges for doing them with a 2D drawing package PGF/TikZ. % % The main idea is to draw in selected 3D planes and then project onto the canvas % coordinate system with an appriopriate transformation. Some highlights: % [*] usage of pgf math engine for calculation of projection transformations and % transitions points from visible (solid lines) to invisible (dashed lines) on % meridians and latitude circles % [*] definition of 3D plane transformation with expanded styles so that they are robust % against redefinition of macros used in their construction % [*] usage of named coordinates (nodes) for definition of characteristic points in % local coordinate systems so that they are accessible outside of their plane of % definition % [*] calculation of intersections points with TikZ intersection coordinate system % [*] usage of 'to' path operation instead of 'arc' for marking angles to allow for % easy positioning of text labels on the curve % [*] 3D lighting effects with shading % % % Who's done it % = % % Tomasz M. Trzeciak % % % Distribution and use % % % Use as you see fit. Consider giving a proper attribution to the author. % % % Change log % == % % 2008/08/07 posted to latex-community.org % 2008/08/08 fixed some typos, added note about 'to' path operation to the description, % fixed positioning issue of nodes and 'to' path operation as suggested % by Kjell, removed some dead code from KART picture % 2008/09/28 adapted as an example to ConTeXt \usemodule[tikz] \usetikzlibrary[calc,fadings,decorations.pathreplacing] %% helper macros \def\pgfmathsinandcos#1#2#3{% \pgfmathsetmacro#1{sin(#3)}% \pgfmathsetmacro#2{cos(#3)}% } \def\LongitudePlane#1#2#3{% \pgfmathsinandcos\sinEl\cosEl{#2} % elevation \pgfmathsinandcos\sint\cost{#3} % azimuth \tikzset{#1/.estyle={cm={\cost,\sint*\sinEl,0,\cosEl,(0,0)}}} } \def\LatitudePlane#1#2#3{% \pgfmathsinandcos\sinEl\cosEl{#2} % elevation \pgfmathsinandcos\sint\cost{#3} % latitude \pgfmathsetmacro\yshift{\cosEl*\sint} \tikzset{#1/.estyle={cm={\cost,0,0,\cost*\sinEl,(0,\yshift)}}} % } \def\DrawLongitudeCircle#1#2{ \LongitudePlane{current plane}{\angEl}{#2} \tikzset{current plane/.prefix style={scale=#1}} % angle of visibility \pgfmathsetmacro\angVis{atan(sin(#2)*cos(\angEl)/sin(\angEl))} % \draw[current plane] (\angVis:1) arc (\angVis:\angVis+180:1); \draw[current plane,dashed] (\angVis-180:1) arc (\angVis-180:\angVis:1); } \def\DrawLatitudeCircle#1#2{ \LatitudePlane{current plane}{\angEl}{#2} \tikzset{current plane/.prefix style={scale=#1}} \pgfmathsetmacro\sinVis{sin(#2)/cos(#2)*sin(\angEl)/cos(\angEl)} % angle of visibility \pgfmathsetmacro\angVis{asin(min(1,max(\sinVis,-1
Re: [NTG-context] Has anybody used asymptote without LaTeX?
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 u3d and prc are similar, maybe you can try the same way. But I have no idea how to create a asy-tex interface like tex-mp [Moreover, I prefer to extend mp to 3-dimension, I look at the c code, it is not impossible:)]. Yes, I know that Renaud Aubin has u3d usable by ConTeXt. That's very impressive. I will check that if I can get Asymptote compiled and work with ConTeXt, although I don't think that necessary because labeled figures often appears in 2D version. If metapost could provide 3D figures, that will be great. But I don't think Hans and Taco like that idea because prc isn't a standard yet maybe. Yue Wang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Is there a replacement for \tracechinesetrue in mkiv?
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 ___ 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] Is there a replacement for \tracechinesetrue in mkiv?
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 different 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 - -- Best Regards Chen ___ 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] Is there a replacement for \tracechinesetrue in mkiv?
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==node.id ('glyph') My question is: is there a better way? Because these codes are so dirty. I prefer mplib but I have no clue how to do that. = local ht,wd,dp = n.height,n.width,n.depth ; local rwd = .5*65536 local k1 = node.new('kern') k1.kern = -wd-.5*rwd local r1 = node.new(rule) r1.width, r1.height, r1.depth = rwd, ht, dp local k2 = node.new('kern') k2.kern = -r1.width local r2 = node.new(rule) r2.width, r2.height, r2.depth = wd+rwd, ht+.5*rwd, -ht+.5*rwd local k3 = node.new('kern') k3.kern = -r2.width local r3 = node.new(rule) r3.width, r3.height, r3.depth = wd+rwd, -dp+.5*rwd, dp+.5*rwd local k4 = node.new('kern') k4.kern = -.5*rwd local r4 = node.new(rule) r4.width, r4.height, r4.depth = rwd, ht, dp local k5 = node.new('kern') k5.kern = -.5*rwd k1.next = r1 r1.prev = k1 r1.next = k2 k2.prev = r1 k2.next = r2 r2.prev = k2 r2.next = k3 k3.prev = r2 k3.next = r3 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) = 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, 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. mkiv does things completely different 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 - -- Best Regards Chen ___ 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] Is there a replacement for \tracechinesetrue in mkiv?
Well, that's just perfect, only it's not what I'm looking for :( What I need is a fully customable way to debug some of my inputs rather than everything as a font feature. I found a cleaner way now: to use the whatsit node, I hope it's useful for someone so I paste the function here: local function trace_boundingbox (head) for n in node.traverse (head) do if n.id == node.id ('glyph') then local ht,wd,dp = n.height,n.width,n.depth local htsp,wdsp,dpsp = ht/65536,wd/65536,dp/65536 local w = node.new(whatsit,pdf_literal) w.data = q 1 0 1 RG 1 0 1 rg 0.1 w 0 .. -dpsp .. m 0 .. htsp .. l .. -wdsp .. .. htsp .. l .. -wdsp .. .. -dpsp .. 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 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==node.id ('glyph') My question is: is there a better way? Because these codes are so dirty. I prefer mplib but I have no clue how to do that. Using mp would be pretty complex too and all solutions are rather inefficient (bloat the pdf) .. attached another solution (I'll add it to the next beta). 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 - -- Best Regards Chen ___ 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 display JavaScript's values in ConTeXt
Hello everybody, I want to add a clock which shows the system time to a pdf file. And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find some approaches but failed shamely. I am indeed new at ConTeXt and JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2 years, so I'm confused with the conventions between ConTeXt and LaTeX. My code is here: -- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7})] will get \field[Stack.1] \stoptext I only copied these codes from art-calc.pdf so there must be some other critical concepts that I haven't realized. Please point them to me. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to display JavaScript's values in ConTeXt
Thank you very much Peter. I've inserted these code and when I open my pdf file in Acrobat Reader, it crashed :(. But this is not a big deal, I modified it and it's working, but it only tells me that: do_digit(7) at page 0 and the field never changes. I guess I have to specify some link between the JavaScript variant and the ConTeXt. Can you give me just one simplest example that shows JavaScript code var tempstring = Yes; in pdf file? Or you could think I'm very boring so can you just suggest some materials that I can find these techniques? From: Peter Rolf [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Tue, 05 Sep 2006 11:42:44 +0200 Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt Zhichu Chen wrote: Hello everybody, I want to add a clock which shows the system time to a pdf file. And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find some approaches but failed shamely. I am indeed new at ConTeXt and JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2 years, so I'm confused with the conventions between ConTeXt and LaTeX. My code is here: I don't have the time right now for more than this short tip. If you work with JavaScript you should open the JaveScript Debugger (CTRL-J in Acrobat; in the Adobe Reader hit CTRL-K and check Show console on errors and messages in the JavaScript categorie) to see the warnings and error messages. You also should insert some log messages in your code. For example console.println(do_digit(+d+) at page +[this.pageNum]); at the start of your function do_digit. This helps a lot to see what is going on. Greetings, Peter -- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7})] will get \field[Stack.1] \stoptext I only copied these codes from art-calc.pdf so there must be some other critical concepts that I haven't realized. Please point them to me. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to display JavaScript's values in ConTeXt
Thank you very much Peter. I've inserted these code and when I open my pdf file in Acrobat Reader, it crashed :(. But this is not a big deal, I modified it and it's working, but it only tells me that: do_digit(7) at page 0 and the field never changes. I guess I have to specify some link between the JavaScript variant and the ConTeXt. Can you give me just one simplest example that shows JavaScript code var tempstring = Yes; in pdf file? Or you could think I'm very boring so can you just suggest some materials that I can find these techniques? From: Peter Rolf [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Tue, 05 Sep 2006 11:42:44 +0200 Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt Zhichu Chen wrote: Hello everybody, I want to add a clock which shows the system time to a pdf file. And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find some approaches but failed shamely. I am indeed new at ConTeXt and JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2 years, so I'm confused with the conventions between ConTeXt and LaTeX. My code is here: I don't have the time right now for more than this short tip. If you work with JavaScript you should open the JaveScript Debugger (CTRL-J in Acrobat; in the Adobe Reader hit CTRL-K and check Show console on errors and messages in the JavaScript categorie) to see the warnings and error messages. You also should insert some log messages in your code. For example console.println(do_digit(+d+) at page +[this.pageNum]); at the start of your function do_digit. This helps a lot to see what is going on. Greetings, Peter -- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7})] will get \field[Stack.1] \stoptext I only copied these codes from art-calc.pdf so there must be some other critical concepts that I haven't realized. Please point them to me. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to display JavaScript's values in ConTeXt
It's so kind of you. Your example really helps me 'cause I can learn javascript and ConTeXt by books but there are few materials about how to associate them. Still, I'm sorry I have to open a new thread. I don't know how to reply under you, it's sad. -- Forwarded message -- From: Peter Rolf [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 06 Sep 2006 12:06:02 +0200 Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt Zhichu Chen wrote: . . . First thing to say: I'm also a javascript beginner (used it only once!), so don't expect too much from me :) In the following code the missing vars and function are added (javascript debugger), but still the initialisation ('undefined' text) and the reset for the result field are missing (and who knows what else). But it's a 'working' starting point. \startJSpreamble functions used now function do_digit(d) {console.println(do_digit(+d+) at page +[this.pageNum]); Stack[Level] += String(d); do_refresh(Level) } var Stack = new Array(); var Level = 1 ; function do_refresh (i) { vv = this.getField(Stack..concat(i)) ; if (vv) { vv.value = Stack[i] ; vv.readonly = (i!=Level) ; this.dirty = false } } \stopJSpreamble . . . I have not used text fields before (so no example code) and this is all I have about JavaScript: http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/ from http://partners.adobe.com/public/developer/pdf/topic_js.html: http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJS.pdf http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSGuide.pdf http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSRefErrata.pdf BUT MOST IMPORTANT: http://partners.adobe.com/public/developer/en/pdf/debugger.js Description: Use this file to enable the JavaScript Debugger in Adobe Reader, as described in the Acrobat JavaScript Scripting Guide. Hope that helps, Peter . . . ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Install New Chinese Fonts on ConTeXt using UTF8
Hello everybody, Time to disturb you again. :) I've search the maillist and the internet to find a solution, but all are about htsong.ttf, htfs.ttf, etc. In fact, I don't think these fonts are nice. I download some other beautiful free fonts and use Hans' ``ttf2uni.rb'' to create the tfm files, enc files, map file and afm file, then I modified the ``font-chi.tex'' file, replacing all UTF relating fontsynonyms and map files to what I've generated. Doesn't work any way. Whenever ConTeXt met Chinese characters, it gave an error message like: - ! Font \unicodefont=cwmu0-49 at 10.0pt not loadable: Metric (TFM) file not foun d. recently read \bodyfontsize \unicodeglyph ... \currentfontscale \bodyfontsize \unicodestrut \unicodefont... \insertchineseglyph ... \else \insertunicodeglyph \fi \horizontalchineseunicodeglyph ...ertchineseglyph \ifcase \chineseAstatus \r... \handlechineseunicodeglyph ...chineseunicodeglyph \fi \fi \uchar ...+\unicodetwo \relax \handleunicodeglyph \endgroup ... l.11 ä½ å ¥½ï¼ --- but in font-chi.tex, I write \definefontsynonym [ChineseRegular][cwmu][encoding=cjk-uni] why context looked for cwmu0-49 rather than cwmu49? I have configured LaTeX with CJK package to use this font, can ConTeXt use LaTeX's configuration? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Texts after typing environment
Hello everybody, If I type: --- \starttyping some verbatim texts \stoptyping does ConTeXt treat it as a complete paragraph? In LaTeX, when I type: -- \begin{verbatim} some texts here \end{verbatim} some other texts \begin{verbatim} some texts here \end{verbatim} other materials --- The output will be --- some texts here some other texts some texts here other meterials - This line is indented !! What should I do in ConTeXt? I really want to control this. but whether I leave a blank line after \stoptyping or not, nothing changed. Have I expressed my problem clearly? yours, chen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Texts after typing environment
I've already solved it now. Just \setuptyping[after=\noindent] is perfectly for me. Thank you anyway. On 9/29/06, Mojca Miklavec [EMAIL PROTECTED] wrote: On 9/27/06, Zhichu Chen wrote: Hello everybody, If I type: --- \starttyping some verbatim texts \stoptyping does ConTeXt treat it as a complete paragraph? In LaTeX, when I type: -- \begin{verbatim} some texts here \end{verbatim} some other texts \begin{verbatim} some texts here \end{verbatim} other materials --- The output will be --- some texts here some other texts some texts here other meterials - This line is indented !! What should I do in ConTeXt? I really want to control this. but whether I leave a blank line after \stoptyping or not, nothing changed. In LaTeX paragraph indenting is turned on by default. In ConTeXt you have to turn it on first, for example with \setupindenting[first,big,yes] After that you probably have contrary problems: you have to turn indenting explicitely off if you don't want some other texts to be indented: \starttyping some texts here \stoptyping \noindent some other texts \starttyping some texts here \stoptyping other materials But this should be configurable somehow. (I bet it is.) I tried some of \setuptyping options, but none of those I tried was of any help. Perhaps some other users may help figuring out the proper option if available. As a workaround this might help temporary. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Can ConTeXt make dynamic barcoded forms?
Hi everyone, I've seen some marvelous samples on Adobe' official site about dynamic barcoded forms using XML: http://www.adobe.com/products/server/barcodedpaperforms/pdfs/sample_barcoded_demo.pdf can someone tell me that is it possible to build such pdfs using ConTeXt? Yours, Chen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
Thank you misters, Drawing static barcodes is very easy, but I really like the dynamic barcoded forms. I've downloaded some examples which is written in java, and it says that it uses XML. I've heard that ConTeXt can use XML but when I've finished reading the example.pdf (it is talking about XML in ConTeXt, right?), I totally have no idea about it. I love ConTeXt so much that I wish it can do everything. By the way, I have another question: how can we make reader-extension pdfs? I mean we can save, add anotations, etc., using Adobe Reader 7 or above. It is another cool function. On 10/11/06, Martin Schröder [EMAIL PROTECTED] wrote: 2006/10/10, Henning Hraban Ramm [EMAIL PROTECTED]: I can think of 3 possibilities for a static barcodes module: - draw the bars with MetaPost - use psTricks/pdfTricks - call GNU barcode externally - use barcode fonts (makes no sense...) That would be interesting for price tags, ISBN or the like. GNU barcode works reasonably well. You have to trim the produced ps a bit, but that's easy. Best Martin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Any idea about copy or clone fieldstack?
Hello everyone, I want to display dynamic system time on each page of my presentation. Displaying system time can be manipulated by _javascript_ but, a field can beshown only once. So I used clone field and it works very well for me. But when I want to change the font (xxx presents the variable that gets thefield): xxx.textFont = font.LucidaBright ; it can be compiled successfully, but when I open it with acrobat reader, there are many errors from _javascript_ console. So I think that JS don't know the font, and I don't know how to embed the font into pdf fileand make JS knows it. Then I turned to use field stacks. I use MetaPost to draw some needles and use JS to set_Field the fieldstack to the correct frame. But when I want to display the second clock, it seems that I should write another JS code to control the other fieldstack. So is there some command that clones the fieldstack just like \copyfield? Or how toassign the font of the field as I like? Thank you. -- Sincerely yours,ChenZhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Any idea about copy or clone fieldstack?
Thank you very much Peter On 10/19/06, Peter Rolf [EMAIL PROTECTED] wrote: Hi Chen,Have you tried the method described on page 402-403 of the Acrobat_javascript_ Scripting Reference ( AcroJS.pdf, 27.06.2005)? Search forUse of arbitrary fonts.If I understand it right, all you need is the *right name* of the font(as JS sees/names it).[ Acrobat is required, but the trial version should work. Maybe also Adobe Type Manager Light for the clean installation of a ps font underXP. ]To make sure that all clock relevant types are embeded, you can addsomething like\smashedhbox{\color[white]\YOURCLOCKFONT 0123456789:} to your document.This is all untested, so don't expect too much...But let me know if it works ;)As I know, there is no command that clones a complete fieldstack.This is all a bit confusing without any example code. HTH, Peter___ntg-context mailing listntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context I've only read the AcroJSGuide.pdf, and I thought it's all. Thank you to tell me that there is a more detailed reference. I'll try it now. -- Sincerely yours,ChenZhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Chemical structure formula flows out
Hello I've been studying PPCHTEX these days, it's very powerful, and I cannot control it well. I just wrote a chemical struture like: \startchemical [size=small,scale=small,width=fit,height=fit,frame=on] \chemical[SIX,SB13456,DB2,Z] [C,C,C,C,C,C] \chemical[PB:Z1,ONE,Z0,SB18,Z8,MOV1,ONE,DB1,SB7,Z07,MOV1,ONE,SB13,Z03,MOV1,ONE,SB1,DB7,Z017,PE] [C,H,C,H,C,H,C,CH_3,O] \chemical[PB:Z2,ONE,Z0,SB1,Z1,PE] [C,CH_3] \chemical[PB:Z3,ONE,Z0,SB3,Z3,PE] [C,H] \chemical[PB:Z4,ONE,Z0,SB45,Z45,PE] [C,H,H] \chemical[PB:Z5,ONE,Z0,SB56,Z56,PE] [C,CH_3,H] \chemical[PB:Z6,SIX,Z3,SB23,Z24,PE] [C,CH_3,CH_3]\stopchemical only the carbon-ring is in the frame, I think maybe PB:..,PEpair does not change the size of the picture. I know I can use like \startchemical [size=small,scale=small,width=9000,height=5000,left=3000] to specify the size, but I need to try several times to get a correct version. Is there any parameter that do this staff automatically? Thanks -- Sincerely yours,ChenZhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Chemical structure formula flows out
It sounds so cool! I love metapost. On 11/14/06, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hello I've been studying PPCHTEX these days, it's very powerful, and I cannot control it well. I just wrote a chemical struture like: \startchemical [size=small,scale=small,width=fit,height=fit,frame=on] \chemical[SIX,SB13456,DB2,Z] [C,C,C,C,C,C] \chemical[PB:Z1,ONE,Z0,SB18,Z8,MOV1,ONE,DB1,SB7,Z07,MOV1,ONE,SB13,Z03,MOV1,ONE,SB1,DB7,Z017,PE] [C,H,C,H,C,H,C,CH_3,O] \chemical[PB:Z2,ONE,Z0,SB1,Z1,PE] [C,CH_3] \chemical[PB:Z3,ONE,Z0,SB3,Z3,PE] [C,H] \chemical[PB:Z4,ONE,Z0,SB45,Z45,PE] [C,H,H] \chemical[PB:Z5,ONE,Z0,SB56,Z56,PE] [C,CH_3,H] \chemical[PB:Z6,SIX,Z3,SB23,Z24,PE] [C,CH_3,CH_3] \stopchemical only the carbon-ring is in the frame, I think maybe PB:..,PE pair does not change the size of the picture. I know I can use like \startchemical [size=small,scale=small,width=9000,height=5000,left=3000] to specify the size, but I need to try several times to get a correct version. Is there any parameter that do this staff automatically?not that i know; but i do know that i need to clean up this module some day (make it into a pure metapost thing) and then we can provide more control Hans- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com| www.pragma-pod.nl- ___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours,ChenZhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Still have no idea about how to specify fonts in JavaScript fields.
Hello everyone, Thanks for suggesting some great documents last time. But after looking up in AcroJS Guide, and PDF Reference , etc., I still don't know how can I use special fonts in a JavaScript field. My JS code is: -- function start_clock() { var thetime=new Date(); var nhours=thetime.getHours(); var nmins=thetime.getMinutes(); var nsecn=thetime.getSeconds(); if (nhours0) nhours=0+nhours; if (nsecn10) nsecn=0+nsecn; if (nmins10) nmins=0+nmins; font.Digital = font.CourBI ; vv = this.getField(time.clock) ; if (vv) { vv.value = nhours+:+nmins+:+nsecn; vv.readonly = true ; vv.textColor = color.red ; vv.textFont = font.Digital ; // font.TimesBI Cour HelvB Symbol ZapfD this.dirty = false }} timeout=app.setInterval('start_clock()',1000); -- I guess there are already some definitions about ``font.CourBI'' but where can I find the original code of the definition which I can imitate it to create a new font. Thanks -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How tow setup different fonts for Chinese and English ?
use \setupbodyfont[your-english-font] after you use chinese module On 12/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm writing notes with ConTeXt while learning something. The notes contains both English and Chinese. My question is ,how to setup different fonts for English and Chinese? I mean, I just need to setup once, and all the English words in the notes will use the same font while all Chinese words uses another different font. Thanks a lot. xiaojf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] background music in ConTeXt
\setupinteraction [openaction= . . . ] On 12/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, How to set background music in a presentation ? I mean, I want the audio to start automatically as a background when the pdf file is opened, not as a hyper link. Thanks a lot. xiaojf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] background music in ConTeXt
You may know how to open a media using a hyper-reference, just cut the reference to the openaction option. I once saw a document shows how to open a media in ConTeXt but I never use it, so I don't really know I to do it. Maybe you can give an example to show me how to do this staff so that I can have a test. On 12/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Zhichu Chen wrote: \setupinteraction [openaction= . . . ] On 12/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks. Can you just give a simple example ? Regards, xiaojf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Something about vertical Chinese typesetting
Thank you very much Wolfgang, although this is not exactly what I want, your help still gives me some important hints. I guess I should do it myself. By the way, no offending, are you german? I've seen many german guys insterested in Chinese. And the CJK package for LaTeX is designed by Werner Lemberg who is german too. On 12/20/06, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Mon, 18 Dec 2006 19:02:43 +0800 Zhichu Chen [EMAIL PROTECTED] wrote: Hi Zhichu Chen, Dear Texers, I am typesetting some traditional Chinese articles. They are typesetted in vertical, and the reading order is from right to left. This can be done by Hans' \startvertical . . . \stopvertical pair. But as shown in the attached file, there are some famous notes, descriptions and explanations to these articles. The traditional way, in Chinese, to typeset these notes is rather to insert them in some small fonts (say, half size of the \bodyfontsize) right below the word to be explained, than to use footnotes which is common in English. I've tried some ways, e.g., use \startcolumnsetspan . . . \stopcolumnsetspan to put the body text across the note text, but all failed. Can anyone give me some clue? I dont't how the result you wanted looks exactlxy but I hope my attached example file helps you. To give you a better results give us a specification about the rules how the explanations should be written. Can you also take a look at the following pages if there is what you want as result: - http://www.w3.org/TR/ruby/ - http://www.w3.org/International/questions/qa-ruby - http://www.w3.org/International/tutorials/ruby/ - http://www.w3.org/TR/css3-ruby/ Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ' undefined inside \startformula .. \stopformula
Hi Aditya, I've copied your codes and replaced the original ones with them, but I failed when I make the formats: texexec --make --all It gives me the following message: --- (d:\ConTeXt\usr\local\context\tex\texmf-local/tex/context/base/math-pln.tex ! Undefined control sequence. \@@toks -\everymathematics \dodoappendtoks -\dodoglobal \@@toks [EMAIL PROTECTED] [EMAIL PROTECTED] \the [EMAIL PROTECTED] \@@toks \the ... l.382 \to \everymathematics ? q OK, entering \batchmode ConTeXt ver: 2006.12.20 23:52 MK II fmt: 2006.12.27 int: dutch/dutch fonts : needs map file: texnansi-public-lm fonts : needs map file: original-base fonts : needs map file: ec-public-lm fonts : needs map file: ec-base fonts : needs map file: lm-ec ! Missing \endcsname inserted. to be read again \@@ladefault \defaultlanguage #1-[EMAIL PROTECTED] \ifx \csname \??la #1 \c!default \endcsname \empty ... \defaultlanguage ...\??la #1\c!default \endcsname \fi \dogetupsometextprefix #1#2#3-\ifcsname #2#1 #3\endcsname \csname #2#1#3\end... \labeltexts #1#2-\leftlabeltext {#1} #2\rightlabeltext {#1} argument ...enumber {\pageprefixes \pagenumber } \@@nmright ... l.38 \protect \errorstopmode \dump \endinput ? q OK, entering \batchmodeTeXExec | generating tex format mptopdf -- On 12/27/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Tue, 26 Dec 2006, Sanjoy Mahajan wrote: I just noticed this test file failing: \starttext $f'(x)$ \startformula f^\prime(x)\quad f'(x) \stopformula \stoptext It gives: ! Undefined control sequence. l.4 f^\prime(x)\quad f' (x) This is a typo in math-pln.tex. The end of the file should be \bgroup \catcode`\_ = 13 \catcode`\' = 13 \doglobal\appendtoks \let_\activemathunderscore \let'\activemathquote \to \everymathematics %--- was \everymath \egroup Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie: font sizes
Hi, Elliot Is this what you want: \switchtobodyfont[*dimen*] It's in the user's manual---cont-enp.pdf---rather than in the fonts manual On 12/29/06, Elliot Clifton [EMAIL PROTECTED] wrote: Hello, I've read the fonts manual, but I don't understand how to change sizes. How can I change the sizes referred to by the sizes selectors \tfx etc... Thankyou, Elliot ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] macro \verticalchineseunicodeglyph may not satisfy the vertical Chinese typeset
Hi, ConTeXters I'm playing some Chinese vertical typesetting. Mr. Wolfgang Shuster helps me a lot about it. In vertical typesetting, the top of each leading Chinese characters at each column are aligned horizontally. But if we changed the size of the bodyfont of some characters and they could wrap to the next column, then the top of the wrapped texts are not aligned with the other columns. So we can give them a raise, but it is not so easy to calculate the dimension to be raised, for ConTeXt will give every Chinese a \strut and makes the original height and depth unavailable. Since we can aligned the \strut-ed characters precisely, the real characters are not. Can Hans or other TeXperts give me a nice solution? In fact, I think in vertical Chinese, we should move the baseline to the top of the character. and make it with height=0pt and depth=width -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to use columns inside another column?
Hi everybody I used --- \definecolumnset[example][n=2] \definecolumnset[innerexample][n=2] \starttext \startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset \stoptext --- but nothing happened, can I use columns inside another column? -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How should I config the ConTeXt in order to use utf-8 encoding chinese characters?
Hi, Hongyi There is a small example, it should work if your fonts are configured properly: -- \enableregime [utf] \usemodule [chi-00] \starttext 你好 \stoptext - On 1/16/07, Hongyi Zhao [EMAIL PROTECTED] wrote: On Mon, Jan 15, 2007 at 11:47:04PM -0500, Aditya Mahajan wrote: On Tue, 16 Jan 2007, Hongyi Zhao wrote: Dear all Now I can use the GBK encoding chinese characters in my ConTeXt, but if I want to use the utf-8 encoding chinese characters in my tex files, this is, I want the tex source file encoded by UTF-8, how should I config the ConTeXt. BYW, all the chinese fonts needed have been installed correctly by me, including the TTFs and the corresponding Type1 fonts. Maybe \enableregime[utf]? Thanks, can you give me a minimal sample file, in my case, the chinese font is song. Furthmore, I use Werner's CJK, that is, if I want to invoke the song font with UTF-8 encoding in the normal tex file, I should use the argument like this: [...] \begin{CJK}{UTF8}{song} [...] But, what should I do if I want to use the argument \enableregime[utf] with ConTeXt? --- Hongyi Zhao (赵弘毅) GnuPG DSA: 0xD108493B 老子道德经:第四十九章 圣人常无心,以百姓心为心。 善者吾善之,不善者吾亦善之,德善。 信者吾信之,不信者吾亦信之,德信。 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to use columns inside another column?
Thanks Mr. Mahajan I've read the article, but one can only span some texts over two or more columns rather than split a column into two. I've tried double the column numbers and span the other text over two columns. But of course it failed for I want the small inner column to be balanced. I'm now reading the page-mul.tex. It is a long and confusing file---I'm wondering how Hans and other guys wrote such long files that hardly had a bug---but I really hope I can get some tricks from it. On 1/16/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Tue, 16 Jan 2007, Zhichu Chen wrote: Hi, Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint. I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do. Have you read the columnset documentation? http://pragma-ade.com/general/manuals/columns.pdf There are examples where the visual affect is the same as nested columns. I have not read the details of how they are implemented. HTH, Aditya On 1/15/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi everybody I used --- \definecolumnset[example][n=2] \definecolumnset[innerexample][n=2] \starttext \startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset \stoptext --- but nothing happened, can I use columns inside another column? -- Sincerely yours, 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 | www.sinap.ac.cn -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to use columns inside another column?
Thanks, Mr. Hoekwater If the texts are short, say they won't go to the next column, they could be stored into a \vbox whose \hsize is half of the width of current column (maybe less) and \vsplit it into two equally high ones. But when it's long enough, I think I need to know the rest room for the current column. Is there any primitives just behavior like \pagegoal? Best regards On 1/16/07, Taco Hoekwater [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint. I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do. I don't believe you can do columnsets inside columnsets. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to use columns inside another column?
Thank you very much, Mr. Hagen, and all the other gentlemen that helped me or were willing to help. For there is no easy ways available, I think I should read these two files thoroughly. I hope I can master ConTeXt like you guys so that I could help others who have weird requests like me one day. Best regards to you On 1/16/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Thanks, Mr. Hoekwater If the texts are short, say they won't go to the next column, they could be stored into a \vbox whose \hsize is half of the width of current column (maybe less) and \vsplit it into two equally high ones. But when it's long enough, I think I need to know the rest room for the current column. Is there any primitives just behavior like \pagegoal? for those willing to experiment ... m-streams (and page-str) implement page streams and to some extend one can make columned subpages and feed them back into the main vertical list Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to use columns inside another column?
Hi, Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint. I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do. Thanks On 1/15/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi everybody I used --- \definecolumnset[example][n=2] \definecolumnset[innerexample][n=2] \starttext \startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset \stoptext --- but nothing happened, can I use columns inside another column? -- Sincerely yours, 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 | www.sinap.ac.cn -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to use columns inside another column?
Hi, Hans I've been reading page-str and m-streams these days, but I'm so unfamiliar with ConTeXt's output routine. So one thing leads to another, I have to read more files to look for the definitions of some low-level macros used in these files. And I get confused. Maybe this kind of extension is too hard for me now. Could you give me an example (as small as possible) to make subpages and combine them onto one page? By the way, the m-streams module seems not working pretty well with columns. I think maybe more setups should be put into streamlayer:block:settings but I really don't know what to do. Thanks On 1/16/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Thanks, Mr. Hoekwater If the texts are short, say they won't go to the next column, they could be stored into a \vbox whose \hsize is half of the width of current column (maybe less) and \vsplit it into two equally high ones. But when it's long enough, I think I need to know the rest room for the current column. Is there any primitives just behavior like \pagegoal? for those willing to experiment ... m-streams (and page-str) implement page streams and to some extend one can make columned subpages and feed them back into the main vertical list Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to use columns inside another column?
Sorry to have bothered you guys, I've solved my problem now. Thank you for your kind helps. -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] twocolumn document has trouble with colors
Hi everybody, Does this only happen to me? On 2/9/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi there, Just a testing code: = \setupcolors [state=start] \definecolor [testcolor] [r=1,g=.62,b=.0625] \starttext \startcolor [testcolor] \startcolumns [direction=left] \dorecurse{15}{\input knuth\endgraf} \stopcolumns \stopcolor \stoptext = And I find it's not perfectly what I really want. Is there any tricks I can do to treat the color correctly when I start a multi-column with the option *direction=left*? -- Sincerely yours, 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 | www.sinap.ac.cn -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] twocolumn document has trouble with colors
Anyway, if I put some one-columned texts at the top of the first page, only the first page acts correctly. So I'm thinking can we put some one-columned empty boxes into the \output routine or something? -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] twocolumn document has trouble with colors
Thank you Rolf, Since there is no official patch to the problem, I'll use my dirty way and just wait Hans and Taco to solve it. On 2/11/07, Peter Rolf [EMAIL PROTECTED] wrote: Hi Chen, Zhichu Chen wrote: Hi everybody, Does this only happen to me? No, same problem here. The left column is black, the right one has the desired color. But I have no solution for it (so there was no reply from me earlier). Peter On 2/9/07, *Zhichu Chen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, Just a testing code: = \setupcolors [state=start] \definecolor [testcolor] [r=1,g=.62,b=.0625] \starttext \startcolor [testcolor] \startcolumns [direction=left] \dorecurse{15}{\input knuth\endgraf} \stopcolumns \stopcolor \stoptext = And I find it's not perfectly what I really want. Is there any tricks I can do to treat the color correctly when I start a multi-column with the option _direction=left_? -- Sincerely yours, 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 http://zhichu.chen.googlepages.com/ | www.sinap.ac.cn http://www.sinap.ac.cn/ -- Sincerely yours, 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 http://zhichu.chen.googlepages.com | www.sinap.ac.cn http://www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] twocolumn document has trouble with colors
Cool! It works. Thanks, everybody. On 2/12/07, Hans Hagen [EMAIL PROTECTED] wrote: Peter Rolf wrote: Hi Chen, Zhichu Chen wrote: Hi everybody, Does this only happen to me? No, same problem here. The left column is black, the right one has the desired color. But I have no solution for it (so there was no reply from me earlier). Peter On 2/9/07, *Zhichu Chen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, Just a testing code: = \setupcolors [state=start] \definecolor [testcolor] [r=1,g=.62,b=.0625] \starttext \startcolor [testcolor] \startcolumns [direction=left] \dorecurse{15}{\input knuth\endgraf} \stopcolumns \stopcolor \stoptext = And I find it's not perfectly what I really want. Is there any tricks I can do to treat the color correctly when I start a multi-column with the option _direction=left_? around line 659 in page-mul: \ifreversecolumns \popsplitproperties % else wrong color stack [EMAIL PROTECTED] \else [EMAIL PROTECTED] \fi add popsplitproperties, remake the format and see what happens then - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
Thanks luigi Yes, but only the A7 small page changes the background. Actually, I've tried many combinations of those options before I post my problem. So I think there is something that hasn't been mentioned in the manual. On 2/28/07, luigi scarso [EMAIL PROTECTED] wrote: On 2/28/07, Zhichu Chen [EMAIL PROTECTED] wrote: Thanks Hans, But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: + \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] what about \setupbackgrounds [page][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext and it appears nothing changed. So I wonder if you could look it up again for me. Thank you On 2/28/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi there, I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it? you can set up backgrounds for page, leftpage, rightpage, paper etc so in your case ... use \setupbackgrounds[paper][...] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to set page background?
Thanks, Mojca. It's cool. On 3/2/07, Mojca Miklavec [EMAIL PROTECTED] wrote: On 2/28/07, Zhichu Chen [EMAIL PROTECTED] wrote: Thanks Hans, But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: + \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] Does it help if you say \setuparranging [2*8,background,rotated,doublesided] instead? The keyword was added in September. It would be much better if that would be the default, but Hans seems to prefer it that way. \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to split margin note to the next page?
Hi, everybody Thank you for having helped me before, and I have a new problem here. When I was writing an article, I used margin to give some explanations. But the margin note is very very long, and eventually it appeares near the bottom of a page. So the output is awful, like: === \starttext \input knuth\par \input knuth\par \inright{\dorecurse{10}{\input knuth}}% \dorecurse{10}{\input knuth\par} \stoptext === Can margin be splitted to the next page automatically? -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to put all floats in margin without any drawbacks?
Hi everyone, I just wrote a small test file: === \starttext \dorecurse{10}{\placefigure[inright]{}{}}\dorecurse{10}{\input knuth\endgraf} \stoptext === You can see that the in-margin figures do push the main texts away. How can I do with that? If you get any suggestions, please let me know. Thank you. -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to put all floats in margin without any drawbacks?
Oh, by the way, it's very complex in my situation. So I don't really want to use the \usemodule[streams] Thanks On 3/13/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi everyone, I just wrote a small test file: === \starttext \dorecurse{10}{\placefigure[inright]{}{}}\dorecurse{10}{\input knuth\endgraf} \stoptext === You can see that the in-margin figures do push the main texts away. How can I do with that? If you get any suggestions, please let me know. Thank you. -- Sincerely yours, 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 | www.sinap.ac.cn -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to put all floats in margin without any drawbacks?
Thank you very much Wolfgang I didn't test this setup because I thought it has the same effect as the inright option of \placefigure. I'm so sorry. On 3/13/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/3/13, Zhichu Chen [EMAIL PROTECTED]: Hi everyone, I just wrote a small test file: === \starttext \dorecurse{10}{\placefigure[inright]{}{}}\dorecurse{10}{\input knuth\endgraf} \stoptext === You can see that the in-margin figures do push the main texts away. How can I do with that? If you get any suggestions, please let me know. Thank you. -- Sincerely yours, Chen Hi Chen, the following code should work: \setupfloat[figure][default=margin] \starttext \dorecurse{10}{\placefigure{}{}}\dorecurse{10}{\input knuth\endgraf} \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Equivalent to \settowidth
Hi, Robin I think you can include the texts in an \hbox and use \wd?? to get its width On 3/14/07, Robin Kirkham [EMAIL PROTECTED] wrote: Hi all, Is there a ConTeXt equivalent to LaTeX \settowidth{}, or better still some macro I can do things like \setupsomething[ ... width={\widthof{\bf sometext\emspace}}, ...] Cheers, Robin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to include unicode characters in a comment?
Hi When I'm using === \setupinteraction [state=start] \enableregime [utf] \usemodule [chi-00] \starttext \startcomment[中文] 中文 \stopcomment 中文 \stoptext === and use Adobe Reader v7 to view the output file. The comment only shows lookaheaduchar{78}{45} and something like that. I hope someone can give me a hand. Thanks. By the way, can I change the icon of the comment? It's too large for me. -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
\defineconversion [numstring][\numstr] \setuppagenumbering[conversion=numstring] On 3/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 2007-03-26, at 17:39.0, [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? I can't see how to do this in ConText. I can see that the first task - converting an integer to a string - could be done by a macro or external command, such as Wolfgang's zahl2string But how to do the second job - feed in a 'raw' pagenumber and output and print a converted one? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
Hi, cormullion I modified Wolfgang's macro as the attached file. But I'm really not a native American, so there must be some special rules that I've ignored. Wish you good luck. On 3/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks, Wolfgang and Zhichu. I've managed to get it working. The only problem now is to work out how to modify the original macros. Numbering is OK up to 20. Then we get onetwenty, twotwenty, threetwenty (I did find out how to remove the 'und'). So that's another project! thanks again ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn numstr.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Section title font define
Hi Roy, I think these little will do what you want: \setupbodyfont [11pt] file://\\definebodyfont[11pt][rm][tff=Regular \definebodyfont[11pt][rm][tff=Regular at 18pt] \setuphead [chapter] [textstyle=\tff, numberstyle=\tff] On 4/3/07, Roy Zuo [EMAIL PROTECTED] wrote: Hi all, I am going to write my thesis with ConTeXt. The problem is that our University wants chapter titles to be 18 points while body text is 11 points. I do not want to use \switchtobodyfont every time I type a chapter title, but I have no idea how to make it a style in the setup area. Any hints? Thanks a lot. Yous, Roy ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Scite folding
Hi Idris, AFAIK, one can modify one of the source files --- LEXTeX.cxx --- and compile it again. But I'm sure there should be some more sophisticate way. On 4/5/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear syndicate, Can Scite be configured for folding based on TeX keywords, or is that something that is hardwired in Scintilla/Scite? I would like to feed Scite all the \start-\stop's, {}, \bgroup-\egroup etc. I looked in the context properties files but did not find anything, and it's certainly not there by default Notepad++ (also scintilla-based) supports this through a nifty define-your-own-language dialog, as well as global RTL (no interlinear bidi), but the developers are generally unresponsive to requests for help or guidance from end users (as opposed to serious programmers) so I am a bit hesitant about switching from WinEdt to Notepad++. Notepad++ also supports folding in TeX-mode for things like \chapter, \section (without ending tags; adopted from Visual TeX) but the dialog does not let me extend that for ConTeXt (\subject etc). Anyway, whatever you can tell me about Scite and folding would be a big help! Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \pdfannot and \tooltip won't work with Chinese characters
Hi everybody, Since \inmargin won't break through pages and I've tried everything but still can't make it, I bended. Now I want to comment some words with \pdfannot. It seems that this command don't support Chinese very well, the annotations appeared like lookaheaduchar 73 and something. Then I turned to \tooltip, and this time it showed nothing. Can anybody help me? -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] default pdf version in the current ConTeXt release
Hi, I don't know if it occurs to you ever, but once I update ConTeXt to the current release, my pdf file could be opened by Acrobat reader and shows several blank pages. But Foxit reader seems take it pretty well and everything is showed like I imaged. I'm using Windows by the way. Before I gave up Acrobat reader and turned to Foxit reader, I made my last try: I put \pdfoptionpdfminorversion=3 in my source file and the pdf file shows correctly in Acrobat reader now. When I changed the number to 4, it shows with some problems. When I changed it to 5 and higher, it shows only blank pages. So, just FYI, I suppose the default pdf minor version is 5, and if you have a display problem with your pdf files, try to make it lower. -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] default pdf version in the current ConTeXt release
Hi, Aditya I'm using Adobe Reader v7.0.9 now. About several days ago, I upgraded it from, maybe, v7.0.5 and it displayed my pdf quite well. Maybe there's something wrong with the libraries. On 4/11/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Wed, 11 Apr 2007, Zhichu Chen wrote: Hi, I don't know if it occurs to you ever, but once I update ConTeXt to the current release, my pdf file could be opened by Acrobat reader and shows several blank pages. But Foxit reader seems take it pretty well and everything is showed like I imaged. I'm using Windows by the way. Which version of Adobe Reader are you using? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters
Hi I've been looking at some core codes and the PDF reference, still have no idea. Somehow, I was told that LaTeX can do such things using hyperref package and \pdfstringdef\temp{???}, then \pdfannot{... /Contents(\temp) ...} should be OK. On 4/11/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi everybody, Since \inmargin won't break through pages and I've tried everything but still can't make it, I bended. Now I want to comment some words with \pdfannot. It seems that this command don't support Chinese very well, the annotations appeared like lookaheaduchar 73 and something. Then I turned to \tooltip, and this time it showed nothing. Can anybody help me? -- Sincerely yours, 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 | www.sinap.ac.cn -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] using of field failed when arrange subpages
Hi, I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But when I was trying some subpage arrangements, it just failed. How could it happen? I guess either shiping out subpages forget the fields or something has covered over them. Here's a small example (by the way, I don't actually know the meanings of the arguments of \dosetuparrangement, I'm very appreciated if someone could explain the macro to me.): = \setupinteraction [state=start] \installpagearrangement TEMP {\dosetuparrangement{1}{1}{1}{0}{0}% \pusharrangedpageTEMP\poparrangedpagesAonly\relax} \def\pusharrangedpageTEMP#1% {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA \poparrangedpages \fi} \def\poparrangedpagesAonly {\ifnum\arrangedpageN\zerocount \dontcomplain \paperwidth\arrangedpageX\paperwidth \paperheight\arrangedpageY\paperheight \outputarrangedbox\arrangedpageA \doglobal\newcounter\arrangedpageN \fi} \definepapersize [Column] [width=40pt, height=400pt, offset=0pt] \definepapersize [Scroll] [width=540pt, height=400pt, offset=0pt] \setuppapersize[Column][Scroll] \setuparranging[TEMP,background] \setuplayout [margin=0pt, width=fit, height=middle, leftmargin=0pt, rightmargin=0pt, leftedge=0pt, rightedge=0pt, header=0pt, footer=0pt, bottom=0pt, top=0pt, backspace=0pt, topspace=0pt, bottomspace=0pt, horoffset=0pt, veroffset=0pt, headerdistance=0pt, footerdistance=0pt, topdistance=0pt, bottomdistance=0pt] \pdfoptionpdfminorversion=6 \title{What?} \starttext \newcounter\abc \doglobal\increment\abc \setupfields [reset] \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background=color,backgroundcolor=white,framecolor=red] {Some texts}} \inright{\fitfield[\currenthelp]} Click \goto{here}[JS(Toggle_Hide{\currenthelp})] to see. \dorecurse{10}{\input knuth\endgraf} \stoptext = -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using of field failed when arrange subpages
Hi everybody, I figured out that it is not because the fields are not treated nor they are overlapped by other materials. Only the JavaScript failed to excute the Toggle_Hide function. When I deleted hidden from \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] the fields are shown and fail to hide now. I think it can be a bug. I'm still looking for a solution but I'm new to ConTeXt. I hope you can help me with it. Any suggestion will be OK. On 4/16/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But when I was trying some subpage arrangements, it just failed. How could it happen? I guess either shiping out subpages forget the fields or something has covered over them. Here's a small example (by the way, I don't actually know the meanings of the arguments of \dosetuparrangement, I'm very appreciated if someone could explain the macro to me.): = \setupinteraction [state=start] \installpagearrangement TEMP {\dosetuparrangement{1}{1}{1}{0}{0}% \pusharrangedpageTEMP\poparrangedpagesAonly\relax} \def\pusharrangedpageTEMP#1% {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA \poparrangedpages \fi} \def\poparrangedpagesAonly {\ifnum\arrangedpageN\zerocount \dontcomplain \paperwidth\arrangedpageX\paperwidth \paperheight\arrangedpageY\paperheight \outputarrangedbox\arrangedpageA \doglobal\newcounter\arrangedpageN \fi} \definepapersize [Column] [width=40pt, height=400pt, offset=0pt] \definepapersize [Scroll] [width=540pt, height=400pt, offset=0pt] \setuppapersize[Column][Scroll] \setuparranging[TEMP,background] \setuplayout [margin=0pt, width=fit, height=middle, leftmargin=0pt, rightmargin=0pt, leftedge=0pt, rightedge=0pt, header=0pt, footer=0pt, bottom=0pt, top=0pt, backspace=0pt, topspace=0pt, bottomspace=0pt, horoffset=0pt, veroffset=0pt, headerdistance=0pt, footerdistance=0pt, topdistance=0pt, bottomdistance=0pt] \pdfoptionpdfminorversion=6 \title{What?} \starttext \newcounter\abc \doglobal\increment\abc \setupfields [reset] \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background=color,backgroundcolor=white,framecolor=red] {Some texts}} \inright{\fitfield[\currenthelp]} Click \goto{here}[JS(Toggle_Hide{\currenthelp})] to see. \dorecurse{10}{\input knuth\endgraf} \stoptext = -- Sincerely yours, 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 | www.sinap.ac.cn -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters
Thanks Hans, It works. But only the /Contents part was converted correctly, the /T part is still not so good. So I redefined your \doPDFinsertcomment macro and changed the third line from \doifelsenothing{#1} {\let\PDFidentifier\empty} {\def\PDFidentifier{/T (#1)}}% to \doifelsenothing{#1} {\let\PDFidentifier\empty} {\sanitizePDFencoding#1\to\PDFcommenttitle\def\PDFidentifier{/T \ifPDFunicode \PDFcommenttitle\else (\PDFcommenttitle)\fi}}% Now it's OK for me. I hope there's a more clever way that I don't need to copy such long codes to my source file. On 4/17/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi I've been looking at some core codes and the PDF reference, still have no idea. Somehow, I was told that LaTeX can do such things using hyperref package and \pdfstringdef\temp{???}, then \pdfannot{... /Contents(\temp) ...} should be OK. can you try \PDFunicodetrue Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using of field failed when arrange subpages
Thank you any way. I hope it won't be a problem one day. On 4/17/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, I've tried Hans' example introduced at mwidget-p.pdf , it's perfect. But when I was trying some subpage arrangements, it just failed. How could it happen? I guess either shiping out subpages forget the fields or something has covered over them. Here's a small example (by the way, I don't actually know the meanings of the arguments of \dosetuparrangement, I'm very appreciated if someone could explain the macro to me.): such features don't work well with arrangements Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters
Hi, Hans It may be useless, but I really hope I can pass some options to the comment. e.g., use \comment[color=blue][title]{some contents} will make some contents blue. So I think we can use /RC instead of /Contents. On 4/17/07, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Thanks Hans, It works. But only the /Contents part was converted correctly, the /T part is still not so good. So I redefined your \doPDFinsertcomment macro and changed the third line from \doifelsenothing{#1} {\let\PDFidentifier\empty} {\def\PDFidentifier{/T (#1)}}% to \doifelsenothing{#1} {\let\PDFidentifier\empty} {\sanitizePDFencoding#1\to\PDFcommenttitle\def\PDFidentifier{/T \ifPDFunicode \PDFcommenttitle\else (\PDFcommenttitle)\fi}}% Now it's OK for me. I hope there's a more clever way that I don't need to copy such long codes to my source file. just patch spec-fdf i changed it here so it will be in the next release (which reminds me that for luatex i need to make a driver file dealing with such issues) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Basic TeX question, how to redefine ^^M
Hi everybody, I want to insert some special thing between every paragraph, e.g., I'd like to make each paragraph on seperated pages. Then I use: = \appendtoks\feedcurrentpage\to\everypar \def\feedcurrentpage{\page[yes]} = and ConTeXt gives an error about TeX capacity exceeded. And I define: = \def\^^M{\endgraf\page[yes]} = nothing happened. So I'm lost. Can you tell me how to make it? -- 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Basic TeX question, how to redefine ^^M
Hi Aditya, Thank you for pointing out my foolish mistake. On 4/20/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi everybody, = \def\^^M{\endgraf\page[yes]} = nothing happened. So I'm lost. Can you tell me how to make it? This seems to work for me: \starttext \catcode`\^^M=\active \def^^M{\page[yes]} This Test \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Basic TeX question, how to redefine ^^M
Thanks Hans, your code is fine too. On 4/20/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi Aditya, Thank you for pointing out my foolish mistake. Remember that this only works if each paragraph is a single line. See the output of \starttext \catcode`\^^M=\active \def^^M{\page[yes]} \input knuth \stoptext Oh, it's bad. Maybe I shall define ^^M in a better way, like check the next character and if it's ^^M too, futurelet the next ^^M to be \page[yes]. I will think through the logic. Thanks Aditya. Aditya On 4/20/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi everybody, = \def\^^M{\endgraf\page[yes]} = nothing happened. So I'm lost. Can you tell me how to make it? This seems to work for me: \starttext \catcode`\^^M=\active \def^^M{\page[yes]} This Test \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- 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 | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Basic TeX question, how to redefine ^^M
Hi Hans, Thank you and thank Aditya for helping me so much. Your codes are OK with some small test files. But in my file, pdftex just hang up. I used page arrangement, and pop 26 sub-pages (\box255 or something) onto a pdf page, and pdftex refuse to go on when the log shows that the 14th page is been processing. But the previous codes that you or Aditya gave me are OK with my complex document: both == \obeylines \def\obeyedline{\page[yes]} == and == \catcode`\^^M=\active \def^^M{\page[yes]} == works well with my document (since they are the same). I will try to redefine ^^M to meet my need. And until I make it, I'll try to write one paragraph on one line or put a comment symbol % at the end of a line to avoid unwanted things. I'm sorry I can't upload my file because it's a Chinese module and you need to install the fonts, they are huge and messy. I think few of you are interested in it. On 4/23/07, Hans Hagen [EMAIL PROTECTED] wrote: Aditya Mahajan wrote: On Mon, 23 Apr 2007, Zhichu Chen wrote: Hi, Aditya I've made another definition, the output is OK, with some errors. Can you tell me what's wrong? Here is a more robust solution \everypar{% \let\normalpar\par% \let\par\donothing% \page[yes]% \let\par\normalpar} or \everypar{% \begingroup \let\par\donothing% \page[yes]% \endgroup} or \everypar{% \bgroup \let\par\donothing% \page[yes]% \egroup} you loose a lot of features this way \EveryPar{} may be more helpful then or maybe \prependtoks\page[yes]\to\everypar 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 : https://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 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to assign \MPstring before creating page?
Hi, everybody I want to use my titles as water marks. I've tried this small test file: = \setupcolors[state=start] \setuppagenumbering[location=] \setMPtext{titleentry}{xxx} \setuphead [title] [textcommand=\TITLE, page=right, before=, after=\blank, inbetween=, header=, textstyle=, style=] \def\TITLE#1% {#1\setMPtext{titleentry}{#1}} \setupbackgrounds [page] [background=page] \defineoverlay[page] [\useMPgraphic{page}] \startuseMPgraphic{page} StartPage; save r; picture r; r := textext.rt(\MPstring{titleentry}); r := r shifted (.5Hsize[Text],.5Vsize[Text]); draw r withcolor darkred; StopPage; \stopuseMPgraphic \starttext \title{Some Title} Some texts. \page[yes] Some texts. \stoptext = It seems it did not get the correct parameter. So I guess the \setMPtext inside \TITLE was not executed when the page was created. I also want to get chapter titles as water marks as well. What can I do? Thank you. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to assign \MPstring before creating page?
Thanks anyway. \getmarking works fine, interesting On 4/26/07, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, everybody I want to use my titles as water marks. I've tried this small test file: = \setupcolors[state=start] \setuppagenumbering[location=] \setMPtext{titleentry}{xxx} \setuphead [title] [textcommand=\TITLE, page=right, before=, after=\blank, inbetween=, header=, textstyle=, style=] \def\TITLE#1% {#1\setMPtext{titleentry}{#1}} \setupbackgrounds [page] [background=page] \defineoverlay[page] [\useMPgraphic{page}] \startuseMPgraphic{page} StartPage; save r; picture r; r := textext.rt(\MPstring{titleentry}); r := r shifted (.5Hsize[Text],.5Vsize[Text]); draw r withcolor darkred; StopPage; \stopuseMPgraphic \starttext \title{Some Title} Some texts. \page[yes] Some texts. \stoptext = It seems it did not get the correct parameter. So I guess the \setMPtext inside \TITLE was not executed when the page was created. I also want to get chapter titles as water marks as well. What can I do? Thank you. -- 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 | www.sinap.ac.cn -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Traditional Chinese Typesetting (almost complete)
Hi, everybody Based on the core codes of ConTeXt and all helps from you guys, I've almost finished a module that can typeset traditional Chinese books. I put an example on http://zhichu.chen.googlepages.com/chinesevertical I also made a first five chapters of a famous novel---Stone Legend---which locates at: http://zhichu.chen.googlepages.com/SL.pdf I hope somebody who is interested in Chinese could help me to release my module. -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Traditional Chinese Typesetting (almost complete)
Hi luigi Actually, my module should not be called as module, it's just an extension to Hans' Chinese module. My module only defined some macros to handle some strange needs of Chinese traditional book style. Hans' \startvertical . . . \stopvertical pair couldn't typeset that style very well, so I \setupunicodefont[chinese] to change its command option and define my own commands to handle chinese glyphs to avoid conflictions. I really hope Hans could add my module as a third part module in case some Chinese guys could typeset nice traditional Chinese books. Before that, I will cleasing some rubbish---actually, a lot---of my module. What else should I do? On 4/27/07, luigi scarso [EMAIL PROTECTED] wrote: I hope somebody who is interested in Chinese could help me to release my module. My 2 cents http://www.logosrl.it/context/modules/2007-04-17/singles/font-chi_ebook.pdf luigi 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___