You are not logged in.
Pages: 1
can anone tell me how to use a .cls template to prepare a document? I have tried everything I can think Of.
Cheers
Offline
By the type of the question you ask, I'd say you should take a look at some introductory text for latex. For example this guide.
EDIT: I realized that the post might sound offensive... no offense meant... just that .cls files are not templates, but "styles" or "classes". You don't edit them, you include them at the begginning of your document.
Last edited by bender02 (2008-02-02 05:10:53)
Offline
bender....no problem or offense. I guess my question was a little vague to begin with. I guess, I knew that it was a class file. I guess what I am asking is really:
a) where do I have to put the .cls so that it is recognized
b) do winefish menu items change dynamically, so that for instance, if the class/style, only has certain or special headings, will they be refelected in the drop down menus, or do you have to read the class file, and enter the commands, for instance /address or /forematter yourself. Do you have to know the explicit special commands of the class, or what.
hope that clarifies a little. Thanks for your help. I have downloaded and read a lot of that link. A good starting guide, cheers
Offline
You can put your .cls file either in the current dir, where your .tex file resides, or to make it system-wide available, a customary location is <your texlive dir>/texmf-local/tex/latex/<class name>/<here it goes>. Anything under <your texlive dir>/texmf-*/tex/latex/ is available to latex. Don't forget to run 'mktexlsr' to renew tex's database of available files after you copy stuff into the texmf tree. <your texlive dir> is probably /opt/texlive.
As far as winefish goes, you need to look into its documentation, if it changes menus on the fly. My expectation is that it wouldn't change the menus at all. Some editors do, but mostly only for classes that they know about in advance (e.g. basic ones, maybe amslatex). It's almost impossible for an editor to go through a .cls file and get some info out of it, since .cls files tend to be quite complicated and contain a whole lot of macros, which, as a user, you never see directly.
I used winefish a while ago, but didn't like it too much (I use emacs+auctex now, and long used vim+vimlatex). If you use KDE, kile is my favorite.
Offline
hey bender....I have emacs and autex installled...what do you find better with that combo then winefish? Also, what do you like versus vim and latex-suite?
Offline
Well, winefish used to take too much processor power and time for syntax highlighting (but I had a bit older computer back then).
Vim+vimlatex didn't like new vim 7.0 much (I think with latex it was fine, but I used plain tex/amstex sometimes).
And now I do also a lot of other stuff in emacs (planner mode, manage my website with muse, check some newsfeeds with newsticker... you know "emacs is a good operating system, except it lacks an editor" the bad voices used to say...)
Offline
I have tried both Vim (with vim-latex) and Emacs, and so far I find Emacs to be a bit more pleasant for writing LaTeX documents. I think Vim's mode system is quite cool, but it's not really needed outside editing code. For writing papers Emacs just does it, and you won't need to know that many keybindings, so it's just more convenient to be able to do everything with the "insert mode", so to speak.
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
Why not check out my tutorials if you want a good walk-through how to use LaTeX (see link in sig).
And for what it's worth, I personally use vim for all my latex editing (and text editing, for that matter).
Offline
Pages: 1