GeneralIndentation in editor window? Soft-wrap configurable?

General information and discussion about TeXnicCenter
Post Reply
vario
Posts: 3
Joined: Thu Jul 30, 2009 3:42 pm

Indentation in editor window? Soft-wrap configurable?

Post by vario »

Hi,

in my LaTeX-documents I try to structure the text according to the current environment to make it more readable. So the indentation is similar to a programming language:

Code: Select all

Code, edit and compile here:
\begin{multicols}{3}
\graybox{%
\section*{Nuclear specific heat contribution}
In an external magnetic field everything changes. More text here. And even more. More text here. And even more. More text here. And even more. More text here. And even more. More text here. And even more. More text here. And even more. More text here. And even more. More text here. And even more. More text here. And even more.
New paragraph with even more information here. And even more. More text here. And even more. And even more. More text here. And even more. And even more. More text here. And even more.
}
\end{multicols}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Now with the nice soft-wrap feature there are no hard linebreaks inserted into the paragraph text. When wrapping the output is unfortunately like this:

Code: Select all

Code, edit and compile here:
\begin{multicols}{3}
\graybox{%
\section*{Nuclear specific heat contribution}
In an external magnetic field everything changes. More text here.
And even more. More text here. And even more. More text here. And even more. More
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Is there any way to still have a nicely structured LaTeX-document and at the same time use the automatic linebreaks/soft-wrap?

Thanks for any hints!
Alexander

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Indentation in editor window? Soft-wrap configurable?

Post by mas »

The feature you are looking for would be editor specific. If you mention the editor you are using, some one may offer suggestions to achieve what you are looking at.

On a personal note, I prefer hard wraps. I use vim's reformatting options to reset the changes that I have made to the text.

Regards,

sridhar

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
vario
Posts: 3
Joined: Thu Jul 30, 2009 3:42 pm

Re: Indentation in editor window? Soft-wrap configurable?

Post by vario »

Yes, this is definitely editor-specific. I was asking for TeXnicCenter, I hope this is the right area of the forum.
I wanted to avoid hard wraps because I don't want to manually insert cr/lf. Maybe I can try the vi feature, but the TeXnicCenter interface is quite nice in my opinion.
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Indentation in editor window? Soft-wrap configurable?

Post by mas »

The post was on General forum and hence my reply :)

I have not used TeXnicCenter, but can it not be configured to put a hard wrap at the end of a specified column? Personally, I feel uncomfortable reading lines longer than 70-80 columns.

Regards,

sridhar

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Post Reply