Re: [NTG-context] \appliedfigure...
On Wed, 16 Nov 2005, Hans Hagen wrote: Is there any possibility to get width=1cm ? Not using \appliedfigure , but if you are willing to mess with \unprotect: \unprotect \appendtoks \writestatus{figures}{@@efwidth=\@@efwidth} \writestatus{figures}{figurewidth=\figurewidth} \to\externalfigurepostprocessors \protect Not sure if Hans is all that happy with that, though, because the use of low-level \@@ef... stuff is precisely what the \applied .. macros were supposed to hide. hm, @@ef is going to stay, but it is indeed ugly (maybe some day we have \figureparameter Thanks you, \figurewidth and \figureheight should be enough for me, I think! Just one last question before improving my t-degrade module: how can I tell ConTeXt to search for images at first in another directory than the current directory? When there are two files ./testimg.eps and ./img/testimg.eps the following test file includes always the first one: \setupexternalfigures[directory={./img,.}] \starttext \externalfigure[testimg][width=3cm] \stoptext Greetings, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
Peter Münster wrote: In fact, the question is just: how to use \appliedfigureoptions and \appliedfigurefilename? Hi Peter, It looks like this was never answered, and I think the answer is: they are only accessible from within the \externalfigurepostprocessors tokenlist, and are meaningliess/unspecified at the outside. This works, for me: \appendtoks \writestatus{figures}{file=\appliedfigurefilename} \to\externalfigurepostprocessors \starttext \externalfigure[/home/taco/maps33/minion/image-test][width=1cm] \stoptext Does that answer your collector item? Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
On Wed, 16 Nov 2005, Taco Hoekwater wrote: Peter Münster wrote: On Wed, 16 Nov 2005, Taco Hoekwater wrote: Yes and no, \appliedfigureoptions seems to be empty: It contains only the value of the option= key from \externalfigure, so it will be empty in this case. Is there any possibility to get width=1cm ? Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
Peter Münster wrote: On Wed, 16 Nov 2005, Taco Hoekwater wrote: Peter Münster wrote: On Wed, 16 Nov 2005, Taco Hoekwater wrote: Yes and no, \appliedfigureoptions seems to be empty: It contains only the value of the option= key from \externalfigure, so it will be empty in this case. Is there any possibility to get width=1cm ? Not using \appliedfigure , but if you are willing to mess with \unprotect: \unprotect \appendtoks \writestatus{figures}{@@efwidth=\@@efwidth} \writestatus{figures}{figurewidth=\figurewidth} \to\externalfigurepostprocessors \protect Not sure if Hans is all that happy with that, though, because the use of low-level \@@ef... stuff is precisely what the \applied .. macros were supposed to hide. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
Taco Hoekwater wrote: Peter M�nster wrote: On Wed, 16 Nov 2005, Taco Hoekwater wrote: Peter M�nster wrote: On Wed, 16 Nov 2005, Taco Hoekwater wrote: Yes and no, \appliedfigureoptions seems to be empty: It contains only the value of the option= key from \externalfigure, so it will be empty in this case. Is there any possibility to get width=1cm ? Not using \appliedfigure , but if you are willing to mess with \unprotect: \unprotect \appendtoks \writestatus{figures}{@@efwidth=\@@efwidth} \writestatus{figures}{figurewidth=\figurewidth} \to\externalfigurepostprocessors \protect Not sure if Hans is all that happy with that, though, because the use of low-level \@@ef... stuff is precisely what the \applied .. macros were supposed to hide. hm, @@ef is going to stay, but it is indeed ugly (maybe some day we have \figureparameter btw, how about: \usemodule[res-trace] it will let context write a \jobname.rlg (resource log) with some info Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure... (was: new feature / manual)
On Wed, 21 Sep 2005, Hans Hagen wrote: since conversion normally happens once, the delayed postprocessing is not a real problem; the advantage is that you then have access to all those \applied... variables Thank you! I tried to use these macros, but I cannot get \appliedfigureoptions expanded to get the height or width of the figure. The new t-degrade.tex is on the same place. Could you take a look at it please? can you send me the file? (extremely crowded mail box so looking backward ...) In fact, the question is just: how to use \appliedfigureoptions and \appliedfigurefilename? In the following test-file, \appliedfigureoptions shows nothing and \appliedfigurefilename gives an error: \starttext \externalfigure[/opt/teTeX/texmf-local/tex/context/sample/spider][width=1cm] \appliedfigureoptions %\appliedfigurefilename %% ERROR: Undefined control sequence. %% \appliedfigurefilename -\@@effilename \stoptext Nevertheless I send here attached the new t-degrade.tex, in order to let you see how I want to use these two macros. Another question: when there are two files ./fig.eps and ./degrade/fig.eps how can I tell ConTeXt to prefer loading the second figure when using \externalfigure[fig][options] ? It seems, that \setupexternalfigures[directory={degrade,.}] does not help... Greetings, Peter -- http://pmrb.free.fr/contact/ t-degrade.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
� wrote: Another question: when there are two files ./fig.eps and ./degrade/fig.eps how can I tell ConTeXt to prefer loading the second figure when using \externalfigure[fig][options] ? you may try prefix=degrade/ this is what the rlx files use It seems, that \setupexternalfigures[directory={degrade,.}] does not help... \expanded{\getparameters[Deg][height=,\appliedfigureoptions]} else the scanner sees no key=value Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
On Wed, 21 Sep 2005, Hans Hagen wrote: \expanded{\getparameters[Deg][height=,\appliedfigureoptions]} else the scanner sees no key=value I've already tried this, but \appliedfigureoptions seems to be as empty as \relax... Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context