我想在文档中添加水印,但它只会出现在标题页和目录页之一上,我只想在章节中添加水印,但不起作用。我试过这个:
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc} % Para caracteres en español
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd}
\usepackage{multirow,booktabs}
\usepackage[table]{xcolor}
\usepackage{fullpage}
\usepackage{lastpage}
\usepackage{enumitem}
\usepackage{fancyhdr}
\usepackage{mathrsfs}
\usepackage{wrapfig}
\usepackage{setspace}
\usepackage{calc}
\usepackage{multicol}
\usepackage{cancel}
\usepackage[retainorgcmds]{IEEEtrantools}
\usepackage[margin=3cm]{geometry}
\newlength{\tabcont}
\setlength{\parindent}{0.0in}
\setlength{\parskip}{0.05in}
\usepackage{empheq}
\usepackage{framed}
\usepackage[most]{tcolorbox}
\usepackage{xcolor}
\parindent 0in
\parskip 12pt
\geometry{margin=1in, headsep=0.25in}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
\newtheorem{reg}{Rule}
\newtheorem{exer}{Exercise}
\newtheorem{note}{Note}
\usepackage{textgreek}
\usepackage{easytable}
\usepackage[official]{eurosym}
\usepackage{array}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
pdftitle={Maths O-Level Notes}}
\pagenumbering{arabic}
\thispagestyle{empty}
\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\LARGE\bfseries}{\thechapter}{1em}{}
\titleclass{\chapter}{straight}
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
\newtheorem{theorem}{Theorem}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} % for centering of table items
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\linespread{1.5} %line spacing
\usepackage[printwatermark]{xwatermark}
\usepackage{graphicx}
\newwatermark*[allpages,color=red!50,angle=45,scale=3,xpos=0,ypos=0]{CT PRIVATE TUITION}
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\Huge
\textbf{Maths O-Level}\\
\vspace{0.7cm}
\Huge
MATSEC Notes \\
\vspace{1.2cm}
\includegraphics[width=0.4\textwidth]{images/calc.jpg}\\
\vspace{2.5cm}
\textbf{Tuition} \\
\Large
\vspace{1.5cm}
Compiled By: \\
Giu[![enter image description here][1]][1] \\
\vfill
\Large
2023
\end{center}
\end{titlepage}
\tableofcontents
\include{Year 9_Numbers.tex}
\include{Year 9_Algebra.tex}
\include{Year 9_Statistics and Data Handling.tex}
\include{O Level.tex}
\end{document}