From: Florian Beck <abstraktion@t-online.de>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: emacs-orgmode@gnu.org, Florian Beck <abstraktion@t-online.de>
Subject: Re: Unicode and Latex export
Date: Sun, 07 Aug 2011 20:07:04 +0200 [thread overview]
Message-ID: <87vcu99juf.fsf@sophokles.streitblatt.de> (raw)
In-Reply-To: <CAMXnza1juN=gBrHxMVCG=e7uKh00O0kThkUSTNwrVAHung19Dw@mail.gmail.com> (suvayu ali's message of "Sun, 7 Aug 2011 18:54:40 +0200")
suvayu ali <fatkasuvayu+linux@gmail.com> writes:
> On Sun, Aug 7, 2011 at 6:50 PM, suvayu ali <fatkasuvayu+linux@gmail.com> 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=MatchLowercase]{%s}%s}"
path desc))
(t desc)))
And write [[uc:Code2000][⫳]] to use Code2000 as a font.
I use it mostly for greek words, e.g.
[[uc:Alexander][φύσις κρύπτεσθαι φιλεῖ]]
But if you mostly have single characters it might be too much of a hassle.
--
Florian Beck
next prev parent reply other threads:[~2011-08-07 18:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-06 23:25 Unicode and Latex export suvayu ali
2011-08-07 10:01 ` Christopher Witte
2011-08-07 12:15 ` suvayu ali
2011-08-07 16:33 ` Florian Beck
2011-08-07 16:50 ` suvayu ali
2011-08-07 16:54 ` suvayu ali
2011-08-07 18:07 ` Florian Beck [this message]
2011-08-07 18:28 ` suvayu ali
2011-08-07 18:41 ` Florian Beck
2011-08-07 18:49 ` suvayu ali
2011-08-31 7:30 ` Aditya Mandayam
2011-08-31 17:18 ` Aditya Mandayam
2011-08-07 16:36 ` Christopher Witte
2011-08-07 16:45 ` suvayu ali
2011-08-08 6:13 ` Sebastien Vauban
2011-08-08 6:57 ` suvayu ali
2011-08-08 7:09 ` Nick Dokos
2011-08-08 7:17 ` suvayu ali
2011-08-08 7:53 ` Stefan Nobis
2011-08-08 8:42 ` suvayu ali
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vcu99juf.fsf@sophokles.streitblatt.de \
--to=abstraktion@t-online.de \
--cc=emacs-orgmode@gnu.org \
--cc=fatkasuvayu+linux@gmail.com \
/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 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).