プロが教えるわが家の防犯対策術!

数式が含まれているtexファイルをpdflatexで実行しようとすると以下のようなtexファイルが新しいページで開きエラーが出てきます。
原因がわかりません。詳しい方、どなたか回答お願いします。

%%
%% 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
%% 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
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{pLaTeX2e}
\ProvidesClass{jsarticle}
[2010/03/14 okumura]
\newif\if@restonecol
\newif\if@titlepage
\newif\if@enablejfam \@enablejfamtrue
\DeclareOption{a3paper}{%
\setlength\paperheight {420mm}%
\setlength\paperwidth {297mm}}
\DeclareOption{a4paper}{%
\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{a5paper}{%
\setlength\paperheight {210mm}%
\setlength\paperwidth {148mm}}
\DeclareOption{a6paper}{%
\setlength\paperheight {148mm}%
\setlength\paperwidth {105mm}}
\DeclareOption{b4paper}{%
\setlength\paperheight {364mm}%
\setlength\paperwidth {257mm}}
\DeclareOption{b5paper}{%
\setlength\paperheight {257mm}%
\setlength\paperwidth {182mm}}
\DeclareOption{b6paper}{%
\setlength\paperheight {182mm}%
\setlength\paperwidth {128mm}}
\DeclareOption{a4j}{%
\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{a5j}{%
\setlength\paperheight {210mm}%
\setlength\paperwidth {148mm}}
\DeclareOption{b4j}{%
\setlength\paperheight {364mm}%
\setlength\paperwidth {257mm}}
\DeclareOption{b5j}{%
\setlength\paperheight {257mm}%
\setlength\paperwidth {182mm}}
\DeclareOption{a4var}{%
\setlength\paperheight {283mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{b5var}{%
\setlength\paperheight {230mm}%
\setlength\paperwidth {182mm}}
\DeclareOption{letterpaper}{%
\setlength\paperheight {11in}%
\setlength\paperwidth {8.5in}}
\DeclareOption{legalpaper}{%
\setlength\paperheight {14in}%
\setlength\paperwidth {8.5in}}
\DeclareOption{executivepaper}{%
\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}}

入力できるだけ記載しました。

A 回答 (2件)

pdfTeXは日本語をサポートしていません。



http://ja.wikipedia.org/wiki/PdfTeX

platex でDVIファイルを作成後、dvipdfmxでDVIファイルからPDFを作成してください。

http://oku.edu.mie-u.ac.jp/~okumura/texwiki/
    • good
    • 0

pdflatexは日本語がサポートされていません。


logファイルに
(c:/usr/local/share/texmf/tex/jlatex/base/jresize10.clo)
! Illegal unit of measure (pt inserted).
<to be read again>
z
l.101 \setlength\parindent{1zw}

?
というものがあるかと思います。
Winshellはこれをエラーとして出力しています。

http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?Win …
にあるように設定されているかと思いますが、
dvipdfmx
を用いて、pdfファイルに変換され、表示した方がいいかと思います。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!