latex textbf没有用_LATEX学习指南

点击蓝字|关注我们

NO.0

引言

c85cb008d25b49829ca4f03ebce167b2.png

To:Me LATEX,早就说要学习一番,但却一直没找到机会,值此建模空闲之际,造访其而观其玄妙之处,故写此文。

To:You 阅读本文大概需要花费你的一部分时间去理解操作,为方便学习理解,为您准备了精品的资料,见文章末

NO.1 LATEX简介 

LaTeX(LATEX,音译“拉泰赫”)是一种基于ΤΕΧ的排版系统,由美国计算机学家莱斯利·兰伯特(Leslie Lamport)在20世纪80年代初期开发,利用这种格式,即使使用者没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能,能在几天、甚至几小时内生成很多具有书籍质量的印刷品。对于生成复杂表格和数学公式,这一点表现得尤为突出。因此它非常适用于生成高印刷质量的科技和数学类文档。这个系统同样适用于生成从简单的信件到完整书籍的所有其他种类的文档。

NO.2 LATEX安装

环境镜像下载地址:

https://mirror.bjtu.edu.cn/

CTAN/systems/texlive/Images/

TeXstudio下载地址:

http://texstudio.sourceforge.net/

NO.3 LATEX 基础操作

 基础命令cmd:

>tex -v 

>latex -v

>xelatex -v

检测安装的版本,以测试是否安装成功

>tlmgr update --all

升级到最新的版本

>texdoc ctex

>texdoc lshort-zh

获取帮助文档

NO.4 TeXstudio上基本操作 

%第一个程序

\documentclass{article}

\usepackage{ctex}

\begin{document}

你好,\LaTeX。

\end{document}

f5743962d2bb8ed26c5fa32cfb799cfb.png

%文章基本简介

%导言区

\documentclass{article}%book report letter

\usepackage{ctex}

\title{My Frist}

\author{Li Jin Ze}

\date{\today}

%正文区

\begin{document}

\maketitle

HELLO WORLD!

let $f(x)$ be defined by the formula $f(x)=3x^2+x-1$

let $f(x)$ be defined by the formula $$f(x)=3x^2+x-1$$

\end{document}

388a62a92b7526f6b5a48043c3249588.png

%中文文章怎么写

%导言区

\documentclass{ctexart}%book report letter

%\usepackage{ctex}

\newcommand\degree{^\circ}

\title{\heiti 勾股定理}

\author{\kaishu 李金泽} 

\date{\today}

%正文区

\begin{document}

\maketitle

$ABC$,$\angle C=90\degree$

\begin{equation}

AB^2=BC^2+AC^2.

\end{equation}

HELLO WORLD!

let $f(x)$ be defined by the formula $f(x)=3x^2+x-1$

let $f(x)$ be defined by the formula $$f(x)=3x^2+x-1$$

\end{document}

ef7fb13227a6c69464b0348d5be56d12.png

%字体设置

%导言区

\documentclass[12pt]{article}%book report letter

\usepackage{ctex}

\newcommand\degree{^\circ}

\title{\heiti 勾股定理}

\author{\kaishu 李金泽} 

\date{\today}

%正文区

\begin{document}

%字体族设置 (罗马字体,无衬线设置,打字机字体)

\textrm{Roman Family} \textsf{Sans Serif Family} \texttt{Typewriter Famliy}

{\rmfamily Roman Family} {\sffamily Sans Serif Family} {\ttfamily Typewriter Famliy }

{\sffamily  you are my sunshine

you are my sunshine you are my sunshine}

{\ttfamily  you are my sunshine

you are my sunshine}

%字体系列设置 (粗细,宽度)

\textmd{Medium Series} \textbf{Boldface Series}

{\mdseries Medium Series} {\bfseries Boldface Series}

%字体形状(直立,斜体,伪斜体,小型大写)

\textup{Upright shape} \textit{Italic Shape}

\textsl{Slanted Shape} \textsc{Small Caps Shape}

{\upshape Upright shape} {\itshape Italic Shape}

{\slshape Slanted Shape} {\scshape Small Caps Shape}

%中文字体

{\songti 宋体} \quad {\heiti 黑体} \quad {\fangsong 仿宋}\quad {\kaishu 楷书}

中文字体的\textbf{粗体}与\textit{斜体}

%字体大小

{\tiny  Hello}\\

{\scriptsize Hello}\\

{\footnotesize Hello}\\

{\small Hello}\\

{\normalsize Hello}\\

{\large Hello}\\

{\LargeHello}\\

{\LARGE         Hello}\\

{\huge          Hello}\\

{\Huge          Hello}\\

% 中文字号设置命令 

\zihao{5} 你好!

\end{document}

92246ba25836dc7bd72bbbbdd0f009b9.png

%篇章结构

%导言区

\documentclass{ctexbook}%book report letter

\usepackage{ctex}

\title{My Frist}

\author{Li Jin Ze}

\date{\today}

%正文区

\begin{document}

\tableofcontents

\chapter{绪论}

\section{研究目的和意义}

\section{国内外研究现状}

\subsection{国外研究现状}

\subsection{国内研究现状}

\section{研究内容}

\section{研究方法与技术路线}

\subsection{研究内容}

\subsection{技术路线}

\chapter{实验与结果分析}

\section{引言}

\section{实验方法}

\section{实验结果}

\subsection{数据}

\subsection{图表}

\subsubsection{实验条件}

\subsubsection{实验过程}

\subsection{结果分析}

\section{结论}

\section{致谢}

\end{document}

29312568e7a4a4063370dbed88ca4bbd.png

%插图

\documentclass{ctexart}%book report letter

%\usepackage{ctex}

%导言区:\usepackage{graphicx}

%语 法: \includegraphics[] {}

%格 式: \EPS,PDF,PNG,JPEG,BMP

\usepackage{graphicx}

\graphicspath{{figures/},{pics/}} % 图片在当前目录的figures目录

%正文区

\begin{document}

\LaTeX{}中的插图:

\includegraphics{1}

\includegraphics[angle=-45,scale=0.3]{1}

\includegraphics[height=2cm]{1}

\includegraphics[width=2cm]{1}

\includegraphics[angle=45,width=0.5\textwidth]{1}

\end{document}

171b891dc5aec946edf5cfb923ec1c57.png

%表格

\documentclass{ctexart}%book report letter

\begin{document}

\begin{tabular}{|l|c|c|c|p{1.5cm}|}

\hline

姓名 & 物理 & 数学 & 英语 & 备注\\

\hline

张三 & 87 & 100 & 100 & 优秀\\

\hline

李四 & 75 & 55 & 55 & 补考另行通知\\

\hline

王二 & 88 & 88 & 88 &备注\\

\hline

\end{tabular}

\end{document}

cc55a353c0eeed063a2a5d2e1cbcdefb.png 9eed07979470313f424e95989dfc1322.png b764269c09f017c996fbf453cea49abd.png e3a0f156c87b720dec69faa478cbed8c.png 014096494eb4a8d5f1238d0b9abc1d5c.png

%数学公式

\documentclass{ctexbook}%book report letter

\usepackage{ctex}

\title{My Frist}

\author{Li Jin Ze}

\date{\today}

\begin{document}

\section{简介}

\LaTeX{}将排版内容分为文本模式和数学模式。文本模式用于普通文本排版,数学模式用于数学公式排版。

\section{行内公式}

\subsection{美元符号} 

交换律是 $a+b=b+a$,如$1+2=2+1=3$。

\subsection{小括号}

交换律是\(a+b=b+a\),如\(1+2=2+1=3\)。

\subsection{math环境}

交换律是\begin{math}a+b=b+a\end{math},如\begin{math}1+2=2+1=3 \end{math}。

\section{上下标}

\subsection{上标}

$3x^{20}- x + 2 = 0$

\subsection{下标}

$a_0,a_1,a_2$

$a_0,a_1,a_{100}$

\section{希腊字母}

$\alpha$ 

$\beta$

$\gamma$

$\epsilon$

$\pi$

$\omega$

$\Gamma$

$\Delta$

$\Theta$

$\Pi$

$\Omega$

$\alpha^3 + \beta^2 = 0$

\section{数学函数}

$\log$

$\sin$

$\cos$

$\arcsin$

$\arccos$

$\ln$

$\sin^2 x + lcos^2 x = 1$

\section{分式}

大约是原体积的$3/4$。

大约是原体积的$ \frac{3}{4}$。

$ \frac{×}{x^2 +x +1}$

$ \frac{\sqrt{x-1}}{\sqrt{x+1}}$

$ \frac{1}{1 + \frac{1}{×}}$

$ \sqrt{ \frac{x}{x^2 +x + 1}}$

\section{行间公式}

\subsection{美元符号}

交换律是

$$a+b=b+a$$如

$$1+2=2+1=3$$

\subsection{中括号}交换律是

|\[ a+b=b+a \]如

\[1+2=2+1=3\]

\subsection{displaymath环境}

 交换律是

\begin{displaymath}

a+b=b+a,

\end{displaymath}如

\begin{displaymath}1+2=2+1=3.

\end{displaymath}

\subsection{自动编号公式equation环境}

\begin{equation}

a+b=b+a

\end{equation}

\subsection{不编号公式equation*环境}

%交换律见式 \ref{eq : commutative2}:\begin{equation*}

a+b=b+a% \label{eq : commutative2}lend{equation*}

\end{document}

6a047662bfb1befecb2a87852dbaf44f.png 6d080e60d2fee0016e10f6abe427ae35.png cd59e877b75d009ad94d2bb5ffd282bf.png

参考文献的导出:

9202d63dec8245b5e4681fcb64fdb545.png

资料链接:

公众号回复【Latex】即可获取链接

3a764251a4ef7134ada7c4d87a253675.png

扫码关注我们

微信号|凌云天下事

bilibili|凌动俱乐部

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值