7

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.

0

3 Answers 3

4

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!).

7
  • Could be wishlist for TeXShop?
    – Kit
    Nov 9, 2010 at 21:55
  • @Kit, I've edited my answer with a link where you can vote for this feature to be implemented. Nov 9, 2010 at 22:01
  • @Juan: Hmm, this is the only wrapping/indenting scheme in my editor :-) Nov 9, 2010 at 22:16
  • @Hendrik: Is that emacs? I knew someone would point out something like this... Nov 9, 2010 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. Nov 10, 2010 at 10:59
1

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.

2
  • Actually the individual items are long paragraphs. I was just showing the left edge to illustrate the non-indentation.
    – Kit
    Nov 9, 2010 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, 2010 at 22:23
1

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .