彩色标题页上方有徽标?

彩色标题页上方有徽标?

我想在彩色标题页上放置徽标,但谷歌搜索和手动阅读都没有帮助我。有专家能帮我吗?

这是我的编码示例,灵感来自“海德堡”主题:

\documentclass[12pt,demo]{scrreprt}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[T1]{fontenc}            
\usepackage[utf8]{inputenc}         
\usepackage[ngerman]{babel}            
\usepackage{lmodern}               
\usepackage[onehalfspacing]{setspace}  
\usepackage{lipsum}

\definecolor{titlepagecolor}{cmyk}{1,.10,0,0}
\definecolor{namecolor}{cmyk}{1,.50,0,.10} 
\definecolor{white}{cmyk}{0,0,0,0} 

\begin{document}

\begin{titlepage}
    \pagecolor{titlepagecolor}
    \newgeometry{left=5cm,right=1cm,bottom=1cm} 
    \noindent
    \color{white}
    {\LARGE \textsf{Subject} } 
    \par
    \noindent
    \color{white}
    \makebox[0pt][l]{\rule{1.3\textwidth}{1pt}}
    \par\medskip
    {\noindent \huge\textbf{\textsf{Title}}}
    \par\medskip
    {\noindent\huge\textbf{\textsf{Subtitle} }}
    \par

\vfill

\begin{flushright}
 \includegraphics[scale=0.6]{logo.jpg}
\end{flushright}

\end{titlepage}
\restoregeometry 

\nopagecolor lipsum[1-9]

\end{document}

答案1

像这样吗?(好吧,也许不完全是……)

\documentclass[12pt]{scrreprt}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage[onehalfspacing]{setspace}
\usepackage{lipsum}

\definecolor{titlepagecolor}{cmyk}{1,.10,0,0}
\definecolor{namecolor}{cmyk}{1,.50,0,.10}
\definecolor{white}{cmyk}{0,0,0,0}

\begin{document}

\begin{titlepage}
    \pagecolor{titlepagecolor}
    \newgeometry{left=5cm,right=1cm,bottom=1cm}
    \noindent
\begin{flushright}
\vspace*{-3cm}
 \includegraphics[scale=0.5]{pepe-le-pew1}
 \vspace{2cm}
\end{flushright}
    \color{white}
    {\LARGE \textsf{Subject} }
    \par
    \noindent
    \color{white}
    \makebox[0pt][l]{\rule{1.3\textwidth}{1pt}}
    \par\medskip
    {\noindent \huge\textbf{\textsf{Title}}}
    \par\medskip
    {\noindent\huge\textbf{\textsf{Subtitle} }}
    \par

\vfill%

\end{titlepage}
\restoregeometry

\nopagecolor lipsum[1-9]

\end{document} 

在此处输入图片描述

答案2

使用 Bernard (+1) 的主题和标题作为开始,但使用不同的方法和更少的软件包,

\documentclass[12pt]{scrreprt}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{graphicx}   
\usepackage{tikz}
\usepackage{tikzpagenodes}


\begin{document}

\begin{titlepage}

\begin{tikzpicture}[remember picture,overlay,shift={(current page.south west)}]
\fill[orange] (0,0)--(\paperwidth,0)--(\paperwidth,\paperheight)--(0,\paperheight)--cycle;
\end{tikzpicture}

\begin{tikzpicture}[remember picture,overlay,shift={(current page.north east)}]
\node[anchor=north east] (0,0) {\includegraphics[width=2in]{pig}};
\end{tikzpicture}

    \noindent
    \color{white}
    {\LARGE \textsf{Piglets} } 
    \par
    \noindent
    \color{white}
    \makebox[0pt][l]{\rule{1.3\textwidth}{1pt}}
    \par\medskip
    {\noindent \huge\textbf{\textsf{Cute pigs}}}
    \par\medskip
    {\noindent\huge\textbf{\textsf{Out and about} }}
    \par




\end{titlepage}



\end{document}

在此处输入图片描述

答案3

另一个建议是使用包scrlayer并为标题页定义新的图层页面样式。此包是 KOMA-Script 包的一部分。请注意scrlayer-scrpage,页眉和页脚的 KOMA 包基于scrlayer。因此,如果您scrlayer-scrpage在文档中使用,则无需其他包。图层已经在所需位置的第一次运行中。

\documentclass[12pt]{scrreprt}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage[onehalfspacing]{setspace}
\usepackage{lipsum}

\definecolor{titlepagebackground}{cmyk}{1,.10,0,0}
\definecolor{namecolor}{cmyk}{1,.50,0,.10} 
\definecolor{titlepagetext}{cmyk}{0,0,0,0} 

\usepackage{scrlayer}
\DeclareNewPageStyleByLayers{titlepage}{%
  titlepage.bg,%
  titlepage.logo%
}
\DeclareNewLayer[
  background,
  contents=\textcolor{titlepagebackground}{\rule{\layerwidth}{\layerheight}}
]{titlepage.bg}
\DeclareNewLayer[
  background,
  mode=picture,
  contents=\putLR{\makebox[0pt][r]{\includegraphics[height=4cm]{example-image}}}
]{titlepage.logo}

\begin{document}
\begin{titlepage}
  \thispagestyle{titlepage}
  \newgeometry{left=5cm,right=1cm}
  \color{titlepagetext}\sffamily
  \begin{flushleft}
    {%
      \LARGE 
      Subject
      \par
    }
    \smash{\makebox[0pt][l]{\rule{1.3\textwidth}{1pt}}}
    \par
    {%
      \huge\bfseries
      Title\par
      Subtitle\par
    }
  \end{flushleft}
\end{titlepage}
\restoregeometry 
lipsum[1-9]
\end{document}

在此处输入图片描述

还可以使用附加层来显示标题页文本。这样就不必更改标题页的页面几何形状,并且geometry可以移除包装。

\documentclass[12pt]{scrreprt}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage[onehalfspacing]{setspace}
\usepackage{lipsum}

\definecolor{titlepagebackground}{cmyk}{1,.10,0,0}
\definecolor{namecolor}{cmyk}{1,.50,0,.10} 
\definecolor{titlepagetext}{cmyk}{0,0,0,0} 

\usepackage{scrlayer}
\DeclareNewPageStyleByLayers{titlepage}{%
  titlepage.bg,%
  titlepage.logo,%
  titlepage.text%
}
\DeclareNewLayer[
  background,
  contents=\textcolor{titlepagebackground}{\rule{\layerwidth}{\layerheight}}
]{titlepage.bg}
\DeclareNewLayer[
  background,
  mode=picture,
  contents=\putLR{\makebox[0pt][r]{\includegraphics[height=4cm]{example-image}}}
]{titlepage.logo}
\DeclareNewLayer[
  foreground,
  textarea,
  hoffset=5cm,
  width=\paperwidth-6cm,
  contents={%
    \color{titlepagetext}\sffamily
    \begin{flushleft}
      {%
        \LARGE 
        Subject
        \par
      }
      \smash{\makebox[0pt][l]{\rule{1.3\textwidth}{1pt}}}
      \par
      {%
        \huge\bfseries
        Title\par
        Subtitle\par
      }
    \end{flushleft}
  }
]{titlepage.text}

\begin{document}
\begin{titlepage}
  \thispagestyle{titlepage}
  \null
\end{titlepage}
\lipsum[1-9]
\end{document}

相关内容