On 3/6/23 16:06, Thomas S. Dye wrote:
Rob Sargent <rsarg...@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 "ŋ" "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)
(add-to-list
'org-latex-classes
'("koma-article-liberation"
"\\documentclass{scrartcl}
[NO-DEFAULT-PACKAGES]
[PACKAGES]
[EXTRA]
\\usepackage{microtype}
\\usepackage{amstext}
\\usepackage{fontspec}
\\usepackage{unicode-math}
\\defaultfontfeatures{Ligatures=TeX}
\\setmainfont{Liberation Serif}
\\setsansfont{Liberation Sans}[Scale=MatchLowercase]
\\setmonofont{Liberation Mono}[Scale=MatchLowercase]
\\usepackage{paralist}
\\let\\itemize\\compactitem
\\let\\description\\compactdesc
\\renewenvironment{enumerate}{\\begin{inparaenum}[(i)]}{\\end{inparaenum}}
\\usepackage{fewerfloatpages}
\\usepackage{graphicx}
\\usepackage{textcomp}
\\usepackage{array}
\\usepackage[x11names]{xcolor}
\\usepackage[colorlinks=true,allcolors=Blue4]{hyperref}
\\usepackage[color=blue]{attachfile2}
\\usepackage[cache=false]{minted}
\\usemintedstyle{tango}
\\usepackage{rotating}
\\usepackage[authordate, giveninits=true, noibid, sortcites=true,
backend=biber, bibencoding=utf8]{biblatex-chicago}
\\addbibresource{tsd.bib}
\\newcommand{\\rc}{$^{14}$C}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+end_src
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"))
#+end_src
hth,
Tom
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.
Cheers,
rjs