Texmaker and TeXstudio ⇒ Writing a report using a .cls and a .sty file
Writing a report using a .cls and a .sty file
I am not very experienced in using Latex. I have the latex format of a technical report which includes only a .cls and a .sty file. I am wondering, how to write the whole report out of these files using Texmaker.
Is it possible to run a cls file in latex? Or, should I create a 'tex' file?
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Writing a report using a .cls and a .sty file
before starting with LaTeX you should do some basic reading. I suggest LaTeX for complete novices.
You have to include the class file and the package file in your preamble.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
test $a^2$
\end{document}Re: Writing a report using a .cls and a .sty file
I tried to run the code you gave. I replaced the usepackage and documentclass parameters with the name of my sty and cls file respectively. But it is not running & getting the following message:
"Could not start the command,
pdflatex - synctex =1 -interaction = nonstopmode %.tex"
Please let me know how to resolve this issue.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm