[Insight-users] Re: [Insight-developers] Insight Journal Latex Style

Jim Miller millerjv at gmail.com
Fri Feb 24 16:17:41 EST 2006


Hans,

Great info.  I think in the case of Insight Journal template the situation
is bit simpler. I don't think that people would necessarily want to process
the same article with both latex and pdflatex.  Rather, an author of a given
article may choose to use latex and an author of another article may choose
pdflatex.  The Insight Journal template "could" support both. (This is
hypothetical, I really have no idea how hard that would be.)

This is different from having a single article format with both latex and
pdflatex, where one would have to worry about eps figures or png/jpeg/pdf
figures.

Personally, I like using the advanced pdf features like bookmarks, etc.
available in pdflatex.



On 2/24/06, Hans Johnson <hans-johnson at uiowa.edu> wrote:
>
> Luis,
>
> I ran across this just the other day:
>
> http://telin.ugent.be/~slippens/drupal/?q=ifpdf
>
> I have not tried it.
>
> Writing a LaTeX document that you want to feed to both plain latex and
> pdflatex can be sometimes a conflicting task. If you want to embed
> graphics for example, latex needs EPS based graphics but pdflatex needs
> PDF based graphics. Other problems can occur if you want to use some PDF
> specific functionality like bookmarks and other navigational stuff. With
> the use of the package ifpdf, you can write conditional LaTeX code in
> your document.
>
> The package defines a switch \ifpdf, which you can use as in the
> following simple example:
>
> \documentclass{article}
>
> \usepackage{ifpdf}
>
> \begin{document}
>
> \ifpdf
>   pdflatex was here
> \else
>   plain latex was here
> \fi
>
> \end{document}
>
>
> Hans
>
>
> Luis Ibanez wrote:
>
> >
> > Hi Jim,
> >
> > I don't see any reason for not endorsing "pdflatex" as the preferred
> > tool for generating PDF files for the Insight Journal.
> >
> > As fas as I know, pdflatex can be found in most Linux distributions
> > as well as Cygwin.
> >
> > I commented out from the InsightJournal.sty the lines for invoking
> > the ImageMagik 'convert' tool. Those who prefer to use latex directly
> > can restore these lines and in this way recover the previous behavior.
> >
> > If somebody knows a way of checking whether the style is being invoked
> > from "latex" or from "pdflatex" please let us know, so we can find a
> > way of making the enabling/disabling of these lines to be automatic.
> >
> >
> >
> >
> >     Thanks for pointing this out.
> >
> >
> >
> >         Luis
> >
> >
> >
> >
> > ----------------------
> > Gaetan Lehmann wrote:
> >
> >> Hi all,
> >>
> >> I'm using tex -> dvi -> ps -> pdf without much problem. It just
> >> require to have a Makefile to do that. Here is mine:
> >> http://voxel.jouy.inra.fr/darcs/contrib-itk/template/article/Makefile
> >>
> >> That said, I agree that the IJ template should allow to use pdflatex
> :-)
> >>
> >> Gaetan
> >>
> >> On Wednesday 22 February 2006 19:06, Joshua Cates wrote:
> >>
> >>> Hi Jim, all,
> >>>
> >>> I agree that pdflatex is a more convenient way to go.  It would be
> >>> nice to
> >>> keep the .sty file as accommodating as possible.
> >>>
> >>> Josh.
> >>>
> >>> Miller, James V (GE, Research) wrote:
> >>>
> >>>> My latex is pretty rusty but I have some questions/suggestions on the
> >>>> Insight Journal latex style.
> >>>>
> >>>> Lately, I have been using pdflatex which "appears" to be the
> preferred
> >>>> mechanism for generating pdfs from latex documents and getting the
> >>>> table
> >>>> of contents and hyperlinks managed.
> >>>>
> >>>> I have been using the graphicx package with pdflatex which "natively"
> >>>> supports including images in pdf, png, etc. formats (but not eps).
> >>>> Since
> >>>> most the images I produce are in png or jpeg format, I can include my
> >>>> images directly into pdflatex without using an external conversion
> >>>> tool.
> >>>>
> >>>> The InsightJournal.sty file has a entries at the bottom of the file
> >>>>
> >>>> \DeclareGraphicsExtensions{.eps,.jpg,.gif,.tiff,.bmp,.png}
> >>>> \DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`convert #1 eps:-}
> >>>> \DeclareGraphicsRule{.gif}{eps}{.gif.bb}{`convert #1 eps:-}
> >>>> \DeclareGraphicsRule{.tiff}{eps}{.tiff.bb}{`convert #1 eps:-}
> >>>> \DeclareGraphicsRule{.bmp}{eps}{.bmp.bb}{`convert #1 eps:-}
> >>>> \DeclareGraphicsRule{.png}{eps}{.png.bb}{`convert #1 eps:-}
> >>>>
> >>>> which appear to try to perform an automated conversion of file
> >>>> types to
> >>>> eps.  Having these lines in the style actually prevents me some using
> >>>> the native capabilites to include png files, etc. So in my local
> >>>> copy, I
> >>>> commented out these lines. Of course, it took me some time to
> >>>> figure out
> >>>> why my images were not appearing.
> >>>>
> >>>> Is there any reason not to endorse using pdflatex+graphicx over using
> >>>> graphics+convert?
> >>>>
> >>>> *Jim Miller*
> >>>> *//**/_____________________________________/*//
> >>>> /////Visualization & Computer Vision
> >>>> GE Research
> >>>> Bldg. KW, Room C223
> >>>> 1 Research Circle, Schenectady NY 12309-1027
> >>>>
> >>>> _millerjv at research.ge.com <mailto:millerjv at research.ge.com>_/
> >>>> /(518) 387-4005, Dial Comm: 8*833-4005/
> >>>> /Cell: (518) 505-7065, Fax: (518) 387-6981/
> >>>>
> >>>>
> >>>>
> >>>>
> ------------------------------------------------------------------------
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Insight-developers mailing list
> >>>> Insight-developers at itk.org
> >>>> http://www.itk.org/mailman/listinfo/insight-developers
> >>>
> >>>
> >>> _______________________________________________
> >>> Insight-developers mailing list
> >>> Insight-developers at itk.org
> >>> http://www.itk.org/mailman/listinfo/insight-developers
> >>>
> >>>
> >>>
> ------------------------------------------------------------------------
> >>>
> >>>
> >>> _______________________________________________
> >>> Insight-developers mailing list
> >>> Insight-developers at itk.org
> >>> http://www.itk.org/mailman/listinfo/insight-developers
> >>
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20060224/4a369d00/attachment.htm


More information about the Insight-developers mailing list