Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/09/2007, à 01:58

DOOMIII

Japonais sous latex

Je n'arrive pas du tout à mettre le japonais dans un document latex. Sous open office, pas de problème mais une fois dans latex, à chaque compilation "undefined control sequence"; je suis pourtant en utf8 (voire utf8x) et j'ai download pas mal de polices japonaises. J'ai déjà lu d'autre tuto ; aucuns de leurs conseils ou exemples ne marche. Voici un bout de mon prog latex qui ne marche pas :

\documentclass[a4paper,    10pt,oneside]{report}
\usepackage[francais]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[T1]{song}
\DeclareFontFamily{T1}{song}{}
\DeclareFontShape{T1}{song}{m}{n}{<-> cyberbit00}{}
\renewcommand{\rmdefault}{song}
\begin{document}
\begin{CJK}{UTF8}{song}
日本語の力試験
\end{CJK}
\end{document}

pourtant je ne suis pas un nioubie et ca fait 3h que je piétine...
S'il vous plaît, aidez moi. On m'a dit que le jap ss latex c'était facile ;

#2 Le 07/09/2007, à 02:48

best_friend_fr

Re : Japonais sous latex

Salut,

Essaye

http://genma.free.fr/article.php3?id_article=282

et si il y a lieu, dis nous ou tu as une erreur


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#3 Le 07/09/2007, à 09:44

hector

Re : Japonais sous latex

latex (avec \usepackage[utf8]{inputenc}) ne permet pas (encore?) le vrai utf-8, ça ajoute juste quelques caractères comme les lettres accentuées.

Je crois qu'il y a un projet de latex prenant vraiment en charge l'utf8, à chercher sur internet...

Hors ligne

#4 Le 07/09/2007, à 20:38

DOOMIII

Re : Japonais sous latex

J'avais déjà essayé ce tuto ; mais je le refait pour vous montrer le log...:
(j'ai bien enregistré en euc-jp dans gedit et j'ai tapé exactement la meme chose, installé tt pareil...

This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) (format=latex 2007.9.3)  7 SEP 2007 20:34
entering extended mode
**testi.tex
(./testi.tex
LaTeX2e <2003/12/01>
Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, french, basque, greek, monogreek, ancientgreek, ibycus, latin, load
ed.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo
File: size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/latex/CJK/ruby.sty
Package: ruby 2006/10/17 4.7.0

(/usr/share/texmf/tex/latex/CJK/CJK.sty
Package: CJK 2006/10/17 4.7.0

(/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty
File: MULEenc.sty 2006/10/17 4.7.0
)
(/usr/share/texmf/tex/latex/CJK/CJK.enc
File: CJK.enc 2006/10/17 4.7.0
)
LaTeX Info: Redefining \selectfont on input line 741.
\CJK@indent=\box26
)
\ruby@width=\dimen103
)
! Missing control sequence inserted.
<inserted text>
                \inaccessible
l.4 \renewcommand{rubysep}
                          {-0.3ex}
?

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...                                             
                                                 
l.4 \renewcommand{rubysep}
                          {-0.3ex}
?
(./testi.aux)
\openout1 = `testi.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C00/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C05/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C09/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C10/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C20/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C19/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C40/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C42/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C43/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C50/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C52/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C49/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C60/mj/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C61/mj/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C63/mj/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C64/mj/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C65/mj/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C70/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C31/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C32/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C33/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C34/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C35/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C36/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C37/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C80/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C81/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C01/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C11/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C21/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C41/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for C62/song/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
(/usr/share/texmf/tex/latex/CJK/standard.bdg
File: standard.bdg 2006/10/17 4.7.0
)
(/usr/share/texmf/tex/latex/CJK/standard.enc
File: standard.enc 2000/12/24 4.7.0
)
(/usr/share/texmf/tex/latex/CJK/standard.chr
File: standard.chr 2006/10/17 4.7.0
)
LaTeX Font Info:    Try loading font information for C40+song on input line 7.
LaTeX Font Info:    No file C40song.fd. on input line 7.

! Undefined control sequence.
try@size@range ...extract@rangefontinfo font@info
                                                  <-*>@nil <@nnil
l.7 €Ë
      €Û€ó€Ž
?
! Undefined control sequence.
<argument> @nil
               
l.7 €Ë
      €Û€ó€Ž
?
! Undefined control sequence.
<argument> def reserved@f
                          {extract@rangefontinfo <@nnil }upper@bound 0*p@ if...
l.7 €Ë
      €Û€ó€Ž
? x

Here is how much of TeX's memory you used:
1206 strings out of 95130
12137 string characters out of 1184027
60231 words of memory out of 1000000
4415 multiletter control sequences out of 10000+50000
3938 words of font info for 15 fonts, out of 500000 for 2000
73 hyphenation exceptions out of 8191
27i,1n,19p,203b,215s stack positions out of 1500i,500n,5000p,200000b,5000s
No pages of output.

#5 Le 06/11/2007, à 18:18

xoolive

Re : Japonais sous latex

J'ai fait un tuto pour ça, ça devrait marcher si tu suis ce que j'ai marqué sur http://www.xoolive.org/blog/2007/07/02/ … -japonais/

N'hésite pas à poster sur la page si ça marche pas!

#6 Le 19/09/2008, à 07:38

Re : Japonais sous latex