1

How can i write the following symbols in latex?

enter image description here

  • after loading amsaymb: \mathbb{G}_{1} etc – daleif Oct 22 '19 at 11:38
  • 2
    Welcome to TeX.SE. Are you familiar with how to load packages in the preamble and how to enter and exit TeX's math mode? If so, load the amssymb package in the preamble and type, say, $\mathbb{G}_1$ somewhere in the body of the document. – Mico Oct 22 '19 at 11:39

3 Answers3

4

If you compile with xelatex or lualatex, you have direct access to unicode system fonts. Here is a sample:

Various Gs

After you choose a font, you set it as the math font for your document using the unicode-math package command setmathfont{...}, and you refer to double-struck symbols (=blackboard symbols) with symbb{...}.

TGPM font

MWE

\documentclass[12pt]{article}
\usepackage{unicode-math}
\setmathfont{TeX Gyre Pagella Math}
\begin{document}
\[\symbb{G}_1, \symbb{G}_2, \symbb{G}_T\]
\end{document}
Cicada
  • 10,129
3

Try

\documentclass[12pt]{article}
\usepackage{amssymb}
\begin{document}
\[
\mathbb{G}_{T}
\]
\end{document} 

enter image description here

Denis
  • 5,267
  • 3
    I wouldn't load mathtools and geometry here. Having them might give the impression they are needed for the result. Alternatively, make clear that only amssymb is really necessary. It is obvious to us but not for a beginner. – campa Oct 22 '19 at 11:41
  • 1
    @campa Right. I use mathtools and geometry by default, the reason why there were there. – Denis Oct 22 '19 at 13:44
3

You need to load at least amsfonts or amssymb package and use \mathbb{…}:

enter image description here

\documentclass[border=5]{standalone}
\usepackage{amsfonts}

\begin{document}

$\mathbb{G}_1$, $\mathbb{G}_2$, $\mathbb{G}_T$

\end{document}

Alternatively, consider using txfonts or pxfonts for a slightly different appearance:

enter image description here

\documentclass[border=5]{standalone}
\usepackage{txfonts}

\begin{document}

$\mathbb{G}_1$, $\mathbb{G}_2$, $\mathbb{G}_T$

\end{document}
andselisk
  • 2,675