* How to export to latex from command line?
@ 2016-06-23 13:43 Giacomo M
2016-06-23 14:48 ` hymie!
0 siblings, 1 reply; 5+ messages in thread
From: Giacomo M @ 2016-06-23 13:43 UTC (permalink / raw)
To: emacs-orgmode
Dear all,
I would like to export an org file to either tex or pdf from bash.
Any help on the lisp code to pass to the --eval argument of emacs to
achieve this?
Thanks,
Giacomo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to export to latex from command line?
2016-06-23 13:43 How to export to latex from command line? Giacomo M
@ 2016-06-23 14:48 ` hymie!
2016-06-23 15:33 ` Giacomo M
2016-06-23 16:30 ` Rasmus
0 siblings, 2 replies; 5+ messages in thread
From: hymie! @ 2016-06-23 14:48 UTC (permalink / raw)
To: emacs-orgmode
In our last episode, the evil Dr. Lacto had captured our hero,
Giacomo M <jackjackk@gmail.com>, who said:
> Dear all,
>
> I would like to export an org file to either tex or pdf from bash.
I have been using this:
${EMACS} $filename -f org-html-export-to-html -f kill-emacs
There are similar functions org-latex-export-to-pdf and
org-latex-export-to-latex. I don't think org does plain TeX; I'd be
thrilled if it does.
--hymie! http://lactose.homelinux.net/~hymie hymie@lactose.homelinux.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to export to latex from command line?
2016-06-23 14:48 ` hymie!
@ 2016-06-23 15:33 ` Giacomo M
2016-06-23 16:30 ` Rasmus
1 sibling, 0 replies; 5+ messages in thread
From: Giacomo M @ 2016-06-23 15:33 UTC (permalink / raw)
To: emacs-orgmode
Il 23/06/2016 16:48, hymie! ha scritto:
> In our last episode, the evil Dr. Lacto had captured our hero,
> Giacomo M <jackjackk@gmail.com>, who said:
>> Dear all,
>>
>> I would like to export an org file to either tex or pdf from bash.
> I have been using this:
> ${EMACS} $filename -f org-html-export-to-html -f kill-emacs
>
> There are similar functions org-latex-export-to-pdf and
> org-latex-export-to-latex. I don't think org does plain TeX; I'd be
> thrilled if it does.
>
Thanks, great!
by tex I meant latex (as in a metonymy where you use the extension for
the language), so no particularly thrilling perspectives implied.
Best,
Giacomo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to export to latex from command line?
2016-06-23 14:48 ` hymie!
2016-06-23 15:33 ` Giacomo M
@ 2016-06-23 16:30 ` Rasmus
2016-06-23 17:42 ` Giacomo M
1 sibling, 1 reply; 5+ messages in thread
From: Rasmus @ 2016-06-23 16:30 UTC (permalink / raw)
To: emacs-orgmode
hymie! <hymie@lactose.homelinux.net> writes:
> In our last episode, the evil Dr. Lacto had captured our hero,
> Giacomo M <jackjackk@gmail.com>, who said:
>> Dear all,
>>
>> I would like to export an org file to either tex or pdf from bash.
>
> I have been using this:
> ${EMACS} $filename -f org-html-export-to-html -f kill-emacs
>
> There are similar functions org-latex-export-to-pdf and
> org-latex-export-to-latex.
I use,
emacs --batch --no-init-file --load EXPORT-CONFIG.el --find-file EXPORT_FILE.org --funcall org-export-to-FORMAT
> I don't think org does plain TeX; I'd be thrilled if it does.
I haven't seen a plain TeX backend.
Rasmus
--
This message is brought to you by the department of redundant departments
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to export to latex from command line?
2016-06-23 16:30 ` Rasmus
@ 2016-06-23 17:42 ` Giacomo M
0 siblings, 0 replies; 5+ messages in thread
From: Giacomo M @ 2016-06-23 17:42 UTC (permalink / raw)
To: emacs-orgmode
Il 23/06/2016 18:30, Rasmus ha scritto:
> hymie! <hymie@lactose.homelinux.net> writes:
>
>> In our last episode, the evil Dr. Lacto had captured our hero,
>> Giacomo M <jackjackk@gmail.com>, who said:
>>> Dear all,
>>>
>>> I would like to export an org file to either tex or pdf from bash.
>> I have been using this:
>> ${EMACS} $filename -f org-html-export-to-html -f kill-emacs
>>
>> There are similar functions org-latex-export-to-pdf and
>> org-latex-export-to-latex.
> I use,
>
> emacs --batch --no-init-file --load EXPORT-CONFIG.el --find-file EXPORT_FILE.org --funcall org-export-to-FORMAT
>
>> I don't think org does plain TeX; I'd be thrilled if it does.
> I haven't seen a plain TeX backend.
>
Thanks.
I'm not able to run a final hook (also not in batch).
Where am I wrong?
#+BEGIN_SRC emacs-lisp
(defun remove-orgmode-latex-labels ()
"Remove labels generated by org-mode"
(interactive)
(let ((case-fold-search nil))
(goto-char 1)
(replace-regexp "\\\\label{sec.*}" "")
)
)
(add-hook 'org-export-latex-final-hook 'remove-orgmode-latex-labels)
#+END_SRC
Best,
Giacomo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-23 17:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-23 13:43 How to export to latex from command line? Giacomo M
2016-06-23 14:48 ` hymie!
2016-06-23 15:33 ` Giacomo M
2016-06-23 16:30 ` Rasmus
2016-06-23 17:42 ` Giacomo M
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).