Re: [NTG-context] placeinitial broken (mkiv)?
Hi Wolfgang. Thanks for looking into this. Am Jan 23, 2013 um 8:25 AM schrieb Wolfgang Schuster : > > Am 23.01.2013 um 08:16 schrieb Andreas Mang : > >> Hi there, >> >> the example from the garden (http://wiki.contextgarden.net/Initials; with >> reference to "[NTG-context] Lettrine not Working as Expected") does not work >> for me: >> >> minimal >> \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3] >> % known parameters: font, distance, state, n, command >> >> \starttext >> \placeinitial \input knuth >> \stoptext >> minimal >> >> ConTeXt ver: 2013.01.13 23:10 MKIV fmt: 2013.1.17 >> >> Is there a problem or am I doing something wrong?! > > What doesn’t work, do you get a error message or is the output wrong? > > When I process the example I get a pdf with a red T as initial. > > ConTeXt ver: 2013.01.21 18:18 MKII fmt: 2013.1.21 int: english/english Sorry for being imprecise. I've used MKIV. I gave it another try and now I also get the correct result (after getting the plain text without a big red "T" for a couple of times). I wonder how you managed to heal my local installation ;) So, sorry for wasting your time and for being stupid, too. I don't know what I've been doing. Time to go on holidays. Cheers 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 ___
[NTG-context] Bug in reference to sections
Hi Hans, I noticed that with the latest mkiv (version 2013.01.22 18:33 MKIV fmt: 2013.1.22) when the sections have no numbers two « ! » are printed and this behavior is new: with previous versions when invoking for instance \in{other section}[sec:other] there used to be a link to the "other section" and no « ! ! ». I understand that there has been a change in this behavior, but is there a way to suppress the two « ! ! »? Here is a minimal example: begin bug-reference.tex \setupinteraction[state=start] \setuphead[section][number=no] \starttext \section{First Section} \input knuth.tex See the \in{other section}[sec:other] below. \page \section[sec:other]{\bf Second Section} Here is another section. \input ward.tex \setuphead[section][number=yes] \section{Third Section} \input knuth.tex See the \in{other section}[sec:other-2] below. \page \section[sec:other-2]{\bf Fourth Section} Here another section. \input ward.tex \stoptext end bug-reference.tex 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 ___
Re: [NTG-context] What is the easiest way to have multi lines in some of the cells in a table?
Am 23.01.2013 um 04:29 schrieb 土卜皿 : > hi,all > my question as title described,Now I used the following method: > > \starttext > \placetable[here][tab:multilinesinonecell]{Multi Lines in > One Cell} > \starttable[|c|c|c|][textwidth=8.8cm] > \HL > \NC \JustLeft FIRST COL \NC \JustCenter \bf SECOND COL \NC\SR\HL > \NC \JustLeft first line \NC \JustLeft one line in cell \NC\MR > \HL > \NC \JustLeft second line \NC \JustLeft first line in second line's 2nd col > \NC\MR > \NC\NC \JustLeft second line in second line's > 2nd col \NC\MR > \HL > \NC \JustLeft third line \NC \JustLeft third line's 2nd col \NC\LR > \HL > \stoptable > \stoptext You need a “p” column to have paragraphs in a columns. You can also use natural tables which paragraphs aren’t a problem. \starttext \placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell} {\starttable[|l|p(5cm)|][textwidth=8.8cm] \HL \NC \bf FIRST COL \NC \JustCenter \bf SECOND COL \NC\SR \HL \NC first line\NC one line in cell \NC\MR \HL \NC second line \NC first line in second line's 2nd col \par second line in second line's 2nd col \NC\MR \HL \NC third line\NC third line's 2nd col \NC\LR \HL \stoptable} \placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell} {\setupTABLE[c][1][width=3.3cm] \setupTABLE[c][2][width=5.5cm] \bTABLE[frame=off,topframe=on,bottomframe=on] \bTR[align=middle] \bTH FIRST COL \eTH \bTH SECOND COL \eTH \eTR \bTR \bTD first line \eTD \bTD one line in cell \eTD \eTR \bTR \bTD second line \eTD \bTD first line in second line's 2nd col \par second line in second line's 2nd col \eTD \eTR \bTR \bTD third line \eTD \bTD third line's 2nd col \eTD \eTR \eTABLE} \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] placeinitial broken (mkiv)?
Am 23.01.2013 um 08:16 schrieb Andreas Mang : > Hi there, > > the example from the garden (http://wiki.contextgarden.net/Initials; with > reference to "[NTG-context] Lettrine not Working as Expected") does not work > for me: > > minimal > \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3] > % known parameters: font, distance, state, n, command > > \starttext > \placeinitial \input knuth > \stoptext > minimal > > ConTeXt ver: 2013.01.13 23:10 MKIV fmt: 2013.1.17 > > Is there a problem or am I doing something wrong?! What doesn’t work, do you get a error message or is the output wrong? When I process the example I get a pdf with a red T as initial. ConTeXt ver: 2013.01.21 18:18 MKII fmt: 2013.1.21 int: english/english 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] placeinitial broken (mkiv)?
Hi there, the example from the garden (http://wiki.contextgarden.net/Initials; with reference to "[NTG-context] Lettrine not Working as Expected") does not work for me: minimal \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3] % known parameters: font, distance, state, n, command \starttext \placeinitial \input knuth \stoptext minimal ConTeXt ver: 2013.01.13 23:10 MKIV fmt: 2013.1.17 Is there a problem or am I doing something wrong?! Thanks in advance for your help. Cheers 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] Arabic Characters shown wrong
I uploaded a new beta to the website. Btw, you can best test this kind of stuff with: \usemodule[fnt-20] \starttext \setvariables [otftracker] [direction=-1, sample=لا, title=Test, % font=file:arabtype, font=file:scheherazaderegot, features=arabic] \stoptext As it shows the steps. It works! And thanks for introducing me in this debugging-code, very interesting to see the steps! Best regards Huseyin ___ 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] What is the easiest way to have multi lines in some of the cells in a table?
hi,all my question as title described,Now I used the following method: \starttext \placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell} \starttable[|c|c|c|][textwidth=8.8cm] \HL \NC \JustLeft FIRST COL \NC \JustCenter \bf SECOND COL \NC\SR\HL \NC \JustLeft first line \NC \JustLeft one line in cell \NC\MR \HL \NC \JustLeft second line \NC \JustLeft first line in second line's 2nd col \NC\MR \NC\NC \JustLeft second line in second line's 2nd col \NC\MR \HL \NC \JustLeft third line \NC \JustLeft third line's 2nd col \NC\LR \HL \stoptable \stoptext Thanks in advance! BEST REGARDS PengCZ ___ 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] Prioritise TEXMFHOME
On Tue, Jan 22, 2013 at 9:29 PM, Marco Patzer wrote: > On 2013–01–22 Mojca Miklavec wrote: > >> Doesn't it already have the highest priority? > > I did assume that, but that's not the case. Take your t-gnuplot.tex > module, for instance, make some changes and place it in $TEXMFHOME. > ConTeXt still uses the old version found in > > texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex I don't know how to reproduce that even though I remember that I had problem if I set "export TEXMFHOME=/path/with/trailing/slash/". What does mtxrun t-gnuplot.tex return you? Also: - What is your $TEXMFHOME and how did you change it in case that you did? - Where exactly is your file t-gnuplot.tex? - Do you run MkIV? With current beta or with TeX Live? - What does 'kpsewhich t-gnuplot.tex' return you? 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] Simple question: how do I get the filename in the footer
On 20 Jan 2013, at 22:32, Aditya Mahajan wrote: > On Sun, 20 Jan 2013, Gerben Wierda wrote: > >>> You can add the \nonknuthmode to your document which makes _ and ^ normal >>> characters for text mode. >> >> Is that limited to a {}-scope? And more importantly, that catches ^ and _, >> but what about whitespace etc. Isn;t there a true verbatim that I can use on >> a macro like \currentcomponent? Something along the lines of >> \verbatimexpand{\currentcomponent}? > > Untested: \filename{\currentcomponent} Works. When outside a component (e.g. index) it defaults to the string 'text'. Thanks, G > > 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 > ___ ___ 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] Prioritise TEXMFHOME
On 2013–01–22 Mojca Miklavec wrote: > Doesn't it already have the highest priority? I did assume that, but that's not the case. Take your t-gnuplot.tex module, for instance, make some changes and place it in $TEXMFHOME. ConTeXt still uses the old version found in texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Prioritise TEXMFHOME
On Tue, Jan 22, 2013 at 8:58 PM, Marco Patzer wrote: > Hi, > > can I somehow set up that files within TEXMFHOME are preferred to > files found in the distribution? Or is there another variable which > is more suitable than TEXMFHOME for this purpose? Doesn't it already have the highest priority? MkII: TEXMFHOME = $HOME/texmf TEXMF = {$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFMODULES,!!$TEXMFCONTEXT,!!$TEXMFOS,!!$TEXMFMAIN} MkIV: TEXMFHOME = "home:texmf", TEXMF = "{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFMODULES,!!$TEXMFCONTEXT,!!$TEXMFSYSTEM,!!$TEXMFMAIN}", 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 ___
[NTG-context] Prioritise TEXMFHOME
Hi, can I somehow set up that files within TEXMFHOME are preferred to files found in the distribution? Or is there another variable which is more suitable than TEXMFHOME for this purpose? Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enable comments/highlighting in the output PDF
On 2013–01–23 Devendra Ghate wrote: > >Use Adobe Acrobat and add that option to the PDF. > > > >Best Martin _ > Dear Martin, > > Thank you for the pointer. Adobe Reader 9 (which is the latest > version available for linux) does not allow this. However, Adobe > Reader X (on windows) allowed comments and mark up straight away > as no security settings are added while generation of the file. Security settings are different from the comment ability. Security settings *take away* permissions and can be set using a variety of tools. The commenting ability actually *adds* a certificate which can only be added using proprietary Adobe software, not using open source tools. You have to purchase Adobe Acrobat. Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Annotation module fails
Am 22.01.2013 um 13:56 schrieb Marco Patzer : > Hi Wolfgang et al. > > The following example fails with > > (virtual://annotation.noname.1) > ! Undefined control sequence. > > \usemodule [annotation] > \defineannotation [foo] > \starttext > \startfoo > Bar > \stopfoo > \stoptext I put a new version online. 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] Enable comments/highlighting in the output PDF
On 01/22/2013 11:45 PM, Martin Schröder wrote: 2013/1/22 Devendra Ghate : I would like to create an output PDF file on which comments can be added by a reader for feedback. Use Adobe Acrobat and add that option to the PDF. Best Martin _ Dear Martin, Thank you for the pointer. Adobe Reader 9 (which is the latest version available for linux) does not allow this. However, Adobe Reader X (on windows) allowed comments and mark up straight away as no security settings are added while generation of the file. Regards, Devendra __ 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 ___ ___ 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] Enable comments/highlighting in the output PDF
2013/1/22 Devendra Ghate : > I would like to create an output PDF file on which comments can be added by > a reader for feedback. Use Adobe Acrobat and add that option to the PDF. Best Martin ___ 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] Enable comments/highlighting in the output PDF
Hello everyone, I would like to create an output PDF file on which comments can be added by a reader for feedback. I do not know the settings to be applied in context to enable comments/highlighting of a section etc. in the generated PDF file. I am using free Adobe reader 9 on ubuntu presently. I have checked that adding comments works in this adobe reader for PDF files that have this enabled. Regards, Devendra ___ 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] Arabic Characters shown wrong
On 1/22/2013 2:54 PM, "H. Özoguz" wrote: Am 22.01.2013 13:13, schrieb Hans Hagen: On 1/22/2013 8:40 AM, "H. Özoguz" wrote: Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system? Ok, I'd understood that older version also had that issue. Idris made me some tests and it looks like for some fonts lookups get lost. I think I've tracked it down (relates to some change between lua 5.1 and 5.2) but Idris first needs to test it. (I cannot release a beta but have to make a patched beta because I'm in the middle of some changes in a bunch of Lua files.) Hans I am eagerly anticipating the fixed beta, so I can print again the correct "Lam-Alif" :) Thanks for your time. I uploaded a new beta to the website. Btw, you can best test this kind of stuff with: \usemodule[fnt-20] \starttext \setvariables [otftracker] [direction=-1, sample=لا, title=Test, % font=file:arabtype, font=file:scheherazaderegot, features=arabic] \stoptext As it shows the steps. - 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] Arabic Characters shown wrong
Am 22.01.2013 13:13, schrieb Hans Hagen: On 1/22/2013 8:40 AM, "H. Özoguz" wrote: Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system? Ok, I'd understood that older version also had that issue. Idris made me some tests and it looks like for some fonts lookups get lost. I think I've tracked it down (relates to some change between lua 5.1 and 5.2) but Idris first needs to test it. (I cannot release a beta but have to make a patched beta because I'm in the middle of some changes in a bunch of Lua files.) Hans I am eagerly anticipating the fixed beta, so I can print again the correct "Lam-Alif" :) Thanks for your time. Huseyin ___ 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] Annotation module fails
Hi Wolfgang et al. The following example fails with (virtual://annotation.noname.1) ! Undefined control sequence. \usemodule [annotation] \defineannotation [foo] \starttext \startfoo Bar \stopfoo \stoptext current version: 2013.01.21 18:18 %D \module %D [ file=t-annotation, %D version=2013.01.18, Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Arabic Characters shown wrong
On 1/22/2013 8:40 AM, "H. Özoguz" wrote: Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system? Ok, I'd understood that older version also had that issue. Idris made me some tests and it looks like for some fonts lookups get lost. I think I've tracked it down (relates to some change between lua 5.1 and 5.2) but Idris first needs to test it. (I cannot release a beta but have to make a patched beta because I'm in the middle of some changes in a bunch of Lua files.) 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] Referencing a figure
On 01/22/2013 03:48 PM, Philipp Gesang wrote: Hi! · I have written a macro to include figures. I pass the label name and the caption as the two arguments. But when I try to refer to the figure, it shows ??. Surely, my macro does not define the figure label as intended by me. What am I doing wrong? If you specify only one optional argument of \placefloat, then leftmost in the list is assumed, i.e. the location. To get around this, either specify a location or add empty brackets if you're content with the default: \define[2]\dincludefigure{% \placefigure[][fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% Regards Philipp Thank you Philipp. Devendra Also, while trying to debug this problem, I tried using *\version[temporary]* to see the labels as suggested in the Context manual (chapter on Cross References (page 207) of cont-ini.pdf). But it didn't show many the label of the figure. MWE: \useMPlibrary[dum] \unprotect \define[2]\dincludefigure{% \placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% \protect \starttext \dincludefigure{one}{A figure} I am refering to \in{Figure}[fig:one]. \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 ___ ___ 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 ___ ___ 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] Referencing a figure
Hi! · > I have written a macro to include figures. I pass the label name and > the caption as the two arguments. But when I try to refer to the figure, > it shows ??. > > Surely, my macro does not define the figure label as intended by me. > What am I doing wrong? If you specify only one optional argument of \placefloat, then leftmost in the list is assumed, i.e. the location. To get around this, either specify a location or add empty brackets if you’re content with the default: \define[2]\dincludefigure{% \placefigure[][fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% Regards Philipp >Also, while trying to debug this problem, I tried > using *\version[temporary]* to see the labels as suggested in the Context > manual (chapter on Cross References (page 207) of cont-ini.pdf). But it > didn't show many the label of the figure. > > MWE: > > \useMPlibrary[dum] > \unprotect > \define[2]\dincludefigure{% >\placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% > }% > \protect > > \starttext > \dincludefigure{one}{A figure} > I am refering to \in{Figure}[fig:one]. > \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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpBNDpF7YmDK.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Referencing a figure
I have written a macro to include figures. I pass the label name and the caption as the two arguments. But when I try to refer to the figure, it shows ??. Surely, my macro does not define the figure label as intended by me. What am I doing wrong? Also, while trying to debug this problem, I tried using *\version[temporary]* to see the labels as suggested in the Context manual (chapter on Cross References (page 207) of cont-ini.pdf). But it didn't show many the label of the figure. MWE: \useMPlibrary[dum] \unprotect \define[2]\dincludefigure{% \placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}% }% \protect \starttext \dincludefigure{one}{A figure} I am refering to \in{Figure}[fig:one]. \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 ___