General ⇒ cleaning up latex source code
cleaning up latex source code
I would like to clean up my source code of latex files and I cannot find any option for this. I understand, automatic formatting of the code inside TXC would be useless for multi-user editing (because of the diff). There is visual line-breaking, but after some time, and exhausting editing, the line can be long. Cleaning up means:
- paragraphs should be normalised: fixed text-width
- latex objects indented
- spare lines & spaces deleted
Any suggestion how to clean up source files edited in TXC? I don't mind external solution, while it does not break TXC behaviour.
Thanks. Cheers, Z
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: cleaning up latex source code
It might be just a stupid thought, but have you ever thought of cleaning up your source code by-hand. Meaning, keep it as simple as possible. If you do so, you should not have any problem with your output file.
Cheers
cleaning up latex source code
There is no problem with the output, nor any problem caused by unclean latex source. example: I do not want to count chars until the end of the line to enter line-break, that allows me having my lines counted correctly. Example is posted above. You surely know there is only a double line-break (an empty line) that makes sense for latex. Similarly, looking for double space where one should be enough and that breaks the 'search' function. Cheers, Mfatra2 wrote:Hi there,
It might be just a stupid thought, but have you ever thought of cleaning up your source code by-hand. Meaning, keep it as simple as possible. If you do so, you should not have any problem with your output file.
Cheers
cleaning up latex source code
Code: Select all
\subsubsection{Basic Types of Controls}
The main methods for Capacity Control are\singlespacing
\begin{itemize}
\item booking limits,
\item protection levels and
\item bid prices.
\end{itemize}\onehalfspacing
Although these control mechanisms are only useful for Single Capacity Control and do not grasp the complexity of Network Capacity Control, there are derivates which are able to be referenced to Network control mechanisms. For presenting an overview, firstly the basic methods and then adapted control types for Network Capacity Control will be introduced.
\textbf{Booking limits} can be used if customers can be offered more than 1 fare-class. A booking limit sets a certain amount of units of a capacity for a fare-class which\ldots
Re: cleaning up latex source code
I can have my newly copied parts of the document to look like this, of course, by hand only, but not on demand.
Cheers, M