使用LaTeX写作业

上一篇文章

模板

\documentclass[a4paper,12pt]{article}     %页面大小和字体大小
\usepackage{CTEX}
\usepackage{geometry}
\usepackage{mathptmx}
\usepackage{amsmath}
\geometry{left=2.0cm, right=2.0cm, top=3.0cm, bottom=3.0cm}   %页边距
\linespread{1.5}      %行距

\begin{document}

\begin{center}   %居中设置
{\large \textbf{标题}}\\
作者信息
\end{center}

\noindent %顶格(不缩进)
\textbf{1.题目。}\\
解:\\
解题过程

\end{document}

公式

  1. 插入公式
    (1)行内公式:$L=25m$
    img1
    (2)行间公式:$$L=25m$$
    img2
  2. 乘号X:\times
  3. 下标:y_{max}
    img3
  4. 开方:
    (1) \sqrt{k}
    img4
    (2) \sqrt[3]{k}
    img5
  5. 分式:\frac{分子}{分母}
  6. 方括号与分式高度平齐:\left[\frac{a}{b}\right]
    img6
    (直接输入大括号效果如下)
    img7
  7. 度数表示方式:30^\circ
    img8
  8. 长公式换行
\begin{multline}
$$y_{max}=25\times10^3\times0.02\times{(0.87-0.87\times0.02+0.87^2\times0.02^2)}^{1/2}exp
\{(1/1.575)\times\\
tan^{-1}[2\times(0.87\times0.02-1)/1.575]-(1/1.575)\times tan^{-1}[(2\times0.87-1)/1.575]\}=198mm$$
\end{multline}

img9

演示

\documentclass[a4paper,12pt]{article}     %页面大小和字体大小
\usepackage{CTEX}
\usepackage{geometry}
\usepackage{mathptmx}
\usepackage{amsmath}
\geometry{left=2.0cm, right=2.0cm, top=3.0cm, bottom=3.0cm}   %页边距
\linespread{1.5}      %行距

\begin{document}

\begin{center}   %居中设置
{\large \textbf{标题}}\\
作者信息
\end{center}

\noindent %顶格(不缩进)
\textbf{1.题目。}\\
解:\\
$L=25m=25\times10^3mm$,$r=3mm/day=3.47\times10^{-5}mm/s$\\
$k=0.01cm/s=0.1mm/s$,$S=0.02$
\\
代入$$y_{max}=L\sqrt{\frac{r}{k}}\left[\frac{kS^2}{r}+1-
\frac{kS}{r}\sqrt{S^2+\frac{r}{k}}\right]$$
得$$y_{max}=25\times10^3\times\sqrt{\frac{3.47\times10^{-5}}{0.1}}\times
\left[\frac{0.1\times0.02^2}{3.47\times10^{-5}}+1-\frac{0.1\times0.02}
{3.47\times10^{-5}}\times\sqrt{0.02^2+\frac{3.47\times10^{-5}}{0.1}}\right]=269mm$$

\end{document}

img10

参考资料

Latex 换行顶格、不缩进
LaTeX常用篇(一)—公式输入
LaTeX技巧:LaTeX括号总结
LaTeX记录 —— 各种数学符号
LaTeX常用篇(二)—上下标/分式/根式/求和/连乘/极限/积分/希腊字母
[latex] 长公式换行

posted @ 2020-06-13 21:20  酒桶在你野区  阅读(43)  评论(0编辑  收藏  举报