I'm using MikTex on Windows 10.
I wanted to write the following equation:
\underbrace{\frac{\partial\rho\phi }{\partial t}}+\underbrace{\nabla\cdot
(\rho u \phi)}-\underbrace{\nabla\cdot (\rho \nabla\phi)}=\underbrace{S}
What i am getting is:
These are the packages I am using:
\usepackage{hyph}
\usepackage{lscape}
\usepackage[T1]{fontenc}
% Naturwissenschaftliche Bibliographien
\usepackage[square, comma, numbers, sort&compress]{natbib}
\usepackage[utf8]{inputenc} % geändert auf utf8
\usepackage{fancyhdr}
\usepackage[dvips]{graphicx}
\usepackage{color}
\usepackage{longtable}
\usepackage{supertabular}
\usepackage{svg}
\usepackage{dashrule}
\usepackage{tabularx}
\usepackage{lscape}
\usepackage{slashbox}
\usepackage{pict2e}
\usepackage{afterpage}% \afterpage{\clearpage} um float-Speicher zurückzusetzten
\usepackage[onehalfspacing]{setspace} % Veränderung des Zeilenabstands
\usepackage{latexsym}
\usepackage{float,rotating}
\usepackage{caption}
\captionsetup[table]{position=above}
\captionsetup[figure]{position=below}
\captionsetup{format=hang, labelformat=simple, labelsep=colon, justification=raggedright, singlelinecheck=off, labelfont=bf, textfont=normalfont}
%Fremdsprachen
%------------------------
\usepackage[ngerman]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage{textcomp}
%Abbildungen
%------------------------
\usepackage{subfig}
\usepackage{booktabs}
\usepackage{epstopdf}
%
%Formeln und Gleichungen
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{enumerate}
\usepackage{remreset}
\usepackage{stmaryrd} %definiert u.a. \minuso als Symbol für Standardbedingungen
\usepackage{dcolumn}
\usepackage{multirow}
\usepackage{fdsymbol}
\usepackage{hyperref}
\usepackage{pgfplots}
%SI-Units
\usepackage{siunitx}
Can anyone help me out where the problem is?
Best regards,
Gesetzt



latexsymsince you are loadingamsymb, and I don't think there is any benefit to loadingepstopdfon modern installations. Generally, I think it's best to only load the packages that your document actually uses. – Ian Thompson Mar 22 '18 at 23:53hyphandslashboxare not on my TeX distribution, I have no problem. But I warn you aboutfdsymbol, which changes all math symbols in ways that are incompatible with the main text font. – egreg Mar 23 '18 at 00:10unicode-mathover just about any combination of legacy symbol packages, if you’re allowed to use it. Any modern Opentype math font will have a more complete, visually-consistent set of symbols than is even possible with the legacy math alphabets, and makes scaling and replacing characters much easier. Next-best isstix, and potentiallymathalfa. – Davislor Mar 23 '18 at 13:46\usepackage{textcomp}further up, perhaps right after\usepackage[T1]{fontenc}. Thetextcomppackage activates the TS1 encoding, and certain packages, includinginputencand some fonts, won’t be able to use TS1 symbols properly unlesstextcompis loaded first. (If any other packages need to be loaded beforetextcomp, or load it themselves with different options, that’s annoying.) Or you could just useunicode-math. – Davislor Mar 23 '18 at 13:51