Hey Guys,
i use the newest TexMaker Version on a Windows 7 PC with
MikTex 2.9. However, i tried to compile a little Script today
but it didnt work.
! LaTeX Error: Can be used only in preamble. was the Error Message
and he explains about that some packages are not installed.
MikTex PackageManager says that all Packages are installed.....
Maybe a Fail of TexMaker?
Someone a idea?
Texmaker and TeXstudio ⇒ ! LaTeX Error: Can be used only in preamble.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10340
- Joined: Mon Mar 10, 2008 9:44 pm
! LaTeX Error: Can be used only in preamble.
Hi,
Perhaps provide some information.
Stefan
why don't you show us the little code? So we would not have to guess what you are doing.Lybrial wrote:i tried to compile a little Script today
but it didnt work.
That means you used a command after \begin{document} which can be used only before, such as \usepackage for example.Lybrial wrote:! LaTeX Error: Can be used only in preamble. was the Error Message
Which packages? For which commands in your code?Lybrial wrote:and he explains about that some packages are not installed.
How does it say it? What's the message? I doubt MiKTeX knows about all packages in general.Lybrial wrote:MikTex PackageManager says that all Packages are installed.....
I guess it's not a problem of Texmaker. Texmaker is just an editor, which calls the LaTeX compiler of MiKTeX.Lybrial wrote:Maybe a Fail of TexMaker?
Perhaps provide some information.
Stefan
LaTeX.org admin