Generalacmtog.cls, LaTex2e, help?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Manda22007
Posts: 1
Joined: Fri Dec 13, 2013 8:48 pm

acmtog.cls, LaTex2e, help?

Post by Manda22007 »

So, I'm trying to write a paper for a class that wants me to use a specific style. I looked it up and it already exists. It's called acmtog.cls. Now I understand that that is a class and not a style and thus has to be used differently. The readme that came with it even says:

If the file acmtog.cls is not already in the appropriate system directory for LATEX files, either arrange for it to be put there or copy it to your working directory. The acmtog document class is implemented as a complete class, not a document style option. In order to use the acmtog document class, replace article by acmtog in the
\documentclasscommand at the beginning of your document:

Code: Select all

\documentclass{article}
replace by

Code: Select all

\documentclass{acmtog}
Got that. However, I have no idea how to do the "either arrange for it to be put there or copy it to your working directory" part. Also, when I try to open and compile that class, it gets stuck on the line:

Code: Select all

\NeedsTeXFormat{LaTeX2e}
So I have come to understand that I have an old version of Latex, however, after much research, I still can't figure out how to update it! Please if anyone can help, with instructions on what to do. (I am not familiar with the ends and outs of LaTex. I just normally use it to type up my math homework. I've never needed to install anything or make classes/styles or what ever.) So, yeah, talk to me as if I'm a golden retriever and all that. And in case the information is needed, my operating system is Windows 7.

Thank you if you can help!
Last edited by cgnieder on Mon Dec 16, 2013 1:56 pm, edited 1 time in total.

Recommended reading 2024:

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

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

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

acmtog.cls, LaTex2e, help?

Post by Johannes_B »

Are you at least a bit familiar with (La)TeX? That would help quite a lot.

The working directory is the one where your tex-file is (the one beginning with \documentclass{<name>}).

You cannot compile a class on its own, it doesn't work that way.

Try the following and save it as MyOwnExample.tex in a new folder:

Code: Select all

%\documentclass{acmtog.cls}%Leave out the ending
\documentclass{acmtog}
\begin{document}
Hey
\end{document}
Copy acmtog.cls in the same folder, so there should be two files now. Open MyOwnExample.tex with your tex editor and run latex or pdf latex (to get a pdf directly).

LaTeX for complete Novices
Last edited by Johannes_B on Mon Dec 16, 2013 6:27 pm, edited 1 time in total.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

acmtog.cls, LaTex2e, help?

Post by josephwright »

Note: the \documentclass line should not include the extension (.cls) in the argument.
Joseph Wright
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: acmtog.cls, LaTex2e, help?

Post by Johannes_B »

@josephwright Thanks for noticing, i missed that when copy + pasting.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply