SCI template paper ---overleaf

1.模板 (在线overleaf)
https://www.overleaf.com/latex/templates/
https://www.overleaf.com/project/5d22a3b6e72dfd7d126ae208
https://www.zhihu.com/question/19954023/answer/504784589
2.LATEX 使用教程
https://www.overleaf.com/learn
内容
1 简介
2 文件的序言
3 显示文档的标题
4 基本格式:抽象,段落和换行符
5 评论
6 参考指南
7 进一步阅读

\ documentclass { article }
 
\ begin { document }
第一份文件。这是一个简单的例子,没有
包括额外的参数或包。
\ end { document }

输入文件只是一个纯文本文件,扩展名为.tex。它将包含计算机解释为生成PDF文件的代码。第一行代码声明了文档的类型,在本例中是一篇文章。然后,在\begin{document} \end{document}标签之间,您必须编写文档的文本。

注意:要了解如何生成输出文件,请参阅我们关于编译的文章。

\documentclass[12pt, letterpaper, twoside]{article}
\usepackage[utf8]{inputenc}%codification of the document

\usepackage{comment}




\title{ZJ's THESIS}
\author{Hubert Farnsworth \thanks{funded by the ShareLaTeX team}}
\date{February 2014}

%Here begins the body of the document
\begin{document}

\begin{titlepage}
\maketitle This 
\end{titlepage}

在这里插入图片描述

\begin{abstract}
This is a simple paragraph at the beginning of the 
document. A brief introduction about the main subject.
\end{abstract}

In this document some extra packages and parameters
were added. There is a encoding package
an a pagesize and fontsize parameters.

This line will start a second Paragraph. And I can brake\\ the lines \\
and continue in a new line.

This documents contains a lot of comments, non of them
will appear here, only this text.

This documents contains a lot of comments, non of them
will appear here, only this text.

\begin{comment}
This text won't show up in the compiled pdf
this is just a multi-line comment. Useful
to, for instance, comment out slow-rendering
while working on the draft.
\end{comment}

\end{document}

在这里插入图片描述

\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}
 
\title{First document}
\author{Hubert Farnsworth \thanks{funded by the ShareLaTeX team}}
\date{February 2014}

下面是每行的详细说明:

\documentclass[12pt, letterpaper]{article}
如前所述,这定义了文档的类型。括号内的一些附加参数和逗号分隔可以传递给命令。在示例中,额外参数设置字体大小(12pt)和纸张大小(letterpaper)。当然可以使用其他字体大小(9pt,11pt,12pt),默认大小为10pt。至于纸张尺寸,其他可能的值包括A4和legalpaper。请注意,Overleaf使用欧洲LaTeX发行版,默认情况下会生成A4大小的文档。有关使用Geometry包设置更多格式参数的信息,请参阅我们的[页面大小和边距]]一文。
\usepackage[utf8]{inputenc}
这是文档的编码,允许在文本中使用ASCII以外的字符(例如,à,ü,č…)。它可以省略或更改为其他编码,但建议使用utf-8。除非您特别需要其他编码,或者您不确定它,否则请将此行添加到前导码中。
接下来的三行是自我描述的。无论如何,你可以在下一节中看到他们实际做的描述。

可以传递给\documentclass命令的另一个重要参数是,twocolumn如果您希望文本采用双列格式并twoside进行双面纸张打印。

\documentclass[12pt, letterpaper, twoside,twocolumn]{article}
\usepackage[utf8]{inputenc}%codification of the document

\usepackage{comment}

\title{First document}
\author{Hubert Farnsworth \thanks{funded by the ShareLaTeX team}}
\date{February 2014}

%Here begins the body of the document
\begin{document}

\begin{titlepage}
\maketitle
\end{titlepage}

\begin{abstract}
This is a simple paragraph at the beginning of the 
document. A brief introduction about the main subject.
\end{abstract}

In this document some extra packages and parameters
were added. There is a encoding package
an a pagesize and fontsize parameters.

This line will start a second Paragraph. And I can brake\\ the lines \\
and continue in a new line.

This documents contains a lot of comments, non of them
will appear here, only this text.

This documents contains a lot of comments, non of them
will appear here, only this text.

\begin{comment}
This text won't show up in the compiled pdf
this is just a multi-line comment. Useful
to, for instance, comment out slow-rendering
while working on the draft.
\end{comment}

\end{document}

在这里插入图片描述
前导码中有一个包含三行的块,用于定义要包含在标题页上的信息。

\title{First document}
这是标题。
\author{Hubert Farnsworth}
在这里,您可以输入作者的名称,并且作为可选参数,您可以添加下一个命令:
\thanks{funded by the ShareLaTeX team}
这可以在作者姓名之后,在title命令的大括号内添加。它将在大括号内添加上标和脚注。如果你需要感谢你的文章中的机构,这很有用。
\date{February 2014}
您可以手动输入日期或使用命令,\today以便在编译文档时自动更新日期。
在文档正文中的序言中,您可以使用下一个命令来打印信息。

\begin{titlepage} \end{titlepage}
这声明了一个环境,一个具有特定行为的代码块,具体取决于其类型。在这种情况下,您在此标题页环境中包含的任何内容都将显示在文档的第一页中。
\maketitle
此命令将以示例中显示的格式打印标题,作者和日期。如果它没有包含在标题页环境中,它将显示在文档的开头,第一行的上方。

基本格式:抽象,段落和换行符
\begin{document} \end{document}命令中包含的所有内容都将在最终文档中呈现。

\ documentclass [ 12pt,letterpaper,twoside ] { article } 
\ usepackage [ utf8 ] { inputenc }
 
\ begin { document }
 
\ begin { abstract }
这是文档开头的一个简单段落。主题简介。
\ end { abstract }
 
在本文档中有一些额外的包和参数
添加。有一个编码包,
和pagesize和fontsize参数。
 
这一行将开始第二段。我可以
 刹车\\行\\并继续换行。
 
\ end { document }

在这里插入图片描述
选择LaTeX编译器
L A T E X文档是扩展名为.tex的普通文档(参见LaTeX文章中的创建文档中的示例),这个纯文本文件有一些标记命令,用于格式化文档,但是,如何实际生成最终输出?这取决于您要生成的文档类型。

假设您保存了文档并将文件命名为“mydocument.tex”。要创建.PDF文件,只需在系统终端中运行此命令。

pdflatex mydocument.tex

将出现名为“mydocument.pdf”的文件。
例如,如果要编译名为“mydocument.tex”的文件,可以使用以下命令之一:

latex mydocument.tex

这将创建一个DVI文档“mydocument.dvi”

pdflatex mydocument.tex

这将生成“mydocument.pdf”,一个PDF文档

其他编译器
其他可能的编译器设置是pdfLaTeX(默认值),XeLaTeX和LuaLaTeX。您通常可以使用pdfLaTeX,但选择编译器取决于每个项目的需求。

LaTeX仅支持.eps和.ps图像格式\includegraphics。如果项目中的所有图像都是.eps文件,则建议使用此编译器设置。
pdfLaTeX支持.png,.jpg,.pdf图像格式。它将在编译期间将.eps图像转换为.pdf,这可能会延长所需的编译时间。(pdfLaTeX可能无法在背页上pstricks很好地处理。)
XeLaTeX和LuaLaTeX都支持开箱即用的UTF-8,以及Truetype和OpenType。因此,如果您需要在Overleaf上与polyglossiapacakge 一起排版非拉丁文脚本,则建议使用它们。它们还支持所有.png,.jpg,.pdf 和 .eps图像格式。
XeLaTeX支持pstricks; 但是LuaLaTeX没有。
您可以通过将Lua代码直接嵌入到文档中来扩展LuaLaTeX的功能。
在这里插入图片描述
段落和新行

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{ragged2e}

\title{Paragraphs and New Lines}
\author{An example from Overleaf}

\begin{document}

\maketitle

%Introductory example
\begin{center}
The following paragraph (given in quotes) is an example of Center Alignment using the center environment. 

``LaTeX is a document preparation system and document markup language. LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeX macro language. LaTeX is not the name of a particular editing program, but refers to the encoding or tagging conventions that are used in LaTeX documents".
\end{center}

\vspace{2em} % adds some space

%Example of the New Paragraphs section. The second
%Paragraph has no indentation
\setlength{\parindent}{10ex}
This is the text in first paragraph. This is the text in first 
paragraph. This is the text in first paragraph. \par
\noindent %The next paragraph is not indented
This is the text in second paragraph. This is the text in second 
paragraph. This is the text in second paragraph.
%-------------------------------------------------------------------------------

\vspace{2em} % adds some space

%-------------------------------------------------------------------------------
%Example of a left justified alignement

\begin{flushleft}
``LaTeX is a document preparation system and document markup language. LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeX macro language. LaTeX is not the name of a particular editing program, but refers to the encoding or tagging conventions that are used in LaTeX documents".
\end{flushleft}

\vspace{2em} % adds some space

%-------------------------------------------------------------------------------
%Example of a right-justified text
\begin{flushright}
``LaTeX is a document preparation system and document markup language. LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeX macro language. LaTeX is not the name of a particular editing program, but refers to the encoding or tagging conventions that are used in LaTeX documents".
\end{flushright}
%-------------------------------------------------------------------------------

\vspace{2em} % adds some space

%-------------------------------------------------------------------------------
%Using \raggedright to left-justify the text and then \justifying to "fix it"
\raggedright
Example 4: Following is an example of switching back to justified text after ragged text has been switched on.

\vspace{1em} % adds some space


\justifying
``LaTeX is a document preparation system and document markup language. LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeX macro language. LaTeX is not the name of a particular editing program, but refers to the encoding or tagging conventions 
that are used in LaTeX documents".
%-------------------------------------------------------------------------------

\vspace{2em}

%-------------------------------------------------------------------------------
%Line breaks and blank spaces
\newpage
LaTeX is a document preparation system and document markup language. \\  LaTeX uses the TeX typesetting \hspace{2cm} program for formatting its output, and is itself written in the TeX macro language. LaTeX \vspace{1cm} is not the name of a particular editing program, but refers to the encoding or tagging conventions that are used in LaTeX documents
%-------------------------------------------------------------------------------

\end{document}

在这里插入图片描述
这两段写在中心环境中,使它们居中。请注意,要开始一个新段落,您必须在它们之间插入一个空行。这很自然,但不是声明新段落的唯一方法。
如您所见,该\par命令也会启动一个新段落。

默认情况下,段落缩进1.5倍当前字体的磅值。此外,段落之间没有插入额外的空格。在下面的部分中描述了如何更改它。
该flushleft环境左证明了款。要正确使用flushright代替。

上述环境基于切换命令:( \raggedright相当于flushleft),\raggedleft(相当于flushright)和centering(相当于中心)。除非插入另一个切换命令,否则切换命令会将对齐方式从插入位置切换到文档末尾。
在这里插入图片描述
此参数的默认长度由使用的文档类设置。可以使用该命令更改段落的缩进大小\setlength。在示例中,下面的段落\setlength{\parindent}{10ex}将缩进10ex(“ex”等于当前字体中“x”的长度)

如果要创建非缩进段落(如示例中的第二个段落),则可以使用\noindent段落开头的命令。

如果要缩进未缩进的段落,可以\indent在其上方使用。应该注意,只有当\ parindent未设置为零时,此命令才会生效。

可以在段落格式中找到详细信息和更多示例。

在这里插入图片描述

在这里插入图片描述

overleaf项目建立:
https://cn.overleaf.com/project
在这里插入图片描述
介绍传送门:
https://zhuanlan.zhihu.com/p/67182742

如何使用LaTeX语法编写数学公式
https://blog.csdn.net/lanxuezaipiao/article/details/44341645

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值