I have trouble with the following code which stems from my somehow faulty use of the \splitfrac environment. Can someone help?
\item $p_{(lon_i,lat_r,jul_a)} = \frac{1}{\splitfrac{1 + e^{-(\beta_0 + \beta_1MeanTempoerature_{(lon_i,lat_r,jul_a)} + \beta_2Altitude_{(lon_i,lat_r,jul_a)} + \beta_3Longtitude_{(lon_i,lat_r,jul_a)})}}{e^{-( + \beta_4Latitude_{(lon_i,lat_r,jul_a)} + \beta_5JulianDate_{(lon_i,lat_r,jul_a)})}}}$
A minimal working example follows:
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
\begin{itemize}
\item $p_{(lon_i,lat_r,jul_a)} = \frac{1}{\splitfrac{1 + e^{-(\beta_0 + \beta_1MeanTempoerature_{(lon_i,lat_r,jul_a)} + \beta_2Altitude_{(lon_i,lat_r,jul_a)} + \beta_3Longtitude_{(lon_i,lat_r,jul_a)})}}{e^{-( + \beta_4Latitude_{(lon_i,lat_r,jul_a)} + \beta_5JulianDate_{(lon_i,lat_r,jul_a)})}}}$
\end{itemize}
\end{document}


\splitfrac{}{}[command]." Can you elaborate? – Werner Mar 02 '23 at 19:24Undefined control sequence. l.8 \abx@aux@refcontext {nyt/global//global/global}. What error do you get RibbitRibbit, could you edit it into your question please? – JamesT Mar 02 '23 at 19:26.aux. Remove it and try again. – Werner Mar 02 '23 at 19:33\usepackage{mathtools}to your YAML header, as is described here: How to include LaTeX package in R Markdown?; specifically,header-includes: -\usepackage{mathtools}– Werner Mar 02 '23 at 19:39mathtoolspackage loads theamsmathpackage automatically. Hence, no need to loadamsmathexplicitly. – Mico Mar 02 '23 at 19:58