<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper]{bxjsarticle}
\usepackage[oldxetex]{zxjatype}
\setjamainfont{IPAæ˜Žæœ}
\setjasansfont{IPAã‚´ã‚·ãƒƒã‚¯}
\setjamonofont{IPAã‚´ã‚·ãƒƒã‚¯}
\usepackage{xltxtra}
% æ¬§æ–‡ã¯æ—¢å®šã® LM ãƒ•ã‚©ãƒ³ãƒˆ
\begin{document}
\title{{\XeLaTeX}ã§æ—¥æœ¬èªžã™ã‚‹ä»¶ã«ã¤ã„ã¦}
\author{ZR}
\date{2010å¹´\ æŸæœˆ\ æŸæ—¥}
\maketitle

\section{{\XeTeX}\&gt;ã®ç´¹ä»‹}

\subsection{{\XeTeX}\&gt;ã¨ã¯}

{\XeTeX}\&gt;ã¯Jonathan Kewæ°ã«ã‚ˆã‚‹\&gt;{\TeX}\&gt;ã®æ‹¡å¼µã§ç¬¦å·ç©ºé–“ã‚’
Unicodeå…¨ä½“ï¼ˆBMPä»¥å¤–ã‚‚å«ã‚€ï¼‰ã«æ‹¡å¤§ã—ãŸã‚‚ã®ã§ã‚ã‚‹ã€‚
æ—¢å­˜ã®\&gt;{\TeX}\&gt;ã®Unicodeæ‹¡å¼µã¨ã—ã¦ã¯Omegaï¼ˆÎ©ï¼‰
ãŒã‚ã‚‹ãŒã€{\XeTeX}\&gt;ã¯ã“ã‚Œã¨ã¯åˆ¥ã®æ‹¡å¼µã¨ãªã£ã¦ã„ã‚‹ã€‚%
ï¼ˆãªãŠã€Omegaã®å¾Œç¶™ã«ã‚ãŸã‚‹Unicodeæ‹¡å¼µ\&gt;{\TeX}\&gt;ãŒ\&gt;%
{Lua\TeX}\&gt;ã§ã‚ã‚‹ã€‚ï¼‰

{\XeTeX}\&gt;ã®ã‚‚ã†ä¸€ã¤ã®å¤§ããªç‰¹å¾´ã¯ã€ç¾åœ¨ã®æ¨™æº–çš„ãªãƒ•ã‚©ãƒ³ãƒˆæŠ€è¡“ã‚’
å†…éƒ¨ã«å–ã‚Šè¾¼ã‚“ã§ã„ã‚‹ã“ã¨ã§ã‚ã‚‹ã€‚
å…ƒã€…ã®\&gt;{\TeX}\&gt;ãŒã€Œç‰¹å®šã®æŠ€è¡“åŸºç›¤ã«ä¾å­˜ã—ãªã„ã€ã¨ã„ã†æ€æƒ³ã§è¨­è¨ˆã•ã‚Œã¦ã„ã‚‹
ã“ã¨ã¯ã‚ˆãçŸ¥ã‚‰ã‚Œã¦ã„ã‚‹ãŒã€ã“ã‚Œã¯ãƒ•ã‚©ãƒ³ãƒˆé–¢ä¿‚ã®æŠ€è¡“ã«ã¤ã„ã¦ã‚‚å½“ã¦ã¯ã¾ã‚Šã€
ãƒ•ã‚©ãƒ³ãƒˆã®æ‰±ã„ã¯\&gt;{\TeX}\&gt;æœ¬ä½“ï¼ˆã™ãªã‚ã¡\&gt;{\TeX}\&gt;ã‚½ãƒ¼ã‚¹ã‚’DVI%
ãƒ•ã‚¡ã‚¤ãƒ«ã«å¤‰æ›ã™ã‚‹ï¼‰ã§ã¯ãªãDVIã‚¦ã‚§ã‚¢ï¼ˆDVIãƒ•ã‚¡ã‚¤ãƒ«ã‚’æ‰±ã†
ã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ï¼‰ãŒè¡Œã†ã€‚
ã“ã®ãŸã‚ã€{\TeX}\&gt;ã®æ©Ÿèƒ½è‡ªä½“ã¯30å¹´å‰ã‹ã‚‰ã»ã¨ã‚“ã©å¤‰ã‚ã£ã¦ã„ãªã„ã«ã‚‚
é–¢ã‚ã‚‰ãšã€dvipdfmxã¨çµ„ã¿åˆã‚ã›ã¦OpenTypeãƒ•ã‚©ãƒ³ãƒˆã‚’åŸ‹ã‚è¾¼ã‚“ã&nbsp;%
PDFæ–‡æ›¸ã‚’ä½œæˆã™ã‚‹ã¨ã„ã†ã“ã¨ãŒå¯èƒ½ã«ãªã£ã¦ã„ã‚‹ã€‚
ã—ã‹ã—ãã®ä»£å„Ÿã¨ã—ã¦ã€ä¾‹ãˆã°æ–°ã—ã„ãƒ•ã‚©ãƒ³ãƒˆã‚’ä½¿ãˆã‚‹ã‚ˆã†ã«ã™ã‚‹ãŸã‚ã«ä¸€å®šã®ä½œæ¥­ãŒ
å¿…è¦ã«ãªã‚‹ãªã©ã®çŸ­æ‰€ã‚’æŒã¡åˆã‚ã›ã¦ã„ã‚‹ã€‚
{\XeTeX}\&gt;ã¯ã“ã®ç‚¹ã«é–¢ã—ã¦ã€Œéžä¾å­˜æ€§ã€ã‚’æ¨ã¦ã¦ã€ã‚·ã‚¹ãƒ†ãƒ&nbsp;ã§ä½¿ç”¨å¯èƒ½ãª
ãƒ•ã‚©ãƒ³ãƒˆã‚’ç›´æŽ¥æ‰±ã†ã“ã¨ã§ã€ä½•ã‚‚è¨­å®šã—ãªãã¦ã‚‚å¥½ããªãƒ•ã‚©ãƒ³ãƒˆã‚’ä½¿ã†ã“ã¨ãŒå¯èƒ½ã«
ãªã£ã¦ã„ã‚‹ã€‚
ã¾ãŸã€å¾“æ¥ã®\&gt;{\TeX}\&gt;ã§ã¯é›£ã—ã„ã€ãƒ•ã‚©ãƒ³ãƒˆã®ã‚‚ã¤æƒ…å&nbsp;±ã‚’åˆ©ç”¨ã—ãŸé«˜åº¦ãªãƒªã‚¬ãƒãƒ£ãƒ»
ã‚¢ã‚¯ã‚»ãƒ³ãƒˆä»˜åŠ&nbsp;ãƒ»ä½ç½®ç•°å½¢ã®å‡¦ç†ã‚‚è‡ªç”±ã«ä½¿ã†ã“ã¨ãŒå¯èƒ½ã«ãªã£ã¦ã„ã‚‹ã€‚

\subsection{{\XeTeX}\&gt;ã®å‡ºåŠ›ä¾‹}

{\XeTeX}\&gt;ã®ã‚‚ã¤èƒ½åŠ›ã®ä¸€ç«¯ã‚’ç¤ºã™ä¾‹ã‚’ã‚ã’ã‚‹ã€‚
ã“ã‚Œã¯\&gt;{\XeLaTeX}ï¼ˆ{\XeTeX}\&gt;ä¸Šã§å‹•ã\&gt;{\LaTeX}ï¼‰ã®æ–‡æ›¸ã§ã‚ã‚‹ã€‚

\jafamilyinverbatim % verbatim ã‚’å’Œæ–‡ãƒ•ã‚©ãƒ³ãƒˆã§å‡ºåŠ›
\begin{quote}\small\begin{verbatim}
% ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®æ–‡å­—ã‚³ãƒ¼ãƒ‰ã¯ UTF-8
\documentclass[a4paper]{article}
\usepackage{xltxtra} % ã“ã‚Œã¯å¾Œã§è§£èª¬
\newfontfamily\fchr{Charis SIL}  % \fchr ã§ãƒ•ã‚©ãƒ³ãƒˆâ€œCharis SILâ€ã«åˆ‡æ›¿
\newfontfamily\fipm{IPAæ˜Žæœ}     % \fipm ã§ãƒ•ã‚©ãƒ³ãƒˆâ€œIPAæ˜Žæœâ€ã«åˆ‡æ›¿
  % \faru ã§ãƒ‡ãƒ¼ãƒ´ã‚¡ãƒŠãƒ¼ã‚¬ãƒªãƒ¼æ–‡å­—ç”¨ã®è¨­å®šã‚’æ–½ã—ãŸâ€œArial Unicode MSâ€ã«åˆ‡æ›¿
\newfontfamily\faru[Script=Devanagari]{Arial Unicode MS}
  % \showUC ã¯ä½•ã®å¤‰å“²ã®ãªã„ LaTeX ã®ãƒžã‚¯ãƒ­
\newcommand*\showUC[1]{\ \texttt{\footnotesize U+#1}}
\begin{document}
\begin{itemize}
\item {\fipm åœŸ\symbol{"571F}}\showUC{571F} /
      {\fipm åœ¡\symbol{"5721}}\showUC{5721} /
      {\fipm ð¡ˆ½\symbol{"2123D}}\showUC{2123D}
\item {\fchr j}\showUC{006A} + {\fchr\symbol{"0302}}\showUC{0302}
      = {\fchr j\symbol{"0302}}
\item {\fipm ã‹}\showUC{304B} + {\fipm\symbol{"309A}}\showUC{309A}
      = {\fipm ã‹\symbol{"309A}}
\item {\faru \symbol{"915}}\showUC{0915} + {\faru\symbol{"93F}}\showUC{093F}
      = {\faru \symbol{"915}\symbol{"93F}}
\end{itemize}

\end{document}
\end{verbatim}\end{quote}

ä¸Šã®æ–‡æ›¸ã‚’xelatexã‚³ãƒžãƒ³ãƒ‰ã§çµ„ç‰ˆã™ã‚‹ã¨ä»¥ä¸‹ã®å‡ºåŠ›ã‚’å«ã‚€%
PDFæ–‡æ›¸ãŒå¾—ã‚‰ã‚Œã‚‹ã€‚

\begin{center}
\frame{\includegraphics{xetexsamp01.pdf}}
\end{center}

\nojafamilyinverbatim % verbatim ã‚’æ¬§æ–‡ãƒ•ã‚©ãƒ³ãƒˆã§å‡ºåŠ›

ä¸Šã®æ–‡æ›¸ã«ãŠã„ã¦ã€\verb|\symbol{"xx}|\&gt;ã¯ç¬¦å·ä½ç½®ãŒxxï¼ˆ16é€²ï¼‰ã§ã‚ã‚‹
æ–‡å­—ã‚’å‡ºåŠ›ã™ã‚‹\&gt;{\LaTeX}\&gt;ã‚³ãƒžãƒ³ãƒ‰ã§ã‚ã‚‹ã€‚
{\XeLaTeX}\&gt;ã§ã¯ã“ã‚ŒãŒUnicodeç¬¦å·ç©ºé–“ã§ä½¿ãˆã‚‹ã“ã¨ãŒå‡ºåŠ›ã®
1è¡Œç›®ã‹ã‚‰åˆ¤ã‚‹ã€‚%
ï¼ˆå¾“æ¥ã®\&gt;{\LaTeX}\&gt;ã§ã¯8ãƒ“ãƒƒãƒˆã®å€¤ã®ã¿ã€‚ï¼‰
å‹¿è«–ã€UTF-8ã§ç›´æŽ¥æ›¸ã„ãŸæ–‡å­—ã‚‚å‡ºåŠ›ã•ã‚Œã¦ã„ã‚‹ã€‚
2è¡Œç›®ä»¥ä¸‹ã§ã¯Unicodeçµåˆæ–‡å­—ã‚’ç”¨ã„ãŸæ–‡å­—åˆæˆã®ä¾‹ã‚’ç¤ºã—ã¦ã„ã‚‹ã€‚%
\verb|j\symbol{"0302}|\&gt;ã¯jã®ç›´å¾Œã«U+0302ã®æ–‡å­—
ï¼ˆçµåˆæ›²ã‚¢ã‚¯ã‚»ãƒ³ãƒˆï¼‰ã‚’æ›¸ã„ãŸã®ã¨åŒã˜ã§ã€ã“ã‚Œã¯Unicodeã®è¦å‰‡ã§
ã€ŒÄµï¼ˆæ›²ã‚¢ã‚¯ã‚»ãƒ³ãƒˆä»˜jï¼‰ã€ã‚’è¡¨ã™ã€‚
2è¡Œç›®ã‚’è¦‹ã‚‹ã¨æ­£ã—ãåˆæˆãŒè¡Œã‚ã‚Œã¦ã„ã‚‹ã“ã¨ãŒåˆ¤ã‚‹ã€‚

\end{document}
</pre></body></html>