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

49 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.

  9. Fantastic items from you, man. I’ve take into accout your stuff prior to and you are just too great.
    I actually like what you’ve got here, certainly
    like what you’re stating and the way wherein you are saying it.

    You are making it entertaining and you still take care of to stay it smart.
    I can’t wait to read far more from you. This
    is really a terrific site.

  10. Hello, awesome work. I really appeaciate the information you are providing through your website, i have alwasy find it helpful. Keep up the awsome work.

  11. You actually make it seem really easy with your presentation however I
    in finding this matter to be actually one thing that I believe I might never understand.

    It seems too complicated and very vast for me. I am looking forward to your subsequent submit, I will attempt
    to get the dangle of it!

  12. Just want to say your article is as astonishing. The clarity in your post is just spectacular and i could
    assume you are an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up
    to date with forthcoming post. Thanks a million and please continue the
    enjoyable work.

  13. Hi there to all, for the reason that I am actually eager of reading this website’s post to be
    updated daily. It includes good stuff. plenty of fish natalielise

  14. Thanks for some other great post. Where else may anyone
    get that type of information in such a perfect manner of writing?
    I’ve a presentation subsequent week, and I am on the
    search for such info.

  15. I would like to thank you for the efforts you have put in penning this blog. I’m hoping to view the same high-grade content from you later on as well. In truth, your creative writing abilities has inspired me to get my own website now 😉

  16. I think that is one of the most important information for me.
    And i’m happy reading your article. However should observation on few general
    things, The website taste is perfect, the articles is actually nice : D.
    Excellent process, cheers

  17. Fantastic beat ! I wish to apprentice while you amend your website,
    how can i subscribe for a blog site? The account helped me
    a acceptable deal. I had been a little bit acquainted of
    this your broadcast offered bright clear idea

  18. After checking out a handful of the articles on your blog, I seriously appreciate your technique of writing a blog.
    I added it to my bookmark site list and will be checking back in the near future.
    Take a look at my web site as well and let me know what you think.

  19. Excellent post. I was checking constantly this weblog and I’m
    impressed! Extremely useful info specifically the final phase :
    ) I care for such information much. I was looking for this particular information for a long time.
    Thank you and good luck.

  20. Woah! I’m really enjoying the template/theme
    of this website. It’s simple, yet effective.
    A lot of times it’s challenging to get that
    “perfect balance” between usability and visual appeal.
    I must say you have done a fantastic job with this. Also, the
    blog loads very quick for me on Opera. Outstanding
    Blog!

  21. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time
    a comment is added I get four e-mails with the
    same comment. Is there any way you can remove
    people from that service? Bless you!

  22. Hi there, I found your blog by means of Google whilst looking for a related matter, your web site came up,
    it seems to be great. I have bookmarked it in my google
    bookmarks.
    Hello there, simply become alert to your weblog via Google, and
    found that it is truly informative. I’m gonna be careful for brussels.

    I will appreciate for those who continue this in future.
    A lot of other folks can be benefited from your writing.
    Cheers!

  23. Good day I am so grateful I found your blog page, I really found you by mistake,
    while I was researching on Google for something else, Nonetheless I am here now and would
    just like to say thanks for a tremendous post and a all round entertaining blog (I also love the theme/design), I don’t have
    time to read it all at the moment but I have saved it and also included your
    RSS feeds, so when I have time I will be back to read much more, Please do keep up the awesome jo.

发表评论

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