* problem of accents with pdflatex export
@ 2013-12-27 15:09 Joseph Vidal-Rosset
2013-12-27 19:27 ` Nick Dokos
2013-12-27 20:15 ` Andrea Rossetti
0 siblings, 2 replies; 8+ messages in thread
From: Joseph Vidal-Rosset @ 2013-12-27 15:09 UTC (permalink / raw)
To: emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
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}
> #+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 ?
It works fine with html export...
French users and others, in advance, thanks for your help !
Jo.
[-- Attachment #2: Type: text/html, Size: 1327 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-27 15:09 problem of accents with pdflatex export Joseph Vidal-Rosset
@ 2013-12-27 19:27 ` Nick Dokos
2013-12-27 20:15 ` Andrea Rossetti
1 sibling, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2013-12-27 19:27 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1878 bytes --]
Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> 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 #2: accents --]
[-- Type: application/pdf, Size: 65148 bytes --]
[-- Attachment #3: Type: text/plain, Size: 112 bytes --]
Nick
> It works fine with html export...
>
> French users and others, in advance, thanks for your help !
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-27 15:09 problem of accents with pdflatex export Joseph Vidal-Rosset
2013-12-27 19:27 ` Nick Dokos
@ 2013-12-27 20:15 ` Andrea Rossetti
2013-12-28 18:07 ` Joseph Vidal-Rosset
1 sibling, 1 reply; 8+ messages in thread
From: Andrea Rossetti @ 2013-12-27 20:15 UTC (permalink / raw)
To: emacs-orgmode
Joseph Vidal-Rosset <joseph.vidal.rosset <at> gmail.com> writes:
>
> Hello,
> I do not succeed to solve this problem of accent with pdflatex :
>
Shot in the dark: could it be that the encoding of your
org file needs to be saved in utf8 in order to generate a utf8
latex file? Regards, Andrea
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-27 20:15 ` Andrea Rossetti
@ 2013-12-28 18:07 ` Joseph Vidal-Rosset
2013-12-29 1:18 ` Andrea Rossetti
0 siblings, 1 reply; 8+ messages in thread
From: Joseph Vidal-Rosset @ 2013-12-28 18:07 UTC (permalink / raw)
To: Andrea Rossetti, Nick Dokos; +Cc: emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 564 bytes --]
I thank you Andrea, and Nick,
Andrea, you are probably right. Is it a way to automatically save the .org
file in utf8 ? In my emacs the encoding is utf8 by default.
Best wishes,
Jo.
2013/12/27 Andrea Rossetti <andrea.rossetti@gmail.com>
> Joseph Vidal-Rosset <joseph.vidal.rosset <at> gmail.com> writes:
>
> >
> > Hello,
> > I do not succeed to solve this problem of accent with pdflatex :
> >
>
> Shot in the dark: could it be that the encoding of your
> org file needs to be saved in utf8 in order to generate a utf8
> latex file? Regards, Andrea
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1095 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-28 18:07 ` Joseph Vidal-Rosset
@ 2013-12-29 1:18 ` Andrea Rossetti
2013-12-29 6:05 ` Joseph Vidal-Rosset
0 siblings, 1 reply; 8+ messages in thread
From: Andrea Rossetti @ 2013-12-29 1:18 UTC (permalink / raw)
To: Joseph Vidal-Rosset; +Cc: emacs-orgmode list
Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
> ... Is it a way to automatically save the .org
> file in utf8 ? In my emacs the encoding is utf8 by default.
>
Sorry, I never customized file-coding-system-alist
and related variables, defaults worked well for me, so
unfortunately I don't have good hints... but please note
that in my simple environment (Win7 + Emacs 24.3 + Org 8.2.2-elpa
+ nearly zero customizations) I can export org to PDF with
àèìòù (Italian) without any need to specify encodings, it
just worked out-of-the-box.
I would suggest to investigate in these directions:
1) try to see what happens without customizations
(maybe by running "emacs -Q")
2) try to force utf8 on that specific org file, by saying in
the head line:
# -*- mode:org; ....your settings...; coding:utf-8 -*-
3) or alternatively:
# -*- mode:org; ....your settings...; coding:iso-8859-1 -*-
Kindest regards,
Andrea
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-29 1:18 ` Andrea Rossetti
@ 2013-12-29 6:05 ` Joseph Vidal-Rosset
2013-12-29 10:59 ` Ramon Diaz-Uriarte
0 siblings, 1 reply; 8+ messages in thread
From: Joseph Vidal-Rosset @ 2013-12-29 6:05 UTC (permalink / raw)
To: Andrea Rossetti; +Cc: emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]
Many thanks Andrea, you are indeed very kind to try to help me when
everything works fine in your configuration by default.
My OS is Debian (testing) GNU Linux and I'm working with emacs-snapshot.
In fact I have realized that this problem of accents appears only with
Gnome pdf viewer immediately open after C-e l-o . There is no problem when
I compile after directly to pdflatex the latex file produced with the org
file. Therefore it is a minor bug or a minor problem.
But I meet several difficulties with my tentative of transition from
writing .tex files to .org files instead. Therefore I am going to write an
email to this list of very kind and helpful people.
Best wishes ,
Jo.
2013/12/29 Andrea Rossetti <andrea.rossetti@gmail.com>
>
> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
> > ... Is it a way to automatically save the .org
> > file in utf8 ? In my emacs the encoding is utf8 by default.
> >
>
> Sorry, I never customized file-coding-system-alist
> and related variables, defaults worked well for me, so
> unfortunately I don't have good hints... but please note
> that in my simple environment (Win7 + Emacs 24.3 + Org 8.2.2-elpa
> + nearly zero customizations) I can export org to PDF with
> àèìòù (Italian) without any need to specify encodings, it
> just worked out-of-the-box.
>
> I would suggest to investigate in these directions:
>
> 1) try to see what happens without customizations
> (maybe by running "emacs -Q")
>
> 2) try to force utf8 on that specific org file, by saying in
> the head line:
> # -*- mode:org; ....your settings...; coding:utf-8 -*-
>
> 3) or alternatively:
> # -*- mode:org; ....your settings...; coding:iso-8859-1 -*-
>
> Kindest regards,
>
> Andrea
>
>
[-- Attachment #2: Type: text/html, Size: 2404 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-29 6:05 ` Joseph Vidal-Rosset
@ 2013-12-29 10:59 ` Ramon Diaz-Uriarte
2013-12-30 12:45 ` Joseph Vidal-Rosset
0 siblings, 1 reply; 8+ messages in thread
From: Ramon Diaz-Uriarte @ 2013-12-29 10:59 UTC (permalink / raw)
To: Joseph Vidal-Rosset; +Cc: Andrea Rossetti, emacs-orgmode list
Dear Joseph,
One minor suggestion: before exporting/texing you can play around with the
encoding used to save the file by doing
C-x RET f
and then specify the one you want (with tab completion as usual).
You can see which one (among utf-8, or the several iso, etc) works for you
before fixing them in the head line as suggested by Andrea. In my case
(which I guess could be similar to yours in terms of types of accents, ñ,
etc), I use iso-8859-15.
Best,
R.
On Sun, 29-12-2013, at 07:05, joseph.vidal.rosset@gmail.com wrote:
> Many thanks Andrea, you are indeed very kind to try to help me when
> everything works fine in your configuration by default.
>
> My OS is Debian (testing) GNU Linux and I'm working with emacs-snapshot.
>
> In fact I have realized that this problem of accents appears only with
> Gnome pdf viewer immediately open after C-e l-o . There is no problem when
> I compile after directly to pdflatex the latex file produced with the org
> file. Therefore it is a minor bug or a minor problem.
>
> But I meet several difficulties with my tentative of transition from
> writing .tex files to .org files instead. Therefore I am going to write an
> email to this list of very kind and helpful people.
>
> Best wishes ,
>
> Jo.
>
>
> 2013/12/29 Andrea Rossetti <andrea.rossetti@gmail.com>
>
>>
>> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
>> > ... Is it a way to automatically save the .org
>> > file in utf8 ? In my emacs the encoding is utf8 by default.
>> >
>>
>> Sorry, I never customized file-coding-system-alist
>> and related variables, defaults worked well for me, so
>> unfortunately I don't have good hints... but please note
>> that in my simple environment (Win7 + Emacs 24.3 + Org 8.2.2-elpa
>> + nearly zero customizations) I can export org to PDF with
>> àèìòù (Italian) without any need to specify encodings, it
>> just worked out-of-the-box.
>>
>> I would suggest to investigate in these directions:
>>
>> 1) try to see what happens without customizations
>> (maybe by running "emacs -Q")
>>
>> 2) try to force utf8 on that specific org file, by saying in
>> the head line:
>> # -*- mode:org; ....your settings...; coding:utf-8 -*-
>>
>> 3) or alternatively:
>> # -*- mode:org; ....your settings...; coding:iso-8859-1 -*-
>>
>> Kindest regards,
>>
>> Andrea
>>
>>
--
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-25
Facultad de Medicina
Universidad Autónoma de Madrid
Arzobispo Morcillo, 4
28029 Madrid
Spain
Phone: +34-91-497-2412
Email: rdiaz02@gmail.com
ramon.diaz@iib.uam.es
http://ligarto.org/rdiaz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: problem of accents with pdflatex export
2013-12-29 10:59 ` Ramon Diaz-Uriarte
@ 2013-12-30 12:45 ` Joseph Vidal-Rosset
0 siblings, 0 replies; 8+ messages in thread
From: Joseph Vidal-Rosset @ 2013-12-30 12:45 UTC (permalink / raw)
To: Ramon Diaz-Uriarte; +Cc: Andrea Rossetti, emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 3075 bytes --]
Dear Ramon,
Many thanks for your help. It seems that my problem was not really serious.
Best wishes, and, soon, happy new year !
Jo.
2013/12/29 Ramon Diaz-Uriarte <rdiaz02@gmail.com>
> Dear Joseph,
>
> One minor suggestion: before exporting/texing you can play around with the
> encoding used to save the file by doing
>
> C-x RET f
>
> and then specify the one you want (with tab completion as usual).
>
> You can see which one (among utf-8, or the several iso, etc) works for you
> before fixing them in the head line as suggested by Andrea. In my case
> (which I guess could be similar to yours in terms of types of accents, ñ,
> etc), I use iso-8859-15.
>
>
> Best,
>
> R.
>
>
> On Sun, 29-12-2013, at 07:05, joseph.vidal.rosset@gmail.com wrote:
> > Many thanks Andrea, you are indeed very kind to try to help me when
> > everything works fine in your configuration by default.
> >
> > My OS is Debian (testing) GNU Linux and I'm working with emacs-snapshot.
> >
> > In fact I have realized that this problem of accents appears only with
> > Gnome pdf viewer immediately open after C-e l-o . There is no problem
> when
> > I compile after directly to pdflatex the latex file produced with the org
> > file. Therefore it is a minor bug or a minor problem.
> >
> > But I meet several difficulties with my tentative of transition from
> > writing .tex files to .org files instead. Therefore I am going to write
> an
> > email to this list of very kind and helpful people.
> >
> > Best wishes ,
> >
> > Jo.
> >
> >
> > 2013/12/29 Andrea Rossetti <andrea.rossetti@gmail.com>
> >
> >>
> >> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
> >> > ... Is it a way to automatically save the .org
> >> > file in utf8 ? In my emacs the encoding is utf8 by default.
> >> >
> >>
> >> Sorry, I never customized file-coding-system-alist
> >> and related variables, defaults worked well for me, so
> >> unfortunately I don't have good hints... but please note
> >> that in my simple environment (Win7 + Emacs 24.3 + Org 8.2.2-elpa
> >> + nearly zero customizations) I can export org to PDF with
> >> àèìòù (Italian) without any need to specify encodings, it
> >> just worked out-of-the-box.
> >>
> >> I would suggest to investigate in these directions:
> >>
> >> 1) try to see what happens without customizations
> >> (maybe by running "emacs -Q")
> >>
> >> 2) try to force utf8 on that specific org file, by saying in
> >> the head line:
> >> # -*- mode:org; ....your settings...; coding:utf-8 -*-
> >>
> >> 3) or alternatively:
> >> # -*- mode:org; ....your settings...; coding:iso-8859-1 -*-
> >>
> >> Kindest regards,
> >>
> >> Andrea
> >>
> >>
>
> --
> Ramon Diaz-Uriarte
> Department of Biochemistry, Lab B-25
> Facultad de Medicina
> Universidad Autónoma de Madrid
> Arzobispo Morcillo, 4
> 28029 Madrid
> Spain
>
> Phone: +34-91-497-2412
>
> Email: rdiaz02@gmail.com
> ramon.diaz@iib.uam.es
>
> http://ligarto.org/rdiaz
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 4253 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-12-30 12:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-27 15:09 problem of accents with pdflatex export Joseph Vidal-Rosset
2013-12-27 19:27 ` Nick Dokos
2013-12-27 20:15 ` Andrea Rossetti
2013-12-28 18:07 ` Joseph Vidal-Rosset
2013-12-29 1:18 ` Andrea Rossetti
2013-12-29 6:05 ` Joseph Vidal-Rosset
2013-12-29 10:59 ` Ramon Diaz-Uriarte
2013-12-30 12:45 ` Joseph Vidal-Rosset
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).