Document ClassesAn Issue with amsart

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
L_LateX
Posts: 4
Joined: Wed Dec 09, 2015 11:32 am

An Issue with amsart

Post by L_LateX »

Hi Latex Community,

I have an odd problem and have been trying to figure out exactly what it is - and now that I have- exactly how to describe it.

I have Miktex 2.9 Basic installed on an external tied in to the keyboard of my acer switch (32 bit). I use the latest version of TexnicCenter (32 bit). On my actual laptop I have the full version of MikTeX and also use TXC. The difference is that on my laptop everything works perfectly (MS 7). But on my tablet (MS 8.1) it does not. (before you ask: I can run Matlab from my external. So I doubt it's the fact that it's an external)

The problem: I try to run a simple Hello World file. If my document class is 'article' or 'report' it runs perfectly. If however, I switch the type to "amsart", I get an error saying "missing \begin{document}". I realised this error not with this simple program but with the built-in profile types that come with TXC: the profiles that contain amsart/amsbook keep giving this error; but basic article types do not. So I know that it is not something I typed incorrectly and have not been able to find anything on the forum connected to this: those involve users who mistyped. but all I've done is choose a profile and click 'build'. the hello world simply helped me identify the problem.

I am not sure whether the "working example" will help here because the same file that does not work on the tablet works just fine on the PC. I assume it's an error in the program setup. But I don't know nearly enough about MikTeX/TXC to fiddle around with the software.

Can anyone tell me what I can do? I've re-installed Basic and also tried MikTeX Portable as well. If I haven't provided enough information, can you tell me what I can tell you in order to help me?

I hope I've described the issue properly.

Thanks Latex Forum

Recommended reading 2024:

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

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

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: An Issue with amsart

Post by Johannes_B »

Please show us the minimal working example that you try to compile as well as the log-file that is produced.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
L_LateX
Posts: 4
Joined: Wed Dec 09, 2015 11:32 am

An Issue with amsart

Post by L_LateX »

Sigh, I hate when this happens.
Okay, so I tried making the file again. See the MWE. and it works fine now with the amsart (or amsbook). No errors so the log file looks fine. See LateX1.log. I think I was building the wrong file which is why I thought my Hello World file seemed to not be working (?). Though I thought I made sure of that...

So it's back to the profiles again. I've attached the logfile of both the file I created-though I'm no longer sure that's necessary- as well as the untouched profile (i think using that as an MWE is a bit silly. It's the profile Mathematical Article. I didn't do anything to it) because that's where the problem is (seems to be).

And Johannes_B, you're so right about the staying calm thing.

Code: Select all

\documentclass{amsart}

\begin{document}
Hello world!
\end{document}
Attachments
Math Article.log
(7.46 KiB) Downloaded 407 times
LaTeX1.log
(4.61 KiB) Downloaded 366 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: An Issue with amsart

Post by Johannes_B »

Seems your file has a BOM. Save it once more with out adding a BOM. This should be possible (and the default) with all wide spread LaTeX editors.

Or copy paste all the content into a new file, should work just as well.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
L_LateX
Posts: 4
Joined: Wed Dec 09, 2015 11:32 am

Re: An Issue with amsart

Post by L_LateX »

You're joking! That was the problem?

Sigh. Well I cutnpasted it and now works fine.

Thanks a lot :)
Post Reply