2014年5月10日星期六

Latex作图 笔记

EPS: Encapsulated Post Scripts
%% boundingbox 0 0 200 100 1bp=0.35mm

\includegraphics[para]{pic name.jpg}
para:
外形参数:height,totalheight,width,scale,angle,origin,bb(EPS的boundingbox)
裁切参数:viewport,trim
bool para: keepaspecttatio,clip,draft
例:\includegraphics[wieth=\textwidth-20mm]{pic.jpg}

参数的统一设置:
\setkeys{Gin}{width=0.8\textwidth,height=35mm}

插图搜索
\graphcspath{{path1}{path2}{d:/mypic/png}}

任意对象的旋转和缩放
\rotatebox[para]{angle}{obj}
obj:text,pic,table,formular,any Latex obj
para:origin 对象的旋转点,
x,y 以对象基准点为坐标原点,给出旋转点的坐标,
units 单位
e.g. \rotatebox{90}{text...}

缩放
\scalebox{水平缩放系数}[垂直系数]{对象}
系数为负,表示反转
e.g. \scalebox{5}[1]{缩}

mirror
\reflectbox{obj}

imagemagick
图形处理软件--图形格式转换
www.imagemagick.org
convert pic_in pic_out wildcard supported

CTex自带图形格式转换工具
bmeps option pic_in pic_out.pex
pic_in :png,jpeg,tiff
option -c colorful

图文绕排
package:picinpar
3 ways: window,figwindow,tabwindow
e.g.
\begin{window}[rows,position,{encircled obj},{title}]
encircling text...
\end{window}
rows,position(l,c,r),obj(pic,table,text)

wallpaper
package:wallpaper
e.g.
\TileSquareWallPaper{layout no.}{pic}
\ThisTileSquareWallPaper{layout no.}{pic}%只对当前页有效

图形处理package overpic
需要用到graphicx epic
\usepackage[options]{overpic}
options percent,permil,abs
图形处理环境
\begin{overpic}[para]{背景图形名}
\前影图文命令
\end{overpic}

没有评论: