如何消除居中后的间距

如何消除居中后的间距

问题:如何删除下面居中文本“FALSE:”后面的间距?我需要对文档中的五个居中位置执行此操作。

% BEGIN PREAMBLE

\RequirePackage{fix-cm}

\documentclass[fleqn,10pt]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\usepackage{calc}
\fancyheadoffset[L,R]{45pt}
\nofiles
\pagenumbering{gobble}

\usepackage{lmodern}
\usepackage{fixcmex}

\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{amsmath}

\usepackage{microtype}

\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.75in}

\addtolength{\topmargin}{-1.25in}%-1.25
\addtolength{\textheight}{5in}%1.75in

% END PREAMBLE

\begin{document}

\begin{center}
\large{\textbf{NAME}}\\
\normalsize something 123456789
\end{center}

\begin{center}
\textbf{FALSE:}
\end{center}

This is some text.

This is some more text.

This is even more text for display.

\end{document}

答案1

使用\centering代替center环境,在环境后添加空格。

% centerprob.tex  SE 645778

\documentclass[fleqn,10pt]{article}
% END PREAMBLE

\begin{document}

\begin{center}
\large{\textbf{NAME}}\\
\normalsize something 123456789
\end{center}

%\begin{center}
{\centering \textbf{FALSE:}\par}
%\end{center}

This is some text. This is some text. This is some text. This is some text.

This is some more text.

This is even more text for display.

\end{document}

在此处输入图片描述

相关内容