Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latex/next-section and %section #30

Open
thorstengrothe opened this issue Oct 3, 2018 · 1 comment
Open

latex/next-section and %section #30

thorstengrothe opened this issue Oct 3, 2018 · 1 comment

Comments

@thorstengrothe
Copy link

I got some %section commands for structuring my document. This way the %sections are not seen by latex and I can fold them with latex-extra. But latex/next-section does not work with it. How can I register
%section so that latex/next-section will see that this is a \section command?

I found this in the source code but I have no clue how the regex for %section works

(latex/section-hierarchy
     (quote
      ("\\\\headerbox\\_>"
       "\\\\subparagraph\\*?\\_>"
       "\\\\paragraph\\*?\\_>"
       "\\\\subsubsection\\*?\\_>"
       "\\\\subsection\\*?\\_>"
       "\\\\section\\*?\\_>"
       "%section\\*?\\_>" --> regex?
       "%%subsection\\*?\\_>" --> regex?
       "\\\\chapter\\*?\\_>"
       "\\\\part\\*?\\_>"
       "\\\\appendix\\_>\\|\\\\\\(begin\\|end\\){document}"
       "\\\\documentclass\\_>")))

Regards
Thorsten

@Malabarba
Copy link
Owner

Hi there.
The regexps you wrote look fine to me. Did they not work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants