Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/init.php on line 542
ja:tex:figure [GiriWiki]

ユーザ用ツール

サイト用ツール


ja:tex:figure

以前のリビジョンの文書です



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/handler.php on line 1458

Warning: Declaration of syntax_plugin_note::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line 79

Warning: Declaration of syntax_plugin_note::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line 101

Warning: preg_match(): Compilation failed: invalid range in character class at offset 3120 in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== 図の挿入 ====== ---- <code latex> \usepackage[dvipdfmx,hiresbb]{graphicx} </code> のようにgraphicx.styパッケージを使う。 あとは図を入れたいところで、 <code latex> \includegraphics[width=10cm]{image.jpg} </code> のようにすればよい。 <note> jpg,pngなどを使う時には、 <code latex> \usepackage[dvipdfmx]{color} </code>  も必要。dvipdfmx のオプションを忘れずに。  </note> <note tip> dvipdfm と dvipdfmx の違い http://qiita.com/zr_tex8r/items/5413a29d5276acac3771 参照。 簡単には、 dvipdfm : ebb を起動 して .bb ファイルを作成\\ dvipdfmx : extractbb を起動 して .xbb ファイルを作成\\  という違いがあるらしい。 基本的にはdvipdfmxの方が上位互換なのでこちらを使うべし。 </note> ---- ===== Boundary Box ===== TeXではEPS形式以外の画像(.jpg, .png, .pdf, etc...)を読み込む時には 画像のサイズの指定をしてやる必要がある。 それをBoundary Boxという。 指定の方法は、 * bbオプションで指定する * 各画像ファイルから.bb or .xbb ファイルを作成しておいてそれを読み込む というパターンがある。(bbオプションを使わず、かつ.xbbファイルなどを残さずにやる方法もあるようだが。。。) ==== bbオプションで指定 ==== <code latex> \includegraphics[bb=0 0 480 360,width=10cm]{image.jpg} </code> のようにBoundary Box を指定する。 ただし、数値の単位はポイント(bp) ≠ ピクセル。\\ 1 bp = 1/72 in ≒ 0.3528 mm である。\\ ポイント指定の場合、実サイズでの指定を意味するので、正しい画像のサイズを得ようと思うと 解像度からの換算が必要で面倒。 そこで、.xbbファイルを作ってしまうのがオススメ。 ==== .bbファイル または .xbbファイルを作成する方法 ==== タイプセット前にterminalで ebb image.pdf または extractbb image.pdf のようにしてあらかじめ.xbbファイル生成コマンドを実行しておく。\\ これであとは <code latex> \includegraphics[width=10cm]{image.pdf} </code> のようにしておけば勝手に.xbbファイルを読み込んでくれる。

ja/tex/figure.1418807512.txt.gz · 最終更新: 2014/12/17 09:11 by kota