[texworks] Hard wrapping

Bruno Voisin bvoisin at me.com
Wed May 6 09:02:39 CEST 2009

Le 6 mai 09 à 04:53, Jonathan Kew a écrit :

> On 5 May 2009, at 22:34, Dohyun Kim wrote:
>
>> For example, a document like this:
>>
>>   First line. %
>>   Second line.
>>
>> becomes as follows when hard-wrapped with re-wrap option checked:
>>
>>   First line. % Second line.
>
> [...]
>
> In general I think of this kind of re-wrapping as being appropriate
> for simple paragraphs of plain text, where there aren't normally
> embedded comments. If you've been breaking the text into lines and
> commenting them individually, then applying re-wrap probably doesn't
> make much sense.

There are situations when plain (non-wrapped) text may be mixed with
wrapped text with commented EOLs, for example

The following section will propose explanations why, as can be seen in
figure~\ref{fig-fig2}%
\begin{figure}
\centering
\includegraphics{fig2color}
\caption{Statistics for \TeX{} use (including all variants) in the
humanities over time,
superposed with \XeTeX{} use.}
\label{fig-fig2}
\end{figure}%
, the use of \TeX{} for scholarly writing in the humanities has
increased gradually over time but stayed modest until \XeTeX{} came
along.

Such (impractical) input is necessary if you want LaTeX to place a
figure precisely at the first position after this figure is mentioned
for the first time.

You wouldn't normally want to re-wrap such paragraphs automatically,
unless you select say several paragraphs (representing several
screens) and ask TeXworks to re-wrap all of them in one go, one
paragraph having the above structure which escaped your attention. Not
very likely, but still...

That said, it's quite possible there's no automated solution and
situations like the above have to be handled manually.

Bruno Voisin