emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-ref exports nicely to html but not to odt
Date: Sat, 05 Jan 2019 10:21:43 +0000	[thread overview]
Message-ID: <8736q7pfpk.fsf@gmail.com> (raw)
In-Reply-To: <87d0pbfq24.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 05 Jan 2019 09:48:19 +0100")

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

I use the following (attached) script to convert LaTeX files (usually
generated by org) to docx.  It sometimes works well, or at least well
enough for my uses.  Maybe you can adapt it to your needs.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: tex2docx.sh --]
[-- Type: text/x-sh, Size: 576 bytes --]

#!/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/synced/share/texmf/bibtex/bib/bibliography.bib --csl=${CSL} --filter pandoc-citeproc ${BASE}.tex -o ${BASE}.docx
#pandoc --bibliography=/home/ucecesf/share/texmf/bibtex/bib/papers.bib --csl=/home/ucecesf/synced/share/citation.styles/elsevier-with-titles.csl --filter pandoc-citeproc ${BASE}.tex -o ${BASE}.docx

  reply	other threads:[~2019-01-05 10:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-04 17:08 org-ref exports nicely to html but not to odt Uwe Brauer
2019-01-04 19:27 ` John Kitchin
2019-01-04 20:42   ` Uwe Brauer
2019-01-04 20:50     ` John Kitchin
2019-01-04 21:00 ` Ken Mankoff
2019-01-04 21:37   ` Uwe Brauer
2019-01-04 21:52     ` Ken Mankoff
2019-01-04 22:06       ` Uwe Brauer
2019-01-04 22:34         ` John Kitchin
2019-01-05  8:48           ` Uwe Brauer
2019-01-05 10:21             ` Eric S Fraga [this message]
2019-01-05 15:59               ` Uwe Brauer
2019-01-05 16:48                 ` Eric S Fraga

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=8736q7pfpk.fsf@gmail.com \
    --to=esflists@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 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).