[Top][All Lists]

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

Re: how to add special glyphs

From: Thomas S. Dye
Subject: Re: how to add special glyphs
Date: Mon, 06 Mar 2023 13:06:02 -1000
User-agent: mu4e 1.6.10; emacs 27.1

Rob Sargent <rsargent@xmission.com> writes:

On 3/6/23 10:42, Rob Sargent wrote:

I settled for \ding{54}, but of course that doesn't work in the HTML export.  I keep bumping in to this works-here-not-there in export. Quite disappointing.

LaTeX is great, but not for the faint of heart.
I know two ways that might fix things for you.

One is org-entities-user, which makes a dictionary to cover html and LaTeX export, e.g., (add-to-list 'org-entities-user '("eng" "\\ng" nil "&eng;" "g" "g" "ŋ"))

Another is to use UTF-8 in LaTeX.  Here's one of my setups:

#+name: koma-article-liberation
#+header: :results silent
#+begin_src emacs-lisp
 (require 'ox-latex)
    \\setmainfont{Liberation Serif}
    \\setsansfont{Liberation Sans}[Scale=MatchLowercase]
    \\setmonofont{Liberation Mono}[Scale=MatchLowercase]
\\usepackage[authordate, giveninits=true, noibid, sortcites=true, backend=biber, bibencoding=utf8]{biblatex-chicago}
    ("\\section{%s}" . "\\section*{%s}")
    ("\\subsection{%s}" . "\\subsection*{%s}")
    ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
    ("\\paragraph{%s}" . "\\paragraph*{%s}")
    ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

The key here is the fontspec package.

If you go the UTF-8 route, then you'll need to compile with either XeLaTeX or LuaLaTeX, something like this:

#+name: xelatex-biber
#+header: :results silent
#+begin_src emacs-lisp
 (setq org-latex-pdf-process
'("xelatex -interaction nonstopmode -shell-escape -output-directory %o %f"
         "biber %b"
"xelatex -interaction nonstopmode -shell-escape -output-directory %o %f" "xelatex -interaction nonstopmode -shell-escape -output-directory %o %f"))


Thomas S. Dye

reply via email to

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