ãã£ã±ãLuaLaTeXãé
ã件ã«ã¤ãã¦
æ¨å¹´ã®ã¢ããã³ãã«ã¬ã³ãã¼ ã§ã¯ãéç¹è§£èª¬ï¼ LuaLaTeXãé
ãããªãæ¹æ³ãã¨é¡ãã¦LuaLaTeXãããã¼ãããé
ããªãåå ã¨ãã®è§£æ±ºæ¹æ³ã«ã¤ãã¦è§£èª¬ãã¾ããã
ãã¦ããã§ãLuaLaTeXãé
ããããåé¡ã解決ããã®ãã¨ããã¨ããã¡ããå
¨ããããªãã¨ã¯ããã¾ããããåãã®éããLuaLaTeXã¯ããã¼ã§ã極ãã¦é
ã ããã§ãð¥ ããã¦å½è©²ã®è¨äºã®èæ¯è§£èª¬ã§ãè¿°ã¹ãéãããã®ç¶æ³ãæ¹åããç°¡åãªæ¹æ³ã¯è¦å½ããã¾ããð¥
ããã«æªããã¨ã«è¿å¹´ã®ãã¿ã°ä»PDF対å¿ããªã©ã®æ©è½æ¡å¼µã«ãã£ã¦ãLaTeX ã«ã¼ãã« èªä½ã®åä½ãå¹´ã追ããã¨ã«ã©ãã©ãé
ã ãªã£ã¦ãã¾ãð° æãæ·±å»ãªã®ã¯ãLaTeX ãã¼ã ããLaTeX ã«ã¼ãã« ããã«ãµãã¼ããã対象ã®ã¨ã³ã¸ã³ãLuaTeXã«éå® ãããã¨ããæ¹åæ§ãæã¡åºãã¦ãããã¨ã§ãð
ãã¯ããæã
ã«ã¯âæãåãé
ãLuaLaTeXâã使ããã¨ããéã¯æ®ããã¦ããªãã®ã§ããããð
LuaLaTeXã®é
ããç»æçã«è§£æ±ºããã件
ãã®ãLuaLaTeXãé
ãããã ã¨ããã®ã¯æããã«å°é£ãªåé¡ã§ãããããã¾ãã«ä»ãæã
ã¯ãã®åé¡ããLaTeX ã®å°é£ãªåé¡ãã§ãããã¨ãææ¡ãã¾ããããããææ¡ã§ãã¦ããã°ãç»æç ãªæ¹åããã®è§£æ±ºãæ¤è¨ãã¹ããã¨ããããã¾ããâ¦â¦ããã§ãã
LuaLaTeXã®åºåãâã«å¤ããã°ããã
LuaLaTeXã¯unicode 対å¿ãå
å®ãã¦ããããããã¾ãã¾ãªç¨®é¡ã®æåï¼æ°å¼ãå«ãï¼ãåºåã§ãã¾ãããä¸æ¹ã§ããã®ããã®OpenTypeãã©ã³ã é¢é£ã®å¦ç1 ãLuaLaTeXã®é
ãã®åå ã«ãªã£ã¦ãããã¨ã¯ç¢ºãã§ããæ¥æ¬èªã¨ãè±èªã¨ãæ°å¼ã¨ãã®æåãæãã¦æ¬è³ªç ãªåºåã«å¾¹ãããã¨ã«ããé
ãã®åå ã解æ¶ããããã¨ã¯ååã«æå¾
ã§ããã§ãããã
LuaLaTeXã®é
ããç»æçã«è§£æ±ºãã件
ã¨ããããã§ãLuaLaTeXãé«éåããããã®è¨å®ãã¡ã¤ã«ãã¤ãã£ã¦ã¿ã¾ãã ð
使ãæ¹ã¯ã¨ã¦ãç°¡åã§ããè¨å®ãã¡ã¤ã«2 scspeedy.lua ãã«ã¬ã³ããã£ã¬ã¯ã ãªã«ç½®ããä¸ã§ãlualatex
ã³ãã³ãã®ãªãã·ã§ã³ã«--lua=scspeedy.lua
ã追å ããã ãã§ãã
lualatex --lua=scspeedy.lua â¹ææ¸ãã¡ã¤ã«âº
å®éã«LuaLaTeXãçéã«ãã¦ã¿ã
ä¾ã¨ãã¦ãæ¨å¹´ã®Dockerã®è¨äº ã§ä½¿ã£ãææ¸ãã¡ã¤ã«ãã¿ã¤ãã»ãããã¦ã¿ã¾ãããã
\documentclass [ a4paper ]{ ltjsarticle }
\usepackage {bxjalipsum}
\begin{document}
\section { å¾è¼©ã¯ç«ã§ãã}
\jalipsum [ 1-10]{ wagahai}
\end{document}
ã¾ãã¯ãã®ææ¸ãããã¼ã®LuaLaTeXã§ã¿ã¤ãã»ãããã¦ã¿ã¾ãã
> lualatex test.tex
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024)
restricted system commands enabled.
(./test.tex
LaTeX2e <2024-11-01> patch level 1
L3 programming layer <2024-11-02>
(c:/texlive/2024/texmf-dist/tex/luatex/luatexja/ltjsarticle.cls
Document Class: ltjsarticle 2023/07/26 ltjsclasses
â¦â¦â¦(ä¸ç¥)â¦â¦â¦
Output written on test.pdf (3 pages, 166156 bytes).
Transcript written on test.log.
ãã¤ãéãã®é
ã LuaLaTeXã§ããèªåã®ç°å¢ã§ã¯å¤§ä½15ç§ãããã¾ããð« åºåçµæï¼ã®1ãã¼ã¸ç®ï¼ã¯ä»¥ä¸ã®ãããªæãã§ããtest.tex ã¯ãã®ã¬ã¤ã¢ã¦ãï¼A4å¤ï¼ã§2ãã¼ã¸åã®åéããã£ã¦ãã¾ãã
ããã¼ã®LuaLaTeXã®åºåçµæï¼éç´ æµðï¼
åãææ¸ããä»åº¦ã¯scspeedy.lua ãæå¹ã«ãã¦ã¿ã¤ãã»ãããã¦ã¿ã¾ãã
> lualatex --lua=scspeedy.lua test.tex
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024)
restricted system commands enabled.
(./test.tex [1])
270 words of node memory still in use:
1 hlist, 39 glue_spec nodes
avail lists: 1:1,2:12,3:136,4:4,5:2,9:1
Output written on test.pdf (1 page, 1832 bytes).
Transcript written on test.log.
å®éã«ãã£ã¦ã¿ãã°å¤ãã¾ãããLuaLaTeXãªã®ã«çé ã§ã¿ã¤ãã»ãããå®äºãã¾ãð² èªåã®ç°å¢ã§ã¯å¤§ä½2.5ç§ã§ãããscspeedy.lua ã®å¹æã¯æ群ã§ãããã¨ããããã¾ãã
念ã®ãããåºåã®PDFã確èªãã¦ã¿ã¾ãããã
çéã®LuaLaTeXã®åºåçµæï¼ç´ æµðï¼
ãã®éããæ¬è³ªçãªå
容ããã£ããã¨ç¶æããã¦ãã¦ããããç´ æµã«ãªã£ã¦ãã¾ãð
çéã®LuaLaTeXããã£ã¨æ¯è¼ãã¦ã¿ã
ãã£ããçéã®LuaLaTeXãæã«å
¥ããã®ã§ãã©ãã ãéãã®ããããå°ãè¨æ¸¬ãã¦ã¿ã¾ãããã次ã®4ã¤ã®ãã¿ã¼ã³ã«ã¤ãã¦ã¿ã¤ãã»ããã®ã®æè¦æéãè¨æ¸¬ãã¾ãã
â ããã¼ã®ï¼é
ãï¼LuaLaTeXã§test.tex ãã¿ã¤ãã»ããããã
â¡pLaTeX ï¼dvipdfmxã§test1.tex ãã¿ã¤ãã»ããããã
â»test1.tex ã¯test.tex ãpLaTeX ï¼dvipdfmxç¨ã«ä¿®æ£ãããã®ã
â¢pdfLaTeXã§test2.tex ãã¿ã¤ãã»ããããã
â»test2.tex ã¯ãHello, world!ãã ãã®æ¬§æææ¸ð
â£çéã®LuaLaTeXã§test.tex ãã¿ã¤ãã»ããããã
â»test1.tex ã¯test.tex ã®å
é ã®2è¡ã以ä¸ã®å
容ã«å¤æ´ãããã®ã§ãã
\documentclass [ dvipdfmx,a4paper ]{ jsarticle }
â»test2.tex ã®å
容ã¯ä»¥ä¸ã®éãã§ãã
\documentclass [ a4paper ]{ article }
\begin{document}
Hello, world!
\end{document}
çµæã¯ä»¥ä¸ã®ããã«ãªãã¾ããã
ãã¿ã¼ã³ æè¦æé
â ããã¼ ã®LuaLaTeX 15.93±0.12 ç§
â¡pLaTeX ï¼dvipdfmx 9.02±0.35 ç§
â¢pdfLaTeX 3.16±0.09 ç§
â£çé ã®LuaLaTeX 2.33±0.07 ç§
â»ç°å¢ã¯Windows10ä¸ã®TeX Live 2024ã§ãã
â»10åå®è¡ãã¦å¹³åã¨æ¨æºåå·® ãæ±ãã¾ããã
ãªãã¨ããLuaLaTeXãä¸çªéãLaTeX ã¨ã³ã¸ã³ã§ããã ã¨ããçµæã«ãªãã¾ããããã£ã±ãâã®åã¯ã¹ã´ã¤ï¼ð²
ã¾ã¨ã
ãã¯ãLuaLaTeXã®é
ããæ°ã«ããå¿
è¦ã¯ãªããªãã¾ããï¼ å®å¿ãã¦æ¬è³ªçâãªLuaLaTeXã§ç´ æµðãªææ¸ããã³ãã³ä½ãã¾ãããï¼ð