Re: [NTG-context] PDF Custom Page Numbering
On Thu, Jun 10, 2010 at 12:35 PM, Aditya Mahajan wrote: > On Wed, 9 Jun 2010, Hartmut Henkel wrote: > > On Wed, 9 Jun 2010, Andreas Schneider wrote: >> >> while reading through the PDF to ISO-9075-1 (SQL99), I noticed >>> something I had never seen before in a PDF: the page numbers displayed >>> by Acrobat matched exactly the ones in the document ... the beginning >>> was even numbered with roman numbers and the actual content started >>> again at "Page 1". From a quick research it seems that this >>> functionality is in PDF since Acrobat 4 (that should be PDF 1.3, >>> right?) and is most likely called "Custom Page Numbering". It would be >>> amazing if ConTeXt/LuaTeX supports that too - especially if you >>> produce documents for screen reading. >>> >>> Unfortunately I don't have access to the PDF Specification currently >>> to give you more info - so I don't even know for sure how that feature >>> is officially called. >>> >>> Anyway, I hope that idea/suggestion/wish finds positive reactions ... >>> and I somehow hope that it isn't actually too hard to implement :-) >>> >> >> it's named "Page Labels" (never seen before, thanks for the pointer), in >> the PDF Reference 5th ed. it's in section 8.3.1, the example 8.3 there >> typed into \pdfcatalog{} works right away, so no luatex engine >> modification needed. >> > > IIRC, the hyperref package in LaTeX supports this. I do not know if there > is a direct ConTeXt support. > Not direct, but ConTeXt CAN do this: http://www.ntg.nl/pipermail/ntg-context/2008/036947.html http://archive.contextgarden.net/message/20081016.174838.bff55fc9.en.html > > 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV and bib module
Taco Hoekwater wrote: Honza Pohanka wrote: This helps, thank you. But another error. Specifying \setuppublicationlist[title={\section}] causes following error for MKIV use \setuppublicationlist[title=section] Oh right, that is wrong also. Hans, the title key is supposed to be a sectioning command, not actual text. How is this controlled in the new structure list setup? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV and bib module
Honza Pohanka wrote: This helps, thank you. But another error. Specifying \setuppublicationlist[title={\section}] causes following error for MKIV use \setuppublicationlist[title=section] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF Custom Page Numbering
On Wed, 9 Jun 2010, Hartmut Henkel wrote: On Wed, 9 Jun 2010, Andreas Schneider wrote: while reading through the PDF to ISO-9075-1 (SQL99), I noticed something I had never seen before in a PDF: the page numbers displayed by Acrobat matched exactly the ones in the document ... the beginning was even numbered with roman numbers and the actual content started again at "Page 1". From a quick research it seems that this functionality is in PDF since Acrobat 4 (that should be PDF 1.3, right?) and is most likely called "Custom Page Numbering". It would be amazing if ConTeXt/LuaTeX supports that too - especially if you produce documents for screen reading. Unfortunately I don't have access to the PDF Specification currently to give you more info - so I don't even know for sure how that feature is officially called. Anyway, I hope that idea/suggestion/wish finds positive reactions ... and I somehow hope that it isn't actually too hard to implement :-) it's named "Page Labels" (never seen before, thanks for the pointer), in the PDF Reference 5th ed. it's in section 8.3.1, the example 8.3 there typed into \pdfcatalog{} works right away, so no luatex engine modification needed. IIRC, the hyperref package in LaTeX supports this. I do not know if there is a direct ConTeXt support. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV and bib module
On Wed, 9 Jun 2010, Honza Pohanka wrote: This helps, thank you. But another error. Specifying \setuppublicationlist[title={\section}] I am not sure what title=... is supposed to do. How about \section{References} \placepublications[criterium=all] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF Custom Page Numbering
On Wed, 9 Jun 2010, Andreas Schneider wrote: > while reading through the PDF to ISO-9075-1 (SQL99), I noticed > something I had never seen before in a PDF: the page numbers displayed > by Acrobat matched exactly the ones in the document ... the beginning > was even numbered with roman numbers and the actual content started > again at "Page 1". From a quick research it seems that this > functionality is in PDF since Acrobat 4 (that should be PDF 1.3, > right?) and is most likely called "Custom Page Numbering". It would be > amazing if ConTeXt/LuaTeX supports that too - especially if you > produce documents for screen reading. > > Unfortunately I don't have access to the PDF Specification currently > to give you more info - so I don't even know for sure how that feature > is officially called. > > Anyway, I hope that idea/suggestion/wish finds positive reactions ... > and I somehow hope that it isn't actually too hard to implement :-) it's named "Page Labels" (never seen before, thanks for the pointer), in the PDF Reference 5th ed. it's in section 8.3.1, the example 8.3 there typed into \pdfcatalog{} works right away, so no luatex engine modification needed. Regards, Hartmut ___ 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] Kerning messed up for Minion Pro in ConTeXt 2010.06.09
On Wed, Jun 9, 2010 at 18:36, Michael Murphy wrote: > > it looks like the kerning has gone weird for Minion Pro in the latest > ConTeXt (this is the only font I could find with the problem, all others > looked fine). I've attached a PDF to show the effect. Just a blind guess. Some Adobe fonts use "kerning groups" (a set of characters with equal kerning on left/right), while most fonts, in particular all the Polish fonts/LM use just "normal kerning" (kerning defined for each pair of characters). I suspect that only kerning of "group of characters" might be broken. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Relative references to floats
Wolfgang Schuster wrote: > Am 09.06.10 14:43, schrieb Andreas Schneider: >> Hello, >> >> is there currently (in MkIV) some way to have relative references to >> floats? I imagine something like "... as you can see >> \above[fig:somefigure]." which would print "... as you can see above." if >> the figure is above the current paragraph or "... as you can see below." >> if it is below. > > strc-ref.mkiv: > > %D A still very rudimentary|/|experimental forward|/|backward > %D reference mechanism is provided by the macro \type{\atpage}: > %D > %D \starttyping > %D ... \somewhere{backward text}{forward text}[someref] ... > %D ... \atpage[someref] ... > %D \stoptyping > > Wolfgang > Ah, thank you for pointing that out. Unfortunately it seems to be really quite experimental, as my first tests didn't go so well :D I'll keep it in mind though and play around with it a bit more. Thanks! 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] Relative references to floats
Am 09.06.10 14:43, schrieb Andreas Schneider: Hello, is there currently (in MkIV) some way to have relative references to floats? I imagine something like "... as you can see \above[fig:somefigure]." which would print "... as you can see above." if the figure is above the current paragraph or "... as you can see below." if it is below. Maybe it's unusual to do that in books/papers, but I thought it might look better than to reference a page or a number if it is expected, that the figure is close by anyway. It would be nice if it could even go so far as to include page offsets ... "... as you can see on the next page" or "... as you can see two pages ahead". I have no real need to use this, it was just an idea to tidy up my text a bit (without risking wrong references when the layout changes and floats shift around). So if that is currently possible: awesome ... if not: no harm done :-) strc-ref.mkiv: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping 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 ___
Re: [NTG-context] XITS fonts - second beta
On 9-6-2010 9:05, Khaled Hosny wrote: Is there a chance this typescript gets into texlive? As I'm trying to get the font ready by the time of texlive2010, I think having the updated typescript will make installation instructions much simpler. taco can just copy the xits typescripts ftom type-otf.mkiv into tex live 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 - ___ 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] problems with context beta and mtxrun
Hi list, as read before there are some problems with mtxrun, now I got myself one too. After an Update of this afternoon context wouldn't compile anymore. The run of context --make delivers the following: $ context --make MTXrun | forcing cache reload MTXrun | fileio: skipping configuration file '/opt/context-minimals/tex/ texmf/web2c/texmfcnf.lua' MTXrun | the resolver databases are not present or outdated MTXrun | fileio: using suffix based filetype 'texmfscripts' MTXrun | fileio: using suffix based filetype 'texmfscripts' MTXrun | fileio: remembering file 'mtx-context.lua' MTXrun | fileio: using suffix based filetype 'texmfscripts' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' MTXrun | MTXrun | runtime: 0.097 seconds but I now both files exist inside of the context path... Greetings -- --- Martin 'golodhrim' Scholz Auf dem Sattler 4 34516 Ederbringhausen Phone: +49 6454 799623 mobile: +49 176 63301749 Fax: +49 6454 e-Mail: scholz@googlemail.com In Lexington, Kentucky, it's illegal to carry an ice cream cone in your pocket. -- --- Martin 'golodhrim' Scholz Auf dem Sattler 4 34516 Ederbringhausen Phone: +49 6454 799623 mobile: +49 176 63301749 Fax: +49 6454 e-Mail: scholz@googlemail.com In Lexington, Kentucky, it's illegal to carry an ice cream cone in your pocket. ___ 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] MKIV and bib module
This helps, thank you. But another error. Specifying \setuppublicationlist[title={\section}] causes following error for MKIV (E:/context/tex/texmf-context/tex/context/bib/bibl-ams.tex) ! Argument of \dosetuplist has an extra }. \par } \doifelsenothing #1->\edef \!!stringa {#1} \ifx \!!stringa \empty \expandafte... \docompletepublications ...istparameter \c!title } {\systemsuppliedchapter [... l.153 \completepublications[criterium=all] regards Jan Dne Wed, 09 Jun 2010 21:15:36 +0200 Aditya Mahajan napsal(a): On Wed, 9 Jun 2010, Honza Pohanka wrote: Hallo, I have discovered a problem with bib module in MKIV. Using \completepublications command typesets only the heading and no bib items. Numbers in citations are missing too. \placepublications and MKII works fine. example \enableregime[utf] \mainlanguage[cz] \input pdfr-def.mkii % glyph to unicode \usemodule[bib] \setupbibtex[database={stereo}] \setuppublications[alternative=num,autohang=yes] \setuppublicationlist[before=\blank] \setupexternalfigures[directory=./img] \starttext bla \cite[moltonetal1998] bla \cite[andersonetal2007] \setuppublications[alternative=ams] \completepublications \completepublications[criterium=all] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] MKIV and bib module
On Wed, 9 Jun 2010, Honza Pohanka wrote: Hallo, I have discovered a problem with bib module in MKIV. Using \completepublications command typesets only the heading and no bib items. Numbers in citations are missing too. \placepublications and MKII works fine. example \enableregime[utf] \mainlanguage[cz] \input pdfr-def.mkii % glyph to unicode \usemodule[bib] \setupbibtex[database={stereo}] \setuppublications[alternative=num,autohang=yes] \setuppublicationlist[before=\blank] \setupexternalfigures[directory=./img] \starttext bla \cite[moltonetal1998] bla \cite[andersonetal2007] \setuppublications[alternative=ams] \completepublications \completepublications[criterium=all] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MKIV and bib module
Hallo, I have discovered a problem with bib module in MKIV. Using \completepublications command typesets only the heading and no bib items. Numbers in citations are missing too. \placepublications and MKII works fine. example \enableregime[utf] \mainlanguage[cz] \input pdfr-def.mkii % glyph to unicode \usemodule[bib] \setupbibtex[database={stereo}] \setuppublications[alternative=num,autohang=yes] \setuppublicationlist[before=\blank] \setupexternalfigures[directory=./img] \starttext bla \cite[moltonetal1998] bla \cite[andersonetal2007] \setuppublications[alternative=ams] \completepublications \stoptext -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ 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] XITS fonts - second beta
Khaled Hosny wrote: On Mon, Jun 07, 2010 at 12:14:42AM +0200, Hans Hagen wrote: On 6-6-2010 9:43, Khaled Hosny wrote: I just uploaded a second beta of XITS fonts, this mainly introduces XITS text fonts, regular, bold, italic and bold italic. No changes to the math font. This release features also a rudimentary user guide. The text fonts provide to features over STIX fonts: * oldstyle figures, through 'onum' feature * text fractions, through 'frac' feature and: * sane filenames As usual, it is available from github: http://github.com/khaledhosny/xits-math/downloads ok, i adapted the typescripts Is there a chance this typescript gets into texlive? As I'm trying to get the font ready by the time of texlive2010, I think having the updated typescript will make installation instructions much simpler. I am sure we can squeeze in a typescript if it is just that, a single typescript. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XITS fonts - second beta
On Mon, Jun 07, 2010 at 12:14:42AM +0200, Hans Hagen wrote: > On 6-6-2010 9:43, Khaled Hosny wrote: > >I just uploaded a second beta of XITS fonts, this mainly introduces XITS > >text fonts, regular, bold, italic and bold italic. No changes to the > >math font. This release features also a rudimentary user guide. > > > >The text fonts provide to features over STIX fonts: > >* oldstyle figures, through 'onum' feature > >* text fractions, through 'frac' feature > > and: > > * sane filenames > > >As usual, it is available from github: > >http://github.com/khaledhosny/xits-math/downloads > > ok, i adapted the typescripts Is there a chance this typescript gets into texlive? As I'm trying to get the font ready by the time of texlive2010, I think having the updated typescript will make installation instructions much simpler. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] error in first-setup.sh
On 9-6-2010 3:30, Mojca Miklavec wrote: I have also noticed the complaint about missing texmf-project. It should be harmless, but it may be better not to make it look like an error. how about adding texmf-project and texmf-fonts (maybe with a dummy readme in the root) 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 - ___ 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] Kerning messed up for Minion Pro in ConTeXt 2010.06.09
Hi all, it looks like the kerning has gone weird for Minion Pro in the latest ConTeXt (this is the only font I could find with the problem, all others looked fine). I've attached a PDF to show the effect. -- Michael Murphy min_kern.pdf Description: Adobe PDF 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF Custom Page Numbering
Hello, while reading through the PDF to ISO-9075-1 (SQL99), I noticed something I had never seen before in a PDF: the page numbers displayed by Acrobat matched exactly the ones in the document ... the beginning was even numbered with roman numbers and the actual content started again at "Page 1". From a quick research it seems that this functionality is in PDF since Acrobat 4 (that should be PDF 1.3, right?) and is most likely called "Custom Page Numbering". It would be amazing if ConTeXt/LuaTeX supports that too - especially if you produce documents for screen reading. Unfortunately I don't have access to the PDF Specification currently to give you more info - so I don't even know for sure how that feature is officially called. Anyway, I hope that idea/suggestion/wish finds positive reactions ... and I somehow hope that it isn't actually too hard to implement :-) Best Regards, 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] error in first-setup.sh
On Wed, Jun 9, 2010 at 15:34, Michael Murphy wrote: > On 09/06/10 15:15, Andreas Schneider wrote: > > Seems I spoke too soon: I can indeed get hold of the latest version, but if > I want an older version (like --context=2010.06.24), I would like that version too :) :) :) :) > I run into the same > problem as luigi. And I do want an older version, since for some reason the > kerning is a bit screwed up on current. There are basically two problems. Problem nr. 1 with an easy solution: 1.) syncing luatools has been disabled if platform == 'mswin' then bin = bin:gsub("([a-zA-Z]):/", "/cygdrive/%1/") texroot = texroot:gsub("([a-zA-Z]):/", "/cygdrive/%1/") command = string.format("%s -t %s/texmf-context/scripts/context/lua/%s.lua %s/texmf-mswin/bin/", bin, texroot, script, texroot) else command = string.format("%s -tgo --chmod=a+x %s/texmf-context/scripts/context/lua/%s.lua %s/texmf-%s/bin/%s", bin, texroot, script, texroot, platform, script) end Hans, can you please re-enable syncing of luatools, but in case of non-windows taking %s/texmf-context/scripts/context/stubs/unix/%s instead of %s/texmf-context/scripts/context/lua/%s.lua and in case of windows check if that *.lua exists; if yes, copy it, else ignore it. It would be nice to keep support for at least the latest "ConTeXt current", at least until the next current is out. Michael, if you want to fix it manually, just copy the old version of luatools.lua from scripts/context/stubs/unix. The problem #2 is that despite my desire to have backward-compatible cnf file, apparently luatools is not able to read in the new format. A home-made solution: in texmf/web2c/texmfcnf.lua remove everything but the last line that sets TEXMFCACHE. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] error in first-setup.sh
> Seems I spoke too soon: I can indeed get hold of the latest version, but if I > want an older version (like --context=2010.06.24), I run into the same > problem as luigi. And I do want an older version, since for some reason the > kerning is a bit screwed up on current. confirm that with kerning best regards Bernhard ___ 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] error in first-setup.sh
On 09/06/10 15:15, Andreas Schneider wrote: luigi scarso wrote: On Wed, Jun 9, 2010 at 2:24 PM, Taco Hoekwater wrote: At least it seems ok now in a fresh install. I just did one of those, and there is only one thing that I noticed: I had to run 'texexec --make en' by hand. I don't know if that is normal? Everything else seems to work fine. Not here on my linux 32 bit box : MTXrun | run: mktexlsr sh: mktexlsr: not found /opt/luatex/minimals-beta-2010/bin/mtxrun:9270: cannot open tree:opt/luatex/minimals-beta-2010/tex/texmf-project/: No such file or directory but texmf-project exists Same here, but it can be "easily" circumvented by sourcing setuptex first. (in my case: source tex/setuptex&& sh first-setup.sh) But the stubs, or mtxrun, or whatever handles that usually indeed doesn't seem to set paths correctly anymore. On Windows I could have texworks just call context.exe and everything worked, now I have to make sure, setuptex.bat was executed first. Seems I spoke too soon: I can indeed get hold of the latest version, but if I want an older version (like --context=2010.06.24), I run into the same problem as luigi. And I do want an older version, since for some reason the kerning is a bit screwed up on current. -- Michael Murphy ___ 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] error in first-setup.sh
> MTXrun | run: mktexlsr > sh: mktexlsr: not found > > /opt/luatex/minimals-beta-2010/bin/mtxrun:9270: cannot open > tree:opt/luatex/minimals-beta-2010/tex/texmf-project/: No such > file or directory > but texmf-project exists Oh, right. I wanted to say that as well (but the most important thing was to get the update work at all). Hans, the platform isn't properly recognized any more: MTXrun | preset : TEXPATH => /Users/mojca/context/tex MTXrun | preset : TEXOS => /Users/mojca/context MTXrun | preset : TEXMFOS => /Users/mojca/context/tex//Users/mojca/context TEXOS should return "osx-64", not "/Users/mojca/context". In the long run I would really like to avoid that step (mtxrun guessing the platform), but at this moment it will be the easiest to get this fixed. I have also noticed the complaint about missing texmf-project. It should be harmless, but it may be better not to make it look like an error. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] error in first-setup.sh
luigi scarso wrote: > On Wed, Jun 9, 2010 at 2:24 PM, Taco Hoekwater wrote: >> At least it seems ok now in a fresh install. I just did one >> of those, and there is only one thing that I noticed: I had to >> run 'texexec --make en' by hand. I don't know if that is normal? >> >> Everything else seems to work fine. > > Not here on my linux 32 bit box : > > MTXrun | run: mktexlsr > sh: mktexlsr: not found > > /opt/luatex/minimals-beta-2010/bin/mtxrun:9270: cannot open > tree:opt/luatex/minimals-beta-2010/tex/texmf-project/: No such > file or directory > but texmf-project exists > > Same here, but it can be "easily" circumvented by sourcing setuptex first. (in my case: source tex/setuptex && sh first-setup.sh) But the stubs, or mtxrun, or whatever handles that usually indeed doesn't seem to set paths correctly anymore. On Windows I could have texworks just call context.exe and everything worked, now I have to make sure, setuptex.bat was executed first. Best Regards, 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] error in first-setup.sh
On Wed, Jun 9, 2010 at 2:24 PM, Taco Hoekwater wrote: > At least it seems ok now in a fresh install. I just did one > of those, and there is only one thing that I noticed: I had to > run 'texexec --make en' by hand. I don't know if that is normal? > > Everything else seems to work fine. Not here on my linux 32 bit box : MTXrun | run: mktexlsr sh: mktexlsr: not found /opt/luatex/minimals-beta-2010/bin/mtxrun:9270: cannot open tree:opt/luatex/minimals-beta-2010/tex/texmf-project/: No such file or directory but texmf-project exists -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Relative references to floats
Hello, is there currently (in MkIV) some way to have relative references to floats? I imagine something like "... as you can see \above[fig:somefigure]." which would print "... as you can see above." if the figure is above the current paragraph or "... as you can see below." if it is below. Maybe it's unusual to do that in books/papers, but I thought it might look better than to reference a page or a number if it is expected, that the figure is close by anyway. It would be nice if it could even go so far as to include page offsets ... "... as you can see on the next page" or "... as you can see two pages ahead". I have no real need to use this, it was just an idea to tidy up my text a bit (without risking wrong references when the layout changes and floats shift around). So if that is currently possible: awesome ... if not: no harm done :-) Best Regards, 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] Mutiple citations doesn't work with compress=no + interaction
On 09/06/10 13:02, Taco Hoekwater wrote: Michael Murphy wrote: Thanks for the code, but that turns out not to help. The problem seems to be when I want to have references in footnotes (see attached minimal example). Ok, now I see. Attached is a new version of min_bib_fn.tex that fixes citations in footnotes. However ... something totally weird happens in the current context and beta's: the footnote appears to be repeated inside the body text. For some reason I do not understand, \placepublications also seems to process the footnote list (and because there is no proper definition for handling them, rubbish appears on the top of the publication list). This problem is not caused by the \cite inside the \footnote, nor by the redefinition of \cite, it happens without those as well. Thanks, that works a treat. I also noticed the thing with the footnote, but it doesn't happen in my main document, so I wondered if it had something to do with the minimal setup. But you're right, it seems to always happen with \placepublications. Anyway, I've now modified things slightly so that I can still use the optional forms of \cite (like \cite[authoryear]), so my file now looks like \setupinteraction[state=start] \usemodule[bib] \setuppublications[refcommand=authoryears, criterium=all] \let\NORMALcite\cite \newif\ifSEEN \unexpanded\def\cite[#1]{\strictdoifnextoptionalelse{\NORMALcite[#1]}% {\domycite[#1]}} \def\domycite#1[#2]{\SEENfalse \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}% (\processcommalist[#2]\processitem )} \setupcite[authoryears][compress=no,left=,right=] \setupcite[authoryear][compress=no] ... Of course, the other disadvantage of this at present is that I don't get 'and' separating the last two references when I use \domycite. But I can live with that (on screen at least, for printing I can revert to the old behaviour). -- Michael Murphy ___ 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] error in first-setup.sh
Mojca Miklavec wrote: On Wed, Jun 9, 2010 at 11:01, Yury G. Kudryashov wrote: Could you please either fix it in beta, or post the patch to ML? Does it now work again? At least it seems ok now in a fresh install. I just did one of those, and there is only one thing that I noticed: I had to run 'texexec --make en' by hand. I don't know if that is normal? Everything else seems to work fine. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] error in first-setup.sh
On 09/06/10 14:02, Mojca Miklavec wrote: On Wed, Jun 9, 2010 at 11:01, Yury G. Kudryashov wrote: Could you please either fix it in beta, or post the patch to ML? Does it now work again? Mojca Works for me. -- Michael Murphy ___ 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] error in first-setup.sh
On Wed, Jun 9, 2010 at 11:01, Yury G. Kudryashov wrote: > > Could you please either fix it in beta, or post the patch to ML? Does it now work 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
Michael Murphy wrote: Thanks for the code, but that turns out not to help. The problem seems to be when I want to have references in footnotes (see attached minimal example). Ok, now I see. Attached is a new version of min_bib_fn.tex that fixes citations in footnotes. However ... something totally weird happens in the current context and beta's: the footnote appears to be repeated inside the body text. For some reason I do not understand, \placepublications also seems to process the footnote list (and because there is no proper definition for handling them, rubbish appears on the top of the publication list). This problem is not caused by the \cite inside the \footnote, nor by the redefinition of \cite, it happens without those as well. Best wishes, Taco min_bib_fn.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
On 09/06/10 11:24, Taco Hoekwater wrote: Michael Murphy wrote: On 08/06/10 20:47, taco wrote: It also only happens in mkiv, something is broken there. As is usual in the mkiv version of the bib module, I can't figure it out :( However, here is a workaround: ... > ... and indeed, this works for the minimal example, but in my actual document, I get an error: ! Undefined control sequence. \dododescriptioncomponent ...entdescriptioncoding \s!tex \fi \ifx and I have no idea why. I guess I'll play around some more. Wild guess: can you try with this definition in the setup part of your document? \unexpanded\def\dodescriptioncomponent {\doifelsedescriptioncomponent \nododescriptioncomponent\dododescriptioncomponent} Best wishes, Taco Thanks for the code, but that turns out not to help. The problem seems to be when I want to have references in footnotes (see attached minimal example). -- Michael Murphy \setuppublicationlist[samplesize={CKRGO08},totalnumber=3] \startpublication[k=Balachandran2008,t=article, a={{Balachandran},{Gong}},y=2008,o={10.1103/PhysRevA.77.012303}, n=1,s=BG08] \artauthor[]{Vinitha}[V.]{}{Balachandran} \artauthor[]{Jiangbin}[J.]{}{Gong} \pubyear{2008} \arttitle{Adiabatic quantum transport in a spin chain with a moving potential} \journal{Phys. Rev. A} \volume{77} \issue{1} \pages{012303} \doi{10.1103/PhysRevA.77.012303} \stoppublication \startpublication[k=Borzi2002,t=article, a={{Borz\`i},{}},y=2002, n=2,s=BSH02] \artauthor[]{Alfio}[A.]{}{Borz\`i} \artauthor[]{Georg}[G.]{}{Stadler} \artauthor[]{Ulrich}[U.]{}{Hohenester} \pubyear{2002} \arttitle{Optimal quantum control in nanostructures: Theory and application to a generic three-level system} \journal{Phys. Rev. A} \volume{66} \stoppublication \startpublication[k=Bose2007,t=article, a={{Bose}},y=2007,o={http://dx.doi.org/10.1080/00107510701342313}, n=3,s=Bos07] \artauthor[]{Sougato}[S.]{}{Bose} \pubyear{2007} \arttitle{Quantum communication through spin chain dynamics: an introductory overview} \journal{Contemporary Physics} \volume{48} \issue{1} \pages{13} \doi{http://dx.doi.org/10.1080/00107510701342313} \stoppublication \setupinteraction[state=start] \usemodule[bib] \setuppublications[refcommand=authoryears] \let\NORMALcite\cite \newif\ifSEEN \def\cite#1[#2]{\SEENfalse \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}% (\processcommalist[#2]\processitem )} \unexpanded\def\dodescriptioncomponent {\doifelsedescriptioncomponent \nododescriptioncomponent\dododescriptioncomponent} \setupcite[authoryears][compress=no,left=,right=] \starttext I can cite single authors, like this \cite[Balachandran2008], and now I can also do more than one\footnote{but unfortunately I get errors when I have citations \cite[Balachandran2008] in footnotes}% citation \cite[Balachandran2008,Borzi2002,Bose2007]. \blank \placepublications \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
Michael Murphy wrote: On 08/06/10 20:47, taco wrote: It also only happens in mkiv, something is broken there. As is usual in the mkiv version of the bib module, I can't figure it out :( However, here is a workaround: ... > ... and indeed, this works for the minimal example, but in my actual document, I get an error: ! Undefined control sequence. \dododescriptioncomponent ...entdescriptioncoding \s!tex \fi \ifx and I have no idea why. I guess I'll play around some more. Wild guess: can you try with this definition in the setup part of your document? \unexpanded\def\dodescriptioncomponent {\doifelsedescriptioncomponent \nododescriptioncomponent\dododescriptioncomponent} 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
On 08/06/10 20:47, taco wrote: It also only happens in mkiv, something is broken there. As is usual in the mkiv version of the bib module, I can't figure it out :( However, here is a workaround: ... > ... and indeed, this works for the minimal example, but in my actual document, I get an error: ! Undefined control sequence. \dododescriptioncomponent ...entdescriptioncoding \s!tex \fi \ifx and I have no idea why. I guess I'll play around some more. -- Michael Murphy ___ 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] error in first-setup.sh
Mojca Miklavec wrote: > On Tue, Jun 8, 2010 at 16:50, Yury G. Kudryashov wrote: >> Taco Hoekwater wrote: >> >>> luigi scarso wrote: On my linux box32bit $>bash first-setup.sh stops with >>> Beta is a tad unstable at the moment, should be better in an hour or so. >> It seems that the real problem is in setup/linux-64/bin files which are >> rsync'ed by first-run.sh before running mtxrun. So, it is not even >> possible to install an old ConTeXt using minimals. > > It should be fixed soon (Hans already sent a patch that fixes it), but > in the meantime you may comment out the line that syncs mtxrun and > take an older mtxrun.lua -> mtxrun from archive (for example from > current). > > I'm a bit afraid that the new texmfcnf.lua that is needed will break > the "current" though. Yes, it breaks "current". Could you please either fix it in beta, or post the patch to ML? ___ 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] Inspecting font data with Lua
On 9-6-2010 10:24, Oliver Buerschaper wrote: Hi everyone, this has probably been asked before: how can I use the Lua font loading mechanism to inspect an OTF font? I'm mainly interested in retrieving glyph data such as its shape or kerning properties... please advise :-) there is no access to the glyph shape 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 - ___ 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] Inspecting font data with Lua
On Wed, Jun 9, 2010 at 10:24 AM, Oliver Buerschaper wrote: > Hi everyone, > > this has probably been asked before: how can I use the Lua font loading > mechanism to inspect an OTF font? I'm mainly interested in retrieving glyph > data such as its shape or kerning properties... please advise :-) It's not an answer to your mail, but I find showttf from fontforge to compare results of my luatex script about fonts showttf it's in cvs tree, see http://fontforge.cvs.sourceforge.net/viewvc/fontforge/fontforge/fonttools/ -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Inspecting font data with Lua
Hi everyone, this has probably been asked before: how can I use the Lua font loading mechanism to inspect an OTF font? I'm mainly interested in retrieving glyph data such as its shape or kerning properties... please advise :-) Many thanks, Oliver ___ 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 ___