LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2005, 10:05 AM   #1
bng
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora core 3
Posts: 11

Rep: Reputation: 0
Latex Issues


Hi,
I am trying to run LaTeX. I have installed it and had it working befor, but something is wrong this time and I don't know what it is. I done a complete installation of TeX Live from CD and there were no errors. I running "latex test.tex" from the command line. test.tex is a very simple .tex document that compiles fine under windows. When I do this in fedora I get the error message:

This is TeX, Version 3.14159 (Web2C 7.4.5)
kpathsea: Running mktexfmt latex.fmt
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!

This happens as both a user and as root. fmtutil.cnf is in /usr/TeX/texmf/web2c
I canot find latex.fmt (or any .fmt for that matter) on my system. Any help with this would be great.
 
Old 06-10-2005, 04:09 AM   #2
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
Perhaps the system isn't able to access the files. It may be a good idea to declare the path to the files. Usually you need the texmf.cnf, fmtutil.cnf and mktex.cnf in your path. They're made static to avoid being overwritten.
As for the latex.fmt, you can create one yourself.
 
Old 06-10-2005, 10:05 AM   #3
bng
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora core 3
Posts: 11

Original Poster
Rep: Reputation: 0
I am a newbie, so I didn't really understand alot of what you said. The files are in my /usr/TeX/texmf/web2c directory. I have added a path to that dir in my .bash_profile file as below but that didn't help.


# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/TeX/bin/i386-linux
PATH=$PATH:$HOME/bin:/usr/TeX/texmf/web2c

export PATH
unset USERNAME

As for creating the latex.fmt file. Can it be an empty file and where do I put it?
 
Old 06-10-2005, 01:27 PM   #4
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
To create the LaTeX format file, do

initex latex.ltx

This will create a file latex.fmt. You should install this with:

mv latex.fmt $LATEXFORMATS

where $LATEXFORMATS is the path to the directory. If you had a latex binary before, it will now pick up the new format. Otherwise, you should say:

cd $LATEXBIN
ln virtex latex

If you still are wracked with errors, perhaps you should check if installed the binary correctly. Do a

latex ltxcheck

to check if the installation was perfect.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LaTeX forum / Where to ask LaTeX questions? max_sipos Linux - Software 2 12-21-2011 12:01 PM
Latex Compiling Issues ??? teckboy1243 Linux - Software 4 04-04-2005 02:30 PM
LaTeX commands: texi2pdf, latex, dvipdf kaon Linux - Software 7 01-23-2005 03:32 PM
I don't have latex Crickit Linux - Software 3 05-07-2003 06:33 AM
LaTex lil_becky Linux - Software 8 01-05-2003 05:28 AM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration