mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2005-12-28, 09:14   #1
Numbers
 
Numbers's Avatar
 
Jun 2005
Near Beetlegeuse

22×97 Posts
Default LATex Documents

Does anyone here know how to produce their own LaTex documents?

I keep getting the error message that my control sequence is undefined, but the sequence in question is: \documentclass(article)
How is that undefined, I thought that was the standard way to do it.
Numbers is offline   Reply With Quote
Old 2005-12-28, 09:40   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3×5×227 Posts
Default

You've got

Code:
 \documentclass(article)
and I think it should be

Code:
 \documentclass{article}
i.e. use braces instead of parentheses

HTH
paulunderwood is offline   Reply With Quote
Old 2005-12-28, 10:18   #3
Numbers
 
Numbers's Avatar
 
Jun 2005
Near Beetlegeuse

22·97 Posts
Default

Sorry, it's not that, I actually tried braces first.

with:
Quote:
\documentclass{article}
\begin{document}
My text starts here...
with braces in both cases, I get:
Quote:
This is TeX, Version 3.141592 <MiKTeX 2.4>
<cow.txt
! Undefined control sequence.
1.1 \documentclass
.....................<article>
?
If I type Help, I get a message explaining what "undefined control sequence" means, and a reassurance that if I'm sure it is correct I can proceed. When I do that, I get the words article and document inserted before my text begins. So the first line looks like this:
Quote:
article document My text starts here...
Weird, or what?
Numbers is offline   Reply With Quote
Old 2005-12-28, 10:21   #4
xilman
Bamboozled!
 
xilman's Avatar
 
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

280E16 Posts
Default

Quote:
Originally Posted by Numbers
Weird, or what?
This may be a silly question, but here goes: are you running LaTeX on your input file? I've managed to type "tex foo.tex" before now when I meant "latex foo.tex" and got bizarre error messages similar to yours.


Paul
xilman is offline   Reply With Quote
Old 2005-12-28, 10:42   #5
Numbers
 
Numbers's Avatar
 
Jun 2005
Near Beetlegeuse

18416 Posts
Default

As could be expected from you Paul, that was not a silly question at all.
To be honest I only downloaded the software yesterday and am still very much feeling my way around. From the manual I got the command: texify foo.txt, with the results I described. Changing that to: Latex foo.txt as you suggest did the trick.
Thank you very much indeed.
Numbers is offline   Reply With Quote
Old 2005-12-28, 23:47   #6
Mystwalker
 
Mystwalker's Avatar
 
Jul 2004
Potsdam, Germany

3×277 Posts
Default

AFAIK, there seems to be a difference between tex and latex. One of them (I don't remember which) also doesn't work for me...
Mystwalker is offline   Reply With Quote
Old 2005-12-29, 00:21   #7
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2×13×443 Posts
Default

Quote:
Originally Posted by Mystwalker
AFAIK, there seems to be a difference between tex and latex. One of them (I don't remember which) also doesn't work for me...
Although the analogy is not perfect, I like to think of Tex/LaTex along similar lines as C/C++ - the former is a subset of the latter, with the latter containing many things that (supposedly) make the former easier to use. In the case of Tex/LaTex, macro-style things like document classes are typically LaTex, although I strongly urge any user to get the LaTex manual for more details on this and many other issues.
ewmayer is offline   Reply With Quote
Old 2005-12-29, 00:30   #8
Mystwalker
 
Mystwalker's Avatar
 
Jul 2004
Potsdam, Germany

3·277 Posts
Default

You're right!
LaTeX does work, but not tex.

btw.:
I can really recommend WinEdt for LaTeX when using Windows. I've heard that TeXnicCenter is good as well...
Mystwalker is offline   Reply With Quote
Old 2005-12-31, 09:33   #9
Numbers
 
Numbers's Avatar
 
Jun 2005
Near Beetlegeuse

22·97 Posts
Default

Quote:
Originally Posted by Mystwalker
I can really recommend WinEdt for LaTeX when using Windows. I've heard that TeXnicCenter is good as well...
I use TexAid (free download). It's an upgraded version of the Equation Editor in Word, and allows you to pick symbols from a pallette to create your expressions. Then you just paste that into your LaTex document and it formats it all for you. Very useful, but obviously not an aid to learning LaTex.

ewmayer's point about the manual is good. With the free download I got a user's guide that seems to have just five answers. So it doesn't matter what question you ask you always get one of these five answers!

And when you use the programme (LaTex), if you make a mistake you get these really friendly error messages that say things like, "Why don't you try reading the manual?"

What manual, I ask.
Numbers is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Latex searcher ? science_man_88 science_man_88 2 2018-07-21 17:11
latex issue wildrabbitt Math 2 2017-10-30 12:47
New documents at FermatSearch ET_ FermatSearch 0 2017-04-17 16:59
An Open Access Library of Mathematical Documents flouran Math 10 2009-08-14 04:50
Could we use LaTeX in this forum some day ? T.Rex Forum Feedback 5 2005-08-29 19:45

All times are UTC. The time now is 06:23.

Sat Sep 26 06:23:45 UTC 2020 up 16 days, 3:34, 0 users, load averages: 1.32, 1.36, 1.42

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.