latex排版记录

latex排版记录

1.改变年份的代码
\renewcommand{\headset}{{2014}\\MCM/ICM\\Summary Sheet}

2.使得摘要分段的代码
空一行或者加上段落
```\paragraph{}``

3.添加目录并设定页码

\newpage
\setcounter{page}{2}
\tableofcontents

`

4.列表渲染

\documentclass[UTF8]{ctexart}

\begin{document}

\begin{itemize}
  \item javascript
  \item html
  \item css
\end{itemize}

\begin{enumerate}
  \item javascript
  \item html
  \item css
\end{enumerate}

\begin{description}
  \item[javascript] javascript
  \item[html] html
  \item[css] css
\end{description}

\end{document}

5.写入公式的方法
最快当然是通过Axmath等软件直接转换为代码,然后再写到文章中对于复杂部分。

\begin{equation}
a^2 \label{aa}
\end{equation}

6.插入图片并控制图片位置的方法

\begin{figure}[h]
\small
\centering
\includegraphics[width=8cm]{example-image-a}
\caption{The name of figure} \label{fig:aa}
\end{figure}

加入图片的另外一种方法

\begin{figure}[htb] 
 \center{\includegraphics[width=13cm]  {fig5.png}} 
 \caption{\label{5} 图片下面的说明}
\end{figure}

插入两个并列图片的方法

\begin{figure}[htbp]
\begin{minipage}[t]{0.45\linewidth}
\centering
\includegraphics[height=7cm,width=7cm]{fig7.png}
\caption{Small coverage}
\end{minipage}
\begin{minipage}[t]{0.45\linewidth}
\centering
\includegraphics[height=7cm,width=7cm]{fig8.png}
\caption{Big coverage}
\end{minipage}
\end{figure}

7.插入带标题的列表方法

\begin{itemize}
\item \textbf{Career teaching years}\\
the higher the career age of a coach, the richer the experience of the coach. The longer the teaching time, the more comprehensive the professional knowledge. For example, older coaches are more experienced in leading and uniting teams than younger coaches.
\item \textbf{Number of games}\\
the number of games the coach participated in further shows that he has rich experience, and the more games he participated in, the more the team he led believed in him, which also proves the strength and ability of the coach. Therefore, the number of games participating in various large-scale competitions is also an important evaluation index.
\item \textbf{Total winning rate}\\
as we all know, the career winning rate of a coach is also an important index to evaluate a coach. The career winning rate can reflect the coach's own strength to lead the team to win, and it is also the display of the coach's strength and personal quality.
\item \textbf{Number of Champions}\\
the number of champions in this paper refers to the total number of NCAA in all kinds of large-scale games and first-class college basketball games. The number of champions won by the team led by the coach reflects the strength of the coach, so the number of Champions is also one of the indicators.
\end{itemize}

8.加代码

some more text \textcolor[rgb]{0.98,0.00,0.00}{\textbf{Input C++ source:}}
\lstinputlisting[language=C++]{./code/mcmthesis-sudoku.cpp}

9.附录

\begin{appendices}

\section{First appendix}

\section{Second appendix}

\end{appendices}

10.插入三线表的方法
分别三根线加其中的内容,其中顶部和尾部较粗,中间较细。

\begin{table}[h]
    \centering
        \caption{Classification of fire grades}
    \begin{tabular}{l l }
    \toprule
        Fire grades & Disaster area of fire \\ 
        \midrule
        General forest fire & less than 1 ha \\ 
        Large forest fires & greater than 1 ha and less than 100 ha \\
        Severe forest fire & greater than 100 ha but less than 1000 ha \\ 
        Extremely severe forest fires & over 1000 ha \\ 
    \bottomrule
    \end{tabular}
\end{table}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值