Text Formatting ⇒ Package for automatic interpretation of linebreak
Package for automatic interpretation of linebreak
Is there a package that will interpret every instance of ENTER as a line break, so that every time I ENTER down on my keyboard it will be interpreted as \\ ? (Not in math mode, just in normal text mode).
Latex editor of choice: TexWorks (for dual view feature)
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Package for automatic interpretation of linebreak
Re: Package for automatic interpretation of linebreak
Latex editor of choice: TexWorks (for dual view feature)
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Package for automatic interpretation of linebreak
You can limit the scope of this command also by \begingroup ... \endgroup or by cury braces { ... }.
Also,
Code: Select all
\begin{obeylines}
...
\end{obeylines}
These are general ways for local declarations.
Stefan
Package for automatic interpretation of linebreak
Thanks again Stef, very good explanation - your answer was comprehensive and concise.Stefan_K wrote:\obeylines works within environments and is local to that. That means, if you use it within an environment, it has no effect after that environment has ended.
You can limit the scope of this command also by \begingroup ... \endgroup or by cury braces { ... }.
Also,
would be a way.Code: Select all
\begin{obeylines} ... \end{obeylines}
These are general ways for local declarations.
Stefan

Latex editor of choice: TexWorks (for dual view feature)