以åã®è¨äºã§ mediabb ããã±ã¼ã¸ãã¢ã¬ã§ããã¨ãã話ãããããã®è©±ã«ããã¦ãã¢ã¬ãªãã¨ã«ãªãã®ã¯ PDF ã®ãã¼ã¸ã§ã³ã®éããåå ã§ãã£ããç¹ã«ãã¼ã¸ã§ã³ 1.4 㨠1.5 ã®éã§ã¯ãPDF ãã¡ã¤ã«ã®ãæ¸å¼ããã®ãã®ã«å¤§ããªå¤æ´ãå ãããã¦ãããããPDF 1.4 以åã®æ代ã«ä½è£½ãããå¤ãã½ããã¦ã§ã¢ã¯ 1.5 以éã® PDF ãå ¨ãå¦çã§ããªããã¨ãå¤ãã
ãããããå¤ããã½ããã¦ã§ã¢ã®ä½¿ç¨ãã©ããã¦ãé¿ããããªãã£ãããæ±ã PDF ææ¸ï¼ç»åï¼ã®æ¹ã®ãã¼ã¸ã§ã³ãå¤ããã®ã«ããããä»ã«ä»æ¹ããªããããããå ´åãæ¢åã® PDF ææ¸ã«ä½ãããã¼ã¸ã§ã³ãä¸ãããå¤æãå ããã¨ããæ¹æ³*1ãèãããããããPDF ãä½æããã½ãããèªèº«ããå¤ããã¼ã¸ã§ã³ãæå®ããæ©è½ããæãããªãã°ããã¡ããå©ç¨ããæ¹ããã¼ã¿ã®å£åããã©ãã«ãèµ·ããã«ããã§ããããï¼ããã¼ã¸ã§ã³ãä¸ãããäºã¯ãããèªä½ãä¸å¯é¿ãªå£åãå¼ãèµ·ããå ´åãããã®ã§ãå¯è½ãªéãé¿ãããã®ã¯å¿è«ã§ãããï¼ããã§ã¯ãLaTeX ãç¨ã㦠PDF ææ¸ãä½æããå ´åã«ãåºåãã PDF ã®ãã¼ã¸ã§ã³ãæå®ããæ¹æ³ã«ã¤ãã¦è§£èª¬ããã
dvipdfmx ã®ã³ãã³ããªãã·ã§ã³ã§ã®æå®
dvipdfmx 㧠PDF ãä½æããå ´åã¯ãdvipdfmx ã®èµ·åæãªãã·ã§ã³ -V
㧠PDF ã®ãã¼ã¸ã§ã³ãæå®ã§ãããããã§ã-V
ã®å¼æ°ã®å¤ã¯ããã¤ãã¼ãã¼ã¸ã§ã³ããã¤ã¾ããã¼ã¸ã§ã³ 1.x ã®âxâã®é¨åã§ããã*2ä¾ãã°ãtest.dvi ããã¼ã¸ã§ã³ 1.4 ã® PDF ã«å¤æãããå ´åã¯ä»¥ä¸ã®ããã«ããã
dvipdfmx -V 4 test.dvi
ã¨ããã§ãmediabb ã使ããªãï¼/MediaBox
ã®æååãæ¤ç´¢ã§ããªãï¼äºã®ç´æ¥çãªåå ã¯ãPDF ã®ãã¼ã¸ã§ã³ã 1.5 ã§ãããã¨èªä½ã¨ãããããããªãã¸ã§ã¯ã((ãPDF ã®ãªãã¸ã§ã¯ããã¨ã¯ä½ãã¨ãã話ã¯ããã§ã¯æªãã¦ãããã¨ã«ãããPDF ã®æ¸å¼ä¸ã§ãã/MediaBox
ãçã®æååãæ¸ããã¦ããé¨åã®ãã¨ã§ããã))ã®è¨è¿°ãå§ç¸®å¯¾è±¡ã«å«ã¾ãããï¼ãã¼ã¸ã§ã³ 1.5 ã§ãããå¯è½ã«ãªã£ãï¼ãã¨ã«ãããããªãã¡ããmediabb ã§èªãã PDFããä½ãã®ãç®çã§ããã°ãPDF ã®ãã¼ã¸ã§ã³ãä¸ããä»ã«ããå§ç¸®ã解é¤ãããã¨ããæ¹æ³ãããã*3å§ç¸®ã®æç¡ã®æå®ããã«ã¯ -z
ãªãã·ã§ã³ã使ãã-z 0
ã§å§ç¸®ç¡ãã-z 9
ã§å§ç¸®æã*4ã«ãªãã
dvipdfmx -z 0 test.dvi
-z
ãªãã·ã§ã³ã®æ¢å®å¤ã¯ 9ï¼å§ç¸®æãï¼ã§ããã-V
ãªãã·ã§ã³ã®æ¢å®å¤ã¯ç°å¢ã«ãã£ã¦ç°ãªã*5ãã2010 å¹´ç以éã® TeX Live ã§ã¯ 5ï¼ãã¼ã¸ã§ã³ 1.5ï¼ã§ããã*6
XeTeX ã§ã®ã³ãã³ããªãã·ã§ã³ã§ã®æå®
XeTeX ã¨ã³ã¸ã³ã TeX ææ¸ãã³ã³ãã¤ã«ããæãå
é¨ã§ã¯ãä¸æ¦ TeX ææ¸ã DVI å½¢å¼ï¼ã®ç¬èªæ¡å¼µå½¢å¼((XeTeX ã®ã³ãã³ãã« -no-pdf
ãªãã·ã§ã³ãä»ãã¦èµ·åããã¨å®éã«ãã®å½¢å¼ã®ãã¡ã¤ã«ãåºåããããã®æ¡å¼µå㯠.xdv ã¨ãªã£ã¦ããããã®ããããã®ç¬èªæ¡å¼µå½¢å¼ããXDV å½¢å¼ãã¨å¼ã°ãããã¨ãããã))ï¼ã«å¤æãã¦ãããã xdvipdfmxï¼dvipdfmx ã®æ¡å¼µçï¼ãç¨ã㦠PDF ã«å¤æãããã¨ããåä½ãè¡ããããã§ãå¾æ®µã® DVIâPDF å¤æã«ä½¿ãã³ãã³ã㯠XeTeX ã® -output-driver
ãªãã·ã§ã³ã§æå®ã§ããã®ã§ãããã§åç¯ã§ç´¹ä»ãããªãã·ã§ã³ãå
¥ãããã¨ã§ããã¼ã¸ã§ã³æå®ãå§ç¸®æå®ãå®ç¾ã§ããã((ï¼xï¼dvipdfmx ã® -q
ãªãã·ã§ã³ã¯åºåã¡ãã»ã¼ã¸ãææ¢ããããã®ãã®ã§ãXeTeX ã¯æ®éã¯ãããä»ã㦠xdvipdfmx ãå¼ãã§ããã-q
ãå¤ãã¨ããã¤ãã® dvipdfmx ã®ã¡ãã»ã¼ã¸ãåºåãããããã«ãªãã))
xelatex -output-driver="xdvipdfmx -q -V 5 -z 0" test.tex
pdfTeX ã®å ´åï¼pdf14 ããã±ã¼ã¸
pdfTeX ã®å ´åãPDF åºåã«é¢ããå
¨ã¦ã®è¨å®ã¯ãï¼pdfTeX æ¡å¼µã®ï¼TeX ããªããã£ãã§è¡ããã¨ã«ãªããä¾ã®è¨äºã§ç»å ´ãã¦ããã\pdfminorversion
ãããã®ä¸ç¨®ã§ããããã®ä½¿ç¨ã¯ç¹ã«é£ããã¨ãã訳ã§ããªãã®ã ããå¿
ç¶çã«ãTeX ã®å¤æ°ã®è¨å®ãã®ææ³ã絡ããããã©ããã¦ããTeX ã¬ãã«ãã®æä½ã¨è¦åããããå¾ãªããLaTeX ã¬ãã«ã§ PDF ãã¼ã¸ã§ã³ãè¨å®ããããã®ããã±ã¼ã¸ã¨ãã¦ã¯ãpdf14 ããã±ã¼ã¸ã¨ãããã®ããããååã®éãããåºå PDF ãã¼ã¸ã§ã³ã 1.4 ã«ãããæ©è½ãæä¾ãããï¼pdfLaTeXï¼LuaLaTeX å°ç¨ã§ãããï¼LaTeX ææ¸ã«ããã¦ã
\usepackage{pdf14}
ã§ããã±ã¼ã¸ãèªã¿è¾¼ã㨠PDF åºåã«ã¤ãã¦ä»¥ä¸ã®è¨å®ãè¡ãããã
- ãã¼ã¸ã§ã³ã 1.4 ã«ãªãã
- ãªãã¸ã§ã¯ãã¹ããªã¼ã ã¯ãã¼ã¸ã§ã³ 1.4 ã§é対å¿ãªã®ã§ããã®ä½¿ç¨ãææ¢ããããå¾ã£ã¦ãããªãã¸ã§ã¯ãã®è¨è¿°ãã«å¯¾ãå§ç¸®ãæ½ããããã¨ããªããªãã
åºå PDF ãã¼ã¸ã§ã³ã®æ¢å®å¤
åºå PDF ã®ãã¼ã¸ã§ã³ã«ã¤ãã¦ãTeX Live ã§ã¯é·ãã 1.4ï¼pdfTeX ç³»ã»dvipdfmx ç³»ã¨ãã«ï¼ãæ¢å®å¤ã¨ãã¦ãããå è¿°ã®éãã 1.4 㨠1.5 ã®éã«å¤§ããªï¼åæ¹ï¼éäºæãããï¼ãã¤æ®éã® TeX ã®åºå㧠1.5 ã«ããâå¿ è¦æ§âãç¡ãï¼ããã§ããããããã2010 å¹´çã«ããã¦åºåãã¼ã¸ã§ã³ã®æ¢å®å¤ã 1.5 ã«å¤æ´ãããããã®çç±ã¯ä»¥ä¸ã®ãããªãã®ã§ãããã*7
- PDF ç¨ã®ã½ããã¦ã§ã¢ã®å¤ãããã¼ã¸ã§ã³ 1.5 対å¿ã®çã«æ´æ°ããã¦ãããã¾ã㯠1.5 対å¿ã®å¥ã®ã½ããã¦ã§ã¢ã«ãã代æ¿ããã¦ããã
- æ¢ã«ãã¼ã¸ã§ã³ 1.5 ã® PDF ãã¡ã¤ã«ãå¤ãæµéãã¦ãã¦ããããç»åã¨ã㦠TeX ææ¸ã«æ¿å ¥ããã«ã¯ TeX å´ã®åºå PDF ãã¼ã¸ã§ã³ã 1.5 ã«ããå¿ è¦ãããã
- ç¸å¤ãããæ®éã® TeX ã®åºå㧠1.5 ã«ããâå¿
è¦æ§âã¯ãªã((LaTeX ã®ããã±ã¼ã¸ã®å®è£
ã«ããã¦ãPDF ã®æ°ãããã¼ã¸ã§ã³ã®æ©è½ãå©ç¨ããå ´åã«ã¯ãé©åãªåºåãã¼ã¸ã§ã³ãæå®ããï¼
\pdfminorversion
ã®å¤ãè¨å®ããï¼è²¬ä»»ã¯ããã±ã¼ã¸ã®å®è£ è ã«ããï¼ã¤ã¾ãã¨ã³ã¸ã³ãåæã«å¤æãã¦ã¯ãããªãï¼ã®ã§ããããç¾ç¶ã§ã¯ãå¿ è¦ãªãã¼ã¸ã§ã³è¨å®ãè¡ã£ã¦ããªãå ´åãçµæ§åå¨ãããããã))ãã1.5 ã«ããã¨ãªãã¸ã§ã¯ãã®è¨è¿°ã®å§ç¸®ãæå¹ã«ãªããããåºå PDF ã®ãµã¤ãºãå°ãããªãã¨ããâæçæ§âãããã
2 çªç®ã®é ç®ã«ã¤ãã¦è£è¶³ããã¨ãpdfTeX 㨠dvipdfmx ã®ã©ã¡ãããå¤ããã¼ã¸ã§ã³ã«å¯¾å¿ããããã«ææ¸ãã¼ã¿ãï¼æ¸å¼å¤æ以å¤ã®æå³ã§ï¼å å·¥ãããã¨ããæ©è½ã¯æããªãï¼ã¨æãããï¼ã®ã§ããã¼ã¸ã§ã³ 1.4 ã® PDf ãåºåããæã«ãã¼ã¸ã§ã³ 1.5 ã® PDF ãæ¿å ¥ãããã¨ã¯ã§ããªããdvipdfmx ã§ããã試ã¿ãã¨ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºã¦å¤±æãããpdfTeX ã§ã¯è¦åãåºã¦å¦çãã®ãã®ã¯ç¶è¡ãããããã1.5 ã®æ©è½ãå«ãã§ããã®ã« 1.4 ã§ããã¨è©ç§°ãã¦ãããPDF ææ¸ãçæãããå¯è½æ§ãããã®ã§ãå°ãªãã¨ã PDF è¦æ ¼ã«è©³ãããªãç´ äººã¯ããããè¦åãåºãè¡çºã¯ãã¦ã¯ãããªãã
ãã®ããã«éå»ã«ããã¦ãã¼ã¸ã§ã³ã®æ¢å®å¤ã 1.4 ãã 1.5 ã«å¤æ´ãããäºããpdf14 ã¨ããããã¼ã¸ã§ã³ã 1.4 ã«ããããã¨ã«ç¹åããããã±ã¼ã¸ãç¨æããã¦ããçç±ã§ããã
ã§ã LaTeX ææ¸ä¸ã§ãã¼ã¸ã§ã³ã¨ãè¨å®ããããã
ãããã訳ã§ãç¾ç¶ã§ã¯ pdfLaTeX ã«ããã¦åºå PDF ã®ãã¼ã¸ã§ã³ãå§ç¸®ãèªç±ã«è¨å®ããï¼ä¾ãã°ããã¼ã¸ã§ã³ 1.5 ã®ã¾ã¾ã§å§ç¸®ã ãç¡å¹ã«ããããªã©ï¼ããã®æ¹æ³ã¯ç¨æããã¦ããªããã¾ããå®ã¯ dvipdfmx ãå©ç¨ããå ´åã§ã PDF ãã¼ã¸ã§ã³è¨å®ã TeX ææ¸å
ã§è¡ãæ¹æ³ã¯ãã((pdf:minorversion ã¨ãã PDF special å½ä»¤ããããæ®å¿µãªããå§ç¸®ã®è¨å®ï¼-z
ãªãã·ã§ã³ã«ç¸å½ãããã®ï¼ã®å½ä»¤ã¯åå¨ããªãããã ã))ã®ã ãããããå©ç¨ãã LaTeX ããã±ã¼ã¸ãç¾ç¶ã§ã¯åå¨ããªãã
ã§ãä½ã£ã¦ã¿ãã
- BXpdfver ããã±ã¼ã¸ãã³ãã« ï¼GitHub/zr-tex8rï¼
次ã®ããã«ãææã®è¨å®ãããã±ã¼ã¸ãªãã·ã§ã³ã§æå®ãã¦ããã±ã¼ã¸ãèªã¿è¾¼ãã ãã§ããã
\usepackage[1.5,noobjcompress]{bxpdfver}
次ã®ãããªãªãã·ã§ã³ãæå®ã§ãããï¼è©³ç´°ã¯èª¬ææ¸ãåç §ãï¼
dvipdfmx
ï¼ dvipdfmx ã使ãå ´åã«æå®ãããã©ã¤ããªãã·ã§ã³ãpdfTeXã»LuaTeXã»XeTeX ã使ãå ´åã¯ãã©ã¤ããªãã·ã§ã³ã¯æå®ããªãã1.5
ï¼ ãã¼ã¸ã§ã³æå®ã1.4
ã1.5
ã1.6
ã1.7
ã®ä½ãããæå®ãããçç¥ããå ´åã¯ã·ã¹ãã ã®æ¢å®å¤ãå¼ãç¶ããnocompress
ï¼ å ¨ã¦ã®ã¹ããªã¼ã ã®å§ç¸®ãææ¢ãããpdfTeXã»LuaTeX ã§ã®ã¿ä½¿ç¨å¯è½ãnoobjcompress
ï¼ ãªãã¸ã§ã¯ãã¹ããªã¼ã ã®ä½¿ç¨ãææ¢ããããã®å ´åãããªãã¸ã§ã¯ãã®è¨è¿°ãã«å¯¾ããå§ç¸®ãè¡ãããªããªããpdfTeXã»LuaTeX ã§ã®ã¿ä½¿ç¨å¯è½ã((詳細ã¯çç¥ããããnocompress
ã¨noobjcompress
ã¯çµ¹ã¨ãã¦ã¯å ¨ãç¬ç«ã§ãããå¾è ã¯å®éã«ã¯ä½ããã®å§ç¸®ãææ¢ãããã®ã§ã¯ãªãã))
ã¾ãããã¬ã¢ã³ãã«ã§ \setpdfversion
å½ä»¤ãå®è¡ãããã¨ã§ããã¼ã¸ã§ã³ãæå®ã§ããã*8
\setpdfversion{1.4}% ãã¼ã¸ã§ã³ã 1.4 ã«ãã \setpdfversion{image.pdf}% image.pdf ã®ãã¼ã¸ã§ã³ã«åããã
*1:ä¾ãã°ä¸åº¦ Acrobat ã§éããå¾ãå¤ããã¼ã¸ã§ã³ãæå®ãã¦ä¿åãããçã
*2:ç¾ç¶ã§æå®ãããã PDF ãã¼ã¸ã§ã³ã¯ 1.4ã1.5ã1.6ã1.7 ã®ä½ããã«éããããã¤ã¾ãããã¤ãã¼ãã¼ã¸ã§ã³ã¯ 4ã7 ã®ç¯å²ã®æ´æ°ã
*3:ãã ãããã¼ã¸ã§ã³ 1.4 ãæå®ãããå ´åã¯ã¹ããªã¼ã ã®å§ç¸®ã¯è¡ãããã®ã«å¯¾ãã¦ããå§ç¸®ã解é¤ãããå ´åã¯å ¨ã¦ã®å§ç¸®ãææ¢ãããã®ã§ããã¡ã¤ã«ãµã¤ãºã大ãããªããã¨ãã£ã¦ãããã® PDF ãç»åã¨ãã¦ä»ã® PDF ææ¸ã«åãè¾¼ãã å ´åãåè¾¼å ã® PDF åºåã®è¨å®ã§å§ç¸®ã許å¯ãã¦ããã°ãåãè¾¼ãã PDF ã«ç±æ¥ããã¼ã¿ã«ããã®å¹åãåã¶ã¯ãã§ãããã¤ã¾ããããã®ç»åãåãè¾¼ãã PDF ææ¸ãã«ã¯ãµã¤ãºè¨å¼µã®å½±é¿ã¯åã°ãªãã
*4:詳ããè¨ãã¨ã1ã9 ãå§ç¸®æãã§ãå¤ã大ããæ¹ãå§ç¸®çãè¯ããªããå°ããæ¹ãå¦çã軽ããªãããã ããdvipdfmx ã pdfTeX ãç¨ãã¦ããå§ç¸®ã¢ã«ã´ãªãºã ï¼Deflate å§ç¸®ï¼ã¯å ã é常ã«å¦çã軽ãã®ã§ãæãå§ç¸®çã®è¯ãã9ããé¸ãã§ãç¾å¨ã®æ©å¨ã®æ§è½ã§ã¯ååã«éãããªã®ã§æããã¯å®ç¨ä¸ã¯ã0ï¼å§ç¸®ç¡ï¼ããã9ï¼å§ç¸®æï¼ãããç¨ããããªãã
*5:è¨å®ãã¡ã¤ã« dvipdfmx.cfg ã«è¨è¼ããã¦ããã
*6:ãã®å¾ã«è¿°ã¹ãããã¼ã¸ã§ã³ã®æ¢å®å¤ãã«é¢ãã話ãåç §ããããã
*7:TeX Live ã®ããã¥ã¡ã³ãããã³ pdf14 ã®ããã¥ã¢ã«ã®è¨è¿°ããæ¨å¯ããã
*8:å§ç¸®è¨å®ã®ããã®å½ä»¤ãåå¨ããã詳細ã¯èª¬ææ¸ãåç §ããããã