Document ClassesHow to use a class with Vim

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
frankie
Posts: 2
Joined: Fri Feb 19, 2010 12:19 pm

How to use a class with Vim

Post by frankie »

Hi. I'm considering using Latex for writing a small magazine. I found something on CTAN called papertex that looks like it should help me. But I just don't know how to get started.

I'm used to vim, so I installed vim-latexsuite and some latex features appear in the tool bar. But I just don't know how to use what I found on CTAN.

First of all the README says:

Download the file papertex.cls ...

There is no such cls file there, that puzzles me. I googled for one and I found this:

http://www.tug.org/texmf-dist/tex/latex/papertex

I read I should place the .cls in .vim/ftplugin/latex-suite/templates/
But gvim fails when I try to use it:

Error detected while processing function
<SNR>43_ReadTemplate..Tex_pack_updateall..Tex_ScanForPackages:
line 138:

Another issue is that line in the README:

This class requires other LaTeX packages that you might need to
download before compiling your documents.

What packages would that be ?

I know may be I just didn't read a basic Latex Getting Started document
or something. I've been reading some docs I found but I'm still clueless.
I will gladly read any document I get pointed to.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: How to use a class with Vim

Post by localghost »

I'm not familiar with Vim. But doesn't it rely on an already installed LaTeX system? If so, just install the concerned class with the package manager of your LaTeX distribution.


Best regards and welcome to the board
Thorsten
frankie
Posts: 2
Joined: Fri Feb 19, 2010 12:19 pm

How to use a class with Vim

Post by frankie »

frankie wrote:Hi. I'm considering using Latex for writing a small magazine. I found something on CTAN called papertex that looks like it should help me. But I just don't know how to get started.
Well, the author of papertex kindly answered me I had to build the .cls
file issuing the command latex papertex.ins

Now it looks I can open the example .tex file with vim.
Post Reply