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
latexsym
since you are loadingamsymb
, and I don't think there is any benefit to loadingepstopdf
on modern installations. Generally, I think it's best to only load the packages that your document actually uses.hyph
andslashbox
are 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.unicode-math
over 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
.\usepackage{textcomp}
further up, perhaps right after\usepackage[T1]{fontenc}
. Thetextcomp
package activates the TS1 encoding, and certain packages, includinginputenc
and some fonts, won’t be able to use TS1 symbols properly unlesstextcomp
is 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
.