Thread: [MiKTeX] How to made classes files
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: Luis <lu...@ua...> - 2004-01-30 19:00:41
|
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 |
From: Charley H. <cha...@uc...> - 2004-01-30 21:08:13
|
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: cha...@uc... |
From: Paul T. <pa...@wu...> - 2004-01-30 21:46:23
|
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: cha...@uc... > > > > > >------------------------------------------------------- >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 >MiK...@li... >https://lists.sourceforge.net/lists/listinfo/miktex-users |
From: Guillemo D. <da...@ga...> - 2004-01-31 01:33:44
|
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 >MiK...@li... >https://lists.sourceforge.net/lists/listinfo/miktex-users |
From: Alan G I. <ai...@am...> - 2004-01-31 16:30:39
|
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 |
From: Knut H. <ma...@he...> - 2004-01-31 07:18:06
|
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" <lu...@ua...> To: <mik...@li...> 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 > MiK...@li... > https://lists.sourceforge.net/lists/listinfo/miktex-users |