many thanks, it works just fine!
the only problem, that I have right now is that I seem to have an incompatibility issue with my packages.
the errors are:
1.
command \c@float@type already defined
\newcounter{float@type}
2. addtocontents{1}{1}} \the\float@exts}
the permeable of my document is here. I would be grateful if you could kindly have a look at it. The text compiled with no problem, it just gives 2 errors.
many many thanks
Code: Select all
%!TEX TS-program = latex
%!TEX encoding = UTF-8 Unicode
\documentclass[11,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{array,booktabs}
\usepackage{tikz}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{blindtext}
\parindent0em
\DeclareCaptionType[fileext=los,placement=htb,within=chapter]{scheme}
\usepackage[super]{natbib}
\bibliographystyle{science}
\nocite{*} % list all refs in database, cited or not.
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % ... or a4paper or a5paper or ...
%\geometry{landscape} % Activate for for rotated page geometry
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{epstopdf} % to include .eps graphics files with pdfLaTeX
\usepackage{flafter} % Don't place floats before their definition
%\usepackage{topcapt} % Define \topcation for placing captions above tables (not in gwTeX)
\usepackage{memhfixc}
\usepackage{booktabs} % for much better looking tables
\usepackage{pdfsync} % enable tex source and pdf output syncronicity
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfigure} % make it possible to include more than one captioned figure/table in a single float
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{color}
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{fancyhdr}
\usepackage{afterpage}
\usepackage{psfrag}
\usepackage{cite}
\usepackage{citesort}
\usepackage{float}
\usepackage{array}
\usepackage{setspace}
\doublespacing
\usepackage{subfigure}
\usepackage{wrapfig}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection\ #1}}
\fancyhf{} % delete current header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} % space for the rule
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}
%% NEW PACKAGES %%
%stuff that follows is for the Scheme float labels
%\makeatletter \def\fnum@scheme{\textbf{\fname@scheme~\thescheme}}\renewcommand\float@makebox{% \vbox{\hsize\columnwidth \@parboxrestore\@fs@pre
% \@fs@iftopcapt \ifvbox\@floatcapt\unvbox\@floatcapt\par\@fs@mid\fi \unvbox\@currbox
% \else\unvbox\@currbox
% \ifvbox\@floatcapt\par\@fs@mid\unvbox\@floatcapt\fi
% \fi\par\@fs@post\vskip\z@}}\makeatother
%%%%
%counter for compounds; arabic numbers
% syntax: to introduce new compound: \newcompd{label}.
% The compound receives a consecutive, bold number.
% this number can be referenced by "label" and the correct compound number is output.
% usage : \refcompd{label}
\newcounter{compd} % definition of compd as a counter
\renewcommand{\thecompd}{{\bfseries \arabic{compd}}}
% LaTeX uses "the"counter, to reference to counter. Output is formatted as bold, arabic
% Usage of \newcompd does:
% thecompd is incremented as a referencable counter and label is defined.
% then the value of thecompd is output in bold arabic digits, as definedin \renewcommand.
\newcommand{\newcompd}[1]{\refstepcounter{compd}\label{#1}\thecompd}
% The command \refcompd is used for referencing to defined compounds:
% \ref calls on the corresponding \thecompd to a given label #1 and outputs it as defined.
\setcounter{compd}{0}
\newcommand{\refcompd}[1]{\ref{#1}}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
%\newfloat{scheme}{thb}{lop}[chapter]
%\floatname{scheme}{\bf Scheme}
%%%%% set length are missing %%%
\pagestyle{fancy}
%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)
%%% ToC APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
% Activate to display a given date or no date
\begin{document}