[NTG-context] Broken \setupexternalfigures in mkIV ?
The setupexternalfigures seems to be broken. In the example below, the first \placefigure doesnt work, but the second with the entire path does. I'm running the latest minimals via the GUI installer on winxp. Best regards Reimund Trost Example: % mptest.tex: \starttext \setupcolors [state=start] \setupexternalfigures [directory={fig}] \placefigure [top] [fig:three-point-setup] {This is the caption.} {\externalfigure[figures.1]} \placefigure [top] [fig:three-point-setup] {This is the caption.} {\externalfigure[fig/figures.1]} \stoptext % fig/figures.mp: beginfig(1) pickup pencircle scaled 5bp; draw (0,0) withcolor (1,0,0); endfig; end ___ 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] Multiple citations at one position
Dne 19.5.2010 23:35, Jean Magnan de Bornier napsal(a): Le 19 mai à 22:01:25 Stefan Müller écrit notamment: | Hi, | I am citing several references at one position in my document and I was | wondering if there is a way to get something like "[1, 3, 9 - 11]" instead of | "[1] [3] [9] [10] [11]" (what I would get by using "\cite[ref1] \cite[ref3] | \cite[ref9] ..."). Unfortunately I can't find some deeper information about | \cite or \setupcite. I'd appreciate any suggestions. | Thanks in advance, | Stefan. Did you try "\cite[ref1,ref3,... ref9]" ? Yes, it is OK. I am using in MKIV for multiple citation \cite[ref1,ref3,... ref9] Last delimiter is setting due commands \setupcite, for example default setting (for num style) is \setupcite[num][lastpubsep={ and }] I am using \setupcite[num][lastpubsep={,\,}] ... More informations about using bib module (\usemodule[bib] \usemodule[bibltx]) is in Taco's document on: http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/bib/bibmod-doc.pdf Jaroslav ___ 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] Multiple citations at one position
On 19-5-2010 11:14, Aditya Mahajan wrote: If the internal mechanism is using XML, then CSL can be used for styles. http://citationstyles.org/ (I don't know much about it other than the fact that it exists and is used by Zotero) i took a quick look at the ieee one and it looks quite dooable (after all, one quickly arrives at somethign with delimiters and separators and conditions and so ... always funny to see xml being used with conditionals (always looks weird) 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] Multiple citations at one position
Le 19 mai à 22:01:25 Stefan Müller écrit notamment: | Hi, > | I am citing several references at one position in my document and I was | wondering if there is a way to get something like "[1, 3, 9 - 11]" instead of | "[1] [3] [9] [10] [11]" (what I would get by using "\cite[ref1] \cite[ref3] | \cite[ref9] ..."). Unfortunately I can't find some deeper information about | \cite or \setupcite. I'd appreciate any suggestions. > | Thanks in advance, | Stefan. Did you try "\cite[ref1,ref3,... ref9]" ? -- Jean ___ 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] Multiple citations at one position
On Wed, 19 May 2010, Hans Hagen wrote: On 19-5-2010 10:01, Stefan Müller wrote: Hi, I am citing several references at one position in my document and I was wondering if there is a way to get something like "[1, 3, 9 - 11]" instead of "[1] [3] [9] [10] [11]" (what I would get by using "\cite[ref1] \cite[ref3] \cite[ref9] ..."). Unfortunately I can't find some deeper information about \cite or \setupcite. I'd appreciate any suggestions. I'm rewriting the bibtex code (which is boring as I have to figure out what it's about, even more as most bib test files are a mess. For the moment it will run alongside the traditional mechanism but the new one will have a compatibility mode at some point; some characteristics: - multiple bibtex sessions and mixed styles in one document - extensive filtering of entries (using the xml subsystem) - a different method to set up the styles (apa etc) - a bit of tracing - access to the full database (or multiple databases) - no more need for the bibtex program - new functionality demanding on user input I got a first version working but as I don't use bibliographies myself it needs a bit of motivation to finish it soon. I'll probably ask others to prepare the other styles but first I need to clean up some rough edges. If the internal mechanism is using XML, then CSL can be used for styles. http://citationstyles.org/ (I don't know much about it other than the fact that it exists and is used by Zotero) 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] Multiple citations at one position
On 19-5-2010 10:01, Stefan Müller wrote: Hi, I am citing several references at one position in my document and I was wondering if there is a way to get something like "[1, 3, 9 - 11]" instead of "[1] [3] [9] [10] [11]" (what I would get by using "\cite[ref1] \cite[ref3] \cite[ref9] ..."). Unfortunately I can't find some deeper information about \cite or \setupcite. I'd appreciate any suggestions. I'm rewriting the bibtex code (which is boring as I have to figure out what it's about, even more as most bib test files are a mess. For the moment it will run alongside the traditional mechanism but the new one will have a compatibility mode at some point; some characteristics: - multiple bibtex sessions and mixed styles in one document - extensive filtering of entries (using the xml subsystem) - a different method to set up the styles (apa etc) - a bit of tracing - access to the full database (or multiple databases) - no more need for the bibtex program - new functionality demanding on user input I got a first version working but as I don't use bibliographies myself it needs a bit of motivation to finish it soon. I'll probably ask others to prepare the other styles but first I need to clean up some rough edges. So, in due time we can do such things but you need a bit of patience. 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] Multiple citations at one position
Hi, I am citing several references at one position in my document and I was wondering if there is a way to get something like "[1, 3, 9 - 11]" instead of "[1] [3] [9] [10] [11]" (what I would get by using "\cite[ref1] \cite[ref3] \cite[ref9] ..."). Unfortunately I can't find some deeper information about \cite or \setupcite. I'd appreciate any suggestions. Thanks in advance, Stefan. ___ 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] \ldots
On Wed, 19 May 2010, Jan Pohanka wrote: Hello, I discovered that with one font the \ldots command typesets three colons (:::). I found these lines in plain.tex No, for mkii you should look at math-*.mkii files. The relevant file in this case is math-tex.mkii, which defines \definemathsymbol [ldotp] [punct] [mi] ["3A] saying the \ldots uses character on position 3A. In the font (type 1), there is really the semicolon on this position. How to make context to use proper character (\period), which is on position 2E in the font without changing this file? You need to define a new math encoding (see math-ams.mkii or math-eul.mkii). Or is it possible to use a special glyph for horizontal ellipsis with \ldots command? (It exists in the font) \definemathsymbol [ldots] [inner] [mi] ["XX] where XX is the location of the glyph. 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] Help wanted for layers and pagebackgrounds
Dear all, I need to have a special layout, in which a number (which is not a page number nor a section number or such) is printed in big size on the right when the pagenumber is even (that is on a leftpage) and printed on the left when the pagenumber is odd (that is a rightpage). With the help of examples gleaned here and there in the manuals, I came up with the following minimal example: begin \setupcolors[state=start] \setuppagenumbering[location=footer,alternative=doublesided] \definelayer[NumberRight][width=\paperwidth,height=\paperheight] \definelayer[NumberLeft][width=\paperwidth,height=\paperheight] %\showframe \define[1]\myNumber{% \setlayer[NumberRight][preset=righttop,voffset=45mm,hoffset=3mm,reset] % without reset the problem is the same {\offset[location=rt,rightoffset=-3mm] {\tlap{\startcolor[darkgreen] \switchtobodyfont[ss] \scale[height=30mm,width=22mm]{#1} \stopcolor} } } \setlayer[NumberLeft][preset=lefttop,voffset=45mm,hoffset=25mm,reset] % without reset the problem is the same {\offset[location=tl,leftoffset=-3mm] {\tlap{\startcolor[darkgreen] \switchtobodyfont[ss] \scale[height=30mm,width=22mm]{#1} \stopcolor} } } } % Maybe the problem is here? \setupbackgrounds[leftpage] [background=NumberRight] \setupbackgrounds[rightpage][background=NumberLeft] % \starttext \dorecurse{4}{\myNumber{#1}\input knuth.tex \page} \dorecurse{4}{\myNumber{#1}\dorecurse{5}{\input knuth.tex }\page} \stoptext % end The problem is that in some cases (for instance on pages 2, 3, 4 of the above example) the big numbers are overprinted. In particular the behavior seems not to be the same on all pages, that is after the two \dorecurse above. I guess my lack of knowledge in using and setting layers is the cause, but can anyone tell me please what am I doing wrong? This problem arises in a document in which I have to use mkiv, but in mkii one ha the same result. Thanks in advance and 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] Problem with identation
Hello, \setupfloats[indentnext=yes] has no effect in the example below? I expect the line 6 above figure to be indented. == \setupindenting[yes,7mm] \setupfloats[indentnext=yes] \starttext \input tufte \input knuth \placefigure [bottom,top][] {Title} {\externalfigure[cow][width=0.6\textwidth]} \input tufte \input knuth \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] \ldots
2010/5/19 Jan Pohanka : > Hello, > I discovered that with one font the \ldots command typesets three colons > (:::). > > I found these lines in plain.tex > > \mathchardef\ldotp="613A % ldot as a punctuation mark > \def\ldots{\mathinner{\ldotp\ldotp\ldotp}} Are you sure that we are using plain.tex ? In mkii \ldots ->\dohandlemathtoken {ldots} while in mkiv \ldots ->\Umathchar "0 "0 "2026 -- 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] \ldots
Hello, I discovered that with one font the \ldots command typesets three colons (:::). I found these lines in plain.tex \mathchardef\ldotp="613A % ldot as a punctuation mark \def\ldots{\mathinner{\ldotp\ldotp\ldotp}} saying the \ldots uses character on position 3A. In the font (type 1), there is really the semicolon on this position. How to make context to use proper character (\period), which is on position 2E in the font without changing this file? Or is it possible to use a special glyph for horizontal ellipsis with \ldots command? (It exists in the font) best regads Jan -- Ing. Jan Pohanka Department of Measurement Faculty of Electrical Engineering Czech Technical University Technická 2, 16627 Praha 6 tel. 224352058 email: poha...@fel.cvut.cz ___ 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] math alignment broken? (was \startmathalignment vertical spacing)
Alan BRASLAU wrote: Is \startformula\startalign\stopalign\stopformula broken in context mkiv? After just updating the minimals, I now get (using the example below): See this thread: http://archive.contextgarden.net/message/20100513.211849.e7079712.en.html There will be a new current soon, fixing this and a host of other bugs. 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 ___
[NTG-context] math alignment broken? (was \startmathalignment vertical spacing)
Is \startformula\startalign\stopalign\stopformula broken in context mkiv? After just updating the minimals, I now get (using the example below): ! Missing $$ inserted. \Ustopdisplaymath \stopdisplaymath ...opinnermath \Ustopdisplaymath \par \afterdisplayspace \p... \dostopformula ...eter \c!alternative \v!formula } \nonoindentation \checknex... l.5 \stopalign \stopformula Alan On Wednesday 31 March 2010 18:26:47 Aditya Mahajan wrote: > On Wed, 31 Mar 2010, Troy Henderson wrote: > > Is there any way to change the amount of vertical space produced by > > \NR within \startmathalignment ... \stopmathalignment? > > There is no such high-level interface. You will have to resort to a > low-level \openup. > > \starttext > \startformula \startalign >\NC a \NC = b \NR >\NC c \NC = d \NR > \stopalign \stopformula > > \startformula \openup 50pt \startalign >\NC a \NC = b \NR >\NC c \NC = d \NR > \stopalign \stopformula > > \startformula \startalign >\NC a \NC = b \NR >\NC c \NC = d \NR > \stopalign \stopformula > \stoptext > > 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] footnote in TABLE
Am 19.05.10 11:21, schrieb Vladimir Lomov: Both methods work fine (preamble is part of document before \starttext I guess). Yes, before \starttext or in a environment file. Do I understand it correctly that TABLE is NOT a float? It's a float when you write it in \placetable or any other \place... command. 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] footnote in TABLE
Thanks both Wolfgang and Vianney. ** Wolfgang Schuster [2010-05-19 10:42:19 +0200]: > Am 19.05.10 10:11, schrieb Vladimir Lomov: >>Hi. >>Am I right that footnote don't work inside TABLE? >>Example: >> >>\starttext >>Interaction between footnote and TABLE. >>\bTABLE >>\bTR \bTD This is first column \eTD \bTD This is second column\footnote{More >>convenient way to index as $a_{12}$ --- row and column}\eTD \eTR >>\bTR \bTD This is second row \eTD \bTD This is cell in second row and second >>column\eTD \eTR >>\eTABLE >>\stoptext >> >>In table there is a mark (i.e. superscripted 1) but there is no >>text. > Write in the table '\postponenotes\footnote{...}' or use > \automigrateinserts in preamble > but for floats use localfootnotes. Both methods work fine (preamble is part of document before \starttext I guess). Do I understand it correctly that TABLE is NOT a float? I played with \{start,stop}locafootnotes, \placelocafootnotes; \postponenotes; \automigrateinserts and \footnotetext -- \note: - \postponenotes: works as footnote in text; (footnoteTABLE3) - \automigrateinserts: works too but result looks like there are two columns (word 'column' is hyphenated); (footnoteTABLE4) - \{start,stop}localfootnote: this gives a big gap between number and text in note; (footnoteTABLE2) - \footnotetext -- \note: works as footnote in text. (footnoteTABLE) >>P.S. I use ctx extension for context (mkiv) files. > Use *.tex for your files, the ctx-extension for preprocessing files, > see http://pragma-ade.com/general/manuals/xmanipulate.pdf OK, I'll change my files and templates. --- WBW, Vladimir Lomov -- People often find it easier to be a result of the past than a cause of the future. footnoteTABLE.ctx Description: chemical/ctx footnoteTABLE2.ctx Description: chemical/ctx footnoteTABLE3.ctx Description: chemical/ctx footnoteTABLE4.ctx Description: chemical/ctx ___ 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] footnote in TABLE
Am 19.05.10 10:11, schrieb Vladimir Lomov: Hi. Am I right that footnote don't work inside TABLE? Example: \starttext Interaction between footnote and TABLE. \bTABLE \bTR \bTD This is first column \eTD \bTD This is second column\footnote{More convenient way to index as $a_{12}$ --- row and column}\eTD \eTR \bTR \bTD This is second row \eTD \bTD This is cell in second row and second column\eTD \eTR \eTABLE \stoptext In table there is a mark (i.e. superscripted 1) but there is no text. Write in the table '\postponenotes\footnote{...}' or use \automigrateinserts in preamble but for floats use localfootnotes. Thanks in advance, Vladimir. P.S. I use ctx extension for context (mkiv) files. Use *.tex for your files, the ctx-extension for preprocessing files, see http://pragma-ade.com/general/manuals/xmanipulate.pdf 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] footnote in TABLE
You may want to try localfootnotes. Have a look at the first example of http://wiki.contextgarden.net/Footnotes Regards, Vianney ___ 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] footnote in TABLE
Hi. Am I right that footnote don't work inside TABLE? Example: \starttext Interaction between footnote and TABLE. \bTABLE \bTR \bTD This is first column \eTD \bTD This is second column\footnote{More convenient way to index as $a_{12}$ --- row and column}\eTD \eTR \bTR \bTD This is second row \eTD \bTD This is cell in second row and second column\eTD \eTR \eTABLE \stoptext In table there is a mark (i.e. superscripted 1) but there is no text. Thanks in advance, Vladimir. P.S. I use ctx extension for context (mkiv) files. -- MS-DOS must die! ___ 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 ___