-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A floating object distorts background watermark #26
Comments
Was not aware, thanks for reporting. Can you provide a minimal test case? The package now relies on new LaTeX mechanisms and there may be some corner cases. |
On the page I'm working on with a figure floating object as follows: If I remove the environment (\begin{figure} \end{figure}) and use only '\includegraphics...',the behaviour is reverted. |
Please be so kind to provide a minimal, but full example with the document class, any package that may be needed to trigger the issue in addition to draftwatermark, etc. You can save the actual |
Tried this:
cannot reproduce... |
I have quite a number of packages in use. Importantly, I'm using the exam class. \documentclass[12pt]{exam}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{listings}
\usepackage[inline]{enumitem}
\usepackage{tikz}
\usepackage[most]{tcolorbox}
\usepackage{draftwatermark}
\DraftwatermarkOptions{%
text=Confidential,
scale=1.2,
color={[gray]{0.8}},
angle=55,
fontsize=5cm
} |
Still cannot reproduce with \documentclass[12pt]{exam}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{listings}
\usepackage[inline]{enumitem}
\usepackage{tikz}
\usepackage[most]{tcolorbox}
\usepackage{draftwatermark}
\DraftwatermarkOptions{%
text=Confidential, scale=1.2, color={[gray]{0.8}}, angle=55, fontsize=5cm }
\begin{document}
test
\begin{figure}[!ht]
prova
\end{figure}
\end{document} the result does not change for me if I comment out (or not) the |
Hi @callegar, But I have attached a zip of the files that produce the error I describe. Don't hesitate to reach out to me if you need any clarification. |
This is what I get (obviously there are no images since I do not have the graphic files). Can you tell me if there is the issue that you are mentioning? |
Please compare with my output attached. The issue is the output on page 8 of the attached document. |
OK! this is interesting. We have evident differences in the environment and the way in which the default fonts operate and scale. So these are to be investigated. Can you please:
|
The following is minimal version (using fewer packages to produce the same effect). Please see attached. \documentclass[12pt]{exam}
\usepackage{longtable,tabu}
\usepackage{listings}
\lstset{language=C++,
basicstyle=\ttfamily,
breaklines=true,
showstringspaces=false
}
\usepackage{lipsum}
\usepackage{draftwatermark}
\DraftwatermarkOptions{%
text=Confidential,
scale=1.2,
color={[gray]{0.8}},
angle=55,
fontsize=5cm
}
`
Below is a description of my environment:
XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021)
Linux (KDE Neon)
draftwatermark version 57099 (3.0) |
I just realised that what actually causes the minimal version to fail is the |
That is interesting. |
This is not enough to reproduce the issue for me (even on xelatex): \documentclass[12pt]{exam}
\usepackage{listings}
\lstset{language=C++,
basicstyle=\ttfamily,
breaklines=true,
showstringspaces=false
}
\usepackage{lipsum}
\usepackage{draftwatermark}
\DraftwatermarkOptions{%
text=Confidential,
scale=1.2,
color={[gray]{0.8}},
angle=55,
fontsize=5cm
}
\begin{document}
prova\clearpage
\begin{figure}[ht]
\centering
\fbox{\parbox{10cm}{\hspace*{10cm}\\[10cm]}}
\end{figure}
\end{document} |
Thanks a lot for this package.
I realised with the latest update that a floating object like a figure on a page distorts (changes font type, size, etc.) the text of the watermark on that page. I've tried it on multiple cases and it remains the same. I wonder if this is something you are aware of too.
The text was updated successfully, but these errors were encountered: