31 reputation
1
bio website
location
age
visits member for 2 years, 7 months
seen Jun 2 '12 at 15:32

May
21
comment How to insert custom text in place of figure
No, I was only comparing the box I get with \includegraphics[draft] to that which I get with your custom command \copyrightimage. Even in your example above, the red box (labelled Figure 2) is wider and located further to the right than your first box (with the A in it labelled as Figure 1).
May
21
comment How to insert custom text in place of figure
Thanks - the code now runs! But the box is too wide and shifted to the right (lies outside of the text margins when the image has width = \textwidth). Compare: \begin{figure}[!ht] \centering \includegraphics[draft, width=\textwidth]{some-image} \end{figure} \blindtext versus \begin{figure}[!ht] \centering\copyrightimagetrue \copyrightimage[width=\textwidth]{some-image} \end{figure} \blindtext
May
20
comment How to insert custom text in place of figure
Thanks for your suggestion. However, I cannot seem to get this code working, even if I simply copy-and-paste it and change only the image file. pdfLatex keeps on complaining that \copyrightimage is an undefined control sequence: Undefined control sequence. \\copyrightimage ...ENT \fi }{\adjincludegraphics [#1]{#2}} l.24 \copyrightimage[width=0.48\linewidth]{dice} ? Could you please confirm if the code works as is? Thanks again...
May
20
awarded  Student
May
20
asked How to insert custom text in place of figure