[texhax] HOWTO: Include several pages long graphics?

Ross Moore ross at ics.mq.edu.au
Sun Jul 27 11:33:55 CEST 2003


Hello Daniel,

On Sun, 26 Jul 2003, Daniel Savard wrote:

> I know about the \includegraphics command and usage. However, I am
> trying to figure out if there is any way to include a several pages long
> graphics file into a LaTeX document.
>
> I have a serie of flowchart graphics file which are longer than a single
> page, some are taking something like 3 to 5 pages. Is there a way to
> include these graphics files into a LaTeX document with an already
> defined layout and have these graphics respect the page break? I can
> scale down them in order to fit properly the width of my page (or
> available space in the document), but the trick will not work for the
> length. Scaling them to that size will render them unreadable.

Since you don't want to scale the image, I must presume that you
mean to show the image in adjacent pieces over the required 3--5 pages.

Certainly you can do this, using the  viewport=.....  option
to \includegraphics  (requires \usepackage{graphicx} I think).
You just call \includegraphics on the same file, with an appropriate
viewport for each visible segment.

Using the dvi --> dvips route, the image will be included separately for
each instance of \includegraphics, potentially give a very large .ps file.
However, if you are using  pdflatex, then the image is included just once,
with different portions being rendered as required by the PDF viewer.


>
> My last resort solution will be to break the file into several files,
> each one page long, scale them down and include them separately. But, I
> am looking for a more straight forward solution, since I would like to
> avoid this hassle when the flowcharts are modified by another tool.
>
> Anybody can help me to find an other solution, if such a solution
> exists?

Explained above.
Get the  LaTeX Graphics Companion if you need further help beyond what
is easily understood from reading the graphics/graphicx package
documentation.


Hope this helps,

	Ross Moore

>
> --
>
> =======================================
> Daniel Savard
> Consultation Informatique Daniel Savard
> 551, boul. Sir-Wilfrid-Laurier
> suite 105
> Beloeil, (Québec)
> Canada J3G 4J1
>
> Tél: (450) 467-8014
> Internet: dsavard at cids.ca
> =======================================
>
>
> _______________________________________________
> TeX FAQ: http://faq.tug.org/
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/interest.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>


More information about the texhax mailing list