kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
820 stars 392 forks source link

Figure options (raster/vector) #238

Closed TorkelE closed 1 year ago

TorkelE commented 1 year ago

Hello, currently, for each figure, I create a png and an eps version, putting them in the raster and vector folder respectively. When I compile the thesis, the raster (.png) version is used. I am not expert at this, but given that I have a vector graphics version, isn't it better to use that one?

The beginning of every chapter has code:

\ifpdf
    \graphicspath{{Appendix2/Figs/Raster/}{Appendix2/Figs/PDF/}{Appendix2/Figs/}}
\else
    \graphicspath{{Appendix2/Figs/Vector/}{Appendix2/Figs/}}
\fi

this has to do with this, right, but I am not sure why? Would it be possible to add some text to the documentation describing how one should use the figures sensibly?

GR8DAN commented 1 year ago

I understand that \ifpdf detects if the pdflatex compiler is being used instead of the original latex compiler. The latter uses eps files and the former can support raster images and PDF vector images. If you want vector files convert them to PDF (epstopdf) and ensure you're compiling with pdflatex, see https://tex.stackexchange.com/a/52102/166824

TorkelE commented 1 year ago

Thanks, that is helpful, I think I got it now.