summaryrefslogtreecommitdiff
path: root/language/japanese/japanese-otf/doc/test/uplatex/direction-utf8.tex
blob: 9cadc7c5a6369072e9a618d02b3b0495e6846aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% -*- coding: utf-8 -*-
\newif\ifuptexmode\uptexmodefalse
\ifnum\jis"2121="3000 \uptexmodetrue\fi

\makeatletter

\def\@opt@{multi}
\def\@default{default}
\def\@jarticle{jarticle}
\def\@tarticle{tarticle}
\def\@utarticle{utarticle}

\ifx\option\@undefined
 \def\option{default}
\fi
\ifx\option\@default
\else
 \edef\@opt@{\option,\@opt@}
\fi

\ifx\class\@undefined
 \ifuptexmode
  \def\class{ujarticle}
 \else
  \def\class{jarticle}
 \fi
\fi

\ifuptexmode
 \edef\@opt@{uplatex,\@opt@}
\fi
\documentclass[a4paper,titlepage,draft,twocolumn]{\class}
%\documentclass[a4paper,titlepage, draft,landscape]{\class}

\usepackage[\@opt@]{otf}
\usepackage[T1]{fontenc}
%\usepackage{bookman}
%\usepackage{helvet}
\usepackage{mathptmx}
%\usepackage{mathpazo}
\usepackage{courier}
%\usepackage{txfonts}
\usepackage{plext}
\usepackage{graphicx}

\makeatother

\usepackage{redeffont}


\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}

\pagestyle{empty}

\makeatother
\begin{document}
\parindent0mm
クラス:\texttt{\class}\\
オプション:\texttt{\option}

\section{Horizontal Writing}
\parbox<y>{13zw}{
\fbox{\hbox{\large 「縦横無尽」}}\\
\fbox{\hbox{\large キュート。Cute.}}\\
\fbox{\hbox{\large \CID{8215}\CID{8216}\CID{8217}\CID{8218}\UTF{301C}\UTF{337C}\UTF{337B}\UTF{32FF}}}\\
\ifuptexmode
\fbox{\hbox{\large ㌐㌹㌨㍍㌰㌲㍿アイウエオ}}\\
\fi
\fbox{\hbox{\large TLT. TLT.}}
}

\section{Vertical Writing}
\parbox<t>{10.5zw}{
\fbox{\hbox{\large 「縦横無尽」}}\\
\fbox{\hbox{\large キュート。Cute.}}\\
\fbox{\hbox{\large \CID{8215}\CID{8216}\CID{8217}\CID{8218}\UTF{301C}\UTF{337C}\UTF{337B}\UTF{32FF}}}\\
\ifuptexmode
\fbox{\hbox{\large ㌐㌹㌨㍍㌰㌲㍿}}\\
\fi
\fbox{\hbox{\large RTT. RTR.}}
}

\section{Horizontal Writing, Rotate 270 deg}
\rotatebox{-90}{
\parbox<y>{13zw}{
\fbox{\hbox{\large 「縦横無尽」}}\\
\fbox{\hbox{\large キュート。Cute.}}\\
\fbox{\hbox{\large \CID{8215}\CID{8216}\CID{8217}\CID{8218}\UTF{301C}\UTF{337C}\UTF{337B}\UTF{32FF}}}\\
\ifuptexmode
\fbox{\hbox{\large ㌐㌹㌨㍍㌰㌲㍿アイウエオ}}\\
\fi
\fbox{\hbox{\large RTR. RTR.}}
}
}


\section{Vertical Writing, Rotate 90 deg}
\rotatebox{90}{
\parbox<t>{10.5zw}{
\fbox{\hbox{\large 「縦横無尽」}}\\
\fbox{\hbox{\large キュート。Cute.}}\\
\fbox{\hbox{\large \CID{8215}\CID{8216}\CID{8217}\CID{8218}\UTF{301C}\UTF{337C}\UTF{337B}\UTF{32FF}}}\\
\ifuptexmode
\fbox{\hbox{\large ㌐㌹㌨㍍㌰㌲㍿}}\\
\fi
\fbox{\hbox{\large TLL. TLT.}}
}
}

\end{document}