-
算法环境中加号消失,在单独demo中正常 \usepackage[margin=1.5in]{geometry} % For reducing margin
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
%\usepackage[algo2e]{algorithm2e}
\usepackage{arevmath} % For math symbols
\usepackage{algpseudocode} https://blog.csdn.net/haifeng_gu/article/details/105767750 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
https://www.overleaf.com/project/5c49e17e48289d7fe88b2a29
|
Beta Was this translation helpful? Give feedback.
-
尝试下列方法,但未能复现问题。 1、基于 nuaathesis 里的 demo_chs: \usepackage{algorithm}
\usepackage{algpseudocode} 在正文里添加下列内容: \begin{algorithmic}
\State $ dx \gets x_{i + offset} - mx $
\end{algorithmic} 编译结果能显示 + 号。 2、单独创建文档: \documentclass{book}
\usepackage[margin=1.5in]{geometry} % For reducing margin
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
%\usepackage[algo2e]{algorithm2e}
%\usepackage{arevmath} % For math symbols
\usepackage{algpseudocode}
\begin{document}
\begin{algorithmic}
\State $ dx \gets x_{i + offset} - mx $
\end{algorithmic}
\end{document} 结果仍然能显示 + 号。 3、访问 Overleaf,结果提示没有权限。 请提供完整的 Minimum Working Example。没有 MWE 的话,其他人难以调查你遇到的问题。 |
Beta Was this translation helpful? Give feedback.
-
%\usepackage[margin=1.5in]{geometry} % For reducing margin
%\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
%\usepackage[algo2e]{algorithm2e}
%\usepackage{arevmath} % For math symbols
\usepackage{algpseudocode} |
Beta Was this translation helpful? Give feedback.
注释掉几行之后,能够编译通过并正常显示加号。
就是数学字体相关的冲突。现在搞定了。