From: FengShu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: How to include a very complicated latex head
Date: Wed, 21 Mar 2012 17:00:24 +0800 [thread overview]
Message-ID: <87y5qu2us7.fsf@gmail.com> (raw)
I want to set the latex-head for latex exporting, I use
*org-export-latex-append-header*,but it seem not used by
*org-preview-latex-fragment* . is there any other way?
simple way?
#+begin_latex
\ifxetex % xelatex
\usepackage[xetex]{hyperref}
\else
\ifpdf % pdflatex
\usepackage[pdftex,unicode]{hyperref}
\else % dvipdfmx or dvips
\usepackage[dvipdfmx,unicode]{hyperref}
%\usepackage[ps2pdf,unicode]{hyperref}
\fi
\fi
\ifxetex\else\ifpdf\else
% pdftex 3.1415926-1.40.10-2.2 has trouble with it
\InputIfFileExists{zhwinfonts.tex}{}{}
\fi\fi
#+end_latex
#+begin_src emacs-lisp
(setq org-export-latex-append-header
"
\\ifxetex % xelatex
\\usepackage[hyperref,UTF8,nofonts]{ctex}
\\setCJKmainfont[ItalicFont={AR PL UKai CN}]{AR PL UMing CN}% 文鼎宋体和楷书
\\setCJKsansfont{WenQuanYi Zen Hei}% 文泉驿的黑体
\\setCJKmonofont{WenQuanYi Zen Hei}
\\usepackage[xetex]{hyperref}
\\else
\\ifpdf % pdflatex
\\usepackage[pdftex,unicode]{hyperref}
\\else % dvipdfmx or dvips
\\usepackage[dvipdfmx,unicode]{hyperref}
%\\usepackage[ps2pdf,unicode]{hyperref}
\\fi
\\fi
\\ifxetex\\else\\ifpdf\\else
% pdftex 3.1415926-1.40.10-2.2 has trouble with it
\\InputIfFileExists{zhwinfonts.tex}{}{}
\\fi\\fi
")
#+end_src
next reply other threads:[~2012-03-21 8:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-21 9:00 FengShu [this message]
2012-03-21 10:51 ` How to include a very complicated latex head Alan Schmitt
2012-03-21 12:52 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5qu2us7.fsf@gmail.com \
--to=tumashu@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.