From: Francesco Pizzolante <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
To: mailing-list-org-mode <emacs-orgmode-mXXj517/zsQ@public.gmane.org>
Subject: Exporting non utf8 org documents
Date: Tue, 08 Dec 2009 17:22:58 +0100 [thread overview]
Message-ID: <87my1tcu59.fsf@missioncriticalit.com> (raw)
Hi,
I have colleagues who are writing Org documents with latin-1 encoding and when
I export these documents to LaTeX I run into problems, because Org assumes
utf8.
Here's a little example:
--8<---------------cut here---------------start------------->8---
#+LATEX_CLASS: article
* Ceci est un test
Voici un petit texte rédigé en français.
* COMMENT Setup
# This is for the sake of Emacs.
# Local Variables:
# coding: iso-latin-1
# End:
--8<---------------cut here---------------end--------------->8---
The exportation to LaTeX gives the following result:
--8<---------------cut here---------------start------------->8---
% Created 2009-12-08 mar. 17:10
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{listings}
\title{org-french}
\author{Francesco Pizzolante}
\date{08 décembre 2009}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Ceci est un test}
\label{sec-1}
Voici un petit texte rédigé en français.
\end{document}
--8<---------------cut here---------------end--------------->8---
When compiling, due to the \usepackage[utf8]{inputenc} directive, I get this
error:
ERROR: Package utf8x Error: MalformedUTF-8sequence.
In order to fix this issue, I see the following solutions:
- Would it be possible for Org to automatically get the coding system of the
buffer and then generate the correct option for the inputenc package?
or
- Would it be possible to have a variable like #+CODING-SYSTEM: iso-latin-1
which would be used to generate the correct option for the inputenc package?
Any other proposition or idea is welcome.
In addition, Org should use the `utf8x' option (instead of `utf8') which
enables to handle unbreakable spaces (useful in french).
Thanks.
Regards,
Francesco
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2009-12-08 16:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 16:22 Francesco Pizzolante [this message]
2010-01-04 14:16 ` Exporting non utf8 org documents Carsten Dominik
2010-01-06 8:26 ` Carsten Dominik
[not found] ` <6B5F0F7A-F055-435F-ADE2-846E99649B1D-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-08 12:36 ` Francesco Pizzolante
2010-01-08 12:39 ` Carsten Dominik
2010-01-08 12:43 ` Carsten Dominik
2010-01-10 9:20 ` Carsten Dominik
[not found] ` <0929970B-35B4-495A-A972-985AF9FF1B91-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-03-22 14:20 ` Francesco Pizzolante
2010-03-23 8:06 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87my1tcu59.fsf@missioncriticalit.com \
--to=fpz-djc/ipccudyqhejpep6iedvlejwurmry@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.