David Kastrup | 2 Mar 2004 04:23
Picon
Picon

CVS-1.196; dvipng tries regenerating fonts to desperation


Remember to cover the basics.  Including a minimal LaTeX example
file exhibiting the problem might help.

Running `Preview-LaTeX' on `_region_' with ``latex "\nonstopmode\PassOptionsToPackage{active,dvips,counters,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}\fi}\input{_region_.tex}"''
This is TeX, Version 3.14159 (Web2C 7.4.5)
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, g
reek, italian, latin, nohyphenation, loaded.

(./_region_.tex  !name(diss.tex) (/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk10.clo))
(/usr/share/texmf/tex/generic/german/german.sty v2.5e 1998-07-08)
(/usr/share/texmf/tex/latex/misc/bibgerm.sty
** Macros for german `BibTeX'ing added to Style Option `german' 20 Apr 1993 **
** idea and languages `german' and `USenglish' implemented by M. Wallmeier **
** Modified for LaTeX 2e and german.sty 2.5b by A. Scherer 1 Nov 1995 **
** Modified for ngerman.sty and babel.sty by H. Harders 21 August 2000 **)
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/latin1.def))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/cyrillic/ot2enc.def)
(/usr/share/texmf/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/misc/nomencl.sty)
Writing glossary file _region_.glo
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(Continue reading)

Jan-Åke Larsson | 2 Mar 2004 08:46
Picon
Picon
Favicon

Re: [preview-latex-devel] CVS-1.196; dvipng tries regenerating fonts to desperation

David Kastrup wrote:
> kpathsea: Running mktexpk --mfmode cx --bdpi 431 --mag 1+0/431 --dpi 431 ecbx1440
> mktexpk: Mismatched mode cx and resolution 431; ignoring mode.
> mktexpk: Can't guess mode for 431 dpi devices.
> mktexpk: Use a config file, or update me.
> kpathsea: Appending font creation commands to missfont.log.
> dvipng warning: font ecbx1440 at 431 not found, characters will be left blank.

Urgh, this is because dvipng wants to generate a font at a resolution
not covered by the cx mode. If you use the freetype support, this will
not happen. I now know enough to fix this even for the fallback PK
fonts, but I have no time this week, sorry. Next week is probably
better. 

(What needs to be done is to use the base device resolution of some
"close enough" known mode and adjust the output dpi for the proper
output.)

/JÅ

--

-- 
"We just typed make"
   Stephen Lambrigh, Director of Server Product Marketing at Informix
   about porting their Database to Linux

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
(Continue reading)

David Kastrup | 2 Mar 2004 08:57
Picon
Picon

Re: [preview-latex-devel] CVS-1.196; dvipng tries regenerating fonts to desperation

Jan-Åke Larsson <jalar <at> mai.liu.se> writes:

> David Kastrup wrote:
> > kpathsea: Running mktexpk --mfmode cx --bdpi 431 --mag 1+0/431 --dpi 431 ecbx1440
> > mktexpk: Mismatched mode cx and resolution 431; ignoring mode.
> > mktexpk: Can't guess mode for 431 dpi devices.
> > mktexpk: Use a config file, or update me.
> > kpathsea: Appending font creation commands to missfont.log.
> > dvipng warning: font ecbx1440 at 431 not found, characters will be left blank.
> 
> Urgh, this is because dvipng wants to generate a font at a
> resolution not covered by the cx mode. If you use the freetype
> support, this will not happen. I now know enough to fix this even
> for the fallback PK fonts, but I have no time this week, sorry. Next
> week is probably better.

The preview-latex release schedule is not bound to that of dvipng.
It has worked without dvipng before.  We'll survive.

> (What needs to be done is to use the base device resolution of some
> "close enough" known mode and adjust the output dpi for the proper
> output.)

Whatever you do, it is vital that a font will only once be attempted
to be generated at a given resolution.  We can't have a 300 image
file fail 300 times generating the same missing font.

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

(Continue reading)

Jan-Åke Larsson | 2 Mar 2004 09:11
Picon
Picon
Favicon

Re: [preview-latex-devel] CVS-1.196; dvipng tries regenerating fonts to desperation

David Kastrup wrote:
> Whatever you do, it is vital that a font will only once be attempted
> to be generated at a given resolution.  We can't have a 300 image
> file fail 300 times generating the same missing font.

Whoa! Will do.

/JÅ

--

-- 
Running Windows on a Pentium is like having a brand new Porsche
but only be able to drive backwards with the handbrake on.

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
Jan-Åke Larsson | 8 Mar 2004 16:35
Picon
Picon
Favicon

Re: [preview-latex-devel] CVS-1.196; dvipng tries regenerating fonts to desperation

David Kastrup wrote:
> Whatever you do, it is vital that a font will only once be attempted
> to be generated at a given resolution.  We can't have a 300 image
> file fail 300 times generating the same missing font.

Try CVS dvipng now. It will still fail but only once for each
font+size.

The general scaling code is still to come.

/JÅ

--

-- 
You can't fit the truth in a .sig file.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
mail | 9 Mar 2004 08:04
Picon

Virus Detected by Network Associates, Inc. Webshield SMTP V4.5 MR1a

Network Associates WebShield SMTP V4.5 MR1a on mail-relay2 intercepted a mai
l from <preview-latex-bugs <at> lists.sourceforge.net> which caused the Content F
ilter ashu2 to be triggered.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Christian Gudrian | 15 Mar 2004 12:03
Picon
Picon

CVS-1.199; Ghostscript error

Hello!

Everytime I run preview on my documents I encounter a GS error (see
below).  Since I am not at all familiar with GS I am not able to debug
this behaviour properly.  As far as I can tell I am still using the
default configuration of preview.

Cheers,

   Christian

GS-Output:

gs -q -dSAFER -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4
-sDEVICE\=png16m -r128.516x130.048
GS>/preview-latex-do{[count 3 roll save]3 1 roll{setpagedevice}stopped{handleerror quit}if cvx
systemdict/.runandhide known{.setsafe(AFPL Ghostscript)product
ne{<<>>setpagedevice}if{.runandhide}}if gsave 0.996109 0.996109 0.996109setrgbcolor clippath
fill 0.705882 0.933333 0.705882 setrgbcolor false setstrokeadjust 3 setlinewidth clippath
strokepath matrix setmatrix true {2 index{newpath}if round exch round exch moveto pop false}{round
exch round exch lineto}{curveto}{closepath}pathforall pop fill grestore  stopped{handleerror
quit}if count 1 ne{quit}if aload pop restore<</OutputFile(/dev/null)>>setpagedevice}bind def
(previewtest.prv/tmp29271ZzA/preview.ps)(r)file dup dup 0 setfileposition
23261()/SubFileDecode filter cvx exec dup dup 23261 setfileposition 67()/SubFileDecode filter cvx
<</PageSize[20.5863 7.65364]/PageOffset[71.5 719.5[1 1 dtransform exch]{0 ge{neg}if exch}forall]/Outpu
 tFile(previewtest.prv/tmp29271ZzA/prev001.png)>>preview-latex-do
Error: /undefined in 0.996109setrgbcolor
Operand stack:
   --nostringval--   --nostringval--   --nostringval--   0.996109   0.996109
Execution stack:
(Continue reading)

David Kastrup | 15 Mar 2004 18:06
Picon
Picon

Re: [preview-latex-devel] CVS-1.199; Ghostscript error

Christian Gudrian <Christian.Gudrian <at> gmx.de> writes:

> Everytime I run preview on my documents I encounter a GS error (see
> below).  Since I am not at all familiar with GS I am not able to debug
> this behaviour properly.  As far as I can tell I am still using the
> default configuration of preview.

The following patch  should help (I'll check it in in a minute).
That's the danger of using CVS.  Sorry for the typo.

PostScriptum: This was not sufficient.  Checked in another patch which
would amount to the following:

Attachment: text/x-patch, 1512 bytes

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
David Kastrup | 15 Mar 2004 18:00
Picon
Picon

Re: [preview-latex-devel] CVS-1.199; Ghostscript error

Christian Gudrian <Christian.Gudrian <at> gmx.de> writes:

> Everytime I run preview on my documents I encounter a GS error (see
> below).  Since I am not at all familiar with GS I am not able to debug
> this behaviour properly.  As far as I can tell I am still using the
> default configuration of preview.

The following patch  should help (I'll check it in in a minute).
That's the danger of using CVS.  Sorry for the typo.

Attachment: text/x-patch, 381 bytes

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Miguel Frasson | 22 Mar 2004 14:42
Picon
Picon
Favicon

rel-0-7-3; Formulas should not be in black in a black background


Remember to cover the basics.  Including a minimal LaTeX example
file exhibiting the problem might help.

Hi.

I set my background color to black with the following code in my .emacs

   (set-background-color "black")
   (set-foreground-color "white")

When I use preview-latex in by buffers I get formulas in black!!! It
doen't care about my foreground and background colors. The only thing I
can see are the grays because of antialiasing in ps.

The optimal situation would be to generate images via a ps file with my fg
and bg color as fg and bg in the ps file, so that antialiasing would look
good outside the trivial (fg=black,bg=white) case

Thanks in advance

Miguel Frasson.

Emacs  : GNU Emacs 21.3.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-10-27 on daffy.perf.redhat.com
Package: rel-0-7-3

current state:
==============

(Continue reading)


Gmane