Hi all, My TeX setup: TeXLive (systemwide) for evetything but ConTeXt, and the minimals for ConTeXt, in my userspace. I have some issues using dvipng with minimals. I first compile this file with texexec: ...................... \setupoutput[dvi] \enableregime[utf] \starttext \startTEXpage $ SP=\int_0^{Q_0}(p_0-Cm(Q))dQ $ \stopTEXpage \stoptext ...................... In the minimals environment, dvipng says: ...................... This is dvipng 1.11 Copyright 2002-2008 Jan-Ake Larsson dvipng warning: cannot find ps2pk.map, nor psfonts.map [1dvipng warning: font rm-lmr12 at 400 dpi not found, characters will be left blank dvipng warning: font rm-lmr7 at 400 dpi not found, characters will be left blank dvipng warning: font rm-lmr9 at 400 dpi not found, characters will be left blank dvipng warning: unable to draw glyph 61, skipping dvipng warning: unable to draw glyph 48, skipping dvipng warning: unable to draw glyph 48, skipping dvipng warning: unable to draw glyph 40, skipping dvipng warning: unable to draw glyph 48, skipping dvipng warning: unable to draw glyph 40, skipping dvipng warning: unable to draw glyph 41, skipping dvipng warning: unable to draw glyph 41, skipping ] ...................... And the output is awful!! But if I dvipng in the TL environment, it works like a charm. So what should I add to my minimals install, or do to have all the TL stuff not forgotten when I use minimals? tia, -- Jean
But if I dvipng in the TL environment, it works like a charm. So what should I add to my minimals install, or do to have all the TL stuff not forgotten when I use minimals?
dvipng is not part of the minimals at all, which means you're probably using it from TL's path, where it can't find the minimals' fonts. If you're ready to hack a bit, just copy dvipng to the minimals' path. Arthur
Le 20 janvier à 09:25:29 Arthur Reutenauer
| dvipng is not part of the minimals at all, which means you're probably | using it from TL's path, where it can't find the minimals' fonts. If | you're ready to hack a bit, just copy dvipng to the minimals' path. Well Arthur, thanks! But just copying or linking dvipng is not enough (same result); what kind of hack would you suggest? -- Jean
But just copying or linking dvipng is not enough (same result); what kind of hack would you suggest?
Right, I didn't test it before :-) On my machine, it works if I use the following configuration: 1. Copy dvipng to the minimals' bin dir. 2. export PATH=/path/to/the/minimals/bin:$PATH and only that (no setuptex) 3. export TEXFONTMAPS=/path/to/texlive/texmf-var/fonts/map/dvips Note point 2: the only setting you need for ConTeXt to DVI to work is the PATH; I didn't try with setuptex but I strongly suspect that you would have problems. Or, maybe not :-) Of course, you can experiment around that base configuration (maybe you don't need to copy dvipng at all, etc.). Arthur
3. export TEXFONTMAPS=/path/to/texlive/texmf-var/fonts/map/dvips
Did I write fonts/map/dvips? It should have been fonts/map/dvips/updmap (or, alternatively, fonts/map/dvips// with the trailing double slash). And it seems to work without copying the dvipng binary, and with setuptex as well. Of course your mileage may vary, but anyway, the key is setting TEXFONTMAPS. Arthur
Le 20 janvier à 13:49:28 Arthur Reutenauer
| Did I write fonts/map/dvips? It should have been fonts/map/dvips/updmap | (or, alternatively, fonts/map/dvips// with the trailing double slash). | And it seems to work without copying the dvipng binary, and with | setuptex as well. Of course your mileage may vary, but anyway, the key | is setting TEXFONTMAPS.
| Arthur Ho yes!! Thanks a lot, it works. Will there be any side-effect on normal uses of context? -- Jean
Thanks a lot, it works. Will there be any side-effect on normal uses of context?
Definitely. TEXFONTMAPS is the path to the various font mapping files for dvips, (x)dvipdfm(x) and pdfTeX. I would strongly advise against setting that variable for normal use of the minimals. What you could do without tweaking with TEXFONTMAPS, is to put ps2pk.map in some directory inside fonts/map in the minimals, together with the dvipng binary. Best in texmf-local, for this is the location for local changes. But then, you of course need to make sure that the necessary fonts are available in the minimals, etc. Since you have TeX Live installed, your best bet is probably to use the minimals with the special TEXFONTMAPS setting only for ConTeXt + dvipng, and otherwise use the minimals only, or TeX Live only. Arthur
Le 20 janvier à 21:16:57 Arthur Reutenauer
| Definitely. TEXFONTMAPS is the path to the various font mapping files | for dvips, (x)dvipdfm(x) and pdfTeX. I would strongly advise against | setting that variable for normal use of the minimals. What you could do | without tweaking with TEXFONTMAPS, is to put ps2pk.map in some directory | inside fonts/map in the minimals, together with the dvipng binary. Best | in texmf-local, for this is the location for local changes. But then, | you of course need to make sure that the necessary fonts are available | in the minimals, etc.
| Since you have TeX Live installed, your best bet is probably to use | the minimals with the special TEXFONTMAPS setting only for ConTeXt + | dvipng, and otherwise use the minimals only, or TeX Live only.
Well that doesn't look too good... I wish I could use dvipng whenever I need to. A solution is of course to give up minimals and install the TeXlive ConTeXt; do you think it is a bad move? (for use of mkiv)? -- Jean
On Wed, 21 Jan 2009, Jean Magnan de Bornier wrote:
Le 20 janvier à 21:16:57 Arthur Reutenauer
écrit notamment: | > Thanks a lot, it works. Will there be any side-effect on normal uses of context?
| Definitely. TEXFONTMAPS is the path to the various font mapping files | for dvips, (x)dvipdfm(x) and pdfTeX. I would strongly advise against | setting that variable for normal use of the minimals. What you could do | without tweaking with TEXFONTMAPS, is to put ps2pk.map in some directory | inside fonts/map in the minimals, together with the dvipng binary. Best | in texmf-local, for this is the location for local changes. But then, | you of course need to make sure that the necessary fonts are available | in the minimals, etc.
| Since you have TeX Live installed, your best bet is probably to use | the minimals with the special TEXFONTMAPS setting only for ConTeXt + | dvipng, and otherwise use the minimals only, or TeX Live only.
Well that doesn't look too good... I wish I could use dvipng whenever I need to.
You should also be able to use TEXFONTMAPS=/location/ dvipng so that the variable is set only for the dvipng run. Maybe setting this as an alias for dvipng will also work (I don't know how unix shell aliases interact with variables) Aditya
On Wed, Jan 21, 2009 at 6:10 PM, Jean Magnan de Bornier wrote:
I wish I could use dvipng whenever I need to.
So you are plannig to release/improve the emacs module and document it for Maps? I'll take a look at the end of the week to see if we can make it work with minimals. Mojca
Le 21 janvier à 23:32:07 Mojca Miklavec
| So you are plannig to release/improve the emacs module and document it for Maps? Well, I had not used the math mode in muse for a while and then having installed the last texlive + context minimals I found out the problem with dvipng; no improvement, I'm afraid! Documentation on the contextgarden wiki is already there. Now what is Maps again?
| I'll take a look at the end of the week to see if we can make it work | with minimals. That would be GREAT Mojca! Thanks to you and Aditya -- Jean
On Wed, Jan 21, 2009 at 11:32 PM, Mojca Miklavec wrote:
On Wed, Jan 21, 2009 at 6:10 PM, Jean Magnan de Bornier wrote:
I wish I could use dvipng whenever I need to.
So you are plannig to release/improve the emacs module and document it for Maps?
I'll take a look at the end of the week to see if we can make it work with minimals.
Hello Jean, You need exactly (or at least) two things to make dvipng work: - dvipng binary - fonts/map/dvips/updmap/ps2pk.map I can add that to minimals, just a few questions below ... It's just that one day it might be splitted (together with dvips & different font tools that almost nobody uses) into some additional package that one needs to install separately (with additional arguments). We don't have updmap, so ps2pk needs to be either: a) prepared semi-manually with fonts that minimals ship b) taken from TeX Live with both fonts that minimals have and those that are not shipped at all How many exotic fonts do you usually need? Does ps2pk require some special syntax? (reading http://ftp.univie.ac.at/packages/tex/dviware/dvipng/fontmap.c and still asking stupid questions ...) There's only one thing I wonder about: [x]dvipdfmx uses the map file that are specified in dvi (xdv) specials. - How does dvips know which map files to use? / Is there some "quasi-standard" way to secify map files in dvi? - Would it make sense (in long term) to ask the author of dvipng to honour the map files specified in dvi file instead of requiring ps2pk to be unconditionally present? - not to be taken seriously: (Wouldn't it be nice if pdftex/luatex was able to generate PNGs out of the box? :) :) :) (Well, I know, ConTeXt is a bit different from LaTeX with respect to map files ...) Mojca
Le 29 janvier à 11:54:31 Mojca Miklavec
| Hello Jean,
| You need exactly (or at least) two things to make dvipng work: | - dvipng binary | - fonts/map/dvips/updmap/ps2pk.map
| I can add that to minimals, just a few questions below ... | It's just that one day it might be splitted (together with dvips & | different font tools that almost nobody uses) into some additional | package that one needs to install separately (with additional | arguments).
| We don't have updmap, so ps2pk needs to be either: | a) prepared semi-manually with fonts that minimals ship | b) taken from TeX Live with both fonts that minimals have and those | that are not shipped at all Hello Mojka, Thank you for taking from your time to look at that! | How many exotic fonts do you usually need? Well nothing really exotic: i just want to use context to ultimately create png images of math formulas to be shown as images on websites... | Does ps2pk require some special syntax? (reading | http://ftp.univie.ac.at/packages/tex/dviware/dvipng/fontmap.c and still | asking stupid questions ...)
No idea, I'm afraid (and no more ideas about the rest :-( )!
| There's only one thing I wonder about: [x]dvipdfmx uses the map file | that are specified in dvi (xdv) specials. | - How does dvips know which map files to use? / Is there some | "quasi-standard" way to secify map files in dvi? | - Would it make sense (in long term) to ask the author of dvipng to | honour the map files specified in dvi file instead of requiring ps2pk | to be unconditionally present? | - not to be taken seriously: (Wouldn't it be nice if pdftex/luatex was | able to generate PNGs out of the box? :) :) :)
| (Well, I know, ConTeXt is a bit different from LaTeX with respect to | map files ...) Thanks, -- Jean
Hi all, Tomorrow I will try to modify my muse-tex2png.el file so it uses the pdf output of context (or texexec), then "convert" to make a png file, instead of dvipng: I use this already for graphics (metapost or pgf) and it will probably be a better tool. Please Mojca no hard work on dvipng until I give more news :-) !! Cheers, -- Jean
participants (4)
-
Aditya Mahajan
-
Arthur Reutenauer
-
Jean Magnan de Bornier
-
Mojca Miklavec