OSDN Git Service

unicode library -> utf
[luatex-ja/luatexja.git] / test / test12-ltjtarticle.tex
1 % %#!ptex2pdf -l test12-ltjtarticle.tex
2 \let\ifydir=\iftrue
3 \ifdefined\directlua
4   \documentclass{ltjtarticle}
5 \else
6   \documentclass{tarticle}
7   \def\zw{zw}
8   \usepackage{lltjp-geometry}
9   \makeatletter
10   \renewcommand\@makefnmark{%
11     \ifydir \hbox{}\hbox{\@textsuperscript{\normalfont\@thefnmark}}\hbox{}%
12     \else\hbox{\yoko\@textsuperscript{\normalfont\@thefnmark}}\fi}
13   \makeatother
14 \fi
15 %\usepackage{sansmathfonts}
16 \usepackage[no-math]{fontspec}
17 \usepackage[b5j,lines=20, textwidth=30\zw]{geometry}
18 \usepackage[kozuka-pr6n]{luatexja-preset}
19 \addjfontfeatures{TateFeatures={Opacity=0.5, Color=red, JFM=tmin}}
20 \title{ぴよ}
21 \author{誰かhoge}
22 \begin{document}
23 \maketitle
24 {\obeylines\texttt{%
25 %baselineshift: \ltjgetparameter{talbaselineshift}
26 topskip: \the\topskip
27 maxdepth: \the\maxdepth
28 textheight: \the\textheight
29 baselineskip: \the\baselineskip}\par}
30
31 酵素(こうそ)とは、生体で起こる化学反応に対して触媒として能機する分子である。酵素によって触媒される反応を“酵素的”反応という。
32
33 酵素は生物が物質を消化する段階から吸収・輸送・代謝・排泄に至るまでのあらゆる過程に関与しており、生体が物質をj変化させて利用するのに欠かせない。したがって、酵素は生化学研究における一大分野であり、早い段階から研究対象になっている。
34
35 多くの酵素は生体内で作り出されるタンパク質を基にして構成されている。したがって、生体内での
36 生成や分布の特性、熱や pH によって変性して活性を失う(失活)といった特性などは、他のタンパ
37 ク質\marginpar{「あっ!」と驚く}と同様である。
38
39 生体を機関に例えると、核酸塩基配列が表すゲノムが設計図に相当するのに対して、生体内における酵素は組立て工具に相当する。酵素の特徴である作用する物質(基質)をえり好みする性質(基質特異性)と目的の反応だけを進行させる性質(反応選択性)などによって、生命維持に必要なさまざまな化学変化を起こさせるのである。
40
41 古来から人類は発酵という形で酵素を利用してきた。今日では、酵素の利用は食品製造だけにとどまらず、化学工業製品の製造や日用品の機能向上など、広い分野に応用されている。医療においても、酵素量を検査して診断したり、酵素作用を調節する治療薬を用いるなど、酵素が深く関っている。
42
43 \begin{flushright}
44 (Wikipedia日本語版の「酵素」より)
45 \end{flushright}
46
47 \def\R{01234567890123456789}
48 \def\S{\R\R\R\R\R\R\R\R\R\R\R\R あ\footnote{脚注}\R\R\R\R\R\R\R\R\R\par}
49
50 連数字のテスト\rensuji{42}\S\S
51 \leavevmode \leaders\hbox{2}\hskip2pt
52
53 あいうえおabc$-\vcenter{\noindent abc}$あいう$adxvsv\footnote{あいうえおabc}Ha$.
54
55 \newpage
56
57 \newpage
58 \ExplSyntaxOn
59 \cs_new:Nn \my_test_dir: {\texttt{
60   \platex_if_direction_yoko:T { Y }
61   \platex_if_direction_tate_nomath:T { T }
62   \platex_if_direction_dtou:T { D }
63   \platex_if_direction_utod:T { U }
64   \space
65   \platex_if_direction_tate:T { Tx }
66   \platex_if_direction_tate_math:T { Tm }
67 }}
68 \cs_new:Nn \my_test_box: {\texttt{
69   \platex_if_box_yoko:NT \l_tmpa_box { Y }
70   \platex_if_box_tate_nomath:NT \l_tmpa_box { T }
71   \platex_if_box_dtou:NT \l_tmpa_box { D }
72   \platex_if_box_utod:NT \l_tmpa_box { U }
73   \space
74   \platex_if_box_tate:NT \l_tmpa_box { Tx }
75   \platex_if_box_tate_math:NT \l_tmpa_box { Tm }
76 }}
77
78 \mode_leave_vertical:
79 \hbox:n { \platex_direction_yoko: ABCあーいう \my_test_dir: }
80 \hbox:n { \platex_direction_tate: ABCあーいう \my_test_dir: }
81 \hbox:n { \platex_direction_dtou: ABCあーいう \my_test_dir: }
82
83 \par
84 \mode_leave_vertical:
85 \hbox:n { \platex_direction_tate: $\hbox{PBCあーいう \my_test_dir:}$ }
86 \hbox:n { \platex_direction_utod: ABCあーいう \my_test_dir: }
87
88 \par
89 1.~\hbox_set:Nn \l_tmpa_box { \platex_direction_yoko: ABCあーいう } \my_test_box:\par
90 2.~\hbox_set:Nn \l_tmpa_box { \platex_direction_tate: ABCあーいう } \my_test_box:\par
91 3.~\hbox_set:Nn \l_tmpa_box { \platex_direction_dtou: ABCあーいう } \my_test_box:\par
92 4.~\hbox_set:Nn \l_tmpa_box { \platex_direction_utod: ABCあーいう } \my_test_box:\par
93 5.~\hbox:n { \platex_direction_tate: $ \hbox_gset:Nn \l_tmpa_box { ABCあーいう } $ } \my_test_box:
94 \ExplSyntaxOff
95
96
97 \newpage
98 \dtou
99 あいうえお\footnote{あいうえおabc}あ
100
101 \end{document}