mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
tex2lyx/preamble.cpp: fix a bug reported by JMarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30165 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4a86c407d9
commit
1bcba82d8d
@ -120,7 +120,6 @@ const char * const known_lyx_comments[] = {
|
||||
"% the following is useful when we have the old nomencl.sty package\n",
|
||||
"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.\n",
|
||||
"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.\n",
|
||||
"%% LyX 2.0.0svn created this file. For more info, see http://www.lyx.org/.\n",
|
||||
0};
|
||||
|
||||
// default settings
|
||||
@ -635,7 +634,10 @@ void parse_preamble(Parser & p, ostream & os,
|
||||
string lyx_command = name;
|
||||
// remove the leading "\"
|
||||
lyx_command.erase(0,1);
|
||||
if (is_known(lyx_command, known_lyx_commands))
|
||||
lyx_specific_preamble = false;
|
||||
// allow redefinitions of LyX specific commands
|
||||
if (is_known(lyx_command, known_lyx_commands)
|
||||
&& (t.cs() != "renewcommand"))
|
||||
lyx_specific_preamble = true;
|
||||
// only non-lyxspecific stuff
|
||||
if (!lyx_specific_preamble) {
|
||||
|
Loading…
Reference in New Issue
Block a user