我面臨以下問題:在同一行上給出兩個引用,我希望一個以常規形狀顯示,而另一個以斜體顯示。例如:
...a similar effect was observed by \ref{abc}, but also in \ref{def} where...
引用“abc”應按常規顯示,但引用“def”應以斜體顯示。如何才能實現這個目標?
答案1
\textit{...}
不適合你嗎?
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{Hello World}
\subsection{Subsection ABC}
\label{abc}
\subsection{Subsection DEF}
\label{def}
Normal reference \ref{abc} and reference \textit{\ref{def}} in italics.
\end{document}