我使用以下步骤将 pdf 文件插入到 latex 文档中:
\documentclass[standard]{letter}
\usepackage[usestackEOL]{stackengine}
\stackMath
\usepackage{graphicx}
\def\imgi{}
\begin{document}
\begin{center}
\stackinset{l}{ .1in}{b}{.2in}{}{%
\stackinset{r}{ .2in}{t}{.3in}{\includegraphics[width=4.5in]{Raman1.pdf}}{%
\stackinset{c}{-.5in}{c}{.4in}{}{%
\stackinset{r}{ .8in}{b}{.6in}{}{%
\stackinset{r}{ .1in}{c}{.0in}{\imgi}{%
\includegraphics[width=6.7in]{Raman2.pdf}%
}}}}}
\end{center}
\end{document}
但问题是,我得到的图形总是向右移动 (((见附图))) 当我试图增加这个图形的大小时,我得到的图形发生了更多的移动。我怎样才能增加这个图形的大小,同时保持在中心?另一件事是我怎样才能从我的文档中删除数字(循环)
答案1
如果我修改您的示例以便可以使用一般图像运行它
\documentclass[standard]{letter}
\usepackage[usestackEOL]{stackengine}
\stackMath
\usepackage{graphicx}
\def\imgi{}
\begin{document}
\begin{center}
\stackinset{l}{ .1in}{b}{.2in}{}{%
\stackinset{r}{ .2in}{t}{.3in}{\includegraphics[width=4.5in]{example-image-a}}{%
\stackinset{c}{-.5in}{c}{.4in}{}{%
\stackinset{r}{ .8in}{b}{.6in}{}{%
\stackinset{r}{ .1in}{c}{.0in}{\imgi}{%
\includegraphics[width=6.7in]{example-image-b}%
}}}}}
\end{center}
\end{document}
然后它会产生两个警告
LaTeX Warning: Unused global option(s):
[standard].
因为虚假的standard
选项,然后
Overfull \hbox (139.20877pt too wide) in paragraph at lines 14--15
因为指定的 6.7 英寸比页面宽。LaTeX 不会将满框居中,它们总是突出在右侧。
它还显示图像被多次包含
<example-image-a.png, id=1, 401.5pt x 301.125pt> <use example-image-a.png>
<use example-image-a.png> <example-image-b.png, id=2, 401.5pt x 301.125pt>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-a.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-a.png>
<use example-image-a.png> <use example-image-a.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-a.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-b.png> <use example-image-b.png>
<use example-image-b.png> <use example-image-a.png>
看来您只是想让一幅图像\textwidth
变宽并与另一幅图像叠印:
\documentclass{letter}
\usepackage{graphicx}
\begin{document}
\begin{center}
\includegraphics[width=\textwidth]{example-image-b}%
\rlap{\hspace{-4in}\raisebox{.5in}{%
\includegraphics[width=2in]{example-image-a}}}
\end{center}
\end{document}