24小时热门版块排行榜    

查看: 5410  |  回复: 2

lulu_66

银虫 (正式写手)

[求助] 如何在latex中插图插文字

我想在latex中插入图片, 并且把这个图片的注释放在图片的右边, 不知道有什么命令可以实现? 以前用过把这个图片的注释放在图片的下边, 但现在想把这个图片的注释放在图片的右边, 就不会了, 谢谢指点.
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

生活没有目标=慢性自杀
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

lgsppq

木虫 (正式写手)

【答案】应助回帖

图文分离是排版的一个大原则啊(文中不应该使用图的右边左边上面下面这样的字眼),如果实在要放在图的旁边且注释不多的话,可以考虑把注释作为图的一部分。
否则即使你把注释成功放在图的右边了,排版的编辑一不小心就把位置给弄开了,这个时候可能别人就读不懂了。
2楼2011-12-09 08:48:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wolfqfy

金虫 (正式写手)

【答案】应助回帖

Putting the figure and the caption side by side.
Normally the caption goes below or above the figure, but you may want it to the left or the right instead. The minipage environment is useful. The following example puts the figure on the left side using 58% of the with, and the caption on the rigth using 38% of the with. The remaining 4% of the page width ends up separating the two due to the \hfill command.

\begin{figure}
  \begin{center}
    \begin{minipage}[t]{0.58\linewidth}
      \epsfig{file=somefile.ps, width=\linewidth}
    \end{minipage}\hfill
    \begin{minipage}[t]{0.38\linewidth}
      \caption{This is the caption.\label{fig:rawss}}
    \end{minipage}
  \end{center}
\end{figure}

Note the placement of the \label command, it must appear inside the \caption command, or after it but still inside the minipage environment. Otherwise references to the figure will be wrong.

The vertical alignment of the figure and the caption may be troublesome, you may have to put the figure inside a \raisebox command.

\raisebox{2cm}{\epsfig{file=somefile.ps, width=\linewidth}}

Or change the [t] optional argument to the minipage environments to [c] or . Experiment!
白日放歌须纵酒,青春作伴好还乡。
3楼2011-12-09 10:47:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 lulu_66 的主题更新
信息提示
请填处理意见