]> git.lyx.org Git - features.git/commit
Improve texl2yx refstyle support
authorGeorg Baum <baum@lyx.org>
Fri, 22 Feb 2013 20:59:23 +0000 (21:59 +0100)
committerGeorg Baum <baum@lyx.org>
Fri, 22 Feb 2013 20:59:23 +0000 (21:59 +0100)
commitb59547ebd5cc16c749fe761ff46f0e2c4b45fcbf
tree74c87a37e7da9bdb529f24c0a3268304fb53daa2
parentaa3bbfc98432d5e928d5063f1a833857f8c9a39a
Improve texl2yx refstyle support

- Convert prettyref to the autopackage mechanism
- Do not load refstyle automatically if some refstyle preamble code of LyX
  is found, since LyX will only load the package if an actual reference
  command is used. This is needed for mixed refstyle/prettyref documents.
- Only recognize refstyle commands if refstyle was detected in the preamble
- Only recognize prettyref commands if prettyref was detected in the preamble
- Add a mixed refstyle/prettyref test case
src/tex2lyx/Preamble.cpp
src/tex2lyx/Preamble.h
src/tex2lyx/test/test-insets.lyx.lyx
src/tex2lyx/test/test-insets.tex
src/tex2lyx/text.cpp