emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Karl Eichwalder <ke@gnu.franken.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: remote reference
Date: Fri, 15 Jan 2010 10:38:10 +0100	[thread overview]
Message-ID: <2ACD6FB3-B415-4AE7-8D62-9450922514D0@gmail.com> (raw)
In-Reply-To: <bad25ddd6b68f6102fb1fee7bd5b825f.squirrel@www.franken.de>


On Jan 15, 2010, at 9:49 AM, Karl Eichwalder wrote:

> I do not understand how I can reference tables (only the first one?)
> in remote files.  The manual says:
>
> Remote references
> .................
>
> You may also reference constants, fields and ranges from a different
> table, either in the current file or even in a different file.  The
> syntax is
>
>     remote(NAME-OR-ID,REF)
>
> where NAME can be the name of a table in the current file as set by a
> `#+TBLNAME: NAME' line before the table.  It can also be the ID of an
> entry, even in a different file, and the reference then refers to the
> first table in that entry.  REF is an absolute field or range  
> reference
> as described above for example `@3$3' or `$somename', valid in the
> referenced table.
>
> = 
> = 
> ======================================================================
>
> remote(FILENAME,REF) does not seem to work.  All the tutorials I
> found are either too basic or too advanced or too general.


For tables in a different file, the remote table must be the first  
table in an outline node, and the outline node must have an ID property.

First configure org-modules and turn on the id module.
Then prepare your target file like this

* here is my table
   :PROPERTIES:
   :ID: DDE64190-0C3D-4088-A303-DA3B60ECEB48
   :END:

    and here we have the table.

    |...|...|...|


The ID can be an arbitrary string, but then you must
make sure yourself that it is globally unique.  Or you
can have Org-mode make the ID for you.

Hope this gets you on the way.

- Carsten


>
>
> -- 
> Karl Eichwalder
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  parent reply	other threads:[~2010-01-15  9:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15  8:49 remote reference Karl Eichwalder
2010-01-15  9:21 ` Sébastien Vauban
2010-01-15  9:59   ` Sébastien Vauban
2010-01-15  9:38 ` Carsten Dominik [this message]
2010-01-15 10:29   ` Giovanni Ridolfi
2010-01-15 15:55     ` Carsten Dominik
2010-01-18  8:53       ` Giovanni Ridolfi
2010-01-28 17:34         ` Carsten Dominik
2010-05-11 19:16   ` Karl Eichwalder
2010-05-12  6:16     ` Carsten Dominik
2010-05-12 11:26       ` Karl Eichwalder
2010-05-12 13:06         ` Carsten Dominik
2010-12-11 14:42           ` Karl Eichwalder
2010-12-11 14:46             ` Carsten Dominik

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=2ACD6FB3-B415-4AE7-8D62-9450922514D0@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ke@gnu.franken.de \
    /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).