Menu

#904 TeXstudio does not recognize section titles when hard word wrapping is in use

None
wont-fix
nobody
None
1
2014-05-15
2014-02-11
No

When there is a line break in a section title, as in

\section{This is a long
   section title}

TeXstudio cannot read the section title and leaves a blank in the the document 'structure' subwindow. Unfortunately, this situation is typically the case when using hard word wrap or when importing documents initially prepared with emacs that uses hard word wrap by default.

Related

Bugs: #904

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2014-02-11

    Texstudio can only parse complete single lines.

    So, your case can't be handled and this will probably not change in the near future.

    In general, hard line wrapping is not recommendable.

    -------- Ursprüngliche Nachricht --------
    Von Sergio Callegari callegar@users.sf.net
    Datum: 11.02.2014 9:56 (GMT+01:00)
    An Ticket 904 904@bugs.texstudio.p.re.sf.net
    Betreff [texstudio:bugs] #904 TeXstudio does not recognize section titles when hard word wrapping is in use

    [bugs:#904] TeXstudio does not recognize section titles when hard word wrapping is in use

    Status: open
    Created: Tue Feb 11, 2014 08:56 AM UTC by Sergio Callegari
    Last Updated: Tue Feb 11, 2014 08:56 AM UTC
    Owner: nobody

    When there is a line break in a section title, as in

    \section{This is a long
    section title}
    TeXstudio cannot read the section title and leaves a blank in the the document 'structure' subwindow. Unfortunately, this situation is typically the case when using hard word wrap or when importing documents initially prepared with emacs that uses hard word wrap by default.

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/texstudio/bugs/904/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #904

    • Steve Samuels

      Steve Samuels - 2014-02-22

      I don't see this problem in OS X 10.8.5, TeXstudio 2.7 beta3 (hg 4261)

       
  • Jan  Sundermeyer

    Jan Sundermeyer - 2014-02-11

    can't fix

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2014-02-11
    • status: open --> wont-fix
    • Group: -->
     
  • Sergio Callegari

    Sad.

    TeX is actually designed around the hard line wrap concept. This is the reason why a paragraph break is indicated by an empty line and not by a line break and why single linebreaks (not implying an empty line) have no semantic meaning at all in a tex source (other than indicating the end of a comment). I believe that the reason for this is that most text editors up to a recent past could not handle very long lines. I think that this is still the case with notepad, KDE kate, etc.

    Unfortunately this means that all legacy TeX documents tend to be based on a hard line wrap. The fact that TeX is also happy without hard wrap is certainly a big plus of TeX and also the fact that new documents can benefit from avoiding a hard line wrap is probably true. But it is a pity that such a good environment like texstudio has problems with legacy stuff. Similarly it is a pity that one may have problems using it when there is a need to interact with others that may use other editors. And most important it is a pity to hear that this cannot be fixed.

    Incidentally, apart from the hard line breaks, there is another good reason for breaking
    items on multiple lines and it is commenting...

    \section{A survey on the use of the Ohm % <- CHECK ME! Spelling Correct?
       law}
    
     
    • Koutheir Attouchi

      @Sergio: I perfectly agree. I voted the bug up.

       
  • Koutheir Attouchi

    (empty post)

     

    Last edit: Koutheir Attouchi 2014-05-15

Log in to post a comment.

MongoDB Logo MongoDB