KTUGFaq
KTUG FAQ
One man tells a falsehood, a hundred repeat it as true.
FrontPage › PDF±×¸²Æ÷ÇÔÇϱâ/Obsolete
TeXLive 2008 ÀÌÈÄ·Î Àû¿ëµÇÁö ¾Ê´Â ¼³¸í. º¸Á¸À» À§ÇÑ ÆäÀÌÁöÀÔ´Ï´Ù.
[ÆíÁý]
dvipdfm ¿É¼ÇÀ¸·Î ±×¸²À» ·ÎµåÇÏ´Â °æ¿ì ¶
Windows¿ë MiKTeX¿¡¼´Â ¿¹ÄÁ´ë ´ÙÀ½°ú °°Àº ÄÚµå
\usepackage{graphicx} % [dvipdfm] ¿É¼Ç ¾øÀ½ \DeclareGraphicsExtensions{.jpg,.png,.pdf} À̰͸¸À¸·Îµµ DVIPDFMx·Î ÇÏ¿©±Ý .bb°¡ ÀÖ´Â JPG, PNG, PDF¸¦ Àß Ã³¸®ÇÏ°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·±µ¥ teTeX¿¡¼´Â ÀÌ°ÍÀÌ Àß ¸ÔÁö ¾Ê°í .bb°¡ ¾ø´Ù´Â ¿¡·¯¸¦ ³»´Â °æ¿ì¸¦ ¸¸³ ÀûÀÌ ÀÖÀ» °ÍÀÔ´Ï´Ù.
ȣȯ¼ºÀ» À§Çؼ ´ÙÀ½°ú °°ÀÌ ÇØÁÖ¸é ÁÁÀ» °Í °°½À´Ï´Ù.
\usepackage{graphicx} \DeclareGraphicsExtensions{.jpg,.png,.pdf} \DeclareGraphicsRule{.pdf}{eps}{.bb}{} \DeclareGraphicsRule{.png}{eps}{.bb}{} \DeclareGraphicsRule{.jpg}{eps}{.bb}{} Á¦ °æÇèÀ¸·Î DVIPDFMx¸¦ ¸ñÀû DVIµå¶óÀ̹ö·Î ÇÒ ¶§ jpg/pdf¸¦ ó¸®ÇÏ´Â ÄÚ
µå·Î´Â ÀÌ°ÍÀÌ ÃÖ»óÀÎ °Í °°½À´Ï´Ù.
|
[ÆíÁý]
ebb ¶
DVIPDFMx¿¡¼ jpg, png, pdf ±×¸²À» ³ÖÀ¸·Á¸é bb ÆÄÀÏÀÌ ÀÖ¾î¾ß ÇÑ´Ù.
bb ÆÄÀÏ ¸¸µé ¶§ DVIPDFm À¯Æ¿¸®Æ¼ÀÎ ebb¸¦ ¾²¸é Æí¸®ÇÏ´Ù. ÀÌ À¯Æ¿¸®Æ¼·Î´Â jpg, png, pdf ±×¸²ÀÇ bb¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
MiKTeXÀÇ ebb´Â pdfÀÇ ¹öÀüÀÌ 1.4 ÀÌ»óÀÌ¸é µ¿ÀÛÇÏÁö ¾Ê´Â´Ù. ±×·¯³ª KC2006ÀÇ ebb´Â ±×·¯ÇÑ ¹®Á¦°¡ ¾ø´Ù. ÀÌ ÆäÀÌÁö´Â KC2006(W32TeX/ko) ¶Ç´Â KC2007(TeXLive 2007)¿¡ Æ÷ÇÔµÈ ebbÀÇ »ç¿ë¹ý¸¸À» ±â¼úÇÑ´Ù.
- Linux/Mac¿¡¼´Â TeXLive 2007¿¡¼µµ °°Àº ¹®Á¦¸¦ °ÞÀ» ¼ö ÀÖÀ¸³ª, À̸¦ ´ë¿ëÇÒ xbb À¯Æ¿¸®Æ¼°¡ ÀÖ´Ù.
- MiKTeX 2.6Àº xbbµµ ¾ø°í ebbµµ ¿¹Àü ¹æ½ÄÀ¸·Î µ¿ÀÛÇϹǷÎ, »ç½Ç»ó pdf 1.4 ÀÌ»ó ±×¸²¿¡ ´ëÇؼ´Â ebb¸¦ ÀÌ¿ëÇÑ ´ëÃ¥ÀÌ ¾ø´Ù.
#> ebb foo.jpg
¸í·ÉÇà¿¡¼ ·çÇÁ µ¹¸®¸é ½±°Ô ¸ðµç ±×¸² ÆÄÀÏÀÇ *.bb ÆÄÀÏÀ» ¾òÀ» ¼ö ÀÖ´Ù.
#> for /L %i in (*.jpg) do ebb %i
KC2006ÀÇ ebb¸¦ »ç¿ëÇÒ °æ¿ì, °£´ÜÇÏ°Ô ´ÙÀ½°ú °°ÀÌ Çصµ ¿©·¯ °³ÀÇ bb¸¦ ÇѲ¨¹ø¿¡ ¾òÀ» ¼ö ÀÖ´Ù. (MiKTeX ¹öÀüÀº ÀÌ ±â´ÉÀÌ ¾øÀ½)
#> ebb *.pdf
[ÆíÁý]
xbb : an extension of ebb ¶
ChoF ´Ô²²¼ ebbÀÇ ¸î °¡Áö ¹®Á¦Á¡À» ¼öÁ¤ÇÏ¿© È®ÀåÇÑ ebb.
- dvipdfmx ÇÁ·ÎÁ§Æ®ÀÇ ÀϺÎÀÓ. dvipdfmx¸¦ ÄÄÆÄÀÏÇÏ¸é ¹ÙÀ̳ʸ®¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
- Windows ½ÇÇà ÆÄÀÏÀº W32TeX°ú KC2006, KC2007 ¿¡¼ ¹èÆ÷µÊ
- Intel Mac ¹ÙÀ̳ʸ®´Â dvipdfmx contrib/bin ¿¡¼ ±¸ÇÒ ¼ö ÀÖÀ½.
- °ü·Ã ±â»ç : KTS
[ÆíÁý]
Windows: getbb.bat (2765) by Karnes ¶
pdf¿Í jpgÀÇ bb¸¦ ¾òÀ» ¼ö ÀÖ´Â ¹èÄ¡ÆÄÀÏ. AFPL GhostScript 8.54, GraphicsMagickÀÇ ¼³Ä¡°¡ ÇʼöÀûÀÌ´Ù.
@echo off rem AFPL gs 8.54 ¹× Graphics Magick ÇÊ¿ä. if !%~x1!==!.jpg! goto JPG if !%~x1!==!.JPG! goto JPG if !%~x1!==!.pdf! goto PDF if !%~x1!==!.PDF! goto PDF echo Usage: [call] getbb foo.jpg(.pdf) [dpi] echo no jpg/pdf file specified. exit. goto FIN :JPG echo %~x1 if !%2!==!! goto JPGNODENSITY gm convert -density %2 %~n1.jpg %~n1.pdf goto JPGCONVERT :JPGNODENSITY gm convert -density 100 %~n1.jpg %~n1.pdf :JPGCONVERT gswin32c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox -sOutputFile=- %~n1.pdf -c quit 2> %~n1.bb del /F /Q %~n1.pdf goto FIN :PDF echo %~x1 gswin32c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox -sOutputFile=- %~n1.pdf -c quit 2> %~n1.bb goto FIN :FIN
»ç¿ë¹ýÀº ÆÄÀÏÀ̸§¸¸ Àû¾îÁÖ¸é µË´Ï´Ù.
#> getbb foo.jpg
#> getbb bar.pdf
´Ù¸¸ jpg ±×¸²¿¡ ´ëÇؼ´Â resolutionÀ» µÎ¹ø° ÀÎÀÚ·Î ÁÙ ¼ö ÀÖ½À´Ï´Ù.
#> getbb foo.jpg 200
ÇÑ µð·ºÅ丮 ³»ÀÇ ¸ðµç JPG ÆÄÀÏ¿¡ ´ëÇؼ .bb¸¦ ÇѲ¨¹ø¿¡ ¾òÀ¸·Á¸é,
#> for %i in (*.jpg) do call getbb %i
png ÆÄÀÏÀÇ bb´Â ebb·Î ¾òÀ¸¸é µË´Ï´Ù.