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
.auxfile 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
.auxfile and re-compile. Does the problem persist? – Werner Feb 12 '13 at 07:35\usepackage[english]{babel}in your preamble. – hpesoj626 Feb 12 '13 at 07:37\usepackage{english}, use\usepackage[english]{babel}. – Werner Feb 12 '13 at 07:53babel, 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:43latexmk -C, which I assume removes*.auxfiles, as well. – Celdor Jan 25 '22 at 12:59