X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fchkconfig.ltx;h=19dff8bb67938fb804332976fdd6109386863371;hb=a322972f11b53a02b8a0e4712e7af4ae7a10c3f8;hp=cb720f1cf2debc7ca8f851ba59f4edc9f6673869;hpb=ae87b945156585b080ed155919f64b80e48d7a04;p=lyx.git diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx index cb720f1cf2..19dff8bb67 100644 --- a/lib/chkconfig.ltx +++ b/lib/chkconfig.ltx @@ -59,9 +59,9 @@ % the variable chk_. %%% \newcommand{\prefix}{+} % the character used by grep to filter 'good' output -\newcommand{\AddLayout}[3][\default]{ +\newcommand{\AddLayout}[4][\default]{ \def\default{#2} - \immediate\write\layouts{"#2" "#1" "#3"}} + \immediate\write\layouts{"#2" "#1" "#3" "#4"}} \newcommand{\AddVariable}[2]{ \immediate\write\sed{s!@chk_#1@!#2!g} \immediate\write\vars{chk_#1='#2'}} @@ -107,15 +107,17 @@ } \newcommand{\DeclareLaTeXClass}[2][\default]{ \TestItem[#1]{\layoutname}{document class}{cls} - {\AddLayout[\firstelement]{\layoutname}{#2}}{} + {\AddLayout[\firstelement]{\layoutname}{#2}{true}} + {\AddLayout[\firstelement]{\layoutname}{#2}{false}} \expandafter\endinput } \newcommand{\DeclareLinuxDocClass}[2][\default]{ \message{^^J\prefix checking for linuxdoc class \layoutname... } \@ifundefined{haslinuxdoc} - {\message{no^^J}} + {\message{no^^J} + \AddLayout[#1]{\layoutname}{#2}{false}} {\message{yes^^J} - \AddLayout[#1]{\layoutname}{#2}} + \AddLayout[#1]{\layoutname}{#2}{true}} \expandafter\endinput } % Only for compatibility. Will be removed later. @@ -124,9 +126,10 @@ \newcommand{\DeclareDocBookClass}[2][\default]{ \message{^^J\prefix checking for docbook\space\space class \layoutname... } \@ifundefined{hasdocbook} - {\message{no^^J}} + {\message{no^^J} + \AddLayout[#1]{\layoutname}{#2}{false}} {\message{yes^^J} - \AddLayout[#1]{\layoutname}{#2}} + \AddLayout[#1]{\layoutname}{#2}{true}} \expandafter\endinput } @@ -256,6 +259,6 @@ \immediate\closeout\vars \immediate\closeout\packages \typeout{\prefix Inspection done.} -\typeout{\prefix Read the file doc/LyXConfig.lyx for more information.} +\typeout{\prefix Read the file doc/LaTeXConfig.lyx for more information.} % Get the real \end command, that has been hidden by LaTeX \@@end