Mercurial > hgrepos > hgweb.cgi > yatex
changeset 341:0f6c76dc7a23 dev
Fix \includegraphics and add \wrapfigure
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 18 Dec 2014 20:51:15 +0900 |
parents | 3206061867ae |
children | 90bdb4173c97 |
files | help/YATEXHLP.eng help/YATEXHLP.jp |
diffstat | 2 files changed, 62 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/help/YATEXHLP.eng Thu Dec 18 17:57:46 2014 +0900 +++ b/help/YATEXHLP.eng Thu Dec 18 20:51:15 2014 +0900 @@ -1722,8 +1722,9 @@ \end{figure*} includegraphics -\usepackage{graphicx} ... \includegraphics[Options]{graphicfile.eps} +\usepackage[DRIVER]{graphicx} ... \includegraphics[Options]{graphicfile.eps} Include graphics$B!#(BRequires `graphicx' package. +Typical [DRIVER] is [dvipdfmx]. Possible [Options] are as follows. scale=X width=W @@ -1735,6 +1736,36 @@ viewport=llx lly urx ury (Rerative to BoundingBox) trim=left bottom right top +[Example] +% Preamble +\usepackage[dvipdfmx]{graphicx} +% document body +\begin{figure}[h]\centering + \includegraphics[width=0.4\columnwidth,bb=0 0 400 300]{foo.jpg} + \caption{foo image}\label{foo-fig} +\end{figure} +Figure \ref{foo-fig} says that foo is foo. +% YaTeX automatically inserts `bb=' line when you input \includegraphics{} +% with completion. + +wrapfigure +\begin{wrapfigure}[LINES]{POS}[OVH]{WIDTH} ...Images... \end{wrapfigure} +LINES(Optional) Number of narrow lines +POS One of `r l i o' (Right, Left, Inside, Outside) + R L I O for float +OVH(Optional) Overhangs for margin +WIDTH Width of figure + +[Example] +% Preamble +\usepackage{wrapfig} +% body of document +\begin{wrapfigure}{r}{4cm} + \includegraphics[width=3cm,bb=0 0 640 480,clip]{foo.jpg} + \caption{foo image}\label{foo-jpg} +\end{wrapfigure} + + abstract \begin{abstract} ... \end{abstract} Output abstract
--- a/help/YATEXHLP.jp Thu Dec 18 17:57:46 2014 +0900 +++ b/help/YATEXHLP.jp Thu Dec 18 20:51:15 2014 +0900 @@ -1738,8 +1738,9 @@ \end{figure*} includegraphics -\usepackage{graphicx} ... \includegraphics[オプション]{graphicfile.eps} +\usepackage[ドライバ]{graphicx} ... \includegraphics[オプション]{IMG.eps} 画像を取り込む。要 graphicx パッケージ。 +「ドライバ」は dvipdfmx 等。 「オプション」は以下のものが指定可能。 scale=拡大率 width=幅 @@ -1751,6 +1752,34 @@ viewport=llx lly urx ury (BoundingBox内の相対的座標で切り取る) trim=left bottom right top (指定した幅を切り取る) +【使用例】 +% プリアンブル +\usepackage[dvipdfmx]{graphicx} +% 本文 +\begin{figure}[h]\centering + \includegraphics[width=0.4\columnwidth,bb=0 0 400 300]{hoge.jpg} + \caption{hogeの仕組}\label{hoge-fig} +\end{figure} +図\ref{hoge-fig}にあるとおり、ほげはほげなのだ。 +% \includegraphics{} を補完入力するとbb=行はyatexが勝手に調べて入れる。 + +wrapfigure +\begin{wrapfigure}[LINES]{POS}[OVH]{WIDTH} ...画像... \end{wrapfigure} +LINES(省略可) 回り込みする行数(デフォルトは画像の高さ分) +POS r l i o のどれか(右、左、見開き内側、外側) + 大文字 R L I O は画像フロート +OVH(省略可) 画像の張り出しマージン(\wrapoverhang 通常0) +WIDTH 回り込みする(画像込みの)幅 + +【使用例】 +% プリアンブル +\usepackage{wrapfig} +% 本文 +\begin{wrapfigure}{r}{4cm} + \includegraphics[width=3cm,bb=0 0 640 480,clip]{hoge.jpg} + \caption{ほげほげ}\label{hoge-jpg} +\end{wrapfigure} + abstract \begin{abstract} ... \end{abstract} 抄録(アブストラクト)を出力する。