latex 公式与解释不换行
时间: 2023-08-18 13:11:38 浏览: 340
根据引用和引用中提到的方法,你可以使用`\begin{aligned}...\end{aligned}`环境来实现公式与解释不换行的效果。在每个等号前加上`&`符号,换行处加上`\\`符号来对齐和换行。举个例子,你可以这样编写公式:
\begin{equation}
\begin{aligned}
\theta^{*},\theta^{'*}&=\argmin\limits_{\theta,\theta^{'}}\frac{1}{n}\sum_{n}^{i=1}L\left(\textbf{x}^{(i)},\textbf{x}^{'(i)}\right)\\
&=\argmin\limits_{\theta,\theta^{'}}\frac{1}{n}\sum_{n}^{i=1}L\left(\textbf{x}^{(i)},g_{\theta^{'}}\left(f_{\theta}\left(\textbf{x}^{i}\right)\right)\right)
\end{aligned}\label{f2}
\end{equation}
这个例子中,公式与解释被对齐了,并且不换行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Latex公式排版(编号、换行、括号内换行、对齐)](https://blog.csdn.net/puchapu/article/details/86543580)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Latex 公式换行问题(换行,等号对齐)](https://blog.csdn.net/leichaoaizhaojie/article/details/53463598)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文