[Insight-developers] Insight Journal Latex Style
Luis Ibanez
luis.ibanez at kitware.com
Fri Feb 24 19:51:03 EST 2006
Hi Toon, John,
Thanks for pointing out to the method that can be used for making
conditional the lines that manages the inclusion of figures.
This has been incorporated in the Latex template.
Note that we had to move the lines from the InsightJournal.sty
file into the ArticleTemplate.tex file because they must be placed
after the "\begin{document}" statement.
Jim: with these changes, the template still builds using the
Makefile (that uses latex), but I run into problem using
pdflatex directly. I'm probably missing something obvious.
The template has been updated in the NAMIC sandbox and in the
tgz file at Kitware public ftp. Both are referenced from:
http://www.insightsoftwareconsortium.org/wiki/index.php/IJ-Article-Template
Could you please take a look at building the ArticleTemplate
by using pdflatex ?
Thanks
Luis
--------------------
Toon Huysmans wrote:
> Hi Luis,
>
> Checking for pdflatex can be done as follows:
>
> \newif\ifpdf
> \ifx\pdfoutput\undefined
> \pdffalse
> \else
> \pdfoutput=1
> \pdftrue
> \fi
>
>
> ..
>
> \ifpdf
> \dothis
> \else
> \dothat
> \fi
>
> or you could use the ifpdf package:
> ftp://cam.ctan.org/tex-archive/macros/latex/contrib/oberdiek.zip
>
> Greetings,
>
> Toon Huysmans.
>
> -----Oorspronkelijk bericht-----
> Van: insight-users-bounces+denhuys=hotmail.com at itk.org
> [mailto:insight-users-bounces+denhuys=hotmail.com at itk.org] Namens Luis
> Ibanez
> Verzonden: vrijdag 24 februari 2006 18:05
> Aan: James V (Research) Miller
> CC: Insight Users; insight-developers at itk.org
> Onderwerp: [Insight-users] Re: [Insight-developers] Insight Journal
> Latex Style
>
>
> 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
>
>
More information about the Insight-developers
mailing list