Reply to topic  [ 3 posts ] 
Setting the tier of a section number in a macro 
Author Message

Joined: 2011-08-14 05:32:51
Posts: 12
I am trying to write a macro which will replace section headers marked by tags (actually the LaTeX tags '\section', '\subsection' etc) with formatted, numbered headers.

The one thing that has defeated me is the numbering of subsections and subsubsections. Manually, the numbers are inserted with Format:Lists:Headings, and the next tier is entered by immediately pressing 'Tab' (i.e. pressing Tab turns, say, '2' into '2.1' etc).

Obviously I can use Format:Lists:Headings as a menu command in the macro, but I don't know how to emulate the effect of pressing 'Tab'. Can anyone tell me how?

Thanks.

--Malcolm


2011-08-14 06:00:46
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Hello Malcolm- that's no trouble. This ought to do it:
Code:
Menu ':Format:Increase Indent'


2011-08-15 10:46:03
Profile WWW

Joined: 2011-08-14 05:32:51
Posts: 12
Thanks, Martin. I should have looked at the menu items a bit more carefully!

--Malcolm


2011-08-15 14:57:04
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software