Skip to content

Instantly share code, notes, and snippets.

@bguiz
Last active February 7, 2021 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bguiz/3bfb27bee138949a78eb7f38da6d0dc5 to your computer and use it in GitHub Desktop.
Save bguiz/3bfb27bee138949a78eb7f38da6d0dc5 to your computer and use it in GitHub Desktop.
tex-overlay-text-on-graphics
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass{article}
\usepackage[papersize={200mm,200mm},margin=0mm]{geometry}
\usepackage{tikz}
\usetikzlibrary{calc}
\parindent=0pt
\begin{document}
\begin{tikzpicture}
\draw node[inner sep=0] at (0mm,0mm) {
\includegraphics[width=200mm]{graph-paper.png}
};
\draw node[text width=80mm] at (0mm,20mm) {
page 5 line 1
};
\draw node[text width=80mm] at (20mm,0mm) {
page 5 line 2
};
\end{tikzpicture}
\begin{tikzpicture}
\draw node[inner sep=0] at (0mm,0mm) {
\includegraphics[width=200mm]{graph-paper.png}
};
\draw node[text width=80mm, anchor=north west] at (130mm,120mm) {
page 6 line 1
};
\draw node[text width=80mm] at (30mm,50mm) {
page 6 line 2
};
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment