How can i write the following symbols in latex?
Asked
Active
Viewed 159 times
3 Answers
4
If you compile with xelatex or lualatex, you have direct access to unicode system fonts. Here is a sample:
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{...}.
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}
Denis
- 5,267
-
3I wouldn't load
mathtoolsandgeometryhere. Having them might give the impression they are needed for the result. Alternatively, make clear that onlyamssymbis really necessary. It is obvious to us but not for a beginner. – campa Oct 22 '19 at 11:41 -
1@campa Right. I use
mathtoolsandgeometryby 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{…}:
\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:
\documentclass[border=5]{standalone}
\usepackage{txfonts}
\begin{document}
$\mathbb{G}_1$, $\mathbb{G}_2$, $\mathbb{G}_T$
\end{document}
andselisk
- 2,675






amsaymb:\mathbb{G}_{1}etc – daleif Oct 22 '19 at 11:38amssymbpackage in the preamble and type, say,$\mathbb{G}_1$somewhere in the body of the document. – Mico Oct 22 '19 at 11:39