Feature SuggestionsWord Wrap

Suggestions and discussions for new TeXnicCenter features
pippukz
Posts: 1
Joined: Mon Jan 22, 2007 11:43 pm

Word Wrap

Post by pippukz »

Hello i think that a nice feature is an auto soft wrap function that wrap text (put a CR+LR character ) at specified column number, to ensure that all lines are not too long.
(Winedt have a similar function. It call it soft wrapping).

excuse me for my bad english and

Complimenti per l'editor!!!

Nicola Lunghi

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Commodore64
Posts: 2
Joined: Sat Feb 03, 2007 6:15 pm

Re: Word Wrap

Post by Commodore64 »

If I'm not wrong, the feature you are asking is called hard wrap. In contrast, soft wrap is the TeXnicCenter mode, where text is wrapped without newline characters being inserted.

I have a suggestion concerning soft wrap (the way I mean it). I suggest to preserve indentation when a line is wrapped. That is, assume that a line has an indentation of k spaces. Every time a screen line is full text should continues to be drawn in the following line (without introducing a forced new line character in the source), and the first word should start from column k+1 (rather than from column 1, as it is now). This would make indentation much more useful.

Let me remark that, to my knowledge, no LaTeX environment for windows has this feature (only Textpad has, but it is not a LaTeX IDE and it is not free). Instead, Kile has this feature, and I find it essential.

Do you think it would be complicated to implement this feature?

Thank you!
Regards,
Luca
User avatar
Sebi
Posts: 20
Joined: Sat Jan 20, 2007 11:18 pm

Word Wrap

Post by Sebi »

Commodore64 wrote: Let me remark that, to my knowledge, no LaTeX environment for windows has this feature (only Textpad has, but it is not a LaTeX IDE and it is not free). Instead, Kile has this feature, and I find it essential.


WinEdt also has this feature (combined with variable-width fonts).

Regards,
Sebastian
Last edited by Sebi on Sun Feb 04, 2007 1:17 am, edited 1 time in total.
torgeirb
Posts: 1
Joined: Thu Apr 26, 2007 4:04 pm

Word Wrap

Post by torgeirb »

Commodore64 wrote: If I'm not wrong, the feature you are asking is called hard wrap. In contrast, soft wrap is the TeXnicCenter mode, where text is wrapped without newline characters being inserted.


I support the feature request for making it possible to enable hard wrap. Hard wrap makes it easier to diff a .tex-file with, say, another revision of the same file. It also makes it easier in an environment where people use different editors.

Best regards,
Torgeir
Last edited by torgeirb on Thu Apr 26, 2007 4:10 pm, edited 1 time in total.
moti
Posts: 1
Joined: Wed Jul 11, 2007 8:04 am

Re: Word Wrap

Post by moti »

I prefer hard word wrap because the file
remains the same even when viewed outside the
environment.

Hard word wrap is done very well in jEdit (free),
as well as in TeXlipse/Eclipse (free).
You just select a paragraph and press a key.

Moti
User avatar
Sebi
Posts: 20
Joined: Sat Jan 20, 2007 11:18 pm

Re: Word Wrap

Post by Sebi »

I prefer soft-wrap for the following reason:
Whenever a document is edited by multiple users with different screen/font sizes, soft wrap ensures that is looks good on all font/screen sizes. With hard wrap, the line lengths are mostly too short or too long.
Since I have 3 computers in use at different locations, I only use soft-wrap.
tomatoma
Posts: 1
Joined: Thu Aug 02, 2007 11:47 am

Re: Word Wrap

Post by tomatoma »

Hi all,

I use TeXnicCenter. I agree with Sebi about soft-wrap.
However, it's almost impossible to write a table with TeXnicCenter whenever many lines of the table are wider than the editor window. :cry:
Suppose you have a line of the table splitted in several lines in the editor. Massive chaos!
For example, WinEdt does not wrap lines ending with \\. So, you can put all '&' of the table in the same column of the editor, and the table looks much tidier in the editor.

I'm looking forward to seeing this feature in TeXnicCenter! (or at least the possibility of temporarily turn off the word wrapping!)

Anyone knows a workaround ?
Thanks
bye

Matteo
User avatar
mappo
Posts: 25
Joined: Thu Nov 29, 2007 11:19 am

Re: Word Wrap

Post by mappo »

I just wanted to add my support to Commodore64's suggestion on line indentation preservation.
It would be great!
If you don't recycle, you're throwing it all away.
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Re: Word Wrap

Post by Ted »

FYI, UltraEdit has this feature. It soft wraps, but then you can "Convert Word Wrap to CR/LF" or "Convert CR/LF to Word Wrap". UltraEdit has lots of other nice features.

Personally, I use (g)Vim on all my platforms. It gives me both soft and hard wrapping, depending on what I want, and it's the same interface everywhere. (Plus, it has great LaTeX support)
-- Ted [home/blog]
Al_Anchorite
Posts: 1
Joined: Mon Sep 01, 2008 11:53 am

Re: Word Wrap

Post by Al_Anchorite »

In my opinion, it would be great to have both hard wrap and soft wrap and the possibility to setup this.

I have one more related suggestion - sometimes you have a hard-wrapped text, i.e. copied from another editor, and you would like to re-format it and soft-wrap it, i.e. remove end-of-line characters. Would it be possible to add something like a menu item for this? If I am not mistaken, WinEdt has something similar.
Post Reply