#333 include* gets ignored while document structure parsing

closed-wont-fix
nobody
5
2012-11-02
2012-08-09
Toki Loki
No

\include* procedure is used to include latex file without page break.

This procedure is ignored with TeXnicCenter and file tree is not correctly populated. Please find fix below.

diff -r 9004b0736003 TeXnicCenter/structureparser.cpp
--- a/TeXnicCenter/structureparser.cpp Thu Mar 15 11:13:30 2012 +0100
+++ b/TeXnicCenter/structureparser.cpp Thu Aug 09 15:19:39 2012 +0300
@@ -122,7 +122,7 @@
, m_regexUnknownEnvEnd(_T("\\\\end\\s*\\{([^\\}]*)\\}"))
, m_regexCaption(_T("\\\\caption\\s*([\\[\\{].*\\})"))
, m_regexLabel(_T("\\\\label\\s*\\{([^\\}]*)\\}"))
-, m_regexInput(_T("\\\\(input|include)\\s*\\{\\s*\"?([^\\}]*)\"?\\s*\\}"))
+, m_regexInput(_T("\\\\(input|include)\\*?\\s*\\{\\s*\"?([^\\}]*)\"?\\s*\\}"))
, m_regexBib(_T("\\\\(no)?bibliography(?!style)([[:alpha:]]+)?\\s*\\{\\s*([^\\}]*)\\s*\\}"))
, m_regexAppendix(_T("\\\\appendix([^[:graph:]]|$)"))
, m_regexGraphic(_T("\\\\includegraphics\\s*\\*?(\\s*\\[[^\\]]*\\]){0,2}\\s*\\{\\s*\"?([^\\}]*)\"?\\s*\\}"))

Discussion

  • Tino Weinkauf
    Tino Weinkauf
    2012-11-02

    \include* does not make what you say on my system. In fact, tex does not include the file.

     


Anonymous


Cancel   Add attachments