From mboxrd@z Thu Jan 1 00:00:00 1970 From: "leho.yann@gmail.com" Subject: Row reference for :table-line-pos in a capture template. Date: Wed, 13 Apr 2016 17:37:50 +0200 Message-ID: <1460561870.20176.3.camel@yann-fixe> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-sx9cmNkDf/tQPRN94kYw" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqMrj-0006Ru-17 for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 11:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqMrf-0003Ct-RS for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 11:38:02 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqMrf-0003Cp-Gl for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 11:37:59 -0400 Received: by mail-wm0-x229.google.com with SMTP id v188so181796755wme.1 for ; Wed, 13 Apr 2016 08:37:58 -0700 (PDT) Received: from [192.168.1.68] (104.253.192.77.rev.sfr.net. [77.192.253.104]) by smtp.googlemail.com with ESMTPSA id d123sm28763007wmd.9.2016.04.13.08.37.56 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2016 08:37:56 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-sx9cmNkDf/tQPRN94kYw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit hello, I'm trying to use :table-line-pos in a capture template. I want add new line just after the third hline in the table. I try "III" "III+" "III+1" "4"... Any ideas? this is the line in my org-capture-templates : ("X" "Test" table-line (file+headline "/media/yann/crypt/gtd/collecte/projets/test.org" "table") "| | | | |%t | |" :table-line-pos "4") and this is my files test.org : * table |---+--------+-------+-------------+--------------------+---| | | Somme | Objet | Compte | Date | | |---+--------+-------+-------------+--------------------+---| | _ | Total | | | | | | # | 140.00 | | | | | |---+--------+-------+-------------+--------------------+---| | | 60 | test2 | 03 | <2016-04-13 mer.> | | | | 50 | test | 12040538001 | <2016-03-12 sam.> | | | | 10 | 10 | 13221312 | <2016-02-11 jeu.> | | |---+--------+-------+-------------+--------------------+---| #+TBLFM:$Total=vsum(@III..@IIII);%.2f Thank you. Regards, Yann --=-sx9cmNkDf/tQPRN94kYw Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit hello,
I'm trying to use :table-line-pos in a capture template.
I want add new line just after the third hline in the table.
I try "III" "III+" "III+1" "4"... Any ideas?

this is the line in my org-capture-templates :
("X" "Test" table-line (file+headline "/media/yann/crypt/gtd/collecte/projets/test.org" "table") "| | | | |%t | |" :table-line-pos "4")

and this is my files test.org :

* table
|---+--------+-------+-------------+--------------------+---|
|   |  Somme | Objet |      Compte | Date               |   |
|---+--------+-------+-------------+--------------------+---|
| _ |  Total |       |             |                    |   |
| # | 140.00 |       |             |                    |   |
|---+--------+-------+-------------+--------------------+---|
|   |     60 | test2 |          03 | <2016-04-13 mer.>  |   |
|   |     50 | test  | 12040538001 | <2016-03-12 sam.>  |   |
|   |     10 | 10    |    13221312 | <2016-02-11 jeu.>  |   |
|---+--------+-------+-------------+--------------------+---|
#+TBLFM:$Total=vsum(@III..@IIII);%.2f

Thank you.
Regards,

Yann --=-sx9cmNkDf/tQPRN94kYw--