Menu

#809 \usepackage doesn’t always pick up packages for highlighting

None
fixed
nobody
None
5*
2016-01-27
2013-09-17
doncherry
No

Packages are not recognized for cwl highlighting if

  1. two packages are loaded in one \usepackage command; only the first package is recognized:

    \usepackage{lipsum, blindtext}
    \lipsum
    \blindtext
    
  2. the \usepackage macro is broken across two lines:

    \usepackage[someoption
       ]{lipsum}
    \usepackage{
       blindtext}
    \lipsum
    \blindtext
    
2 Attachments

Related

Bugs: #809
Feature Requests: #549

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2013-09-17

    txs can not understand commands which are broken over several lines.
    This is a general limitation and is not considered as a bug.
    Furthermore if you leave out the space before "blindtext" in usepackage, the txs parser works fine.

     

    Last edit: Jan Sundermeyer 2013-09-17
    • doncherry

      doncherry - 2013-09-17

      Thanks, good to know! Nonetheless, then it’d be a feature request for TXS to recognize commands that are broken over several lines :)

       
  • Jan  Sundermeyer

    Jan Sundermeyer - 2013-09-17
    • status: open --> fixed
    • Group: -->
     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2013-09-17

    white space problem fixed, multi line commands are not supported

     
    • doncherry

      doncherry - 2013-09-17

      Thanks! Is there any point in submitting a separate feature request for the multi line commands?

       
      • Tim Hoffmann

        Tim Hoffmann - 2013-09-17

        Feel free. It's good to have this documented. However, I can already tell you, that it won't be implemented in the foreseeable future, because this would require a complete rewrite of the parser, which is currently line-based.

         
        • doncherry

          doncherry - 2013-09-18

          Follow-up posted in [feature-requests:#549].

           

          Related

          Feature Requests: #549

  • Jan  Sundermeyer

    Jan Sundermeyer - 2013-09-17

    Well, it does not hurt but it does not accelerate anything as the
    developers are aware of the limitation. Since the fix is not easy, it
    will probably not resolved soon ...

    On 17.09.2013 22:58, doncherry wrote:

    Thanks! Is there any point in submitting a separate feature request for
    the multi line commands?


    [bugs:#809] http://sourceforge.net/p/texstudio/bugs/809/ \usepackage
    doesn’t always pick up packages for highlighting

    Status: fixed
    Created: Tue Sep 17, 2013 11:55 AM UTC by doncherry
    Last Updated: Tue Sep 17, 2013 08:55 PM UTC
    Owner: nobody

    Packages are not recognized for cwl highlighting if

    1.

    two packages are loaded in one |\usepackage| command; only the first
    package is recognized:
    
    \usepackage{lipsum, blindtext}
    \lipsum
    \blindtext
    

    2.

    the |\usepackage| macro is broken across two lines:
    
    \usepackage[someoption
       ]{lipsum}
    \usepackage{
       blindtext}
    \lipsum
    \blindtext
    

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

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

     

    Related

    Bugs: #809


Log in to post a comment.