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've just compiled a .tex file from the shell using the latex command, and it looks as if the entire text of the file has been passed through some strange substitution cipher. Part of the .dvi output is below:

The strange DVI output

As you can see, the math-mode is basically fine, but the text has been garbled. What am I doing wrong?

Update: The following code produces the figure above when compiled with latex.

\documentclass{article}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{url}
\usepackage{amsmath}
\usepackage{alltt}
\usepackage[final]{graphicx}    
\begin{document}

\subsubsection{Tandem mismatches effect}

    The tandem mismatches (two adjacent mismatches) are taken into account but 
the two first and positions cannot
    be mismatched. Moreover the thermodynamic parameters are still not 
available for every possible cases.
    In such a case, the program, unable to compute any relevant result, will 
quit with a warning.

For DNA duplexes, this program computes the hybridisation enthalpy and entropy from the elementary 
parameters of each Crick's pair containing the mismatch(es). 
\begin{multline*}
\Delta{}h_\mathrm{tandem-mismatch} =
\delta{}h_\mathrm{Crick's-pair-containing-tandem-mismatch} \\ + 
\sum \delta{}h_\mathrm{Crick's-pair-containing-single-mismatch}
\end{multline*}

\end{document}

Update: Loading the times package causes the problem. The document

\documentclass{article}

\usepackage{times}

\begin{document}

hello

\end{document}

produces

Not hello

Leaving out the \usepackage{times} line gives the output you would expect.

share|improve this question
    
Please make your code compilable, starting with \documentclass{...} and ending with \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. –  Kurt Aug 12 '13 at 12:13
    
@Kurt - do you want me to make a full reproducible test case? I was just including my prologue in case anyone could spot any problems in there, and I wasn't expecting anyone to want to compile it. I'll give you some more code, if you want. No need for the lecture! –  Donkey_2009 Aug 12 '13 at 12:15
    
No problem here (using TL13). How do you preview the dvi? –  daleif Aug 12 '13 at 12:24
1  
Does it help simply killing Evince, it sometimes get struck by cosmic rays. –  daleif Aug 12 '13 at 12:34
1  
Package times is outdated, please use instead package math­ptmx. (see package times on ctan) –  Kurt Aug 12 '13 at 12:42

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.