2

Suppose in a TeXmaker document that looks like something like

phrase 1       phrase 2 phrase 3             phrase 100

or a sentence that looks like

A   quick brown    fox        jumps over     the lazy dog

I want them to look like

phrase 1 phrase 2 phrase 3 phrase 100 

and

A  quick brown fox jumps over the lazy dog

in the latex document itself (not in the output pdf) i.e., with even gaps or in other words, remove unnecessary gaps. How do I do that? I want a single step process such as Ctrl+t comments out (or Ctrl+u restores it) several lines.

7
  • Put a blank line after each line? That is the universal law.
    – user156344
    Commented May 10, 2019 at 6:48
  • So you want to reduce the margin?
    – user156344
    Commented May 10, 2019 at 6:54
  • Alright, I see your edit. But why do you want to have it? One should change a paragraph in one-line code to multiple-line code. All documentations do so.
    – user156344
    Commented May 10, 2019 at 7:14
  • @DavidCarlisle I removed my comments and made the question clearer. Does it make sense now?
    – SRS
    Commented May 10, 2019 at 7:26
  • 1
    you can employ latexindent.pl to help with this. See latexindentpl.readthedocs.io/en/latest/… for example
    – cmhughes
    Commented Dec 10, 2020 at 18:07

0

You must log in to answer this question.

Browse other questions tagged .