Take the 2-minute tour ×

Newbie question: Within the body of the text that I've inserted into a Journal's Latex Template, I don't understand why I get a newline and italicized font when I add the command \leq to generate "less than or equal to"...

Below is (1) the Journal's template preamble and (2) my text in the body of the document.

I'm using MacText/TexShop on MacOSx10.6



% Load packages
\usepackage{cite} % Make references as [1-4], not [1,2,3,4]
\usepackage{url}  % Formatting web addresses  
\usepackage{ifthen}  % Conditional 
\usepackage{multicol}   %Columns
\usepackage[utf8]{inputenc} %unicode support
%\usepackage[applemac]{inputenc} %applemac support if unicode package fails
%\usepackage[latin1]{inputenc} %UNIX support if unicode package fails
\usepackage{times} %so today's date appears on each version





coefficients kappa: \leq 0.4 poor to fair; 0.6 moderate agreement.

in Typeset: this pdf reads

coefficients kappa:


share|improve this question
A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "101010" on it). –  lockstep Feb 21 '11 at 18:00
add comment

1 Answer

From your edited post, the problem seems to be that you have not entered math-mode.

Short answer.

Try writing the following in your document body:

coefficients kappa: $\leq 0.4$ poor to fair; $0.6$ moderate agreement.

Note the dollar signs $.

Long answer.

When you write LaTeX with mathematics in it, you will often switch between "text mode" (normal prose) and "math mode". This is what the $ symbol does: switch from one to the other. Math-mode text is printed in italic text, but it is not typeset to look good as italic text — it is typeset to look like good mathematics. (In a LaTeX document, compare the appearance of the results of \textit{italics}, which typesets the word "italics" in italics, and $not really italics$, which typesets that text in a slanted font as though it were a product of variables n, o, t, etc.)

LaTeX only wants to see the symbol \leq in mathmode, where it makes sense to it (because it is defined as a mathematical relation in the LaTeX source). So when it saw it, it complained good-naturedly about missing a $ symbol, and then assumed that everything that came afterwards was also in math mode until it reached the end of the document or another $ symbol. This will happen for many other commands, such as \sin (for the sine function), \sum (if you are doing summations), \kappa (which typesets the greek letter κ), and so forth.

In those cases where you really want italics, use \textit, as I suggested above. (Similarly, bold-face text is \textbf, small-caps text is \textsc, and so forth.) There are other ways of including math (when you want a big equation), in which case you should look up the AMS math environments, align, gather, and so forth.

share|improve this answer
+1 for the explanation. This is the sort of helpful answer this site should be about. –  Seamus Feb 21 '11 at 18:24
add comment

Your Answer

