Document Classes\newcommand in a .cls file with content given in a .tex file

Information and discussion about specific document classes and how to create your own document classes.
Tom_24601
Posts: 10
Joined: Tue Dec 27, 2011 3:37 pm

Re: \newcommand in a .cls file with content given in a .tex

Post by Tom_24601 »

Thank you Stefan. I have tried to analyse the log file but I am not very experienced at interpreting these yet so I will upload it and will greatly appreciate any more help you can offer.
Attachments
Newsletter_Jan_2012.log
Log file
(8.89 KiB) Downloaded 303 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: \newcommand in a .cls file with content given in a .tex

Post by Stefan Kottwitz »

I don't see a problem in the .log file. It just looks as if the document body is empty. Perhaps try creating and posting an example, which compiles but doesn't produce a PDF file, and post it here.

Stefan
LaTeX.org admin
Tom_24601
Posts: 10
Joined: Tue Dec 27, 2011 3:37 pm

Re: \newcommand in a .cls file with content given in a .tex

Post by Tom_24601 »

Okay, here are my files.
Attachments
Newsletter.log
Log file
(8.83 KiB) Downloaded 273 times
Newsletter.tex
Main body
(96 Bytes) Downloaded 296 times
Newsletter.cls
Style file
(450 Bytes) Downloaded 289 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: \newcommand in a .cls file with content given in a .tex

Post by Stefan Kottwitz »

I see, in your document there's only the command \Newsletter, no text. That's why no PDF file is produced, because \Newsletter just modifies the page style but doesn't generate output. Just add any further text after \Newsletter.

Stefan
LaTeX.org admin
Tom_24601
Posts: 10
Joined: Tue Dec 27, 2011 3:37 pm

Re: \newcommand in a .cls file with content given in a .tex

Post by Tom_24601 »

Everything is working perfectly now - thank you so much for all of your help today.
Post Reply