2020-03-25ã«BXjsclsã®æ°ããã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¨ãªã2.0çããªãªã¼ã¹ããããTeX Liveã«ã¤ãã¦ã¯ã2020-04-10ã«ãªãªã¼ã¹ãããTeX Live 2020ã®åæçã2.0çã¨ãªããç¾å¨ã®ææ°çã¯2.0açã§ããã
ã¡ã¸ã£ã¼æ¹çã§ããããå¾æ¹äºææ§ãæãªãä»æ§å¤æ´ãå«ã¾ããã注æãã¦ã»ããã
â»2.0â2.0açã®éãã¯ãä¸é¨ã®éæ¨å¥¨æ©è½ã¸ã®è¦åã®è¿½å ã®ã¿ã§ãã1ã
ãä»æ§å¤æ´ãLuaLaTeXï¼XeLaTeXã§æ¢å®ã®åæãã©ã³ãããåãå³ãã©ã³ããã«å¤ãã£ã
TeX Live 2020ã«ããã¦ãupdmapã§ã®åæï¼æ¥æ¬èªï¼ã®ãã©ã³ãã®æ¢å®å¤ãipaex
ããharanoaji
ã«å¤æ´ããã2ãã¤ã¾ãã(u)pLaTeXã®æ¨æºåæãã©ã³ãã¨ãã¦ä½¿ãããç©çãã©ã³ãããIPAexãã©ã³ãããããåãå³ãã©ã³ããå¤ãããã¨ã«ãªããããã«è¿½éããå½¢ã§ãLuaTeX-jaã«ãããæ¢å®ã®åæãã©ã³ãããIPAexãã©ã³ãããããåãå³ãã©ã³ããã«å¤æ´ãããã
ããã§ãBXjsclsã¯ã©ã¹ãããã«è¿½éãã¦ãLuaLaTeXï¼XeLaTeXä¸ã®åä½ã«ãããæ¢å®ã®åæãã©ã³ãããIPAexãã©ã³ãããããåãå³ãã©ã³ããã«å¤æ´ãããã¨ã«ãã3ã
% LuaLaTeXææ¸; UTF-8 % ãã©ã³ãæå®(jafont)ãç¡ã \documentclass[lualatex,ja=standard,a4paper]{bxjsarticle} \begin{document} âã£âââã£âã£âï½ï½âª \end{document}
ãã©ã³ãæå®ï¼jafont
ãªãã·ã§ã³ï¼ã®ãªãä¸æ²ã®ææ¸ãlualatexã§ã³ã³ãã¤ã«ããå ´åãæ§çã§ã¯ãIPAææãã§åºåãããã
対ãã¦ãæ°çï¼2.0ç以éï¼ã§ã¯ãåãå³ææãã§åºåãããã
ãªããåæãã©ã³ãã®ããªã»ããã®ç¨®é¡ã¯jafont
ã§æå®ã§ããã®ã§ããIPAexãã©ã³ããã§åºåãããå ´åã¯ã¯ã©ã¹ãªãã·ã§ã³ã«jafont=ipaex
ãæå®ããã°ããã
% LuaLaTeXææ¸; UTF-8 %ãã©ã³ãæå®(jafont=ipaex)ããã \documentclass[lualatex,ja=standard,jafont=ipaex, a4paper]{bxjsarticle} \begin{document} âã£âââã£âã£âï½ï½âª \end{document}
LuaLaTeXã»XeLaTeX以å¤ã®è©±
(u)pLaTeXä¸ã®åä½ã®å ´åã¯ãBXjsclsã®ã¯ã©ã¹ã¯åæãã©ã³ãï¼ã®ãã©ã³ããããï¼ã®æå®ãä½ãè¡ãããå¾ã£ã¦DVIã¦ã§ã¢ã®è¨å®ï¼TeX Liveã®å ´åã¯updmapã®è¨å®ï¼ããã®ã¾ã¾é©ç¨ããããå¾ã£ã¦TeX Live 2020ã§ããã°ãLuaLaTeXï¼XeLaTeXã¨åæ§ã«ãåãå³ãã©ã³ããã使ç¨ããã4ã
pdfLaTeXã§åæãæ±ãå ´åã¯åæãã©ã³ãããType1å½¢å¼ã®ãµããã©ã³ããã¨ãã¦ç¨æããå¿ è¦ããããç¾ç¶ã§ã¯ãåãå³ãã©ã³ããã®Type1å½¢å¼ãµããã©ã³ãã¯åå¨ããªãã®ã§ãå¾æ¥ã®ãIPAexã®Type1å½¢å¼ãµããã©ã³ããï¼ipaex-type1ããã±ã¼ã¸ï¼ãå¼ãç¶ãæ¢å®å¤ã¨ãã¦ç¨ããããã
ãä»æ§å¤æ´ã\ifdraft ãå»æ¢ããã
éçºè
ç¨å½ä»¤5ã®\ifdraft
ã¯1.2çï¼2016-08-01ï¼ã«ããã¦æ¢ã«éæ¨å¥¨ã®æ±ãã«ãªã£ã¦ãããã2.0çã«ããã¦å»æ¢ãããã代ããã®éçºè
ç¨å½ä»¤ã¨ãã¦\ifjsDraft
ãç¨æããã¦ããã®ã§ããã¡ããå©ç¨ããå¿
è¦ãããã
â»ã¦ã¼ã¶ã¬ãã«ã§ãdraftã¢ã¼ãã§ããããå¤å®ããããå ´åã¯ãifdraftããã±ã¼ã¸ã®ä½¿ç¨ãæ¨å¥¨ããã
â»\ifdraft
ã¯jsclassesã®æ©è½ãç¶æ¿ãããã®ã§ããããæ¬å®¶ã®jsclassesã«ããã¦ã¯\ifdraft
ã¯2016å¹´7æã«ï¼éæ¨å¥¨ã§ã¯ãªãï¼å»æ¢ããã¦ããããifdraftããã±ã¼ã¸ã¨è¡çªãããã¨ããåé¡ããã£ãããã§ããã
ãä»æ§å¤æ´ãgeometry 4.xçã®ãµãã¼ããå»æ¢ãã
geometry 4.xçã®ä½¿ç¨ã¯1.2çï¼2016-08-01ï¼ã«ããã¦æ¢ã«éæ¨å¥¨ã¨ãªã£ã¦ãããã2.0çã§ã¯geometryã®4.xçã®ãµãã¼ããå»æ¢ã¨ãªãã5.0çï¼2010-02-12ï¼ä»¥éãå¿ é ã¨ãªãã
ã¤ãã¤ãéæ¨å¥¨ã«ãªã£ã
æ¢ã«1.9çã®ãªãªã¼ã¹ã®ã¨ãã«äºåããã¦ããããã«ãæ§çã¨ã®äºæã®ããã®æ©è½ã®å¤ãã2.0çã§éæ¨å¥¨ã®æ±ãã¨ãªã£ããï¼å»æ¢ã§ã¯ãªããï¼
âjaâãªãã·ã§ã³ã®çç¥ã¯éæ¨å¥¨
ã¨ã³ã¸ã³ã(u)pLaTeX以å¤ã®å ´åã«åæãã©ã¤ãæå®ï¼ja
ãªãã·ã§ã³ï¼ãçç¥ããå ´åã¯minimal
ãæå®ããã¦ããã
% XeLaTeXææ¸; UTF-8 \documentclass[xelatex,a4paper]{bxjsarticle} \usepackage{zxjatype} \setCJKmainfont{IPAexMincho} \setCJKsansfont{IPAexGothic} \begin{document} {\TeX}è¨èª\textsf{å±éº}ããã¡ã¼ãã¿ã¤ã \end{document}
以åã®çã«ããã¦æ¢ã«ja
ãªãã·ã§ã³ãæ示ãããã¨ãâæ¨å¥¨âããã¦ãããã2.0çã«ããã¦æ£å¼ã«ãçç¥ãéæ¨å¥¨ã¨ãªã£ãã2.0açã«ããã¦ã¯ja
ãçç¥ããã¨ä»¥ä¸ã®ãããªè¦åãåºãã
Class bxjsarticle Warning: The option 'ja' is MISSING!! (bxjsarticle) So 'ja=minimal' is assumed as fallback, but (bxjsarticle) such implicit setting is now DEPRECATED! (bxjsarticle) You should write 'ja=minimal' explicitly, (bxjsarticle) if it is intended.
以åã®åä½ãä¿ã¡ããå ´åã¯ja=minimal
ãæå®ãã¹ãã§ããã
% XeLaTeXææ¸; UTF-8 % åæãã©ã¤ããæ示çã«æå®ãã \documentclass[xelatex,ja=minimal,a4paper]{bxjsarticle} \usepackage{zxjatype} \setCJKmainfont{IPAexMincho} \setCJKsansfont{IPAexGothic} \begin{document} {\TeX}è¨èª\textsf{å±éº}ããã¡ã¼ãã¿ã¤ã \end{document}
ãã ãå®éã«ã¯ãminimalã¢ã¼ããã§ã¯ãªããstandardã¢ã¼ããã使ãæ¹ã妥å½6ã§ãããã¨ãå¤ãã¯ãã§ãããä»ã¾ã§âja
ç¡ãâã§ä½¿ã£ã¦ãã人ã¯ãstandardã¢ã¼ããã¸ã®ç§»è¡ãæ¤è¨ãã¦ã»ããã
% XeLaTeXææ¸; UTF-8 % standardã¢ã¼ãã®æ¹ãä¾¿å© \documentclass[xelatex,ja=standard,jafont=ipaex,a4paper]{bxjsarticle} \begin{document} {\TeX}è¨èª\textsf{å±éº}ããã¡ã¼ãã¿ã¤ã \end{document}
â»ã¨ã³ã¸ã³ã(ujpLaTeXã§ããå ´åã¯ja
ã®æ¢å®å¤ã¯standard
ã§ããããã®å ´åã¯ja
ã®çç¥ã¯éæ¨å¥¨ã§ã¯ãªãã
âdvipdfmx-if-dviâãªãã·ã§ã³ã¯éæ¨å¥¨ â âdvi=dvipdfmxâ
ç¾å¨ã®BXjsclsã«ã¯ãDVIã¢ã¼ãã§ã®ã¿é©ç¨ããããã©ã¤ãæå®ããè¡ãããã®dvi
ãªãã·ã§ã³ãããããæã¯dvi=dvipdfmx
ã«ç¸å½ããdvipdfmx-if-dvi
ã¨ãããªãã·ã§ã³ãå©ç¨ããã¦ããã
% ã¨ã³ã¸ã³èªåå¤å¥, DVIã¢ã¼ãæã¯dvipdfmxãã©ã¤ããæå® \documentclass[autodetect-engine,dvipdfmx-if-dvi,ja=standard]{bxjsbook}
dvipdfmx-if-dvi
ã¯2.0çã§éæ¨å¥¨ã®æ±ãã¨ãªãã2.0açã§ã¯è¦åãåºãã
Class bxjsbook Warning: The old option 'dvipdfmx-if-dvi' is DEPRECATED (bxjsbook) and may be abolished in future! (bxjsbook) You should write 'dvi=dvipdfmx' instead.
代ããã«dvi=dvipdfmx
ãæå®ãã¹ãã§ããã
% ã¨ã³ã¸ã³èªåå¤å¥, DVIã¢ã¼ãæã¯dvipdfmxãã©ã¤ããæå® \documentclass[autodetect-engine,dvi=dvipdfmx,ja=standard]{bxjsbook}
ãã®ä»ããããéæ¨å¥¨
以ä¸ã«è¿°ã¹ããã®ã®ä»ã以ä¸ã®ãªãã·ã§ã³ãéæ¨å¥¨ã¨ãªãã
(no)js
(âdisguise-js=<çå½å¤>
)(no)zw
(âuse-zw=<çå½å¤>
)(no)precisetext
(âprecise-text=<çå½å¤>
)(no)simplejasetup
(âsimple-ja-setup=<çå½å¤>
)textwidth-limit=<æ´æ°>
(âtextwidth-limit=<æ´æ°>zw
)magstyle=mag/real/xreal
(âmagstyle=usemag/nomag/nomag*
)jadriver=<åå>
(âja=<åå>
)noscale
(âscale=1
)
-
2.0açã«ããã¦ããéæ¨å¥¨ã®å ¨ã¦ã§è¦åãåºãããã§ã¯ãªãã®ã§æ³¨æã↩
-
ãåãå³ãã©ã³ããèªä½ï¼haranoajiããã±ã¼ã¸ï¼ã¨updmapã§ã®ãµãã¼ãï¼ptex-fontmapsã®æ¹çï¼ã¯2020å¹´2æã«CTANã«ç»é²ããã¦ãããããTeX Live 2019ã®æçµçã«ãå«ã¾ãã¦ããã↩
-
ãªããupdmapã®åæãã©ã³ãæ¢å®å¤ã®haranoajiã«ã¤ãã¦ã¯ã2004JISåå½¢ããæå®ããã¦ãããå¾æ¥ã®ãIPAexãã©ã³ããã¯AJ1é対å¿ã®ãã©ã³ãã§ããåå½¢é¸æãç¡å¹ã§ããããèªåçã«ãã©ã³ãã®æ¢å®ã§ãã2004JISåå½¢ãé¸ã°ãã¦ãããããåãå³ãã©ã³ããã¯AJ1対å¿ã®ãã©ã³ãã§ããåå½¢é¸æãæå¹ï¼ãã¤å¿ é ï¼ã«ãªããããã§å¾æ¥ã®2004JISåå½¢ãä¿ã¤ããã«ã2004JISåå½¢ããé¸æãã¦ãããLuaTeX-jaãzxjatypeï¼XeTeXï¼ã§ã¯åå½¢é¸æã¯å¯è½ã§ãããå¿ é ã§ã¯ãªããLuaTeX-jaã®åæãã©ã³ãã®æ¢å®ã§ã¯åå½¢é¸æãè¡ãããçµæçã«ãåãå³ãã©ã³ããã®æ¢å®ã§ãã2004JISåå½¢ãé¸ã°ãããBXjsclsã®LuaLaTeXï¼XeLaTeXä¸ã®æ¢å®è¨å®ãåæ§ã§ãããè¦ããã«ãæ§çã§ãæ°çã§ãæ¢å®ã®åæãã©ã³ãã¯2004JISåå½¢ã¨ãªãã↩
-
ãªããLuaLaTeXä¸ã®åä½ã®å ´åã¯LuaTeX-jaã®æ°ããæ¢å®å¤ã¯æ¢ã«ãåãå³ãã©ã³ããã§ããããXeLaTeXã¨åä½ãåãããããã«ãåãå³ãã©ã³ãããæ示çã«è¨å®ãã¦ãããå¾ã£ã¦ãå¤ãLuaTeX-jaã¨çµã¿åãããå ´åã§ãæ¢å®å¤ã¯ãåãå³ãã©ã³ããã§ããã↩
-
å®æ ã¯TeXè¨èªã®if-ãã¼ã¯ã³ã§ããããªã®ã§ãã¦ã¼ã¶ã¬ãã«ã§ãifthenããã±ã¼ã¸ãä»ãã¦
\ifthenelse{\boolean{draft}}...
ã¨ããå½¢ã§ä¸å¿å©ç¨ã§ãã¦ããã↩ -
TeX Wikiã®è§£èª¬ãã¿ãã°ãããããã«ãBXjsclsã®å¤ãã®è¿½å æ©è½ã¯standardã¢ã¼ãã§ã®ã¿ãµãã¼ããããã↩