我正在尝试更改报告第一页某部分的边距。
\documentclass[10pt]{article}
\usepackage[left=25.4mm, right=25.4mm, top=12.7mm, bottom=25.4mm]{geometry}
%\setlength\parindent{12pt} % Indentation
\begin{document}
\newgeometry{left=12.7mm, right=12.7mm, top=12.7mm, bottom=25.4mm}
\begin{flushright}
\begin{figure}[H]
\begin{flushright}
\includegraphics[width=3in]{Some-place.jpg}
\end{flushright}
\end{figure}
\large A conference title
\end{flushright}
\begin{centering}
\LARGE {A generic title}\\[0.5cm]
\large \textsc{The author\\
\small \textit{The author's address}\\[0.75cm]
\end{centering}
\noindent\makebox[\linewidth]{\rule{\textwidth}{0.4pt}}
\end{minipage}
\begin{multicols*}{2}
\section*{ABSTRACT}
Exciting text to sell the abstract!
这是我正在使用的代码,它能正常工作,只是摘要从下一页开始,标题后有大量空白。有没有办法让标题占据整页,左右边距为 1.27 厘米,然后两列立即开始,边距为 2.54 厘米?谢谢。
答案1
如果您想要一个比正常文本宽度更宽的文档标题,使用框会更简单;您无法更改页面内的页面几何形状。请注意,这figure
是不必要的。
\documentclass[10pt]{article}
\usepackage[left=25.4mm, right=25.4mm, top=12.7mm, bottom=25.4mm]{geometry}
\usepackage[demo]{graphicx} % demo is just for the example
\usepackage{multicol,calc}
\usepackage{lipsum} % just for the example
\begin{document}
\noindent\makebox[\textwidth][c]{%
\begin{minipage}{\textwidth+1in}
\raggedleft
\includegraphics[width=3in]{Some-logo.jpg}\\
\large A conference title
\centering
\LARGE A generic title\\[0.5cm]
\large \textsc{The author}\\
\small \textit{The author's address}
\vspace{0.2in}
\noindent\rule{\textwidth}{0.4pt}
\vspace{0.2in}
\end{minipage}}% this brace closes \makebox
\begin{multicols}{2}
\section*{ABSTRACT}
Exciting text to sell the abstract!
\section{Whatever}
\lipsum
\end{multicols}
\end{document}