#464 Reflow and LaTeX

General (289)

When using 'Reflow lines/block' on LaTeX code, geany will break commands/code at the wrong point, resulting a different output than desired when the TeX code is compiled into a document.

For example a command like X$_y$ at the end of a line will be broken between the X and $, putting a space in between X and its subscript y when compiled. Another example is if you want an unbreakable space (~ in LaTeX code) between some text and a command (lets say \ref{}) like Fig.~\ref{}, geany will break it between the ~ and \, resulting in two spaces (one of which is breakable) in the final document.

When breaking lines as you type (Document -> Line Breaking) the commands will be broken at the correct points, this problem lies soley with the 'Reflow lines/block' function.

This was tested on geany 0.18.1 (built on Feb 15 2010 with GTK 2.18.6, GLib 2.22.4) in Arch Linux.


  • Lex Trotman

    Lex Trotman - 2012-09-14
    • status: open --> open-postponed
  • Lex Trotman

    Lex Trotman - 2012-09-14

    Line breaking simply uses whitespace to decide breaks and will not break within a sequence, reflow will.

    Neither is aware of any semantics of the content other than whitespace.

    There is a pull request under way to make them operate more exactly the same, should be reviewed after that is accepted or rejected

  • Lex Trotman

    Lex Trotman - 2013-04-21
    • status: open-postponed --> closed-fixed
  • Lex Trotman

    Lex Trotman - 2013-04-21

    The change has been applied to Git, both reflow and line breaking should now only break on whitespace, and at the same place.

  • Colomban Wendling

    • milestone: --> v1.24

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks