Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm the maintainer of the ledmac package (for critical editions).

I would like to have the possibility to start all the lines with hanging indentation with some chosen character, like this (where this character would be [):

A very long, very long, very long,very long,
   [very long, very long, very long line
   [A hanged line
   [Another hanged line
A very long, very long, very long,very long,
   [very long, very long,very long line
share|improve this question
3  
What do you mean by "make a [character]"? Would you be able to provide a visual of what you're after? –  Werner Sep 10 '11 at 6:25
    
Welcome Maieul! Nice to see you here! Since you're here now, I added your profile to meta.tex.stackexchange.com/questions/1181/… :-) –  ℝaphink Sep 10 '11 at 6:43
1  
Welcone Maieul! I too am a bit confused -- are you looking to start some lines with a raised or dropped enlarged letter? –  Mico Sep 10 '11 at 9:47
    
thank everybody ! I would like that some lines, whose are hanged, start with a caractère, like [. See an exemple of what I would like : partage.maieul.net/hanged.pdf –  Maïeul Sep 10 '11 at 19:57

2 Answers 2

I implemented something similar in the gmdoc-enhance package to have leading % signs on each comment line. It makes the space character active and expand in principle to \discretionary{}{\gmde@kommentarStart}{}~, where \gmde@kommentarStart puts a \hbox with the contents I want to show.

The problem here is that \gmde@kommentarStart will be evaluated for every space, not only for those that create a line break - but only for those the box will actually occur in the output. And also, I have to make sure that no other line breaks occur, which destroys most of TeX's line breaking algorithm (i.e. I essentially need \raggedright and no word-breaking). This is acceptable for my use case, but might not be for your one.

share|improve this answer
up vote 0 down vote accepted

So, I find an other solution to integrate it on the ledmac / ledpar package. As the package use hbox, a made a code we everyhbox and some counters.

share|improve this answer
5  
Would you like to expand a bit your answer telling also the general scheme of the solution? –  egreg Oct 1 '11 at 22:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.