Code: Select all
\begin{figure}[!h]
\centering
\fbox{\includegraphics[width=7cm]{Recepción}}
\caption[Recepción a bordo en Kiel.]{La foto, que no es de mucha calidad, está hecha el día de la recepción a bordo.}
\label{fig:026}
\end{figure}
This is the preamble of my document, a book class document. If I write
\usepackage[latin1]{inputenc}
I obtain the error latin9 is already in use with the fancyhdr package.Code: Select all
\date{}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{tikz}
\setlength{\headheight}{15pt}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\slshape\nouppercase\rightmark}
\fancyhead[RE,LO]{\bfseries\slshape\nouppercase\leftmark}
\fancyfoot[C]{\bfseries\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.0pt}
\usepackage{ifthen}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{ccaption}
\usepackage[labelsep=endash,font={small,it},labelformat=simple,labelfont=bf,figurewithin=none,justification=centering]{caption}
\usepackage{textcomp}
\usepackage{nccparskip}
\usepackage{titlesec,titletoc}
\usepackage{tocloft}
\setlength\cftparskip{-2pt}
\setlength\cftbeforesecskip{1pt}
\setlength\cftaftertoctitleskip{2pt}
\titleformat{\chapter}[display]
{\Large\bfseries\fillast\vspace{-25pt}}
{\normalfont\bfseries\chaptername\hspace{5pt}\thechapter}
{.5ex minus .1ex}
{\Large}[\vspace{-15pt}]
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\vspace*{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
\clubpenalty=10000
\widowpenalty=10000
\counterwithout{footnote}{chapter}
\usepackage[bookmarks=true,bookmarksopen=true,bookmarksopenlevel=2,bookmarksnumbered=true,breaklinks=true,linktocpage=true]{hyperref}