emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] exporting zotxt or orgref links to HTML and ODF


From: Eric S Fraga
Subject: Re: [O] exporting zotxt or orgref links to HTML and ODF
Date: Tue, 27 Jan 2015 08:25:35 +0000
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Monday, 26 Jan 2015 at 11:29, Matt Price wrote:

[...]

> My question: does anyone yet have a workflow that lets them export directly
> to HTML or ODT?

The following is for MS Word output, not ODT, but you can of course read
in Word files in Libreoffice and save as ODT if desired.

Although I do strive to only have to work in org (+ LaTeX), I do
sometimes have to generate Word files, especially for conference
publications.  In this case, I still use org but I generate the final
document using org -> LaTeX and then use pandoc to get me the doc file
using a shell script that looks like this:

--8<---------------cut here---------------start------------->8---
#!/bin/sh -f
BASE=$(basename $1 .tex)
CSL="/home/ucecesf/synced/share/citation.styles/acm-siggraph.csl"
if [ -f default.csl ]; then
    CSL="default.csl"
fi
echo "Converting " $BASE.tex " to " $BASE.docx " using bib style " $CSL
pandoc --bibliography=/home/ucecesf/share/texmf/bibtex/bib/papers.bib 
--csl=${CSL} --filter pandoc-citeproc ${BASE}.tex -o ${BASE}.docx
--8<---------------cut here---------------end--------------->8---

The key is pandoc with bib styles.  The scripts defaults to using an ACM
SIGGRAPH style but will use a "default" style if present in the current
directory.

Although you say your colleagues do not use BiBTeX, it does not stop you
from using it within org and then exporting the result...

With org exporting LaTeX fragments as images (hence my recent emails
about dvipng...), I get equations (on the printed page) and bibliography
without having to suffer using Word...

Good luck!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org 
release_8.3beta-726-gd34b80.dirty



reply via email to

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