From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "Fraga, Eric" <e.fraga@ucl.ac.uk>
Cc: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Exporting to ODT with links to radio targets
Date: Sun, 30 Jun 2019 14:28:56 -0400 [thread overview]
Message-ID: <CAJ51ETpJQ8WNiFEaL2_7snRvfY_cXjOGZLyWb7dTbZuBPEgG7g@mail.gmail.com> (raw)
In-Reply-To: <87o92kl2ve.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 1799 bytes --]
I wasn't able to reproduce that issue, for me the target just doesn't show
up. you can lightly redefine the behavior of the export functions like this:
#+BEGIN_SRC emacs-lisp
(cl-letf (((symbol-function 'org-odt-target) (lambda (target contents info)
(org-element-property :value target))))
(let ((hfy-user-sheet-assoc nil))
(org-open-file-with-system (org-export-to-file 'odt "test4.odt"))))
#+END_SRC
you could also use around advices for this.
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Wed, Jun 26, 2019 at 12:43 PM Fraga, Eric <e.fraga@ucl.ac.uk> wrote:
> Hello all,
>
> I need to share a document I have been writing in org which I would
> normally export to PDF (via LaTeX, and which works very well). To
> share, I am exporting to ODT. In general, the export is good enough for
> my collaborator to make changes to the text (with track changes enabled
> in whatever word processor he uses). The exception is that links to
> radio targets get exported to look like
>
> "some text OrgXref.org7b3090d more text"
>
> where the Orgxxx is where I expected the text which would link to the
> radio target. I hope I am making sense...
>
> Is there an easy way to tell org to simply output the radio link text?
>
> I have written an export filter to remove the extraneous XML stuff
> around the text but this seems like overkill so I wonder if I missed
> something simple. No worries if not!
>
> Many thanks.
>
> PS - radio targets are brilliant for long documents without needing to
> create a full index.
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-379-g1b74ae
>
[-- Attachment #2: Type: text/html, Size: 2573 bytes --]
prev parent reply other threads:[~2019-06-30 18:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-26 16:37 Exporting to ODT with links to radio targets Fraga, Eric
2019-06-30 18:28 ` John Kitchin [this message]
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=CAJ51ETpJQ8WNiFEaL2_7snRvfY_cXjOGZLyWb7dTbZuBPEgG7g@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=e.fraga@ucl.ac.uk \
--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).