1

This question already has an answer here:

How can i write the following symbols in latex?

enter image description here

marked as duplicate by Phelype Oleinik, Zarko, Jasper Habicht, Marijn, Sebastiano Oct 22 at 15:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • after loading amsaymb: \mathbb{G}_{1} etc – daleif Oct 22 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 at 11:39
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}
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}
3

Try

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

enter image description here

  • 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 at 11:41
  • 1
    @campa Right. I use mathtools and geometry by default, the reason why there were there. – Denis Oct 22 at 13:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.