Multiple document classes

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
sgb
Posts: 7
Joined: Wed May 03, 2006 1:01 pm
Location: UK
Contact:

Multiple document classes

Post by sgb »

I have lots of *.txt files and depending upon what they are used for, I want to apply a different document class to them.

Some are word wrapped at 72, or at 80 or are long lines.
Some are tabbed, some are spaced at 4 or at 8.

Is there a way of opening a txt file and then telling textpad to use "so-and-so" document class for it?

If not, can I do wacky things with macros to change the configuration of the txt class "now"?

Thanks

===
sgb
sgb
Posts: 7
Joined: Wed May 03, 2006 1:01 pm
Location: UK
Contact:

Multiple document classes

Post by sgb »

I see I asked the same question 18 months ago with no successful resolution.

In which case I will restate the question as "Is it possible to write a macro that loads up and is readily launchable that will edit the document class preferences currently in effect". If so how does one do it?

===
sgb
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

How about this approach?

Make classes and syntax files for *.tx1, tx2, tx3, etc.

open the *.txt file, use File/Rename to *.tx# to use tx# syntax.
When done, save as *.txt
Hope this was helpful.............good luck,
Bob
Post Reply