Re: [NTG-context] Minimals and dvipng

2009-01-30 Thread Jean Magnan de Bornier
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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-29 Thread Mojca Miklavec
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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-29 Thread Jean Magnan de Bornier
Le 29 janvier à 11:54:31 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit 
notamment:

| 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

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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-22 Thread Jean Magnan de Bornier
Le 21 janvier à 23:32:07 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit 
notamment:

| 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?

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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-21 Thread Jean Magnan de Bornier
Le 20 janvier à 21:16:57 Arthur Reutenauer arthur.reutena...@normalesup.org 
é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. 
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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-21 Thread Aditya Mahajan

On Wed, 21 Jan 2009, Jean Magnan de Bornier wrote:


Le 20 janvier à 21:16:57 Arthur Reutenauer arthur.reutena...@normalesup.org 
é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___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-21 Thread Mojca Miklavec
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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-20 Thread Arthur Reutenauer
 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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-20 Thread Jean Magnan de Bornier
Le 20 janvier à 09:25:29 Arthur Reutenauer arthur.reutena...@normalesup.org 
écrit notamment:

|  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.

Well Arthur, thanks!

But just copying or linking dvipng is not enough (same result); what kind
of hack would you suggest?

-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-20 Thread Arthur Reutenauer
   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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-20 Thread Jean Magnan de Bornier
Le 20 janvier à 13:49:28 Arthur Reutenauer arthur.reutena...@normalesup.org 
écrit notamment:

|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

Ho yes!!
Thanks a lot, it works. Will there be any side-effect on normal uses of context?
-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Minimals and dvipng

2009-01-20 Thread Arthur Reutenauer
 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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___