I need to make changes in my article and want to use any package to highlight the changes, therefore I use \usepackage{color,soul}
and it resulted in errors.
I use Texmaker and compile with XeLaTeX. The file contains over a hundred pages with math formulas therefore to change something is a bit of work. I found that the error occur when \setcounter{secnumdepth} value is other than 0. I found in forum that there probably is a syntax error in \titleformat*{\section}{\normalsize\bfseries\MakeUppercase}.
\documentclass[11pt,twoside]{extarticle}
\usepackage{polyglossia}
\setdefaultlanguage{lithuanian}
\setotherlanguage{english}
\usepackage{titlesec}
\titleformat*{\section}{\normalsize\bfseries\MakeUppercase}
\usepackage{color,soul}
\begin{document}
\setcounter{secnumdepth}{4}
\section{LITERATŪROS APŽVALGA}\label{sec1}
This is \hl{\mbox{ŠŠŠŠŠŠŠėėėųųųaujas tekstųųųųų text}}.
\end{document}
