LaTeX forum ⇒ LyXLocalized Cross References

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Posts: 1
Joined: Sun Jul 28, 2013 1:38 pm

Localized Cross References

Postby jpataias » Sun Jul 28, 2013 1:47 pm


I am new at LyX and I am trying to write my thesis using it. I have used the thesis template from LyX to start but I am having a little problem, in the preamble exists the following code:

  1. \AtBeginDocument{%
  2. \renewcommand{\ref}[1]{\mbox{\autoref{#1}}}
  3. }
  4. \def\refnamechanges{%
  5. \renewcommand*{\equationautorefname}[1]{}
  6. \renewcommand{\sectionautorefname}{sec.\negthinspace}
  7. \renewcommand{\subsectionautorefname}{sec.\negthinspace}
  8. \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
  9. \renewcommand{\figureautorefname}{Fig.\negthinspace}
  10. \renewcommand{\tableautorefname}{Tab.\negthinspace}
  11. }
  12. \@ifpackageloaded{babel}{\addto\extrasenglish{\refnamechanges}}{\refnamechanges}

Which is used to make the cross reference link bigger by adding a name before the reference number, chapter 2 for instance. However I need that the added words are added in portuguese, and that is my problem as I can't seem to be able to do that.

How can I fix this?



Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests