创建标题页布局

创建标题页布局

我想使用 latex。但是,我想使用略有不同的布局。布局包含两个单独的区域,颜色不同。它们由一条粗白条隔开,周围有白色边框。

我怎样才能在 Latex 中创建这样的模板?

\documentclass[12pt]{article}
\usepackage[a4paper, left={2.5cm}, right={2cm}, top={3cm}, bottom={3cm}]{geometry}
\setlength{\footskip}{2cm}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{lipsum} 
\usepackage[utf8]{inputenc}
\linespread{1.3}
\graphicspath{{pic/}} 
\usepackage{color} 
\usepackage{subfigure} 
\usepackage{wrapfig}
\usepackage{underscore}
\usepackage{tikz}
\usepackage{diagbox}

\setlength{\parindent}{0em}
\usepackage{tabularx}
\usepackage[bottom]{footmisc}
\usepackage{caption}
\captionsetup[table]{position=bottom}

\usepackage{xurl} % <-- more modern than 'url'
\usepackage[]{hyperref} 
\usepackage{ragged2e}
\usepackage{listings}

\begin{document}

    \begin{titlepage}
    
    
        \normalfont \normalsize 
        \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
        \center
        {\LARGE \textsc{Some Text}} \\[4ex]
        {\Large Another Text}\\
           \vspace*{8ex}
        \HRule \\[0.4cm]
        { \huge \bfseries More Text}\\[0.4cm] 
        \HRule \\[1.5cm]
          \vspace*{8ex}
        {\Large Name 1001\\
                Name 100\\}

    \vspace*{16ex}
    \begin{flushleft}
        {\large
        Max Power \\
        Frank Boy \\
        \vspace*{4ex}
        Small Text \\}
    \end{flushleft} 
        
        
        
    \end{titlepage}
    
    

    
\newpage



\end{document}


我想要的是

在此处输入图片描述

答案1

这种高度定制的标题页最好直接在以下位置完成tikz

\documentclass[a4paper]{article}

\usepackage{tikz}

\definecolor{topcolour}{RGB}{0,37,118}
\definecolor{bottomcolour}{RGB}{92,142,254}

\begin{document}

\begin{titlepage}
  \begin{tikzpicture}[remember picture, overlay]
    \fill [topcolour] (current page.north west) rectangle (current page.east) 
      node [white, align=center, yshift=5mm, text width=15cm,
      font=\sffamily\bfseries\Huge] at (current path bounding box)
      {\includegraphics[width=4cm, height=4cm]{example-image}

       \bigskip

       Title};
    \fill [bottomcolour] (current page.west) rectangle (current page.south east);
    \draw [white, line width=2mm] ([shift={(1cm,-1cm)}]current page.north west)
      rectangle ([shift={(-1cm,1cm)}]current page.south east)
      node [white, align=left, anchor=south west, text width=15cm,
      font=\sffamily\Large, inner sep=5mm]
      at (current path bounding box.south west)
      {\textbf{\huge Something in bold}

       \medskip
       
       This is normal text

       \medskip

       More normal text but with more spaces \\
       Name xy 100 \\
       Name zz 101

       \bigskip

       Max Power \\
       Frank Boy

       \bigskip

       \textbf{\LARGE Some bold text but smaller}

       \bigskip

       {\large Small text} \\
       {\large And again small text}};
     \node [fill=white, font=\sffamily\huge, align=center, text
       width=\paperwidth-2cm, inner sep=0pt, minimum height=5cm]
        at (current page)
       {\textbf{Subtitle 2}

        \bigskip

        {\LARGE Subtitle 1}};
      \node [anchor=south east, inner sep=0pt, shift={(-1cm,1cm)}]
        at (current page.south east)
        {\includegraphics[width=4cm, height=4cm]{example-image}};
  \end{tikzpicture}
\end{titlepage}

\end{document}

输出

相关内容