非常薄的页脚

非常薄的页脚

我正在使用下面的 LaTeX 模板创建带有彩色背景且尺寸各异的小海报,通常与普通纸张格式相差甚远。当然,这有时会造成问题,因为 LaTeX 通常非常面向 A4,至少从我这个外行的角度来看是这样。

我目前正在处理的问题是将我的姓名和电子邮件地址显示在底部边距的中心,作为一种非常小的页脚。但是,我的实验fancyhdr相当不成功,因为我不得不大大增加底部边距的大小才能使页脚可见。我宁愿避免因为这么小的细节而过多地链接布局,那么有人对此有好的解决办法吗?

PS 从下面的模板中可以明显看出,我并不是熟练的 LaTeX 用户,所以请随时指出我可能做错的任何其他事情。;-)

\documentclass[20pt]{article}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{graphicx, color}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}

\color{black}


% If I want a picture background:
%\newlength\imageheight
%\newlength\imagewidth
%\newcommand*\imagefilename{../TEMPLATES/Backgrounds/Yellow(1).png}
%
%\newcommand{\imagescale}{0.6}
%\settoheight{\imageheight}{\includegraphics[scale=\imagescale]{\imagefilename}}
%\settowidth{\imagewidth}{\includegraphics[scale=\imagescale]{\imagefilename}}
%
%\usepackage[
%       paperwidth=\imagewidth,
%       paperheight = \imageheight,
%       top=0.03\imagewidth,
%       bottom=0.03\imagewidth,
%       left=0.03\imagewidth,
%       right=0.03\imagewidth
%   ]{geometry}
%   
%\usepackage{wallpaper}
%\ULCornerWallPaper{1}{\imagefilename}

%If I want a homogeneous colour background: 
\newlength\mypagewidth
\newlength\mypageheight
\setlength\mypagewidth{200pt}
\setlength\mypageheight{115pt}
\usepackage[
        paperwidth=\mypagewidth,
        paperheight = \mypageheight,
        top=0.03\mypageheight,
        bottom=0.03\mypageheight,
        left=0.03\mypagewidth,
        right=0.03\mypagewidth
    ]{geometry}
\pagecolor{black}

%Other packages
\usepackage{enumerate,siunitx,comment,amssymb,amstext,amsthm,array,xspace,xkeyval,xfrac,bm,mathtools,listings, wasysym, tikz, pgfplots}
\usepackage[normalem]{ulem}
%\usepackage{IEEEtrantools}
%\usepackage[cm]{sfmath}
\usepackage{cmbright} %Sans-serif in math mode.

%Language:
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}

%A \yesnumber command, allowing me to easily insert equation numers.
\newcommand*{\yesnumber}{\refstepcounter{equation}\tag{\theequation}}

%Special commands:
\renewcommand{\le}{\leqslant}
\renewcommand{\ge}{\geqslant}
\newcommand{\N}[0]{\mathbb{N}}
\newcommand{\Z}[0]{\mathbb{Z}}
\newcommand{\Q}[0]{\mathbb{Q}}
\newcommand{\R}[0]{\mathbb{R}}
\newcommand{\C}[0]{\mathbb{C}}


\pagestyle{plain}


\usepackage{mathdots}
\begin{document}

    \begin{center}
        {\Huge Title}
    \end{center}

    Lorem ipsum.........................
\end{document}

答案1

您可以使用background包。包允许您轻松地将任意材料放置在文档的全部或部分页面中的所需位置;您可以控制材料的属性(颜色、比例、位置、角度等)。一个小例子:

\documentclass{article}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{graphicx, color}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}

%\color{black}


% If I want a picture background:
%\newlength\imageheight
%\newlength\imagewidth
%\newcommand*\imagefilename{../TEMPLATES/Backgrounds/Yellow(1).png}
%
%\newcommand{\imagescale}{0.6}
%\settoheight{\imageheight}{\includegraphics[scale=\imagescale]{\imagefilename}}
%\settowidth{\imagewidth}{\includegraphics[scale=\imagescale]{\imagefilename}}
%
%\usepackage[
%       paperwidth=\imagewidth,
%       paperheight = \imageheight,
%       top=0.03\imagewidth,
%       bottom=0.03\imagewidth,
%       left=0.03\imagewidth,
%       right=0.03\imagewidth
%   ]{geometry}
%   
%\usepackage{wallpaper}
%\ULCornerWallPaper{1}{\imagefilename}

%If I want a homogeneous colour background: 
\newlength\mypagewidth
\newlength\mypageheight
\setlength\mypagewidth{200pt}
\setlength\mypageheight{115pt}
\usepackage[
        paperwidth=\mypagewidth,
        paperheight = \mypageheight,
        top=0.03\mypageheight,
        bottom=0.03\mypageheight,
        left=0.03\mypagewidth,
        right=0.03\mypagewidth
    ]{geometry}
%\pagecolor{black}

%Other packages
\usepackage{enumerate,siunitx,comment,amssymb,amstext,amsthm,array,xspace,xkeyval,xfrac,bm,mathtools,listings, wasysym, tikz, pgfplots}
\usepackage[normalem]{ulem}
%\usepackage{IEEEtrantools}
%\usepackage[cm]{sfmath}
\usepackage{cmbright} %Sans-serif in math mode.

%Language:
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}

%A \yesnumber command, allowing me to easily insert equation numers.
\newcommand*{\yesnumber}{\refstepcounter{equation}\tag{\theequation}}

%Special commands:
\renewcommand{\le}{\leqslant}
\renewcommand{\ge}{\geqslant}
\newcommand{\N}[0]{\mathbb{N}}
\newcommand{\Z}[0]{\mathbb{Z}}
\newcommand{\Q}[0]{\mathbb{Q}}
\newcommand{\R}[0]{\mathbb{R}}
\newcommand{\C}[0]{\mathbb{C}}


\pagestyle{plain}

\usepackage{background}
\backgroundsetup{
  scale=0.6,
  angle=0,
  color=black,
  position=current page.south,
  contents={Some text},
  vshift=6pt
}
\usepackage{mathdots}

\begin{document}

\begin{center}
{\Huge Title}
\end{center}

Lorem ipsum.........................
\end{document}

在此处输入图片描述

20pt该类无法识别全局选项article

相关内容