|
From: Steinar B. <sb...@do...> - 2003-05-04 16:20:54
|
>>>>> James Devenish <j-d...@us...>:
> Huh? I thought you could just insert your graphics codes directly.
Nope. It's a dia[1] drawing. I generate the .mp (MetaPost input
files), and .mps (PostScript generated by MetaPost) files, with the
following GNU makefile rule:
%.mps: %.dia
dia --nosplash --export-to-format=mp $<
mpost $*.mp
mv $(*F).1 $*.mps
The .mp files are TeX, but I don't know if pdflatex has the neccessary
macros loaded. Do you know?
The .mps files are EPS, as far as I can tell, but EPS in a form that
pdflatex can digest. I'm told pdflatex cannot digest arbitrary EPS
files.
> Alternatively, you could do something like this:
> <mediaobject>
> <textobject>
> <phrase role="latex">\input{my.file}</phrase>
> </textobject>
> </mediaobject>
Thanx. But there's still the scaling issue. And, I guess, not
picking an <imageobject> found inside the <mediaobject>, instead of
the <textobject>...?
Why's the role on the <phrase> and not on the <textobject>?
- Steinar
PS as I've said earlier, this was just an idle thought, and not
something I need. The .mps files work fine with pdflatex. So please
don't spend time on it on my account. Of course, if you find this an
interesting TeX-hack, I'm happy to assist in any way I can. :-)
[1] Gnome graphical editor, http://www.lysator.liu.se/~alla/dia/
|