From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CF6AFPcZ5mDaWgAAgWs5BA (envelope-from ) for ; Wed, 07 Jul 2021 23:17:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KJkzEPcZ5mAaRQAAbx9fmQ (envelope-from ) for ; Wed, 07 Jul 2021 21:17:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C08CB1D933 for ; Wed, 7 Jul 2021 23:17:42 +0200 (CEST) Received: from localhost ([::1]:40646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1EvN-00046s-SL for larch@yhetil.org; Wed, 07 Jul 2021 17:17:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1Eug-00044P-FA for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 17:16:58 -0400 Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]:42915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1Eue-0004cK-Ms for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 17:16:58 -0400 Received: by mail-vs1-xe32.google.com with SMTP id f7so906778vsa.9 for ; Wed, 07 Jul 2021 14:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=s2wAaWGTsRc7+W1hMlmzo8j8Ydz9/fO5eVt5ZjCOfB0=; b=vTQ8Qq1QEnlAVO78PBikhoCnV1mF2l28IYpOAd5mETK83KDpENyj/WUpMdDgPytp6h r9BKIotCU1JX/P9y0zW+3YUQIhqsOTcUukuDyRZqujiW+lQtboEftspqROGeMldswBMU KZSfLOBJ7nkOTKayyBiTvAmB+tFodMN0HlY4zeAMNfN0rQ5QgITWZOX/hiPT3Lx4M2k4 xbsUUJsPNpCO9oF3upsKcQ3RW+B1Rf4jcu4ooRyybc+6TrAbPvrod5ai3zvip15Yrydg XiFHkinf52IbFwOFwCF1fNef/cGjCxGq8g0lsVnQflLbRnHGiVPloXjSIi2Ndk21kHlv BvvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=s2wAaWGTsRc7+W1hMlmzo8j8Ydz9/fO5eVt5ZjCOfB0=; b=DyRrpXuAYGUD/R6CQTiSX6m5JLai83d1fRyFov3MtHi67Wn0JGGt1K6dGwkstnEriT ybwZAwJYhl2IOBragtNwoax6KM5a4KpIjIZTmOcRwR9K5jqZQcnr6julewDJHwvjrSZr z4rvllSAIdtpibQ6p+ZpvbJze1laaTgAvffkPA775bkWQr/sKLDeQrZM83h9BitR1nHH v5Xq/jkH+msgSYHbZaMt9EnwGxPALKYxQY3f5ev2OtgbuzIy1i49q5uZ9/rspZfUUEM7 2RhczaglTfZ65gqSjIKBrOOZcfcJdfhnQcFln9YKj6iTvs4O3J9WHramEgEJfvidCbY1 YgtA== X-Gm-Message-State: AOAM531nbs69RG2I+rqNZl5wQ5TPVOEwdPnP/Ie5ejuH6DsMEGqE6iTl nwYV5IKWFopnBznopDwjUGYXmeqoLOjrjLKwxh4= X-Google-Smtp-Source: ABdhPJzUOsXwbE0b5ahxbu569EQJu/Ilmm1meD6RRjJHzHYlud5ry7lN20KAqBn0H5to8KnDvX/UFrl0ondYy32V50o= X-Received: by 2002:a67:6302:: with SMTP id x2mr11145021vsb.16.1625692615170; Wed, 07 Jul 2021 14:16:55 -0700 (PDT) MIME-Version: 1.0 References: <87sg0sttrr.fsf@posteo.net> <8735srsirf.fsf@posteo.net> In-Reply-To: <8735srsirf.fsf@posteo.net> From: Matt Price Date: Wed, 7 Jul 2021 17:16:43 -0400 Message-ID: Subject: Re: convert subtree or nested list to table To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , Org Mode Content-Type: multipart/alternative; boundary="000000000000d760c105c68f0e92" Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=moptop99@gmail.com; helo=mail-vs1-xe32.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625692662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=s2wAaWGTsRc7+W1hMlmzo8j8Ydz9/fO5eVt5ZjCOfB0=; b=G+VSoyPhU78DhfChaF4kHdQlV0P7nujKmHiQJxyyee6gPdFfMWUENBiUDxGIO52XH7XeFO jTFFdg98QCHRTu7vV4RzIT0UFIWGDww6qBeO/MQDQwYIazI1KIgMj/lI8OytedrmhOZBdG F4YIfCzq0bM7BBdiOWYgFEP4rk4/sSesP3b9vgRjHbgwrhdQfxFFNyZS7tONRk+xgCmBkV sY8IVXBdGi+A8v3bvRsJfKHAwNTASR3To+TPE9PVeT2CoQsM/rc/q/2GemBFvdNJUjPgvU VhptT87WAsWfUqkRNiV4TEQ6lclDYgkZBrbeIc7OTCCUPJ1aCxeszjyooImgfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625692662; a=rsa-sha256; cv=none; b=hnzds4TRJRerv1+szYdg4rzdNDJhvqRLgL8k7cUMyFRDBlD0gmT3jzanl8y0DcI7u7h6m2 QZMM1kL/99XGsGaO+187LHOglZtr5RseZ2rsiTN9HttQzP7CS1FhlhSpGHfNnKnKjD8vIS zkDjaKjUtoCjI2aENnrCDWNQQ4XACLBU/T54XzatzWRVU/ZobwTjqEWC6KmZLbiw0Pg8yl b/jCIxdcEVoV4Acy6ZJVJXEgR7hvNoqkNPKWnn9wiDY7wbzceXbp3gn5wbdGmCbI6C5TfK Xm1A2DPvrYNlCAkeRR6nHBje7geD/g1q4ZZqQMpQW79QOSOEtDv/0DAeTCtuRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=vTQ8Qq1Q; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=vTQ8Qq1Q; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C08CB1D933 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: SOscTUrUhb49 --000000000000d760c105c68f0e92 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable thank you Juan Mnauel. I'm testing it out, but I do wonder if I would really rather work with lists and some CSS! On Tue, Jul 6, 2021 at 8:56 AM Juan Manuel Mac=C3=ADas wrote: > Hi Matt, sorry for the slow reply... > > Matt Price writes: > > > I'd love to try that, thanks. I think it would be really helpful. > > Much appreciated! > > Some previous caveats: > > - *The code is very raw*. I wrote it almost as a "proof of concept" for > my personal use, therefore it is quite improvable. In any case, it > works (but i don't know if it will help you get what you want...). > > - The attached example is optimized to export to LaTeX. Use the tabularx > environment, which is ideal for tables with a lot of textual content. > > - As for the code, there are two basic functions: > `my-org/edit-table-cell' and > `my-org/kill-edit-table-cell-buffer-and-save'. To edit an empty cell, > you have to write something in that cell first. > > - The basic idea is that within each cell, the content is a single line > (unfilled). In the edit buffer, the content is filled. There are two > macros to indicate a line break and a paragraph end: {{{nl}}} and > {{{par}}}. In the edit buffer you can put line breaks and white lines, > but all of that is lost inside the cell once saved (all is a single > line), so those macros are needed to indicate line or paragraph breaks > (in LaTeX). > > Best regards, > > Juan Manuel > > --000000000000d760c105c68f0e92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
thank you Juan Mnauel. I'm testing it out, but I do wo= nder if I would really rather work with lists and some CSS!

On Tue, Jul = 6, 2021 at 8:56 AM Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> wrote:
Hi Matt, sorry for the slow reply...
Matt Price writes:

> I'd love to try that, thanks. I think it would be really helpful. =
> Much appreciated!

Some previous caveats:

- *The code is very raw*. I wrote it almost as a "proof of concept&quo= t; for
=C2=A0 my personal use, therefore it is quite improvable. In any case, it =C2=A0 works (but i don't know if it will help you get what you want...= ).

- The attached example is optimized to export to LaTeX. Use the tabularx =C2=A0 environment, which is ideal for tables with a lot of textual content= .

- As for the code, there are two basic functions:
=C2=A0 `my-org/edit-table-cell' and
=C2=A0 `my-org/kill-edit-table-cell-buffer-and-save'. To edit an empty = cell,
=C2=A0 you have to write something in that cell first.

- The basic idea is that within each cell, the content is a single line
=C2=A0 (unfilled). In the edit buffer, the content is filled. There are two=
=C2=A0 macros to indicate a line break and a paragraph end: {{{nl}}} and =C2=A0 {{{par}}}. In the edit buffer you can put line breaks and white line= s,
=C2=A0 but all of that is lost inside the cell once saved (all is a single<= br> =C2=A0 line), so those macros are needed to indicate line or paragraph brea= ks
=C2=A0 (in LaTeX).

Best regards,

Juan Manuel

--000000000000d760c105c68f0e92--