4

My latex file is:

    \title{\large\textbf{Optimizarea rela\c tiei dintre structur\u a \c si comportament \^in modelarea UML}}

    \author{
            Sorin Oltean \\
                    \textit{Universitatea Transilvania din Bra\c sov} \\
                    \small\textit{oltean.s@gmail.com, sorin.oltean@romtelecom.ro} \\
                    \small Tel.: 0752/314288
    }

    \documentclass[12pt]{article}

    \begin{document}
    \maketitle
    \renewcommand\abstractname{\textit{\textbf{Abstract}}}

    \begin{abstract}
    Something..... text.........
    \end{abstract}\\\

    \textbf{Cuvinte cheie:}  \textit{sistem, structur\u a, comportament, UML}

    \section{Introducere}

    \paragraph{  } 
    Para11.............
    \paragraph{ } 
   Para2......
    \bibliographystyle{abbrv}
    \bibliography{main}

    \end{document}

After para1, i wanna start a new paragraph, but between the paragraphs there is a blank line, how can i start the 2nd paragraph below the 1st one, without that blank space? Also, how can i define the margins (top, down, left, right) of the document? There is too much space from the left, right, top and down, i wanna just 2cm space from the left and right, and 3cm from the top and down. Sorry for my bad english.. Also how can i specify the font name and size of the document?

Thanks!

4

7 回答 7

8

我看到你犯了几个初学者典型的错误:

  • 不要使用通用文档的标准类(article, report, book),它们太不灵活了。请改用 KOMA 脚本类 ( scrartcl, scrreprt, scrbook) 或memoir类。
  • 在您阅读有关排版的书籍或文章之前,请勿更改默认设置。
  • 特别是默认的页边距是可以的,不用改。2厘米的边距太窄了。
  • 说到字体,答案取决于您使用的引擎:基于 pdfTeX 的文档需要特制的包,而现代引擎(XeTeX 和 LuaTeX)可以访问系统字体。和以前一样,不要随意切换字体。普通用户只能使用极少数高质量的字体。特别是,切勿使用 Arial 或 Times New Roman。例如,在 Mac OS X 上,您可以在 Windows Cambria 上使用 Hoefler Text。
  • 不要在标记列表中包含用于纯字符串(如\titleor \abstractname;)的格式化命令 使用您的文档类提供的格式化命令。
  • \paragraph是创建标题的分段命令;使用空行分隔简单的文本段落。
  • 加载inputenc包(仅在 pdfTeX 的情况下需要),以便您可以直接输入非 ASCII 字符。
  • \documentclass命令必须是第一位的。
  • geometry除非您有非常具体和不可避免的要求,否则不要使用该软件包。
  • 避免parskip包裹;现代文档类已经包含了它的功能;通常,段落应该用缩进而不是垂直空间来标记,因此不需要更改默认值。
  • 永远不要使用这个fullpage包,它已经完全过时了。
  • 就像其他人说的那样,首先阅读一些关于 LaTeX 的介绍性材料,例如Short Introduction
  • 阅读文档过时的包和命令
于 2010-06-26T16:41:42.563 回答
1

我建议是一个很好的参考。熟悉为 LaTeX 准备文档的方式。

1)没有必要使用\paragraph{},段落之间只需要一个空行就足够了。这将在段落之间创建一个可见的垂直空间(这就是你想要不同段落的原因,对吧?)。如果您对新段落的默认缩进感到困扰,请查看\noindentor的文档\parskip

2)如果你真的需要开始调整页面布局(即你的大学/期刊/雇主还没有提供一个被接受的课程或风格)看看几何包。

3) 您的安装中应该已经有一些可用的字体(beton, helvet, palatino?),这些可以作为包加载。这真的取决于你到底需要做什么。

于 2010-06-26T16:17:02.590 回答
1

对于段落,请尝试将您的文本放在 {} 中,这样您就有 \paragraph{ Para11............. }

但通常我认为你可以在每个段落之间放两行,而不用打扰 \paragraph{}。否则,您可以更改 parskip 值。Wikibooks 展示了如何,但我不允许发布第二个链接。它位于 Latex wikibook 的文档结构部分。

您可以使用几何包来指定您的边距:

\usepackage{geometry} \geometry{top=3cm,left=2cm,right=2cm,bottom=3cm}

文档

于 2010-06-26T16:21:11.440 回答
1

使用geometry包。它允许完全控制边距等。

\usepackage{geometry}
\geometry{margin=2cm}

段落之间的间距可以通过以下方式设置parskip

\setlength{\parskip}{0cm}

但是,parskip不适用于\paragraph. 但是,如果您的段落不需要标题(正如我假设的那样,因为您写了\paragraph{},那么以空行开始段落可能会更好:

\setlength{\parskip}{0cm}
Here goes the first paragraph.

Here the second. With no space. Note that this paragraph was introduced with a blank line.

\paragraph{The third paragraph} This paragraph will have a small offset, since it is introduced explicitly with paragraph command.
于 2010-06-26T16:10:54.853 回答
0

For less margins I recommend using fullpage, i.e.

\usepackage{fullpage}

see fullpage documentation for more information

于 2010-06-26T16:07:38.150 回答
0

使用几何包更改文档的边距

\usepackage[top=3cm,left=2cm,right=2cm,bottom=3cm]{geometry}
于 2010-06-26T16:10:18.240 回答
0

我认为段落之间的空间可以用包配置:

\usepackage{parskip}

CTAN 中的文档在此处。不过我还没有真正测试过。

对于您可以手动使用的边距,最简单的方法是使用以下包:

\usepackage[margin=2.5cm]{geometry}

您可以在此处查看文档。

于 2010-06-26T16:14:00.413 回答