Re: [NTG-context] xml cross-references in lua?
On 09/11/2012 08:18 PM, Hans Hagen wrote: If the number of bib items is not that large hashing does not save much. (In x-xfdf.mkiv you can see another example). \starttext \startbuffer[demo] document bibitem xml:id=hagen2011 authorHans Hagen/author titleThe Meaning of Life Is 42/title journalThe Rhetoric of Mathematics/journal date2011/date /bibitem bibitem xml:id=hagen2012 authorHans Hagen/author titleThe New Meaning is Now 43/title journalHigh Energy Metaphysics/journal date2012/date /bibitem text pThis has been successfully proven in papers by bib ref=#hagen2011/ and bib ref=#hagen2012/./p /text /document \stopbuffer \startxmlsetups xml:define \xmlsetsetup{#1}{*}{xml:*} \stopxmlsetups \startxmlsetups xml:document \xmlall{#1}{/text} \stopxmlsetups \startxmlsetups xml:text \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1} \par \stopxmlsetups \startxmlsetups xml:bib \BibAuthor{#1}{\xmlatt{#1}{ref}} \stopxmlsetups \startxmlsetups xml:author [[\xmlflush{#1}]] \stopxmlsetups \def\BibAuthor#1#2{[1:\xmlfirst{whatever}{/document/bibitem[@xml:id==string.sub('#2',2)]/author}]} \xmlregistersetup{xml:define} \xmlprocessbuffer{whatever}{demo}{} \startluacode userdata = userdata or { } userdata.bibitems = { } \stopluacode \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:bibitem \ctxlua{userdata.bibitems[\letterhash\xmlatt{#1}{xml:id}] = #1} \stopxmlsetups \def\BibAuthor#1#2{[2:\xmlfirst{\cldcontext{userdata.bibitems['#2']}}{/author}]} \xmlprocessbuffer{whatever}{demo}{} \stoptext (I ran into a recently introduced side effect of an optimization so I'll generate you a new beta. Older versions should work anyway as no special trickery is used.) Hans Ah, wonderful, Hans, I can play with this! Thanks a lot for the swift reply and for the help, this will get me going! All best 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Enabling PDF bookmarks creates links in red
Hello, I have been playing with the creation of PDF bookmarks and found this page here: http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers So I have tried this (and a few variations of it): % Enable PDF bookmarks \setupinteraction[state=start] % Make chapter, section bookmarks visible when opening document \placebookmarks[chapter, section, subsection][chapter, section] \setupinteractionscreen[option=bookmark] The problem is that all of my cross-references (\in and \about) produce links (which is great) in bold and red, which is not great. I don't want my cross-references marked up in any way at all as I find that quite unappealing when printed. Can I turn that special mark-up off somehow and have normally formatted links instead? Thank you, Malte. ___ 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] Enabling PDF bookmarks creates links in red
Am 12.09.2012 um 08:37 schrieb Malte Stien ma...@stien.de: Hello, I have been playing with the creation of PDF bookmarks and found this page here: http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers So I have tried this (and a few variations of it): % Enable PDF bookmarks \setupinteraction[state=start] % Make chapter, section bookmarks visible when opening document \placebookmarks[chapter, section, subsection][chapter, section] \setupinteractionscreen[option=bookmark] The problem is that all of my cross-references (\in and \about) produce links (which is great) in bold and red, which is not great. I don't want my cross-references marked up in any way at all as I find that quite unappealing when printed. Can I turn that special mark-up off somehow and have normally formatted links instead? Add \setupinteraction[style=,color=contrastcolor=] to your document which disables the style/color formatting for the hyperlinks. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Line break in tables
Hi, How do I force a line break in a tabulate table cell? I have tried \par, \\ and \crlf none of which seem to do the trick. Thank you, Malte. ___ 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] Can’t use ctx files
Hi Hans, when I try to load a ctx file I get a error message from mtxrun. Example: context --ctx=s-mod.ctx tabl-ntb.mkiv Error message: mtx-context | jobname: tabl-ntb.mkiv mtx-context | ctxname: s-mod.ctx/Users/wolf/context/beta/tex/texmf-osx-64/bin/mtxrun:8420: attempt to index local 'settings' (a nil value) 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] Line break in tables
Am 12.09.2012 um 08:56 schrieb Malte Stien ma...@stien.de: Hi, How do I force a line break in a tabulate table cell? I have tried \par, \\ and \crlf none of which seem to do the trick. You need a p-column to have line breaks in a cell. \starttext \starttabulate[|p(3cm)|p|] \NC 1\\2 \NC 1\\2\\3 \NC\NR \stoptabulate \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: multiple categories
On 11 Sep 2012, at 17:18 , Andreas Mang m...@imt.uni-luebeck.de wrote is there a way to split the bibliography (at the end of the document with bibtex support) in several categories, which have different headings (similar to what latexs' multibib or splitbib does)? Hi Andreas, As long as no official solution, worthy of ConTeXt, is available, perhaps you could use the solution that works for me. 1. Place the two categories of references in two separate .bib-files and process them to give you the two corresponding .bbl-files 2. Make a chapter Bibliography (or whatever you like to call it) with two sections, in which you input the respective .bbl-file plus a list of \nocite 's for the items you want. My .tex-file, which works with mkii and mkiv, is like this: --- \setuppublications[alternative=apa,sorttype=bbl] \setuphead[chapter][number=no] \setuphead[section][number=no] \starttext \chapter{References} \section{Articles, Books and Theses} \input TD-Bib-Bks.bbl \input TD-Bks-nocite.tex \placepublications[criterium=cite] \section{Treatises} \input TD-Bib-T.bbl \input TD-T-nocite.tex \placepublications[criterium=cite] \section{Music} \input TD-Bib-mus.bbl \input TD-mus-nocite.tex \placepublications[criterium=cite] \stoptext --- I hope it helps. Best regards, Robert Blackstone ___ 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] \items is buggy in mkiv
Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext Best regards: OK ___ 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] Steps in presentation
Hello, I tried to use some steps in a presentation. In the following conversation http://www.mail-archive.com/ntg-context@ntg.nl/msg53524.html, Wolfgang says that we can use the pre-60 module. So I tried this snippet: \usemodule[pre-stepwise] \starttext \StartSteps \startitemize \item one \FlushStep \item two \FlushStep \item three \FlushStep \stopitemize \StopSteps \stoptext But it does not compile: ConTeXt ver: 2012.09.11 20:36 MKIV fmt: 2012.9.12 int: english/english system cont-new.mkiv loaded (/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) fontslatin modern fonts are not preloaded languageslanguage en is active (pre60.tex resolversmodules loaded: 'pre-stepwise' (/opt/context-minimals/texmf-context/tex/context/base/s-pre-60.mkiv fontsbeware: no fonts are loaded yet, using 'lm mono' in box (/opt/context-minimals/texmf-context/tex/context/base/java-imp-stp.mkiv) interactions javascripts loaded: library 'stp' metapost loaded: library 'nav' (/opt/context-minimals/texmf-context/tex/context/base/meta-imp-nav.mkiv)){/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map}{/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded !LuaTeX error: There should have been a lua node here, not an object with type string! == Fatal error occurred, no output PDF file produced! Is there something broken in recent release of conteXt? By the way It seems there is no Rawsteps module anymore but it still is in the wiki. Is there is something like a bugtracker for conteXt, in order to signal when a feature is not working or outdated and signal when it is back (or definitly depreciate)? (it would be a complementary tool for the mailing list) ___ 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] References to annotations broken, mkiv
Thanks again for the excellent help! Dominik ___ 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] Lucida fonts
best is to upgrade the lucida to opentype .. way less hassle and also more complete Would I have to pay for the OpenType versions since I have already purchased the Type1 versions? Troy ___ 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] Lucida fonts
On 12-9-2012 14:05, Troy Henderson wrote: best is to upgrade the lucida to opentype .. way less hassle and also more complete Would I have to pay for the OpenType versions since I have already purchased the Type1 versions? yes, but the fonts are relatively cheap (esp for members) and you get a lot 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] Change color of EPS file.
Hello, I have a EPS file wich contains black lines and no background. The background of my presentation is colored, so I would like to put this figure in white. I tried a \startcolor … \stopcolor environement without succed. Is there a way to do so? In last resort I can put a white background with: \placefigure[left,none]{caption}{\externalfigure[demo-b][background=color,backgroundcolor=white]} Best regards ___ 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] Lucida fonts
yes, but the fonts are relatively cheap (esp for members) and you get a lot relatively is the keyword here as they are the same price that I paid for the Type 1 fonts 3 years ago. So, according to the store website, I essentially have to buy them again. Troy ___ 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] Strange bug with reversed itemize
Hi, For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? 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] Steps in presentation (pol stra)
Dear Pol stra, I run your sample and got the same error. After changing pre-stepwise to pre-60, I run it again, but the same error occurs. !LuaTeX error: There should have been a lua node here, not an object with type string! == Fatal error occurred, no output PDF file produced! I checked my file which include \StartSteps … \StopSteps and got the same error. It was working well before. Unfortunately, I don't know what is the problem. Experts will answer to it soon. My ConTeXt version is : This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) … ConTeXt ver: 2012.09.04 18:08 MKIV fmt: 2012.9.5 int: english/english Best regards, Dalyoung ___ 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] Strange bug with reversed itemize
What your got is already reversed, isn't it? On Thu, Sep 13, 2012 at 8:34 AM, Aditya Mahajan adit...@umich.edu wrote: Hi, For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? 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 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/http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange bug with reversed itemize
On Thu, Sep 13, 2012 at 8:34 AM, Aditya Mahajan adit...@umich.edu wrote: Hi, For some reason, the numbering in itemize is affected by the value of userpage! \setupuserpagenumber[start=12] \starttext \startitemize[n,reverse] \item One \item Two \stopitemize \stoptext With ConTeXt 2012.09.11 20:36 I get 13. One 12. Two Any ideas? What your got is already reversed, isn't it? Yes, but setting the page number to 12 should not start the item numbers from 12! 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 ___