LyXCan not use "sharp s"

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
blubbi
Posts: 4
Joined: Thu Nov 12, 2015 2:20 pm

Can not use "sharp s"

Post by blubbi »

Hello,

I'm using LyX since a few days now to write my thesis. Because I'm German I need to be able to write the 'ß' ("sharp s") character. Here is my current preamble:

Code: Select all

%% LyX 2.0.8.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,ngerman]{scrreprt}
\renewcommand{\rmdefault}{cmr}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,bmargin=3cm,lmargin=2.5cm,rmargin=2.5cm,footskip=3cm}
\pagestyle{plain}
\usepackage{babel}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage[numbers]{natbib}
\usepackage{nomencl}
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\onehalfspacing
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}
\hypersetup{pdftitle={Title},
 pdfauthor={Name}}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\newcommand{\noun}[1]{\textsc{#1}}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{amsmath,
amsfonts,
amssymb,
amstext}

\usepackage{graphicx}

\usepackage{url}

\usepackage{charter}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}
\usepackage{microtype}

\makeatother
According to http://wiki.lyx.org/LyX/MissingUnicodeCharacters the 'ß' character should be supported, but in the compiled document 'SS' is used instead. So is there anything wrong with my preamble?

Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Can not use "sharp s"

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

It seems that inputenc is missing. You should use it in case of pdfLaTeX. There may be a setting in LyX, or add in your document properties to the document preamble:

Code: Select all

\usepackage[utf8]{inputenc}
Stefan
LaTeX.org admin
blubbi
Posts: 4
Joined: Thu Nov 12, 2015 2:20 pm

Re: Can not use "sharp s"

Post by blubbi »

Okay, I looked through the document settings once again and found the language option, where I selected ucs-extended utf8x. It really was just a click. Thank you!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Can not use "sharp s"

Post by Johannes_B »

LyX is using latin9 encoding by default.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Re: Can not use "sharp s"

Post by Stefan Kottwitz »

I would recommend utf8 instead of utf8x, the latter is just better for some Asian languages.

Stefan
LaTeX.org admin
Post Reply