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

公式无法正常显示、无法换行等错误 #378

Open
ElaineZhao92 opened this issue Mar 2, 2024 · 1 comment
Open

公式无法正常显示、无法换行等错误 #378

ElaineZhao92 opened this issue Mar 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ElaineZhao92
Copy link

操作系统

Overleaf

TeX 套件

TeXLive 2021 或更新的版本

TeX Compiler

XeTeX

zjuthesis 版本号

v10

MajorFormat

cs

Degree

undergraduate

Type

thesis

Period

proposal

BlindReview

true

GradLevel

master

问题描述

在编辑公式时候用到了\begin{aligned},想要将公式换行表述,但是overleaf编译后未显示正确换行。
公式代码如下

\begin{equation}
    \begin{aligned}
        \textbf{x}*_{G}\textbf{g} & = \mathscr{F}^{-1}(\mathscr{F}(\textbf{x})\odot\mathscr{F}(\textbf{g})) \\
        & = \textbf{U}(\textbf{U}^{T}\textbf{x}\odot\textbf{U}^{T}\textbf{g})\text{.}
    \end{aligned}
\end{equation}

编译日志显示未正确换行是因为包里少了一个amsmath package

编译日志

No response

代码

/config/packages.tex文件中加上下面这句话即可:

\usepackages{amsmath}

截图

No response

其他信息

No response

@ElaineZhao92 ElaineZhao92 added the bug Something isn't working label Mar 2, 2024
@TheNetAdmin
Copy link
Owner

曾经模板里也默认提供了这个包,但后来我觉得不一定所有人都会用到这个包,所以将其去除了,以加快编译速度。

我暂时将这个issue留在这里不关闭,方便其他同学查阅解决方案。以后我可以在readme里写一行,或者提供一个参数供大家选择是否使用这个包。

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