X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fchkconfig.ltx;h=19dff8bb67938fb804332976fdd6109386863371;hb=a322972f11b53a02b8a0e4712e7af4ae7a10c3f8;hp=3604fdc386b21902acfb89dd6e16291649395efe;hpb=13780bfb635b16ff6667c5f3d915ce97a0f59446;p=lyx.git diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx index 3604fdc386..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 }