nisus.com
https://www.nisus.com/forum/

Setting the tier of a section number in a macro
https://www.nisus.com/forum/viewtopic.php?f=17&t=4449
Page 1 of 1

Author:  MalcolmRoss [ 2011-08-14 06:00:46 ]
Post subject:  Setting the tier of a section number in a macro

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

Author:  martin [ 2011-08-15 10:46:03 ]
Post subject:  Re: Setting the tier of a section number in a macro

Hello Malcolm- that's no trouble. This ought to do it:
Code:
Menu ':Format:Increase Indent'

Author:  MalcolmRoss [ 2011-08-15 14:57:04 ]
Post subject:  Re: Setting the tier of a section number in a macro

Thanks, Martin. I should have looked at the menu items a bit more carefully!

--Malcolm

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/