GeneralHow to indent in TeXnicCenter

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

How to indent in TeXnicCenter

Post by Chiba »

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:

Code: Select all

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

Code: Select all

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

Code: Select all

\section{Hello}
      Hi, How are you? Today is my birthday
      so I won't be able to come. blablabla
      ablablablablablablablablablablablabla
      ablablablablablablablablablablablabl.    
      I am fine. Thanks. It's ok.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to indent in TeXnicCenter

Post by Johannes_B »

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.
Post Reply