From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Best way to template a big table Date: Thu, 12 Dec 2019 10:03:13 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000094b446059983e267" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54159) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifQw3-0007d3-Ok for emacs-orgmode@gnu.org; Thu, 12 Dec 2019 11:03:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifQw2-00034C-Hw for emacs-orgmode@gnu.org; Thu, 12 Dec 2019 11:03:27 -0500 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:32797) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifQw2-00031e-8g for emacs-orgmode@gnu.org; Thu, 12 Dec 2019 11:03:26 -0500 Received: by mail-lf1-x132.google.com with SMTP id n25so2117884lfl.0 for ; Thu, 12 Dec 2019 08:03:26 -0800 (PST) In-Reply-To: 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: Simon Butler Cc: emacs-orgmode Mailinglist --00000000000094b446059983e267 Content-Type: text/plain; charset="UTF-8" I just figured out that this #+BEGIN_SRC emacs-lisp :results table '((H1 H2 H3) (text11 text12 text13) (text21 text22 text23) (... ... ...) (textN1 textN2 textN3)) #+END_SRC #+RESULTS: | H1 | H2 | H3 | | text11 | text12 | text13 | | text21 | text22 | text23 | | ... | ... | ... | | textN1 | textN2 | textN3 | is probably a better way all around, i.e., "best practice." If any one knows how to get the horizontal lines added in. . . . On Thu, Dec 12, 2019 at 5:29 AM Simon Butler wrote: > Hi > > On 2019-12-12 07:05, Lawrence Bottorff wrote: > > I've got a big table that I would like to create a template for, i.e., > > the rows and columns and the myriad | and -. Then a key chord would > > produce it in an org file ready for values to be entered. I've seen > > the post-9.2 tempo-define-template, but that looks more suited to > > smaller things. There is Emacs Skeleton, but I'd like to ask people > > who perhaps have faced this issue before for a "best practice" answer. > > > > LB > > Not sure about 'best practice', but yasnippet works well. > > Simon > > > --00000000000094b446059983e267 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I just figured out that this=C2=A0

#+BEGIN_SRC emacs-lisp :results table
'((H1 H2 = H3) (text11 text12 text13) (text21 text22 text23) (... ... ...) (textN1 tex= tN2 textN3))
#+END_SRC

#+RESULTS:
| H1 =C2=A0 =C2=A0 | H2 =C2= =A0 =C2=A0 | H3 =C2=A0 =C2=A0 |
| text11 | text12 | text13 |
| text21= | text22 | text23 |
| ... =C2=A0 =C2=A0| ... =C2=A0 =C2=A0| ... =C2=A0 = =C2=A0|
| textN1 | textN2 | textN3 |

is probab= ly a better way all around, i.e., "best practice." If any one kno= ws how to get the horizontal lines added in. . . .

On Thu, Dec = 12, 2019 at 5:29 AM Simon Butler <simo= n@floss.nu> wrote:
Hi

On 2019-12-12 07:05, Lawrence Bottorff wrote:
> I've got a big table that I would like to create a template for, i= .e.,
> the rows and columns and the myriad | and -. Then a key chord would > produce it in an org file ready for values to be entered. I've see= n
> the post-9.2 tempo-define-template, but that looks more suited to
> smaller things. There is Emacs Skeleton, but I'd like to ask peopl= e
> who perhaps have faced this issue before for a "best practice&quo= t; answer.
>
> LB

Not sure about 'best practice', but yasnippet works well.

Simon


--00000000000094b446059983e267--