There's an error that's driving me nuts and latex doesn't help me understand what's going on.




Then you can try:

$ pdflatex error.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2011/06/27>
Babel <3.9k> and hyphenation patterns for 2 languages loaded.
Document Class: scrlttr2 2013/12/19 v3.12 KOMA-Script document class (letter)
Package scrlfile, 2013/12/19 v3.12 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

))) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrsize12pt.clo)
Package typearea, 2013/12/19 v3.12 KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

)) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/DIN.lco)
`Fixed Point Package', Version 0.8, April 2, 1995 (C) Michael Mehlich

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.17 \NeedsTeXFormat{LaTeX2e}[

Does someone here understand what's going on?

  • There have been changes to graphicx. Just call \usepackage{graphicx} first before invoice. Are you sure you need the pdftex option? I don't think so!
    – user31729
    Aug 2, 2016 at 17:51
  • Try to put something inside \begin{document} and \end{document}.
    – Matsmath
    Aug 2, 2016 at 17:52
  • 2
    You have a very old TeX installation and only two languages installed for proper hyphenation. Installing a fresh TeX Live 2016 will most likely resolve your issue.
    – Johannes_B
    Aug 2, 2016 at 17:52
  • Sidenote: option pdftex is unneded and often disturbing something.
    – Johannes_B
    Aug 2, 2016 at 17:52
  • @Johannes_B er, no.... Aug 2, 2016 at 18:23

1 Answer 1


the invoice package completely breaks latex in its current form.

If you take a copy and change line 152 from




then your test file works.

As it is it loads fp.tex which defines stub versions of latex commands for use with plain TeX, but it breaks latex completely.

  • 1
    I have emailed the package maintainer with the bug report Aug 2, 2016 at 19:01
  • Thank you very much for your answer. I manually changed invoice.sty as suggested and it worked. Aug 3, 2016 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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