删除交叉引用中的“方程式”一词

删除交叉引用中的“方程式”一词

我正在使用 LyX 附带的论文模板,每当我对某个方程式进行交叉引用时,它都会伴随单词“方程式 XX.YY”,而我只想要数字“XX.YY”。

文档类别是book(KOMA-Script)

options = intoc,bibliography=totoc,index=totoc,BCOR10mm,captions=tableheading,titlepage,fleqn

和序言

% increases link area for cross-references and autoname them
% if you change the document language to e.g. French
% you must change "extrasenglish" to "extrasfrench"
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
\addto\extrasenglish{%
 \renewcommand*{\equationautorefname}[1]{}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
}

% in case somebody want to have the label "Equation"
%\renewcommand{\eqref}[1]{Equation~(\negthinspace\autoref{#1})}

% that links to image floats jumps to the beginning
% of the float and not to its caption
\usepackage[figure]{hypcap}

% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
  \frontmatter
  \pdfbookmark[1]{\contentsname}{}
  \myTOC
  \mainmatter }

% makes caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}

% enables calculations
\usepackage{calc}

% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increases the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}

% avoids that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}

% para organizar la nomenclatura
\usepackage{ifthen}
\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{B}}{\item[\textbf{Símbolos latinos}]}{%
\ifthenelse{\equal{#1}{C}}{\item[\textbf{Símbolos griegos}]}{%
\ifthenelse{\equal{#1}{A}}{\item[\textbf{Abreviaturas}]}{%
\ifthenelse{\equal{#1}{D}}{\item[\textbf{Sub y superíndices}]}

{}
}% cierra sub y superíndices
}% cierra abreviaturas
}% cierra griegos
}% cierra latinos

% para ponerle unidades
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\dotfill#1}}

% Numerar ecuaciones por sección
\numberwithin{equation}{section}

答案1

所以这就是问题所在......

\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
\addto\extrasenglish{%
 \renewcommand*{\equationautorefname}[1]{}
 \renewcommand{\sectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsectionautorefname}{sec.\negthinspace}
 \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \renewcommand{\figureautorefname}{Fig.\negthinspace}
 \renewcommand{\tableautorefname}{Tab.\negthinspace}
}

我不得不更换它

相关内容