texstudio-org / texstudio-org/texstudio

Structure panel empty in DTX files.

Open
#324 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
3.6k
Forks
403
Avg merge
3h 14m
Merged PRs (30d)
12

Description

Environment
  • TeXstudio: 2.12.10
  • Qt: Qt Version 5.8.0, compiled with Qt 5.8.0 R
  • OS: Windows 10, Version 1803.
  • TeX distribution: Miktex.
Expected behavior

In DTX files, a line

%\section{Introduction}

should cause an entry in the structure view, since the document contents in DTX files are contained exclusively in commented lines.

Actual behavior

The structure view remains empty. It is not affected by the "Show elements in comments" option, which apprently refers to comment-environments only.

How to reproduce

Type %\section{foo}. Save as .dtx file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a saved .dtx file using the documented %\section{foo} input, then inspect the structure view and the "Show elements in comments" behavior. The fix is complete when section commands inside commented DTX lines produce structure entries without requiring comment-environment handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, latex
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.