From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sRq1LuPK42C2bwAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 05:15:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kN3qKePK42BTZQAAB5/wlQ (envelope-from ) for ; Tue, 06 Jul 2021 03:15:47 +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 DFE4122CD9 for ; Tue, 6 Jul 2021 05:15:46 +0200 (CEST) Received: from localhost ([::1]:35048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0bYn-00031t-LX for larch@yhetil.org; Mon, 05 Jul 2021 23:15:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0bYN-00031U-BW for emacs-orgmode@gnu.org; Mon, 05 Jul 2021 23:15:19 -0400 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:41616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0bYK-00073J-Rm for emacs-orgmode@gnu.org; Mon, 05 Jul 2021 23:15:19 -0400 Received: by mail-vs1-xe2a.google.com with SMTP id m12so2307222vst.8 for ; Mon, 05 Jul 2021 20:15:16 -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 :cc; bh=bMo+9t/0TlUMzASy7hRzUEXRX4lXn6Wjz63r6SoQnog=; b=Ax7HI/TNumT8mI/BZqC2MyqOqY7OtfkQWvHEfwcRlrN7pO44OTK3w2r/AhvQcFJLJ5 eOjC8GYZPQ/n0EcdYr0lYxZzXCfPLy0ho+7hkJxrUrACfaNu44UaD80b5gqfy8dKXILB 4076k4gDIxP5bhUSNMdpL5HiZh3WesNM+6epK++fnGe0Wbb7EqoQtCsghQ85TTPJZtcw Rf1hIohVHnmk9uDeL+zmWAQADCoCSy2OUAcrv14Izjfk5HelXRa4iOqy9zUKZFENALhy Hby/ob5LF6pZQ78HUwJXTqEBazU0Kk9EThF324tbMNtx3I0+LsonnCddDIv7S7mZkTzR V7CA== 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:cc; bh=bMo+9t/0TlUMzASy7hRzUEXRX4lXn6Wjz63r6SoQnog=; b=Jj7qIzorBK17KJTe9p2vatksSrLVJOyi/X9cBHfDjPdBLiSvEXjMrDCPEqBaTdcvxT rl2nWzXoOeseD1iv6GyAIz4X7A4eKr/d/ybKgq6jkhwbwz+T960CYJGICd5pJiUPv4Fq sTt9NKk/4IxOapEz/bbku0kPPjDMnxpURZY+553MliuqZL1cDlRq9Ud9ibDhLXQLfb5t 3J4ksou6BdfsBBHReULNqxfRucOYy14KOHdXjxMuG2sJBQ0UtHwk4L/TF5YRxbzJWYug eQfsFo+VFLKqCqA+dQbYZij0/pt8ylzzlmkg4mDegeiCXGESVUX0t9Y7zj/btgaR9+A5 2a4g== X-Gm-Message-State: AOAM531Qff9hsoUPxArz82ptBOKtdwaLreUkkPz+Gw4XkluKyI5VF0Jt ZIvObdGVmpE0KLV4Ud8zkYYCNlTf8N9u363brvQ= X-Google-Smtp-Source: ABdhPJxxHwd5dyHHK7IqBoD2cm5bG6WN4kcLEN6mj9GySPdTyLvleGWUGtGKqQedcTXB4NlgTqiki8zWQAKirw8yaYg= X-Received: by 2002:a67:b906:: with SMTP id q6mr12736420vsn.33.1625541315921; Mon, 05 Jul 2021 20:15:15 -0700 (PDT) MIME-Version: 1.0 References: <87r1gcbdnb.fsf@gmail.com> In-Reply-To: <87r1gcbdnb.fsf@gmail.com> From: Matt Price Date: Mon, 5 Jul 2021 23:15:04 -0400 Message-ID: Subject: Re: convert subtree or nested list to table To: Tim Cross Content-Type: multipart/alternative; boundary="000000000000b40b9405c66bd448" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=moptop99@gmail.com; helo=mail-vs1-xe2a.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: , Cc: Org Mode 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=1625541347; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=bMo+9t/0TlUMzASy7hRzUEXRX4lXn6Wjz63r6SoQnog=; b=CbUo2UAezgSWkVC/XTNwG7aQucPu7C+aHfxAG9jcqOwUf/yvK5+KiFeP7ECVUg2QlPRt++ DUr7kMeEyGnmaBFXagOMhJ3IE+OYAGCH4/Ed1INqmmt9qXQtVHMiMR7AyEyesPTCnZ0i7D vbeZXuClGaJFuwvk3wgibH2KPzOhUkSQYEIsaB660o4iSIcGEXHdJzNZ4nHKsjzmhm4P0C h09/5loinzC4fuAKFr8bMdguJDq1kZ+9bSTzaGgV9h9kyY/snnI9L2Pb7mJTZHOz20hVm7 /0m5BQ1ypgO5F7XTtCkrVUXnrC7RDVU6xF7bcM8DUfibPHNjnkOQCxY8kBCI4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625541347; a=rsa-sha256; cv=none; b=jVR4IDz7KF3jX5OFHuxxsy3Duz8CVVJOVsZPlb7FyR9NZcPGz2vbRGjZU0XYZVjQaxnGz9 zY9k+tokNPiCm+TdrbTGhUCjta7CSpECBmxl0Oho/pr9HezYOTQPDc9NJe26o5Gmcud+y/ NYFEiJ1z4qXTEjcrVeYc/DEgfkDWtLydDMYaUFbwct4sTWPCYSer4kTSvwLggUNvwFpcOR lSuij6Z4RNufDjB2TGr8epwu4ji9YHXv5U5TrZF/0qx6zIzy7tWBt9HPs9vMlZQDtlrjIY eUsHEeW7TGSR8vBAB3nwOl5UZR1+X8WFz+lEVVnWpR0AbQ+lq5LFC+BUtrohqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Ax7HI/TN"; 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="Ax7HI/TN"; 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: DFE4122CD9 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: qwfBeg1lhAYB --000000000000b40b9405c66bd448 Content-Type: text/plain; charset="UTF-8" Thanks for the thoughts, Tim. My preference is generally to work in HTML, and in fact if I had a decent platform to work on I could just use a container class and grid or flex layouts, but the learning management system at my institution strips out most styling information when HTML is uploaded, so I will probably need a real table. I odn't think I could really handle doing this in latex. I am a terrible latex user! On Mon, Jul 5, 2021 at 9:27 PM Tim Cross wrote: > > Matt Price writes: > > > I have to write a number of text-heavy documents which need to be > delivered as tables with wrapped paragraphs in most cells. Working directly > in > > table format is pretty arduous and uncomfortable. Has anyone ever > written a function to accept a list or subtree as input and process it into > a table? > > > > If anyone has done something similar, I'd love some tips! > > No, have not done that. What formats do you need to export the documents > in? > > I ask because if all you need to produce is Latex derived documents > (i.e. PDF, ps etc) and you do plan to write a function yourself to do > this, I would work backwards. Latex tables are not very good for your > use case, but Latex can support what you want to do. Most of the Latex > table packages are not terribly good at formatting tables containing > paragraphs of data. They will typically require lots of hand tweaking to > get the formatting looking right. Getting the right latex package to > support what you need to do will make the function you will need to > write a lot easier. Therefore, I would start with a search of the latex > package archives to find the right package and then write an elisp > function that generates a latex block which formats your subtree using > that package. You probably want something which will format a table with > minipage or similar environments in the cells. > > -- > Tim Cross > > --000000000000b40b9405c66bd448 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the thoughts, Tim.

My preference is generally to work in HTML, and in fact if I had a decent= platform to work on I could just use a container class and grid or flex la= youts, but the learning management system at my institution strips out most= styling information when HTML is uploaded, so I will probably need a real = table.=C2=A0

I odn't think I could really= handle doing this in latex. I am a terrible latex user!


On Mon, Jul 5, 2021 at 9:27 PM Tim Cross <theophilusx@gmail.com> wrote:

Matt Price <mopt= op99@gmail.com> writes:

> I have to write a number of text-heavy documents which need to be deli= vered as tables with wrapped paragraphs in most cells. Working directly in<= br> > table format is pretty arduous and uncomfortable.=C2=A0 Has anyone eve= r written a function to accept a list or subtree as input and process it in= to a table?
>
> If anyone has done something similar, I'd love some tips!

No, have not done that. What formats do you need to export the documents in?

I ask because if all you need to produce is Latex derived documents
(i.e. PDF, ps etc) and you do plan to write a function yourself to do
this, I would work backwards. Latex tables are not very good for your
use case, but Latex can support what you want to do. Most of the Latex
table packages are not terribly good at formatting tables containing
paragraphs of data. They will typically require lots of hand tweaking to get the formatting looking right. Getting the right latex package to
support what you need to do will make the function you will need to
write a lot easier. Therefore, I would start with a search of the latex
package archives to find the right package and then write an elisp
function that generates a latex block which formats your subtree using
that package. You probably want something which will format a table with minipage or similar environments in the cells.

--
Tim Cross

--000000000000b40b9405c66bd448--