emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* FR: broken links and footnote references
@ 2011-02-23 18:48 Samuel Wales
  2011-03-14  3:02 ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2011-02-23 18:48 UTC (permalink / raw)
  To: emacs-orgmode

To summarize, you don't know the URL until you post.  So you have to
tell org what the base URL should be for <<...>> anchors if they lie
outside the exported region.

Like this.

  #+BASE-URL: http://thekafkapandemic.blogspot.com/my-post

Is there a way to do that?

For footnotes, I think simply including the footnote would work.  Even
though the definition is outside of the region that is being exported.

Please consider both of these to be feature requests.  :)

Samuel


-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FR: broken links and footnote references
  2011-02-23 18:48 FR: broken links and footnote references Samuel Wales
@ 2011-03-14  3:02 ` Samuel Wales
  2011-03-24  8:06   ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2011-03-14  3:02 UTC (permalink / raw)
  To: emacs-orgmode

Example of what I think would work:

  * top
    * first document -- this is exported and we get the URL when we post
      * <<anchor in first document>>
go to [[anchor in second document]]
    * second document -- this is exported and we get the URL when we post
#+URL-FOR-EXTERNAL-ANCHORS http://example.org/first-document.html
      * <<anchor in second document>>
go to [[anchor%20in%20first%20document][anchor in first document]]

Comments are very welcome.  Is the problem clearly explained here?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FR: broken links and footnote references
  2011-03-14  3:02 ` Samuel Wales
@ 2011-03-24  8:06   ` Samuel Wales
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2011-03-24  8:06 UTC (permalink / raw)
  To: emacs-orgmode

Not sure if this thread was clear enough to make it interesting.

I am suggesting that when you export a subtree or a region, and you
have a link to an anchor (e.g. a link to a <<...>>>), and that link is
broken, because the referent is outside of the subtree or region, we
can do this:

  Get the link referent normally (just as we do in the .org file)
  Append it to a URL provided in a property for the subtree that contains it

That way, you can export one subtree as a blog entry, and another
subtree as a blog entry, and if links point to the other subtree, they
will get exported properly -- as long as you supply the base URL.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-24  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 18:48 FR: broken links and footnote references Samuel Wales
2011-03-14  3:02 ` Samuel Wales
2011-03-24  8:06   ` Samuel Wales

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).