I am currently writing a paper where I mention the R programming language. I've seen some papers use a special symbol for R, but I can't figure out how to get it. Here's an example.
How do I get that symbol?
symbols
I am currently writing a paper where I mention the R programming language. I've seen some papers use a special symbol for R, but I can't figure out how to get it. Here's an example.
How do I get that symbol?
Without the use of packages, you could do this:
\documentclass{article}
\def\logequiv{\mathrel{\vert\mkern-3mu{=}\mkern-3mu{=}\mkern-3mu\vert}}
\begin{document}
$ A \logequiv B$
\end{document}
If you didn't like the height of the \vert
s, you could do this instead:
\documentclass{article}
\def\logequiv{\mathrel{%
\rule{.3pt}{1.3ex}\mkern-1mu{=}\mkern-8mu{=}\mkern-2mu\rule{.3pt}{1.3ex}}}
\begin{document}
$ A \logequiv B$
\end{document}
You could use the xtab
package and its environment xtabular
. It functions very much like the longtable
environment does, in that it can break across columns and pages; however, it's also compatible with twocolumn mode, whereas longtable
is not.
I suggest you adjust the column width of the first table column (the symbol column) so that it's just wide enough to contain the widest symbolic entry within each section. Then, adjust the second column so that the entire table is as wide as \columnwidth
. Given the narrow measure of the second column within a table, "full" justification isn't advisable. Instead, use \RaggedRight
(provided by the package ragged2e
), which allows hyphenation. (In contrast, \raggedright
does not allow hyphenation.)
The example shows only the first page of your larger example.
\documentclass[DIV15,BCOR12mm]{scrbook}
\KOMAoptions{paper=a5,twoside=true}
\usepackage{array,xtab,ragged2e}
\newlength\mylengtha
\newlength\mylengthb
\newcolumntype{P}[1]{>{\RaggedRight}p{#1}}
\tabcolsep=3pt % default: 6pt
\usepackage{amsmath,amssymb}% math symbols / fonts
\usepackage[utf8]{inputenc} % this is needed for umlauts
\usepackage[ngerman]{babel} % this is needed for umlauts
\usepackage[T1]{fontenc} % this is needed for correct
% output of umlauts in pdf
\usepackage{braket} % needed for \Set
\usepackage{parskip} % nicer paragraphs
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]%
{\markboth{\MakeUppercase{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\MakeUppercase{\thesection.\ #1}}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\newcommand{\helv}{%
\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
\fancyhf{}
\fancyhead[LO,RE]{\helv \thepage}
\fancyhead[LE]{\helv \leftmark}
\fancyhead[RO]{\helv \rightmark}
\fancypagestyle{plain}{%
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}
\allowdisplaybreaks
\usepackage{microtype}
\usepackage{hyperref} % has to be after makeidx
\hypersetup{bookmarks,bookmarksnumbered,hypertexnames=false,
pdfpagelayout=OneColumn,colorlinks,hyperindex=false,
hidelinks=true}
\usepackage[german,nameinlink,noabbrev]{cleveref}
% has to be after hyperref, ntheorem, amsthm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% shortcuts %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\fB{\mathfrak{B}}
\def\calS{\mathcal{S}}
\def\fT{\mathfrak{T}}
\def\fU{\mathfrak{U}}
\def\atlas{\ensuremath{\mathcal{A}}}
\def\praum{\ensuremath{\mathcal{P}}}
\DeclareMathOperator{\rang}{Rg}
\newcommand\dcup{\mathbin{\dot{\cup}}}
\def\GL{\ensuremath{\mathrm{GL}}}
\DeclareMathOperator{\Homoo}{\textnormal{Homöo}}
\DeclareMathOperator{\Iso}{Iso}
\def\SL{\ensuremath{\mathrm{SL}}}
\def\PSL{\ensuremath{\mathrm{PSL}}}
\DeclareMathOperator{\Perm}{Perm}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\Fix}{Fix}
\newcommand{\ts}[1]{\textnormal{#1}} % textual subscript
\newcommand{\kappanor}{\kappa_{\ts{Nor}}}
\def\mda{\ensuremath{\mathbb{A}}}
\def\mdp{\ensuremath{\mathbb{P}}}
\def\mdc{\ensuremath{\mathbb{C}}}
\def\mdk{\ensuremath{\mathbb{K}}}
\def\mdr{\ensuremath{\mathbb{R}}}
\def\mdq{\ensuremath{\mathbb{Q}}}
\def\mdz{\ensuremath{\mathbb{Z}}}
\def\mdn{\ensuremath{\mathbb{N}}}
\def\mdh{\ensuremath{\mathbb{H}}}
\begin{document}
\appendix
\markboth{Symbolverzeichnis}{Symbolverzeichnis}
\twocolumn
\chapter*{Symbolverzeichnis}
\addcontentsline{toc}{chapter}{Symbolverzeichnis}
%%%%% Mengenoperationen
\section*{Mengenoperationen}
% Set \mylengtha to widest element in first column; adjust
% \mylengthb so that the width of the table is \columnwidth
\settowidth\mylengtha{$A \subsetneq B$}
\setlength\mylengthb{\dimexpr\columnwidth-\mylengtha-2\tabcolsep\relax}
\begin{xtabular}{@{} p{\mylengtha} P{\mylengthb} @{}}
$A^C $ & Komplement der Menge $A$\\
$\mathcal{P}(M)$ & Potenzmenge von $M$\\
$\overline{M}$ & Abschluss der Menge $M$\\
$\partial M$ & Rand der Menge $M$\\
$M^\circ$ & Inneres der Menge $M$\\
$A \times B$ & Kreuzprodukt zweier Mengen\\
$A \subseteq B$ & Teilmengenbeziehung\\
$A \subsetneq B$ & echte Teilmengenbeziehung\\
$A \setminus B$ & $A$ ohne $B$\\
$A \cup B$ & Vereinigung\\
$A \dcup B$ & Disjunkte Vereinigung\\
$A \cap B$ & Schnitt\\
\end{xtabular}
%%%%% Geometrie
\section*{Geometrie}
\settowidth\mylengtha{$\overline{AB} \cong \overline{CD}$}
\setlength\mylengthb{\dimexpr\columnwidth-\mylengtha-2\tabcolsep\relax}
\begin{xtabular}{@{} p{\mylengtha} P{\mylengthb} @{}}
$AB$ & Gerade durch die Punkte $A$ und $B$\\
$\overline{AB}$ & Strecke mit Endpunkten $A$ und $B$\\
$\triangle ABC$ & Dreieck mit Eckpunkten $A, B, C$\\
$\overline{AB} \cong \overline{CD}$ & Die Strecken $\overline{AB}$ und $\overline{CD}$ sind isometrisch\\
$|K|$ & Geometrische Realisierung des Simplizialkomplexes~$K$\\
\end{xtabular}
%%%%% Gruppen
\section*{Gruppen}
\settowidth\mylengtha{$\Homoo(X)$}
\setlength\mylengthb{\dimexpr\columnwidth-\mylengtha-2\tabcolsep\relax}
\begin{xtabular}{@{} p{\mylengtha} P{\mylengthb} @{}}
$\Homoo(X)$ & Homöomorphis\-men\-gruppe\\
$\Iso(X)$ & Isometriengruppe\\
$\GL_n(K)$ & Allgemeine lineare Gruppe (von \textit{\textbf{G}eneral \textbf{L}inear Group})\\
$\SL_n(K)$ & Spezielle lineare Gruppe\\
$\PSL_n(K)$ & Projektive lineare Gruppe\\
$\Perm(X)$ & Permutationsgruppe\\
$\Sym(X)$ & Symmetrische Gruppe\\
\end{xtabular}
\end{document}
Best Answer
It is just
\textsf{R}
, or even\textbf{\textsf{R}}