1

From the ifsym package I have \Letter, which gives

enter image description here

Is there a smooth version of this? I want something like the Unicode ✉, or

enter image description here

13
  • 3
    Have a look at the fontawesome5 package Commented Sep 14, 2023 at 10:42
  • 3
    If you use an unicode engine like lualatex, you could use whatever font has Commented Sep 14, 2023 at 10:45
  • 2
    The marvosym package also has this glyph. Maybe it renders better? Commented Sep 14, 2023 at 10:51
  • 2
    How exactly are you compiling your document? I cannot reproduce this. Consider providing an MWE and tell us which compilation mechanism and viewer you use. Commented Sep 14, 2023 at 10:55
  • 2
    I do not assume anything. I just clicked the link you provided and opened the template and I already get an error. Note that even if you get a PDF, if you additionally get an error (shown in Overleaf by a small red tag with a number over the document icon), the output is typically not right. See my answer for a full explanation Commented Sep 14, 2023 at 14:39

1 Answer 1

4

The relevant glyph provided by the ifsym package is not fully scalable, but you can use the marvosym package that provides a scalable glyph via the same commant, that is \Letter.

However, if I read your comments correctly, you seem to use the zHenriquesLab-StyleBioRxiv document class as provided by some Overleaf template. Having looked into the code of this document class, one will find that this document class loads the ifsym package.

The problem now is, that the marvosym package will issue an error because the commands \Letter and \Cross are already defined by the ifsym package. So, you cannot simply load the marvosym package, because the document class already loads the ifsym package. The result will be that you still get the glyph from the ifsym package and at least two errors.

A solution could be to undefine the relevant commands before loading the marvosym package.

\documentclass{zHenriquesLab-StyleBioRxiv}
\let\Letter\undefined 
\let\Cross\undefined 
\usepackage{marvosym}

\leadauthor{Doe} 
\title{Some Title}
\author[1,\Letter]{John Doe}
\affil[1]{Some Affiliation}

\begin{document}
\maketitle
\end{document}

This should result in the following output with a fully scalable envelope glyph:

enter image description here

But there is another problem: If I open the above linked Overleaf template just like this and compile, I already get an error which states Package cleveref Error: cleveref must be loaded after hyperref!.. Note that in Overleaf, if there is a tiny red badge over the document icon with a number in it, this means that there is at least one error in the code and the resulting PDF (if any) should be handled with utmost caution:

enter image description here

So, there is obviously already a problem in the code of the template which can be solved by commenting out the first occurance of \RequirePackage{cleveref} in the file zHenriquesLab-StyleBioRxiv.cls (this line can be found twice in the code, which in itself cannot be said to be good practice). So, I am not sure whether you should really use this template just like this in the first place.

Never ignore errors even if you get an PDF as output. In most cases the output will be wrong!

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .