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 text with some custom images (symbols) in the text line, I add them using \includegraphics, but the images align with the text at the bottom, which is annoying, since the images are slightly larger than the text. How do I move the image a bit lower, so that the image stops just a bit below the text.

E.G. The diagram $\includegraphics{images/diagram_A}$ is neat.

It would be nice to have in the $ enviroment.

share|improve this question
    
Is having it between $ symbols important? This seems like a very strange requirement. –  qubyte Mar 7 '12 at 13:25
add comment

1 Answer 1

You may wrap your \includegraphics{...} into a \raisebox

Edit:

This is\raisebox{1ex}{\includegraphics[height=2ex]{/Users/brf/Pictures/logos/dode.PDF}}okay    

Or create a newcommand:

\newcommand{\moveup}{[1]{%
\raisebox{1ex}{\includegraphics[height=2ex]{/Users/brf/Pictures/logos/#1}}}

Then blabla\moveup{dode.PDF}bla

share|improve this answer
    
Would you like to elaborate a bit? –  egreg Mar 7 '12 at 13:27
    
Something like this: raisebox{10pt}{stuff} will move the stuff 10pt above the baseline. –  Peter Breitfeld Mar 7 '12 at 13:34
    
@PeterBreitfeld Please include an example in your answer so that others may find it easier. –  N.N. Mar 7 '12 at 13:42
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.