Re: [NTG-context] reference
Hi Jörg, The \placefigure command knows more optional things: \placefigure [left, right, here, top, bottom, inleft, inright, inmargin, margin, leftmargin, rightmargin, leftedge, rightedge, innermargin, outermargin, inneredge, outeredge, inner, outer, line, high, low, fit, page, opposite, always, force, tall, reset, line, height, depth] [ref,..] {caption} {\externalfigure[name][options]} So you need to add [anapler] as the reference before the caption. A good startingpoint for such problems is the texshow utility. To start it type at the command line texmfstrat texshow. Otherwise if you use the SciTe editor it is incorporated under the Help-button or just hit F1. Kind regards Willi Jörg Hagmann wrote: Dear list members, I can't figure out how to refer to figures. In the setuparea I have e.g.: \useexternalfigure[anapler][anaplerosis][width=\textwidth] In the body I had: \placefigure{Acetyl-CoA stimuliert die anaplerotische Reaktion etc...}{\externalfigure[anapler]} In the text: (\in{Abb.}[anapler] pdf output gave Abb. ?? I then added a reference to \placefigure: \placefigure[anapler1]{text ...}[anapler] and (\in{Abb.}[anapler1] Same result, i.e. ?? I then thought that maybe, although this seems unlikely, "[fig:..] is needed, as in the examples in the manuals. I replaced the reference with [fig:anapler], same result. As so far practically nothing worked the first time, but I always managed to find the error after some time, I kept staring at the manuals and my tex file. It didn't help. I hope somebody has the answer. Thank you very much, Jörg. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TEXMFMAIN problem in gwTeX (font installation)
I have spent some very interesting time trying to install the TeXlive fonts by using texfont type-tmf.dat. What happened was that a lot of complaints about "unknown subpath ../afm/public/urw" were given even though the path should have been there. This is a known problem, has been on several mailing lists, as well. After a lot of thinking it became clear that texfont was really unable to find any font files. By browsing through the texfont.pl, the reason became evident: In gwTeX the root variables are: TEXMFMAIN = /usr/local/teTeX/share/texmf TEXMFTE = /usr/local/teTeX/share/texmf.tetex The problem here is that all the TeXlive fonts (and almost everthing else) is really in the TEXMFTE tree. My quick'n'dirty was to make new file type-tmf-gwtex.dat by replacing all occurrences of TEXMFMAIN by TEXMFTE. Running that one in batch mode works fine. Problem solved -- this time. But the solution is not a beautiful one. Could someone suggest something cleaner? Or has this been solved already (I tried googling after the answer without success)? - Ville ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] reference
Try for instance \placefigure [] % 1st [] argument is for placing options like: here, force [anapler] % 2nd [] argument is the label {caption} %1st {} argument is caption {\externalfigure[path-tofigurefile][width=3in]} Then \in{Abb.}[anapler] will (hopefully) work. Matthias On Apr 29, 2005, at 4:52 AM, Jörg Hagmann wrote: Dear list members, I can't figure out how to refer to figures. In the setuparea I have e.g.: \useexternalfigure[anapler][anaplerosis][width=\textwidth] In the body I had: \placefigure{Acetyl-CoA stimuliert die anaplerotische Reaktion etc...}{\externalfigure[anapler]} In the text: (\in{Abb.}[anapler] pdf output gave Abb. ?? I then added a reference to \placefigure: \placefigure[anapler1]{text ...}[anapler] and (\in{Abb.}[anapler1] Same result, i.e. ?? I then thought that maybe, although this seems unlikely, "[fig:..] is needed, as in the examples in the manuals. I replaced the reference with [fig:anapler], same result. As so far practically nothing worked the first time, but I always managed to find the error after some time, I kept staring at the manuals and my tex file. It didn't help. I hope somebody has the answer. Thank you very much, Jörg. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
Vit, the last things. After that I consider this topic closed. >>+ limitation by substance: drawing is mostly done via fonts Yes, I forget to write it. >>[XFIG]..Export to context is good news. But still no parametrization possible :-( ..maybe something to play this summer... Now for metapost: shell_escape= f in texmf.cnf so \write18 is disabled. $>texexec --pdf f No circle; it seems right, because f.log says systems: randomizer starts with 797065300 mpost -progname=mpost -mem=metafun f-mpgraph system()...disabled. $> shell_escape=x ; texutil --purgeall; texexec --pdf f As before. $> shell_escape= ; texutil --purgeall; texexec --pdf f As before. $> shell_escape=t ; texutil --purgeall; texexec --pdf f Circle ok; again it's right, f.log says systems: randomizer starts with 800565448 system(mpost -progname=mpost -mem=metafun f-mpgraph)...executed. $> shell_escape=f ; texutil --purgeall; texexec --pdf f Strange:circle again. I found into texexec.pl if (($ENV{shell_escape} eq 'f') || ($ENV{SHELL_ESCAPE} eq 'f')) { $AutoMPRun = 1 ; } Hence texexec/texutil has called mpost instead of \write18; it's like shell_escape=t (for this task, not in general sense, of course) Hmm, it's not crystal clear: shell_escape=f means "shell_escape is False" shell_escape=t means "shell_escape is True" but for processing f.tex 'True and False are the same' $>shell_escape=; texutil --purge; texexec --pdf --automprun f Circle ok; it seems right, because I force execution of mpost. Again, many thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] reference
Dear list members, I can't figure out how to refer to figures. In the setuparea I have e.g.: \useexternalfigure[anapler][anaplerosis][width=\textwidth] In the body I had: \placefigure{Acetyl-CoA stimuliert die anaplerotische Reaktion etc...}{\externalfigure[anapler]} In the text: (\in{Abb.}[anapler] pdf output gave Abb. ?? I then added a reference to \placefigure: \placefigure[anapler1]{text ...}[anapler] and (\in{Abb.}[anapler1] Same result, i.e. ?? I then thought that maybe, although this seems unlikely, "[fig:..] is needed, as in the examples in the manuals. I replaced the reference with [fig:anapler], same result. As so far practically nothing worked the first time, but I always managed to find the error after some time, I kept staring at the manuals and my tex file. It didn't help. I hope somebody has the answer. Thank you very much, Jörg. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
luigi.scarso wrote: Vit, many thanks for your answer. Vit Zyka wrote: 1. For a moment I set shell_escape =f in `kpsewhich texmf.cnf' ok, done 2. Input file f.tex: \startuseMPgraphic{A} draw unitcircle scaled\overlaywidth; \stopuseMPgraphic \defineoverlay [B] [\uniqueMPgraphic{A}] \starttext \framed[background=B]{Hallo frame!} \stoptext 3a. classical run texexec --pdf f No circle under frame, right? If not, I have a bad installation; please discard the rest (and some hints to repair will be really appreciate :) ). ?? I obtained both a frame and a circle. 3b. step by step texexec --pdf --nomp f mpost f-mpgraph texexec --pdf --nomp f A circle appear under the frame. But I have 3 runs ( texexec, mpost, texexec). Yes, the cases 3a = 3b should have at least 3 runs. With shell_escape=t only 2 are needed. You are right. With XYPic, a similar result can be achieved without mpost: %% %% WARNING:: deprecated example %% Don't use it ! %% \input xy \xyoption{frame} \starttext \xy (0,0) *++=\hbox{\framed{Hallo frame}} *\frm{o} ; \endxy \stoptext Of course this doesn't mean that XY is better/worse than mpost, nor that using mpost coupled with context will be always slow than others ways; but sometimes a faster alternative may be required. All right, I agree for somebody and sometimes xypic might be use with advantage. I was thinkink about general recommendation. Sure for XYPic, name spaces collisions, cpu/memory required, syntax are + limitation by substance: drawing is mostly done via fonts (some) items to consider: but it also comes with a bunch of features and may be faster than mpost in some circumstances. [OT] XFIG: fig2dev can be export to metapost and in multi-metapost. Hence, from the moon, I see that xfig can be used with context. Export to context is good news. But still no parametrization possible :-( vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MetaPost 0.9 announcement
Vit Zyka wrote: Just a note. On the sarovar site, documentation page is empty (http://sarovar.org/docman/?group_id=230). The same situation was with pdftex project. Martin Sch. and Hartmut corrected this last week. I've added mpman.pdf to this page. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
Vit, many thanks for your answer. Vit Zyka wrote: 1. For a moment I set shell_escape =f in `kpsewhich texmf.cnf' ok, done 2. Input file f.tex: \startuseMPgraphic{A} draw unitcircle scaled\overlaywidth; \stopuseMPgraphic \defineoverlay [B] [\uniqueMPgraphic{A}] \starttext \framed[background=B]{Hallo frame!} \stoptext 3a. classical run texexec --pdf f No circle under frame, right? If not, I have a bad installation; please discard the rest (and some hints to repair will be really appreciate :) ). 3b. step by step texexec --pdf --nomp f mpost f-mpgraph texexec --pdf --nomp f A circle appear under the frame. But I have 3 runs ( texexec, mpost, texexec). Now, what is my goal ? To achieve a circle under the frame as quick as possible. For 3.a, in f.log I find mpost -progname=mpost -mem=metafun f-mpgraph system()...disabled. An attempt to run mpost failed: no circle, goal unsatisfied. For 3.b, I run manually mpost (and then again texexec): goal satisfied. With shell_export=t, 3.a) is ok, but f.log says system(mpost -progname=mpost -mem=metafun f-mpgraph)...executed. So it seems that my goal can be achieved only with a run of mpost. With XYPic, a similar result can be achieved without mpost: %% %% WARNING:: deprecated example %% Don't use it ! %% \input xy \xyoption{frame} \starttext \xy (0,0) *++=\hbox{\framed{Hallo frame}} *\frm{o} ; \endxy \stoptext Of course this doesn't mean that XY is better/worse than mpost, nor that using mpost coupled with context will be always slow than others ways; but sometimes a faster alternative may be required. Sure for XYPic, name spaces collisions, cpu/memory required, syntax are (some) items to consider: but it also comes with a bunch of features and may be faster than mpost in some circumstances. [OT] XFIG: fig2dev can be export to metapost and in multi-metapost. Hence, from the moon, I see that xfig can be used with context. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context