Using the following MWE:
Code: Select all
\documentclass[10pt]{article}
\usepackage{float}
\usepackage{hyperref}
% new float style
\floatstyle{ruled}
\newfloat{fileex}{htbp}{lop}
\floatname{fileex}{File}
\begin{document}
\begin{fileex}[htp]
\begin{footnotesize}
hello
\end{footnotesize}
\caption{this is a test file}
\label{fig:test}
\end{fileex}
This is an example of a hyper ref \ref{fig:test}.
\end{document}
Code: Select all
Package hyperref Info: bookmark level for unknown fileex defaults to 0 on input
line 16.
Code: Select all
! Missing number, treated as zero.
<to be read again>
\relax
l.6 \end{fileex}
I have looked at similar poblems in various forums, and there is mention of the order in wih you use the packages, or including the usepackages "algorithm" and/or "agorithmic". None of which work...
Any suggestions would be greatfully accepted...