Text FormattingInput Encodings not available

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
maxwell57
Posts: 2
Joined: Fri Sep 20, 2013 2:56 pm

Input Encodings not available

Post by maxwell57 »

Hello,

I work with the Kile software. I cannot compile my PDF. At first I installed all the packages because I have already done some research on my problem.

I absolutely can not find out why the option utf8 or latin1 don't work. When I click PDFLaTeX, it returns me this message.

Code: Select all

finished with exit code 1.

Unknown option 'utf8' for package 'inputenc'.
Here is the code I can not compile:

Code: Select all

\documentclass[a4paper]{article} 
%\documentclass[10pt]{scrartcl}
\usepackage[utf8]{inputenc}

\title{Cours de MHD} 
\author{} 
\date{19 septembre 2013}

\begin{document} 
\maketitle 
Etude des fluides conducteurs plongés dans les champs électriques et magnétiques

\end{document}
Here is the package I installed :

Code: Select all

dreydem@dreydem-Aspire-E1-531:~$ sudo apt-get install texlive texlive-base texlive-base-bin texlive-common texlive-font-utils texlive-fonts-extra texlive-fonts-recommended texlive-humanities texlive-lang-cyrillic texlive-lang-french texlive-lang-latin texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-math-extra texlive-pictures texlive-pstricks
dreydem@dreydem-Aspire-E1-531:~$ sudo apt-get update
dreydem@dreydem-Aspire-E1-531:~$  sudo apt-get upgrade
dreydem@dreydem-Aspire-E1-531:~$ sudo texhash
more information :

Code: Select all

dreydem@dreydem-Aspire-E1-531:~$ sudo find -name utf8
./usr/share/texmf/tex4ht/ht-fonts/unicode/cjk/utf8
./usr/share/texmf/tex4ht/ht-fonts/utf8
Thanking you in advance, I look forward to your suggestions.
Last edited by cgnieder on Fri Sep 20, 2013 5:52 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

maxwell57
Posts: 2
Joined: Fri Sep 20, 2013 2:56 pm

Input Encodings not available

Post by maxwell57 »

The solution is to uninstall an reinstall Kile.

Code: Select all

dreydem@dreydem-Aspire-E1-531:~$ apt-get autoremove kile
dreydem@dreydem-Aspire-E1-531:~$ apt-get install kile
:D
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Input Encodings not available

Post by Johannes_B »

Well, the solution really had nothing to do with the title, so here is a hint on that.

You can use package selinput to semi-automatically choose the encoding.

Code: Select all

\usepackage{selinput}
\SelectInputMappings{
  eacute={é},
  agrave={à}
}
Best regards
Johannes
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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Input Encodings not available

Post by localghost »

Johannes_B wrote:You can use package selinput to semi-automatically choose the encoding.

Code: Select all

\usepackage{selinput}
\SelectInputMappings{
  eacute={é},
  agrave={à}
}
There's a rub in this solution for this use case. The selinput package only detects the input encoding and afterwards loads inputenc with the corresponding definition file ("utf8.def" here). You can see that if you add \listfiles to a sample code.
maxwell57 wrote:The solution is to uninstall an reinstall Kile.

Code: Select all

dreydem@dreydem-Aspire-E1-531:~$ apt-get autoremove kile
dreydem@dreydem-Aspire-E1-531:~$ apt-get install kile
This is probably only an indirect solution since this might cause the installation of basic LaTeX packages. The inputenc package and the definition files (*.def) for input encoding are part of the LaTeX base. You find out their location in the TeX installation tree by using the KPathSea libraries.

Code: Select all

thorsten@earth:~$ kpsewhich inputenc.sty
/usr/local/texlive/2013/texmf-dist/tex/latex/base/inputenc.sty
thorsten@earth:~$ kpsewhich utf8.def
/usr/local/texlive/2013/texmf-dist/tex/latex/base/utf8.def
thorsten@earth:~$ kpsewhich latin1.def
/usr/local/texlive/2013/texmf-dist/tex/latex/base/latin1.def

Best regards and welcome to the board
Thorsten
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Input Encodings not available

Post by Johannes_B »

@localghost You are right, i wasn't paying enough attention.

Another thing to be mentioned: selinput detects the encoding of the master document, all included documents should have the same encoding.

Please do not mix encodings within a project
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply