2

A publisher requires authors to specify the corresponding author by placing an image next to the corresponding author:

Please place an envelope icon (or any other pointer) next to the name of the corresponding author

I want to add the image as a superscript. How to do this in Latex?

2 Answers 2

7

Using the fontawesome icon set:

\documentclass{article}
\usepackage{fontawesome}
\begin{document}
Test\textsuperscript{\faEnvelopeO}
\end{document}

screenshot

With marvosym:

\documentclass{article}
\usepackage{marvosym}
\begin{document}
Test\textsuperscript{\Letter}
\end{document}

screenshot2

Though there are many other symbol packages containing such an envelope icon.

2
  • I am using WinShell (in Windows). I get this error when I try to produce the PDF document (F10) Error: pdflatex.exe (file FontAwesome--fontawesometwo): Font FontAwesome--fontawesometwo at 420 not found
    – None
    Apr 21, 2018 at 12:52
  • @None Googling WinShell reveals that it doesn't include a LaTeX distribution. The package fontawesome might be missing.
    – lblb
    Apr 21, 2018 at 16:22
2

You can choose the code below. With [scale=0.04] you can increase or decrease the size of image as superscript. You could insert any image instead of example-image-b. The one you like best. You could also choose any format of picture .pdf, .jpg, .tiff, etc.

enter image description here

\documentclass[a4paper,12pt]{article}

\usepackage{graphicx}

\begin{document}
An example of an image as a text superscript\textsuperscript{\includegraphics[scale=0.04]{example-image-b}}.\\
\end{document}
12
  • 1
    I would strongly advise not to typeset regular text in math mode (or even inside \mathrm{}). If you want to use ^ in math mode, at least enclose the text inside a \text{} (with the amsmath package) or use the \textsuperscript{} without math mode like in my answer.
    – lblb
    Apr 21, 2018 at 20:06
  • Accept your suggestion. I have edited my code.
    – Sebastiano
    Apr 21, 2018 at 20:13
  • Please remove the space before the superscript and add a screenshot again. Thanks!
    – lblb
    Apr 21, 2018 at 22:01
  • Unfortunately, it compiles correctly (F5, F6, F5, F5) but when it comes to produce the PDF (F10) I get an error there was an error opening this document. This file cannot be found. I am using Windows and WinShell as a text editor. I am sure I use the right path and image file name. I placed a .eps version of the image in the specified folder. I already have another image in my script and I use \includegraphics for it in the same way I am doing for the textsuperscript image. But the latter causes a problem.
    – None
    Apr 22, 2018 at 9:32
  • @lblb Done! There is the new screenshot. Thanks to you.
    – Sebastiano
    Apr 22, 2018 at 21:23

You must log in to answer this question.

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