Re: [MiKTeX] How to made classes files

Louis,
Here is the easiest way... Open book.cls (e.g.), save it as luis.cls (sa=
me
directory). Amend it accordingly: It needs to p r o v i d e the class lou=
is
("\ProvidesClass{louis} instead of \ProvidesClass{book}") and start !
You can make amendmends here and there ... (and please make it available
when it's perfect one day.)
All the best
Knut,
Berlin
----- Original Message -----=20
From: "Luis Gon=E7alves" <luisgo@...>
To: <miktex-users@...>
Sent: Friday, January 30, 2004 8:00 PM
Subject: [MiKTeX] How to made classes files
>
>
> Could any one inform me if there are tutorials or books about ho=
w
to made classes in Latex
> (".cls" files)?
>
> It is preferable docummentation in the internet (CTAN or TUG or
others).
>
> I read somewhere that is done one file and "compiled or parsed" =
to
".cls". I have no
> certain if that procedure is for ".sty" files.
> (I have to change one .cls file)
>
> Regards
>
> Luis Gon=E7alves
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> MiKTeX-Users mailing list
> MiKTeX-Users@...
> https://lists.sourceforge.net/lists/listinfo/miktex-users

Thread view

Could any one inform me if there are tutorials or books about how to made classes in Latex
(".cls" files)?
It is preferable docummentation in the internet (CTAN or TUG or others).
I read somewhere that is done one file and "compiled or parsed" to ".cls". I have no
certain if that procedure is for ".sty" files.
(I have to change one .cls file)
Regards
Luis Gonçalves

Luis -
When I wrote a class file for a specific application (my thesis
at UCI), I began by butchering report.cls directly. The only
references I could find were The TeXbook and some commentary in
(I think) LaTeX Companion.
There is a document out there which talks about writing classes and
packages, but it's relatively top-level, and I don't recall the name.
I *think* it's part of the standard distribution.
Do you *really* need to write a class file, or can what you
want to do be done with packages? The latter is usually a *lot*
easier unless you're doing production work.
Charley
--
Charles Hamilton, PhD EIT Faculty Fellow
Department of Civil and Phone: 949.824.3752
Environmental Engineering FAX: 949.824.2117
University of California, Irvine Email: chamilto@...

At 03:11 PM 1/30/2004, you wrote:
>Luis -
>
>When I wrote a class file for a specific application (my thesis
>at UCI), I began by butchering report.cls directly. The only
>references I could find were The TeXbook and some commentary in
>(I think) LaTeX Companion.
>
>There is a document out there which talks about writing classes and
>packages, but it's relatively top-level, and I don't recall the name.
>I *think* it's part of the standard distribution.
>
>Do you *really* need to write a class file, or can what you
>want to do be done with packages? The latter is usually a *lot*
>easier unless you're doing production work.
>
>Charley
Yeah, I concur. I wrote newlfm.cls, a letter class. I did that over a
long period, because the native LaTeX letter class sucks out
loud. However, for many purposes, classes already exist, or styles can do
the job.
Begin by writing macros to do things. Put the macros into a .sty
file. You only need a class when you need total control over things, which
isn't often.
Of course, when writing a class, you can always read in another class (only
one, however) and add hacks to it. that is the best way to begin.
The name of the document is clsguide.tex or some such, and it is in the SD.
>--
>Charles Hamilton, PhD EIT Faculty Fellow
>Department of Civil and Phone: 949.824.3752
> Environmental Engineering FAX: 949.824.2117
>University of California, Irvine Email: chamilto@...
>
>
>
>
>
>-------------------------------------------------------
>The SF.Net email is sponsored by EclipseCon 2004
>Premiere Conference on Open Tools Development and Integration
>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>http://www.eclipsecon.org/osdn
>_______________________________________________
>MiKTeX-Users mailing list
>MiKTeX-Users@...
>https://lists.sourceforge.net/lists/listinfo/miktex-users

Hi Luis:
I recommend you to study the .cls and .sty files in the
MiKTeX distribution.
Once you've done, you can made the modifications you like
and save your clases with some other name like "myarticle.cls"
Don't forget to modify, also, the sty file since you need also a
"myarticle.sty" file
Best regards
Guillermo Davila
At 07:00 PM 1/30/2004 +0000, you wrote:
> Could any one inform me if there are tutorials or books about how=20
> to made classes in Latex (".cls" files)?
>
> It is preferable docummentation in the internet (CTAN or TUG or=
others).
>
> I read somewhere that is done one file and "compiled or parsed" to=
=20
> ".cls". I have no certain if that procedure is for ".sty" files.
> (I have to change one .cls file)
>
> Regards
>
> Luis Gon=E7alves
>
>
>
>-------------------------------------------------------
>The SF.Net email is sponsored by EclipseCon 2004
>Premiere Conference on Open Tools Development and Integration
>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>http://www.eclipsecon.org/osdn
>_______________________________________________
>MiKTeX-Users mailing list
>MiKTeX-Users@...
>https://lists.sourceforge.net/lists/listinfo/miktex-users

At 07:00 PM 1/30/2004 +0000, Luis wrote:
> Could any one inform me if there are tutorials or books about how
> to made classes in Latex (".cls" files)?
A common reason that people ask about writing class files is
that they need to format a thesis. In this case, it may be
easier to use the memoir class:
http://mirrors.sunsite.dk/ctan/macros/latex/contrib/memoir/memman.pdf
Good luck,
Alan Isaac

Louis,
Here is the easiest way... Open book.cls (e.g.), save it as luis.cls (sa=
me
directory). Amend it accordingly: It needs to p r o v i d e the class lou=
is
("\ProvidesClass{louis} instead of \ProvidesClass{book}") and start !
You can make amendmends here and there ... (and please make it available
when it's perfect one day.)
All the best
Knut,
Berlin
----- Original Message -----=20
From: "Luis Gon=E7alves" <luisgo@...>
To: <miktex-users@...>
Sent: Friday, January 30, 2004 8:00 PM
Subject: [MiKTeX] How to made classes files
>
>
> Could any one inform me if there are tutorials or books about ho=
w
to made classes in Latex
> (".cls" files)?
>
> It is preferable docummentation in the internet (CTAN or TUG or
others).
>
> I read somewhere that is done one file and "compiled or parsed" =
to
".cls". I have no
> certain if that procedure is for ".sty" files.
> (I have to change one .cls file)
>
> Regards
>
> Luis Gon=E7alves
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> MiKTeX-Users mailing list
> MiKTeX-Users@...
> https://lists.sourceforge.net/lists/listinfo/miktex-users

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details