“マイクロソフト難民”の鈴木です。夜分に失礼いたします。
先日、皆様のおかげでLaTeX2e美文書入門をubuntu14.04OS上にインストールすることに成功したばかりです。今度は日本語の入力ができなくて困っています。
本のP.24には、「PDFビューアに日本語部分が表示されない場合は、日本語フォントを埋め込む設定がうまくできていないことが考えられます。」と書いてあるので、日本語フォントを設定しなければならないようですが、そのやり方をご教授願いたいのです。よろしくお願いいたします。
ちなみに入力した内容と画面に表示されたものを、以下に示します。
ctrl+Alt+tでtexworksを入力し、本の通りに
\documentclass{jsarticle}
\begin{document}
こんにちは, TeX!
\[ \int dx=x+C. \]
\end{document}
と入力したら、左上に☓マークが出て、
\documentclass{article}
\begin{document}
こんにちは, TeX!
\[ \int dx=x+C. \]
\end{document}
の下の「ログの表示」には
(/usr/share/texlive/texmf-dist/tex/platex/jsclasses/jsarticle.cls
! LaTeX Error: This file needs format `pLaTeX2e'
but this is `LaTeX2e'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.38 \NeedsTeXFormat{pLaTeX2e}
?
と表示され、「Errors,Warnings,badboxes」には
38 |
LaTeX Error: This file needs format `pLaTeX2e' |
と表示され、青い字の「isarticle.cls」をクリックしたら、以下の表示が出ました。
%%
%% This is file `jsarticle.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jsclasses.dtx (with options: `article')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from jsarticle.cls.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file jsclasses.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Digits \0\1\2\3\4\5\6\7\8\9</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Exclamation \! Double quote \" Hash (number) \#</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Dollar \$ Percent \% Ampersand \&</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Acute accent \' Left paren \( Right paren \)</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Asterisk \* Plus \+ Comma \,</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Minus \- Point \. Solidus \/</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Colon \: Semicolon \; Less than \<</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Equals \= Greater than \> Question mark \?</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Commercial at \@ Left bracket \[ Backslash \\</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Right bracket \] Circumflex \^ Underscore \_</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Grave accent \` Left brace \{ Vertical bar \|</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">%% Right brace \} Tilde \~}
\NeedsTeXFormat{pLaTeX2e}
\ProvidesClass{jsarticle}
[2013/05/14 okumura]
\newif\if@restonecol
\newif\if@titlepage
\newif\if@enablejfam \@enablejfamtrue
\DeclareOption{a3paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {420mm}%
\setlength\paperwidth {297mm}}
\DeclareOption{a4paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{a5paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {210mm}%
\setlength\paperwidth {148mm}}
\DeclareOption{a6paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {148mm}%
\setlength\paperwidth {105mm}}
\DeclareOption{b4paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {364mm}%
\setlength\paperwidth {257mm}}
\DeclareOption{b5paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {257mm}%
\setlength\paperwidth {182mm}}
\DeclareOption{b6paper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {182mm}%
\setlength\paperwidth {128mm}}
\DeclareOption{a4j}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{a5j}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {210mm}%
\setlength\paperwidth {148mm}}
\DeclareOption{b4j}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {364mm}%
\setlength\paperwidth {257mm}}
\DeclareOption{b5j}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {257mm}%
\setlength\paperwidth {182mm}}
\DeclareOption{a4var}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {283mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{b5var}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {230mm}%
\setlength\paperwidth {182mm}}
\DeclareOption{letterpaper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {11in}%
\setlength\paperwidth {8.5in}}
\DeclareOption{legalpaper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {14in}%
\setlength\paperwidth {8.5in}}
\DeclareOption{executivepaper}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength\paperheight {10.5in}%
\setlength\paperwidth {7.25in}}
\newif\if@landscape
\@landscapefalse
\DeclareOption{landscape}{\@landscapetrue}
\newif\if@slide
\@slidefalse
\newcommand{\@ptsize}{0}
\DeclareOption{slide}{\@slidetrue\renewcommand{\@ptsize}{26}\@landscapetrue\@titlepagetrue}
\DeclareOption{8pt}{\renewcommand{\@ptsize}{-2}}
\DeclareOption{9pt}{\renewcommand{\@ptsize}{-1}}
\DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
\DeclareOption{14pt}{\renewcommand{\@ptsize}{4}}
\DeclareOption{17pt}{\renewcommand{\@ptsize}{7}}
\DeclareOption{20pt}{\renewcommand{\@ptsize}{10}}
\DeclareOption{21pt}{\renewcommand{\@ptsize}{11}}
\DeclareOption{25pt}{\renewcommand{\@ptsize}{15}}
\DeclareOption{30pt}{\renewcommand{\@ptsize}{20}}
\DeclareOption{36pt}{\renewcommand{\@ptsize}{26}}
\DeclareOption{43pt}{\renewcommand{\@ptsize}{33}}
\DeclareOption{12Q}{\renewcommand{\@ptsize}{1200}}
\DeclareOption{14Q}{\renewcommand{\@ptsize}{1400}}
\hour\time \divide\hour by 60\relax
\@tempcnta\hour \multiply\@tempcnta 60\relax
\minute\time \advance\minute-\@tempcnta
\DeclareOption{tombow}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\tombowtrue \tombowdatetrue</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength{\@tombowwidth}{.1\p@}%
\@bannertoken{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\jobname\space(\number\year-\two@digits\month-\two@digits\day</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\space\two@digits\hour:\two@digits\minute)}%
\maketombowbox}
\DeclareOption{tombo}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\tombowtrue \tombowdatefalse</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength{\@tombowwidth}{.1\p@}%
\maketombowbox}
\DeclareOption{mentuke}{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\tombowtrue \tombowdatefalse</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\setlength{\@tombowwidth}{\z@}%
\maketombowbox}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption{vartwoside}{\@twosidetrue \@mparswitchfalse}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{titlepage}{\@titlepagetrue}
\DeclareOption{notitlepage}{\@titlepagefalse}
\def\eqnarray{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\stepcounter{equation}%
\def\@currentlabel{\p@equation\theequation}%
\global\@eqnswtrue
\m@th
\global\@eqcnt\z@
\tabskip\@centering
\let\\\@eqncr
$$\everycr{}\halign to\displaywidth\bgroup
\hskip\@centering$\displaystyle\tabskip\z@skip{##}$\@eqnsel
&\global\@eqcnt\@ne \hfil$\displaystyle{{}##{}}$\hfil
&\global\@eqcnt\tw@ $\displaystyle{##}$\hfil\tabskip\@centering
&\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
\tabskip\z@skip
\cr}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}%
\def\eqnarray{%</span></font></font></p> <p style="margin-bottom:0cm;"><font face="Liberation Serif, serif"><font size="3" style="font-size:12pt;"><span lang="en-us" xml:lang="en-us">\stepcounter{equation}%
\def\@currentlabel{\p@equation\theequation}%
\global\@eqnswtrue\m@th
\global\@eqcnt\z@
\tabskip\mathindent
\let\\=\@eqncr
\setlength\abovedisplayskip{\topsep}%
\ifvmode
\addtolength\abovedisplayskip{\partopsep}%
\fi
\addtolength\abovedisplayskip{\parskip}%
\setlength\belowdisplayskip{\abovedisplayskip}%
\setlength\belowdisplayshortskip{\abovedisplayskip}%
\setlength\abovedisplayshortskip{\abovedisplayskip}%
$$\everycr{}\halign to\linewidth% $$
\bgroup
\hskip\@centering$\displaystyle\tabskip\z@skip{##}$\@eqnsel
&\global\@eqcnt\@ne \hfil$\displaystyle{{}##{}}$\hfil
&\global\@eqcnt\tw@
$\displaystyle{##}$\hfil \tabskip\@centering
&\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
\tabskip\z@skip\cr
}}
\DeclareOption{disablejfam}{\@enablejfamfalse}
\newif\ifdraft
\DeclareOption{draft}{\drafttrue \setlength\overfullrule{5pt}}
\DeclareOption{final}{\draftfalse \setlength\overfullrule{0pt}}
\newif\ifwinjis
\winjisfalse
\newif\ifmingoth
\mingothfalse
\newif\ifjisfont
\jisfontfalse
\newif\if@jsc@uplatex
\@jsc@uplatexfalse
\DeclareOption{mingoth}{\mingothtrue}
\DeclareOption{winjis}{\winjistrue}
\DeclareOption{jis}{\jisfonttrue}
\DeclareOption{uplatex}{\@jsc@uplatextrue\winjisfalse}
\def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi}
\def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi}
\def\jsc@pfx@{\if@jsc@uplatex u\else \fi}
\newif\ifpapersize
\papersizefalse
\DeclareOption{papersize}{\papersizetrue}
\newif\if@english
\@englishfalse
\DeclareOption{english}{\@englishtrue}
\ExecuteOptions{a4paper,oneside,onecolumn,notitlepage,final}
\ProcessOptions
\if@slide
\def\maybeblue{\@ifundefined{ver@color.sty}{}{\color{blue}}}
\fi
\if@landscape
\setlength\@tempdima {\paperheight}
\setlength\paperheight{\paperwidth}
\setlength\paperwidth {\@tempdima}
\fi
\ifpapersize
\setlength{\@tempdima}{\paperwidth}
\setlength{\@tempdimb}{\paperheight}
\iftombow
\advance \@tempdima 2in
\advance \@tempdimb 2in
\fi
\AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}
\fi
\if@slide\def\n@baseline{13}\else\def\n@baseline{16}\fi
\def\inv@mag{1}
\ifnum\@ptsize=-2
\mag 833
\def\inv@mag{1.20048}
\def\n@baseline{15}%
\fi
\ifnum\@ptsize=-1
\mag 913 % formerly 900
\def\inv@mag{1.09529}
\def\n@baseline{15}%
\fi
\ifnum\@ptsize=1
\mag 1095 % formerly 1100
\def\inv@mag{0.913242}
\fi
\ifnum\@ptsize=2
\mag 1200
\def\inv@mag{0.833333}
\fi
\ifnum\@ptsize=4
\mag 1440
\def\inv@mag{0.694444}
\fi
\ifnum\@ptsize=7
\mag 1728
\def\inv@mag{0.578704}
\fi
\ifnum\@ptsize=10
\mag 2000
\def\inv@mag{0.5}
\fi
\ifnum\@ptsize=11
\mag 2074
\def\inv@mag{0.48216}
\fi
\ifnum\@ptsize=15
\mag 2488
\def\inv@mag{0.401929}
\fi
\ifnum\@ptsize=20
\mag 2986
\def\inv@mag{0.334896}
\fi
\ifnum\@ptsize=26
\mag 3583
\def\inv@mag{0.279096}
\fi
\ifnum\@ptsize=33
\mag 4300
\def\inv@mag{0.232558}
\fi
\ifnum\@ptsize=1200
\mag 923
\def\inv@mag{1.0834236}
\fi
\ifnum\@ptsize=1400
\mag 1077
\def\inv@mag{0.928505}
\fi
\setlength\paperwidth{\inv@mag\paperwidth}%
\setlength\paperheight{\inv@mag\paperheight}%
\ifwinjis
\DeclareFontShape{JY1}{mc}{m}{n}{<-> s * [0.961] winjis}{}
\DeclareFontShape{JY1}{gt}{m}{n}{<-> s * [0.961] winjisg}{}
\DeclareFontShape{JT1}{mc}{m}{n}{<-> s * [0.961] winjis-v}{}
\DeclareFontShape{JT1}{gt}{m}{n}{<-> s * [0.961] winjisg-v}{}
\else
\ifmingoth
\DeclareFontShape{\jsc@JYn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ min10}{}
\DeclareFontShape{\jsc@JYn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ goth10}{}
\DeclareFontShape{\jsc@JTn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ tmin10}{}
\DeclareFontShape{\jsc@JTn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ tgoth10}{}
\else
\ifjisfont
\DeclareFontShape{\jsc@JYn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ jis}{}
\DeclareFontShape{\jsc@JYn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ jisg}{}
\DeclareFontShape{\jsc@JTn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ tmin10}{}
\DeclareFontShape{\jsc@JTn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ tgoth10}{}
\else
\if@jsc@uplatex
\DeclareFontShape{JY2}{mc}{m}{n}{<-> s * [0.924690] upjisr-h}{}
\DeclareFontShape{JY2}{gt}{m}{n}{<-> s * [0.924690] upjisg-h}{}
\DeclareFontShape{JT2}{mc}{m}{n}{<-> s * [0.924690] upjisr-v}{}
\DeclareFontShape{JT2}{gt}{m}{n}{<-> s * [0.924690] upjisg-v}{}
\else
\DeclareFontShape{\jsc@JYn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ jis}{}
\DeclareFontShape{\jsc@JYn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ jisg}{}
\DeclareFontShape{\jsc@JTn}{mc}{m}{n}{<-> s * [0.961] \jsc@pfx@ tmin10}{}
\DeclareFontShape{\jsc@JTn}{gt}{m}{n}{<-> s * [0.961] \jsc@pfx@ tgoth10}{}
\fi