我在学校开办了一个数学俱乐部。我想将我们俱乐部的徽标放在文档的右上角,但不影响文档中的文本,即我希望徽标位于背景中。我可以这样做吗?
答案1
可以通过设置自己的背景模板来添加背景图像:
\usepackage{background}
\makeatletter
\def\bg@material{%
\begin{tikzpicture}[remember picture,overlay]
\node [rotate=0,scale=1,opacity=0.2,color=blue!30,xshift=-5mm,yshift=10mm]
at (current page.north east) [anchor=north east]{\includegraphics[height=.2\paperheight]{etf-logo}};
\end{tikzpicture}}
\makeatother
下面是一个例子:
\documentclass[a4paper,12pt]{article}
\textwidth 155mm
\voffset -15mm
\oddsidemargin 5mm
\evensidemargin 5mm
\parindent 0pt
\parskip = .7\baselineskip
\usepackage{blindtext}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage{background}
\makeatletter
\def\bg@material{%
\begin{tikzpicture}[remember picture,overlay]
\node [rotate=0,scale=1,opacity=0.2,color=blue!30,xshift=-5mm,yshift=10mm]
at (current page.north east) [anchor=north east]{\includegraphics[height=.2\paperheight]{etf-logo}};
\end{tikzpicture}}
\makeatother
\begin{document}
\section{Kodovi}
\blindtext
\end{document}