什么是乳胶? | aspose.tex .net
那么,什么是乳胶?
乳胶是 Tex格式,简而言之。
LaTeX(LAH-tekh 或 LAY-tekh,通常缩写为 LATEX)是一款用于文档准备的软件系统,最初由 Leslie Lamport 在 SRI International 于 20 世纪 80 年代初开发。维基百科 介绍了以下内容。
回答“什么是乳胶?”我们想提及它的一些功能。
乳胶最令人印象深刻的功能之一是新的字体选择方案(NFSS)。这是宏观子系统,您可以更改当前字体的各个属性,而不是将新字体定义为整体,因为它在原始的Tex中起作用(Pline Tex也不为此提供太多)。例如,您具有当前的字体,该字体是计算机现代罗马斜体,并且要切换到与位于其他字体文件中的物理状态相同类型的粗体字体。在原始TEX中,您需要控制映射到字体文件名的序列,因此要切换,您只需要调用另一个命令即可。但是价格太多了。在乳胶中,您只需要要求引擎更改字体即可。它将为您选择适当的当前字体。
另一个功能是许多所谓的文档类。这些是辅助输入文件,其中包含与特定文档类型相对应的Tex内部参数的值,例如书,文章,信件或其他任何内容。
乳胶还包括对文档作者可能方便的各种功能的支持。这些功能通常集中在称为软件包的辅助输入文件中。在包装中,您可以找到用于数学排版,绘制图形的高级工具,对不属于乳胶分布的字体的支持等。
这是相对较小的例子:
1\documentclass[]{article}
2%%%%%%%%%%%%%%%%%%%
3% Packages/Macros %
4%%%%%%%%%%%%%%%%%%%
5\usepackage{amssymb,latexsym,amsmath} % Standard packages
6%%%%%%%%%%%
7% Margins %
8%%%%%%%%%%%
9\addtolength{\textwidth}{1.0in}
10\addtolength{\textheight}{1.00in}
11\addtolength{\evensidemargin}{-0.75in}
12\addtolength{\oddsidemargin}{-0.75in}
13\addtolength{\topmargin}{-.50in}
14%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15% Theorem/Proof Environments %
16%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17\newtheorem{theorem}{Theorem}
18\newenvironment{proof}{\noindent{\bf Proof:}}{$\hfill \Box$ \vspace{10pt}}
19%%%%%%%%%%%%
20% Document %
21%%%%%%%%%%%%
22\begin{document}
23\makeatletter
24\def\@date{May 17, 2021}
25\makeatother
26
27\title{Sample \LaTeX ~File}
28\author{David P. Little}
29\maketitle
30\begin{abstract}
31
32本文档是使用您常用的 \LaTeX 编译器编译“sample.tex”文件后的输出。该文件可以很好地展示“.tex”文件的基本结构,以及排版涉及数学符号和表达式的文档所需的许多最基本命令。有关每个命令工作原理的更多说明,请参阅我们课程网页上的链接。
33
34\end{abstract}
35\section{Lists}
36%%%%%%%%%%%%%%%
37\begin{enumerate}
38\item {\bf First Point (Bold Face)}
39\item {\em Second Point (Italic)}
40\item {\Large Third Point (Large Font)}
41 \begin{enumerate}
42 \item {\small First Subpoint (Small Font)}
43 \item {\tiny Second Subpoint (Tiny Font)}
44 \item {\Huge Third Subpoint (Huge Font)}
45 \end{enumerate}
46\item[$\bullet$] {\sf Bullet Point (Sans Serif)}
47\item[$\circ$] {\sc Circle Point (Small Caps)}
48\end{enumerate}
49\section{Equations}
50%%%%%%%%%%%%%%%%%%%
51\subsection{Binomial Theorem}
52\begin{theorem}[Binomial Theorem]
53For any nonnegative integer $n$, we have
54$$(1+x)^n = \sum_{i=0}^n {n \choose i} x^i$$
55\end{theorem}
56\subsection{Taylor Series}
57The Taylor series expansion for the function $e^x$ is given by
58\begin{equation}
59e^x = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots = \sum_{n\geq 0} \frac{x^n}{n!}
60\end{equation}
61\subsection{Sets}
62\begin{theorem}
63For any sets $A$, $B$ and $C$, we have
64$$ (A\cup B)-(C-A) = A \cup (B-C)$$
65\end{theorem}
66\begin{proof}
67\begin{eqnarray*}
68(A\cup B)-(C-A) &=& (A\cup B) \cap (C-A)^c\\
69&=& (A\cup B) \cap (C \cap A^c)^c \\
70&=& (A\cup B) \cap (C^c \cup A) \\
71&=& A \cup (B\cap C^c) \\
72&=& A \cup (B-C)
73\end{eqnarray*}
74\end{proof}
75\section{Tables}
76%%%%%%%%%%%%%%%%
77\begin{center}
78\begin{tabular}{l||c|r}
79left justified & center & right justified \\ \hline
801 & 3.14159 & 5 \\
812.4678 & 3 & 1234 \\ \hline \hline
823.4678 & 6.14159 & 1239
83\end{tabular}
84\end{center}
85\section{A Picture}
86%%%%%%%%%%%%%%%%%%%
87\begin{center}
88\begin{picture}(100,100)(0,0)
89\setlength{\unitlength}{1pt}
90\put(20,70){\circle{30}} \put(20,70){\circle*{10}} % left eye
91\put(80,70){\circle{30}} \put(80,70){\circle*{10}} % right eye
92\put(40,40){\line(1,2){10}} \put(60,40){\line(-1,2){10}} \put(40,40){\line(1,0){20}} % nose
93\put(50,20){\oval(80,10)[b]} % mouth
94\multiput(0,90)(4,0){10}{\line(1,3){4}} % left eyebrow
95\multiput(100,90)(-4,0){10}{\line(-1,3){4}} % right eyebrow
96\end{picture}
97\end{center}
98\end{document}
这是输出的两页:
自然,我们不会假装对“什么是乳胶?”这个问题有任何完整的答案,因为这是大量信息。由于编写乳胶文件仍在编程中,因此,如果您想更好地了解它,则必须花一些时间。你想要还是不想要。
您还可以查看基于 Aspose.TeX for .NET api的免费 Web App。