GeneralGetting "Bad File Description" as error

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cmburns
Posts: 3
Joined: Sat May 23, 2009 6:20 pm

Getting "Bad File Description" as error

Post by cmburns »

Hi,

I write a document on the system in my office. It is a Linux Distribution, but I don't think that this fact is important for my problem.

On that system I run latex -> dvips and get a my ps File. No problems there. Now I tried to run it on my Windows Laptop with MikTex and Textpad.

If I run pdflatex, then I get only the obvious messages that TeX can't compile the eps Graphics.

If I run latex, then I get the following:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode

("D:/Eigene Dateien/Dennis/Eigene Dateien/Arbeit/Promotion/Dissertation/diss.te
x"
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
(C:\Programme\Miktex\tex\latex\koma-script\scrartcl.cls
Document Class: scrartcl 2008/12/09 v3.01b KOMA-Script document class (article)

(C:\Programme\Miktex\tex\latex\koma-script\scrkbase.sty
(C:\Programme\Miktex\tex\latex\koma-script\scrbase.sty
(C:\Programme\Miktex\tex\latex\graphics\keyval.sty)
(C:\Programme\Miktex\tex\latex\koma-script\scrlfile.sty
Package scrlfile, 2008/07/09 v3.00 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

))) (C:\Programme\Miktex\tex\latex\koma-script\tocbasic.sty)
(C:\Programme\Miktex\tex\latex\koma-script\scrsize11pt.clo)
(C:\Programme\Miktex\tex\latex\koma-script\typearea.sty
Package typearea, 2008/12/09 v3.01b KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

)) (C:\Programme\Miktex\tex\generic\babel\babel.sty
*************************************
* Local config file bblopts.cfg used
*
(C:\Programme\Miktex\tex\latex\00miktex\bblopts.cfg)
(C:\Programme\Miktex\tex\generic\babel\english.ldf
(C:\Programme\Miktex\tex\generic\babel\babel.def)))
(C:\Programme\Miktex\tex\latex\amsfonts\amsfonts.sty)
(C:\Programme\Miktex\tex\latex\base\inputenc.sty
(C:\Programme\Miktex\tex\latex\base\ansinew.def))
(C:\Programme\Miktex\tex\latex\base\fontenc.sty)
(C:\Programme\Miktex\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\Programme\Miktex\tex\latex\amsmath\amstext.sty
(C:\Programme\Miktex\tex\latex\amsmath\amsgen.sty))
(C:\Programme\Miktex\tex\latex\amsmath\amsbsy.sty)
(C:\Programme\Miktex\tex\latex\amsmath\amsopn.sty))
(C:\Programme\Miktex\tex\latex\amsfonts\amssymb.sty)
(C:\Programme\Miktex\tex\latex\amscls\amsthm.sty)
(C:\Programme\Miktex\tex\latex\bbm\bbm.sty)
(C:\Programme\Miktex\tex\latex\base\makeidx.sty)
(C:\Programme\Miktex\tex\latex\ltxmisc\a4wide.sty
(C:\Programme\Miktex\tex\latex\ntgclass\a4.sty))
(C:\Programme\Miktex\tex\generic\xypic\xy.sty
(C:\Programme\Miktex\tex\generic\xypic\xy.tex Bootstrap'ing: catcodes,
docmode, (C:\Programme\Miktex\tex\generic\xypic\xyrecat.tex)
(C:\Programme\Miktex\tex\generic\xypic\xyidioms.tex)

 Xy-pic version 3.7 <1999/02/16>
 Copyright (c) 1991-1998 by Kristoffer H. Rose <krisrose@ens-lyon.fr>
 Xy-pic is free software: see the User's Guide for details.

Loading kernel: messages; fonts; allocations: state, direction,
utility macros; pictures: \xy, positions, objects, decorations;
kernel objects: directionals, circles, text; options; algorithms: directions,
edges, connections;  Xy-pic loaded)
(C:\Programme\Miktex\tex\generic\xypic\xyall.tex
 Xy-pic option: All features v.3.3
(C:\Programme\Miktex\tex\generic\xypic\xycurve.tex
 Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
(C:\Programme\Miktex\tex\generic\xypic\xyframe.tex
 Xy-pic option: Frame and Bracket extension v.3.7 loaded)
(C:\Programme\Miktex\tex\generic\xypic\xycmtip.tex
 Xy-pic option: Computer Modern tip extension v.3.3
(C:\Programme\Miktex\tex\generic\xypic\xytips.tex
 Xy-pic option: More Tips extension v.3.3 loaded) loaded)
(C:\Programme\Miktex\tex\generic\xypic\xyline.tex
 Xy-pic option: Line styles extension v.3.6 loaded)
(C:\Programme\Miktex\tex\generic\xypic\xyrotate.tex
 Xy-pic option: Rotate and Scale extension v.3.3 loaded)
(C:\Programme\Miktex\tex\generic\xypic\xycolor.tex
 Xy-pic option: Colour extension v.3.3 loaded)
(C:\Programme\Miktex\tex\generic\xypic\xymatrix.tex
 Xy-pic option: Matrix feature v.3.4 loaded)
(C:\Programme\Miktex\tex\generic\xypic\xyarrow.tex
 Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded)
(C:\Programme\Miktex\tex\generic\xypic\xygraph.tex
 Xy-pic option: Graph feature v.3.7 loaded) loaded))
(C:\Programme\Miktex\tex\latex\ifsym\ifsym.sty
(C:\Programme\Miktex\tex\latex\tools\calc.sty))
(C:\Programme\Miktex\tex\latex\subfigure\subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(C:\Programme\Miktex\tex\latex\subfigure\subfigure.cfg))
(C:\Programme\Miktex\tex\latex\stmaryrd\stmaryrd.sty)
(C:\Programme\Miktex\tex\latex\graphics\graphicx.sty
(C:\Programme\Miktex\tex\latex\graphics\graphics.sty
(C:\Programme\Miktex\tex\latex\graphics\trig.sty)
(C:\Programme\Miktex\tex\latex\00miktex\graphics.cfg)
(C:\Programme\Miktex\tex\latex\graphics\dvips.def)))
(C:\Programme\Miktex\tex\latex\psfrag\psfrag.sty)
(C:\Programme\Miktex\tex\latex\graphics\color.sty
(C:\Programme\Miktex\tex\latex\00miktex\color.cfg)
(C:\Programme\Miktex\tex\latex\graphics\dvipsnam.def))
(C:\Programme\Miktex\tex\latex\float\float.sty)
(C:\Programme\Miktex\tex\latex\koma-script\scrpage2.sty)
Writing index file diss.idx
(diss.aux) (diss.toc (C:\Programme\Miktex\tex\latex\amsfonts\umsa.fd)
(C:\Programme\Miktex\tex\latex\amsfonts\umsb.fd)
(C:\Programme\Miktex\tex\latex\stmaryrd\ustmry.fd)
! Undefined control sequence.
<recently read> \@mathbb 
                         
l.4 ...of an immersed Disc in $\@mathbb {S}^2$}{2}
                                                  
? latex: Bad file descriptor

Prozess beendet mit Exit-Code 1
I googled that (this is how I find this forum) but don't get a solution.

Here is my .tex File:

Code: Select all

%==========================================================================

%      Header

%==========================================================================



\documentclass[11pt]{scrartcl}

\usepackage[english]{babel}

\usepackage{amsfonts}

\usepackage[ansinew]{inputenc}

\usepackage{fontenc}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{amsthm}

\usepackage{bbm}

\usepackage{makeidx}

\usepackage{a4wide}

\usepackage[all]{xy}

\usepackage{ifsym}
\usepackage{subfigure} %ermoeglicht es, mehrere Bilder in einer figure umgebung zu platzieren
\usepackage{stmaryrd}

\usepackage{graphicx}
\usepackage{psfrag}
\usepackage{color}
%\usepackage[pdftex]{graphics}
\usepackage{float}  %liefert parameter H, der die figure Umgebung zwingt die Grafik an genau diese Stelle zu platzieren.
\usepackage{scrpage2}

%\usepackage{showkeys}    % Zeigt labels an



\automark[section]{section}





%==========================================================================

%      Kopf- und Fußzeilen

%==========================================================================



%\setheadwidth[0pt]{textwithmarginpar}   %Abstand der Kopfzeile zum Rand

\setheadsepline{.5pt}



%einseitige Dokumente

\ihead{\textsc{\leftmark}}  %Kopfzeile innen

\chead{}  %Kopfzeile mitte

\ohead{\thepage}  %Kopfzeile außen

\ifoot{}  %Kopfzeile innen

\cfoot{}  %Kopfzeile mitte

\ofoot{}  %Kopfzeile außen



%zweiseitige Dokumente

%\lehead{}  %Kopfzeile links, gerade Seiten

%\cehead{}  %Kopfzeile mitte, gerade Seiten

%\rehead{}  %Kopfzeile rechts, gerade Seiten

%\lohead{}  %Kopfzeile links, ungerade Seiten

%\cohead{}  %Kopfzeile mitte, ungerade Seiten

%\rohead{}  %Kopfzeile rechts, ungerade Seiten

%\lefoot{}  %Kopfzeile links, gerade Seiten

%\cefoot{}  %Kopfzeile mitte, gerade Seiten

%\refoot{}  %Kopfzeile rechts, gerade Seiten

%\lofoot{}  %Kopfzeile links, ungerade Seiten

%\cofoot{}  %Kopfzeile mitte, ungerade Seiten

%\rofoot{}  %Kopfzeile rechts, ungerade Seiten







\pagestyle{scrheadings}













%==========================================================================

%      Seiten Layout

%==========================================================================



%\setlength{\textwidth}{160mm}

%\setlength{\textheight}{240mm}

\setlength{\parindent}{4mm}

%\setlength{\oddsidemargin}{0pt}

%\setlength{\evensidemargin}{0pt}

%\setlength{\topmargin}{0pt}



%==========================================================================

%      Index

%==========================================================================









%==========================================================================

%      BEGINN

%==========================================================================



%\includeonly{2_Grundlagen_FA}

\makeindex

\begin{document}







%==========================================================================

%      Theoreme

%==========================================================================



\newtheorem{defs}{Definition}[section]

\newtheorem{satz}[defs]{Satz}

\newtheorem{cor}[defs]{Corollary}

\newtheorem{lemma}[defs]{Lemma}

\newtheorem{prop}[defs]{Proposition}

\newtheorem{theo}[defs]{Theorem}

\newtheorem{algo}[defs]{Algorithm}

\newtheorem{bsp}{Example}



%==========================================================================

%      neue Befehle

%==========================================================================



\newcommand{\op}[2]{\mathcal{#1}(\mathcal{#2})}

\newcommand{\R}{\mathbb{R}}

\newcommand{\C}{\mathbb{C}}

\newcommand{\K}{\mathbb{K}}

\newcommand{\N}{\mathbb{N}}

\newcommand{\Z}{\mathbb{Z}}

\newcommand{\Q}{\mathbb{Q}}

\newcommand{\B}{\mathcal{B}}

\newcommand{\ind}{\mathrm{ind}}

\newcommand{\tr}{\mathrm{tr}}

\newcommand{\im}{\mathrm{im}}

\newcommand{\codim}{\mathrm{codim~}}

\newcommand{\id}{\mathrm{id}}

\newcommand{\<}{\langle}

\newcommand{\wind}{\mathrm{wind}}

\newcommand{\sgn}{\mathrm{sgn}}

\newcommand{\gans}{\quotedblbase}

%\newcommand{\deg}{\mathrm{deg}}

\newcommand{\A}{\mathcal{A}_{\mathrm{max}}}

\newcommand{\sign}{\mathrm{sign}}

\newcommand{\ad}{\mathrm{ad}}

\newcommand{\T}{\mathbb{T}}

\newcommand{\emphindex}[1]{\emph{#1}\index{#1}}

\newcommand{\area}{\mathrm{area}}

\renewcommand{\(}{\llbracket}

\renewcommand{\)}{\rrbracket}

\renewcommand{\>}{\rangle}

\renewcommand{\epsilon}{\varepsilon}

\renewcommand{\1}{\mathbbm{1}}

%\renewcommand{\qedsymbol}{$\blacksquare$}

%\renewcommand{\proofname}{{\bf Beweis}}

\renewcommand{\S}{\mathbb{S}}

\renewcommand{\phi}{\varphi}

{
\providecommand{\RR}{\mathbb{R}}
\providecommand{\matr}[2]{
  \left(
    \begin{array}{#1}
      #2
    \end{array}
  \right)
  }



\newtheorem*{bem}{Remark}



%\renewenvironment{proof}{\textbf{Beweis.}}{$\blacksquare$}











%Titelseite

%\begin{titlepage}
%\begin{center}
%\Huge{\textsc{Zur Spur-Theorie fast-kommutativer Algebren}}
%\par
%\vspace{2cm}
%\begin{figure}[htbp]

%  \begin{center}

%    \includegraphics[width=6cm]

%      {athene_sw.jpg}

    %\caption{Gefährliches Raubtier}

    %\label{bild1}

%  \end{center}

%\end{figure}

%\vspace{2cm}

%\LARGE{\bf Diplomarbeit} \\

%\Large {\bf von} \\

%{\bf Dennis Frisch}

%\par

%\vspace{1cm}

%{\bf betreut von \\ Prof. Dr. Karl-Hermann Neeb}

%\par

%\vspace{1cm}

%Technische Universität Darmstadt \\

%Fachbereich Mathematik

%\par

%\vspace{1cm}

%{August 2006}

%\end{center}
%\end{titlepage}



%==========================================================================

%      Arbeit

%==========================================================================

\pagenumbering{roman}
\tableofcontents


\newpage
\pagenumbering{arabic}

\include{ch1}

\include{ch2}

\include{ch3}

\include{ch4}

%\include{test}


%==========================================================================

%      Literaturverzeichnis

%==========================================================================


%\begin{thebibliography}{99999999}

%\bibitem[Bl67]{Blank} 
%\textsc{Samuel Joel Blank}, \emph{Extending Immersions and regular Homotopies in Codimension $1$}, PhD Thesis, Brandeis University, 1967

%\bibitem[DoC76]{DOC} 
%\textsc{Manfredo P. do Carmo}, \emph{Differential Geometry of Curves and Surface}, Prentice-Hall, 1976

%\bibitem[TtD00]{Tammo}
%\textsc{Tammo tom Dieck}, \emph{Topologie}, Walter de Gruyter, 2000

%\bibitem[MC93]{MC}
%\textsc{Margaret McIntyre and Grant Cairns}, \emph{A new formula for winding number}, Geometriae Dedicata 46, p. 149-160, 1993 



%\end{thebibliography}

\bibliography{biblio}{}
\bibliographystyle{alpha}

%\newpage

%\printindex



\end{document}
Can you help me? I need to run it on my laptop too.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Getting "Bad File Description" as error

Post by Stefan Kottwitz »

Hi cmburns,

welcome to the board!
The error message "Undefined control sequence" is coming earlier, so fix this first: why do you use \@mathbb? Perhaps take \mathbb.

Stefan
LaTeX.org admin
cmburns
Posts: 3
Joined: Sat May 23, 2009 6:20 pm

Re: Getting "Bad File Description" as error

Post by cmburns »

Thx for that advice. The problem is, that I tried to fix it. At first it is curious, that that message only occurs when I use latex and not pdflatex. At second I never used \@mathbb. At this place where the error occurs stands an \S which is defined via \renewcommand{\S}{\mathbb{S}}.

I've deleted all lines where this command should be occur, that is all \include and the \renewcommand.

The error still occured. Then I deleted the \tableofcontents, since this is the only possibility I've seen where the \mathbb could be placed and after deleting this one it works.

So my problem has been changed. If I don't use \tableofcontents the compilation works without any problems. But when I include \tableofcontents then the same error as above occurs.

This isn't a prior problem since I can now work on it but in the future it will be needfull to have the \tableofcontents command work.

Can you help me by that?
cmburns
Posts: 3
Joined: Sat May 23, 2009 6:20 pm

Re: Getting "Bad File Description" as error

Post by cmburns »

Problem solved. I looked at the .toc file and find the \@mathbb. Don't know why it is written in this file but OK. I deleted the .toc file and run again my .tex including the \tableofcontents. Now it works fine.

Thanks for the help, I don't thought that the Undefined Sequence Message was crucial for the problem.
Post Reply