Hi all, I'm trying to use the gnuplot mode (texlive+ ConTeXt 2006.02.03) and the command texexec --pdf --mode=demo m-gnuplot results in a m-gnuplot.pdf where only the png is correctly displayed... All the m-gnuplot-gnuplot-*.pdf are unknown... I assume I have missed something... But what ? Cheers, Renaud
Renaud AUBIN wrote:
Hi all,
I'm trying to use the gnuplot mode (texlive+ ConTeXt 2006.02.03) and the command texexec --pdf --mode=demo m-gnuplot results in a m-gnuplot.pdf where only the png is correctly displayed... All the m-gnuplot-gnuplot-*.pdf are unknown...
I assume I have missed something... But what ?
The conversion of the gnuplot output from postscript to pdf fails. It attempts to execute this commandline: texmfstart newpstopdf --method=raw \GNUPLOTfile.ps where \GNUPLOTfile is e.g. "m-gnuplot-gnuplot-0" You can try the command on the commandline to see where it goes wrong. Cheers, Taco
Hi Taco, happy to read you again :-) ! I don't have texmfstart. It is a win script, isn't it ? I have a debian box. Maybe I have to do some hacks in m-gnuplot. I have try ruby /usr/local/texlive/2005/texmf-dist/scripts/context/ruby/newpstopdf.rb --method=raw m-gnuplot-gnuplot-1.ps and it works... If I use a .gp file as input, do I have to use the same method ? Moreover, I use lucida fonts in my document. How to use lucida with this method ? Cheers, Renaud
The conversion of the gnuplot output from postscript to pdf fails. It attempts to execute this commandline:
texmfstart newpstopdf --method=raw \GNUPLOTfile.ps
where \GNUPLOTfile is e.g. "m-gnuplot-gnuplot-0"
You can try the command on the commandline to see where it goes wrong.
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Renaud AUBIN wrote:
Hi Taco, happy to read you again :-) !
I don't have texmfstart. It is a win script, isn't it ? I have a debian box. Maybe I have to do some hacks in m-gnuplot. I have try ruby /usr/local/texlive/2005/texmf-dist/scripts/context/ruby/newpstopdf.rb --method=raw m-gnuplot-gnuplot-1.ps and it works...
texmfstart is a ruby script (in scritps/context/ruby); Normally there should be a copy without suffix in some bin path
If I use a .gp file as input, do I have to use the same method ? Moreover, I use lucida fonts in my document. How to use lucida with this method ?
depends on how you installed the lucidas's 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 -----------------------------------------------------------------
Hi Hans,
texmfstart is a ruby script (in scritps/context/ruby); Normally there should be a copy without suffix in some bin path
No... I have put a copy in /usr/local/bin and texexec --pdf --mode=demo m-gnuplot works now.
depends on how you installed the lucidas's
texfont --en=ec --ve=bh --co=lucida --in --ma Renaud
On 2/15/06, Renaud AUBIN wrote:
Ok it is \setupGNUPLOT[method=mp,option="hlhr8r"] but now how to deal with math like $\vec{x}$ ?
I don't have lucida, but how about this: http://pub.mojca.org/gnuplot/sample/document.pdf? (You can play with the source and files in other dicerctories as well, but use at your own risk as long as it's experimental only.) Mojca
Renaud AUBIN wrote:
Hi Hans,
texmfstart is a ruby script (in scritps/context/ruby); Normally there should be a copy without suffix in some bin path
No... I have put a copy in /usr/local/bin and texexec --pdf --mode=demo m-gnuplot works now.
depends on how you installed the lucidas's
texfont --en=ec --ve=bh --co=lucida --in --ma could you process the produced texnansi-bh-lucida file? if so, lucida should work ok
----------------------------------------------------------------- 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 -----------------------------------------------------------------
could you process the produced texnansi-bh-lucida file? if so, lucida should work ok
Do you mean \loadmapfile[texansi-bh-lucida.map] ? If so, I already use \loadmapfile[ec-bh-lucida.map] (Lucida works well for my document) and according to http://wiki.contextgarden.net/Gnuplot section "More complex example with MetaPost" I have "to play with |set terminal mp {fontname}|" !? I have a working example with \setupGNUPLOT[method=mp,option="hlhr8r"] but the math gives CM... Moreover, how to deals $\vec{x}$ or \Milli \Meter for example ? Renaud
Renaud AUBIN wrote:
could you process the produced texnansi-bh-lucida file? if so, lucida should work ok
Do you mean \loadmapfile[texansi-bh-lucida.map] ? If so, I already use \loadmapfile[ec-bh-lucida.map] (Lucida works well for my document) and according to http://wiki.contextgarden.net/Gnuplot section "More complex example with MetaPost" I have "to play with |set terminal mp {fontname}|" !?
I have a working example with \setupGNUPLOT[method=mp,option="hlhr8r"] but the math gives CM... Moreover, how to deals $\vec{x}$ or \Milli \Meter for example ?
what is this hlhr8r? a font filename? ()when installing lbr using texfont, did you (manually) move the math pfb files and tfm files? (maybe i should distribute the lbr math tfm files) 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 -----------------------------------------------------------------
what is this hlhr8r? a font filename?
hlhr8r -> /usr/local/texlive/2005/texmf-dist/fonts/tfm/bh/lucida/hlhr8r.tfm It sets the metapost's defaultfont but maybe there is another method than give a .tfm file I don't know.
()when installing lbr using texfont, did you (manually) move the math pfb files and tfm files?
(maybe i should distribute the lbr math tfm files)
I have the lbr math tfm files and they work fine in my document.
Hi all, This time, I eventually use LaTeX with \usepackage{lucidabr} and "set term pst" to produce .ps, then use ps2epsi to obtain an .eps with a correct bounding box and to finish psttopdf. I include the resulting .pdf with the standard method... It is not the easy way ! Now, considering the gnuplot module: I have seen that in the resulting .gpd, there is a lot of ";" . Since all my .gp scripts are empty of ";" at the end of lines, I'm asking if this is correct ? Renaud Renaud AUBIN a écrit :
what is this hlhr8r? a font filename?
hlhr8r -> /usr/local/texlive/2005/texmf-dist/fonts/tfm/bh/lucida/hlhr8r.tfm It sets the metapost's defaultfont but maybe there is another method than give a .tfm file I don't know.
()when installing lbr using texfont, did you (manually) move the math pfb files and tfm files?
(maybe i should distribute the lbr math tfm files)
I have the lbr math tfm files and they work fine in my document.
------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
On 2/15/06, Renaud AUBIN wrote:
I'm trying to use the gnuplot mode (texlive+ ConTeXt 2006.02.03) and the command texexec --pdf --mode=demo m-gnuplot results in a m-gnuplot.pdf where only the png is correctly displayed... All the m-gnuplot-gnuplot-*.pdf are unknown...
I assume I have missed something... But what ?
Not necessary. Gnuplot module might be a bit stubborn. I had many problems, but they might have different reasons since many sifferent pieces of software are sticked together: - mp wanted to use cmr10, but that font was missing on standalone ConTeXt distr. - texmfstart missing under windows - gnuplot terminal compiled without pdf terminal - missing TEXSYSTEM=miktex on windows box (or (p)gnuplot not present in path) - on my personal I failed to compile gnuplot properly in order to produce PNGs - serious problems with mptopdf under windows (CRITICAL!!!)
Moreover, I use lucida fonts in my document. How to use lucida with this method ?
It depends on terminal. With PostScript terminal you can't do math. With Metapost you can do math, but don't ask me how to change fonts to lucida (try read "help terminal mp" if it helps you). Anyway I'm affraid that you won't get lucida for math that way. (I'll try to improve the metapost terminal a bit, but I have no idea what to do with fonts.) Perhaps you could use LaTeX (or any other LaTeX-related terminal like PSTricks for that), but this is not supported by the module yet. However, read my other mail(s) that I'll send today about "set terminal context". (I don't find any of the existing terminals good enough, so I would like to make a superior one.)
I have a working example with \setupGNUPLOT[method=mp,option="hlhr8r"] but the math gives CM... Moreover, how to deals $\vec{x}$ or \Milli \Meter for example ?
Forget about ConTeXt commands with "method=mp". This makes plain metapost files and labes are processed with plain TeX, which doesn't have any idea about the fonts you use in the document. If you manage to make lucida work with plain TeX, the only option I currently see is something like set title '{\input my-defs \bf Title}' where you store your definitions in a separate file or set title '{\font\a=hlhr8r sa 2 \a Title}' (just guessing, I don't know the exact syntax). But you probably don't want to do that.
This time, I eventually use LaTeX with \usepackage{lucidabr} and "set term pst" to produce .ps, then use ps2epsi to obtain an .eps with a correct bounding box and to finish psttopdf. I include the resulting .pdf with the standard method... It is not the easy way !
That's what I was talking about a bit earlier. Hans, would it be possible to support pst terminal as well (PSTricks I suppose)? This one needs more than one command to get the resulting pdf I suppose. (I won't need it, but if there are other users who could make use of it ...)
Now, considering the gnuplot module: I have seen that in the resulting .gpd, there is a lot of ";" . Since all my .gp scripts are empty of ";" at the end of lines, I'm asking if this is correct ?
Ask Hans. I don't know why he likes them so much (I would remove them), but they should be harmless. They're there because of \def\obeyedline{;\systemendofline}% ----------------------------------- And a final word: I finally installed "something to compile gnuplot with" yesterday. I have the first pre-alpha ;) "set terminal context" working and I will need both Hans and Taco's hand as well as gnuplot/metafun users to help me with suggestions/requests/brainstorming about how to implement certain parts, so that the output will remain highly configurable regarding fonts, colors & styles, but more about that in another mail. (Some serious problems with mptopdf on windows disturb me a lot, but I hope I'll find a way out. I can't make textext work, so I'm using the standalone ConTeXt in the moment, but this has to be fixed for other MikTeX users as well.) Mojca On 2/16/06, Adam Lindsay wrote:
And for the text versions? That's what I was offering, to do a lot of:
\starttypescript [serif] [lucida] [texnansi] \definefontsynonym [texnansi-lbr] [hlhr8y] [encoding=texnansi] etc.
Has nothing to do with Gnuplot, but I agree with Adam.
Mojca Miklavec wrote:
It depends on terminal. With PostScript terminal you can't do math. With Metapost you can do math, but don't ask me how to change fonts to lucida (try read "help terminal mp" if it helps you). Anyway I'm affraid that you won't get lucida for math that way.
if with mp you can do math, then you need to extend gnuplot with the option to configure verbatimtex ... etex so that one can instruct tex to load other fonts there 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 -----------------------------------------------------------------
On 2/16/06, Renaud AUBIN wrote:
Hi all,
This time, I eventually use LaTeX with \usepackage{lucidabr} and "set term pst" to produce .ps, then use ps2epsi to obtain an .eps with a correct bounding box and to finish psttopdf. I include the resulting .pdf with the standard method... It is not the easy way !
I just noticed that "epslatex" terminal was improved considerably in the new gnuplot version (4.1, you can download testing binaries for windows). Take a look. On 2/16/06, Hans Hagen wrote:
Mojca Miklavec wrote:
It depends on terminal. With PostScript terminal you can't do math. With Metapost you can do math, but don't ask me how to change fonts to lucida (try read "help terminal mp" if it helps you). Anyway I'm affraid that you won't get lucida for math that way.
if with mp you can do math, then you need to extend gnuplot with the option to configure verbatimtex ... etex so that one can instruct tex to load other fonts there.
If you process the files manually it's no problem to edit the "verbatimtex" part of the resulting metapost output. However, this cannot be done if the file is generated and included with the gnuplot module. I'll first finish the ConTeXt terminal and perhaps fix/improve mp terminal on the basis of ConTeXt terminal later (or during writing it). It's very easy to fix gnuplot, so that it will be able to place additional commands inside "verbatimtex" section. If anyone needs that, I can add it and submit it to patches, but I can only provide you windows binaries after that. (I tried to compile it on three linux boxes without success, although it should be trivial.) All I need to know is the keyword that you want to use and that would make sense. Epslatex uses the following syntax for example: set terminal epslatex header "\usepackage{something}" (Would anyone need that at all?) My next question is going to be: how should I handle fonts in context terminal? (But probably for another thread or for off-list discussions only.) Mojca
Mojca Miklavec wrote:
It's very easy to fix gnuplot, so that it will be able to place additional commands inside "verbatimtex" section. If anyone needs that, I can add it and submit it to patches, but I can only provide you windows binaries after that. (I tried to compile it on three linux boxes without success, although it should be trivial.)
that option would make it possibel to pass the mp environment to gnuplot/tex and solve the lucida problems mentioned; it means that one can have her/his text in sycn with the graphic
All I need to know is the keyword that you want to use and that would make sense. Epslatex uses the following syntax for example: set terminal epslatex header "\usepackage{something}" (Would anyone need that at all?)
two variants: set terminal mp verbatimtex "..." set terminal context environment "..." 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 -----------------------------------------------------------------
On 2/18/06, Hans Hagen wrote:
Mojca Miklavec wrote:
It's very easy to fix gnuplot, so that it will be able to place additional commands inside "verbatimtex" section. If anyone needs that, I can add it and submit it to patches, but I can only provide you windows binaries after that. (I tried to compile it on three linux boxes without success, although it should be trivial.)
that option would make it possibel to pass the mp environment to gnuplot/tex and solve the lucida problems mentioned; it means that one can have her/his text in sycn with the graphic
Hmmm ... I tried to copy the implementation from epslatex terminal, so that one was already able to say set terminal context header "\\setupbodyfont[20pt]" but I figured out that after it was run five or ten times, it crashed. After that I realized that the epslatex terminal crashes too, but I didn't figure out yet how to debug gnuplot. If anyone has more experince with allocs, feel free to fix my source. The problem with verbatim ... etex is that you somehow "preprocess it" or I don't know what you do with it. So if one writes \def\GnuplotPoint#1{...} into verbatimtex it results in something like \def \GnuplotPoint ##1 {}, of you write \let\GnuplotPoint\relax, it results in \let \relax. \input works because it has some luck that it doesn't get modified during preprocessing.
set terminal mp verbatimtex "..." set terminal context environment "..."
I already did that, but as I mentioned above - it crashed ... But in any case: global metapost environment works perfectly!!! (header would still be useful, but for graphics for inclusion the setting can be done in the main document and for standalone graphics one can temporary edit it manually, but I'll try to fix). Mojca
Mojca Miklavec wrote:
The problem with verbatim ... etex is that you somehow "preprocess it" or I don't know what you do with it. So if one writes
it's normally expanded, but with regards to passing environments, there is hardly any expansion involved; also, when i set it from within context, i can use the same mechanisms as with the normal mp run; let's worry about that later
\def\GnuplotPoint#1{...} into verbatimtex it results in something like \def \GnuplotPoint ##1 {}, of you write \let\GnuplotPoint\relax, it results in \let \relax. \input works because it has some luck that it doesn't get modified during preprocessing.
best put such defs in a separate environment, and then say \input thatfile ; this avoids the expansion and hash duplication
set terminal mp verbatimtex "..." set terminal context environment "..."
I already did that, but as I mentioned above - it crashed ...
But in any case: global metapost environment works perfectly!!! (header would still be useful, but for graphics for inclusion the setting can be done in the main document and for standalone graphics one can temporary edit it manually, but I'll try to fix).
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 -----------------------------------------------------------------
Hans Hagen wrote:
what is this hlhr8r? a font filename?
Yes, one of the Lucida ones.
()when installing lbr using texfont, did you (manually) move the math pfb files and tfm files?
(maybe i should distribute the lbr math tfm files)
Or, maybe I should finish that type-dis typescript to adapt the current ConTeXt internal names to the TUG-distributed lucida font names. Which would you prefer? _In this case_, I would likely trust the hand-tuned TFMs a bit more than texfont-generated ones. adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Adam Lindsay wrote:
Hans Hagen wrote:
what is this hlhr8r? a font filename?
Yes, one of the Lucida ones.
()when installing lbr using texfont, did you (manually) move the math pfb files and tfm files?
(maybe i should distribute the lbr math tfm files)
Or, maybe I should finish that type-dis typescript to adapt the current ConTeXt internal names to the TUG-distributed lucida font names. Which would you prefer? _In this case_, I would likely trust the hand-tuned TFMs a bit more than texfont-generated ones.
for math i always use the ones supplied by yandy (i don't use the funny names) 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 -----------------------------------------------------------------
Hans Hagen wrote:
Adam Lindsay wrote:
Hans Hagen wrote:
what is this hlhr8r? a font filename?
Yes, one of the Lucida ones.
()when installing lbr using texfont, did you (manually) move the math pfb files and tfm files?
(maybe i should distribute the lbr math tfm files)
Or, maybe I should finish that type-dis typescript to adapt the current ConTeXt internal names to the TUG-distributed lucida font names. Which would you prefer? _In this case_, I would likely trust the hand-tuned TFMs a bit more than texfont-generated ones.
for math i always use the ones supplied by yandy (i don't use the funny names)
And for the text versions? That's what I was offering, to do a lot of: \starttypescript [serif] [lucida] [texnansi] \definefontsynonym [texnansi-lbr] [hlhr8y] [encoding=texnansi] etc. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
participants (5)
-
Adam Lindsay
-
Hans Hagen
-
Mojca Miklavec
-
Renaud AUBIN
-
Taco Hoekwater