Texmaker not displaying properly and offset annotations #3
-
Just like nasser1, I come from this post in need of displaying annotations (mainly scribbles made over PDFs) in LaTeX documents. I've had some trouble running it (probably should've restarted my Windows). Eventually I found out that executing
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Could you create a short example (short but complete LateX file) showing the misaligned annotations, please? It's hard to tell what's going wrong without seeing the LaTeX source and the included PDF. Though scaling of PDFs should work basically, there are still a lot of things that might go wrong. It's very hard to hook into the scaling algorithm of LaTeX (graphicx). It would be much easier if LaTeX would restrict itself to using |
Beta Was this translation helpful? Give feedback.
-
Sure, I'll use PDFgear again, because Acrobat just draws a big rectangle when selecting an annotation so it's not as obvious. Also you will see that I did find where one of the scaled down PDFs was, but it really offset it. That's the first video, the second one is for the normal scale. Here's the LaTeX file (using minipage, but I get these results using subfigure too) and I can also include the PDF later. It's also worth mentioning that the offsets change each time I reopen the made PDF. I apologise if there are any obvious mistakes, but I try to make the most out of my limited LaTeX experience. \documentclass[a4paper, 12pt]{report}
\usepackage[margin = 3cm]{geometry}
\usepackage{graphicx}
\usepackage{flare}
\usepackage{lipsum}
\pagestyle{empty}
\begin{document}
\lipsum[6]
\begin{center}
\begin{figure}[h]
\begin{center}
\begin{minipage}{0.3\textwidth}
\begin{center}
\includegraphics[scale = 0.5]{Pic1.pdf}
\end{center}
\end{minipage}
\begin{minipage}{0.3\textwidth}
\begin{center}
\includegraphics[scale = 0.5]{Pic2.pdf}
\end{center}
\end{minipage}
\begin{minipage}{0.3\textwidth}
\begin{center}
\includegraphics[scale = 0.5]{Pic1.pdf}
\end{center}
\end{minipage}
\caption{Three pictures at scale = 0.5 and 0.3\textbackslash textwidth because 0.33 breaks it.}
\end{center}
\end{figure}
\end{center}
\lipsum[6]
\begin{center}
\begin{figure}[h]
\begin{center}
\begin{minipage}{0.4\textwidth}
\begin{center}
\includegraphics[scale = 1]{Pic1.pdf}
\end{center}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{center}
\includegraphics[scale = 1]{Pic2.pdf}
\end{center}
\end{minipage}
\caption{Two pictures at scale = 1 and 0.4\textbackslash textwidth because 0.5 breaks it.}
\end{center}
\end{figure}
\end{center}
\end{document} PDF (temporary link): https://we.tl/t-FbyTlnB7Gb. |
Beta Was this translation helpful? Give feedback.
-
Thanks for dedication. I've tried the following, more general example %Previous document code with two and three pictures.
\lipsum[6]
\begin{center}
\begin{figure}[h]
\begin{center}
\includegraphics[scale = 1]{Pic1.pdf}
\caption{Placeholder picture.}
\end{center}
\end{figure}
\end{center}
\lipsum[3]
%End of document code. as well, but it seems to be having the same issue with offsets. The only thing that comes to my mind is that the smaller dimensions of PDFs, customised with geometry, mess up the locations and so none of the compositions work in the end. I've tried removing the lipsum package, which made the above example with one picture less offset. Once I even managed to align it as it should be when I had the right amount of dummy text around it. The rows with two and three pictures are still offset with no noticeable difference. Even after getting rid of all Then the only warning that remains in Texmaker is The other weird thing is that TeXworks also (in these same conditions) produces no offsets on the above example with one picture, but in that same LaTeX document, the other two compositions remained offset. I found this pretty inconsistant though, and probably doesn't mean much, however it is true that TeXworks never displays the annotations warning. |
Beta Was this translation helpful? Give feedback.
Thanks for dedication. I've tried the following, more general example
as well, but it seems to be having the same issue with offsets. The only thing that comes to my mind is that the smaller dimensions of PDFs, customised with geometry, mess up the locations and so none of the compositions work in the end.
I've tried removing the lipsum package, which made the above example with one picture less offset. Once …