I am experiencing a strange bug involving the omission of hyphens in the .dvi file.
% This is a sample LaTeX input file. (Version of 12 August 2004.) % % A '%' character causes TeX to ignore all remaining text on the line, % and is used for comments like this one.
\documentclass{article} % Specifies the document class
% The preamble begins here. \usepackage{hyperref}
\title{ Chapter 0, A Quick Description of the Workings of a Computer }
% Declares the document's title.
\author{John M. Morrison} % Declares the author's name.
%\date{\today} % Deleting this command produces today's date.
\setlength{\parskip}{6pt}
\newenvironment{code}{\begin{quote}\obeylines\tt\setlength{\parskip}{0pt}}{\end{quote}}
\newenvironment{ul}{\begin{itemize}\setlength{\parskip}{0pt} }{\end{itemize}}
\newenvironment{ol}{\begin{enumerate}\setlength{\parskip}{0pt}}{\end{enumerate}}
\setcounter{section}{-1}
\begin{document} % End of preamble and beginning of text.
\maketitle % Produces the title.
\tableofcontents
\input c0core.tex
\end{document} % End of document.
This code in the document c0core.tex
\section{Integers and Computers}
Every operating system has a word size; machines today are 32 or 64 bit
machines. What does this mean? The most basic unit of memory in a computer is
an integer, or whole number. There are two types of integer, signed integers
and unsigned integers. Unsigned integers are always non-negative. Unsigned
integers are used to supply memory addresses for your computer’s RAM. Signed
integers (having a + or - sign) are often used in arithmetic. When the computer
puts them to the screen or a file, you see a sign for the integer. When the
computer manipulates them behind the scenes, it actually stores them as
unsigned integers using a very clever scheme. We will discuss this scheme
shortly, but we will begin by looking at unsigned integers.
If you have a 32 bit machine, integers have 32 bits; likewise, if you have a 64
bit machine, integers have 64 bits. A 32 bit unsigned integer can store numbers
from 0 to $2^{32}$ − 1. This number represents the 4 gig limit for usable RAM
on 32 bit machines. A 64 bit unsigned integer can store numbers from 0 to
$2^{64} − 1$; this can support memory up to 18 exabytes. Since today’s machines
are coming with 4 or more gigs of RAM, going to the 64 bit system is necessary.
A 32 bit unsigned integer can be represented with 8 hex digits; a 64 bit
integer requires 16 hex digits. Unsigned integers are just plain–vanilla binary
numbers.
The - signs and hyphens fail to appear in this segment of code. Is there a bug or conflict in the packages?
Thanks for your help!
\usepackage[utf8]{inputenc}
might "solve" the problem, but Gonzalo's solution is better since it makes the hypens hyphens that TeX can then deal with as hyphens...inputenc
with theutf8
option will produce compilation errors due to the "strange" character−
not being recognized.