Search found 5 matches

by danylo
Mon Aug 13, 2007 7:24 pm
Forum: General
Topic: Section headings and figure captions
Replies: 1
Views: 4729

Section headings and figure captions

Hi,

a couple of loose ends I have concerning my Latex document (note that I am using the IEEEtran.cls template):
1) How do I change how the section heading are displayed? Currently its centred and displays the header as III. Section Name. I'd prefer it to be left-aligned and displayed as 3. Section ...
by danylo
Thu Aug 09, 2007 9:28 pm
Forum: General
Topic: Errors with algorithm package: Undefined control sequence
Replies: 8
Views: 35021

Re: Algorithm class

Sorry, I have one more question...
I start off my pseudo code with:
\begin{algorithm}{}
\label{alg:qt}
\caption{$QT\_Clust(S,d)$}

Then later in my text I do \ref{alg:qt} later in my text but it returns the section number the pseudo code is in and no information about the actual algorithm. How do I ...
by danylo
Thu Aug 09, 2007 9:09 pm
Forum: General
Topic: Errors with algorithm package: Undefined control sequence
Replies: 8
Views: 35021

Re: Algorithm class

It works now. I didn't realize that the commands were case sensitive. Thanks. One of other thing I'm curious about is that in the \Comment command is there a way to change the way the comment is produced? Right now a little arrow is used to show the start of the comment. I would prefer something ...
by danylo
Thu Aug 09, 2007 7:04 pm
Forum: General
Topic: Errors with algorithm package: Undefined control sequence
Replies: 8
Views: 35021

Errors with algorithm package: Undefined control sequence

Hi,
thanks for the \ref comment, that works now.
I removed the \Else line but I still get the same error for the other lines.
For some reason though if I change the inside of \begin{algorithmic} to this:

Code: Select all

Code, edit and compile here:
\For{all ...}
\State do ...
\EndFor
\State return ...
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I get no errors.
by danylo
Thu Aug 09, 2007 5:46 pm
Forum: General
Topic: Errors with algorithm package: Undefined control sequence
Replies: 8
Views: 35021

Errors with algorithm package: Undefined control sequence

Hi,
this has been driving me nuts on how come its not working:
\usepackage{algorithm}
\usepackage{algpseudocode}

...

\begin{algorithm}{}
\caption{$QT\_Clust(S,d)$}
\label{alg:qt}
\begin{algorithmic}[1]
\IF{$N$ is even}
\STATE $X \Leftarrow X \times X$
\STATE $N \Leftarrow N / 2$
\ELSE{$N$ is odd ...