GeneralLatex => PS => Pdf or pdflatex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
danj
Posts: 5
Joined: Wed Sep 10, 2008 12:13 pm

Latex => PS => Pdf or pdflatex

Post by danj »

I have been using Texniccenter to compile my thesis latex=>ps=> pdf.

After putting off some diagrams, which I finally got round to doing today, i noticed the quality is quite poor in comparison to other that I have done. I have had to convert .png to .eps files for the most recent images.

I was wandering if it would be worth using pdflatex to compile direct to .pdf?

Below is the code for my main file. I was wandering what else I would need to change in this file to compile directly to .pdf?

Code: Select all

\documentclass[a4paper,oneside,11pt,titlepage]{book}
\tolerance=1000
\hbadness=10000
\raggedbottom
\usepackage{epsfig}
\usepackage{sistyle}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{lscape,graphicx}
\usepackage{rotating}
%\usepackage{subfigure}
\usepackage{multirow}
\usepackage{makeidx}
%\usepackage{float}
\usepackage{palatino}
\usepackage{color}
\definecolor{orange}{rgb}{1,0.5,0}
\usepackage[dvips,colorlinks=true,linkcolor=blue,citecolor=green,breaklinks=true,pdffitwindow=true]{hyperref}
%\usepackage[sort&compress,numbers]{chapterbib}
\usepackage[left=4cm,right=2.5cm,bottom=2.5cm,top=2.5cm]{geometry}
\usepackage{hypernat}
%\usepackage{natbib}
\usepackage{chapterbib}
\usepackage[margin=10pt,font=small,labelfont=bf,nooneline]{caption}%, justification=centering, hang?
%\usepackage{subcaption}
%\DeclareCaptionSubType{sch} 
\usepackage[justification=centering]{subfig}
\usepackage{float}
\usepackage[countmax]{subfloat}
%\newfloat{sch}{hbt}{sch}[chapter] %try [tbp]
%\floatname{sch}{Scheme}


\newfloat{sch}{htbp}{los}[chapter]
\restylefloat*{sch}
\floatstyle{plain}
\floatname{sch}{Scheme}
\captionsetup[sch]{position=bottom}
\newcommand{\listofsch}{\listof{sch}{List of Reaction Schemes}}

%%%%% to create a chemicalequation float

%\usepackage{float}
\newfloat{chemicalequation}{htbp}{cex}[chapter]
\floatname{chemicalequation}{}

%%%%%%

%%%%% create chemequation environment

\newcounter{chemequation}
\renewcommand*\thechemequation{(\arabic{chemequation})}
\newenvironment{chemequation}{%
\stepcounter{chemequation}%
\begin{equation}}%
{\tag*{\thechemequation}%
\end{equation}}

%%%%% create chemtag to iterate and ref chemequations in an align environment

\newcommand*\chemtag{%
\stepcounter{chemequation}%
\tag*{\thechemequation}}

%%%%%

\newcommand\chemicalcaption[1]{%
  \refstepcounter{chemicalequation}
  \addcontentsline{cex}{section}%
   {\protect\numberline{\thechemicalequation}{\ignorespaces #1}}
}

\newsubfloat[position=bottom,listofformat=subparens]{sch}

%\usepackage{amsmath}
\usepackage{chemsym}
\usepackage{fancyhdr}
\renewcommand\bibname{References}
%\def\un#1{\,\text{#1}}
\makeatletter
\providecommand\barcirc{\mathpalette\@barred\circ}
\def\@barred#1#2{\ooalign{\hfil$#1-$\hfil\cr\hfil$#1#2$\hfil\cr}}
\newcommand\stst{^{\protect\barcirc}}
\makeatother 


%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%               FRONT PAGE
\author{{\large{}}}
\title{\textbf{\\ {$\;$}\\{$\;$}\\{$\;$}\\{$\;$}\\\normalsize{\emph{Submitted in
Accordance with the Requirements for the Degree of \\Doctor of Philosophy}}\\ 
{$\;$}\\{$\;$}\\\large{\}\\{$\;$}\\{$\;$}
\\{$\;$}\date{\today}\\{$\;$}\\{$\;$}\\{$\;$}\\{$\;$}\\
\small{\emph{The candidate confirms that the work submitted is his own \\and
that appropriate credit has been given where reference has\\ been made to the
work of others}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeindex
\begin{document}
\pagenumbering{roman}
\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FANCY HEADER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}                       % Sets fancy header and footer
\fancyfoot{}                            % Delete current footer settings
\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style
\markboth{\chaptername\ \thechapter.\ #1}{}} %
\renewcommand{\sectionmark}[1]{        % Lower case Section marker style
\markright{\thesection.\ #1}}         %
\fancyhead[R]{\bfseries\thepage}    % Page number (boldface) in left
\fancyhead[L]{\bfseries\rightmark}     % Section in the left on odd pages
\renewcommand{\headrulewidth}{0.5pt}    % Width of head rule
\addtolength{\headheight}{2pt}          % stop headheight from being too small
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%FRONT MATTER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\linespread{1.7}
\selectfont    %Allows linespread to change
\frontmatter
\sloppy
%\include{misc/quote}
%\addcontentsline{toc}{chapter}{Acknowledgements}
%\include{Misc/acknowledgements}
%\addcontentsline{toc}{chapter}{Abstract}
\include{Misc/Abstract}
%\addcontentsline{toc}{chapter}{Publications}
%\include{Misc/publications}
%\addcontentsline{toc}{chapter}{Contents}
\tableofcontents
\listoffigures
\listofsch%{sch}{List of Reaction Schemes}
\listoftables
%\include{misc/abbrev}
%\include{misc/symbols}
%%%%%%%%%%%%%%%%%%%%%%%CHAPTERS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mainmatter

\include{introduction/introduction}
%\appendix

%%%%%%%%%%%%%%%%%%%%%%INDEX%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\include{references}
\backmatter
%\addcontentsline{toc}{chapter}{References}
%\bibliography{references}
%\bibliographystyle{jacs}
\linespread{1}
\selectfont
\twocolumn
\printindex

\end{document}
I realise I am going to have to go through and change all my figures to

Code: Select all

\includegraphics[width=o.8\textwidth][file]
etc.

Is there anything else i need to be aware of and would it be worth it?

I am obviously not going to change my thesis as it stands but will make a copy and and have a play around with it, in the hope that it will work.

Any help appreciated.

Regards

danj

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Latex => PS => Pdf or pdflatex

Post by Stefan Kottwitz »

Hi danj,

welcome to the board! I will give some comments:
  • \usepackage{epsfig} ist probably not necessary, delete it.
  • \usepackage{graphics} can be deleted, it will be loaded by graphicx already.
  • \usepackage{lscape,graphicx} graphicx has been loaded already, remove it here, replace lscape by pdflscape.
  • Remove the option dvips to hyperref.
  • I would put the header definitions into the preamble.
  • I would not use \linespread but the package setspace instead.
  • It seems that there are closing braces missing for the title.
  • The title looks strange, for instance {$\;$}\\{$\;$}\\\large{\}\\{$\;$}\\{$\;$}. You could get space by different commands. What does \large{\}... mean? Do you need a brace, done by \}? Or a backslash, done by \large{\textbackslash}?
Stefan
LaTeX.org admin
danj
Posts: 5
Joined: Wed Sep 10, 2008 12:13 pm

Re: Latex => PS => Pdf or pdflatex

Post by danj »

Hi Stefan,

Thanks for your quick reply.

I have followed your suggestions and everything seems to work fine, except the referencing to figure etc, which I have edited out. I will start going through them one at a time and including as .png files. Hopefully all will go smoothly.

Thanks

danj
Post Reply