ãã®è¨äºã®å 容ã¯ãå®é¨ã¬ãã¼ããçãªãã®ã§ããããããå¾ãããçµè«ã«ã¤ãã¦ã¯æ¬¡ã®è¨äºãåç §ãã¦ãã ããã
ããã§ã®ãå®é¨ãã§ã¯æ¢ãã¦ãééã£ãè¨å®ãã®ä¸ã§ã®åä½ã調ã¹ã¦ãã¾ãããããæ¬æ¥ã¯ãã®ãããªèª¿æ»ã¯ãã¾ãææ義ã§ãªãããééã£ãè¨å®ãã§ã®åä½ã¯ãæªå®ç¾©ãã§ããã¨èªèããã¹ãã ã¨ç§ã¯èãã¦ãã¾ããäºå®ãæ¬è¨äºã§è¿°ã¹ããã¦ãããå®è£ å¤æ´ãã«ãã£ã¦âå½±é¿âãåããï¼åä½ãå¤ãã£ã¦ãã¾ãï¼ã®ã¯ãééã£ãè¨å®ãã®ä½¿ç¨è ã«éããããæ£ããè¨å®ï¼ãã©ã¤ãã
dvipdfmx
ã«ããï¼ããç¨ãã¦ãã人ã«ã¨ã£ã¦ã¯ä½ãå¤ãã£ã¦ãããï¼ã¤ã¾ãããgraphicx ããã±ã¼ã¸ã®ä»æ§éãã®åä½ããããï¼å®ã¯ä¸é¨ã®ä¸å ·åã解æ¶ããã¦ããï¼ããã®å¤ãã¯ä»åã®æ¹ä¿®ã«æ°ä»ãã¦ããªãã¨æãã¾ããè¦ããã«ãã®è¨äºã«æ¸ãããè¤éãªè©±ãã¯æ®éã¯å ¨ãç¥ãå¿ è¦ããªããã®ã§ãââåã«ãééã£ããã¨ããããªããã°ãããããã ãã®è©±ã§ãããã
â»ãã ããä»åã®æ¹ä¿®ã«ã¤ãã¦ãtrim ã viewport æå®ãç¡å¹ã«ãªãã¨ããä¸å ·åãå¤æãã¦ãã¾ãã
ãç»åã®æ¿å ¥ãã¨ããã°ãä»ãæã LaTeX åå¿è ã»åç´è ã«ã¨ã£ã¦æ大ã®é£é¢ã§ããããã©ããæè¿ããEPS ç»åã®æ¿å ¥ãã以åã¯ä¸æããã£ã¦ããã®ã«ï¼TeX ã·ã¹ãã ãæ´æ°ããã¨ï¼ä½ç½®ããããããã«ãªã£ããã¨ãã話ãããèãããã«ãªã£ããTeX Forum ã§ã®è§è¤æ°ã®çºè¨ã«ããã¨ãããã¯ãæ¨å¹´ï¼2013 å¹´ï¼ä¸ã«è¡ããããdvipdfmx ã Ghostscript ãå¼ã³åºãæã®ãªãã·ã§ã³ã®å¤æ´ãã«èµ·å ãããã®ããããæ°ã«ãªã£ãã®ã§ãå°ãå®é¨ãã¦ã¿ãã
dvipdfmx ã Ghostscript ãå¼ã³åºãæã®ã³ãã³ãã©ã¤ã³ã¯ dvipdfmx ã®è¨å®ãã¡ã¤ã«ã§ãã dvipdfmx.cfg ã«è¨è¿°ããã¦ããããã®ä¸ã® D "ã"
ã¨æ¸ãã¦ããè¡ã®âã
âã®é¨åãå¼åºã®ã³ãã³ãã©ã¤ã³ã§ãããææ°ã® TeX Live 2013 ã§ã¯ä»¥ä¸ã®ããã«ãªã£ã¦ããï¼å®éã¯ä¸è¡ï¼ã
rungs -q -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit
TeX Live 2012 ã§ã¯ãã®ä¸ã® -dEPSCrop
ã®ä»£ããã« -sPAPERSIZE=a0
ã¨ãããªãã·ã§ã³ãæå®ããã¦ãã*1ããã®ãªãã·ã§ã³å¤æ´ã«ä¼´ã dvipdfmx ã® EPS ã®èªè¾¼åä½ãå¤åããã®ã§ãgraphicx ããã±ã¼ã¸ã®ãã©ã¤ãå®ç¾© dvipdfmx.defï¼ããã³ xetex.defï¼ã«ãä¿®æ£ãå ãããã¦ããã
å®é¨å 容
ææ°ã® TeX Live 2013 ã«ããã¦ä»¥ä¸ã®å®é¨ãè¡ã£ãã
- dvipdfmx ã§è¨å®ãè²ã ã¨å¤æ´ããä¸ã§ 3 種é¡ã® EPS ç»åãèªã¿è¾¼ãã PDF ææ¸ãä½ããåºåã確èªããã
- 3 ã¤ã® EPS ç»åã¯ï¼ãã¦ã³ãã£ã³ã°ããã¯ã¹ã®ä¸ã ãè¦ãã¨ï¼åãå³ãæããã¦ãããããã¦ã³ãã£ã³ã°ããã¯ã¹ã®å·¦ä¸åº§æ¨å¤ã®ç¬¦å·ãç°ãªãï¼img-zero.eps ã¯ã¼ãï¼åº§æ¨ (0,0)ï¼ãimg-posi.eps ã¯æ£ï¼åº§æ¨ (100,100)ï¼ãimg-nega.eps ã¯è² ï¼åº§æ¨ (â50,â50)ï¼ã§ããã
- dvipdfmx ã®è¨å®ã«ã¤ãã¦ï¼
- dvipdfmx.cfg ä¸ã® gs å¼åºã®ãªãã·ã§ã³ã
-dEPSCrop
ï¼æ°ããï¼ã-sPAPERSIZE=s0
ï¼å¤ãï¼ãã - LaTeX ææ¸ä¸ã® graphicx ããã±ã¼ã¸èªè¾¼æã®ãã©ã¤ãæå®ã
dvipdfmx
ï¼æ£ããï¼ãdvips
ï¼ééãï¼ããããã«ãgs ãªãã·ã§ã³ã-sPAPERSIZE=a0
ï¼æ§ï¼ã®å ´åã¯ããã©ã¤ããã¡ã¤ã« dvipdfmx.def ã«ã¤ãã¦ææ°ã®ãã®ã¨å¤ããã®ï¼gs ãªãã·ã§ã³å¤æ´åã®ãã®*2ï¼ã試ããã
- dvipdfmx.cfg ä¸ã® gs å¼åºã®ãªãã·ã§ã³ã
å®é¨ã«ç¨ãã LaTeX ææ¸ imgtest.tex ã¯ä»¥ä¸ã®éãã
\documentclass[a4paper]{article} \usepackage[dvipdfmx]{graphicx} \begin{document} $\leftrightarrow$% \includegraphics[width=4em,clip]{img-zero.eps}% $\leftrightarrow$% \includegraphics[width=4em,clip]{img-posi.eps}% $\leftrightarrow$% \includegraphics[width=4em,clip]{img-nega.eps}% $\leftrightarrow$% \end{document}
EPS ç»åãã¡ã¤ã« img-zero.eps ã®ã½ã¼ã¹ã¯ä»¥ä¸ã®éãã
%!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 100 100 newpath 0 0 moveto 100 0 lineto 100 100 lineto 0 0 lineto closepath stroke %%EOF
ãã¦ã³ãã£ã³ã°ããã¯ã¹ã®å é¨ã ããæ£å¸¸ã«æç»ããã¨ä»¥ä¸ã®ãããªå³ã«ãªãã*3
img-posi.eps 㯠img-zero.eps ã®ã½ã¼ã¹ã«å«ã¾ããå ¨ã¦ã®åº§æ¨å¤ï¼ãã¦ã³ãã£ã³ã°ããã¯ã¹ãå«ãï¼ã 100 å¢å ããããã®ã§ãããimg-nega.eps ã¯åæ§ã« 50 æ¸å°ããããã®ã§ããããã¦ã³ãã£ã³ã°ããã¯ã¹ã®å é¨ã ãæç»ããå ´å㯠img-zero.eps ã¨å ¨ãåãå³ãå¾ãããã¯ãã§ããã
å®é¨çµæ
çµæã® PDF ææ¸ã«åºåãããå³ã®é¨åã Adobe Readerï¼ææ°çï¼ã§é²è¦§ããå ´åã®è¡¨ç¤ºãç»åã¨ãã¦æ²è¼ããããªããSumatraPDF ã§ãå ¨ãåã表示ã¨ãªã£ãã
- ① gs ãªãã·ã§ã³ =
-dEPSCrop
ï¼æ°ï¼ããã©ã¤ãæå® =dvipdfmx
ï¼æ£ï¼ãæ°ãã dvipdfmx.defã
- ② gs ãªãã·ã§ã³ =
-dEPSCrop
ï¼æ°ï¼ããã©ã¤ãæå® =dvips
ï¼ä¸æ£ï¼ã
- ③ gs ãªãã·ã§ã³ =
-dsPAPERSIZE=a0
ï¼æ§ï¼ããã©ã¤ãæå® =dvipdfmx
ï¼æ£ï¼ãæ°ãã dvipdfmx.defã
- ④ gs ãªãã·ã§ã³ =
-dsPAPERSIZE=a0
ï¼æ§ï¼ããã©ã¤ãæå® =dvipdfmx
ï¼æ£ï¼ãå¤ã dvipdfmx.defã
- ⑤ gs ãªãã·ã§ã³ =
-dsPAPERSIZE=a0
ï¼æ§ï¼ããã©ã¤ãæå® =dvips
ï¼ä¸æ£ï¼ã
è£è¶³
- æ許㮠W32TeXï¼2013 å¹´ 6 æé ã®çï¼ã§ã試ãã¦ã¿ãããçµæ㯠TeX Live ã¨å ¨ãåãã§ãã£ãã
- W32TeX ã§ã¯ãã©ã¤ãæå®ã
dvipdfm
ï¼é xï¼ã«ãããã¨ã試ããããçµæ㯠ãã©ã¤ããdvips
ã«ããå ´åã¨åãã§ãã£ãã
èå¯
- ãã©ã¤ãæå®ãæ£ããï¼
dvipdfmx
ï¼å ´åï¼- æ°ããæ¹ã®è¨å®ï¼
-dEPSCrop
+ æ°ãã dvipdfmx.defï¼ã§ã¯ 3 ã¤ã®ç»åãå ¨ã¦æ£å¸¸ã«åºåãããï¼①ï¼ã - å¤ãæ¹ã®è¨å®ï¼
-sPAPERSIZE=a0
+ å¤ã dvipdfmx.defï¼ã§ã¯åºåã®ä½ç½®ã¯æ£ãããã座æ¨ãè² ã§ããé åã®æç»ãæ¬ ãã¦ãã¾ãï¼④ï¼ã - ã¤ã¾ããgs å¼åºã®ãªãã·ã§ã³ãå¤æ´ãããç®çã¯ããã®ãè² ã®é¨åãæ¬ ãããã¨ããä¸å
·åã解æ¶ããããã§ãã£ãã¨æãããããã ããããã«ããããã©ã¤ãã®å®è£
((å
·ä½çã«ããã¨ãç»åèªã¿è¾¼ã¿ã®
\sepcial
ã®ãã©ã¡ã¿ã))ãå¤ããå¿ è¦ãçãã¦ãã¦ãæ°ãããã©ã¤ãå®è£ ã¯å¤ããªãã·ã§ã³ã¨ã¯äºææ§ãç¡ãï¼③ï¼ã
- æ°ããæ¹ã®è¨å®ï¼
- ãã©ã¤ãæå®ãæ£ãããªãï¼
dvips
ï¼å ´åï¼- å¤ãæ¹ã®è¨å®ï¼
-sPAPERSIZE=a0
ï¼ã¯ãï¼å¤ãæ¹ã®è¨å®ã®ï¼dvipdfmx
æå®ã®å ´åã¨åãçµæã«ãªãï¼⑤ï¼ã - æ°ããæ¹ã®è¨å®ï¼
-dEPSCrop
ï¼ã§ã¯åºåä½ç½®ãããã¦ãã¾ãï¼②ï¼ã - ããªãã¡ããæ°ãã TeX ã·ã¹ãã 㧠EPS ç»åãããããã¨ããç¾è±¡ã®åå ã¯ããã©ã¤ãæå®ããæ£ãããªãã£ããï¼
dvips
ãdvipdfm
ãæå®ããã¦ããï¼ããã¨èããããã
- å¤ãæ¹ã®è¨å®ï¼
ã¾ã¨ã
以ä¸ã®çµæãããæ®éã®ã¦ã¼ã¶ã¸ã®ã¢ããã¤ã¹ã¨ãã¦æ¬¡ã®ãã¨ãè¨ããã
- ãTeX ä¸å¼ãæ°ããããã EPS ç»åãããããã¨ããåé¡ãèµ·ãã£ãå ´åã¯ãæ¹ãã¦ãã©ã¤ãæå®ã確èªãããã
- ãã©ã¤ãæå®ï¼graphicx ã®ãªãã·ã§ã³ï¼ã誤ã£ã¦
dvips
ãdvipdfm
ã«ãªã£ã¦ããããdvipdfmx
ã«è¨æ£ãããã
åé¡ãªã®ã¯ãä½ãç®çããã£ã¦æ¢ãã¦ä¸æ£ãªãã©ã¤ãæå®ï¼dvips
ï¼ããã¦ãã人ï¼ã¤ã¾ãããããã¦ãã¦å±ï¼ã§ããã
- ãèå¯ãã§è¿°ã¹ãããã«ãgs å¼åºã®ãªãã·ã§ã³å¤æ´ã¯ãEPS ç»åèªè¾¼ã®ä¸å ·åï¼ä¸é¨ãæ¬ ããï¼ã解決ããããã®ãã®ã§ããã
- ã¨ããããããããã¦ãã¦å±ã«ã¨ã£ã¦ã¯ãã®å¤æ´ã¯éã«ç¶æ ãæªåãããè´å½çãªãã®ã«ãªã£ã¦ããã
- ä»å¾ãããããã¦ãã¦ã¸ã®ä¾æ ãã©ããã¦ãå¿
è¦ã§ãããªããgs å¼åºã®ãªãã·ã§ã³ã
-sPAPERSIZE=a0
ã«æ»ãå¿ è¦ãçããã - ãããããã®ç¶æ
ã§ã¯ãæ£ãããã©ã¤ããï¼
dvipdfmx
ï¼ã§ã®åä½ãä¸æ£ã«ãªãã®ã§ãdvipdfmx.def ãå¤ããã®ã«å·®ãæ¿ããå¿ è¦ãããã
ããããã¦ãã¦ãæ¨ã¦ãããªãããçå£ã«æ¤è¨ãã¹ããªã®ããç¥ããªãã
*1:å¤æ´ããã£ããªãã¸ã§ã³ã¯ 30175ã
*2:ãªãã¸ã§ã³ 9280ã
*3:åç´ã¨æ°´å¹³ã®ç´ç·ã«é¢ãã¦ã¯ããã®å¤ªãã®ä¸å¿ã«ãã¦ã³ãã£ã³ã°ããã¯ã¹å¢çãéã£ã¦ããã®ã§ãããã¯ã¹å¤ãã¯ãªããï¼æ¶å»ï¼ããããã¨ã«ãã£ã¦ãç·ã®å¤ªããååã«ãªã£ãããã«è¦ãã¦ããã