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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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