Text FormattingUmlauts Xelatex TexMaker

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
byxx
Posts: 11
Joined: Tue Nov 20, 2018 4:28 am

Umlauts Xelatex TexMaker

Post by byxx »

Dear Latex Community,

After having processed one or two compilations, the correct formatting of umlauts and `ß` disappeared again after having worked a short while compiling under PDFLatex (not Xelatex).

The error message says something about inputenc cannot be used anymore or such...Sometimes there is a windo that pops up with the idea of formatting to UTF8 or so. But you know.... Seems not too proper here.

So:

What would be a good setting to use either PDFLATEX or XELATEX or...BOTH?

I use windos 10, Texmaker, I installed Tex Live over and over.
Please help!

This is my preamble:

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{amsmath}
%\usepackage{amsfonts}
%\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
THX
BX
Windows 10
TexMaker (TexLive Installation)
occupation: Music Analysis and teaching material with scores

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Umlauts Xelatex TexMaker

Post by Johannes_B »

Welcome to the forum.

utf8 is the standard file encoding nowadays and every (decent) editor uses it as its default. Xelatex is a unicode engine, meaning it supports utf-8 by default. The LaTeX kernel supports utf-8 natively for almost a year now. There is no need to use the inputenc package anymore.

The ansinew encoding was the default encoding for windows in the past and it still lingers in some tutorials.

Save your files on a usb stick as backup (better safe than sorry) and convert your files to utf8.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
byxx
Posts: 11
Joined: Tue Nov 20, 2018 4:28 am

Umlauts Xelatex TexMaker

Post by byxx »

Thank you.

A)
I converted as follows:
  • opening my TexMaker Project
    Tools> convert to UTF
    choosing the file in the pop up window
    press convert
    Close

B)
This is what texMaker created in the asistant. Using some utf8 and inputenc thing-
No Umlauts are compiled in the pdf either with this preamble

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}}

My questions:
Did I convert properly in the above mentioned workflow
Does TEXMaker assist my actual working files using its preambles in my doucment as a replacement?

THX
BX
Windows 10
TexMaker (TexLive Installation)
occupation: Music Analysis and teaching material with scores
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Umlauts Xelatex TexMaker

Post by Stefan Kottwitz »

Perhaps create a new file for testing only. With pdfLaTeX, include also these lines:

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}


In this small document, try Umlauts and compile. If it doesn't work, post the .log file here, as attachment. The Attachments link is below the text edit field, when writing a post. You also can attach this test .tex file with the sample umlauts. We could check the actual encoding of the file.

Stefan
LaTeX.org admin
byxx
Posts: 11
Joined: Tue Nov 20, 2018 4:28 am

Umlauts Xelatex TexMaker

Post by byxx »

Thank you.
Here is a testfile and the compiled result as pdf.
Attachments
Testfile.pdf
(8.17 KiB) Downloaded 155 times
compile_fun_with_Latex.PNG
compile_fun_with_Latex.PNG (6.75 KiB) Viewed 3609 times
Testfile.tex
(579 Bytes) Downloaded 168 times
Windows 10
TexMaker (TexLive Installation)
occupation: Music Analysis and teaching material with scores
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Umlauts Xelatex TexMaker

Post by Stefan Kottwitz »

This file works fine with pdfLaTeX, I get ß as desired.

I see the warning, that you use an Unicode based engine, so it's not pdfLaTeX. I see that I get the SS too when I switch to XeLaTeX. You probably use XeLaTeX. In that case, remove \usepackage[T1]{fontenc}. That fixes it.

Stefan
LaTeX.org admin
Post Reply