\mathbb not working in \underset

data 08/04/2018. 2 answers, 286 views
amsmath mathtools amssymb

I'm trying to put \mathbb{R} in an \underset of \sup in the following way:

\underset{x \in \mathbb{R}}{\sup}

However this sequence does not render as usual. I use following libraries:

\usepackage{amssymb,amsmath, amsthm}
\usepackage{enumitem}
\usepackage{microtype}
\usepackage{idxlayout}
\usepackage{amssymb}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{float}
\usepackage{amsthm}
\usepackage{flexisym}
\usepackage{graphicx}
\usepackage{mathtools}

I'm new to LaTeX and not sure how to approach this problem. Please help.

Full MWE to reproduce this:

\documentclass[oneside,12pt,a4paper]{memoir}
\renewcommand{\baselinestretch}{1.15}
\let\memoldbibsection\bibsection
\let\bibsection\relax
\usepackage[nobysame]{amsrefs}
\let\bibsection\memoldbibsection 
\usepackage[right=2.7cm,left=3.5cm, top=2.7cm, bottom=2.5cm,includehead]{geometry}
\usepackage{amssymb,amsmath, amsthm}
\usepackage{enumitem}
\usepackage{microtype}
\usepackage{idxlayout}
\usepackage{amssymb}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{float}
\usepackage{amsthm}
\usepackage{flexisym}
\usepackage{graphicx}
\usepackage{mathtools}

\makeindex
\makeindex[sym]


\setcounter{secnumdepth}{2}


\makeatletter

\begin{document}
$\underset{x \in \mathbb{R}}{\sup}$
\end{document}

2 Answers


Sebastiano 11/27/2018.

If you delete \usepackage{flexisym} it works well.

In my experience, to put so many packages, often it create conflict or bad compilation. It is important, also, the order of the list the various packages.

enter image description here

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsthm}
\usepackage{enumitem}
\usepackage{microtype}
\usepackage{idxlayout}
\usepackage{lmodern}
\usepackage{float}
\usepackage{amsthm}
%\usepackage{flexisym}
\usepackage{graphicx}
\usepackage{mathtools}

\begin{document}    

$\underset{x \in \mathbb{R}}{\sup}$
\end{document}

Heiko Oberdiek 08/04/2018.

The problem is caused by package flexisym. Not only \mathbb{R} is affected but also \sup is in an italic font. Anyway, \underset is not the right command for putting something below the "operator" \sup. This is done by a subscript. Compare:

\documentclass{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{flexisym}

\begin{document}
\[
  \underset{x \in \mathbb{R}}{\sup} = \sup_{x \in \mathbb{R}}
\]
\end{document}

Result

If you do not need package flexisym, then do not load it.


HighResolutionMusic.com - Download Hi-Res Songs

1 Elohim

Holding Hands flac

Elohim. 2019. Writer: Quinn XCII;Jeremy Zucker;Elohim;Danny Parra;Corey Berkowitz;Antonina Armato.
2 P!nk

Walk Me Home flac

P!nk. 2019. Writer: P!nk;Scott Harris;Nate Ruess.
3 Katy Perry

365 flac

Katy Perry. 2019. Writer: Zedd;Katy Perry;Caroline Ailin;Corey Sanders;Daniel Davidsen;Cutfather;Peter Wallevik.
4 DEAMN

Happy flac

DEAMN. 2019.
5 Ariana Grande

7 Rings flac

Ariana Grande. 2019. Writer: Ariana Grande;Richard Rodgers;TBHits;Njomza;Michael "Mikey" Foster;Kaydence;Tayla Parx;Scootie;Oscar Hammerstein II;Victoria Monét.
6 5 Seconds Of Summer

Who Do You Love flac

5 Seconds Of Summer. 2019. Writer: Andrew Taggart;Talay Riley;Oak;Sean Douglas;Luke Hemmings;Calum Hood;Ashton Irwin;Michael Clifford;Trevorious;Zaire Koalo.
7 Bonn

No Sleep flac

Bonn. 2019. Writer: Albin Nedler;Bonn;Martin Garrix.
8 Bruno Mars

Please Me flac

Bruno Mars. 2019. Writer: J. White Did It;DJ White Shadow;Philip Lawrence;Bruno Mars;Cardi B.
9 Brooks

Better When You're Gone flac

Brooks. 2019. Writer: David Guetta;Emma Lov Block;Ido Zmishlany;Jackson Foote;Jeremy Dussolliet;Brooks.
10 Ariana Grande

Imagine flac

Ariana Grande. 2019. Writer: JProof;Priscilla Renea;Happy Perez;Andrew "Pop" Wansel;Ariana Grande.
11 Avril Lavigne

Dumb Blonde flac

Avril Lavigne. 2019. Writer: Mitch Allan;Bonnie McKee;Nicki Minaj;Avril Lavigne.
12 Avril Lavigne

Birdie flac

Avril Lavigne. 2019. Writer: J.R. Rotem;Avril Lavigne.
13 Ariana Grande

Thank U, Next flac

Ariana Grande. 2019. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.
14 Ariana Grande

Fake Smile flac

Ariana Grande. 2019. Writer: Joseph Frierson;Mary Frierson;Fred Ball;Happy Perez;Andrew "Pop" Wansel;Wendy Rene;Kennedi Lykken;Priscilla Renea;Justin Tranter;Ariana Grande.
15 Avril Lavigne

Warrior flac

Avril Lavigne. 2019. Writer: Chad Kroeger;Travis Clark;Chris Baseford;Avril Lavigne.
16 Nichkhun

Home flac

Nichkhun. 2019.
17 Dua Lipa

Swan Song flac

Dua Lipa. 2019. Writer: Dua Lipa;Justin Tranter;Kennedi Lykken;Mattias Larsson;Robin Fredriksson;Junkie XL.
18 Dimitri Vegas & Like Mike

Selfish flac

Dimitri Vegas & Like Mike. 2019. Writer: Victor Thell;Michael Thivaios;Maria Smith;Jeff Porcaro;Dimitri Thivaios;David Paich;Dan Book;Will Grands;ANGEMI.
19 Jason Derulo

Let's Shut Up And Dance flac

Jason Derulo. 2019. Writer: Bongo.
20 Ariana Grande

Needy flac

Ariana Grande. 2019. Writer: Tayla Parx;TBHits;Victoria Monét;Ariana Grande.

Related questions

Hot questions

Language

Popular Tags