On Saturday 20 January 2007 09:19, Oliver Hader wrote: > Hi! > > The Situation: > If have regular text sections describing some kind of software. In some > cases it is necessary to provide some lines of source-code (such as Java > or PHP). Sometimes it is also required to reference from the regular > text secitions to a certain line of such a source-code-box (e.g. "as you > can see in line 14 of the code-section..."). > > The problem: > I'm looking for a solution to have automatically shown line numbers for > the source-code-sections. Tools>Line Numbering offers a possibility to > do this for the whole document and I can reduce this to selected > sections, but these line numbers appear very left to the section - but > I'd like to have them inside a given section that is styled with a > border, background, etc. > > Any hints on that? Thanks in advance to everyone for some feedback! > > > olly
You could try using a list style and assign it to a paragraph style. That would give you lots of control where the line numbers appear (at least on the left side, which is what you want), unlike the line numbering tool. The downside is each paragraph, not line, would be numbered. For source code, though, this shouldn't be a big issue. -- Fail to learn history-repeat it. Fail to learn rights-lose them. Learn both-get screwed by previous two groups. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
