脚本标题页底部的徽标

脚本标题页底部的徽标

有没有办法在报告的标题页上添加左右两个徽标scrreprt

我找不到解决方案 - 所以我想知道是否有可能。我设法使用以下方法将徽标放在页面顶部(有错误,但可以工作)

\titlehead{\includegraphics[width=2cm]{logo.jpg}&\hfill&\includegraphics[width=2cm]{logo.jpg}} 

答案1

以下是使用的建议\titlehead

\documentclass{scrreprt}
\usepackage{graphicx}

\usepackage{mwe}% example images
\usepackage{showframe}% to show the page layout

\begin{document}
\title{Title}
\author{Author}
\titlehead{%
  \makebox[0pt][l]{\smash{%
    \parbox[t][\dimexpr\textheight-\ht\strutbox\relax][b]{\textwidth}{%
      \includegraphics[width=2cm]{example-image-A}\hfill\includegraphics[width=2cm]{example-image-B}%
  }}}}
\maketitle
\end{document}

在此处输入图片描述

另一种可能性是加载scrlayer并定义一个可以添加到页面样式为空的新层。

\documentclass{scrreprt}
\usepackage{graphicx}

\usepackage{scrlayer}
\DeclareNewLayer[% define a new layer
  foreground,
  textarea,
  contents={\parbox[b][\layerheight][b]{\layerwidth}{%
    \includegraphics[width=2cm]{example-image-A}\hfill\includegraphics[width=2cm]{example-image-B}%
  }}
]{titlepage.logos}


\usepackage{mwe}% example images
\usepackage{showframe}% to show the page layout

\begin{document}
\title{Title}
\author{Author}

\AddLayersToPageStyle{empty}{titlepage.logos}% add the layer to pagestyle empty
\maketitle
\RemoveLayersFromPageStyle{empty}{titlepage.logos}% remove the layer

\end{document}

结果和上面一样。


或者你可以将徽标放置在脚注中

\documentclass{scrreprt}
\usepackage{graphicx}

\usepackage{scrlayer}
\DeclareNewLayer[% define a new layer
  foreground,
  foot,
  contents={\parbox[b][\layerheight][b]{\layerwidth}{%
    \includegraphics[width=2cm]{example-image-A}\hfill\includegraphics[width=2cm]{example-image-B}%
  }}
]{titlepage.logos}


\usepackage{mwe}% example images
\usepackage{showframe}% to show the page layout

\begin{document}
\title{Title}
\author{Author}

\AddLayersToPageStyle{empty}{titlepage.logos}% add the layer to pagestyle empty
\maketitle
\RemoveLayersFromPageStyle{empty}{titlepage.logos}% remove the layer

\end{document}

在此处输入图片描述


更新

如果有多个标题页,最好为第一个标题页定义一个新的页面样式

\documentclass{scrreprt}
\usepackage{graphicx}

\usepackage{scrlayer}
\DeclareNewLayer[% define a new layer
  foreground,
  foot,
  contents={\parbox[b][\layerheight][b]{\layerwidth}{%
    \includegraphics[width=2cm]{example-image-A}\hfill\includegraphics[width=2cm]{example-image-B}%
  }}
]{titlepage.logos}

\DeclarePageStyleByLayers{firsttitlepage}{titlepage.logos}% new pagestyle


\usepackage{mwe}% example images
\usepackage{showframe}% to show the page layout

\begin{document}
\titlehead{\thispagestyle{firsttitlepage}}% change the pagestyle for the first title page
\title{Title}
\author{Author}
\publishers{Publishers}
\dedication{Dedication}

\maketitle
\end{document}

在此处输入图片描述

相关内容