emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] problem of accents with pdflatex export


From: Nick Dokos
Subject: Re: [O] problem of accents with pdflatex export
Date: Fri, 27 Dec 2013 14:27:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Joseph Vidal-Rosset <address@hidden> writes:

> Hello,
>
> I do not succeed to solve this problem of accent with pdflatex : 
>
> in my org-mode file I have  this code : 
>
>     # -*- mode:org; mode:reftex; indent-tabs-mode:nil; tab-width:2 -*-
>     #+TITLE: Mon premier document en org-mode
>     #+AUTHOR: Joseph Vidal-Rosset
>     #+OPTIONS: LaTeX:t
>     #+LATEX_CLASS: koma-article
>     #+LATEX_HEADER: \usepackage[T1]{fontenc}
>     #+LATEX_HEADER: \usepackage[utf8]{inputenc} 

Unless you've done massive customizations of things like
org-latex-default-packages-alist, you don't need the fontenc/inputenc
packages: they are included automatically.

>     #+LANGUAGE:  fr
>     #+LaTeX_HEADER: \usepackage[french]{babel}
>     #+HTML_MATHJAX: align:"left" mathml:t path:"/MathJax/MathJax.js"
>     #+OPTIONS: tex:imagemagick
>
>     * Introduction...
>      à voir 
>
> the export with pdflatex does not succeed to save the letter   "à " :
> every letter with French accent is given up in the pdf file. Why ? 
>

I had no trouble exporting this, after adding a koma-article-class
definition to org-latex-classes:

--8<---------------cut here---------------start------------->8---
(setq koma-article-class
      '("koma-article" "\\documentclass[11pt]{scrartcl}"
        ("\\section{%s}" . "\\section*{%s}")
        ("\\subsection{%s}" . "\\subsection*{%s}")
        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
        ("\\paragraph{%s}" . "\\paragraph*{%s}")
        ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(add-to-list 'org-latex-classes koma-article-class t)        
--8<---------------cut here---------------end--------------->8---

and deleting the various #xa0 NO-BREAK SPACE characters which caused
LaTeX errors (these are displayed as light blue underscores in my
buffer). 

The resulting PDF is attached and looks fine.

Attachment: accents.pdf
Description: accents

Nick

> It works fine with html export... 
>
> French users and others, in advance, thanks for your help !
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]