1 %#! lualatex -shell-escape tc11-slide.tex
2 \documentclass[notheorems,12pt,hyperref={unicode=true}]{beamer}
3 \usepackage{luatexja,luatexja-otf,luatexja-fontspec,showexpl,lltjlisting}
4 \usepackage{mathtools,graphicx,pict2e}
5 \usepackage{amsmath,bm,mflogo,booktabs}
11 \useinnertheme{rectangles}
14 \usecolortheme{dolphin}
15 \setbeamertemplate{navigation symbols}{}
16 \setbeamertemplate{headline}{}
19 \definecolor{purple}{rgb}{0.60, 0.0, 1.0}
20 \definecolor{green}{rgb}{0.0, 0.60, 0.0}
21 \definecolor{lblue}{rgb}{0.30, 0.0, 1.00}
22 \definecolor{gray}{rgb}{0.60, 0.60, 0.60}
23 \definecolor{linenavy}{rgb}{0.0 ,0.0 ,0.50}
24 \definecolor{linesky}{rgb} {0.50,0.75,1.00}
25 \newdimen\lineheight \lineheight=6pt
27 \noindent\null\hskip-30pt\setbox0=\hbox{%
28 {\color{linenavy}\vrule height \lineheight width #1\lineheight}%
29 \kern 0.2\lineheight{\color{linenavy!80!linesky}\vrule height\lineheight width 0.6\lineheight}%
30 \kern 0.2\lineheight{\color{linenavy!60!linesky}\vrule height\lineheight width 0.52\lineheight}%
31 \kern 0.2\lineheight{\color{linenavy!40!linesky}\vrule height\lineheight width 0.44\lineheight}%
32 \kern 0.2\lineheight{\color{linenavy!20!linesky}\vrule height\lineheight width 0.36\lineheight}%
33 \kern 0.2\lineheight}\copy0\nobreak
34 \@tempdima=\textwidth\advance\@tempdima64pt\advance\@tempdima-\wd0
35 \hbox to 0pt{\color{linesky}\vrule height \lineheight width \@tempdima \hss}\par
37 \setbeamertemplate{frametitle}{
38 \noindent\insertframetitle\par\vskip-8pt\lines{12}\vskip-16pt
40 \setbeamertemplate{footline}{
42 \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,
43 leftskip=.3cm,rightskip=.3cm]{author in head/foot}%
44 \usebeamerfont{author in head/foot}\ \hfill \insertshortauthor
46 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,
47 leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
48 \usebeamerfont{title in head/foot}\insertshorttitle
49 \end{beamercolorbox}}%
52 \expandafter\let\csname beamer@@tmpop@title page@default\endcsname=\relax
53 \defbeamertemplate*{title page}{default}[1][]
58 \begin{beamercolorbox}[sep=8pt,center,#1]{title}
59 \usebeamerfont{title}\inserttitle
65 \begin{beamercolorbox}[sep=8pt,center,#1]{author}
66 \usebeamerfont{author}\insertauthor
68 \begin{beamercolorbox}[sep=8pt,center,#1]{date}
69 \usebeamerfont{date}\insertdate
78 \tableofcontents[currentsection,hideothersubsections]
82 \setbeamercolor{structure}{fg=linenavy}
83 \setbeamercolor{author in head/foot}{fg=white,bg=linenavy}
84 \setbeamercolor{title in head/foot}{fg=black,bg=linesky}
85 \setbeamercolor{block title}{bg=linenavy!50!linesky,fg=white}
86 \setbeamercolor{block body}{fg=black,bg=linesky!20!white}
87 \setbeamertemplate{section in toc}{■\null\inserttocsection\par\smallskip}
88 \setbeamerfont{section in toc}{size=\normalsize}
89 \setbeamerfont{title}{size=\Large, series=\bfseries}
90 \setbeamerfont{frametitle}{size=\Large, series=\bfseries, shape=\upshape}
93 \DeclareFontShape{JY3}{gt}{bx}{n}{ <-> s*[0.924872] psft:GothicBBB-Medium,Bold:jfm=ujis}{}
94 \DeclareFontShape{JY3}{gt}{m}{n}{ <-> s*[0.924872] psft:GothicBBB-Medium:jfm=ujis}{}
95 \DeclareFontShape{JY3}{mc}{m}{n}{ <-> s*[0.924872] psft:Ryumin-Light:jfm=ujis}{}
96 \def\notice#1{{\color{blue!50!black}#1}}
97 \def\alert#1{{\color{red}\bfseries#1}}
100 \catcode`\|=13\def|{\char92 }
101 \def\{{{\ttfamily\char`\{}}
102 \def\}{{\ttfamily\char`\}}}
103 \ltjsetparameter{alxspmode={`\\,allow}}
104 \lstset{numbers=left, basicstyle=\ttfamily}
107 \title{Lua\TeX-jaの開発}
108 \author[北川 弘典]{北川 弘典\\\footnotesize(Lua\TeX-jaプロジェクトチーム)}
122 \frametitle{Lua\TeX-ja}
125 \text{\TeX}\ar[r]\ar[d]&\text{$\varepsilon$-\TeX}\ar[d]\ar[r]
126 &\text{pdf\TeX}\ar[r]&\text{Lua\TeX}\ar@{-->}[d]\\
127 \text{p\TeX}\ar[r]&\text{$\varepsilon$-p\TeX}
128 \ar@{-->}[rr]&&\text{\alert{Lua\TeX-ja}}
133 Lua\TeX-jaは,Lua\TeX 上で日本語組版を実現させるマクロパッケージである.
137 \begin{frame}[fragile]
139 {\large\begin{align*}
140 \text{Lua\TeX}&\simeq \text{pdf\TeX}+ \text{Lua}+\text{\MP}\\
141 &\qquad+\text{Omega}+\text{OpenType}+ \cdots
145 \item pdfへの直接出力(pdf\TeX の後継)
146 \item Unicodeへの対応{\small (SIP内の文字も余裕)}
147 \item TrueType/OpenTypeフォントの直接利用
148 \item Luaスクリプトで\TeX 内部処理のカスタマイズが可能\\
149 \quad →もはやエンジンレベルで拡張する必要はない
152 \footnotesize 詳しくは,昨年度の八登さんの講演を参照.
159 \alert{\bfseries\large
160 p\TeX のプリミティブに対応する機能から実装.}%
161 \end{flushleft}\vskip-\medskipamount
163 \item 以前から存在した,Lua\TeX で日本語組版を行う実験:
165 \item \texttt{luaums.sty}(北川)\\\quad
166 {\small 適当にでっち上げた最低限の実装.}
167 \item \texttt{luajalayout}パッケージ(作者:前田一貴)\\\quad
168 {\small フォント合成・fontspecパッケージを用いた実装.}
170 は「\LaTeX ベース」で,組版の調整機能が不足していた.\medskip
171 \item 最低でもp\TeX と同等の組版の自由度を確保する.
178 \alert{\bfseries\large
179 p\TeX と100\%の互換性は目指さない.}%
180 \end{flushleft}\vskip-\medskipamount
182 \item p\TeX の不都合・不可解な点があれば,積極的に改める.
183 \item p\TeX と全く同じ文法・動作の実装は事実上不可能.
184 \end{itemize}\medskip
186 \alert{\bfseries\large
187 最終的に,(空白挿入等の)仕様を文書化する.}
188 \end{flushleft}\vskip-\medskipamount
189 とは言いながら,ドキュメントはまだまだ未完成.
192 \subsection{使い方: plain \TeX}
194 \frametitle{\only<1>{plain p\TeX 用ソース}\only<2>{``plain Lua\TeX-ja''用ソース}}
195 \begin{flushleft}\ttfamily
196 \only<2>{\alert{|input luatexja.sty} \notice{\% \normalfont Lua\TeX-ja本体}}\ \\
197 |hsize=20\alert{\only<2>{|zw}}\only<1>{zw}\\
198 \only<1>{|font|bigmc=jis at 14.4pt}
199 \alert{\only<2>{|jfont|bigmc=psft:Ryumin-Light:jfm=ujis at14.4pt}}\\
200 \notice{\ \ \% 和文フォント定義}\\
202 \{|bigmc 大きい文字だよ.\}\\
207 \item {\tt luatexja.sty}を読み込む{\footnotesize(これがないと話が始まらない)}
208 \item {\tt zw}, {\tt zh}は{\tt |zw}, {\tt |zh}に.
209 \item 和文フォント定義は{\tt |jfont}のみ可.書式も変化.
214 \subsection{使い方: \LaTeX}
216 \frametitle{\only<1>{p\LaTeX}\only<2>{``Lua\LaTeX-ja''}用ソース}
217 \begin{flushleft}\ttfamily
218 |documentclass[a4paper,10pt]\{\only<1>{jsarticle}\alert{\only<2>{ltjsarticle}}\}\\
219 |usepackage\{lmodern\}|begin\{document\}\\
220 「これはまったく意味がない日本語の文だ.」\\
221 (あいう)\{|large|gtfamily(abcゴシック)\}\\
223 何かalphabet(欧文文字)も打ってみるか.\\
224 \only<1>{\notice{\%}}\only<2>{\$|zeta(2) |simeq}\\
225 \only<2>{\ \ |directlua\{tex.print(math.pi\char`\^2/6)\}\$.}\only<1>{\notice{\%}}\\
230 \item クラスを\alert{Lua\TeX-ja 同梱のもの}に変える.
231 \item 欧文用クラスに対しても,{\ttfamily|usepackage\{luatexja\}}で\\
241 \fbox{\large\parbox{20\zw}{\parindent=1\zw%
242 \fontfamily{mc}\fontfamily{rm}\selectfont
244 「これはまったく意味がない日本語の文だ.」
245 (あいう){\Large\gtfamily(abcゴシック)}
247 何かalphabet(欧文文字)も打ってみるか.
249 \directlua{tex.print(math.pi^2/6)}$.
260 \begin{center}\unitlength=10mm
261 \begin{picture}(9.2,6.5)
265 \color{lblue!20!white}
266 \put(0,0){\vrule width 9.2\unitlength height 3.2\unitlength depth 0pt}
267 \put(7.2,3.2){\vrule width 2\unitlength height 3.3\unitlength depth 0pt}
269 \put(0,0){\line(1,0){9.2}}
270 \put(0,0){\line(0,1){3.2}}
271 \put(9.2,0){\line(0,1){6.5}}
272 \put(0,3.2){\line(1,0){7.2}}
273 \put(7.2,3.2){\line(0,1){3.3}}
274 \put(7.2,6.5){\line(1,0){2}}
275 \color{lblue!50!black}
276 \put(4.6,1.6){\makebox(0,0)[c]{「エンジン拡張」}}
278 % primitive (detailed)
281 \color{linenavy!20!white}
282 \put(0,0){\vrule width 9.2\unitlength height \unitlength depth 0pt}
284 \put(0,0){\line(1,0){9.2}}
285 \put(0,0){\line(0,1){1}}
286 \put(0,1){\line(1,0){9.2}}
287 \put(9.2,0){\line(0,1){1}}
288 \color{linenavy!50!black}
289 \put(4.6,0.5){\makebox(0,0)[c]{実際の組版処理用Luaコード}}
290 \color{blue!20!white}
291 \put(0,1.1){\vrule width 9.2\unitlength height \unitlength depth 0pt}
293 \put(0,1.1){\line(1,0){9.2}}
294 \put(0,1.1){\line(0,1){1}}
295 \put(0,2.1){\line(1,0){9.2}}
296 \put(9.2,1.1){\line(0,1){1}}
297 \color{blue!50!black}
298 \put(4.6,1.6){\makebox(0,0)[c]{パラメタ設定用Luaコード}}
299 \color{lblue!20!white}
300 \put(0,2.2){\vrule width 9.2\unitlength height \unitlength depth 0pt}
301 \put(7.2,3.2){\vrule width 2\unitlength height 3.3\unitlength depth 0pt}
303 \put(0,2.2){\line(1,0){9.2}}
304 \put(0,2.2){\line(0,1){1}}
305 \put(9.2,2.2){\line(0,1){4.3}}
306 \put(0,3.2){\line(1,0){7.2}}
307 \put(7.2,3.2){\line(0,1){3.3}}
308 \put(7.2,6.5){\line(1,0){2}}
309 \color{lblue!50!black}
310 \put(4.6,2.7){\makebox(0,0)[c]{\TeX インターフェース}}
313 \color{green!20!white}
314 \put(0,3.3){\vrule width 2\unitlength height 3.2\unitlength depth 0pt}
316 \put(0,3.3){\line(1,0){2}}
317 \put(0,3.3){\line(0,1){3.2}}
318 \put(2,3.3){\line(0,1){3.2}}
319 \put(0,6.5){\line(1,0){2}}
320 \color{green!50!black}
321 \put(1,4.9){\makebox(0,0)[c]{\parbox[c]{7\zw}{\centering plain \TeX\\対応}}}
323 \color{purple!20!white}
324 \put(2.1,3.3){\vrule width 5\unitlength height \unitlength depth 0pt}
326 \put(2.1,3.3){\line(1,0){5}}
327 \put(2.1,3.3){\line(0,1){1}}
328 \put(7.1,3.3){\line(0,1){1}}
329 \put(2.1,4.3){\line(1,0){5}}
330 \color{purple!50!black}
331 \put(4.6,3.8){\makebox(0,0)[c]{\LaTeX 対応}}
333 \color{gray!20!white}
334 \put(2.1,4.4){\vrule width 5\unitlength height \unitlength depth 0pt}
336 \put(2.1,4.4){\line(1,0){5}}
337 \put(2.1,4.4){\line(0,1){1}}
338 \put(7.1,4.4){\line(0,1){1}}
339 \put(2.1,5.4){\line(1,0){5}}
340 \color{gray!50!black}
341 \put(4.6,4.9){\makebox(0,0)[c]{日本語用クラスファイル}}
342 % patches for packages
344 \put(2.1,5.5){\vrule width 5\unitlength height \unitlength depth 0pt}
346 \put(2.1,5.5){\line(1,0){5}}
347 \put(2.1,5.5){\line(0,1){1}}
348 \put(7.1,5.5){\line(0,1){1}}
349 \put(2.1,6.5){\line(1,0){5}}
351 \put(4.6,6.0){\makebox(0,0)[c]{各種パッケージへの対応}}
356 \subsection{「エンジン拡張」部分・plain \TeX 対応}
358 \frametitle{「エンジン拡張」部分・plain \TeX 対応}
361 \color{linenavy!50!black}概ね実装完了,テスト段階.
362 \end{flushleft}\vskip-\medskipamount
364 \item 和文フォントの(欧文フォントとの)独立管理
365 \item 和文文字間・和欧文間の空白挿入
367 \item 欧文・和文のベースライン上下移動
368 \item 和文文字直後の改行での空白挿入抑制\alert{(限定的)}
369 \item \alert{縦書き関連はまだ}.また,\alert{速度が非常に遅い}.
371 しかし,細かい仕様変更はまだ行う可能性はある.
374 \subsection{\LaTeX 対応}
376 \frametitle{\LaTeX 対応}
379 \color{purple!50!black}(横組みに関する)大半のp\LaTeXe 拡張を実装.
380 \end{flushleft}\vskip-\medskipamount
382 \item 和文フォントの管理(\texttt{plfonts.dtx}相当)
383 \item \LaTeX カーネルへのパッチ(\texttt{plcore.dtx}相当)\\
389 \item 日本語用クラスファイルを試験的に作成.\\
390 {\small(しかし,最終的にどうなるかは未決定)}
392 \def\ {\setbox0=\hbox{M}\hskip\wd0}
393 \item \alert{\texttt{ltjclasses\ }}: \texttt{jclasses\ }%
394 \hskip\ltjgetparameter{xkanjiskip}のLua\TeX-ja対応版
395 \item \alert{\texttt{ltjsclasses}}: \texttt{jsclasses}のLua\TeX-ja対応版
401 \subsection{fontspec等への対応}
403 \begin{frame}[fragile]
404 \frametitle{fontspec等への対応}
405 \noindent\textbf{fontspec対応}
407 \item \verb+luatexja-fontspec+パッケージを使用する.
408 \item 和文フォント用命令は\verb+\setmainjfont+, \verb+\setsansjfont+のように「j」がつく.
411 \noindent\textbf{OTFパッケージの機能}
413 \item \verb+luatexja-otf+パッケージを使用する.
414 \item 例:「\verb+\CID{8705}と高+」→\quad\CID{8705}と高
415 \item \verb+\CID+, \verb+\UTF+と,\texttt{ajmacros.sty}の一部機能が実装.
420 \section{p\TeX との主要な変更点}
423 \def\.#1{{\rm\fontshape{it}\selectfont$\langle$#1$\rangle$}}
426 {\large 殆どの組版パラメタは\texttt{|ltjsetparameter}にkey-valueリストを渡すことで設定.}
431 \multicolumn{2}{l}{\bf 和欧文間空白}\\
433 |ltjsetparameter\{xkanjiskip=\.{length}\}\\
435 |ltjgetparameter\{xkanjiskip\}\sf\ (as string)\\\midrule
436 \multicolumn{2}{l}{\bf 禁則用ペナルティ\hss}\\
439 &\tt\hskip2emprebreakpenalty=\{\.{chr\_code},\.{penalty}\}\}\\
442 &\tt\hskip2em\{prebreakpenalty\}\{\.{chr\_code}\}\sf\ (as string)\\
448 \begin{frame}[fragile]
449 \frametitle{和文フォントの指定方法}
452 \tt\Large |jfont|piyo=\textcolor{green}{psft:FutoMinA101-Bold}\\
453 \hskip5em:\textcolor{blue}{jfm=ujis};...\ \textcolor{red}{at 15pt}
457 \begin{description}[metric]\def\makelabel#1{\hbox to \labelwidth{\bf#1}}
458 \item[\textcolor{green}{字形}]
459 OpenType/TrueTypeフォントも可.\\
460 prefix \texttt{psft:}で非埋込フォントを指定可能.
461 \item[\textcolor{blue}{metric}] p\TeX のJFMに相当するが,若干設定項目が増加.\\
462 上の例では\texttt{jfm-\textcolor{blue}{ujis}.lua}が使われる.
463 \item[\textcolor{red}{サイズ}]\
467 \jfont\piyo=psft:FutoMinA101-Bold:jfm=ujis at 15pt
474 \newdimen\bx\bx=3.2pt
477 \def\fw#1#2#3#4#5{\fboxsep0pt\vtop{\centering\by=#3\bx\hsize=\by
478 \leavevmode\fcolorbox{#4}{#4!25!white}{%
479 \hbox to\by{\fontsize{\by}{\by}\selectfont\color{black}%
480 \inhibitglue#1\inhibitglue}}\par\vskip5pt#2\par#5}\ignorespaces}
481 \def\hw#1#2#3#4#5{\fboxsep0pt\vtop{\centering\by=#3\bx\hsize=0.5\by
482 \leavevmode\fcolorbox{#4}{#4!25!white}{%
483 \hbox to0.5\by{\fontsize{\by}{\by}\selectfont\color{black}%
484 \inhibitglue#1\inhibitglue}}\par\vskip5pt#2\par#5}\ignorespaces}
485 \def\spc#1#2{\fboxsep0pt\vtop{\centering\by=#1\bx\hsize=0.5\by
486 \leavevmode\color{#2}\vrule width 0.5\by height 2pt depth 2pt}\ignorespaces}
487 \def\bar{\vrule width 0.4pt height 5pt depth 5pt}
490 \frametitle{空白挿入の単位:\only<1>{p\TeX}\only<2>{\alert{Lua\TeX-ja}}の場合}
492 \textbf{入力例:\quad}{\large\tt
493 \textcolor{green}{$\underbracket{\mathstrut\hbox{)\{\}(}}_{\scriptstyle 1}$}%
494 \textcolor{blue}{$\underbracket{\mathstrut\hbox{)|typeout\{\}(}}_{\scriptstyle 2}$}%
495 \textcolor{red}{$\underbracket{\mathstrut\hbox{)\{|gt (}}_{\scriptstyle 3}$}\}}
498 \vskip-\bigskipamount
501 \hw{\fontfamily{mc}\selectfont )}{jis}{10}{green}{\ }
504 \hw{\fontfamily{mc}\selectfont (}{jis}{10}{green}{}
505 \hw{\fontfamily{mc}\selectfont )}{jis}{10}{blue}{}
507 \hw{\hss\setbox0=\hbox{\rotatebox{270}{\small whatsit}}\raise.5\dp0\copy0\hss}{}{10}{blue}{}
509 \hw{\fontfamily{mc}\selectfont (}{jis}{10}{blue}{}
510 \hw{\fontfamily{mc}\selectfont )}{jis}{10}{red}{}
513 \hw{(}{jisg}{10}{red}{}
516 \hw{\fontfamily{mc}\selectfont )}{ujis}{10}{green}{R}
518 \hw{\fontfamily{mc}\selectfont (}{ujis}{10}{green}{R}
519 \hw{\fontfamily{mc}\selectfont )}{ujis}{10}{blue}{R}
520 \hw{\hss\setbox0=\hbox{\rotatebox{270}{\small whatsit}}\raise.5\dp0\copy0\hss}{}{10}{blue}{}
522 \hw{\fontfamily{mc}\selectfont (}{ujis}{10}{blue}{R}
523 \hw{\fontfamily{mc}\selectfont )}{ujis}{10}{red}{R}
525 \hw{(}{ujis}{10}{red}{G}
529 \vskip-\medskipamount
530 \vbox to 5\baselineskip{%
532 \alert{入力ソース中で連続していなければ,空白挿入処理は分断.}\\
533 元来の\TeX でも,{\tt of\{\}fice}では合字は抑制される.
537 \item \alert{水平リスト内に寄与しないものは無視}\\
538 Lua\TeX でも,{\tt of\{\}fice}では合字は抑制されない
540 \item 例え\textcolor{green}{字形}が異なっても,
541 \textcolor{blue}{metric}と\textcolor{red}{サイズ}が同じならば,
542 空白挿入処理では同じフォントとして扱われる\\
543 (違うフォントとして扱うことも設定により可能)
549 \frametitle{異フォントの文字:p\TeX の場合}
551 \pTeX では,異なるフォントの文字間には,\\
552 両者のJFM由来の空白が(両方別々に)入る:
557 \vtop{\parindent=0pt\hsize=40pt\ \par\vskip5pt JFM\par size}
558 \fw{\fontfamily{mc}\selectfont あ}{jis}{10}{green}{10}
559 \hw{\fontfamily{mc}\selectfont 〗}{\textcolor{green}{jis}}{10}{green}{10}
560 \spc{10}{green}\bar\spc{10}{blue}
561 \hw{〖}{\textcolor{blue}{jisg}}{10}{blue}{10}
562 \fw{い}{jisg}{10}{blue}{10}
563 \hw{】}{jisg}{10}{blue}{\textcolor{blue}{10}}
564 \spc{10}{blue}\bar\spc{14.4}{red}
565 \hw{【}{jisg}{14.4}{red}{\textcolor{red}{14.4}}
566 \fw{う}{jisg}{14.4}{red}{14.4}
570 \smash{\spc{10}{green}\bar\spc{10}{blue}\hskip7.04pt}%
571 :$\textcolor{green}{5\,\text{pt\footnotesize (左側由来)}}
572 +\textcolor{blue}{5\,\text{pt\footnotesize (右側由来)}}=10\,\text{pt}$
574 \smash{\spc{10}{blue}\bar\spc{14.4}{red}}%
575 :$\textcolor{blue}{5\,\text{pt\footnotesize (左側由来)}}
576 +\textcolor{red}{7.2\,\text{pt\footnotesize (右側由来)}}=12.2\,\text{pt}$
580 \frametitle{異フォントの文字:\alert{Lua\TeX-ja} の場合}
582 Lua\TeX-jaにおいて,異なるフォントの文字間には,\\
583 両者のmetric由来の空白の\alert{平均}値が入る{\small(設定で変更可)\inhibitglue\hbox{}}:
589 \vtop{\parindent=0pt\hsize=40pt\ \par\vskip5pt metric\par size}
590 \fw{\fontfamily{mc}\selectfont あ}{min}{10}{green}{10}
591 \hw{\fontfamily{mc}\selectfont〗}{\textcolor{green}{min}}{10}{green}{10}
592 \spc{10}{green!50!blue}
593 \hw{〖}{\textcolor{blue}{ujis}}{10}{blue}{10}
594 \fw{い}{ujis}{10}{blue}{10}
595 \hw{】}{ujis}{10}{blue}{\textcolor{blue}{10}}
597 \hw{【}{ujis}{14.4}{red}{\textcolor{red}{14.4}}
598 \fw{う}{ujis}{14.4}{red}{14.4}
602 \smash{\spc{10}{blue!50!green}\hskip3.52pt}%
603 :$(\textcolor{green}{5\,\text{pt\footnotesize (左側由来)}}
604 +\textcolor{blue}{5\,\text{pt\footnotesize (右側由来)}})/2=5\,\text{pt}$
606 \smash{\spc{12.2}{purple}}%
607 :$(\textcolor{blue}{5\,\text{pt\footnotesize (左側由来)}}
608 +\textcolor{red}{7.2\,\text{pt\footnotesize (右側由来)}})/2=6.1\,\text{pt}$
612 \subsection{和文文字直後の改行}
613 \begin{frame}[fragile]
614 \frametitle{和文文字直後の改行}
615 {\bf\large Lua\TeX の仕様により,限定的な実装}
619 \alert{その行を入力から読み込む前}の内部状態で決まる.
622 \textbf{入力例}:\hskip2\zw\unitlength=1\zw
623 {\color{green}\begin{picture}(0,0)\thicklines\put(0,0.38){\vector(0,-1){1.1}}\end{picture}%
626 {\color{green}|ltjsetparameter\{jacharrange=\{-6\}\}}xあ\\
630 →出力は「xy」となる(\alert{行末空白は入らない}).
632 ∵1行目を入力から読み込む時点で,「あ」は和文文字扱い.
639 \item 日本語組版をLua\TeX 上で行うパッケージ.
640 \item p\TeX をかなり意識しているが,\\ 100\% 互換とはならない.
641 \item \LaTeX, fontspec用コードが試験的に整備され,ある程度は使える.
642 しかし,バグが埋まっている可能性ありなので,使用には注意.
650 \frametitle{Lua\TeX-ja プロジェクトについて}
652 \item \textbf{公式ページ}\\
653 {\tt http://sourceforge.jp/projects/\alert{luatex-ja}/\\\hfill wiki/FrontPage}
654 \item まだ安定版のリリースはない.\\スナップショットがダウンロード可能.
655 \item \textbf{開発メンバー}