8

I have a pretty arcane problem, I know, but here we are: I reference and cite a project called Exodus – companies own spelling: εxodus, i.e.:

logo

ε [GREEK SMALL LETTER EPSILON (\varepsilon)] + "odus"

% !TeX program = lualatex
% !BIB TS-program = biber
% !TeX encoding = UTF-8
% !TeX spellcheck = de_DE
\documentclass[
    fontsize=12pt,
    oneside,
    a4paper,
    titlepage,
    numbers=noenddot,
%   draft,
]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{lmodern} % font <--- may be important
\usepackage{csquotes}

\usepackage[style=numeric,
sortcites=true,
sorting=none,
defernumbers=true,
backref=true,
backend=biber]{biblatex}

\begin{filecontents}{mybib2.bib}
@online{exodusHomepage,
    title = {$\varepsilon$xodus},
    subtitle = {{varepsilon The privacy audit platform for Android applications}},
    titleaddon = {Startseite},
%   date = {2020-08-29},
    urldate = {2020-08-29},
    language = {english},
    url = {https://reports.exodus-privacy.eu.org/en}
}
@online{exodusHomepageLunar,
    title = {$\epsilon$xodus},
    subtitle = {{epsilon The privacy audit platform for Android applications}},
    titleaddon = {Startseite},
%   date = {2020-08-29},
    urldate = {2020-08-29},
    language = {english},
    url = {https://reports.exodus-privacy.eu.org/en}
}
\end{filecontents} 

\addbibresource{mybib2.bib}

\begin{document}
\noindent
Exodus/exodus:\\
% all commented lines cannot compile or so
% companies own spelling: εxodus\cite{exodusHomepage}\\
% companies own spelling: {\epsilon}xodus\cite{exodusHomepageLunar}\\
% companies own spelling: {\varepsilon}xodus\cite{exodusHomepage}\\
companies own spelling: $\epsilon$xodus\cite{exodusHomepageLunar} (wrong lunar letter actually)\\
companies own spelling: $\varepsilon$xodus\cite{exodusHomepage}

\printbibliography
\end{document}

In the text, it looks I'd say okay:
enter image description here

(Though the GREEK LUNATE EPSILON SYMBOL (\varepsilon) looks way better IMHO, but well… it's factually/semantically wrong, so I cannot use that.)

But in the bibliography it looks really off though:

Can we typeset/improve that properly?

2

2 Answers 2

10

Try the textGreek package:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{textgreek}

\begin{document}
\textepsilon
\end{document}

enter image description here

4
  • 2
    Good answer! I added the image for you.
    – egreg
    Aug 29, 2020 at 20:19
  • Indeed great and welcome to this community! It also works in the "usual" text, but in the bibliography it just fails and throws errors. Here is the example: overleaf.com/read/dyrpyyrhnkvv
    – rugk
    Aug 29, 2020 at 22:07
  • Also I don't know if this is intended, but your ε goes below the baseline. (test here: _ε_ εxodus – it does not do so in my browser here). This would be a strange typography. i.imgur.com/e1cFPFh.png
    – rugk
    Aug 29, 2020 at 22:14
  • BTW I've opened this chat room, if we'd need to talk: chat.stackexchange.com/rooms/info/112427/…
    – rugk
    Aug 29, 2020 at 22:21
8

Your font might have the Latin small letter epsilon, ɛ (U+025B).

In LuaLaTeX or XeLaTeX, you might write something like

\newcommand\exodus{{\textepsilon}xodus}
\newcommand\textepsilon{^^^^025b}

Or, if you need to load the symbol from another font,

\newcommand\textepsilon{{\greekfont ^^^^025b}}

You could also use the Greek ε codepoint.

You won’t see anything unless your current font contains the glyph. The default, Latin Modern Roman, doesn’t have any Greek letters.

You should also add the command \tracinglostchars=2. This will tell you what the problem is. Without it, TeX will silently log a warning in the log file.

In legacy 8-bit encodings, you might load the text-mode symbol from textgreek or tipa.

MWE

This version works in LuaLaTeX or XeLaTeX.

\documentclass{article}
\tracinglostchars=2
\usepackage{fontspec}

\setmainfont[Scale=1.0]{CMU Sans Serif}

\newcommand\exodus{{\textepsilon}xodus}
\newcommand\textepsilon{^^^^025b}

\begin{document}
\exodus
\end{document}

CMU Sans Serif sample

And here is a PDFTeX-compatible version

\documentclass{article}
\tracinglostchars=2
\usepackage[LGR,T1]{fontenc}

\newcommand\exodus{{\fontencoding{LGR}\selectfont\textepsilon}xodus}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}
\exodus
\end{document}

Computer Modern Sans-Serif sample

ETA: Changing the Font

As requested, here is a version that does not change the main font.

\documentclass{article}
\tracinglostchars=2
\usepackage{fontspec}

\newfontfamily\logofont{CMU Sans Serif}[Scale=MatchLowercase, Ligatures={Common,TeX}]

\newcommand\exodus{{\logofont{\textepsilon}xodus}}
\newcommand\textepsilon{^^^^025b}

\begin{document}
A company named \exodus
\end{document}

dejaVu Sans sample

The legacy version using 8-bit fonts is similar, except that \logofont would be defined as something like \fontfamily{DejaVuSans-TLF}\selectfont.

9
  • I use UTF-8 encoding, as you can see from my example, but both commands cause compiler errors and it ends up as 025bxodus in my case. See overleaf.com/read/dyrpyyrhnkvv Also the font is lmodern as you can see from my example.
    – rugk
    Aug 29, 2020 at 21:56
  • (Okay this error was from pdflatex. In lualatex it just shows nothing there.)
    – rugk
    Aug 29, 2020 at 22:10
  • BTW I've opened this chat room, if we'd need to talk: chat.stackexchange.com/rooms/info/112427/…
    – rugk
    Aug 29, 2020 at 22:21
  • 3
    LuaLaTeX shows nothing there because your font doesn’t contain the symbol. One that does is CMU Serif.
    – Davislor
    Aug 30, 2020 at 1:20
  • @rugk I added two MWEs that should make it clearer.
    – Davislor
    Aug 30, 2020 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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