Re: [NTG-context] Why searching fonts in xetex is so slow?
Hi, Mojca: you are absolutely right! When load iwona with the following two typeface, the loading time takes up 7-8 seconds. TeXExec | runtime: 8.296 \definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec] \definetypeface [iwona] [mm] [math] [iwona] [default] [encoding=ec] \setupbodyfont[iwona,ss,12pt] \starttext \input zapf $$\int_a^b f(x) d x = 0$$ \stoptext However, when comment the second line (\definetypeface [iwona] [mm] [math] [iwona] [default] [encoding=ec]), TeXExec | runtime: 1.828 total compile time is reduced to only 2 seconds. (of course, equations are typeset in latin modern). How can I speed up math font loading? change add file: suffix (like [file:rm-iwonar]) won't help :( Yue Wang On Sat, Apr 25, 2009 at 4:27 AM, Mojca Miklavec wrote: > On Fri, Apr 24, 2009 at 13:33, Yue Wang wrote: >> Hi, Hans >> >> Now I know why XeTeX uses 1-2 minutes to compile a simple document: >> Each time first-setup.bat runs, it erase the user fontforge cache. >> So if I compile a document right after updating ConTeXt minimals, >> XeTeX will automatically run fc-cache to generate the font cache. >> >> Today I test a little bit, the time used for fc-cache -r is >> approximately the xetex's first running time. > > True, XeTeX runs fc-cache every now and then, but I didn't manage to > figure out when that happens. I would suggest to ask about that on the > XeTeX mailing list. ConTeXt has zero influence on that behaviour, > except that it could avoid searching via fc. > >> Next compilation uses about 7-8 seconds, which is reasonable (it first >> searches the fc cache, then the texmf tree) >> btw, can we change the type-otf.tex to force mkii to search fonts like >> iwona and tex gyre in the texmf tree first? > > Iwona? There are lines like > \definefontsynonym [Iwona-Regular] [file:Iwona-Regular] [features=default] > which means that it first searches on texmf tree, but I suspect that > math fonts are being searched via fontconfig first. The way font > searching is implemented now ([rm-iwonar] will look for > \font\something="rm-iwonar" instead of \font\something=rm-iwona => > this means searching via fontconfig first; the font is not found > there, so it searches in texmf tree further) it is not possible to > convince ConTeXt to search in texmf tree first unless Hans changes > core macros (the part that has been broken for almost a year). > > 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 > ___ > ___ 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] Why searching fonts in xetex is so slow?
On Sat, Apr 25, 2009 at 4:29 AM, Mojca Miklavec wrote: > On Fri, Apr 24, 2009 at 13:33, Yue Wang wrote: >> Hi, Hans >> >> Each time first-setup.bat runs, it erase the user fontforge cache. > > Where is that cache located? (Are you talking about windows?) Maybe we > could prevent deleting the font cache. This might solve your problem. > I think it is in the C:\context\tex\texmf-mswin\fonts\cache\ > 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 > ___ > <>___ 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] Why searching fonts in xetex is so slow?
On Fri, Apr 24, 2009 at 22:57, Hans Hagen wrote: > Mojca Miklavec wrote: >> >> Iwona? There are lines like >> \definefontsynonym [Iwona-Regular] [file:Iwona-Regular] >> [features=default] >> which means that it first searches on texmf tree, but I suspect that >> math fonts are being searched via fontconfig first. The way font >> searching is implemented now ([rm-iwonar] will look for >> \font\something="rm-iwonar" instead of \font\something=rm-iwona => >> this means searching via fontconfig first; the font is not found >> there, so it searches in texmf tree further) it is not possible to >> convince ConTeXt to search in texmf tree first unless Hans changes >> core macros (the part that has been broken for almost a year). > > broken? Sorry, wrong tense. I meant "had been broken" (several years ago, risky to touch again :). 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 ___
Re: [NTG-context] Why searching fonts in xetex is so slow?
Mojca Miklavec wrote: On Fri, Apr 24, 2009 at 13:33, Yue Wang wrote: Hi, Hans Now I know why XeTeX uses 1-2 minutes to compile a simple document: Each time first-setup.bat runs, it erase the user fontforge cache. So if I compile a document right after updating ConTeXt minimals, XeTeX will automatically run fc-cache to generate the font cache. Today I test a little bit, the time used for fc-cache -r is approximately the xetex's first running time. True, XeTeX runs fc-cache every now and then, but I didn't manage to figure out when that happens. I would suggest to ask about that on the XeTeX mailing list. ConTeXt has zero influence on that behaviour, except that it could avoid searching via fc. Next compilation uses about 7-8 seconds, which is reasonable (it first searches the fc cache, then the texmf tree) btw, can we change the type-otf.tex to force mkii to search fonts like iwona and tex gyre in the texmf tree first? Iwona? There are lines like \definefontsynonym [Iwona-Regular] [file:Iwona-Regular] [features=default] which means that it first searches on texmf tree, but I suspect that math fonts are being searched via fontconfig first. The way font searching is implemented now ([rm-iwonar] will look for \font\something="rm-iwonar" instead of \font\something=rm-iwona => this means searching via fontconfig first; the font is not found there, so it searches in texmf tree further) it is not possible to convince ConTeXt to search in texmf tree first unless Hans changes core macros (the part that has been broken for almost a year). broken? well. the " is there because fonts can have spaces and i'm bot going to parse for that 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] new structure code
Kevin D. Robbins wrote: On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen wrote: Wolfgang Schuster wrote: Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins: Hi all, I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been using \nolist with long table captions, so I don't get the whole caption in the list of tables. Is there a new way to accomplish this? \defineselector[caption][max=2,n=2] \starttext \start \setupselector[caption][n=1] \completelistoftables \stop \placetable {\select{caption}{Foo.}{Foo. Bar, Baz}} {...} \stoptext ah .. you always surprise me .. i'd even forgot about that one upcoming structure code will provide \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}] You anticipated my next question! This is great news...I've always wanted to be able to specify the text that should go in the bookmark when the title itself includes markup. that has always been possible ... \chapter{Some Text} \bookmark{Overloads the previous one} But, will there be similar support for specifying bookmark text for things like \completelistoffigures? Right now, the bookmark says something like '\headtext{figures}' in my PDF viewer. you can turn on expansion (\setuplist[figure][expansion=yes]) but indeed this will be taken care of; - 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] Why searching fonts in xetex is so slow?
On Fri, Apr 24, 2009 at 13:33, Yue Wang wrote: > Hi, Hans > > Each time first-setup.bat runs, it erase the user fontforge cache. Where is that cache located? (Are you talking about windows?) Maybe we could prevent deleting the font cache. This might solve your problem. 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 ___
Re: [NTG-context] Why searching fonts in xetex is so slow?
On Fri, Apr 24, 2009 at 13:33, Yue Wang wrote: > Hi, Hans > > Now I know why XeTeX uses 1-2 minutes to compile a simple document: > Each time first-setup.bat runs, it erase the user fontforge cache. > So if I compile a document right after updating ConTeXt minimals, > XeTeX will automatically run fc-cache to generate the font cache. > > Today I test a little bit, the time used for fc-cache -r is > approximately the xetex's first running time. True, XeTeX runs fc-cache every now and then, but I didn't manage to figure out when that happens. I would suggest to ask about that on the XeTeX mailing list. ConTeXt has zero influence on that behaviour, except that it could avoid searching via fc. > Next compilation uses about 7-8 seconds, which is reasonable (it first > searches the fc cache, then the texmf tree) > btw, can we change the type-otf.tex to force mkii to search fonts like > iwona and tex gyre in the texmf tree first? Iwona? There are lines like \definefontsynonym [Iwona-Regular] [file:Iwona-Regular] [features=default] which means that it first searches on texmf tree, but I suspect that math fonts are being searched via fontconfig first. The way font searching is implemented now ([rm-iwonar] will look for \font\something="rm-iwonar" instead of \font\something=rm-iwona => this means searching via fontconfig first; the font is not found there, so it searches in texmf tree further) it is not possible to convince ConTeXt to search in texmf tree first unless Hans changes core macros (the part that has been broken for almost a year). 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 ___
Re: [NTG-context] new structure code
On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen wrote: > Wolfgang Schuster wrote: > >> >> Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins: >> >> Hi all, >>> >>> I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 >>> and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been >>> using \nolist with long table captions, so I don't get the whole caption in >>> the list of tables. Is there a new way to accomplish this? >>> >> >> >> \defineselector[caption][max=2,n=2] >> >> \starttext >> >> \start >> \setupselector[caption][n=1] >> \completelistoftables >> \stop >> >> \placetable >> {\select{caption}{Foo.}{Foo. Bar, Baz}} >> {...} >> >> \stoptext >> > > ah .. you always surprise me .. i'd even forgot about that one > > upcoming structure code will provide > > \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}] > > > You anticipated my next question! This is great news...I've always wanted to be able to specify the text that should go in the bookmark when the title itself includes markup. But, will there be similar support for specifying bookmark text for things like \completelistoffigures? Right now, the bookmark says something like '\headtext{figures}' in my PDF viewer. Thanks again, Kevin ___ 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] beta
On Fri, 24 Apr 2009, Aditya Mahajan wrote: On Fri, 24 Apr 2009, Kevin D. Robbins wrote: With the following versions of ConTeXt, LuaTeX, and t-bib: MTXrun | main context file: /opt/context/beta/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.04.21 16:11 This is LuaTeX, Version beta-0.40.0-200904 luatex.web >= v2344 %D \module %D [ file=t-bib, %Dversion=2009.04.17, Using the following in a file named bibliography.bib: @TechReport{WhoAmI2009, author = {Who Am I}, title ={Foo, Bar, Baz}, institution = {Boo}, year = {2009}, number = {42}, month ={January} } With the following as my test file: \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=./bibliography] \setuppublications[sorttype=bbl,criterium=all] \setuppublications[numbering=short,autohang=yes,refcommand=key] \starttext \input knuth \cite[WhoAmI2009] \stoptext This works fine here. I have the same setup as you have. Sorry, I have the same error here. Missed a comma while reformatting your example. Taco, here is a (slightly smaller) minimal example: \usemodule[bib] \setupbibtex[database=./bibliography] \setuppublications[refcommand=key] \starttext \cite[WhoAmI2009] \placepublications \stoptext with bibliography.bib \usemodule[bib] \setupbibtex[database=./bibliography] \setuppublications[refcommand=key] \starttext \input knuth \cite[WhoAmI2009] \placepublications \stoptext I get the same error as Kevin: ! Undefined control sequence. ... [\bibrefprefix ][\sectionseparator ] \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \preparebibreflist ...refix ][\sectionseparator ]} \storeitem \gotobiblink ...brefprefix \preparebibreflist {#2} \global \bibreffoundfalse ... \next1 #1,->\dobibkeyref {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.7 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] beta
On Fri, 24 Apr 2009, Kevin D. Robbins wrote: With the following versions of ConTeXt, LuaTeX, and t-bib: MTXrun | main context file: /opt/context/beta/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.04.21 16:11 This is LuaTeX, Version beta-0.40.0-200904 luatex.web >= v2344 %D \module %D [ file=t-bib, %Dversion=2009.04.17, Using the following in a file named bibliography.bib: @TechReport{WhoAmI2009, author = {Who Am I}, title ={Foo, Bar, Baz}, institution = {Boo}, year = {2009}, number = {42}, month ={January} } With the following as my test file: \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=./bibliography] \setuppublications[sorttype=bbl,criterium=all] \setuppublications[numbering=short,autohang=yes,refcommand=key] \starttext \input knuth \cite[WhoAmI2009] \stoptext This works fine here. I have the same setup as you have. Does doing a context --purge --all and then recompiling help? ___ 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] new structure code
Wolfgang Schuster wrote: Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins: Hi all, I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been using \nolist with long table captions, so I don't get the whole caption in the list of tables. Is there a new way to accomplish this? \defineselector[caption][max=2,n=2] \starttext \start \setupselector[caption][n=1] \completelistoftables \stop \placetable {\select{caption}{Foo.}{Foo. Bar, Baz}} {...} \stoptext ah .. you always surprise me .. i'd even forgot about that one upcoming structure code will provide \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}] - 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] new structure code
Kevin D. Robbins wrote: Another question regarding ConTeXt beta 2009.04.21 16:11, should the \completelistoffigures in the example below work, or are the \completelistofXXX macros still not fully supported in the new Mark IV structure code? expect an update next week (second stage clean up) 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] new structure code
Another question regarding ConTeXt beta 2009.04.21 16:11, should the \completelistoffigures in the example below work, or are the \completelistofXXX macros still not fully supported in the new Mark IV structure code? \starttext \completelistoffigures \input knuth \placefigure[fig:hacker] {Hacker.} {\externalfigure[hacker]} \input tufte \placefigure[fig:cow] {Cow.} {\externalfigure[cow]} \stoptext ! LuaTeX error ...beta/tex/texmf-context/tex/context/base/strc-doc.lua:502: attempt to index field 'sectiontitle' (a nil value) stack traceback: ...beta/tex/texmf-context/tex/context/base/strc-doc.lua:502: in function 'sectiontitle' ...beta/tex/texmf-context/tex/context/base/strc-lst.lua:308: in function 'title' :1: in main chunk. \structurelistsectiontitle ...\currentlistindex )} \listtextcommand #1->\begstrut #1 \endstrut ...tentry {\structurelistsectiontitle } }\egroup \ifdim \wd 4=\zer... \secondoftwoarguments #1#2->#2 \dosomelistelement ... 4\relax \relax \fi }\hss }} \endgraf \nointerlineskip ... \dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6} \global \utilitydonetrue ... l.3 On Fri, Apr 10, 2009 at 7:38 AM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > Hi, > > i found a few bugs in the new structure code for mkiv. > > > 1. the dot after numbered items is missing > > \starttext > \startitemize[n] > \item first item > \item second item > \stopitemize > \stoptext > > > 2. indices in headers work not in interactive mode > > \setupinteraction[state=start] > \starttext > \section{Section one\index{section}} > \stoptext > > > 3. \\ generates a backslash but was a space before > > \starttext > text\\text > \stoptext > > > to be continued ... > > > 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 > > ___ > ___ 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] new structure code
Thanks! Kevin On Fri, Apr 24, 2009 at 11:37 AM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins: > > Hi all, >> >> I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 >> and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been >> using \nolist with long table captions, so I don't get the whole caption in >> the list of tables. Is there a new way to accomplish this? >> > > > \defineselector[caption][max=2,n=2] > > \starttext > > \start > \setupselector[caption][n=1] > \completelistoftables > \stop > > \placetable > {\select{caption}{Foo.}{Foo. Bar, Baz}} > {...} > > \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 > > ___ > ___ 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] beta
With the following versions of ConTeXt, LuaTeX, and t-bib: MTXrun | main context file: /opt/context/beta/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.04.21 16:11 This is LuaTeX, Version beta-0.40.0-200904 luatex.web >= v2344 %D \module %D [ file=t-bib, %Dversion=2009.04.17, Using the following in a file named bibliography.bib: @TechReport{WhoAmI2009, author = {Who Am I}, title ={Foo, Bar, Baz}, institution = {Boo}, year = {2009}, number = {42}, month ={January} } With the following as my test file: \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=./bibliography] \setuppublications[sorttype=bbl,criterium=all] \setuppublications[numbering=short,autohang=yes,refcommand=key] \starttext \input knuth \cite[WhoAmI2009] \stoptext I get the following error: ! Undefined control sequence. ... [\bibrefprefix ][\sectionseparator ] \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \preparebibreflist ...refix ][\sectionseparator ]} \storeitem \gotobiblink ...brefprefix \preparebibreflist {#2} \global \bibreffoundfalse ... \next1 #1,->\dobibkeyref {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.9 \stoptext If I change \cite[WhoAmI2009] to \cite[short][WhoAmI2009], then the document will build without errors if there are no intermediate files but without actually inserting the citation key: I just get the empty pair []. If there are intermediate files, then I get the familiar: ! Undefined control sequence. ... [\bibrefprefix ][\sectionseparator ] \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \preparebibreflist ...refix ][\sectionseparator ]} \storeitem \gotobiblink ...brefprefix \preparebibreflist {#2} \global \bibreffoundfalse ... \next1 #1,->\dobibshortref {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.8 \input knuth \cite[short][WhoAmI2009] I hope this helps! Kevin On Tue, Apr 21, 2009 at 8:12 AM, Hans Hagen wrote: > Thomas A. Schmitz wrote: > > 1. The problem with the bib module persists. I don't get any errors >> anymore about undefined control sequences, the bbl file is loaded, but no >> output is produced. I hope I can produce a minimal test file tomorrow, >> unless you already have a test. >> > > a test file would be handy indeed as i have no clue how to invoke the bug > > > - > 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 > > ___ > ___ 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] new structure code
Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins: Hi all, I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been using \nolist with long table captions, so I don't get the whole caption in the list of tables. Is there a new way to accomplish this? \defineselector[caption][max=2,n=2] \starttext \start \setupselector[caption][n=1] \completelistoftables \stop \placetable {\select{caption}{Foo.}{Foo. Bar, Baz}} {...} \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 ___
Re: [NTG-context] new structure code
Hi all, I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been using \nolist with long table captions, so I don't get the whole caption in the list of tables. Is there a new way to accomplish this? \starttext \placetable {Foo. \nolist{Bar, Baz}} {\starttable [s1|l|r|r|r|r|] \HL[5] \NC A \NC \Use4[c]{B} \AR \NC \NC C \NC D \NC E \NC F \NC \AR \HL[5] \NC G \NC 3 \NC 1 \NC 0 \NC 2 \NC \AR \NC H \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR \NC I \NC 1 \NC 2 \NC 3 \NC 0 \NC \AR \NC J \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR \NC K \NC 2 \NC 2 \NC 0 \NC 0 \NC \AR \HL[5] \stoptable} \stoptext Thanks, Kevin On Fri, Apr 10, 2009 at 7:38 AM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > Hi, > > i found a few bugs in the new structure code for mkiv. > > > 1. the dot after numbered items is missing > > \starttext > \startitemize[n] > \item first item > \item second item > \stopitemize > \stoptext > > > 2. indices in headers work not in interactive mode > > \setupinteraction[state=start] > \starttext > \section{Section one\index{section}} > \stoptext > > > 3. \\ generates a backslash but was a space before > > \starttext > text\\text > \stoptext > > > to be continued ... > > > 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 > > ___ > ___ 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] [***SPAM***] Re: last ContextMinimals - bad itemize
Anybody can help. I don't understand this behaviour 1 2 1. should be 2.1 2.2 2.3 Thanks Em 21/04/2009, às 6:09, Wolfgang Schuster escreveu: Am 21.04.2009 um 18:31 schrieb batela: Dear Sirs I found this bug in ContextMinimals last version \starttext \startitemize[n] \item first \item second \startitemize[m,repeat] \item second.1, = should be 2.1, but only appears 1. \item second.2 \stopitemize \stopitemize \stoptext I found a bug in nested items too. \starttext \startitemize \startitemize[fit] \item subitem \stopitemize \stopitemize \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 ___ Um Abraço, Jorge Magalhães ___ 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] Officina Sans?
Hi, Hans: in order to use officina, I should type something like \usetypescriptfile[type-buy] \definetypeface[officina][rm][serif][officina][default][encoding=texnansi] \definetypeface[officina][ss][sans] [officina][default][encoding=texnansi] \setupbodyfont[officina,rm,10pt] can you change type-buy like lucida so that only these three lines are needed. \usetypescriptfile[type-buy] \usetypescript[officina][texnansi] \setupbodyfont[officina,rm,10pt] Thank you 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 ___
Re: [NTG-context] converting Word to Context
Hello Luigi, luigi scarso writes: >You can give a look also at >http://opendocumentfellowship.com/projects/odfpy Thanks for the suggestion, I will have a look at it. Cheers, Roger ___ 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] Why searching fonts in xetex is so slow?
Hi, Hans Now I know why XeTeX uses 1-2 minutes to compile a simple document: Each time first-setup.bat runs, it erase the user fontforge cache. So if I compile a document right after updating ConTeXt minimals, XeTeX will automatically run fc-cache to generate the font cache. Today I test a little bit, the time used for fc-cache -r is approximately the xetex's first running time. Next compilation uses about 7-8 seconds, which is reasonable (it first searches the fc cache, then the texmf tree) btw, can we change the type-otf.tex to force mkii to search fonts like iwona and tex gyre in the texmf tree first? Then the compilation will run much faster than before. Yue Wang On Mon, Mar 9, 2009 at 4:28 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> is that normal? >> >> %engine=xetex >> \usetypescript[palatino] >> \setupbodyfont[palatino] >> \starttext >> $$\int_0^t$$ >> \stoptext >> >> uses >> >> (see the transcript file for additional information) >> Output written on test.pdf (1 page). > > i get > > (c:/data/develop/context/sources/sort-def.tex) > (c:/data/develop/context/sources/sort-lan.tex) [1.1]stdin -> test.pdf > [1] > 4770 bytes written > > systems : end file test at line 8 > ) > (see the transcript file for additional information) > Output written on test.pdf (1 page). > > it's indeed not so fast, maybe because one of the used files cannot be found > fast > > eventually we might end up with extending the xtx typescript > > 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 > ___ > ___ 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] third party module "lettrine"
Wolfgang Schuster wrote: Do you have \usemodule[lettrine] in your document? Oops - sorry. Forgot that in my quick "minimal test". Thanks, Jörg ___ 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] third party module "lettrine"
Am 24.04.2009 um 11:33 schrieb Jörg Hagmann: Hi, I need the lettrine module (used to have it, not any more). I tried installation according to the wiki: . first-setup --extras="t-lettrine" It did something but it doesn't work. (\lettrine not recognised) Do you have \usemodule[lettrine] in your document? I find t-lettrine.tex in tex/texmf-context/tex/context/third/ lettrine/t-tettrine.tex What gives 'kpsewhich t-lettrine.tex' 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] third party module "lettrine"
Hi, I need the lettrine module (used to have it, not any more). I tried installation according to the wiki: . first-setup --extras="t-lettrine" It did something but it doesn't work. (\lettrine not recognised) I find t-lettrine.tex in tex/texmf-context/tex/context/third/lettrine/t-tettrine.tex I also tried all kinds of mktexlsr, texexec --make --all (using Mk II). Thanks for your help, Jörg ___ 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 Word to Context
> > > Thank you for the suggestion. Unfortunately it only runs in the Windows > OS. I use Linux (sorry, I should have said so at the outset). > You can give a look also at http://opendocumentfellowship.com/projects/odfpy -- 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 ___
Re: [NTG-context] texexec slow
On Fri, Apr 24, 2009 at 08:36, Taco Hoekwater wrote: > Mojca Miklavec wrote: >> Haha ! with this tip I get an error message from 'pdftex' : libstdc++.so.5 ... No such file ... >> >> Taco, what's the state with this particular library dependency? > > Not 100% sure but I think it should be better now (or at least > soon), as Thanh wrote he has updated the build script for pdftex. > > One thing to remember is that to make pdftex use a static > libstdc++, the machine you are compiling pdftex on has to have > the static version of libstdc++ installed. I have checked. There are both libstdc++5 and libstdc++5-3.3-dev pacakges installed on Debian and locate showed both ".so" and ".a" file, but I figured out that it also has libstdc++6 (which was not installed). How does pdftex building process decide which one to use in case that both are installed? 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 ___
Re: [NTG-context] converting Word to Context
Hello, "J.A.J. Pater" writes: > It is pretty easy when you use the word-to-latex program > (http://kebrt.webz.cz/programs/word-to-latex/) > See: http://wiki.contextgarden.net/Word-to-LaTeX (Which could be > renamed Word-to-ConTeXt?) > Though I had some problems using the XML example from the above page. > But you can make your own XML file for the program. > I made one for use with the XeTeX engine (texexec --xtx). Thank you for the suggestion. Unfortunately it only runs in the Windows OS. I use Linux (sorry, I should have said so at the outset). Best wishes, Roger ___ 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] page area state evaluation
Can this be done (see previous message below) ? Alan On Fri, Apr 17, 2009 at 11:03 AM, Alan Stone wrote: > Hi, > > How do you evaluate, for example, a page's header state (normal, start, > stop, empty, high, none, nomarking, name) in order to > > if header state = x > do this > else > do that > endif > > Thanks, > 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 ___
[NTG-context] Metapost graph : format of numbers
Hello I would like to know whether it is possible or not to force MP graph to display big numbers in labels (of y axis) in a normal format (for example 5) and not in scientifical format (for example 5x10^4). I could not manage to do it. It would be even better if the solution worked with log scale as well. If it is not possible with MP graph, I ask the same question for pgfplots. If it is not possible either, would anybody have another idea ? Thanks and goodbye, Stéphane. ___ 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] PSTricks
Am 24.04.2009 um 09:39 schrieb luigi scarso: On Fri, Apr 24, 2009 at 8:16 AM, David Arnold > wrote: All, Can someone give me some example code that includes a PSTricks object? Thanks. I believe that PSTricks works well in context mkii, better from TL2007 /TL2008 , so you have dvips pdftex etc that are needed to work . It also work with a current ConTeXt but you have to a change a line in m-pstric. 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] PSTricks
On Fri, Apr 24, 2009 at 8:16 AM, David Arnold wrote: > All, > > Can someone give me some example code that includes a PSTricks object? > > Thanks. > I believe that PSTricks works well in context mkii, better from TL2007 /TL2008 , so you have dvips pdftex etc that are needed to work . -- 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 ___
Re: [NTG-context] bug in sort-lan.tex?
Yue Wang wrote: The pdf file seems fine, but perhaps sort-lan.tex needs updating? these are harmless messages; as sort-lan is a mkii file that deals with other encodings than utf as well it has examples in those encodings 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] bug in sort-lan.tex?
I don't think it's a big problem, because Invalid UTF-8 byte appear in commented lines . You can try to replace with iconv -t 'utf-8' Anyway, also ppchtex.tex: Non-ISO extended-ASCII English text sort-lan.tex:Non-ISO extended-ASCII English text regi-ibm.tex:Non-ISO extended-ASCII English text, with LF, NEL line terminators -- 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 ___