Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm writing a document and I want to put in a contact section with an e-mail address and a phone number. To signify that, I'm using wasysym and bbding for \phone and \Envelope symbols respectively. When I create the document, the e-mail address is not centered with the envelope; it's a little too low. How do I raise it?

EDIT: code:

\documentclass[margin]{res} 
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{wasysym}
\usepackage{bbding}
\usepackage{hyperref}

\begin{document} 
          \Envelope \ \href{mailto:my@mail.com}{my@mail.com} \\
          \phone \ 123 456 789
\end{document}
share|improve this question
    
Welcome to TeX.sx! It would be good if you add a minimal working example (MWE) that illustrates your problem. Then people see what you exactly doing and how to best change it to get the wanted result. You are talking about vertical centering, right? In general things can be raised using \raisebox{<amount>}{<content>}. –  Martin Scharrer Sep 23 '11 at 9:30
add comment

1 Answer

up vote 2 down vote accepted

You could use \raisebox:

\documentclass[margin]{res} 
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{wasysym}
\usepackage{bbding}
\usepackage{hyperref}

\begin{document} 
          \Envelope \ \raisebox{.25em}{\href{mailto:my@mail.com}{my@mail.com}} \\
          \phone \ 123 456 789
\end{document}

Edit:

I didn't notice Martin's comment already mentioning the answer. For this reason I'll make it CW.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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