Daniel-Diaz / HaTeX

The Haskell LaTeX library.
BSD 3-Clause "New" or "Revised" License
199 stars 46 forks source link

Add more line breaking commands #110

Closed romildo closed 6 years ago

romildo commented 6 years ago

Some additional basic LaTeX commands related to line breaking:

lnbkspc: \\[extra-space]

lnbkspc_: \\*[extra-space]

eol: empty comment (which will emit a new line)

Daniel-Diaz commented 6 years ago

Thanks, this looks good. One question only: can you justify defining eol? Any compelling examples of use?

romildo commented 6 years ago

can you justify defining eol? Any compelling examples of use?

I use eol mainly to force new lines on the generated LaTeX output, making it easier to read and analyze what HaTeX is producing.

Daniel-Diaz commented 6 years ago

@romildo Have you tried the pretty printer? I think it should produce more readable LaTeX code.

romildo commented 6 years ago

Have you tried the pretty printer?

Yes, I have. I use it, and also eol for more control on the HaTeX output.