ãã®è¨äºã§ã¯æä½ã®ãbxpapersize ããã±ã¼ã¸ãã«ã¤ãã¦è§£èª¬ããã
- Package bxpapersize ï¼CTANï¼0.4 çã
TeX Live ããã³ W32TeX ã«åé²ããã¦ããã
ã³ã¬ is ä½
bxpapersize ã¯ãåºåã®ç¨ç´ãµã¤ãºãæå®ãããããã®âå°ç¨âã®ããã±ã¼ã¸ã§ããã
ãã®èª¬æã§ãã³ã¨ããªã人ã¯ã次ã®è¨äºãåç §ãã¦ã»ããã
è¦ããã«ãã¬ã¤ã¢ã¦ãç¨ã¨åºåç¨ã®ç¨ç´ãµã¤ãºã¯ä¸è´ããã®ãâæ®éâãªã¯ããªã®ã«ãLaTeX ã§ã¯ãããªã£ã¦ããããã¾ãâæ®éâã«ããããã®ãæ±ç¨çã«ä½¿ããæ¹æ³ãã次ã®ãããªâããã®ããããªãâãã®ããåå¨ããªããã¨ãããã¨ãåé¡ãªã®ã§ããã
% geometryãããã©geometryããªãã! \usepackage[pass]{geometry}
æããæ®éã® LaTeX ã¦ã¼ã¶ã«ãã£ã¦è§£ããããã®ã¯ãç¨ç´ãµã¤ãºãè¨å®ããããã®å°ç¨ã®ããã±ã¼ã¸ããç¨æããã¦ãããã¨ã§ããããå®éã«ãããããâå°ç¨âã®ããã±ã¼ã¸ã¯å¹¾ã¤ãå ¬éããã¦ããããã§ããããï¼bxpapersize ãæåã«å ¬éãã 2016 å¹´ 3 æã®æç¹ã§ã¯â»ï¼CTAN ã TeX Live ã«åé²ããã¦ãããã®ã¯ç¡ãã£ãã®ã§ãçµå±ããã¯âæ±ç¨çã«ä½¿ããâæ¹æ³ã¨ã¯ãããªããã®ã§ãã£ããããã bxpapersize ãä½è£½ããåæ©ã§ããã
â»ç¾å¨ã§ã¯ãiNOUE Koich! æ°åä½ã® bounddvi ããã±ã¼ã¸ã platex-tools ãã³ãã«ã«åãè¾¼ã¾ã㦠CTAN ããã³ TeX Live ã«åé²ããã¦ããããã ã bounddvi ã¯ï¼ååã®éãï¼DVI åºåã®ã¿ããµãã¼ããããã¨ã«æ³¨æã
ãã®ãµã¤ãºã¨ãã®ãµã¤ãºãä¸è´ããã話
ã¾ãã¯âæ®éâã®å ´åãã¤ã¾ããåºåã®ç¨ç´ãµã¤ãºãã¬ã¤ã¢ã¦ãã®ç¨ç´ãµã¤ãºã«ä¸è´ãããããå ´åãèãããè¦ããã«ã\documentclass
ã®ãªãã·ã§ã³ã« a5paper
ã¨æå®ããï¼ããããã¬ã¤ã¢ã¦ãã®ç¨ç´ãµã¤ãºãï¼ã¨ãã«ãåºåã®ç¨ç´ãµã¤ãºãã A5 å¤ã«ããããã¨ãããããªè©±ã§ããããã®å ´åã¯ãåç´ã« bxpapersize ããã±ã¼ã¸ãèªã¿è¾¼ãã°å®ç¾ã§ããã
% ã¬ã¤ã¢ã¦ãã¯A5å¤ \documentclass[a5paper]{article} \usepackage{bxpapersize}% èªã¿è¾¼ãã ãã§OK \begin{document} Hello\vfill {\TeX}! \end{document}
ãã®ææ¸ã LaTeXï¼ã¨ã³ã¸ã³ã¯ä½ã§ãããï¼ã§ DVI ã¾ã㯠PDF ææ¸ã«å¤æããã¨ãåºåã®ææ¸ã®ç¨ç´ãµã¤ãºã A5 å¤ï¼148mmÃ210mmï¼ã«è¨å®ãããã*1
çé¢ã®æ¡å¤§ç¸®å°ã®ããã«ãmag è¨å®ããè¡ããã¦ããå ´åã«ã対å¿ãã¦ããã
% (pdf)LaTeXææ¸ % ã¬ã¤ã¢ã¦ãã¯A4å¤ãåºæºã«ãã \documentclass[a4paper]{article} \usepackage{bxpapersize}% èªã¿è¾¼ãã ãã§OK %!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN % ããã¦çé¢ã2åã«æ¡å¤§ããã \mag=2000 %!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! TeX code END \begin{document} % (以ä¸ç¥)
ãã®å ´åãåºåã®ç¨ç´ãµã¤ãºã¯âA4 å¤ã® 2 åâï¼420mmÃ594mmï¼ã¨ãªãã
jsclasses ãã³ãã«ã®ææ¸ã¯ã©ã¹ï¼jsarticle ãªã©ï¼ã¯ãå é¨ã§ mag è¨å®ãå©ç¨ãã¦ããããããã®å ´åã大ä¸å¤«ã§ããã
% upLaTeXææ¸ % ã¬ã¤ã¢ã¦ãã¯(å®éã«)A4å¤ \documentclass[uplatex,a4paper,12pt]{jsarticle} \usepackage{bxpapersize} \begin{document} ããã«ã¡ã¯ããã«ã¡ã¯\vfill {\TeX}ï¼ \end{document}
ãã®å ´åãåºåã®ç¨ç´ãµã¤ãºã¯ A4 å¤ï¼210mmÃ297mmï¼ã¨ãªãã*2ãã¡ãããjsclasses ã®ã¯ã©ã¹ã®å ´å㯠papersize ãªãã·ã§ã³ã使ããã®ã§ãbxpapersize ãããããç¨ããå¿ è¦æ§ã¯ãªãã ããã
ãã®ãµã¤ãºããã®ãµã¤ãºã§ã¯ãªãä½ãã«ãã話
ææ¸ã¯ã©ã¹ãããã±ã¼ã¸ã«ãã£ã¦ã¯ããåºåã®ç¨ç´ãµã¤ãºãã表ã \stockwidth
ï¼\stockheight
ã¨ãããã©ã¡ã¿ãå®ç¾©ãã¦*3è¨å®ãããã®ããããããããå ´åã¯ãbxpapersize ã¯ãã¬ã¤ã¢ã¦ãç¨ã®ç¨ç´ãµã¤ãºãï¼\paperwidth
ï¼\paperheight
ï¼ã§ã¯ãªããåºåã®ç¨ç´ãµã¤ãºã(\stockwidth
ï¼\stockheight
)ãæ¡ç¨ããã身è¿ãªä¾ã§ã¯ãjsclasses ã®ã¯ã©ã¹ã§ tombow çã®ãªãã·ã§ã³ãæå®ãã¦ãã³ãåºåãæå¹ã«ããå ´åã該å½ããã
% upLaTeXææ¸ % ã¬ã¤ã¢ã¦ãã¯A5å¤ \documentclass[uplatex,a5paper,9pt,tombow]{jsarticle} \usepackage{bxpapersize} \begin{document} ããã«ã¡ã¯ããã«ã¡ã¯\vfill {\TeX}ï¼ \end{document}
ãã®å ´åããã³ãåºåã®ããã«å辺㫠1in ã®ä½ç½ãåãããã®ã§ãæ¬æ¥ã® A5 å¤ï¼148mmÃ210mmï¼ã«å¯¾ãã¦ç¸¦æ¨ªã« 2inï¼= 50.8mmï¼ã ãå¢ãããµã¤ãºï¼198.8mmÃ260.8mmï¼ã \stockwidth/height
ã«è¨å®ããããããåºåç¨ç´ãµã¤ãºã¯ããã«ä¸è´ãããã¨ã«ãªãã
ã¾ãã(u)pLaTeX ã®æ¨æºææ¸ã¯ã©ã¹ï¼jarticle çï¼ã§ãã³ãåºåã®æå¹ã«ããå ´åã¯ã\stockwidth/height
ãã©ã¡ã¿ã¯è¨å®ï¼å®ç¾©ï¼ãããªãããbxpapersize ã§ã¯ãã®ã±ã¼ã¹ãç¹å¥ã«åãæ±ã£ã¦ãææã®åºåç¨ç´ãµã¤ãºãè¨å®ããããã«ãã¦ããã
% pLaTeXææ¸ % ã¬ã¤ã¢ã¦ãã¯A5å¤ \documentclass[a5paper,tombow]{jsarticle} \usepackage{bxpapersize} \begin{document} ããã«ã¡ã¯ããã«ã¡ã¯\vfill {\TeX}ï¼ \end{document}
å ã® jsarticle ã®ä¾ã¨åãããããã®åºåãµã¤ãºã¯âA5 å¤ã® 2in å¢ãâï¼198.8mmÃ260.8mmï¼ã¨ãªãã
ãªããbxpapersize ã®èªè¾¼æã«ãªãã·ã§ã³ã¨ãã¦ãsize=real*
ããä»ããã¨ãã\stockwidth/height
ãã©ã¡ã¿ãè¨å®ããã¦ããç¶æ³ããããã³ãåºåãæå¹ã ã¨è¦ãªãããç¶æ³ãã«ããã¦ã常ã«ãã¬ã¤ã¢ã¦ãã®ç¨ç´ãµã¤ãºãï¼\paperwidth/height
ï¼ã®æ¹ãæ¡ç¨ãã¦ããã¡ãã«åºåç¨ç´ãµã¤ãºãåãããããã«ãªãã
ãã®ãµã¤ãºãã³ã¬ã³ã¬ã«ãã話
bxpapersize ã® size ãã©ã¡ã¿ã®å¤ã¨ãã¦ç´æ¥ã«ç¨ç´ãµã¤ãºãæå®ãããã¨ã§ãåºåã®ç¨ç´ãµã¤ãºãã¬ã¤ã¢ã¦ãã®ãã®ã¨ã¯ç¡é¢ä¿ãªä»»æã®å¤ã«è¨å®ãããã¨ãã§ããã
% ã¬ã¤ã¢ã¦ãã¯B5å¤ \documentclass[b5paper,dvipdfmx]{article} % ã ãã©åºåã¯A4å¤ \usepackage[size=a4paper]{bxpapersize} \begin{document} Hello\vfill {\TeX}! \end{document}
ãã ããbxpapersize ã¯é£½ãã¾ã§ãåºåç¨ç´ãµã¤ãºãè¨å®ãããã ãã§ãããä»ã®æ©è½ãä¾ãã°ãå®éã®çé¢ãç¨ç´ã®ä¸å¤®ã«é ç½®ãããã¨ãããã³ããåºåãããã«ã¤ãã¦ã¯ä¸åé¢ä¸ããªããã ããä¸æ²ã®ä¾ã®å ´åãåã« A4 ã®ç¨ç´ã®å·¦ä¸é ã® B5 å¤ã®å¤§ããã®é åã«çé¢ãããã¨ããããã¾ãæå³ã®ãªãåºåã«ãªãã
size ã®å¤ã¨ãã¦æå®ããç¨ç´ãµã¤ãºã®ååï¼b4j
çï¼ã¯ãgeometry ããã±ã¼ã¸ã«å¾ã£ã¦ããã((A å¤ã¯ a0paper
ãa6paper
ãISO B å¤ã¯ b0paper
ãb6paper
ãJIS B å¤ã¯ b0j
ãb6j
ã¨æå®ããã))横置ããæå®ããã«ã¯ãlandscape
ãªãã·ã§ã³ã追å ãããï¼ãã®ä»ãgeometry ã¨åãæå³ã® truedimen
ãªãã·ã§ã³ãåå¨ãããï¼
% åºåãµã¤ãºã"A5横"ã«æå®ãã \usepackage[size=a5paper,landscape]{bxpapersize}
size ãã©ã¡ã¿ã¯ããã±ã¼ã¸ï¼\usepackage
ï¼ã®ãªãã·ã§ã³ã¨æå®ããä»ã«ã\papersizesetup
ã¨ããå½ä»¤ãç¨ãã¦æå®ãããã¨ãã§ããã
% ç´åã®ä¾ã¨åç \usepackage{bxpapersize} \papersizesetup{size=a5paper,landscape}
\papersizesetup
ã使ãå ´åã¯ã縦横ã®é·ããä»»æã«æå®ãããã¨ãã§ããã((ããã±ã¼ã¸ãªãã·ã§ã³ã«ã¯ã{ }
ãå«ãæååã¯ä½¿ããªããã¨ããå¶ç´ãããããããã®æå®ãããã±ã¼ã¸ãªãã·ã§ã³ã§è¡ããã¨ã¯ã§ããªãã))
\usepackage{bxpapersize} \papersizesetup{size={100mm,148mm}}
ä¸ä½ä½ããããã®ã
ãã®ãããªæå®ãæç¨ã§ããå ´é¢ãç´¹ä»ããã次ã®ãããªåºåãã¼ã¿ãæ§æããææ¸ã¯ã©ã¹ hogearticle ããã£ãã¨ããã
- ã¬ã¤ã¢ã¦ã㯠A4 å¤ãåºæºã«ãã¦è¡ããã¤ã¾ãã
\paperwidth/height
㯠A4 å¤ç¸å½ã®å¤ã«ãªã£ã¦ããã - JIS B4 å¤ã®ç´é¢ã®ä¸å¤®ã«ãã® A4 å¤ã®çé¢ãé ç½®ããå¨ãã®ä½ç½ã«ãã³ããåºåããã
ãã®ã¯ã©ã¹ã使ã£ãææ¸ã dvipdfmx ã使ã£ã¦ PDF ã«å¤æãã*4å ´åãå½ç¶ãåºåãµã¤ãºã¯ JIS B4 å¤ã§ãªããã°ãªããªããæã¯ããããå ´åã«ãdvipdfmx ã®ãªãã·ã§ã³ã§ç¨ç´ãµã¤ãºãæå®ãããã¯ã¼ã¯ããã¼ãæ³å®ããã¦ããã
dvipdfmx -p jisb4 myarticle.dvi
ãããä»ã¯ãåºåç¨ç´ãµã¤ãºãè¨å®ãããä½ç¨ããã¤ããã±ã¼ã¸ãå¢ãã¦ãããç¹ã«æè¿ã¯ graphicx ããã±ã¼ã¸ãããã«è©²å½ãããã¨ã«æ³¨æãå¿ è¦ã§ãããããããããã±ã¼ã¸ã¯ããã§æ³å®ããã¯ã¼ã¯ããã¼ã¨ã¯ç¸æ§ãæªãã
% \paperwidth/height ã¯A4å¤, ãããæ³å®ã®åºåãµã¤ãºã¯JIS B4å¤ \documentclass[dvipdfmx]{hogearticle} \usepackage{graphicx}% ç»åãããã
ãã®å ´åãgraphicx ããã±ã¼ã¸ã¯åºå DVI ã®åºåç¨ç´ãµã¤ãºããã¬ã¤ã¢ã¦ãã®ç¨ç´ãµã¤ãºã¨åãããããªãã¡ A4 å¤ã«è¨å®ãããDVI ã§åºåç¨ç´ãµã¤ãºã®æå®ãæ¢ã«æã£ã¦ããå ´åããã®æå®ã¯ dvipdfmx ã®ãªãã·ã§ã³ã§ã®æå®ãããåªå
ããããããå
ã®ã³ãã³ãã©ã¤ã³ã®ããã«ã-p jisb4
ããæå®ãã¦ãã¦ããåºåã® PDF ã®ç¨ç´ãµã¤ãºã¯ A4 å¤ã¨ãªã£ã¦ãã¾ããã¤ã¾ã件ã®ã¯ã¼ã¯ããã¼ã¯ç ´ç¶»ãã¦ãã¾ãã®ã§ããã
ä»ã®å ´åãgraphicx ã«ãåºåç¨ç´ãµã¤ãºã®æå®ãææ¢ãããããã®ãªãã·ã§ã³ nosetpagesize
ãæå®ããã°åé¡ãåé¿ã§ããã
\documentclass[dvipdfmx]{hogearticle} \usepackage[nosetpagesize]{graphicx}% ç¨ç´ãµã¤ãºè¨å®ã¤ã©ã
ãã ããã©ã®ããã±ã¼ã¸ãåºåç¨ç´ãµã¤ãºãæå®ããã®ãããã©ãããã°æå®ãææ¢ã§ããã®ããã¨ããã®ã¯æ®éã® LaTeX ã¦ã¼ã¶ã«ã¯è§£ãã«ãã話ã§ãããããããããæè¿ã¯ DVI ã§åºåç¨ç´ãµã¤ãºãæå®ããã®ãä¸è¬çã«ãªã£ã¦ãããã®ãªããããåççãªé¸æã¯ãDVI ã§åºåç¨ç´ãµã¤ãºã JIS B4 ã«æå®ããããã¨ã«ãªãã ãããbxpapersize ããã±ã¼ã¸ã使ãã¨ãããå®ç¾ã§ããããã§ããã
\documentclass[dvipdfmx]{hogearticle} \usepackage[size=b4j]{bxpapersize}% åºåãµã¤ãºã¯JIS B4å¤ \usepackage{graphicx}
ãªããä¸ã®ä¾ã§ã¯ graphicx ã« nosetpagesize
ãä»ãã¦ããªãã®ã§ããåºåç¨ç´ãµã¤ãºæå®ã®ç«¶åããèµ·ãããã¨ã«ãªãã®ã§ãå¾ã«è¿°ã¹ã priority
ãªãã·ã§ã³ãä½µç¨ããã¨ããããç¥ããªãã
å¼·ãæ 度ã«åºã話
å
ã«è¿°ã¹ãããã«ããåºåã®ç¨ç´ãµã¤ãºãæå®ãããä½ç¨ããã¤ææ¸ã¯ã©ã¹ããã±ã¼ã¸ã¯å¹¾ã¤ãåå¨ãããå¾ã£ã¦ãããã㨠bxpapersize ãä½µç¨ããã¨ãåºåç¨ç´ãµã¤ãºã®æå®ãâ競åâãããã¨ã«ãªããåç´ãªå ´åï¼ã¬ã¤ã¢ã¦ãã®ç¨ç´ãµã¤ãºã«åãããã°ããã ãã®å ´åãçï¼ã¯â競åâãèµ·ãã£ã¦ãçµå±å
¨ã¦åããµã¤ãºãæå®ãã¦ããã ããªã®ã§å®éã«åé¡ã¯èµ·ãããªããããããå°ãè¤éãªå ´åãä¾ãã°ãmag è¨å®ããããã\stockwidth/height
ãæå®ããã¦ããããbxpapersize ã§åºåãµã¤ãºãç´æ¥æå®ããï¼size=a4paper
ï¼ãã¨ããå ´åã¯ãç¸çç¾ããè¨å®ãåããã±ã¼ã¸ã«ããè¡ããããã¨ã«ãªãããã®å ´åã«ã©ããâåã¤âï¼å®éã«é©ç¨ãããï¼ããã¨ããã®ã¯ï¼å°ãªãã¨ãæ®éã® LaTeX ã¦ã¼ã¶ã«ã¨ã£ã¦ã¯ï¼é常ã«äºæ¸¬ãé£ããã®ã§ããã
ãã®åé¡ã«å¯¾å¦ãããããbxpapersize ã§ã¯ãèªåã®è¨å®ãåªå
ããããããã®ãªãã·ã§ã³ãpriority=high
ããç¨æãã¦ããããããbxpapersize ã§æå®ããåºåç¨ç´ãµã¤ãºãå¹ãã¦ããªãããã«è¦ããå ´åã¯ããã®ãªãã·ã§ã³ã追å ããã¨åé¡ã解æ¶ããããç¥ããªããï¼ãªããpriority ãã©ã¡ã¿ã¯ããã±ã¼ã¸ãªãã·ã§ã³ã§ã®ã¿æå®å¯è½ã§ã\papersizesetup
ã§ã¯ä½¿ããªããï¼
\documentclass[dvipdfmx]{hogearticle} \usepackage[size=b4j,priority=high]{bxpapersize}% ãªã¬ã®è¨å®ãèã!! \usepackage{graphicx}
â»priority ãã©ã¡ã¿ã¯ dvipdfmx ããã³ãTeX Live 2017 以éã® dvipsãã§ã®ã¿ä½¿ç¨ã§ãããPDF åºåã®å ´åã¯ç¡å¹ã§ããã((ã©ããã¦ãï¼2017 ããï¼å¤ã dvips ã§ä½¿ããããã¨ããå ´å㯠olddvips
ã¨ããããã±ã¼ã¸ãªãã·ã§ã³ãä»ããã¨ä¸æãããããç¥ããªããTeX Live 2017 㧠dvips ã®ä»æ§ãå¤ãã£ãããããã®ãããªã¤ã¤ã³ã·ã¤ãã¨ã«ãªã£ã¦ããã))
*1:ãDVI ã®ç¨ç´ãµã¤ãºã A5 å¤ãã¨ãããã¨ã¯ããã® DVI ã dviout ã xdvi ã§é²è¦§ããå ´å㯠A5 å¤ã¨ãã¦è¡¨ç¤ºãããããã¾ã dvips 㧠PostScript ææ¸ã«å¤æãããã³ dvipdfmx 㧠PDF ææ¸ã«å¤æããå ´åãåºåã®ææ¸ã¯ A5 å¤ã«è¨å®ãããã
*2:mag è¨å®ã¯"å é¨ã§å©ç¨ãã¦ãã"ã ãã§ãæ¡å¤§ç¸®å°ãããããã§ã¯ãªãã
*3:ã¤ã¾ããæ¨æºã® LaTeX ã«ã¯ãããããã©ã¡ã¿ã¯ãªãã
*4:dvips 㧠PostScript ã«å¤æããå ´åã話ã¯å ¨ãåãã§ããã