📅  最后修改于: 2021-01-06 00:32:18             🧑  作者: Mango
一旦下载了软件MikTex和Texmaker ,您现在就可以启动Latex。这里使用Texmaker是因为它被认为是用作Latex编辑器的最佳软件。通过编辑器Texmaker使用Latex的步骤如下:
您可以单击文件菜单,然后选择新建文件。现在,您可以开始编程或在屏幕上编写代码。
代码如下:
\documentclass[a4paper]{article}
\begin{document}
\begin{center}
\begin{large}
\textbf{\LaTeX\ Thought of the day}\\
\end{large}
\end{center}
"Life is really liberal to those who pursue their personal legend."
\end{document}
说明:
{center}用于使文本与中心对齐。
\="" p="" textbf用于以粗体显示文本。
="" {large}是一种字体大小。<="">
Texmaker屏幕上的相同代码如下图所示:
编写代码后,保存文件,然后单击顶部的“快速构建”选项以查看输出。
下图显示了此代码的输出:
同样,您可以编写尽可能多的数据和命令来格式化文档。
这取决于用户,他/她想在特定文档中使用哪种类型和样式。编写段落的另一个示例如下所示:
\documentclass[a4paper]{article}
\begin{document}
\begin{center}
\begin{huge}
\textit{\LaTeX\ Overview}\\
%'\\' is used to display the text in the new line
\end{huge}
\end{center}
\LaTeX\ uses more iteration and floating elements such as tables and the figures to make the document more refined and polished.%\ In between is used for the spacing
% here % command is used to write the comments which are ignored by the Latex and hence are not reflected in the output
It is a document typesetting system used for the publication of technical documents. Latex software not only saves time but also makes the text more attractive and refined. It is used by scientists, authors for the subjects such as mathematics, economics, psychology, engineering, etc. there are two types of editors available for the Latex, which are online and offline editors. It depends on the convenience and ease of the user to choose any particular editor for the Latex. The procedure to write the cost makes the user concentrate on the content instead of the format. It also has the feature of spell checking.
\end{document}.
Texmaker屏幕上的相同代码如下图所示:
下图显示了此代码的输出:
使用Latex的第一步是使用编辑器创建文件,并以.tex结尾。在此文件中,您可以键入文档的文本以及用于设置其格式的命令。
有两种方法来print.tex文件。方法如下:
1)传统方式是创建一个.dvi文件(与设备无关),该文件具有二进制格式,无法直接查看。出于查看目的,您可以运行预览程序或PostScript程序,并且可以通过GSView进行打印。
第二种方法是直接的,但没有第一种方法快。
2)运行最近的相对pdflatex程序以创建PDF文件进行查看或打印的另一种替代方法。
>