发布时间:2011-04-25 23:32:32
文章类别:TeX绘图
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100tjf1.html
QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载
如何定义一个空白框填充, 我们知道, \hrulefill 会自动填充一个线, 而我们写作文稿的时候, 需要一片空白来做一个空白框填充.
我们可以如下来实施:
\documentclass{scrartcl}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{xcolor,shadowbox}
\newcommand{\currentsidemargin}{%
\ifodd\value{page}%
\oddsidemargin%
\else%
\evensidemargin%
\fi%
}
\begin{document}
\lipsum[1]% dummy text
\par\bigskip \noindent
Notes:\\
\begin{tikzpicture}[overlay,remember picture]
% Helper nodes
\path (current page.north west) ++(\hoffset, -\voffset)
node[anchor=north west, shape=rectangle, inner sep=0, minimum width=\paperwidth, minimum height=\paperheight]
(pagearea) {};
\path (pagearea.north west) ++(1in+\currentsidemargin,-1in-\topmargin-\headheight-\headsep)
node[anchor=north west, shape=rectangle, inner sep=0, minimum width=\textwidth, minimum height=\textheight]
(textarea) {};
% Framebox
\draw (0,0) rectangle (textarea.south east);
\end{tikzpicture}
\end{document}
发表评论 取消回复