![\widetilde 错误](https://linux22.com/image/338477/%5Cwidetilde%20%E9%94%99%E8%AF%AF.png)
因此,我一直\widetilde
在我的一篇论文中使用这种符号,而且效果非常好,但最近我不得不改变我在论文中使用的格式,大多数标签仍然可以正常工作,但出于某种原因,宽波浪号不仅会在我的变量名上放置一个波浪号,还会复制我在外面括号内放置的内容。
因此,如果我使用\widetilde{x}
,我会在文档中得到一个没有波浪号的 x,后面跟着一个带有波浪号的 x。
有什么办法可以解决这个问题吗?
为了记录,我正在使用以下软件包:
\documentclass[12pt, a4paper, oneside]{book}
\usepackage{listings}
\usepackage{float}
\usepackage{graphicx}
\usepackage{color,soul}
\usepackage[overlay,absolute]{textpos}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{relsize}
\usepackage{breqn}
\usepackage{ragged2e}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\usepackage{bm,amsmath,amssymb,color,subfigure}
\usepackage{fancyhdr, ifpdf}
\pagestyle{fancyplain}
%\renewcommand{\baselinestretch}{1.7}
%% some redefination of the headers and footers
\renewcommand{\chaptermark}[1]%
{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]%
{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]%
{\fancyplain{}{\thepage}}
\cfoot{}
\sloppy
\ifpdf
\usepackage[pdftex]{graphicx}
\pdfinfo{
/Title (Title)
/Subject (Subject)
/Author (Ali Al-Shaikh, Tomoaki Ohtsuki)
/Keywords (Q-Learning,Superposed Multicarrier Transmission)
}
\else
\usepackage{graphicx}
\fi
答案1
该包breqn
导致了这里的问题。请参阅我已注释掉该包的 MWE breqn
:
\documentclass[12pt, a4paper, oneside]{book}
\usepackage{listings}
\usepackage{float}
\usepackage{graphicx}
\usepackage{color,soul}
\usepackage[overlay,absolute]{textpos}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{relsize}
%\usepackage{breqn}
\usepackage{ragged2e}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\usepackage{bm,amsmath,amssymb,color,subfigure}
\usepackage{fancyhdr, ifpdf}
\pagestyle{fancyplain}
%\renewcommand{\baselinestretch}{1.7}
%% some redefination of the headers and footers
\renewcommand{\chaptermark}[1]%
{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]%
{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]%
{\fancyplain{}{\thepage}}
\cfoot{}
\sloppy
\ifpdf
% \usepackage[pdftex]{graphicx}
\pdfinfo{
/Title (Title)
/Subject (Subject)
/Author (Ali Al-Shaikh, Tomoaki Ohtsuki)
/Keywords (Q-Learning,Superposed Multicarrier Transmission)
}
%\else
% \usepackage{graphicx}
\fi
\begin{document}
$\widetilde{x}$
\end{document}
那么,如何修复包的这个问题呢?答案很简单,如果你要随 一起breqn
加载包,那么在加载 之后 再加载包。amssymb
breqn
breqn
amssymb
因此,固定的 MWE 为:
\documentclass[12pt, a4paper, oneside]{book}
\usepackage{listings}
\usepackage{float}
\usepackage{graphicx}
\usepackage{color,soul}
\usepackage[overlay,absolute]{textpos}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{relsize}
\usepackage{ragged2e}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\usepackage{bm,amsmath,amssymb,color,subfigure}
\usepackage{breqn} % <------ added here
\usepackage{fancyhdr, ifpdf}
\pagestyle{fancyplain}
%\renewcommand{\baselinestretch}{1.7}
%% some redefination of the headers and footers
\renewcommand{\chaptermark}[1]%
{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\thepage}]%
{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]%
{\fancyplain{}{\thepage}}
\cfoot{}
\sloppy
\ifpdf
% \usepackage[pdftex]{graphicx}
\pdfinfo{
/Title (Title)
/Subject (Subject)
/Author (Ali Al-Shaikh, Tomoaki Ohtsuki)
/Keywords (Q-Learning,Superposed Multicarrier Transmission)
}
%\else
% \usepackage{graphicx}
\fi
\begin{document}
$\widetilde{x}$
\end{document}
您还会看到,由于存在选项冲突错误,我还评论了以下内容:
\ifpdf
% \usepackage[pdftex]{graphicx}
\pdfinfo{
/Title (Title)
/Subject (Subject)
/Author (Ali Al-Shaikh, Tomoaki Ohtsuki)
/Keywords (Q-Learning,Superposed Multicarrier Transmission)
}
%\else
% \usepackage{graphicx}
\fi