LaTeX forum ⇒ GeneralHow to indent in TeXnicCenter Topic is solved

General information and discussion about TeXnicCenter
Chiba
Posts: 1
Joined: Thu Jul 17, 2014 8:49 pm

How to indent in TeXnicCenter

Postby Chiba » Thu Jul 17, 2014 9:08 pm

I have a problem when I try to indent in the editor TeXnicCenter. I have asked the question here: http://tex.stackexchange.com/questions/ ... xniccenter and I would like to know how to indent correctly in this editor?


Here is the text:
  1. \section{Hello}
  2. Hi, How are you? Today is my birthday
  3. so I won't be able to come. blablabla
  4. ablablablablablablablablablablablabla
  5. ablablablablablablablablablablablabl.
  6. I am fine. Thanks. It's ok.


Here is the output when I indent using tab:
  1. \section{Hello}
  2. Hi, How are you? Today is my birthday
  3. so I won't be able to come. blablabla
  4. ablablablablablablablablablablablabla
  5. ablablablablablablablablablablablabl.
  6. I am fine. Thanks. It's ok.


Here is the output that I would like to get:
  1. \section{Hello}
  2. Hi, How are you? Today is my birthday
  3. so I won't be able to come. blablabla
  4. ablablablablablablablablablablablabla
  5. ablablablablablablablablablablablabl.
  6. I am fine. Thanks. It's ok.

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3724
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Jul 17, 2014 9:58 pm

Line wrapping is done by the editor*. Personally, my editor makes a hard line break after 65 chars (a terminal window usually showed 80 chars, still the LaTeX-log-file default), so all lines are pretty short (and easy to read, i don't have to turn my head). That is the complete opposite to what Sigur told you. Remember: Every linebreak is a space for latex.

How to do the actual indent, sorry, i don't know.

* Think of every line like a piece of paper laid down on a table and glued together. Long lines mean long paper stripes (making it hard to fold and put it in a bag). My editor cuts the pieces and sets them one below the other. Line Wrapping is like looking through a looking glass, cutting long pieces one below the other.

This is something technical and should not be important today, but in *the old days* it was.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest