我是LaTeX的初学者.我尝试了几个例子,但我不能做完全对齐.也许这个问题不是很烦人,你可以帮忙.
有我的代码示例:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[L7x]{fontenc}
\usepackage[lithuanian]{babel}
\usepackage{multicol}
\usepackage[left=1.5cm,right=1.5cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\title{text text text text text text text text text text text text}
\author {text text text text}
\date{}
\maketitle
\center{\textit{ text text text text text text}}
\center{\textit{ text text text text text text}}\\
\small\textbf{Abstract.}
An abstract is a brief summary of a research article, thesis, review, conference proceeding or any in-depth analysis of a particular subject or discipline, and is often used to help the reader quickly ascertain the paper's purpose. When used, an abstract always appears at the beginning of a manuscript or typescript, acting as the point-of-entry for any given academic paper or patent application. Abstracting and indexing services for various academic disciplines are aimed at compiling a body of literature for that particular subject.
\begin{multicols}{2}
\section*{\large Preface}
Academic literature uses the abstract to succinctly communicate complex research. An abstract may act as a stand-alone entity instead of a full paper. As such, an abstract is used by many organizations as the basis for selecting research that is proposed for presentation in the form of a poster, platform/oral presentation or workshop presentation at an academic conference. Most literature database search engines index only abstracts rather than providing the entire text of the paper. Full texts of scientific papers must often be purchased because of copyright and/or publisher fees and therefore the abstract is a significant selling point for the reprint or electronic form of the full text.
\section*{\large Some theory}
An abstract allows one to sift through copious amounts of papers for ones in which the researcher can have more confidence that they will be relevant to his or her research. Once papers are chosen based on the abstract, they must be read carefully to be evaluated for relevance. It is commonly surmised that one must not base reference citations on the abstract alone, but the entire merits of a paper.\\
\end{multicols}
\end{document}
Run Code Online (Sandbox Code Playgroud)
先感谢您.
这个
\center{\textit{ text text text text text text}}
Run Code Online (Sandbox Code Playgroud)
这不是正确的方法.这个\中心对eintire文档生效.(这也是\ raggedright或\ raggedleft的情况)一旦你将全局对齐设置为其他东西(中心raggedright或raggedleft),就没有办法回到对齐的对齐方式
你应该把括号放在\ center标签之前......就是这样
{\center\textit{ text text text text text text}}
Run Code Online (Sandbox Code Playgroud)
(但是这不会将您想要的文本放在页面中间但只放在左侧部分的框中,尽管文本将居中在那里).干净的方式来做你可能想做的事情就是使用中心环境(\ begin {center}和\ end {center})
\begin{center}\textit{ text text text text text text}\end{center}
Run Code Online (Sandbox Code Playgroud)