这是我的传单代码:
\documentclass[a4paper]{article}
\usepackage[verbose,vmargin=20mm,hmargin=20mm]{geometry}
\usepackage{fontsize,fix-cm}
\usepackage{graphicx}
\setkeys{Gin}{keepaspectratio}
\pagestyle{empty}
\changefontsize{24}
\setlength{\parindent}{0pt}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
\includegraphics[height=70mm]{example-image-10x16}
\hfill
\includegraphics[height=70mm]{example-image-10x16}
\begin{center}
\begin{bfseries}
{\LARGErrr My title}\\
\end{bfseries}
\end{center}
\begin{minipage}[t][.2\textheight][c]{\textwidth}
\centering
purpose of this flier (like "annual meeting", "anniversary"...)
\end{minipage}
\rule{\textwidth}{2pt}
\begin{minipage}[t][.2\textheight][c]{\textwidth}
\begin{itemize}
\item ...anything like "no fees required"
\item ..."transports for free" ...
\end{itemize}
\end{minipage}
\rule{\textwidth}{2pt}
\begin{minipage}[t][.2\textheight][c]{\textwidth}
\centering
"venue", "date", "time"???
\end{minipage}
\end{document}
本文档为 a5 尺寸传单(2 页,因为我将重复另一种语言的代码,如法语或西班牙语...)。article
如果我进一步减少边距,我会收到注释空间警告:
Package fancyhdr Warning: \headheight is too small (12.0pt):
(fancyhdr) Make it at least 88.9583pt, for example:
(fancyhdr) \setlength{\headheight}{88.9583pt}.
我还必须添加一些代码来避免页码。哪种文档类更适合此目的?
顶部的两张图片,我想将它们放在页眉部分。这样我就不需要在第二页中再次包含它们了。fancyhdr
它们\fancyhead[L/R]{...}
与顶部边距下方的第一行“我的标题”对齐。
另外,有人可以做些什么让列表在两个规则之间垂直居中吗?现在列表底部有更多的空间。
编辑:我忘了在 mwe 中放入两条水平线。现在完成了。
答案1
将 的定义放入headheight
几何参数中,并使用includehead
以便调整textheight
。
\documentclass[a4paper]{article}
\usepackage[verbose,vmargin=20mm,hmargin=20mm,headheight=203pt,includehead]{geometry}
\usepackage{fontsize,fix-cm}
\usepackage{graphicx}
\setkeys{Gin}{keepaspectratio}
\pagestyle{empty}
\changefontsize{24}
\setlength{\parindent}{0pt}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\includegraphics[height=70mm]{example-image-10x16}}
\fancyhead[R]{\includegraphics[height=70mm]{example-image-10x16}}
\begin{document}
\begin{center}
\begin{bfseries}
{\LARGErrr My title}\\
\end{bfseries}
\end{center}
\begin{minipage}[t][.2\textheight][c]{\textwidth}
\centering
purpose of this flier (like "annual meeting", "anniversary"...)
\end{minipage}
\begin{minipage}[t][.2\textheight][c]{\textwidth}
\begin{itemize}
\item ...anything like "no fees required"
\item ..."transports for free" ...
\end{itemize}
\end{minipage}
\begin{minipage}[t][.2\textheight][c]{\textwidth}
\centering
"venue", "date", "time"???
\end{minipage}
\end{document}