I'm quite new to the els-cas-dc template in LaTeX. I want to submit a paper to Elsevier, thus I downloaded the "els-cas-templates" package. Specifically, my paper is a two column paper so I'm trying to use the els-cas-dc class. When I compile in TeXmaker on my MacBook, I get the following error message:

"/usr/local/texlive/2022/texmf-dist/tex/latex/els-cas-templates/cas- dc.cls Error line 61 !LaTeX Error: File `expl3.sty' not found.Type X to quit or to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop. @ifundefined"

The following is the code I'm have written:

\emergencystretch=27pt %Allow 27pt of additional white space per line in order to avoid underfull/overfull lines
\hyphenpenalty=10000 %Prevent hyphenation if word is too long for line
\keys_set:nn { stm / mktitle } { nologo }
\shorttitle{Adoption of Cocoa Agroforestry Technology and Productivity}
\shortauthors{Felix Larry Essilfie}

\title [mode = title]{Adoption of Cocoa Agroforestry Technology and Productivity: An Application of the Regression Adjustment Method with Weighting }
\author[1,2]{Felix Larry Essilfie}%[orcid=0000-0002-9398-9414]
%\author[1]{Nadeem Javaid*}
%\author[3]{Noor Islam}
%\author[1]{Khurram Saleem Alimgeer}
%\author[1]{Ammar Ali}
%\author[4]{Muhammad Riaz}
%\author[2]{Muhammad Usman}

\cortext[cor1]{Corresponding author}
\address[1]{Institute of Development and Economic Research, No. 24 Bugatti St., Asheyie-Down, Adenta, Accra, Ghana}
\address[2]{Department of Agricultural Economics and Agribusiness, University of Ghana, Legon}
%\address[3]{CECOS University of IT \& Emerging Sciences, Peshawar 25124, Pakistan}
%\address[4]{Wah Engineering College, University of Wah, Wah Cantt 47070, Pakistan}
%and Khurram Saleem Alimgeer$^1$

\begin{abstract}[S U M M A R Y]
The study uses a sample of 1,175 cocoa farmers to assess the effects of cocoa agroforestry technology on the productivity of maize farmers. An approach that combines the regression adjustment method with weighting to estimate the treatment parameters was employed for the study. The approach is a generalization of the doubly robust estimation methods for different treatment parameters, which are defined in a multivalued treatment effect estimation framework.\par

Short term load forecasting;competition-2012.
  • Are you on a current version of LaTeX? Your document compiles fine on my TexLive 2022 (Windows 10) setup.
    – Ingmar
    Jun 13 at 16:40
  • 1
    How did you install the template? If using TeXlive or MacTeX, tlmgr should have installed all requirements for the package, but expl3.sty is a weird package not to have in any case, as it's a core package. Try to install it as well. (Your code works for me.)
    – frabjous
    Jun 13 at 16:41
  • Frabjous, I actually downloaded the template straight from CTAN and started running. Is there a I should have used to install it. I'm quite new to LaTeX anyways. Jun 13 at 17:37
  • Ingmar, you are right. The code works fine for me when I run it in overleaf but does not when I run it via my TeXmaker on my MacBook. That is the strange thing here. Jun 13 at 17:40
  • Hello comrades, I have reinstalled the l3kernel packages and now if I compile this I get this error: "! LaTeX3 Error: Mismatched LaTeX support files detected.(LaTeX3) Loading 'expl3.sty' aborted!(LaTeX3)(LaTeX3) The L3 programming layer in the LaTeX format(LaTeX3) is dated 2022-04-29, but in your TeX tree the files require(LaTeX3) at least 2022-06-02.For immediate help type H <return>.... \ExplLoaderFileDate{expl3.sty}}" Any Help Please... Jun 13 at 19:41


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.