[NTG-context] fonts with non latin file names
Hi, i have a problem when i use font which contain non ascii letters in the file name, e.g. the filename of the Hirganino fonts on Mac OS X are a mixture or japanese and latin letters but only the latin part is used to cache the font information. In the following example \definefontsynonym[Mincho][file:ヒラギノ明朝 Pro W3][features=default] % /Library/Fonts/ヒラギノ明朝 Pro W3.otf \definefontsynonym[Gothic][file:ヒラギノ角ゴ Pro W3][features=default] % /Library/Fonts/ヒラギノ角ゴ Pro W3.otf \starttext \startlines \definedfont[Mincho]Hiragino Mincho Pro \definedfont[Gothic]Hiragino Kaku Gothic Pro \stoplines \stoptext the font information is saved at each run in the font cache under the name '-pro-w3'. fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active systems : begin file selectfont-13 at line 3 !load otf : loading: /Library/Fonts/ヒラギノ明朝 Pro W3.otf (hash: -pro-w3) !load otf : file size: 11580728 !load otf : enhancing ... !load otf : saving in cache: /Library/Fonts/ヒラギノ明朝 Pro W3.otf !load otf : loading: /Library/Fonts/ヒラギノ角ゴ Pro W3.otf (hash: -pro-w3) !load otf : file size: 9362284 !load otf : enhancing ... !load otf : saving in cache: /Library/Fonts/ヒラギノ角ゴ Pro W3.otf fonts : resetting map file list {/Users/wolf/ctx/tex/texmf-context/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {/Users/wolf/ctx/tex/texmf-context/fonts/map/pdftex/context/original-base.map} fonts : using map file: original-ams-base {/Users/wolf/ctx/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {/Users/wolf/ctx/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map} fonts : using map file: original-public-lm {/Users/wolf/ctx/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map} fonts : using map file: lm-math {/Users/wolf/ctx/tex/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {/Users/wolf/ctx/tex/texmf/fonts/map/dvips/lm/lm-rm.map} !pages : flushing realpage 1, userpage 1, subpage 1 systems : end file selectfont-13 at line 8 system : cont-err loaded (/Users/wolf/ctx/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) )/Library/Fonts/ヒラギノ角ゴ Pro W3.otf/Library/Fonts/ヒラギノ明朝 Pro W3.otf/Users/wolf/ctx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] smaller inter line space for headings (on a grid)
Hi all, I have three questions: 1) Is there a convenient way to reduce the inter line space for an head on a grid? First I tried \setuphead[section][style={\ssb\setupinterlinespace[line=1ex]}]—no effect. Finally I defined three commands to get it work. Perhaps someone knows a better way. 2) In a manual I found an example \setuphead[section][grid={line,-5pt}], but it doesn’t seem to work. Is it outdated? Is there an MkIV alternative? 3) Is there a MkIV pendant for \showgridboxes? test-head-interlinespace.tex Description: Binary data Thank you in advance Andreas___ 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] The problem with structure of heads in MkIV
Joshua Lee wrote: Hi Yanrui, How about the attached sample? Best regards, Joshua On Wed, 30 Dec 2009, Yanrui Li wrote: hi all, For example: \starttext \placelist[part,chapter,section,subsection][criterium=all] \part{first} \chapter{alpha} \section{a} \section{b} \subsection{x} \subsection{y} \chapter{beta} \part{second} \chapter{gamma} \section{a} \section{b} \subsection{x} \subsection{y} \chapter{delta} \stoptext how to get the following head structure in MkIV ? Part 1 first 1 alpha 1.1 a 1.2 b 1.2.1 x 1.2.2 y 2 beta Part 2 second 3 gamma 3.1 a 3.2 b 3.2.1 x 3.2.2 y 4 delta -- Best regards, Li Yanrui The attached sample doesn't meet the original poster's criteria. It produces headings like 1.1 alpha and 1.1.1 a instead of the requested 1 alpha and 1.1 a. Is there any way of achieving this? (Under Part 1, of course. That's the trick.) Thanks, Tad ___ 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] new beta
Hi, I uploaded a new beta. The problematic fonts (reported a while ago) now are dealt with more efficiently. The problem is with the (way too) many kerns. First time loading is also somewhat faster as is the memory footprint for base mode fonts. (for those huge ArnoPro fonts using node mode is much more efficient than base mode). I hope that I didn't break anything else. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)
On 13-12-2009 12:26, Tad Ashlock wrote: As noted at http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the embedded formatting commands in verbatim text don't work in MkIV. Are there any plans to fix this capability soon? I'm planning on working on a project on over the holiday break that will need it. the beta has: \starttext \setuptyping[TEX][escape=yes] \startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after \before \after \stopTEX \setuptyping[TEX][escape={[[,]]}] \startTEX [[\em sometex]] [[\em sometex]] \after \before [[\em sometex]] \before [[\em sometex]] \after \before [[\em sometex]] \inbetween [[\em sometex]] \after \before \after \stopTEX \setuptyping[TEX][escape=//] \startTEX //\em sometex \before //\em sometex \stopTEX \stoptext so, in mkiv option-commands is gone and escape no longer is an escape character but a condition (range or start) please wikify this 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] The problem with structure of heads in MkIV
2009/12/31 Tad Ashlock taas...@cyberdude.com The attached sample doesn't meet the original poster's criteria. It produces headings like 1.1 alpha and 1.1.1 a instead of the requested 1 alpha and 1.1 a. Is there any way of achieving this? (Under Part 1, of course. That's the trick.) Hi Tad, The attached sample works ok for me. Can you give me your result which the sample prodeces? -- Best regards, Li Yanrui ___ 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] Using Adobe Arno Pro in Mkiv
2009/12/30 Hans Hagen pra...@wxs.nl On 29-12-2009 22:24, Andreas Harder wrote: Am 29.12.2009 um 19:21 schrieb Hans Hagen: On 27-12-2009 3:43, Changlin Ai wrote: When I used Adobe ArnoPro font in Mkvi with default font features, I found the memory useage of LuaTeX was very big. as i don't have the font i cannot check where some saving can take place but it could be in the lookups so, i did a small optimization in the way lookups are stored (for taco: it saves some 10M memory on mk which is rather neglectable and some 1% tma/tmc space for the mk fonts) so, now the question is, how much does it save for ArnoPro ... can yopu collect some stats for your current version as well as the latest beta (website, with delay garden) (needs a bit of testing) Hi, I don’t know it this is a side effect of the optimization, but the ligatures from the Linux Libertine font disappeared … will be fixed - 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 - I have updated to the last beta version of ConTeXt MKIV. It's very good, reduction in memory usage is huge. Now it's just about 100MB with the same test. mkiv lua stats : fonts load time - 5.703 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.50.0-2009122422 mkiv lua stats : control sequences - 29965 of 165536 mkiv lua stats : current memory usage - 98 MB (ctx: 100 MB) mkiv lua stats : runtime - 7.891 seconds, 0 processed pages, 1 shipped pages, 0.127 pages/second SyncTeX written on test.synctex.gzMTXrun | total runtime: 7.967 Best wishes, Changlin Ai ___ 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] Using Adobe Arno Pro in Mkiv
2009/12/31 Changlin Ai acl1...@gmail.com I have updated to the last beta version of ConTeXt MKIV. It's very good, reduction in memory usage is huge. Now it's just about 100MB with the same test. mkiv lua stats : fonts load time - 5.703 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.50.0-2009122422 mkiv lua stats : control sequences - 29965 of 165536 mkiv lua stats : current memory usage - 98 MB (ctx: 100 MB) mkiv lua stats : runtime - 7.891 seconds, 0 processed pages, 1 shipped pages, 0.127 pages/second SyncTeX written on test.synctex.gzMTXrun | total runtime: 7.967 Best wishes, Changlin Ai And when I used node mode, the memory usage was reduced to 73MB, it's amazing (73MB vs. 491MB). Thanks a lot for everybody's help. mkiv lua stats : loaded fonts - 57 files: lmmono10-regular.otf lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman10-bold.otf lmroman10-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman6-bold.otf lmroman6-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman8-bold.otf lmroman8-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans10-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb5.tfm eufb7.tfm eufm10.tfm eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm msbm7.tfm lmex10.tfm lmmi10.tfm lmmi12.tfm lmmi6.tfm lmmi7.tfm lmmi8.tfm lmmi9.tfm lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy6.tfm lmsy7.tfm lmsy8.tfm lmsy9.tfm rm-lmr10.tfm rm-lmr12.tfm rm-lmr6.tfm rm-lmr7.tfm rm-lmr8.tfm rm-lmr9.tfm arnopro-bold.otf arnopro-bolditalic.otf arnopro-italic.otf arnopro-regular.otf mkiv lua stats : fonts load time - 1.744 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.50.0-2009122422 mkiv lua stats : control sequences - 29966 of 165536 mkiv lua stats : current memory usage - 71 MB (ctx: 73 MB) mkiv lua stats : runtime - 3.944 seconds, 0 processed pages, 1 shipped pages, 0.254 pages/second SyncTeX written on test.synctex.gzMTXrun | total runtime: 4.019 Best wishes, Changlin Ai ___ 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] Random numbers in metapost
Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? David ___ 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 ___