From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Beck Subject: Re: Unicode and Latex export Date: Sun, 07 Aug 2011 20:07:04 +0200 Message-ID: <87vcu99juf.fsf@sophokles.streitblatt.de> References: <4E3E6267.8010702@witte.net.au> <87mxflb2qx.fsf@sophokles.streitblatt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq7lb-0003Wp-3u for emacs-orgmode@gnu.org; Sun, 07 Aug 2011 14:08:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq7lZ-00063E-Vs for emacs-orgmode@gnu.org; Sun, 07 Aug 2011 14:08:03 -0400 Received: from mo-p05-ob.rzone.de ([81.169.146.182]:12275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq7lZ-000638-PS for emacs-orgmode@gnu.org; Sun, 07 Aug 2011 14:08:01 -0400 In-Reply-To: (suvayu ali's message of "Sun, 7 Aug 2011 18:54:40 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: emacs-orgmode@gnu.org, Florian Beck suvayu ali writes: > On Sun, Aug 7, 2011 at 6:50 PM, suvayu ali = wrote: >>> BTW, this only works if you use a font that provides all the characters >>> you need (and looks nice enough for your taste). >> >> I don't usually customise my fonts and go with the default latex >> fonts. Do you have any suggestions what fonts that would be >> appropriate here? I tried using XITS, but that didn't help. > > I should clarify, when I say didn't work I mean xelatex couldn't find > the fonts although I have them installed. Not sure. XeTeX uses the fonts you have installed on your system, not those for TeX. Everything in M-: (font-family-list) should work. Maybe one of the DejaVu fonts? Generally, though, universal fonts aren't the best choice. Here is what I do. Create a custom link style for export with XeLaTeX: (org-add-link-type "uc" 'ignore 'org-unicode-export) (defun org-unicode-export (path desc format) "Export unicode characters." (cond ((eql format 'html) (format "%s" desc)) ((eql format 'latex) (format "{\\fontspec[Scale=3DMatchLowercase]{%s}%s}" path desc)) (t desc))) And write [[uc:Code2000][=E2=AB=B3]] to use Code2000 as a font. I use it mostly for greek words, e.g. [[uc:Alexander][=CF=86=E1=BD=BB=CF=83=CE=B9=CF=82 =CE=BA=CF=81=E1=BD=BB=CF= =80=CF=84=CE=B5=CF=83=CE=B8=CE=B1=CE=B9 =CF=86=CE=B9=CE=BB=CE=B5=E1=BF=96]] But if you mostly have single characters it might be too much of a hassle. --=20 Florian Beck