Re: unicode failure with inputenc package



Am Tue, 3 Jun 2008 04:14:27 -0700 (PDT) schrieb r:

Readers,

I tried to add the degree sign (°) and received the error shown below.
According to a search in this forum, this package is supposed to be
utf8 compliant (Frank Mittelbach, 26-05-03). I have read the package
documentation for inputenc (my local disk installation
file:///usr/share/doc/tetex-doc-3.0/latex/base/inputenc.dvi), but this
does not state that utf8 is included (there is a list of various latin
iso, ibm cp encodings amongst others). I'm confused by this apparent
contradiction.

I also tried \textdegree but the result was also an error: "undefined
control sequence".

inputenc can declare any unicode char, but as default it sets up only
the commands for a small part of unicode -- the chars it thinks you will
use in the document -- and it use the encodings you loads with fontenc
to determine this part.

The textdegree sign is part of the TS1-encoding. So you should load the
TS1-encoding, then ° will be mapped to \textdegree, and you should also
define \textdegree. Both together can be done by loading the package
textcomp:

\documentclass[a4paper, 12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\begin{document}
° \textdegree
\end{document}



--
Ulrike Fischer
.



Relevant Pages

  • Package VsRptDesigner Package has failed to load properly
    ... Package Load Failure ... Would you like to disable loading this package in the future? ... Protected Storage loads automatically ...
    (microsoft.public.vstudio.general)
  • Re: Multiple Classes per File...
    ... XC> If I qualify the module with Jam::Band in package, use, and use base, it ... package command name is just the default symbol table space for all the ... opens that file if found and loads ... the proper file to be loaded and to properly inherit from it. ...
    (comp.lang.perl.misc)
  • Re: Pointer in tcl ?
    ... which loads when you do a [package require] for your custom library. ... proc TCL_Write_Data {handle fileaddr valuename} { ...
    (comp.lang.tcl)
  • Re: AIDA/Web application server for Dolphin v5.0 alpha released
    ... That worked better - create a directory called Aida in the Dolphin ... I already had a Swazoo directory (the contents ... It would also be good to have one master package that loads everything ...
    (comp.lang.smalltalk.dolphin)
  • Re: Smalltalk>>at:, vs direct reference.
    ... reference to an non-existent global/class, for example), the system ... loads them anyway, and flag it somehow. ... position where some package adds some feature to some other package. ... I have a package 'CU Stream ...
    (comp.lang.smalltalk.dolphin)