[Top][All Lists]

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

Re: how to add special glyphs

From: Rob Sargent
Subject: Re: how to add special glyphs
Date: Mon, 6 Mar 2023 16:24:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 3/6/23 16:06, Thomas S. Dye wrote:

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"))


Thanks again.

I think I have to decide on one format and stick with it.  I get bitten by ODT/DOC transformations, not sure I like the default look of LaTeX/pdf, HTML is pretty reliable but not best for handing out. Maybe I'll go back to "text" and call it good.


reply via email to

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