wildgoat的个人空间 https://blog.eetop.cn/wildgoat [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

[latex] Crop, resize and rotate figures in LaTeX

已有 2035 次阅读| 2012-12-17 20:00 |个人分类:Latex相关

First of all, make sure to include the graphicx package in the preamble of your LaTeX source file. The following command exemplifies how to crop, resize and rotate figures in LaTeX.

\begin{figure}[h]
\centering
\includegraphics[trim=1cm 2cm 3cm 4cm, clip=true, totalheight=0.5\textheight, angle=90]{figure}
\caption{The caption goes here}
\end{figure}

Needless to say, the above goes in between begin{document} and end{document} statements.

Let’s explain the various parts in the argument of \includegraphics command:

  • Cropping:trim=1cm 2cm 3cm 4cm” trims (crops) from left, bottom, right and top by 1, 2, 3 and 4cm respectively. It must be accompanied by “clip=true”.
  • Resizing: totalheight=0.5\textheight” will force the figure to occupy 50% of the page length-wise keeping the aspect ratio constant.
  • Rotating:angle=90” rotates the figure by 90 degrees.

Reference: For more options, refer to this.


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 128

    粉丝
  • 43

    好友
  • 339

    获赞
  • 119

    评论
  • 22191

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-7-6 16:24 , Processed in 0.013177 second(s), 8 queries , Gzip On, MemCached On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部