我试图将此页面居中,但不起作用。所有操作都使第一行向右缩进大约一个“制表符”空间,但第二行不会移动。但是,第一行的缩进似乎也没有居中。装订偏移或包是否可能对此产生indentfirst
负面影响?所有其他页面似乎都运行良好。任何帮助都将不胜感激。
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\begin{document}
\pagestyle{empty}
\vspace*{36 pt}
{\centering
\textbf{\emph{\Huge{Since I Saw You Last,\\There's a Change Upon You}}}
}
\end{document}
答案1
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\begin{document}
\pagestyle{empty}
\vspace*{36 pt}
\begin{center}\Huge\bfseries\itshape
Since I Saw You Last,\\There's a Change Upon You
\end{center}
\end{document}
请注意,\centering
大小更改命令,例如\Huge
应该总是以段落结尾在命令范围内的方式使用,否则您将在正常大小的基线上获得巨大的文本,并且间距不一致。\Huge
不接受参数,它只是\Huge
不是\Huge{.....}
。
答案2
您必须在关闭组之前结束段落。我还建议在这种情况下使用字体命令的切换变体(少用括号)
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\begin{document}
\pagestyle{empty}
\vspace*{36 pt}
{\centering\Huge\em\bfseries
Since I Saw You Last,\\There's a Change Upon You\par
}
\end{document}
答案3
使用center
环境,而不是声明\centering
。
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\begin{document}
\pagestyle{empty}
\vspace*{36 pt}
\begin{center}
\textbf{\emph{\Huge Since I Saw You Last,\\ There's a Change Upon You}}
\end{center}
\end{document}