Document Classes"Formatted reference" help

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
jpreisser
Posts: 3
Joined: Thu Apr 17, 2008 2:09 am

"Formatted reference" help

Post by jpreisser »

I'm trying to figure out how to cross-reference a theorem, say, and have Lyx label it as such without having to type in each reference manually. For instance, when I cross-reference it like this:
\ref{thm:blah}
it merely inserts the number of the theorem, e.g. "3.2".

I'd like it to insert the text "Thm. 3.2" instead (or "Lem. 3.2", etc., depending on the label), and I think that's when I'm supposed to use the "formatted reference" option. However, I can't seem to find any documentation on how to define the format of said "formatted reference".

Any help?

-jon

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

"Formatted reference" help

Post by Stefan Kottwitz »

Hi Jon,

it may be done by the cleveref package.

Stefan
LaTeX.org admin
jpreisser
Posts: 3
Joined: Thu Apr 17, 2008 2:09 am

Re: "Formatted reference" help

Post by jpreisser »

Thanks! I couldn't find any documentation indicating which of the *ref packages I should use.

-jon
Post Reply