Latex入门文档

很久没用latex写过东西了,再加上编辑器从Emacs换成了VScode,于是为了写下面↓那个slide就找了点资料熟悉一下。
找到了这一份:https://liam0205.me/2014/09/08/latex-introduction/
感觉写得很好,而且作者似乎是CTeX的主要维护者之一?大力推荐啊!

然后这是我这次用到的一些命令,在这里存个档:

1. insert a picture
\usepackage{graphicx}
\graphicspath{{./figs/}}
\includegraphics[width=100pt]{vfk}

2. 居中
\begin{center}
\end{center}

3. 字号
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge

4. buff
\textbf{文字}
\emph{文字}

5. 换页
\clearpage
\newpage

6. 原样输出
\begin{verbatim}
\end{verbatim}

7. gif
\usepackage{animate}
\animategraphics[loop,autoplay,width=200pt]{12}{blo-}{0}{119}

8. 段落缩进
\usepackage{indentfirst}
\setlength{\parindent}{\ccwd}

9. beamer暂停
\pause

10. 行间距调整
\vspace{10pt}

11. 多行公式
$\begin{aligned}
  \sum\limits_{i = 1}^{n}{k \mod i} & = \sum\limits_{i = 1}^{n}{(k - \lfloor \frac{k}{i} \rfloor \cdot i)} \\
  & = n \cdot k - \sum\limits_{i = 1}^{n}{\lfloor \frac{k}{i} \rfloor \cdot i}
\end{aligned}$
带编号的话就去掉"ed"
单行不带编号:\notag

12. 列表
\usepackage{enumerate}
\begin{enumerate}[1.]
  \item 
\end{enumerate}

13. 插入链接
\href{https://233.com}{233}

14. 分栏
\usepackage{multicol}
\begin{multicols}{3}
  \tableofcontents
\end{multicols}

15. 公式编号
\begin{equation}
  233 = 233
\end{equation}

16. 文章内引用
\begin{equation}
  233
  \label{convolution}
\end{equation}
\eqref{convolution}

17. 空格
\qquad
\quad

18. 取模
$a^{n!} \pmod{p}$

19. 证毕
\qed

20. 整段缩进
\begin{enumerate}[\hspace{15mm}]
  \item 666

  \item 233
\end{enumerate}

21. 反斜杠
\usepackage{slashed}
$\slashed{\le}$

22. 数学公式字体大小
\textstyle{233}
\displaystyle
\scriptstyle
\scriptscriptstyle

19 thoughts to “Latex入门文档”

  1. Its such as you read my thoughts! You seem to understand so
    much approximately this, like you wrote the e-book in it or something.

    I think that you just could do with a few p.c. to power the message house a bit,
    but other than that, that is great blog. A great read.
    I’ll certainly be back.

  2. When I initially commented I clicked the “Notify me when new comments are added” checkbox
    and now each time a comment is added I get three e-mails with the same comment.

    Is there any way you can remove people from that service?
    Cheers!

  3. I was wondering if you ever considered changing the page layout of your blog?

    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people
    could connect with it better. Youve got an awful lot of text for only
    having one or two pictures. Maybe you could space it out better?

  4. First off I would like to say terrific blog!
    I had a quick question which I’d like to ask if you don’t mind.
    I was interested to know how you center yourself and clear your thoughts before
    writing. I’ve had a hard time clearing my thoughts in getting my thoughts out.
    I do take pleasure in writing however it just seems like the first 10 to 15 minutes
    are usually wasted just trying to figure out how to begin. Any
    recommendations or hints? Kudos!

  5. Very great post. I just stumbled upon your
    weblog and wanted to mention that I’ve truly loved
    surfing around your weblog posts. After all I will
    be subscribing for your feed and I am hoping you write again very soon!

  6. Hi! I know this is somewhat off topic but I was wondering which blog platform are you using for this
    website? I’m getting fed up of WordPress because I’ve had problems
    with hackers and I’m looking at options for another
    platform. I would be fantastic if you could point me in the direction of a good
    platform.

  7. Woah! I’m really loving the template/theme of this website.

    It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between usability and appearance.
    I must say you’ve done a amazing job with this. Also, the
    blog loads super fast for me on Chrome. Outstanding Blog!

  8. hey there and thank you for your info – I have definitely picked up
    something new from right here. I did however expertise several technical points using this website,
    as I experienced to reload the web site lots of times previous to
    I could get it to load correctly. I had been wondering if your web hosting is OK?
    Not that I’m complaining, but sluggish loading instances times will often affect your placement in google and can damage your
    quality score if ads and marketing with Adwords.
    Anyway I am adding this RSS to my email and could look out for
    much more of your respective intriguing content. Make sure you update this again soon.

发表评论

电子邮件地址不会被公开。 必填项已用*标注