Generaluse a counter "a priori" (in advance)

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ChrisC.
Posts: 1
Joined: Tue Dec 08, 2009 3:38 am

use a counter "a priori" (in advance)

Post by ChrisC. »

Hi all,


I would like to do have this result:
The main code proceed in N steps:
* step number 1
* ...
* step number n

with N = the counter of the enumeration *

But when i try with "counter", it doesn't understand that i want the next counter and not the previous one (whatever the type).
And when i try with "label", it doesn't understand that i don't want a link (hypertext / hyperref).

Do you have any idea ?
Thanks,
Chris.

currently my solution is:

The main code proceed in \ref{myCounter} steps:
\begin{enumerate}
\item step number 1
...
\item step number n
\label{myCounter}
\end{enumerate}

which works but gives me a red and clickable result that I don't really want

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

Re: use a counter "a priori" (in advance)

Post by magicmoose »

Do you want to remove the red or remove the clickable link? To make the ref's not links, use the starred version \ref*{MyCounter} and to remove the red boxes, use \hypersetup{pdfborder={0 0 0}} in your preamble after you include the hyperref package.

Hope that helps
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

use a counter "a priori" (in advance)

Post by localghost »

Or just do not use the hyperref package.


Best regards and welcome to the board
Thorsten¹
Post Reply