我想问一下是否有一种简单的方法可以在标题页上包含一些图形(徽标)(我正在使用scrreprt
来自 KOMA-script 的类)。到目前为止,我都是这样做的:
\title {
\normalfont \normalsize \includegraphics[width=0.3\textwidth]{img/logo}
\horrule{0.5pt}
\huge ARIO project
\horrule{2pt}
}
但我觉得这不是正确的方法。而且我找不到任何教程。谢谢。
答案1
我使用这个包埃索一皮克除了图形为了将图像放在标题页的特定位置,然后在命令中\titlepage
或在我想要徽标的页面中我使用以下命令:
\AddToShipoutPicture*
{%
\put(100,100)%the specific point of the page with coordinates (x=100, y=100)
{\includegraphics[scale=2]{logo.jpg}}%
}
经过几次尝试后,\put(x,y)
您最终会找到您想要徽标的坐标。
版:
这是一个 MWE:
\documentclass[a4paper,10pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{fix-cm} % big letters
\usepackage[scaled=.9]{helvet}
\renewcommand\familydefault{\sfdefault}
\usepackage{blindtext}
%----------------------------------------------- colors
\usepackage[pdftex,%
dvipdfm,%
dvipsnames,%
svgnames,%
usenames,%
table]{xcolor}
\definecolor{gris}{gray}{0.45} % gray
\definecolor{burgundy}{rgb}{0.5, 0.0, 0.13} % burgundy
\addtokomafont{section}{\Large\sffamily\color{burgundy}} % text color for Sections
\addtokomafont{subsection}{\large\sffamily\color{burgundy}} % text color for Subsections
\addtokomafont{subsubsection}{\sffamily\color{burgundy}} % text color for Subsubections
%----------------------------------------------- graphics
\usepackage{graphicx}
\usepackage{eso-pic}
%----------------------------------------------- opening
\author{Joan Queralt Gil}
\newcommand{\version}{00}
\newcommand{\code}{Code}
\newcommand{\course}{Course}
\begin{document}
%----------------------------------------------- Titlepage
\begin{titlepage}\sffamily
\raggedleft
\noindent
{\color{burgundy}
\vspace{2\baselineskip}
{\Huge\bfseries
MWE\\
Subtitle\\[3ex]
{\fontsize{60}{70}\selectfont Acronym}\\[2ex]
\course \\
\vspace{2\baselineskip}
\noindent
}}%
\raggedright
\vspace{\baselineskip}
\begin{center}
\let\footnoterule\relax
%--- minipage
\begin{minipage}{.9\linewidth}\large
Code: \code\\
Version: \version\\
[3ex]
{\color{gray}\small{Make sure this document is valid. Check out the website.}} \\
\end{minipage}
\end{center}
\vfill
\bigskip
%----- graphic
\AddToShipoutPicture*
{%
\put(100,100)%
{\includegraphics[scale=2]{logo.jpg}}
}
\end{titlepage}
%\maketitle
\blinddocument
\end{document}
产生: