Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion latex class structure
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Arnold  
View profile  
 More options Nov 1 2012, 12:15 pm
Newsgroups: comp.text.tex
From: Tim Arnold <Tim.Arn...@sas.com>
Date: Thu, 01 Nov 2012 12:15:59 -0400
Local: Thurs, Nov 1 2012 12:15 pm
Subject: Re: latex class structure
On 10/31/2012 5:19 PM, Dan Luecking wrote:

> On Wed, 31 Oct 2012 12:09:36 -0700 (PDT), Tim<jtim.arn...@gmail.com>
> wrote:

>> I have a custom class that is based on the memoir class. My question is when should I load memoir? My current structure is:

>>     LoadClass[some options]{memoir}

>>     RequirePackage{several lines of packages}
>>     newcommands defined
>>     newifs defined

>>     DeclareOptionX{lots of options defined} % (using xkeyval)
>>     ProcessOptionsX

>>     memoir settings defined
>>     more local macros defined

>> Now I find I need to create a new option and pass it to memoir, so I'll have to move its loading to after my option processing.

>> Is there any rule about the order in which these things are done? In hindsight I guess that option processing should generally come first.

>> Any rules of thumb about setting up class structure, esp when loading another class?

>> thanks,
>> --Tim Arnold

> Use
> \DeclareOption{memoiroption}{\PassOptionsToClass{memoiroption}{memoir}}

> Then load memoir after option processing, i.e., after \ProcessOptions
> and/or \ExecuteOptions.

> Or, to pass all options you have not otherwise declared:
>    \DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}

> Dan
> To reply by email, change LookInSig to luecking

Hi Dan,
That is what I had in my mind, but only 'fuzzily'. Thanks for the
explicit example--it is exactly the kind of info I was looking for.

thanks,
--Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.