Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

Sorry for the less-than-descriptive title, but I'm new to LaTeX and have no idea how to debug or make sense of errors.

I've modified an invoice template from here to suit my needs, but I'm getting this puzzling error below.

Package babel Error: You haven't loaded the option english yet

My .tex file is below (with personal information scrubbed):

\documentclass[DIN, pagenumber=false, parskip=half,
           fromalign=right, fromphone=true, fromfax=false,
           fromrule=false]{scrlttr2}


\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{longtable}


\newcommand{\stdlohn}[0]{11 \euro}

\renewcommand*{\raggedsignature}{\raggedright} 

\setkomavar{fromname}{My Name}
\setkomavar{fromemail}{me@somewhere.com}
\setkomavar{fromphone}{+5555 55555}
\setkomavar{fromaddress}{}
\setkomavar{frombank}{}



\setkomavar{subject}[]{Invoice for [Services Rendered]/Description}
\setkomavar{yourmail}[Ref. No.]{080213-1}
\setkomavar{yourref}[E-mail]{}
\setkomavar{date}[Datum]{08 February 2012}


%===================================
% footer
\setkomavar{firstfoot}{
    \parbox[t]{\textwidth}{\footnotesize 

    \begin{tabular}[t]{l@{}}
         \multicolumn{1}{@{}l@{}}{Company:}\\ 
         sdf\\
         sdfdsf\\ \\
         Telefon: \usekomavar{fromphone} \\
         E-Mail: \usekomavar{fromemail} \\
    \end{tabular}
     \hfill{}
     \begin{tabular}[t]{l@{}}
         \multicolumn{1}{@{}l@{}}{Legal information:}\\ 
        Sole Proprietor\\
        Tax: 0255 980 24 5\\ \\

        Full Name: sdf\\        
        ID: 32112 5390 081\\
     \end{tabular}
     \hfill{}
     \begin{tabular}[t]{l@{}}
         \multicolumn{1}{@{}l@{}}{Banking Details:}\\ 
         \usekomavar{frombank} 
     \end{tabular} 
 }}

\begin{document}


%===================================
% receiver
\begin{letter}{
    Mr Client Guy
}

\opening{\ }
\vspace{-1.5cm}

%===================================
\begin{longtable}{p{2.5cm}p{5.5cm}p{2.5cm}p{2.5cm}}
    \hline  
    Index & Description & Units(hr) & Total\\
    \hline 

    \textbf{General}\\
    10 & Analysis and planning for data extraction & 4 & 1200,00\\
    20 & Cleaning dirty data & 2 & 600,00\\
    \multicolumn{3}{r}{Subtotal:} & 1800,00\\
    \\

    \textbf{Programming}\\
    30 & Production/implementation of code/solution & 4 & 1200,00\\
    40 & Refactoring for unique cases & 2 & 600,00\\
    \multicolumn{3}{r}{Subtotal:} & 1800,00\\
    \\

    \textbf{Design}\\
    \multicolumn{3}{r}{Subtotal:} & 0,00\\
    \\

    \hline\hline 
\end{longtable}


\begin{longtable}{p{5.5cm}p{2.5cm}p{2cm}p{3cm}}
    \multicolumn{3}{r}{Total Net. Amount}\\
    \hline 
    \multicolumn{3}{r}{} &3600,00\\
    \hline 
    \hline  
\end{longtable}


\end{letter}
\end{document}

EDIT:

  • Deleting my .aux file gives me this error:

No file angebot.aux.
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd)
! Undefined control sequence.
\select@language ... \@empty }\languageshorthands 
                                                  {none}\babel@beginsave \cs...
l.58 \begin{document}
  • Adding \usepackage{english} gives a slightly better response but how would I fix it?

! Package babel Error: You have used an old interface to call babel
 (babel)                You may expect compatibility problems wit other packages
 .

 See the babel package documentation for explanation.
 Type  H <return>  for immediate help.
  ...                                              

 l.73     \bblstyerror
share|improve this question

marked as duplicate by Martin Schröder, Werner, mafp, diabonas, Kurt Feb 12 '13 at 22:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

10  
Try deleting your .aux file and re-compile. Does the problem persist? –  Werner Feb 12 '13 at 7:35
2  
Write \usepackage[english]{babel} in your preamble. –  hpesoj626 Feb 12 '13 at 7:37
1  
Follow @hpesoj626's suggestion. Rather than using \usepackage{english}, use \usepackage[english]{babel}. –  Werner Feb 12 '13 at 7:53
1  
You loaded babel, but then you removed it; it's normal to have an error in these circumstances. Just go past the error hitting the "return" key and in the next LaTeX run all will be normal. –  egreg Feb 12 '13 at 10:43
1  
Related: tex.stackexchange.com/questions/82669/… –  egreg Feb 12 '13 at 14:40
show 1 more comment

1 Answer 1

Adding \usepackage[english]{babel} solves the error - thank you @hpesoj626

share|improve this answer
    
Please don't convert comments by others into answers of your own. –  Martin Schröder Feb 12 '13 at 21:30
2  
Why not, @MartinSchröder? It's hpesoj626 who wrote a comment when he should have given an answer, really. Converting it to an answer for the benefit of others seems exactly the right thing to do in this case! –  hheimbuerger May 11 '13 at 0:19
2  
@hheimbuerger: Converting them into an answer is fine, but the answer should be community wiki then. –  Martin Schröder May 11 '13 at 7:34
add comment

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