学习latex

写在前面:这是我第一次写博客,就是想记录一下学习过程,有输出,才能有收获嘛。在这次疫情居家学习期间,自己的学习效率并不高,就想把这里当成记录成长的地方
希望:毕业之后可以有所收获

言归正传,学习latex,目前暂时来看用不到,但是以后肯定会用到的。
零、学习的步骤
1、首先跟着最基础的例子学习,不管英文还是支持中文的
2、学习完基础的之后,考虑到有可能以后用到的环境,可以学习支持中文的
3、针对某个方面学习:比如数学符号,不一定完全记住,只要大概了解,以后用到的时候再仔细研究
一、前期准备
1、从下载开始依次学习,按照https://blog.csdn.net/tommorrow12/article/details/81483607博文学习
2、http://www.ctex.org/CTeXDownload下载ctex套装(203Mb或1.3Gb)(含MikTeX及WinEdt),并安装
3、初次使用出现:系统找不到指定文件的错误解决方法:https://blog.csdn.net/qq_28869927/article/details/81117855
4、如果不能自动下载库包,需要重新下载最新版的MiKTeX,解决方法:https://blog.csdn.net/xueshengke/article/details/76252482
二、学习笔记
1、题目和作者:
\documentclass{article}
\author{…}
\title{…}
\begin{document}
\maketitle…
\end{document}
2、章节、段落
\section{…} 1
\subsection{…} 1.1
\subsubsection{…} 1.1.1
\paragraph{} is … {}中的字母在PDF中显示加粗,如果没有{},默认该句话首字母加粗
\subparagraph 比paragraph后移一格
3、目录:
\begin{document}
\tableofcontents
4、换行
washington is

the captial
中间空一行就是换行,\…\是行内强制换行,而且顶格换行
5、数学公式如果要用到时,可以直接百度latex的数学符号表和别人的例子,再此不做仔细介绍,或许等到学完基础的之后会专门写一篇关于数学符号的学习笔记
6、插入图片
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=4.00in,height=3.00in]{figure1.jpg}
\end{document}
将命名为figure1.jpg的图片和该tex文档放在同一个文件夹,对jpg,bmp,png等都支持
7、简单表格
\documentclass{article}
\begin{document}
\begin{tabular}{|c|c|} %left左对齐,right右对齐,center居中对齐 aaa & b \
c & ddddd\
\end{tabular}
\begin{tabular}{|l|r|} \hline %表格中的横线
aaaa & b \
\hline
c & ddddd\
\hline \end{tabular}
\begin{center} %表格居中
\begin{tabular}{|c|c|}
\hline
a & b \
\hline
c & d\
\hline
\end{tabular}
\end{center}
\end{document}
8、文中插入图片和公式
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx, subfig}
\usepackage{caption}
\begin{document}
One image ???.
\begin{figure}[!htbp]
\centering
\includegraphics[width = .8\textwidth]{image1.jpg} \caption{example of one image}
\label{one-img}
\end{figure}
Image together is shown in Figure ???.
First sub-image is shown as Figure ???.
In Figure ??? the second sub-image is presented. \begin{figure}[!htbp]
\centering
\subfloat[first sub-image]{
\includegraphics[width = .45\textwidth]{image1.jpg} \label{sub1} }
\qquad
\subfloat[second sub-image]{
\includegraphics[width = .45\textwidth]{image2.jpg} \label{sub2} }
\caption{combined image}
\label{img-together}
\end{figure}
The result is shown in Equation ???:
\begin{equation}
\label{abcde}
a+b+c+d+e=f
\end{equation}
\end{document}
9、插入参考文献以参考例子为例,参考文献放在.bib文件中,和.tex放在同一个文件夹中
10、中文支持
\documentclass[UTF8]{ctexart}
\begin{document}
你好,世界
\end{document}

参考:
1、https://blog.csdn.net/tommorrow12/article/details/81483607
2、https://blog.csdn.net/qq_28869927/article/details/81117855
3、https://blog.csdn.net/xueshengke/article/details/76252482
特此感谢

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值