发布时间:2009-12-19 14:51:37
文章类别:插图技巧
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100ghk3.html
QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载
Friedhelm Sowa基于Alan Hoenig以前的工作,开发了宏包 picinpar,这样可以在段落中包含"窗口"。它定义了一个基本的环境window, 还有两个变体figwindow和tabwindow。其中后两个环境用来在段落中插入图片或表格。三个环境的命令格式是一样的,均为
\begin{windows}[nl, align, material, explanation]
nl | 窗中开始前的行数; |
align | 在段落中窗口的对齐方式(l:左对齐,这是默认值;c:居中;r:右对齐); |
material | 显示在窗口中的内容; |
explanation | 对窗口中内容的说明性文本(例如,在figwindow和tabwindow中表示标题). |
下面是两个示例:
\begin{window}[1,c,{\fbox{\shortstack{H\\e\\l\\l\\o}}},{}]
In this case... next
one(s).
\end{window}
\begin{figwindow}[3,r,{\fbox{\epsfig{file=abc.eps,
%
width=27mm}}}{曲线示例}]
********************************
\end{figwindow}
-
不要在
window 环境中使用 \samepage。 -
不要在
window 环境中使用 \footnote,代之在用 \footnotemark 标记角注,而将角注的内容在 window 环境外用 \footnotetext 来加入。 -
当使用
paiepic 宏包时,要确保在调入 epic 之前将它调入。
演示效果图:
\usepackage{graphicx}
\usepackage{picinpar}
\usepackage{CJK}
\setlength\textwidth{280.0pt}
\begin{CJK*}{GBK}{song}
\begin{document}
\sloppy
\section*{Picinpar test}
picinpar的使用说明
Friedhelm Sowa基于Alan Hoenig以前的工作,开发了宏包
picinpar,这样可以在段落中包含"窗口"。它定义了一个基本的
环境window, 还有两个变体figwindow和tabwindow。其中后两个
环境用来在段落中插入图片或表格。三个环境的命令格式是一样的,
均为\par
下面是两个示例:\par
\begin{figwindow}[0,r,{\mbox{%Most gulls, particularly Larus species, are ground nesting carnivores,
which will take live food or scavenge opportunistically. The live food
often includes crabs and small fish. Apart from the kittiwakes, gulls
are typically coastal or inland species, rarely venturing far out to sea.
The large species take up to four years to attain full adult plumage,
but two years is typical for small gulls.
\end{figwindow}
\begin{window}[1,c,{\fbox{\shortstack{H\\e\\l\\l\\o}}},{}]
Gulls — the larger species in particular — are resourceful and
highly-intelligent birds, demonstrating complex methods of
communication and a highly-developed social structure. Certain
species (e.g. the Herring Gull) have exhibited tool use behaviour.
Many species of gull have learned to co-exist successfully with man
and have thrived in human habitats. Others rely on kleptoparasitism
to get their food.
\end{window}
\end{CJK*}
\end{document}
发表评论 取消回复