You are not logged in.

#1 2010-07-28 00:04:34

takanuva
Member
Registered: 2009-04-19
Posts: 4

[latex] writing with emacs

Hi,

I have used latex through Kile for a long time now and I've never had problem with it.
But recently, I've discovered emacs. And now I feel not very free with Kile (my fingers want to use emacs' shortcut!). Then I put my intention in writing in latex through emacs using auctex.

But unfortunately I can't compile my file. Emacs always answers me

ERROR: I can't find file `file.tex'.

--- TeX said ---
! I can't find file `filet.tex'.
--- HELP ---
TeX can't find a file that it needs. If the name of the missing file
has the extension tex, then it is looking for an input file that you
specified---either your main file or another file inserted with an
\input or \include command. If the missing file has the extension sty
, then you have specified a nonexistent document style or style
option.

I have also tried to compile a file in a terminal and I have the same answer.
Do you know where can it come from?

Thanks

EDIT: I have put the entire error message for more precisions.

Last edited by takanuva (2010-07-28 02:39:27)

Offline

#2 2010-07-28 04:58:21

frabjous
Member
Registered: 2010-07-13
Posts: 367

Re: [latex] writing with emacs

Does it really say file.tex in one place and filet.tex in another?

Did you save the buffer before attempting to compile?

Offline

#3 2010-07-28 11:56:32

takanuva
Member
Registered: 2009-04-19
Posts: 4

Re: [latex] writing with emacs

No it says the same name for both (here file.tex is just en example).

Yes the buffer is already saved and the same file can be compiled by Kile.

thanks for answering

Offline

#4 2010-07-28 19:08:19

Basu
Member
From: Cornell University
Registered: 2006-12-15
Posts: 296
Website

Re: [latex] writing with emacs

You should be able to just do C-c C-c and it will ask you for the actual command ( I use pdflatex) and it will fill in the blanks and make a nice PDF for you.


The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github

Offline

#5 2010-07-28 21:58:01

takanuva
Member
Registered: 2009-04-19
Posts: 4

Re: [latex] writing with emacs

I will explain what I do.
First I open a tex file with emacs (this can can be compiled with Kile)
Then I try C-c C-c. Emacs ask me

Command: (default LaTeX)

(I can't choose pdflatex, I only have those choice BibTeX Check Clean Clean All  File Index LaTeX Other Print Queue Spell View)
Then I choose LateX. And Emacs answer me

LaTeX errors in `*/media/documents/Cours/Math/Stage L3/Moi/ENS_report/project/ENS_report output*'. Use C-c ` to display.

So I try C-c `. And it ask me for a master file (Master file: (default this file)) which the one I want to compile.  I select it. And finally I have the error message

ERROR: I can't find file `ENS_report.tex'.

--- TeX said ---
! I can't find file `ENS_report.tex'.
--- HELP ---
TeX can't find a file that it needs. If the name of the missing file
has the extension tex, then it is looking for an input file that you
specified---either your main file or another file inserted with an
\input or \include command. If the missing file has the extension sty
, then you have specified a nonexistent document style or style
option.

If I try on the same file

latex ENS_report.tex

I have the following answer

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Arch Linux)
 restricted \write18 enabled.
entering extended mode
! I can't find file `ENS_repport.tex'.
<*> ENS_repport.tex
                   
(Press Enter to retry, or Control-D to exit)
Please type another input file name:

What does it mean?
Thanks

Offline

#6 2010-08-06 16:52:42

bt
Member
Registered: 2007-04-11
Posts: 198

Re: [latex] writing with emacs

takanuva --

please post your ~/.emacs file.

I use emacs exclusively for latex (actually xelatex), and also have it set up with scim-bridge to print chinese. All should be accomplished in ~/.emacs.

Offline

Board footer

Powered by FluxBB