Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 eqref 引用公式括号内会多加一个空格 #62

Open
Jamie-obj opened this issue Mar 9, 2023 · 12 comments
Open

使用 eqref 引用公式括号内会多加一个空格 #62

Jamie-obj opened this issue Mar 9, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@Jamie-obj
Copy link

当我将这个选项设置为true时 table-small-font = true,使用\eqref引用公式,公式括号内会多加一个空格

图片

@note286
Copy link
Owner

note286 commented Mar 9, 2023

首先,table-small-font默认就是true。其次,这个并不影响\eqref

\documentclass{xdupgthesis}
\xdusetup{style/table-small-font=true}
\usepackage{amsmath}
\begin{document}
\chapter{title}
\begin{equation}
\label{key}
a+b=c
\end{equation}
式\eqref{key}所示
\end{document}

image

@Jamie-obj
Copy link
Author

Jamie-obj commented Mar 9, 2023

首先,table-small-font默认就是true。其次,这个并不影响\eqref

\documentclass{xdupgthesis}
\xdusetup{style/table-small-font=true}
\usepackage{amsmath}
\begin{document}
\chapter{title}
\begin{equation}
\label{key}
a+b=c
\end{equation}
式\eqref{key}所示
\end{document}

image

\documentclass{xdupgthesis}
% 导言区:在导言区中常会使用 \usepackage 命令调用宏包,还会进行文档的全局设置
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{bbm}


\newenvironment{abstract}{}{}
\usepackage{abstract}

\usepackage[backend=biber, style=gb7714-2015]{biblatex}
%\addbibresource[location=local]{references.bib}

\makeatletter
\let\c@lofdepth\relax
\let\c@lotdepth\relax
\makeatother
\usepackage{subfigure} 

这是我加载的一些包,我自查一下看看是哪个包导致的

@note286
Copy link
Owner

note286 commented Mar 9, 2023

我严重怀疑你没有看文档!!!我特意强调了,不要加载任何与参考文献相关的宏包。

@note286
Copy link
Owner

note286 commented Mar 9, 2023

另外,你可以多看看 #40

@Jamie-obj
Copy link
Author

我严重怀疑你没有看文档!!!我特意强调了,不要加载任何与参考文献相关的宏包。

\usepackage[backend=biber, style=gb7714-2015]{biblatex} %\addbibresource[location=local]{references.bib}
请问是这两行吗,我是把这两行注释的,不会对编译产生影响的吧。文档我看了的,这一部分可能没留意~

@note286
Copy link
Owner

note286 commented Mar 9, 2023

是的,还有

\newenvironment{abstract}{}{}
\usepackage{abstract}

xduts有自己的摘要接口。

@note286
Copy link
Owner

note286 commented Mar 9, 2023

如果你想要我帮助你解决问题,请给出MWE,就像我回复你的那种,能够复现问题。

@Jamie-obj
Copy link
Author

如果你想要我帮助你解决问题,请给出MWE,就像我回复你的那种,能够复现问题。

好的好的,我尝试复现一下demo

@Jamie-obj
Copy link
Author

Jamie-obj commented Mar 9, 2023

你好,我找到问题了,上面提问的有问题

\documentclass{xdupgthesis}
\xdusetup{style/ref-add-space = true}
\usepackage{amsmath}
\begin{document}
	\chapter{title}
	\begin{equation}
		\label{key}
		a+b=c
	\end{equation}
	式\eqref{key}所示
\end{document}

是设置ref-add-space = true,引用会在括号里插入一个空格

@note286
Copy link
Owner

note286 commented Mar 9, 2023

ref-add-space慎用,你可以查看 #40 (comment)

@note286 note286 closed this as completed Mar 9, 2023
@note286 note286 added invalid This doesn't seem right bug Something isn't working and removed invalid This doesn't seem right labels Mar 9, 2023
@note286
Copy link
Owner

note286 commented Mar 9, 2023

后续可能考虑移除这个接口,当初实现的比较草率,个人对这方面理解的也不够深入,目前更推荐自定义宏来辅助完成交叉引用。

@Jamie-obj
Copy link
Author

后续可能考虑移除这个接口,当初实现的比较草率,个人对这方面理解的也不够深入,目前更推荐自定义宏来辅助完成交叉引用。

感谢解答~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants