% %          本文の右や左に小さな図や表を入れるためのマクロです。 % --------------- これまでも議論されているように、LaTeXにはこのための % | a | b | まともなマクロはありません。ここにポストするものも、 % |-----|-------| いろいろ問題がありますが、うまく使えばこのような出力 % | xxx | ooo | を作ることができます。自分では、LaTeXトータルガイドと % --------------- かにのっているminipageを使う方法よりはまともで、割と % ましな結果が得られると思っています。1、2ページの学 % 表 1. xxxとooo 会の予稿とかには使える(実はそのために作ったものです) % と思うので使ってやって下さい。英語の説明を書いたら疲れ %てしまったので、日本語の使い方は*なし*です。 _o_ % 基本的にはTeXbookの第14章に書いてある\parshapeコマンドを使って空白を作り、 %LaTeXのfigureとtableの定義にならって大きさのないボックスに図や表を入れる、 %という方法です。以下の説明と例を見て下さい(手抜きで申し訳ありません)。 % %           佐藤 亨@電気工学第二教室.京都大学 %           tsato@kuee.kyoto-u.ac.jp %============================================================================= % cut.sty %============================================================================= % leftfigure, rightfigure, lefttable, righttable : produces a 'cut' at the % right or left of the text. % by tsato@kuee.kyoto-u.ac.jp (Toru Sato) % Department of Electrical Engineering II, Kyoto University % Kyoto 606-01, Japan % % Usage: \begin{leftfigure}{width}{lines} %
% \end{leftfigure} % % Example: % ...preceding text... % % \begin{leftfigure}{60mm}{12} % \vspace{35mm} % \caption{This figure has width of 60mm and height of 12 lines.} % \end{leftfigure} % note that here should not be a blank line % This text comes at the right of the figure. % If the text in this paragraph is not long enough to cover the height % of the figure, use % \Par % Command to connect the next paragraph. % % Limitations: % 1) It must be placed at the top of a paragraph, and the effect is % limited inside the paragraph (so you should not put a blank line % after \end{left|rightfigure}). Connect following paragraph(s) by % \Par command in place of a blank line, if it is necessary. % Naturally, one paragraph can contain only one left|rightfigure. % 2) It cannnot handle end-of-page problem. You have to place it at the % right place so that entire lines are put on one page. % 3) You have to specify the vertical size by the number of lines. % Although the paragraph may contain equations, each displayed % equation should be counted as 3 lines. % 4) Ordinary \caption command can be used for a caption, and numbering % is made properly. It is possible to put it among ordinary figures, % but there is no guarantee that the order of the figures is kept % right. % 5) The paragraph should not be the last paragraph of the document. % 以下は使用例です。 %============================================================================= \documentstyle[cut,a4j,12pt]{article} \begin{document} This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. \begin{righttable}{60mm}{12} \begin{center} \begin{tabular}{|l|l|} \hline test & test \\ \hline test & This is test \\ test & This is test \\ test & This is test \\ test & This is test \\ \hline \end{tabular} \end{center} \caption{This is caption. This is caption. This is caption.} \end{righttable} This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. \begin{equation} a=b \end{equation} This is test. This is test. This is test. This is test. This is test. This is test. This is test. \Par This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. This is test. \end{document} %=============================================================================