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 have troubles writing a fraction whose items are words not numbers.

In a nutshell I should write:

minaccia/vulnerabilità   --> this is the numerator
---------------------- 
contromisure             --> this is the denominator

I simply do this, but it doesn't work.

\[
\frac{minaccia/vulnerabilit\'a}{contromisure} 
\]

Can anyone help me?

share|improve this question

migrated from stackoverflow.com Nov 25 '12 at 12:59

This question came from our site for professional and enthusiast programmers.

1  
+1 per essere italiano. –  Giulio Muscarello Nov 22 '12 at 17:23
    
thanks a lot..What should I do in order to solve the problem?..grazie –  g9999 Nov 22 '12 at 17:25
1  
Also, please clarify the question. It's hard to tell what you're exactly asking for. –  Giulio Muscarello Nov 22 '12 at 17:25
    
Also see tex.stackexchange.com/a/83052/4012 –  doncherry Nov 27 '12 at 0:41
    
add comment

1 Answer 1

up vote 8 down vote accepted

You should load the amsmath package and use \text{...}:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\[
  \frac{ax^2+bx+c}{\sin^2y+\cos^2z} \qquad 
  \frac{\text{minaccia/vulnerabilit\`a}}{\text{contromisure}} 
\]
\end{document}

You can also use \mbox{...} or \textrm{...}, but these won't scale when used inside exponents the way \text{...} does.

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.