Re: [NTG-context] Need help with bibliography
Thomas A. Schmitz wrote: On Sep 21, 2009, at 12:41 AM, Mika Ritola wrote: I'll try to give a clearer explanation. First of all, when I cite a source using e.g. \cite[Smith2000], this should appear in the text as "Smith 2000". I've already managed to do this. Now, each entry in the bibliography should begin with the same string that was used to identify it within the text. So, the above example should look something like this: Smith 2000John Smith. Generic Book Title. Whatever Publishing Company, New York 2000. I know I can get the "John Smith" by using \insertauthors in \setuppublicationlayout. But how do I get just the last name? The answer is probably so simple that I should be ashamed that I can't figure it out by myself but I haven't quite gotten the hang of ConTeXt and TeX yet... Ah, so it turns out you're looking for something else altogether. In your case, you want a special kind of label for your bibliographic list. See if Aditya's hack gives the result you want. But generally speaking, I think your setup is pretty common in the humanities, so it should be added as a key to the processactionlist in l. 308-316 of bibl-tra.mkiv. Hans, Taco, is there a proper syntax for getting the lastname and year of the current bib item? The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] Best wishes, Taco ___ 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] setting variable on cmd-line
Peter Münster wrote: On Mon, 21 Sep 2009, luigi scarso wrote: test-file: \starttext Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} \stoptext cmd-line: context --arguments=myVar=myValue test But this syntax is very strange! Does context --arguments="myVar=myValue" test work too ? Yes, I'm using bash, so --arguments="myVar=myValue" is the same as --arguments=myVar=myValue That means, context does not see the quotes. OK, in this way syntax looks less strange It's not the syntax of the cmd-line that looks strange, it's the syntax how to get the value of the variable: \ctxlua{tex.print(document.arguments["arguments=myVar"])} I'm quite sure, that this is not Hans' intention. As I've written yesterday, I suppose, that the following syntax is wanted: \getvariable{environment}{myVar} but this does not work... how does it look with: local flag, value = argument:match("^%-+(.-)=(.-)$") .+ -> .- - 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 ___
Re: [NTG-context] Need help with bibliography
On Sep 21, 2009, at 9:54 AM, Taco Hoekwater wrote: The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] You been by massaging the bbl file with the help of a clever lua script? Thomas ___ 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] Need help with bibliography
Thomas A. Schmitz wrote: On Sep 21, 2009, at 9:54 AM, Taco Hoekwater wrote: The best approach may be to put the lastname+space+year in the 's' key, and use \setuppublications[refcommand=short, numbering=short] You been by massaging the bbl file with the help of a clever lua script? Yes (and/or altering the bst file) Best wishes, Taco ___ 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] vardef with @# not working within context
Hi all, I've been fiddling around with metaobj a bit, but defining my own objects failed. After some debugging, I've reduced this to a metapost / context MkIV issue (so no metaobj specifics anymore). What happens, is that vardefs that use @# as a placeholder in their name only work when they are defined in an external .mp file. When I define them inside context (\startMPcode or \startMPinclusions), I get funny errors (mostly "Isolated expression", which seems to mean that the macro is not defined). I suspect this is because the way context extracts metapost code. Is this a fundamental problem, or could it be fixed? The following context file will easily reproduce the problem: \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef; foo; vardef x...@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext Running this file gives the following (first) error: mplib | mp terminal: >> xy0mm ! Improper `addto'. To illustrate that this is specific to the use of @#, I've included the foo vardef which does work properly. When I move the vardef xy.. line to a separate file, say foo.mp, and replace it with "input foo;", the errors disappear. Gr. Matthijs signature.asc Description: Digital signature ___ 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] vardef with @# not working within context
On Mon, 21 Sep 2009, Matthijs Kooijman wrote: Hi all, I've been fiddling around with metaobj a bit, but defining my own objects failed. After some debugging, I've reduced this to a metapost / context MkIV issue (so no metaobj specifics anymore). What happens, is that vardefs that use @# as a placeholder in their name only work when they are defined in an external .mp file. When I define them inside context (\startMPcode or \startMPinclusions), I get funny errors (mostly "Isolated expression", which seems to mean that the macro is not defined). I suspect this is because the way context extracts metapost code. Is this a fundamental problem, or could it be fixed? You need to escape # inside any \startMPwhatever...\stopMPwhatever. This has to do with the fact that TeX processes the contents before they are passed to metapost, and TeX does not like isolated #. Try replacing # with \# or \string# Hans, does it make sense to parse all MP environments (ironically except \startMPenvironment, but that is almost redundant in MKIV) with a separate catcode regime where # has catcode other. After all, it is highly unlikely that anyone will define a TeX maco inside \startMPcode or \startMPinclusions. 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 ___
Re: [NTG-context] vardef with @# not working within context
Aditya Mahajan wrote: On Mon, 21 Sep 2009, Matthijs Kooijman wrote: Hi all, I've been fiddling around with metaobj a bit, but defining my own objects failed. After some debugging, I've reduced this to a metapost / context MkIV issue (so no metaobj specifics anymore). What happens, is that vardefs that use @# as a placeholder in their name only work when they are defined in an external .mp file. When I define them inside context (\startMPcode or \startMPinclusions), I get funny errors (mostly "Isolated expression", which seems to mean that the macro is not defined). I suspect this is because the way context extracts metapost code. Is this a fundamental problem, or could it be fixed? You need to escape # inside any \startMPwhatever...\stopMPwhatever. This has to do with the fact that TeX processes the contents before they are passed to metapost, and TeX does not like isolated #. Try replacing # with \# or \string# it's more that tex likes to duplicate the # internally Hans, does it make sense to parse all MP environments (ironically except \startMPenvironment, but that is almost redundant in MKIV) with a separate catcode regime where # has catcode other. After all, it is highly unlikely that anyone will define a TeX maco inside \startMPcode or \startMPinclusions. how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work 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 ___
Re: [NTG-context] vardef with @# not working within context
On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef; foo; vardef x...@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext ! Illegal parameter number in definition of \...@mpg@@@. vardef x...@## .m,10mm); enddef; draw ... = (@##,@##) enddef ; \dodostartuseMPgraphic ...useMPgraphic {#1}{#2}{#3 }}\elabelgroup \dostartMPcode ...graphic {@@}#1\stopuseMPgraphic \useMPgraphic {@@}\endgroup l.9 \stopMPcode 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 ___
Re: [NTG-context] How to reset the chapter number
Hi Derek, I write a little example, there's still a little issue. The chapter number start with 1 for part II, how to make it continue from part I. Thanks. Best regards, Joshua On Sat, 19 Sep 2009, Derek CORDEIRO wrote: > On Sat, Sep 19, 2009 at 4:13 PM, Joshua Lee wrote: > > > Hi Guys, > > Here's a little example, > > \setupcolors[state=start] > > > > \setuphead[chapter][sectionsegments=2:100] > > > > \starttext > > > > \completecontent > > \part{First Part} > > \chapter{First Chapter} > > \chapter{Second Chapter} > > \part{Second Part} > > \chapter{Third Chapter} > > \chapter{Chapter 4} > > \stoptext > > > > I would like to show the chapter number 1,2,3,4.. instead of > > 1.1,1.2,2.1,2.2 .. how to do it? > > > > > > Read http://www.opensubscriber.com/message/ntg-context@ntg.nl/12416208.html > ___ > 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 > ___ -- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204 example.pdf Description: Adobe PDF document \setuphead[part][resetnumber=no,placehead=yes,conversion=R] \setuphead[chapter,section,subsection][resetnumber=no,placehead=yes,sectionsegments=2:100] \starttext \part{part one} \chapter{chapter one} \section{section one} \section{section two} \chapter{chapter two} \section{section one} \section{section two} \part{part two} \chapter{chapter three} \section{section one} \section{section two} \chapter{chapter four} \section{section one} \section{section two} \stoptext ___ 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 reset the chapter number
Am 21.09.2009 um 17:40 schrieb Joshua Lee: Hi Derek, I write a little example, there's still a little issue. The chapter number start with 1 for part II, how to make it continue from part I. \definestructureresetset[default][0,0][1] \setuphead[part][sectionresetset=default] 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 ___
[NTG-context] urls and linebreaking
Does any one recall how to get urls to break AFTER “.” and “/” etc. in MK II using \useURL? I know this was discussed a long time ago, but I have not found it. Alan ___ 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 reset the chapter number
Hi Wolfgang, It works, thanks for your quick response. Best regards, Joshua On Mon, 21 Sep 2009, Wolfgang Schuster wrote: > > Am 21.09.2009 um 17:40 schrieb Joshua Lee: > > > Hi Derek, > > I write a little example, there's still a little issue. The chapter > > number start with 1 for part II, how to make it continue from part I. > > \definestructureresetset[default][0,0][1] > > \setuphead[part][sectionresetset=default] > > 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 > ___ -- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204 ___ 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 reset the chapter number
Hi Wolfgang, On Mon, 21 Sep 2009, Wolfgang Schuster wrote: Am 21.09.2009 um 17:40 schrieb Joshua Lee: Hi Derek, I write a little example, there's still a little issue. The chapter number start with 1 for part II, how to make it continue from part I. \definestructureresetset[default][0,0][1] \setuphead[part][sectionresetset=default] Can you (or someone else) explain how the new numbering mechanism works? I have looked at the examples posted in this and other threads, and I do not understand how things work. 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 ___
Re: [NTG-context] vardef with @# not working within context
Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef; foo; vardef x...@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext ! Illegal parameter number in definition of \...@mpg@@@. hm, weird. did you remake the metafun format? - 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 ___
Re: [NTG-context] vardef with @# not working within context
On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef; foo; vardef x...@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext ! Illegal parameter number in definition of \...@mpg@@@. hm, weird. did you remake the metafun format? I did. Just to verify, I created an mp file beginfig(1) ; vardef x...@## = (@##,@##) enddef ; draw xy0mm -- xy10mm; endfig; end; and ran mpost -progname=metafun test.mp which gives me the correct output, so @## is defined. I am using 2009.09.18. I'll try later with the latest beta. 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 ___
Re: [NTG-context] vardef with @# not working within context
Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef; foo; vardef x...@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext ! Illegal parameter number in definition of \...@mpg@@@. hm, weird. did you remake the metafun format? I did. Just to verify, I created an mp file beginfig(1) ; vardef x...@## = (@##,@##) enddef ; draw xy0mm -- xy10mm; endfig; end; and ran mpost -progname=metafun test.mp which gives me the correct output, so @## is defined. I am using 2009.09.18. I'll try later with the latest beta. in supp-mps.mkii, patch: \long\def\runtimeobeyMPlines {\catcode35=11\relax % goodie \ifx\rawcharacter\undefined better than nothing - 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 ___
Re: [NTG-context] vardef with @# not working within context
On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: how about adding let @## = @# ; to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii) seems to work Works in mkiv, but in mkii I get an error with \starttext \startMPcode vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef; foo; vardef x...@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext ! Illegal parameter number in definition of \...@mpg@@@. hm, weird. did you remake the metafun format? I did. Just to verify, I created an mp file beginfig(1) ; vardef x...@## = (@##,@##) enddef ; draw xy0mm -- xy10mm; endfig; end; and ran mpost -progname=metafun test.mp which gives me the correct output, so @## is defined. I am using 2009.09.18. I'll try later with the latest beta. in supp-mps.mkii, patch: \long\def\runtimeobeyMPlines {\catcode35=11\relax % goodie \ifx\rawcharacter\undefined better than nothing This works. 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 ___
[NTG-context] letter module
Hi all, I uploaded a new version of the letter module that deals with the recent changes in the MkIV spacing model, as a result of this you need todays beta (2009.09.21) or later. For MkII users this message is unimportant because the changes don't affect them and older installations can be used without problems, if there are problems report them and I will fix it. 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 ___
Re: [NTG-context] setting variable on cmd-line
On Mon, 21 Sep 2009, Hans Hagen wrote: > > As I've written yesterday, I suppose, that the following syntax is wanted: > > \getvariable{environment}{myVar} but this does not work... > > how does it look with: > > local flag, value = argument:match("^%-+(.-)=(.-)$") > > .+ -> .- I've changed the line in mtxrun.lua and now it works fine, thanks Hans! There is another occurrence of this line in luatools.lua (line 3426), perhaps it should be changed there too? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] setting variable on cmd-line
Peter Münster wrote: On Mon, 21 Sep 2009, Hans Hagen wrote: As I've written yesterday, I suppose, that the following syntax is wanted: \getvariable{environment}{myVar} but this does not work... how does it look with: local flag, value = argument:match("^%-+(.-)=(.-)$") .+ -> .- I've changed the line in mtxrun.lua and now it works fine, thanks Hans! There is another occurrence of this line in luatools.lua (line 3426), perhaps it should be changed there too? will happen automatically with the next beta - 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 ___
[NTG-context] Performance and fonts issues
Hello, I wonder -- why wait up to 5sec to (re)compile a single page on a Core 2 Duo machine? Let's look at the end of the log file for my simple, one-page document: mkiv lua stats : input load time - 0.000 seconds mkiv lua stats : stored bytecode data - 184 modules, 45 tables, 229 chunks mkiv lua stats : node list callback tasks - 4 unique tasks, 3 created, 75 calls mkiv lua stats : cleaned up reserved nodes - 23 nodes, 9 lists of 1410 mkiv lua stats : node memory usage - 20 glue_spec, 2 dir mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - en:us:pat:exc:2 mkiv lua stats : startup time - 0.531 seconds (including runtime option file processing) mkiv lua stats : callbacks - direct: 288, indirect: 3681, total: 3969 mkiv lua stats : loaded fonts - 37 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 lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans10-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm minionpro-bold.otf minionpro-it.otf minionpro-regular.otf mkiv lua stats : fonts load time - 2.750 seconds mkiv lua stats : result saved in file - garden_in_the_rain.pdf mkiv lua stats : luatex banner - this is luatex, version beta-0.43.0-2009083017 mkiv lua stats : control sequences - 29475 of 165536 mkiv lua stats : current memory usage - 147 MB (ctx: 151 MB) mkiv lua stats : runtime - 3.438 seconds, 1 processed pages, 1 shipped pages, 0.291 pages/second Startup time is 0.531 seconds. OK. Then, why on the Earth all these lmxxx fonts are loaded, if I use Minion Pro typescript? 2.7sec... Hmmm. Seems like a root of evil. What can I do to get rid of all of them? My typescript: \starttypescript [serif] [MinionPro] \definefontsynonym [Serif][MinionPro-Regular.otf][features=default] \definefontsynonym [SerifBold][MinionPro-Bold.otf][features=default] \definefontsynonym [SerifItalic][MinionPro-It.otf][features=default] \definefontsynonym [SerifBoldItalic][MinionPro-BoldIt.otf][features=default] \stoptypescript \starttypescript [MinionPro] \definetypeface [MinionPro][rm][serif][MinionPro][default] \stoptypescript Regards, Vyatcheslav ___ 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] Small caps problem/bug with some fonts
Hans Hagen skribis: > so, its not that frac itself is the problem dealing with in the engine, > because if so, many features would be a problem, it's just that font > makers stick to a couple of simple rules like: > > (1) replace all > > by > > > (1) replace all > > by > > > and if they have rule 2, it will mess up things like a/b Is rule (2) missing? I see (1) twice. Are there fonts that have a or b in the "numr" and "dnom" features but where they do not work in "frac"? ___ 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 ___