[texhax] [IC/Admin] Putting image *data* inside a TeX/LaTeX file?
Steve Schwartz
s.schwartz at imperial.ac.uk
Tue Apr 7 19:00:30 CEST 2009
As another random idea, perhaps there's a way to embed a metapost image
within a latex file. I don't use metapost, but I know that it is used
mainly to generate separate .mbs files that get included with
includegraphics, but perhaps there is a trick to use them in the same
way inside a special. The potential advantage is that .mbs files are
"purified" eps that can be understood by pdflatex as well as dvips. [I
don't know if it is possible to use \special at all in pdflatex,
though.]
I mention this because the flowchart software Dia, freely available,
multi-platform ..., will import a bitmap image and export it as an mbs.
The one example I tried it looks like it simply has a draw command for
each pixel in the bitmap.
This will require a metapost guru and pdflatex guru, but I thought it
sufficiently off-the-wall that it might point to something useable.
Steve
On Tue, 2009-04-07 at 16:59 +0100, Sam Albers wrote:
> This is just an idea and maybe I have misunderstood your request but I
> know you can use Inkscape to export an .EPS file using the PS tricks
> macros.
>
> So instead of having to send both files, you can send one .tex file
> with the Inkscape output...
>
> Just an idea.
>
> On Mon, Apr 6, 2009 at 2:44 PM, Jorge Stolfi <stolfi at ic.unicamp.br>
> wrote:
>
> Hello,
>
> I need to create a LaTeX style for technical report covers.
> The cover
> is to show the institution's logo, which exists only in bitmap
> form.
>
> Normally I would provide the user with two files, the
> "report.sty" and
> a "logo.eps" file. However, life would be simpler for users if
> they
> had only one file to download.
>
> So, is there a way to include the image pixel data (or the
> contents of
> the "logo.eps" file) in the "report.sty" file itself? Say,
> within a
> largish "\special" command?
>
> Thanks, and all the best,
>
> --stolfi
>
> Jorge Stolfi
> Institute of Computing
> State University of Campinas (UNICAMP)
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management:
> http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
>
>
> --
> *****************************************************
> Sam Albers
> Geography Program
> University of Northern British Columbia
> 3333 University Way
> Prince George, British Columbia
> Canada, V2N 4Z9
> phone: 250 960-6777
> *****************************************************
--
+-------------------------------------------------------------------+
Professor Steven J Schwartz Phone: +44-(0)20-7594-7660
Head, Space & Atmospheric Physics Fax: +44-(0)20-7594-7900
The Blackett Laboratory E-mail: s.schwartz at imperial.ac.uk
Imperial College London Office: Huxley 711A
London SW7 2AZ, U.K. Web: www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+
More information about the texhax
mailing list