General! LaTeX Error: This file needs format `pLaTeX2e' with Japanese jarticle template

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ririro93
Posts: 3
Joined: Wed Jan 25, 2017 3:43 pm

! LaTeX Error: This file needs format `pLaTeX2e' with Japanese jarticle template

Post by ririro93 »

I just started today and I have no idea how to fix this error. I'm tyring to build my template for an article by using Texmaker(And I downloaded MikTeX 2.9). It have lots of Japanese in it and I think it was originally made from Linux(I'm new so I don't know if this can be the cause but maybe I have errors because I use Windows instead of Linux). I know there's nothing wrong with the template file itself because it works well on the Linux computers in my lab.

The template starts like this

Code: Select all

\documentclass[twocolumn,9pt]{jarticle}
\usepackage{amsmath}
\usepackage{here,jsmea4p2,txfonts,overcite}
\usepackage[dvipdfmx]{graphicx}
%\usepackage[dvips,draft]{graphicx}
\usepackage[dvips]{psfrag}
\usepackage{subfigure}
\usepackage{url}
\usepackage{bm}
\newfont{\cmss}{cmss10 scaled\magstep2}
\def\空白{\hspace*{1zw}}
\renewcommand\citeform[1]{#1)}
\def\Frac#1#2{\displaystyle\frac{#1}{#2}}
\def\d{{\rm d}}
% \makeatletter
% \renewcommand{\@biblabel}[1]{#1)}
% \makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  初期設定
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 著者の人数
 \jauthorNm{4}
%% 論文タイトル(欧文) 記入しないとき    \etitleNm{0}にする
 \etitleNm{1}
%% 欧文の氏名と所属     記入しないとき    \jauthorEn{0}にする
 \jauthorEn{0}
%% 連絡先               記入しないとき    \addressNm{0}にする
 \addressNm{0}
%% アブストラクト       記入しないとき    \addressNm{0}にする
 \abstractNm{0}
%% キーワード           記入しないとき    \KeywordNm{0}にする
 \KeywordNm{0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%% 論文タイトル(和文)
 \jtitle{\LARGE{多重安定性を有する小自由度力学系の\\構造転移ダイナミクスに関する研究}}
%% 論文タイトル(欧文) 
 \etitle{A study on dynamics of structural transition\\ in small-degree-of-freedom dynamical systems with multiple stability }
%% 公演番号
 \talknumber{3P12}

%% a.発表者に○ b.資格 c.氏名 d.所属 e.氏名(欧文)f.所属(欧文)
%% 著者A 
 \jauthorAa{○}
 \jauthorAb{学}
 \jauthorAc{岡本 和大}
 \jauthorAd{(阪   大)}
 \jauthorAe{Naoki H{\footnotesize IGASHIYAMA}}
% \jauthorAf{School of Engineering,Osaka University\\  2-1 Yamadaoka,
% Suita, Osaka 565-0871}
%\jauthorAf{Department of Adaptive Machine Systems, \\
% Graduate School of Engineering, Osaka University \\
% 2-1 Yamadaoka, Suita, Osaka 565-0871, Japan }
\jauthorAf{ Osaka University, 2-1 Yamadaoka, Suita, Osaka 565-0871}

%% 著者B 
 \jauthorBa{}
 \jauthorBb{正}
 \jauthorBc{土 井 祐 介}
 \jauthorBd{(阪 大 工)}
 \jauthorBe{Yusuke D{\footnotesize OI}}
 \jauthorBf{Osaka University}
%% 著者C 
 \jauthorCa{}
 \jauthorCb{正}
 \jauthorCc{中 谷 彰 宏}
 \jauthorCd{(阪 大 工)}
 \jauthorCe{Akihiro N{\footnotesize AKATANI}}
 \jauthorCf{Osaka University}
%% 著者D 
 \jauthorDa{}
 \jauthorDb{}
 \jauthorDc{}
 \jauthorDd{}
 \jauthorDe{}
 \jauthorDf{}
%% 著者E 
 \jauthorEa{}
 \jauthorEb{}
 \jauthorEc{}
 \jauthorEd{}
 \jauthorEe{}
 \jauthorEf{}
%% 著者F 
 \jauthorFa{}
 \jauthorFb{}
 \jauthorFc{}
 \jauthorFd{}
 \jauthorFe{}
 \jauthorFf{}
%% 連絡先   
 \address{FAX:06-6879-7246\hspace*{2em}E-mail:{\tt nakatani@.ams.eng.osaka-u.ac.jp}}
% アブストラクト  
 \abstract{
}
%% キーワード  
 \Keyword{}

\pdfNm{0}

\begin{document}
Sorry for the long code. I don't know which ones might be causing the trouble so I just pasted everything. The errors say, to list a few at the top,

Code: Select all

! LaTeX Error: This file needs format `pLaTeX2e'
but this is `LaTeX2e'

! Illegal unit of measure (pt inserted).
<to be read again>
z
l.31 \setlength{\parindent}{1zw}
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Last edited by Stefan Kottwitz on Wed Jan 25, 2017 4:58 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

! LaTeX Error: This file needs format `pLaTeX2e' with Japanese jarticle template

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

The document class jarticle.cls requires pLaTeX (or the extended version upLaTeX). That's a LaTeX version with specific Japanese support. You need to change the command for compiling in your editor. Open the settings for Texmaker via the menu, in "Configure Texmaker" it looks like this:
configure-texmaker.png
configure-texmaker.png (107.92 KiB) Viewed 17750 times
In the first field, replace latex by platex or by uplatex.

Stefan
LaTeX.org admin
ririro93
Posts: 3
Joined: Wed Jan 25, 2017 3:43 pm

I just started today and I have no idea how to fix this error. ! LaTeX Error: This file needs format `pLaTeX2e'

Post by ririro93 »

Thank you for the quick reply!
But I tried changing latex to both platex and uplatex and neither of them worked.
I attached a screenshot of the error message I got hoping it would give some hints.
Attachments
Document  CUserst61Desktopmy texmy ronbun.png
Document CUserst61Desktopmy texmy ronbun.png (92.57 KiB) Viewed 17747 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

I just started today and I have no idea how to fix this error. ! LaTeX Error: This file needs format `pLaTeX2e'

Post by Stefan Kottwitz »

The error message still shows that you are not yet using pLaTeX. The other error messages can be consequences or can have other reasons.

Stefan
LaTeX.org admin
ririro93
Posts: 3
Joined: Wed Jan 25, 2017 3:43 pm

I just started today and I have no idea how to fix this error. ! LaTeX Error: This file needs format `pLaTeX2e'

Post by ririro93 »

ok so do you have any other suggestions on how I can use pLaTeX?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

! LaTeX Error: This file needs format `pLaTeX2e' with Japanese jarticle template

Post by Stefan Kottwitz »

The same suggestion: configure platex in Texmaker. The error message shows that platex is not yet used. Besides configuring it, of cause that way of compiling (LaTeX to DVI) has to be used. PDF can be created via dvipdfmx.

Besides Texmaker, you could use another editor, or compile from the command prompt using the command platex documentname.

Stefan
LaTeX.org admin
Rainwood1234
Posts: 1
Joined: Tue Aug 13, 2019 10:22 am

! LaTeX Error: This file needs format `pLaTeX2e' with Japanese jarticle template

Post by Rainwood1234 »

You cannot use pdflatex for japanese input.

You always have to convert a file inbetween:
tex -> dvi -> pdf

@Settings for texmaker:
- Open options for "Quick build"
- Select: "LaTeX + dvips + ps2pdf + ViewPDF"

In general: make sure whatever command you're running, you have LaTeX in there, not PdfLatex. Otherwise the changed latex command (that you changed to platex) will not have any effect.
Post Reply