
저는 이 acronyms
패키지를 사용하여 다음과 같은 수학 기호를 정의합니다.
\begin{acronym}[long]
\acro{v}[$\vec{v}$]{View direction vector}
\end{acronym}
\acs{<short>}
나는 긴 수학 모드 표현 대신에 입력하는 것이 더 빠른 다른 많은 사람들과 함께 이 작업을 수행합니다 .
이것을 사용하면 hyperref
패키지가 출력을 특정 색상으로 형식화합니다. 나는 독자가 짧은 버전을 클릭할 수 있다는 것을 알기를 원하는 GPS와 같은 약어에 대해 그것을 좋아합니다. 그런 경우에는 위와 유사한 다른 약어 목록을 사용합니다.
그러나 나는 수학적 표현을 방정식으로 색칠하는 것을 원하지 않습니다. 왜냐하면 일부는 약어로 정의되고 다른 일부는 수동으로 작성되면 가독성을 방해하기 때문입니다.
내 질문은 지금입니다 : 하이퍼참조를 사용하여 특정 약어 목록에서 링크 색상을 제거할 수 있나요?아니면 수학 모드의 링크 색상을 끌 수 있나요?
이것이 나의 첫 번째 질문입니다. 내 문제를 명확하게 설명했으면 좋겠습니다. :-)
추가된 예: (링크에 색상을 지정하는 classicthesis 및 arsclassica를 사용하고 있지만 색상이 어디서 오는지는 중요하지 않습니다.)
\documentclass{scrreprt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% REQUIRED FOR ARSCLASSICA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{subfig}
\usepackage[strict]{changepage}
\usepackage[parts,dottedtoc,eulerchapternumbers,subfig,beramono,pdfspacing] {classicthesis}
\usepackage{arsclassica}
% hyperref and acronym
\usepackage{hyperref}
\usepackage{acronym}
\begin{document}
\chapter{Text}
Some text where I want to have \ac{BRDF} as a visibly colored link and in
an equation would not want the symbol to be a colored link.
\begin{equation}
\acs{fBRDF} = \dots
\end{equation}
However it would be nice if it still was a link. It just should not have
any color.
% Two acronym lists
\chapter{List of Abbreviations}
\begin{acronym}[GPS]
\acro{BRDF}{Bidirectional Reflectance Distribution Function}
\acro{RGB}{Red, Green, Blue}
\end{acronym}
\chapter{List of Symbols}
\begin{acronym}[$f(\vec{l},\vec{v})$]
\acro{fBRDF}[$f(\vec{l},\vec{v})$]{\acf{BRDF}}
\end{acronym}
\end{document}
답변1
환경 내부의 링크 색상을 임시로 다른 값(이전에 지정한 값 외)으로 설정하고 나중에 원래 값으로 복원할 수 있습니다.
xpatch
환경 시작 equation
(macro \equation
) 후에 색상 변경 코드를 추가하고 이후에 다시 전환하기 위해 \endequation
(효과적으로 ) 패키지를 사용했습니다 \end{equation}
.
더 나은 편의를 위해 명령을 정의 \DefaultDocumentLinkColor
하고 \DefaultDocumentEquationLinkColor
색상 이름을 유지했습니다.
그러나 일반 텍스트 색상을 사용하면 방정식 링크를 그대로 인식할 수 없습니다.
\documentclass{scrreprt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% REQUIRED FOR ARSCLASSICA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{subfig}
\usepackage[strict]{changepage}
\usepackage[parts,dottedtoc,eulerchapternumbers,subfig,beramono,pdfspacing]{classicthesis}
\usepackage{arsclassica}
% hyperref and acronym
\usepackage{xpatch}
\newcommand{\DocumentDefaultLinkColor}{blue}
\newcommand{\DocumentDefaultEquationLinkColor}{black}
\usepackage{hyperref}
\usepackage{acronym}
\hypersetup{linkcolor={\DocumentDefaultLinkColor}}
\xapptocmd{\equation}{\hypersetup{linkcolor={\DocumentDefaultEquationLinkColor}}}{}{}%
\xapptocmd{\endequation}{\hypersetup{linkcolor={\DocumentDefaultLinkColor}}}{}{}%
\begin{document}
\chapter{Text}
Some text where I want to have \ac{BRDF} as a visibly colored link and in
an equation would not want the symbol to be a colored link. See \ref{listofsymbols}
\begin{equation}
\acs{fBRDF} = \dots
\end{equation}
However it would be nice if it still was a link. It just should not have
any color.
% Two acronym lists
\chapter{List of Abbreviations}
\begin{acronym}[GPS]
\acro{BRDF}{Bidirectional Reflectance Distribution Function}
\acro{RGB}{Red, Green, Blue}
\end{acronym}
\chapter{List of Symbols} \label{listofsymbols}
\begin{acronym}[$f(\vec{l},\vec{v})$]
\acro{fBRDF}[$f(\vec{l},\vec{v})$]{\acf{BRDF}}
\end{acronym}
\end{document}