[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically make a table with 16 columns
From: |
uzibalqa |
Subject: |
Re: Automatically make a table with 16 columns |
Date: |
Fri, 16 Sep 2022 08:12:59 +0000 |
------- Original Message -------
On Friday, September 16th, 2022 at 7:26 AM, Jean Louis <bugs@gnu.support> wrote:
> * uzibalqa uzibalqa@proton.me [2022-09-16 03:17]:
>
> > How can I automatically make a table with 16 columns in the current buffer?
> > The first row has numbers from 1 to 15, the second row from 16 to 31.
> > Followed
> > by an additional two rows with entries that are empty.
> >
> > Would need it to like like this
> >
> > 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
> >
> > 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
> >
> > [16 empty entries]
> >
> > [16 empty entries]
>
>
> (table-insert COLUMNS ROWS &optional CELL-WIDTH CELL-HEIGHT)
>
> C-h f table-insert RET
>
> or user Hyperbole package to invoke following link:
>
> {C-h f table-insert RET}
>
> (progn (insert "\n")
> (table-insert 3 3 4 1))
> +----+----+----+
> | | | |
> +----+----+----+
> | | | |
> +----+----+----+
> | | | |
> +----+----+----+
>
> Once you generate your table, populate it:
>
> +----+----+----+
> | 1 | 2 | 3 |
> +----+----+----+
> | 4 | 5 | 6 |
> +----+----+----+
> | | | |
> +----+----+----+
>
> once you have populated it
I have difficulty knowing how to populate the entries with lisp code. Had a
look at the Elisp Reference
but did not find much information.