etoolbox работает на Overleaf, а не на MikTex - PullRequest
0 голосов
/ 20 марта 2020

Я пытался использовать пакет Etoolbox в MikTex, но я не знаю, почему он не напечатает мой результат. Я попытался вставить код на обратной стороне, он работает там. Можете ли вы помочь мне найти, что не так с этим?

Вот код, который я использовал

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{nomencl}
\usepackage{etoolbox}
\makenomenclature
\renewcommand\nomgroup[1]{%
    \item[\bfseries
    \ifstrequal{#1}{N}{Symbols}{%
    \ifstrequal{#1}{L}{Subscripts}{%
    \ifstrequal{#1}{U}{Superscripts}{}}}%
]}

\renewcommand{\nomname}{Notations}
\begin{document}

Energy equation
%\section{Notations}
\nomenclature[N]{$m$}{Mass}
\nomenclature[N]{$\rho$}{Density}
\nomenclature[N]{$h$}{Static Enthalpy}
\nomenclature[L]{$0$}{Stagnation Quantities}
\nomenclature[L]{$\delta$}{Free-stream Conditions}

\printnomenclature

\section{Energy Equation} 
Energy of a fluid flow is composed of: (considering x-direction)

\begin{itemize}
    \item Kinetic Energy (m.$\frac{V^2}{2}$)
    \item Internal energy ($h = m.C_v.T$)
    \item Mechanical Work ($W_{1} = m.\frac{P}{\rho}$)
    \item Work by shear stress ($W_2 = m.\frac{u\tau}{u\rho}$)
\end{itemize} 
$d\left(\frac{u^2}{2}\right)$ + $d\left(\frac{P}{\rho}\right)$ + $d(E_i)$=$d(E_{\tau})$+$d(E_q)$+S
\newline
$\frac{P}{\rho}$ + $h$ = $h_0$ 

\end{document}

Спасибо

...