Re: TeX export failure (was: [Fwd: Problem with .tex graphics generated with Dia and tetex3x])



hiho - 

forgive me, just curious -- i am new to miktex/latex/textex but i
gather that they are for making pretty documents potentially with math
equations...  i had no idea that you could use dia for page
layout/math equations -- but then again, i am fairly new to dia...

...so with that intro, could you send an attachment/example of a
..."diagram(s) consisting of native TeX commands somehow, to
match(ing) the font and formula look of the text"?

...just curious...

danka,

tomas

On Apr 12, 2005 7:49 AM, Klaus Lutterjohann <loial gmx net> wrote:
Hi Ben,

thank you for your advise. It really works! :-)
(Even though I use MikTeX instead of tetex)

I therefore publish your answer to the Dia mailing list. Even if currently
I am the only one with these problems, at least the mailing list archive
will have the solution for future use.

And maybe the Dia developers can adjust the use of \scalebox sometime to
adapt to the changes in TeX/PSTricks.
(\scalebox{x-scale y-scale}{...}  --->  \scalebox{x-scale}[y-scale]{...})

Unfortunately, now that the diagrams work, I see that PSTricks does not
work with PDFTeX! The document compiles without error, but Acrobat Reader
says (german): "Fehlerhafter Objekttyp in einem Textoperator-Array" and
"Ein nicht erkannter Token 'Black' wurde gefunden"  --> no output at all!
My intention was to include diagrams consisting of native TeX commands
somehow, to match the font and formula look of the text. But if I cannot
use PDF (necessary for other reasons) the whole thing makes no sense
anymore :-(
I considered exporting the diagram to EPS and converting to PDF for
inclusion, but that way I can't use math formulas in my diagram, and the
font doesn't match as well.
I will have to look elsewhere to find a tool that gets along without
PSTricks :-(

Thanks & Regards,
Klaus Lutterjohann

------- Forwarded message -------
From: "Benoit Vinsonneau" <b vinsonneau coventry ac uk>
To: loial gmx net
Subject: [Fwd: Problem with .tex graphics generated with Dia and tetex3x]
Date: Tue, 12 Apr 2005 14:57:21 +0100

Hi,

I have seen your Email on Dia list. I have contacted them for the same
reason. Here is the Email I send. It is basically a problem of tetex
version. If you downgrade to older tetex it should work fine. Otherwise,
followed the instruction in the forwarded email, and if you find other
solutions, thanks for letting me know!

Regards,

Ben

------- Forwarded message -------

[...]
I just upgraded from tetex2x to tetex3x on my Gentoo linux system and I
am not able anymore to compile my latex files with graphics created and
exported to .tex by Dia0.94. The culprite is :

\scalebox{x-scale y-scale}{...}
which, in tetex3x, change to:
\scalebox{x-scale}[y-scale]{...}

making this change allow me to compile my file!

As well, what is the logic behind the -1? Would not it be simpler to
create everything in the right order and therefore avoid the use of
scalebox? (all scaleboxs I found are \scalebox{1 -1}).

There is still plenty of problems in the picture (misplaced elements)
but I did not find yet what was the others problems!
[...]

------------ My first request -----------
I have troubles exporting a diagram to TeX (PSTricks).
Regardless of my selected TeX output type (dvi, ps or pdf) I get multiple
errors when compiling with
LaTeX (75 for one diagram).
I use Dia 0.94 -- which is the current release -- and PSTricks 1.04
(2004/06/22) on Windows XP.

PDFTeX (my favourite; without loss of generality) says:
--------------------------
! Illegal unit of measure (pt inserted).
<to be read again>
                   -
l.425 }
       \endpspicture
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Missing = inserted for \ifdim.
<to be read again>
                   -
l.425 }
       \endpspicture
I was expecting to see `<', `=', or `>'. Didn't.

! Missing number, treated as zero.
<to be read again>
                   \box
l.425 }
       \endpspicture
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
---------------------------
_______________________________________________
Dia-list mailing list
Dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]