KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Make a wish, it might come true.
FrontPageyfonts › 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 ¹ÙÀ̳ʸ®´Â [http]dvipdfmx contrib/bin ¿¡¼­ ±¸ÇÒ ¼ö ÀÖÀ½.
  • °ü·Ã ±â»ç : KTS
ÇöÀç xbb´Â texlive 2008¿¡ ±âº» ÇÁ·Î±×·¥À¸·Î (DVIPDFMxÀÇ ÀϺηÎ) µé¾î ÀÖÀ¸¸ç, graphicx ÆÐÅ°ÁöÀÇ dvipdfmx ¿É¼ÇÀ» ÅëÇØ latex ¸í·É ½ÇÇà°úÁ¤¿¡¼­ ÀÚµ¿À¸·Î ½ÇÇàµÈ´Ù. extractbb¶ó´Â ¸í·ÉÀ¸·Î È£ÃâÇÑ´Ù.

ebb ´ë½Å GhostScript¸¦ ÀÌ¿ëÇÏ¿© °°Àº ÀÏÀ» ÇÏ´Â ¹æ¹ý.

Windows: getbb.bat (KTUGContrib: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·Î ¾òÀ¸¸é µË´Ï´Ù.

Shell Script (by DohyunKim)

pdfÀÇ bb¸¦ ¾òÀ» ¼ö ÀÖ´Â ¼Ð ½ºÅ©¸³Æ®
#!/bin/bash
for A in $*
do
    F=`echo $A | sed -e 's/\.[a-zA-Z]*$//'`
    gs -q -dNOPAUSE -dBATCH -sDEVICE=bbox $A >& $F.bb
done

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-09-18 14:51:03
Processing time 0.0414 sec