
我習慣\vref{something}
參考數字。只要這是常規文本,一切都很好。但是當我像這樣用括號括起來時,(\vref{something})
結果是引用前面有一個空格:
一些文字(圖1.1),一些更多......
如何避免左括號和數字之間的空格以獲得以下結果:
一些文字(圖 1.1),一些更多...
微量元素:
\documentclass[10pt,a4paper]{article}
\usepackage{caption}
\usepackage{varioref}
\usepackage{fancyvrb}
\begin{document}
some text (\vref{fig:1}) some more ...
\begin{minipage}{.8\linewidth}
\captionsetup{type=figure}
\captionof{figure}{MWE}\label{fig:1}
\begin{Verbatim}[frame=single,baselinestretch=1,fontsize=\footnotesize]
something to show
\end{Verbatim}
\end{minipage}
\end{document}
答案1
使用\vref*
而不是\vref
.帶有星標的版本是專門為了刪除此內容而創建的空間在左邊。請參閱第 2.2 節varioref 的文檔。