LyXcomplaints about \newreffomat

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
CSMR
Posts: 44
Joined: Fri Oct 10, 2008 10:44 pm

complaints about \newreffomat

Post by CSMR »

When I put in the preamble something like:

Code: Select all

\newrefformat {pro}{Proposition \ref{#1}}
I sometimes get a complaint on compiling: "Undefined control sequence."

It's a strange error because it happens in some documents and not others, despite having all the same settings, and on some documents I can get it to go away by making unrelated edits to the document, and on others I get the complaint even with an empty document.

What should I be doing about this?

Thanks!
Last edited by cgnieder on Fri Sep 07, 2012 5:17 pm, edited 1 time in total.

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
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

complaints about \newreffomat

Post by cgnieder »

The only thing I can say is that \newrefformat is provided by the prettyref package… I'm not really familiar with LyX but adding \usepackage{prettyref} to the LaTeX preamble should help.

Regards
site moderator & package author
CSMR
Posts: 44
Joined: Fri Oct 10, 2008 10:44 pm

Re: complaints about \newreffomat

Post by CSMR »

Thanks, that fixed it!
Post Reply