I am trying to enter the set notation symbol in the instance of a msc diagram,

but it whenever i do

the entire msc diagram disappears in the overleaf

I am using IEEE Systems Journal LaTeX Template

here's what i want to do;

desired msc diagram material

and here's a list of all my imports/packages;

\usepackage{newtxtext,newtxmath} % this pkg allowed words inside msc diagrams to be bold !



% \usepackage[numbers, square]{natbib}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em

and here's the code for the msc diagram

\begin{msc}{Sharing Authentication}
\declinst{d1}{device1}{IoT1 NW\textsubscript{1}}

P.S : basically when i use \in , the entire msc diagram fails to render

  • 1
    do not show code as an image, make a small complete document that shows the problem and add to your question in code block. Remove any packages not needed to show the problem Nov 27, 2022 at 16:25
  • the symbol you show is $a \in X$ which would make aX but is unrelated to any of the code you show in your image Nov 27, 2022 at 16:27
  • Hi @DavidCarlisle, i'll show the code for both, please wait 5 min for the edits. i'll post another comment when it's done Nov 27, 2022 at 16:32
  • @DavidCarlisle it's done ! please check the code Nov 27, 2022 at 16:36
  • we still can not see what your issue is. as the code is just disconnected fragments. Make a small complete document preferbly starting \documentclass{article} and ending \end{document} that shows your problem. Say what output you expect and what error you get. Nov 27, 2022 at 16:40

1 Answer 1


Use math mode

\declinst{d1}{device1}{$\mathrm{IoT1}\in \mathrm{NW}_{1}$}

Before showing the full code, some considerations. First of all, never neglect error messages.

The instructions

  • \renewcommand{\msckeyword}{}
  • \newcommand{\resizebox}{...}

raise errors; the first command is not defined, the latter is defined and you should not change it.

Some of the package you load should be removed:

  1. pstricks, unless you really need it.
  2. float and cite; the former adds nothing really useful, the latter because IEEE has its own preferences for citation call-outs.
  3. lmodern because it overrides newtx and chooses a font different from IEEE preferred one.
  4. babel, since you don't seem to be using languages different from English.

In the code below I just keep uncommented the packages that are needed to produce the example and removed a couple, together with the wrong instructions. You can safely remove \def\BibTeX{...}. I've never understood why the IEEE templates insist in adding it.


\usepackage{newtxtext,newtxmath} % this pkg allowed words inside msc diagrams to be bold !


\begin{msc}{Sharing Authentication}
\declinst{d1}{device1}{$\mathrm{IoT}1\in NW_{1}$}


enter image description here

  • Thank you ! you're a Godsend ! Nov 27, 2022 at 18:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .