我尝试了所有我知道的技巧。\usepackage{parskip}
但\setlength{\parindent}{0pt}
没有\noindent
一个在森林节点内起作用。这是 MWE
\documentclass[crop,tikz]{standalone}
\usepackage{amsmath}
\usepackage{forest}
\useforestlibrary{edges}
\usepackage{parskip}
\begin{document}
\begin{forest}
[
Write the ode as
{\begin{align*}
y'+p(x)y&=q(x)\\
&=f(x,y)
\end{align*}
}
This is only possible if ode is linear in {$y$}
,text width=4cm
]
\end{forest}
\end{document}
我尝试\noident
在节点内添加,但没有效果
\begin{forest}
[
\noindent
Write the ode as
{\begin{align*}
y'+p(x)y&=q(x)\\
&=f(x,y)
\end{align*}
}
This is only possible if ode is linear in {$y$}
,text width=4cm
]
\end{forest}
我做错了什么以及如何删除align*
环境后的额外水平空间?
TL 2022
答案1
它不是缩进,而是你在源文件中添加的单词间空格
\documentclass[crop,tikz]{standalone}
\usepackage{amsmath}
\usepackage{forest}
\useforestlibrary{edges}
\usepackage{parskip}
\begin{document}
\begin{forest}
[
Write the ode as
{\begin{align*}
y'+p(x)y&=q(x)\\
&=f(x,y)
\end{align*}
}%%%%%
This is only possible if ode is linear in {$y$}
,text width=4cm
]
\end{forest}
\end{document}