TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please, explain why it asks something like this.

$ latex full.tex

l.5 \begin{document}

(Press Enter to retry, or Control-D to exit; default file extension is `.tex')
Please type another output file name: 

.full.tex -file

\section{Hello 1}

hello my name is \"{a}.

\section{hello my 2}

dad  \"{o}aeoeu\"{a}!


[Comment] not writing -permission issue or privilege -issue

$ ls -lsa .full.tex 
4 -rwxrwxrwx 1 tester tester 160 2011-09-24 02:42 .full.tex

Alert: Do not do this on your machine, abusing root.

# latex .full.tex 
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
No file .full.aux.
latex: Not writing to .full.aux (openout_any = p).
! I can't write on file `.full.aux'.
\document ...ate \openout \@mainaux \jobname .aux 
                                                  \immediate \write \@mainau...
l.5 \begin{document}

(Press Enter to retry, or Control-D to exit; default file extension is `.tex')

P.s. I forget to mention -- I am using 11.04 Ubuntu at the moment, not yet tried on other machines. Maybe OS-related prob.

share|improve this question
The most probable cause is that you don't have writing privileges in the directory the file is in. – egreg Sep 23 '11 at 23:40
@egreg: wrong, please, look my proof in the updated question. – hhh Sep 23 '11 at 23:48
up vote 7 down vote accepted

The problem is the dot in the file name. Your document's name is .full.tex and this is triggering the error message. Simply rename the file deleting the initial dot.

Or, when prompted to give another output file name, provide a name such as full.tex.

share|improve this answer
why not ".full.tex"? It would be so easy to compile "$ cat *.tex > .full.tex" and then just "$ latex .*" -- I currently name my chapters as "1.tex", "2.tex" etc -- well I will do just "$ cat [0-9]*.tex > full.tex $ latex full.tex", good enough. – hhh Sep 24 '11 at 0:02
Outputting dot files is a security issue: a malicious TeX source could change important files such as .profile; remember that TeX overwrites existing files when it starts writing its output, without asking for permission. – egreg Sep 24 '11 at 7:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.