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.

How can write a new command which formats a certain 2-word-term always in a special font, all uppercase, with the line-height of the uppercase characters being the same as the line-height of down-case characters in normal text??

share|improve this question

1 Answer 1

up vote 5 down vote accepted

This sounds like a job for small caps. It prints all lower case letters as small upper case letters. You can use \MakeLowercase to ensure all letters are lower case.

\documentclass{article}

%\newcommand{\term}[1]{\textsc{#1}}
\newcommand{\term}[1]{\MakeLowercase{\textsc{#1}}}

\begin{document}

Text \term{Two Words} text

\end{document}

Result

share|improve this answer
    
thanks a lot, exactly what i was looking for! –  johdax Apr 21 '11 at 8:48

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.