![如何在背景中添加徽标?](https://linux22.com/image/444560/%E5%A6%82%E4%BD%95%E5%9C%A8%E8%83%8C%E6%99%AF%E4%B8%AD%E6%B7%BB%E5%8A%A0%E5%BE%BD%E6%A0%87%EF%BC%9F.png)
我在学校开办了一个数学俱乐部。我想将我们俱乐部的徽标放在文档的右上角,但不影响文档中的文本,即我希望徽标位于背景中。我可以这样做吗?
答案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}