latex - 如何在 LaTeX 文章中进行完全对齐?

标签 latex

关闭。这个问题是off-topic .它目前不接受答案。












想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。

8年前关闭。




Improve this question




我是 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}

先感谢您。

最佳答案

这个

\center{\textit{ text text text text text text}}

不是正确的方法。此\center 对整个文档生效。 (这也是\raggedright 或\raggedleft 的情况)一旦您将全局对齐设置为其他内容(中心 raggedright 或 raggedleft),就无法恢复对齐对齐

你应该把括号放在\center 标签之前......那是
{\center\textit{ text text text text text text}}

(但是,这不会将您想要居中的文本放在页面中间,而只会放入左侧的框中,尽管文本将在那里居中)。做你可能想做的事情的干净方法是使用 center 环境(\begin{center} 和\end{center})
\begin{center}\textit{ text text text text text text}\end{center}

关于latex - 如何在 LaTeX 文章中进行完全对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13182749/

相关文章:

LaTeX:每章引用书目

latex - 在LaTeX中将脚注与moderncv类一起使用

macros - 在 Latex 中将两个命令合并为一个新命令

latex - 如何在 LaTeX 中对齐方程组?

r - 更改rmarkdown中单行的字体大小而不改变全局字体大小

layout - LaTeX:两栏文章中的多个作者

latex - 在链接后显示网址?

html - 如何在新的 Jekyll 中使用 Latex? (基于 gem 的主题最小值)

vim - 更正 GVim 中的错误后返回主 latex 文件

javascript - 有没有一种从 mathml 或 Latex 绘制图形的好方法?