1

Topic: Lỗi LaTex trong Ubuntu

Do đặc thù công việc nên em phải làm việc với 2 thứ Texmaker và Ubuntu, tuy nhiên trong Ubuntu, Texmaker chạy tiếng Việt không mượt mà cho lắm, và để lại nhiều lỗi. Trong topic của chị hangnga (Texmaker +vntex) em cũng đã trình bày, nhưng cách anh Ky Anh góp ý (bỏ dòng amsart) không mang lại hiệu quả. Trong đây em trình bày thêm 1 lỗi nữa, vừa mới phát hiện, mà mãi không sửa được ! sad

Code viết:

\documentclass[10pt]{article}
\usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm,amstext}
\usepackage{indentfirst}
\usepackage[mathscr]{eucal}
\usepackage[utf8]{vietnam}
\usepackage[dvipdfm,bookmarks=true,backref,pdfstartview=FitH]{hyperref}
\usepackage[dvipdfm]{graphicx}
\usepackage{graphicx}
\pdfpagewidth 8.5in
\pdfpageheight 11in
\topmargin -1in
\headheight 0in
\headsep 0in
\textheight 8.5in
\textwidth 6.5in
\oddsidemargin 0in
\evensidemargin 0in
\headheight 77pt
\headsep 0in
\footskip .75in
\begin{document}
\title{Lỗi LaTex}
\author{evarist    \\
\\
email : duykhanhhus@gmail.com}
%\email{duykhanhhus@gmail.com}
\date{1-09-2009}
\maketitle
Bực quá đi thôi !

\end{document}

Còn đây là log :

Log viết:

! Font OMX/cmex/m/n/8=cmex8 at 8.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
! Font OMX/cmex/m/n/6=cmex7 at 6.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
LaTeX Font Info: Try loading font information for U+msa on input line 29.
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
! Font U/msa/m/n/12=msam10 at 12.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
! Font U/msa/m/n/8=msam8 at 8.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
! Font U/msa/m/n/6=msam6 at 6.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
LaTeX Font Info: Try loading font information for U+msb on input line 29.
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2002/01/19 v2.2g AMS font definitions
)
! Font U/msb/m/n/12=msbm10 at 12.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
! Font U/msb/m/n/8=msbm8 at 8.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
! Font U/msb/m/n/6=msbm6 at 6.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.29 B
ực quá đi thôi !
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
LaTeX Font Info: Try loading font information for U+lasy on input line 29.
(/usr/share/texmf-texlive/tex/latex/base/ulasy.fd
File: ulasy.fd 1998/08/17 v2.2e LaTeX symbol font definitions
)
! Math formula deleted: Insufficient extension fonts.
\endtabular ->\crcr \egroup \egroup $
\egroup
l.29 B
ực quá đi thôi !
Sorry, but I can't typeset math unless \textfont 3
and \scriptfont 3 and \scriptscriptfont 3 have all
the \fontdimen values needed in math extension fonts.
[1
] (./1.aux) )
Here is how much of TeX's memory you used:
4340 strings out of 95087
54517 string characters out of 1183278
104276 words of memory out of 1500000
7434 multiletter control sequences out of 10000+50000
9836 words of font info for 30 fonts, out of 1200000 for 2000
28 hyphenation exceptions out of 8191
30i,6n,24p,229b,352s stack positions out of 5000i,500n,6000p,200000b,5000s
Output written on 1.dvi (1 page, 2216 bytes).

Điều kỳ lạ là cũng với 1 form y như trên nhưng em gõ từ ngày còn dùng Wins, mở ra complie được ngay, không lỗi liếc gì cả. Nhưng cứ copy y nguyên cái đó sang 1 file mới rồi chạy là thế này. Em thật không hiểu nổi, rất mong được mọi người giúp đỡ !

Last edited by evarist (02/02/2010 10:15)

2

Re: Lỗi LaTex trong Ubuntu

Mình thử compile cái file của bạn trên win thì được ngay. Có lẽ trên linux font đã không được nạp.

3

Re: Lỗi LaTex trong Ubuntu

Chuyển bu nó qua dùng XeLaTex cho nó nhanh big_smile

4

Re: Lỗi LaTex trong Ubuntu

evarist viết:

Do đặc thù công việc nên em phải làm việc với 2 thứ Texmaker và Ubuntu, tuy nhiên trong Ubuntu, Texmaker chạy tiếng Việt không mượt mà cho lắm, và để lại nhiều lỗi. Trong topic của chị hangnga (Texmaker +vntex) em cũng đã trình bày, nhưng cách anh Ky Anh góp ý (bỏ dòng amsart) không mang lại hiệu quả. Trong đây em trình bày thêm 1 lỗi nữa, vừa mới phát hiện, mà mãi không sửa được ! sad
[snip]

Điều kỳ lạ là cũng với 1 form y như trên nhưng em gõ từ ngày còn dùng Wins, mở ra complie được ngay, không lỗi liếc gì cả. Nhưng cứ copy y nguyên cái đó sang 1 file mới rồi chạy là thế này. Em thật không hiểu nổi, rất mong được mọi người giúp đỡ !

Lỗi trước là do amsart gây ra, còn lỗi lần này là do bạn dùng các font đặc biệt không có trên hệ thống của bạn.

Lần này thì bạn cài bộ texlive- cho đầy đủ vào (dùng trình quản lý gói MSh1t gì đó của Ubuntu để cài). Tất cả các gói bắt đầu bằng texlive- đều cài hết vào nhé.

Khi bị lỗi thì phải coi là lỗi gì, do đâu, đừng trách "không hiệu quả" nhá. Thank you!

Last edited by KyAnh (03/02/2010 09:10)

... important note: this isn't my signature ...