From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark A. Hershberger" Subject: =?UTF-8?B?QnVnOiBveC1vZHQuZWwgc2hvdWxkIHN1cHBvcnQgdGV4dDpzdGFy?= =?UTF-8?B?dC12YWx1ZSBbOS4xLjE0ICg5LjEuMTQtNy1nMDFjNDE5LWVscGFwbHVzIEAg?= =?UTF-8?B?4oCmL29yZy1wbHVzLWNvbnRyaWItMjAxODEwMTUvKV0=?= Date: Wed, 17 Oct 2018 21:21:21 -0400 Message-ID: <87woqgm4mm.fsf@everybody.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCx0P-000317-Pp for emacs-orgmode@gnu.org; Wed, 17 Oct 2018 21:21:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCx0L-0003WO-TV for emacs-orgmode@gnu.org; Wed, 17 Oct 2018 21:21:41 -0400 Received: from nospam.nichework.com ([206.71.169.33]:34054) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCx0L-0003OY-1Z for emacs-orgmode@gnu.org; Wed, 17 Oct 2018 21:21:37 -0400 Received: from localhost (localhost.localdmain [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id D72FCB400B for ; Wed, 17 Oct 2018 21:21:05 -0400 (EDT) Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FBRCdNt8SIW0 for ; Wed, 17 Oct 2018 21:21:05 -0400 (EDT) Received: from mail.nichework.com (mail.nichework.com [108.161.151.158]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by nospam.nichework.com (Postfix) with ESMTPS id 73441B002C for ; Wed, 17 Oct 2018 21:21:05 -0400 (EDT) Received: from mail.nichework.com (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTPS id B70FE4E1078 for ; Wed, 17 Oct 2018 18:21:30 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id AADBC4E081E for ; Wed, 17 Oct 2018 18:21:30 -0700 (PDT) Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8v5hSboAyoOu for ; Wed, 17 Oct 2018 18:21:30 -0700 (PDT) Received: from slink.everybody.org (unknown [24.229.149.248]) by mail.nichework.com (Postfix) with ESMTPSA id 6617E4E0650 for ; Wed, 17 Oct 2018 18:21:30 -0700 (PDT) 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: emacs-orgmode@gnu.org I saw that exporting plain lists with specified starting numbers (=E2=80=98[@20]') wasn't working=E2=80=94the lists just start over. I was a bit frustrated with this, so I went looking at the code and the ODF schema. I found that ODF supports the text:start-value attribute[1] that could be used where needed. I came up with the following hack: diff -ub ox-odt.el\~ ox-odt.el --- ox-odt.el~ 2018-10-17 16:47:32.859161792 -0400 +++ ox-odt.el 2018-10-17 21:04:46.391759435 -0400 @@ -1966,10 +1966,13 @@ CONTENTS holds the contents of the item. INFO is a plist holding contextual information." (let* ((plain-list (org-export-get-parent item)) + (count (org-element-property :counter item)) (type (org-element-property :type plain-list))) (unless (memq type '(ordered unordered descriptive-1 descriptive-2)) (error "Unknown list type: %S" type)) - (format "\n\n%s\n%s" + (format (concat "\n\n%s\n%s") contents (if (org-element-map item 'table #'identity info 'first-match) "" Diff finished. Wed Oct 17 21:17:59 2018 Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22= .11, cairo version 1.14.8) of 2018-10-17 Package: Org mode version 9.1.14 (9.1.14-7-g01c419-elpaplus @ =E2=80=A6/org= -plus-contrib-20181015/) Footnotes: [1] http://docs.oasis-open.org/office/v1.2/cs01/OpenDocument-v1.2-cs01-par= t1.html#a_19_868_3__text_list-item_