
付属の画像内に透かしを追加するにはどうすればよいでしょうか\includegraphics
(または、\includegraphics
許可されていない場合は他の方法で追加できますか)? ドキュメント全体の透かしや、ページ全体を占める透かしについて話しているのではなく、一部の画像の右上隅に小さな画像を配置するだけです。
たとえば、次の MWE の場合:
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{example-image-a}
\caption{Main image}
\end{figure}
\end{document}
example-image-b
右上に1cm×1cmのサイズを入れるようにしています。
それは可能でしょうか\includegraphics
、それともやり方を変えるべきでしょうか?
答え1
何かを他のものの上に印刷することはいつでも可能です。主な問題は右上隅に到達することです。1つの方法は、例えば
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\raisebox{-\height}{\includegraphics[width=0.5\textwidth]{example-image-a}}%
\hspace{-1cm}%
\raisebox{-\height}{\includegraphics[width=1cm]{example-image-b}}
\caption{Main image}
\end{figure}
\end{document}