Dear Lyx Team
thank you for all.
i got 2 error after i upgrade from lyx 2.2.2 to 2.3 .

1st:
when i generate my book, i got this msg:

​
2nd:
this code not work in latex preamble (work in 2.2.2 but not work in 2.3):

\usepackage[explicit]{titlesec}
> \usepackage[many]{tcolorbox}
> \usepackage{fancyhdr}
> \usepackage{blindtext}
> \newlength{\chaptertopspacing}
> \setlength{\chaptertopspacing}{130pt}
> \AtBeginDocument{\setdefaultlanguage[numerals=maghrib]{arabic}}
>
> % Common settings for unstarred and starred chapters
> \newtcolorbox{chaptertitlebox}[1][]{%
>       enhanced,
>       colback=LightSkyBlue,
>       boxrule=0.25cm,
>       colframe=LightSkyBlue,
>       arc=0pt,
>       outer arc=0pt,
>       remember as=title,
>       leftrule=0pt,
>       rightrule=0pt,
>       fontupper=\color{white}\sffamily\bfseries\huge,
>       enlarge left by=-1in-\hoffset-\oddsidemargin,
>       enlarge right by=-\paperwidth+1in+\hoffset+\oddsidemargin+\textwidth,
>       width=\paperwidth,
>       left=1in+\hoffset+\oddsidemargin,
>       right=\paperwidth-1in-\hoffset-\oddsidemargin-\textwidth,
>       top=0.6cm,
>       bottom=0.6cm,
>       #1
> }
>
>
>
>
>
>
> \titleformat{\chapter}[display]
>   {\normalfont\huge\bfseries}
>   {}
>   {-\chaptertopspacing}
>   {%
>     \begin{chaptertitlebox}[%
>       overlay={
>         \node[
>           fill=MidnightBlue,
>           draw=LightSkyBlue,
>           line width=0.15cm,
>           inner sep=0pt,
>           text width=1.7cm,
>           minimum height=1.7cm,
>           align=center,
>           font=\color{white}\sffamily\bfseries\fontsize{50}{36}\selectfont
>         ]
>         (chapname)
>         at ([xshift=-4cm]frame.north east)
>         {\thechapter};
> %        \node[font=\small,anchor=south,inner sep=2pt] at (chapname.north)
> %        {\MakeUppercase\chaptertitlename};
>       }
>     ]
>     #1
>     \end{chaptertitlebox}%
>   }
> \titleformat{name=\chapter,numberless}[display]
>   {\normalfont\huge\bfseries}
>   {}
>   {-\chaptertopspacing}
>   {%
>     \begin{chaptertitlebox}
>     #1
>     \end{chaptertitlebox}%
>   }
> \titlespacing*{\chapter}
>   {0pt}{0pt}{40pt}
> \makeatother
> \titlespacing*{\chapter}{0pt}{60pt}{-10pt}
>

Best regards

Reply via email to