Generaldraftwatermark not on top of pictures

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draftwatermark not on top of pictures

Post by Stefan Kottwitz »

Same for me! When I'm tired, I still can manage to test an MWE. :-) So see you tomorrow!

Stefan
LaTeX.org admin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draftwatermark not on top of pictures

Post by Stefan Kottwitz »

Besides TikZ, one could use textpos, eso-pic, atbegshi, everyshi. TikZ should work though. Without an MWE, we cannot say why, and cannot tell it for other packages. An MWE can always be created by definition. ;-) Perhaps try to get one - hacking down a copy of the original document.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

draftwatermark not on top of pictures

Post by Cham »

Stefan,

here's a not so short MWE which duplicates the issue :

Code: Select all

\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[10pt,letterpaper]{revtex4}
\usepackage[french]{babel}
\usepackage[dvipsnames,table]{xcolor}
\usepackage{blindtext}

% Diagonal warning :
\usepackage{transparent}
\usepackage[printwatermark]{xwatermark}
\newwatermark*[allpages,angle=45,color=red,scale=2.5,textalign=center,height=\paperheight,width=\paperwidth,xpos=0,ypos=0
]{\transparent{0.5} \bfseries\sffamily TOP SECRET!}

\begin{document}

\title{Title}
\maketitle

\section{Section title}
Bla bla\footnote{Bla bla : \url{some_url_link}.}.  Bla bla
\newpage	

\begin{center}
	\textcolor{red}{{\LARGE\bfseries SOLUTION}}
\end{center}

\subsection{sub-title}

\blindtext\blindtext

\subsection{sub-title}
Bla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}
Bla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}
Bla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}

\subsection{sub-title}
\blindtext
	\begin{equation}
		y = x
	\end{equation}
\blindtext

\subsection{sub-title}
Bla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}
Bla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}
Bla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla blaBla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}
Bla bla bla :
	\begin{equation}
		P = \frac{3 G M^2}{8 \pi R^6}.
	\end{equation}
Bla bla bla bla :
	\begin{equation}
		\frac{1}{2} = \frac{3}{4},
	\end{equation}
Bla bla bla.

\blindtext
	\begin{equation}
		y = x.
	\end{equation}
\blindtext

\blindtext

\end{document}
The problem is highly sensible. If I remove some lines of text or equations, the end URL footnote can be shifted to the previous page and the issue disappears ! It appears to be very "chaotic". This is why I had lots of troubles in creating a MWE which reproduces the issue.

You should notice that the footnote number isn't showing. And actually, it can be noticed with the previous "TOP SECRET" sign on page 3 (bottom-left corner, as a pale gray [1] next to the warning !). It should not be there ! Can you see this ?

Maybe it's my LaTeX installation (2015) ?
Last edited by Cham on Sun May 28, 2017 10:44 pm, edited 2 times in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draftwatermark not on top of pictures

Post by Stefan Kottwitz »

Thanks, I can test tomorrow.

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draftwatermark not on top of pictures

Post by Stefan Kottwitz »

Revtex4 provides an option to not treat footnotes like bib entries. If you add the option nofootinbib, the footnotes are like classic footnotes and the problem does not appear.

\documentclass[10pt,letterpaper,nofootinbib]{revtex4}

Does it help?

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

draftwatermark not on top of pictures

Post by Cham »

Yes ! It apparently solves the issue, and another small thing : I prefer to have all footnotes at bottom of their page, not at the end of the document.

However, I'm now getting a lot of new weird errors :
Undefined control sequence.
and
Missing number, treated as zero.
while I don't see what undefined command I may use. There's still something very fishy in there ! :(
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draftwatermark not on top of pictures

Post by Stefan Kottwitz »

Perhaps you can see it in the .log file? You could post that here too.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

draftwatermark not on top of pictures

Post by Cham »

The log file is pretty big and very complicated.

I think that the revtex4 class is the source of all my problems. Maybe I should change it, but I like very much the revtex4 styling (section and subsection titles, fonts, size and spacements). This style is very appropriate for the documents I'm working on.

What class should I use instead of revtex4, and what options to get the same output as a revtex4 class document ?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

draftwatermark not on top of pictures

Post by Cham »

Stefan,

here's my log file. I don't know what to do with it, and with all the previous error messages. I don't see what's wrong in my commands.
TSWLatexianTemp_000003.log
(77.39 KiB) Downloaded 227 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draftwatermark not on top of pictures

Post by Stefan Kottwitz »

You could try the Class revtex4-1.

Stefan
LaTeX.org admin
Post Reply