From: "Feng Shu" <tumashu@163.com>
To: orgmode-devel <emacs-orgmode@gnu.org>
Cc: Feng Shu <tumashu@163.com>
Subject: Some thought about `org-latex-pdf-process-alist', was Re: (V9) [PATCH] New feature: Use dvisvgm to preview latex formular
Date: Sun, 22 May 2016 07:19:59 +0800 [thread overview]
Message-ID: <87twhrdmn4.fsf@163.com> (raw)
> Hi Feng,
>
> Thanks for the patches.
>
> "Feng Shu" <tumashu@163.com> writes:
>
>> 1. org-latex-pdf-process -> org-latex-pdf-default-process
>> 2. Add new variable org-latex-pdf-process-alist
>
> What do you have in mind? I assume it’s something more than just ripping
> out the :type part of org-latex-pdf-process.
>
Similar, but include more information, maybe it it like:
#+BEGIN_SRC emacs-lisp
(setq org-latex-pdf-process-alist
'(("pdflatex-pdflatex-pdflatex"
:commands ("pdflatex -interaction nonstopmode -output-directory %o %f"
"pdflatex -interaction nonstopmode -output-directory %o %f"
"pdflatex -interaction nonstopmode -output-directory %o %f")
;; A string in `:valid-classes',
;; when nil, fallback to `org-latex-default-class'
:default-class "article"
;; class-settings which works well with the process,
;; they must be defined `org-latex-classes'.
;; when nil, all class-settings defined `org-latex-classes'
;; are valid.
:valid-classes ("article" "beamer" "report" "book")
;; the process's default packages, when nil
;; fallback to `org-latex-default-packages-alist'
:default-packages-alist nil
;; the process's packages, when nil
;; fallback to `org-latex-packages-alist'
:packages-alist nil
:packages-override nil)))
#+END_SRC
>> 3. Add #+LATEX_PDF_PROCESS setting
>
> Is this the same as #+latex_compiler, which is used for setting the
> process to pdflatex, xelatex or lualatex?
It is different, 3 runs of latex as example:
if we don't deal with %latex place-hold in process commands,
#+latex_compiler is useless, we need to define pdf process
in org-latex-pdf-process-alist,
"pdflatex-pdflatex-pdflatex" "xelatex-xelatex-xelatex" "lualatex-lualatex-lualatex"
otherwise, we can use #+latex_compile and define pdf process
"latex-latex-latex"
>
>> I am a member of emacs community in chinese, many org-mode latex
>> beginners will ask me: "How to export org to pdf by latex?",
>> this problem is annoying, so i deside to write a package:
>> ox-latex-chinese and tell them: "Install org-latex-chinese package!"
>
> It sounds like #+language support should be extended. A basic Chinese
> document with org doesn’t seem that hard. With ttf-hannom, all I need is
> this:
>
> #+latex_compiler: xelatex
> #+latex_header: \usepackage{xeCJK}
> #+latex_header: \setCJKmainfont{HAN NOM A}
> 文章内容
>
Reason:
1. Not so simple, we often need to edit `org-latex-classes'
`org-latex-default-packages-alist' and `org-latex-package-alist'
for many reason, for example: macro conflict
2. I don't want every users have to write latex-header in every org-file
and I like: install ox-latex-chinese and
(setq org-latex-default-pdf-process "cn/xelatex-xelatex-xelatex")
every org-file can export to pdf.
> Rasmus
--
--
next reply other threads:[~2016-05-21 23:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-21 23:19 Feng Shu [this message]
2016-05-22 0:11 ` Some thought about `org-latex-pdf-process-alist', was Re: (V9) [PATCH] New feature: Use dvisvgm to preview latex formular Feng Shu
2016-05-22 12:27 ` Rasmus
-- strict thread matches above, loose matches on Subject: below --
2016-05-23 4:20 Feng Shu
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=87twhrdmn4.fsf@163.com \
--to=tumashu@163.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 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).