\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 Alan Walker

Different World flac

Alan Walker. 2018. Writer: Shy Nodi;Alan Walker;Fredrik Borch Olsen;James Njie;Marcus Arnbekk;Gunnar Greve Pettersen;K-391;Corsak;Shy Martin;Magnus Bertelsen.
2 Skylar Grey

Everything I Need flac

Skylar Grey. 2018.
3

Tell Me It's Over

4 Ariana Grande

​Thank U, Next flac

Ariana Grande. 2018. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.
5 Julian Jordan

Glitch flac

Julian Jordan. 2018.
6 Mesto

Wait Another Day flac

Mesto. 2018.
7 The Chainsmokers

Hope flac

The Chainsmokers. 2018. Writer: Kate Morgan;Chris Lyon;Alex Pall;Andrew Taggart.
8 Anne-Marie

Rewrite The Stars flac

Anne-Marie. 2018. Writer: Benj Pasek;Justin Paul.
9 Ariana Grande

Imagine flac

Ariana Grande. 2018. Writer: Jameel Roberts;Priscilla Renea;Happy Perez;Andrew "Pop" Wansel;Ariana Grande.
10 Rita Ora

Let You Love Me flac

Rita Ora. 2018. Writer: Rita Ora;Easyfun;Fred Gibson;Noonie Bao;LotusIV;Ilsey Juber.
11 Alan Walker

Lily flac

Alan Walker. 2018.
12 Alan Walker

Lost Control flac

Alan Walker. 2018.
13 Emma Hewitt

Take Everything flac

Emma Hewitt. 2018. Writer: G. Emery;E. Hewitt;A. Hewitt.
14 Conor Maynard

How You Love Me flac

Conor Maynard. 2018. Writer: Yoshi Breen;Thom Bridges;Hardwell;Rik Annema;Conor Maynard;Cimo Fränkel;Snoop Dogg.
15 ZAYN

There You Are flac

ZAYN. 2018. Writer: Joe Garrett;Levi Lennox;Michael Hannides;Anthony Hannides;ZAYN.
16 Pollyanna

Starchild flac

Pollyanna. 2018.
17 (G)I-DLE

POP/STARS flac

(G)I-DLE. 2018. Writer: Riot Music Team;Harloe.
18 Fitz And The Tantrums

HandClap flac

Fitz And The Tantrums. 2017. Writer: Fitz And The Tantrums;Eric Frederic;Sam Hollander.
19 Mark Ronson

Nothing Breaks Like A Heart flac

Mark Ronson. 2018. Writer: Thomas Brenneck;Maxime Picard;Ilsey Juber;Conor Szymanski;Clement Picard;Mark Ronson;Miley Cyrus.
20 Alan Walker

I Don't Wanna Go flac

Alan Walker. 2018.

Related questions

Hot questions

Language

Popular Tags