8000 format-tex-source: Property 'getLineTokens' of object LatexDocument(...) is not a function · Issue #4111 · texstudio-org/texstudio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
format-tex-source: Property 'getLineTokens' of object LatexDocument(...) is not a function #4111
Closed
@Playasene94

Description

@Playasene94

automatedTextmanipulation->formatTexSource.txsMacro
I know this script is very old, but is there a fix for this issue?
There must be an equivalent for "getLineTokens" we could use to revive this macro.

Environment

  • TeXstudio: 4.8.7
  • Qt: 6.9.0
  • OS: Win 11
  • TeX distribution: miktex

Expected behavior

Exec Macro in .tex file should format the document.

Actual behavior

We get an exception:
Property 'getLineTokens' of object LatexDocument(...) is not a function

How to reproduce

  1. Import automatedTextmanipulation->formatTexSource.txsMacro
  2. Exec Macro in a .tex document

I got a quick fix, an absolut minimal one to format the .tex file. Maybe this could be used instead of the old script for now:
format-tex-source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0