[texhax] Printing section numbers in the margin in LaTeX

Sridhar M.A. mas at mylug.org
Sat Nov 19 02:54:02 CET 2005


On Fri, Nov 18, 2005 at 05:49:02PM +0100, Guan Yang wrote:
   > Hi,
   > 
   > A couple of years ago I produced an essay that had section numbers in  
   > the margin, using some code I found on the internet. Here's a  
   > demonstration of what it looked like:
   > 
   > http://unicast.org/misc/marginsec.png
   > 
   > Now I can't find my original tex source or the page where I found the  
   > code. Could anybody help me recreate the effect of section numbers in  
   > the margin?
   > 
I have used the following to get the effect you mention:

  \def\@seccntformat#1{%
       \protect\makebox[0pt][r]{%
              \csname  the#1\endcsname\quad}}

Hope it helps.

Regards,

-- 
Sridhar M.A.                                 GPG KeyID : F6A35935
  Fingerprint: D172 22C4 7CDC D9CD 62B5  55C1 2A69 D5D8 F6A3 5935

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://tug.org/pipermail/texhax/attachments/20051119/b4fd2a96/attachment-0001.bin


More information about the texhax mailing list