[OS X TeX] --- .neq m-dash
Michael Kubovy
kubovy at virginia.edu
Sat Jun 9 09:02:16 EDT 2007
On Jun 9, 2007, at 8:05 AM, Robert Spence wrote:
> Michael,
>
> On 09 Jun 2007, at 13:50 , Michael Kubovy wrote:
>
>> Dear TeXers,
>>
>> With the following preamble
>> %%!TEX TS-program = xelatexmk
>> %%!TEX encoding = UTF-8 Unicode
>>
>> \documentclass[twocolumn,11pt]{article}
>> \usepackage[pdftitle={Gestalt
>> Detection},colorlinks=true,linkcolor=blue]{hyperref}
>
> The hyperref package should come last of all, to give it a fighting
> chance of not being clobbered (it redefines many LaTeX macros).
> Also, you need
> \usepackage{xunicode}
> and/or
> \defaultfontfeatures{Mapping=tex-text}
> ... I forget which one actually does the trick...
>
>> \usepackage{graphicx}
>> \usepackage[hang,small,sc]{caption}
>> \usepackage{amssymb}
>> \usepackage{amsmath} %
>> \usepackage{fancyhdr}
>> \usepackage{xspace}
>> \usepackage{tabularx}
>> \usepackage{apacite}
>> \usepackage[left=.5in, right = .5in, top=.6in, bottom = .6in]
>> {geometry}
>> \usepackage{subfigure}
>> \usepackage{sectsty}
>> \usepackage[cm-default]{fontspec}
>> \setmainfont{Palatino}
>> \allsectionsfont{\sffamily\mdseries\upshape}
>> \pagestyle{fancy}
>>
>> --- shows up as --- instead of an m-dash
>>
>> Any suggestions?
Apparently the problem is not due to hyperref. Nor do Robert's
suggestions fix the problem here. This fails to produce an m-dash
%%!TEX TS-program = xelatexmk
%%!TEX encoding = UTF-8 Unicode
\documentclass[11pt]{article}
\usepackage[cm-default]{fontspec}
\setmainfont{Palatino}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{xunicode}
\title{Brief Article}
\author{The Author}
%\date{}
\begin{document}
\maketitle
here---it is
\end{document}
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
McCormick Road Charlottesville, VA 22903
Office: B011 +1-434-982-4729
Lab: B019 +1-434-982-4751
Fax: +1-434-982-4766
WWW: http://www.people.virginia.edu/~mk9y/
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list