From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Latex/Table: horizontal line spanning some cells Date: Sat, 29 Aug 2015 22:24:17 +0530 Message-ID: <5EE5FF1D-465C-4F43-A6CD-636D31EAFC51@agrarianresearch.org> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_474E566A-0B9F-4752-9E76-CF1E48BCFDF2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVjOe-00058D-VJ for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 12:54:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVjOb-0001Wi-P0 for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 12:54:28 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVjOb-0001Wd-Jn for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 12:54:25 -0400 Received: by pabzx8 with SMTP id zx8so93613966pab.1 for ; Sat, 29 Aug 2015 09:54:24 -0700 (PDT) Received: from [192.168.1.33] ([59.176.42.82]) by smtp.gmail.com with ESMTPSA id pg5sm9155397pdb.81.2015.08.29.09.54.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 29 Aug 2015 09:54:23 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list --Apple-Mail=_474E566A-0B9F-4752-9E76-CF1E48BCFDF2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In a table, I would like some horizontal lines that span only some = columns, and not the whole width. My document has to be exported to = latex, in which you need something like \cline{4-5} for a horizontal = line spanning columns 4-5 = (http://tex.stackexchange.com/questions/8549/how-can-i-draw-a-horizontal-l= ine-spanning-only-some-of-the-table-cells = ). =20 How could I do this in org, so that I will get the right latex export. Has anyone done this in org? Vikas --Apple-Mail=_474E566A-0B9F-4752-9E76-CF1E48BCFDF2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii In a table, I would like some horizontal lines that span only = some columns, and not the whole width. My document has to be exported to = latex, in which you need something like \cline{4-5} for a horizontal = line spanning columns 4-5 (http://tex.stackexchange.com/questions/8549/how-can-i-draw-a-ho= rizontal-line-spanning-only-some-of-the-table-cells).
 
How could I do this in org, so that I = will get the right latex export.

Has anyone done this in org?

Vikas

= --Apple-Mail=_474E566A-0B9F-4752-9E76-CF1E48BCFDF2-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Latex/Table: horizontal line spanning some cells Date: Sat, 29 Aug 2015 22:09:11 +0200 Message-ID: <87egilq2l4.fsf@gmx.us> References: <5EE5FF1D-465C-4F43-A6CD-636D31EAFC51@agrarianresearch.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVmRI-0005Jv-RL for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 16:09:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVmRF-0001K0-LF for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 16:09:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:42361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVmRF-0001JL-F5 for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 16:09:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZVmRB-0005gw-Kk for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 22:09:17 +0200 Received: from 46.166.188.219 ([46.166.188.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Aug 2015 22:09:17 +0200 Received: from rasmus by 46.166.188.219 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Aug 2015 22:09:17 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Vikas Rawal writes: > In a table, I would like some horizontal lines that span only some > columns, and not the whole width. My document has to be exported to > latex, in which you need something like \cline{4-5} for a horizontal > line spanning columns 4-5 For bookstabs you'd use \cmidrule(·){·-·}. AFAIK, there's no support for this. There's column groups, but they will insert vertical lines, which is arguably (much) less interesting. Perhaps we would add support for other groupings as well, e.g. | / | ( | ) | | | | a | b | c | |---+---+---+---| It would also be nice to add multicolumns. > How could I do this in org, so that I will get the right latex export. For now you'd have to go with a filter or maybe use other means to produce a table. In the past, when I have needed more complex tables I've usually used a mix of Hmisc in R, babel and some Emacs-lisp to clean it up... Not so nice. > Has anyone done this in org? Undoubtedly. Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Latex/Table: horizontal line spanning some cells Date: Sun, 30 Aug 2015 06:50:20 +0530 Message-ID: <54E0ABA2-D180-4C45-9EB2-4A8ADB90DE8A@agrarianresearch.org> References: <5EE5FF1D-465C-4F43-A6CD-636D31EAFC51@agrarianresearch.org> <87egilq2l4.fsf@gmx.us> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVrIM-000582-8R for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 21:20:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVrIJ-0007kj-4w for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 21:20:30 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:36521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVrII-0007kd-R0 for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 21:20:27 -0400 Received: by pacgr6 with SMTP id gr6so3613313pac.3 for ; Sat, 29 Aug 2015 18:20:26 -0700 (PDT) In-Reply-To: <87egilq2l4.fsf@gmx.us> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: org-mode mailing list >=20 > For now you'd have to go with a filter or maybe use other means to = produce > a table. In the past, when I have needed more complex tables I've = usually > used a mix of Hmisc in R, babel and some Emacs-lisp to clean it up... = Not > so nice. At this stage, I think I will just manually fix the final latex export. = I do not know enough Emacs-lisp to be able to do this. I have an org file (with a lot of embedded R and by now a lot of = embedded LaTeX) producing a final pdf for a book, which goes to press in = three days. I would be sorry if there is this little thing that I am = unable to do in org :(. Sometime back, Eric Schulte had very kindly shared code that creates = multicolumn cells in latex export. I have used it extensively. I think = that should be integrated into org. In the meanwhile, I hope somebody can come up with a way to insert = \cmidrule in tables before my next project :). Thank you, and thank you all. Vikas=