openmlsys / openmlsys-zh

《Machine Learning Systems: Design and Implementation》- Chinese Version
https://openmlsys.github.io
3.95k stars 429 forks source link

overleaf书籍修改的一些latex常用方法。 #394

Open Laicheng0830 opened 2 years ago

Laicheng0830 commented 2 years ago
  1. 昇腾显示问题,使用下面代码

    \hbox{\lower-1.0ex\hbox{\scalebox{1}[0.4]{曰}}\lower.1ex\hbox{\kern-1em \scalebox{1}[0.5]{升}}腾}
  2. 项目编号用带括号数字编号:begin{enumerate}后加上[label={(\arabic*)}]

    \begin{enumerate}[label={(\arabic*)}]
    \item xxxxx
    \end{enumerate}
  3. 图片紧跟文字后面:在 begin后加上[H]

    \begin{figure}[H]
    \end{figure} 
  4. 代码块加标题和引用:加上caption 和label

    \begin{lstlisting}[caption={代码块标题}, label=lst:代码块引用号]
    \end{lstlisting}
hanjr92 commented 2 years ago
  1. 脚注标注: 使用\footnote来添加脚注, 需要在https前面添加 “可参考网址为:”,给整个网址添加 \url 来自动网址换行。 \footnote{可参考网址为:\url{https://arxiv.org/pdf/1603.04467.pdf。}}