I introduce a figure as follows:
\begin{figure}
\centering
\includegraphics[scale=0.300]{Figure.eps}
\caption{Caption for the figure}
\label{a}
\end{figure}
In the preamble I have written:
\usepackage{caption}
\captionsetup{font={small}}
I am writing the .tex file in Vim, in Ubuntu 12.04 LTS. When I compile the .tex file writing in the terminal:
bash make_latex.sh
(script which link is here: http://www.mediafire.com/view/p6ha13gt53nilpv/make_latex.sh )
I receive this error:
I have installed manually the caption package following all these steps: http://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages
First Step: I extracted the .ins file writing
latex caption.ins
The information generated in the terminal is here: https://www.mediafire.com/?o4giarg9jb4rov9
Second Step: As said in the instructions, I wrote:
latex caption.dtx
The information generated in the terminal is here: https://www.mediafire.com/?cl9ocvbid721p0a
Third Step: In /usr/local/share/texmf/tex/latex/caption
I copied the files that the info in the First Step told that were necessary to be copied. Here is the "proof":
Fourth Step: As said in the instructions, I made
texhash
And as it is shown here:
The process was done.
So, the question is: Why am I receiving that error when compiling ? I would appreciate very much if someone could help me
The latex version is:
Here is my entire preamble:
\documentclass[12pt,a4paper,twoside,openany]{report}
\usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
\parindent 1 true cm
\usepackage{graphicx}
\usepackage{eufrak}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{float}
\usepackage{color}
\usepackage[longnamesfirst,super]{natbib}
\setcitestyle{square}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter .\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection .\ #1}{}}
\lhead{\nouppercase}
\rhead{\nouppercase}
\fancyhead[LE]{{\sf \leftmark}}
\fancyhead[RE]{}
\fancyhead[RO]{{\sf \rightmark}}
\fancyhead[LO]{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[CE,CO]{}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\baselinestretch}{1.25}
\usepackage{adjustbox}
\usepackage{enumerate}
\usepackage{courier}
\usepackage{caption}
\usepackage[version=3]{mhchem}
\usepackage{rotating}
\usepackage[percent]{overpic}
\captionsetup{font={small}}
\begin{document}
caption
with a suitableapt-get
command. Did you runsudo mktexlsr
?sudo apt-get install texlive-latex-recommended
caption
. As far as I can remember,\captionsetup
was already present in the version ofcaption
available in 2009. Anyway, being five years behind is really too much, you should try upgrading your TeX Live.mktexlsr
. See Which package version am I using?\usepackage[font=small]{caption}
and omit the\captionsetup
instruction?