thx.,
glen
Can you prepare a small document showing the behaviour?
Uwe
Give us a complete document. I can figure out from the OP that
algorithm.sty and algorithmic.sty are needed but it seems something else
is defining \Procedure.
\newlength{\minipagesize}
\setlength{\minipagesize}{2.9in}
\newlength{\minipagetextsize}
\setlength{\minipagetextsize}{2.8in}
\newlength{\twocolpagesize}
\setlength{\twocolpagesize}{3.00in}
\newlength{\algofontsize}
\setlength{\algofontsize}{6pt}
\newlength{\algofontsize}
\setlength{\algofontsize}{6pt}
\def\protect{\noexpand\protect\noexpand}
\edef\tt{\tt \hyphenchar\font=45 }
\let\protect\relax
\newcommand{\figurecaption}{% always use below the figure
\setlength{\abovecaptionskip}{2mm}%
\setlength{\belowcaptionskip}{0pt}%
\caption%
}
\newenvironment{packed_enum}{
\begin{enumerate}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{enumerate}}
\newenvironment{packed_enum2}{
\begin{enumerate}
\setlength{\itemsep}{3pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{enumerate}}
\newenvironment{packed_enum3}{
\begin{enumerate}[leftmargin=4mm]
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{enumerate}}
\newenvironment{packed_enum4}{
\begin{enumerate}[leftmargin=4mm]
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{enumerate}}
\newenvironment{packed_itemize}{
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{itemize}}
\begin{document}
\fancyhead[R]{}
\addtocounter{secnumdepth}{1}
\captionnamefont{\fontsize{8pt}{8pt}\selectfont}
\captiontitlefont{\fontsize{8pt}{8pt}\selectfont}
\renewcommand{\figurename}{Fig.}
\setlength{\belowcaptionskip}{0.00in}
\setlength{\abovecaptionskip}{2mm}
\renewcommand{\topfraction}{.99}
\renewcommand{\bottomfraction}{.99}
\renewcommand{\textfraction}{.05}
\renewcommand*{\floatpagefraction}{0.3}
%
\renewcommand{\floatpagefraction}{0.7}
\begin{center}
\begin{algorithm}
{\fontsize{10pt}{10pt}\selectfont
\caption {The Example algorithm.}
\label {algorithm:ex1}
\begin{algorithmic}[1]
\Procedure {ExampleProcedure} {}
\State {The quick brown fox jumped over the lazy dog.}
\Repeat
\State {Step 1 - aaaa}
\State {Step 2 - bbbb}
\State {Step 3 - cccc}
\State {Step 4 - dddd}
\State {Step 5 - eeee}
\State {Step 6 - ffff}
\Until {\tt (curr = max)}
\EndProcedure
\State {A man a plan panama.}
\end{algorithmic}
}
\end{algorithm}
\end{center}
\end{document}
On 06/26/2010 03:22 PM, John Smith wrote:
> \usepackage{algorithm}
> \usepackage{algorithmicx}
> \usepackage{algpseudocode}
(...)
The subject of this message says that you are using algorithm and algorithmic,
but you use algoritmicx instead (note the extra trailing x). I maintain
algorithms and algorithmic, but I have no idea what the other packages you use mean.
> \Until {\tt (curr = max)}
I don't really know a thing about the packages that you mention, but, perhaps,
you could try putting the \tt and the text that is should apply to within braces.
Regards,
--
Rog�rio Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 1024D/7C2CAEB8
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br
\newlength{\algofontsize}
\setlength{\algofontsize}{6pt}
\begin{document}
\begin{algorithm}
{\fontsize{10pt}{10pt}\selectfont
\caption {The Example algorithm.}
\label {algorithm:ex1}
\begin{algorithmic}[1]
\Procedure {ExampleProcedure}{}
\State {The quick brown fox jumped over the lazy dog.}
\Repeat
\State {Step 1 - aaaa}
\State {Step 2 - bbbb}
\State {Step 3 - cccc}
\State {Step 4 - dddd}
\State {Step 5 - eeee}
\State {Step 6 - ffff}
\Until {\tt (curr = max)}
\EndProcedure
\State {A man a plan panama.}
\end{algorithmic}
}
\end{algorithm}
\end{document}
Change
> \Until {\tt (curr = max)}
to
\Until \mbox{\tt (curr = max)}
Bob T.
You're welcome.