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.

How do I make long paragraphs follow the source indents in TeXShop? This what I usually get:alt text

How do I make succeeding lines follow the indent of the first line? This is so that it would be easier to navigate the source.

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Currently, there is no way to make TeXShop indent long lines as you want. If you would like this feature to be implemented, you can “vote” for this feature request.

However you might want to consider breaking the long lines into shorter ones and manually indenting as you will. Some of the advantages of doing so are:

  • You get to indent however you want. For example, for itemizes I tend to write

    \item Lorem ipsum ...
          dapibus ac, ...
          ornare nisi, ...
    

    which doesn't correspond to any if the common automatic wrapping/indenting schemes implemented in text editors.

  • The indentation is stored in the file, so that yourself and your coauthors can “see” it regardless of the editor you use.

  • Tools for diffs, file merges and version control benefit from shorter lines (which in turn benefit you!).

share|improve this answer
    
Could be wishlist for TeXShop? –  Kit Nov 9 '10 at 21:55
    
@Kit, I've edited my answer with a link where you can vote for this feature to be implemented. –  Juan A. Navarro Nov 9 '10 at 22:01
    
@Juan: Hmm, this is the only wrapping/indenting scheme in my editor :-) –  Hendrik Vogt Nov 9 '10 at 22:16
    
@Hendrik: Is that emacs? I knew someone would point out something like this... –  Juan A. Navarro Nov 9 '10 at 22:41
3  
@Juan: That was kind of a hidden joke: I said my editor, meaning a TeX editor for DOS I started writing 16 or so years ago, and which I still use in a DOSbox. Call me crazy if you wish. That indentation scheme was one of the first things I implemented. –  Hendrik Vogt Nov 10 '10 at 10:59

I don't use TeXShop so I can't say for sure, but your problem might lie in the fact that your items are all on one gigantically long line. Consider splitting those up into individual lines that'll fit the width of your screen.

share|improve this answer
    
Actually the individual items are long paragraphs. I was just showing the left edge to illustrate the non-indentation. –  Kit Nov 9 '10 at 21:53
    
Those paragraphs are all on one line though—the first item is all on line 6, the second is all on line 8. –  Andrew Nov 9 '10 at 22:23

I know I've already answered this question and you've already accepted an answer, but Notepad++ has implemented this feature in their latest version.

share|improve this answer
    
+1 Thanks for the heads-up :) –  Kit Feb 5 '11 at 5:01

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.