自定义标题页

自定义标题页

我正在尝试实现该标题页的布局:封面我有点不知道从哪里开始。布局很简单,但如何用 LaTeX 编写对我来说很麻烦。在图片上,只有位置和颜色很重要。

给我一些提示,我真的很想自己做。我正在尝试建立一个类,看看它是否会影响语法。

答案1

textpos包允许在页面上定位元素。可以使用包定义页面的大小geometry。请参阅 LaTeX 字体目录以了解您喜欢的字体。

\documentclass{book}

\usepackage[absolute]{textpos}

\usepackage{color}
\definecolor{PetrolBlue}{RGB}{1,95,147}
\definecolor{CloudBlue}{RGB}{178,206,230}
\definecolor{SteelBlue}{RGB}{36,130,192}

\usepackage[T1]{fontenc}
\usepackage{newpxtext,eulerpx}

\usepackage{graphicx}


\begin{document}

\begin{titlepage}
  \begin{textblock*}{.5\paperwidth}(.5\paperwidth,0cm)
    \textblockcolor{CloudBlue}
    \parindent=3mm% this is used to set the width of the vertical blue band (3mm in this case)
    {\color{PetrolBlue}\vrule height \paperheight width \dimexpr.5\paperwidth-\parindent\relax}
  \end{textblock*}
  \begin{textblock*}{\paperwidth}(0cm,.4\paperwidth)
    \textblockcolor{SteelBlue}\vskip2mm
    \centering
    \color{white}\fontsize{2.1cm}{2.5cm}\selectfont Title\par\vskip2mm
  \end{textblock*}
  \begin{textblock*}{.3\paperwidth}(.5cm,.5cm)
    \parindent=0mm%
    \includegraphics[width=.3\paperwidth,height=.35\paperwidth]{example-image}
  \end{textblock*}
  \begin{textblock*}{.12\paperwidth}(.35\paperwidth,.6\paperheight)
    \parindent=0mm%
    \textblockcolor{white}
    \includegraphics[width=.12\paperwidth,height=.15\paperwidth]{example-image}\par\bigskip
    \includegraphics[width=.12\paperwidth,height=.15\paperwidth]{example-image}\par\bigskip
    \includegraphics[width=.12\paperwidth,height=.15\paperwidth]{example-image}
  \end{textblock*}
  \begin{textblock*}{.4\paperwidth}(.6\paperwidth,1cm)
    \textblockcolor{PetrolBlue}
    \raggedleft\color{white}\fontsize{1cm}{1.2cm}\selectfont 
    Date\qquad\null
  \end{textblock*}
  \begin{textblock*}{.4\paperwidth}(.6\paperwidth,.6\paperheight)
    \textblockcolor{PetrolBlue}
    \color{white}\fontsize{1cm}{1.2cm}\selectfont 
    \begin{tabular}{@{}l}
      Author 1\\ 
      Author 2
    \end{tabular}
  \end{textblock*}
  \begin{textblock*}{.4\paperwidth}(.6\paperwidth,.8\paperheight)
    \parindent=0mm%
    \textblockcolor{PetrolBlue}
    \color{white}\fontsize{1.2cm}{1.4cm}\selectfont Some\\ Text here
  \end{textblock*}
\end{titlepage}

\end{document}

在此处输入图片描述

相关内容