发布时间:2010-12-19 11:57:42
文章类别:TeX绘图
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100nssb.html

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

上一篇文章 有网友发现pdf图片有多余的左边空白如图:

image

那么我们需要用到的包就是,preview更多的内容可以参考:http://stackoverflow.com/questions/2701902/standalone-diagrams-with-tikz

\documentclass{article}

\usepackage{graphics}
\usepackage{tikz}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{0mm} % use to add a border around the image
\PreviewEnvironment{tikzpicture}
\pgfrealjobname{survey}
\begin{document}
In the following figure, we see a circle:
\beginpgfgraphicnamed{survey-f1}
\begin{tikzpicture}
\fill (0,0) circle (10pt);
\end{tikzpicture}
\endpgfgraphicnamed
By comparison, in this figure we see a rectangle:
\beginpgfgraphicnamed{survey-f2}
\begin{tikzpicture}
\fill (0,0) rectangle (10pt,10pt);
\end{tikzpicture}
\endpgfgraphicnamed
\end{document}

运行方法如上篇文章,这样我们可以得到,图形了

看效果图:

image

OK了


点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部