LaTeX/初学者必读_Latex_latex下载-经管之家官网!

人大经济论坛-经管之家 收藏本站
您当前的位置> 会计>>

会计库

>>

LaTeX/初学者必读_Latex_latex下载

LaTeX/初学者必读_Latex_latex下载

发布:oliyiyi | 分类:会计库

关于本站

人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!

经管之家新媒体交易平台

提供"微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯"等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】

提供微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】

这份文件的用意是让你能更快速的了解LaTeX.在开始之前,请确认你的电脑已经安装了LaTeX(安装LaTeX必要的步骤请参照Installation).我们会从建立一个全新的LaTeX文件开始,接着会带着你利用这份文件来输出一份高品质的 ...
坛友互助群


扫码加入各岗位、行业、专业交流群


这份文件的用意是让你能更快速的了解LaTeX.

在开始之前,请确认你的电脑已经安装了LaTeX (安装LaTeX必要的步骤请参照Installation). 我们会从建立一个全新的LaTeX文件开始,接着会带着你利用这份文件来输出一份高品质的文稿,像是postscript格式或是PDF格式。


[size=20.292px]

目录 [size=20.292px] [隐藏]


  • 1 LaTeX 源代码
    • 1.1 空格或空行
    • 1.2 特殊字元
    • 1.3 LaTeX 指令
    • 1.4 LaTeX 环境
    • 1.5 评论
    • 1.6 输入档案架构
    • 1.7 A Typical Command Line Session
  • 2 我们的第一份文件
    • 2.1 它代表什么意思?
    • 2.2 产生文件


LaTeX 源代码[编辑]

LaTeX 是所谓的标记式语言 (markup language), 使用一些标记去做文章的编排。LaTeX 系统把 LaTeX 源代码, 依其中的标记, 转成高品质的文件。打个比方说, LaTeX 很像网页用的 HTML, HTML 用标记来指定网页的排版, 文字的大小、颜色等等。

LaTeX 源代码只是一个纯文字档案, 最早使用英文就是用 ASCII 纯文字档, 近代为多国语言的使用 (包括中文), 大多使用 UTF-8 编码。只使用纯英文的档案, 用 UTF-8 编码也是完全和以前 ASCII 档案相容的, 因此建议有可能有中文或其他语言编写文件的需求, 就使用 UTF-8 编码。

如果你想以最快的速度进入状况, 我们介绍最简单 LaTeX 档: \documentclass{artical} \begin{document} Hallo! \end{document}

空格或空行[编辑]

空白字元比方space或是Tab在Latex中通常都被视为空格,多个空格在latex中也被视为单一空格。 若空白在一行的行首时通常不会显示出来,每一行的结束通常在Latex中都会被视为一个空格。 若要表示一个段落,则在上段最后一句和下段第一句间留下空行即可,然而空下多行在latex中会被视为只有空下一行。 下面正是例子。左边为tex档的文字,右端为输出的结果。

θ

特殊字元[编辑]

以下列举字元含特殊意义,若你直接输入下列字元,则下列字元将无法输出。

# $ % ^ & _ { } ~ \

若要让这些文字得以输出,请在这些字元前加反斜线: \documentclass{artical} \begin{document} Hallo! \end{document}

The other symbols and many more can be printed with special commands in mathematical formulae or as accents.

The backslash character ± can not be entered by adding another backslash in front of it (±); this sequence is used for line breaking. For introducing a backslash in math mode, you can use ± instead.

The command ± produces a tilde which is placed over the next letter. For example ± gives ñ. To produce just the character ~, use ±} which places a ~ over an empty box.

Similarly, the command ± produces a hat over the next character, for example ±} produces ô. If you need in text to display the ^ symbol you have to use ±.

If you want to insert text that might contain several particular symbols (such as URIs), you can consider using the ± command, that will be discussed later in the section on formatting.

LaTeX 指令[编辑]

LaTeX的命令是大小写敏感的, 一般取下列两种格式之一:

  • They start with a backslash ± and then have a name consisting of letters only. Command names are terminated by a space, a number or any other "non-letter".
  • They consist of a backslash ± and exactly one non-letter.

Some commands need an argument, which has to be given between curly braces ±} after the command name. Some commands support optional parameters, which are added after the command name in square brackets ±. The general syntax is: \documentclass{artical} \begin{document} Hallo! \end{document}

LaTeX 环境[编辑]

Environments in LaTeX have a role that is quite similar to commands, but they usually have effect on a wider part of the document. Their syntax is: \documentclass{artical} \begin{document} Hallo! \end{document}

Between the ± and the ± you can put other commands and nested environments. In general, environments can accept arguments as well, but this feature is not commonly used and so it will be discussed in more advanced parts of the document.

Anything in LaTeX can be expressed in terms of commands and environments.

评论[编辑]

When LaTeX encounters a ± character while processing an input file, it ignores the rest of the current line, the line break, and all whitespace at the beginning of the next line.

This can be used to write notes into the input file, which will not show up in the printed version. θ

Note that the ± character can be used to split long input lines that do not allow whitespace or line breaks, as with Supercali...cious above.

The core LaTeX language does not have a predefined syntax for commenting out regions spanning multiple lines. Refer to multi-line comments for simple workarounds.

输入档案架构[编辑]

When LaTeX processes an input file, it expects it to follow a certain structure. Thus every input file must start with the command \documentclass{artical} \begin{document} Hallo! \end{document}

This specifies what sort of document you intend to write. After that, you can include commands that influence the style of the whole document, or you can load packages that add new features to the LaTeX system. To load such a package you use the command \documentclass{artical} \begin{document} Hallo! \end{document}

When all the setup work is done, you start the body of the text with the command \documentclass{artical} \begin{document} Hallo! \end{document}

Now you enter the text mixed with some useful LaTeX commands. At the end of the document you add the \documentclass{artical} \begin{document} Hallo! \end{document}

command, which tells LaTeX to call it a day. Anything that follows this command will be ignored by LaTeX. The area between ± and ±} is called the preamble.

A Typical Command Line Session[编辑]

LaTeX itself does not have a GUI (graphical user interface), since it is just a program that crunches away at your input files, and produces either a DVI or PDF file. Some LaTeX installations feature a graphical front-end where you can click LaTeX into compiling your input file. On other systems there might be some typing involved, so here is how to coax LaTeX into compiling your input file on a text based system. Please note: this description assumes that you already have a working LaTeX installation on your computer.

  • Edit/Create your LaTeX input file. This file must be plain ASCII text. On Unix all the editors will create just that. On Windows you might want to make sure that you save the file in ASCII or Plain Text format. When picking a name for your file, make sure it bears a .tex extension.
  • Run LaTeX on your input file. If successful you will end up with a .dvi file. It may be necessary to run LaTeX several times to get the table of contents and all internal references right. When your input file has a bug LaTeX will tell you about it and stop processing your input file.

Type ctrl-D to get back to the command line.

latex foo.tex

Now you may view the DVI file. On Unix with X11 you can type xdvi foo.dvi, on Windows you can use a program called yap (yet another previewer). (Now evince and okular, the standard document viewers for many Linux distributions are able to view DVI files.)

You can run a similar procedure with pdflatex to produce a PDF document from the original .tex source. Similar to above, type the commands:

pdflatex foo.tex

Now you may view the PDF file, foo.pdf.


扫码或添加微信号:坛友素质互助


「经管之家」APP:经管人学习、答疑、交友,就上经管之家!
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
本文关键词:

本文论坛网址:https://bbs.pinggu.org/thread-3967479-1-1.html

人气文章

1.凡人大经济论坛-经管之家转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。