KileAutomatic LaTeX Equivalents for Spanish Accents

Information and discussion about Kile, an integrated LaTeX environment for Linux KDE
Post Reply
Jueves89
Posts: 2
Joined: Mon Aug 26, 2013 10:17 am

Automatic LaTeX Equivalents for Spanish Accents

Post by Jueves89 »

Hi all,

I have been using Kile a lot of time on Debian, but now I have to use it on Windows 7 x64. On Debian, when I type an accent, Kile automatically inserts it as \´a when compiling it appears as "á". But now on Windows when I do the same, Kile inserts directly "á" and I don't like it, I prefer the other method because of compatibility.

I'm using Kile 2.1 with KDE 4.10.2, I have also tried with Kile 3 beta, in both cases with and without Spanish spelling package. I always have the option "Automatically insert the LaTeX equivalent of special characters when typing (accents, etc)" activated.

Wish someone can help me.
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Automatic LaTeX Equivalents for Spanish Accents

Post by localghost »

Jueves89 wrote:[…] But now on Windows when I do the same, Kile inserts directly "á" and I don't like it, I prefer the other method because of compatibility. […]
Looks to me like a bug. Try to contact the developers and ask them for help. But perhaps you should abandon this compatibility in favor of typesetting accents as Unicode characters in a modern way. With Kile you can easily search and replace the critical parts.

A Spanish document in which you can use accented characters can easily be set up in the following way.

Code: Select all

\documentclass[spanish]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{
  aacute={á},
  ntilde={ñ}
}
\usepackage{babel}

\begin{document}
  á ñ
\end{document}
Finally you could also use Xe(La)TeX or Lua(La)LaTeX to typeset your documents. These typesetting engines support Unicode by default but need other document setups.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Jueves89
Posts: 2
Joined: Mon Aug 26, 2013 10:17 am

Automatic LaTeX Equivalents for Spanish Accents

Post by Jueves89 »

I also think it may be a bug. I'll try to contact the developers as you say. If I have any answer I'll tell you.

My preamble looks like is.

Code: Select all

\documentclthass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english,spanish]{babel}
\usepackage[
  a4paper,
  textheight=22.3cm,
  headsep=1.0cm,
  footskip=13cm,
  left=2.5cm,
  right=2.5cm,
  voffset=0.0cm
]{geometry}
\usepackage{enumerate}
\usepackage{times}
\usepackage{calc}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{soul}
\usepackage{tabularx}
\usepackage{textcomp}
\usepackage[dvips]{epsfig}
\usepackage{ae}
\usepackage{multirow}
\usepackage{array}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{fancybox}
\usepackage{boxedminipage}
\usepackage{longtable}
%\usepackage{ltablex}
\usepackage{fancyhdr}
\usepackage{rotating}
\usepackage{subfigure}
\usepackage{color}
\usepackage{multicol}

\providecommand{\providehyphenmins}[2]{}
When compiling I always have good results. Accents and ñ always appear. It doesn't matter if I insert it as \'a or á.
Post Reply