emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: Simon Butler <simon@floss.nu>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Best way to template a big table
Date: Thu, 12 Dec 2019 10:03:13 -0600	[thread overview]
Message-ID: <CAFAhFSVFuNiM=_utG=X0QDJj9x79-N7Qo2MsrOy8VGRhoOUAww@mail.gmail.com> (raw)
In-Reply-To: <e1ef4592-63f4-1189-02b8-5f16fb722505@floss.nu>

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

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 <simon@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 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
>
>
>

[-- Attachment #2: Type: text/html, Size: 1696 bytes --]

  reply	other threads:[~2019-12-12 16:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-12  6:05 Best way to template a big table Lawrence Bottorff
2019-12-12 11:26 ` Simon Butler
2019-12-12 16:03   ` Lawrence Bottorff [this message]
2019-12-12 18:29     ` Berry, Charles
2019-12-13  1:01       ` Leslie Watter

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='CAFAhFSVFuNiM=_utG=X0QDJj9x79-N7Qo2MsrOy8VGRhoOUAww@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=simon@floss.nu \
    /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).