我猜是因为西班牙语中的小数是用逗号分隔的。有什么好的解决方法吗?谢谢
我提供了一个最小的工作示例(请注意,仅当您有带下划线的引用时才会发生该错误)。
\documentclass[11pt,a4paper,twoside,openright,final]{book}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\newcounter{dummy} \numberwithin{dummy}{section}
\newtheorem{thm}[dummy]{Theorem}
\newtheorem{lem}[dummy]{Lemma}
% También podría poner ordinales.
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{bookmark}
\begin{document}
\chapter{Introduction}
%TODO no sé si es subsection
\section{Basics}
\begin{lem}
\label{fundamental}
Water is wet.
\end{lem}
\begin{proof}
It's obvious.
\end{proof}
\begin{thm}
Snow will be wet when it melts.
\end{thm}
\begin{proof}
We'll use Lemma \ref{fundamental}.
Snow is frozen water$\underset{Lemma\ \ref{fundamental}}{\Rightarrow}$ it will be wet when it melts.
\end{proof}
\end{document}
答案1
“引理....”是一段文本,不应在数学模式下设置——其副作用是,逗号会被句号取代。
\documentclass[11pt,a4paper,twoside,openright,final]{book}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\newcounter{dummy} \numberwithin{dummy}{section}
\newtheorem{thm}[dummy]{Theorem}
\newtheorem{lem}[dummy]{Lemma}
% También podría poner ordinales.
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{bookmark}
\begin{document}
\chapter{Introduction}
%TODO no sé si es subsection
\section{Basics}
\begin{lem}
\label{fundamental}
Water is wet.
\end{lem}
\begin{proof}
It's obvious.
\end{proof}
\begin{thm}
Snow will be wet when it melts.
\end{thm}
\begin{proof}
We'll use Lemma \ref{fundamental}.
Snow is frozen water$\underset{\text{Lemma\ \ref{fundamental}}}{\Rightarrow}$ it will be wet when it melts.
\end{proof}
\end{document}
(题外话:但请不要多次加载同一个包)
答案2
一个明显的解决方法是包括:
\decimalpoint
事实上我可以做到这一点,因为我的论文不包含小数,但我很好奇是否有其他更优雅的解决方案(可以解决问题而不改变这一点)