From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: outline formatting in html Date: Fri, 06 May 2011 11:32:56 +0200 Message-ID: <4DC3C048.7000209@christianmoe.com> References: Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070209010100000401000306" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIHJV-00063r-UH for emacs-orgmode@gnu.org; Fri, 06 May 2011 05:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIHJV-0005J3-0R for emacs-orgmode@gnu.org; Fri, 06 May 2011 05:27:09 -0400 Received: from mars.hitrost.net ([91.185.211.18]:40445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIHJU-0005FC-KS for emacs-orgmode@gnu.org; Fri, 06 May 2011 05:27:08 -0400 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Skip Collins Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------070209010100000401000306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, That would be a good feature to have. While waiting for someone to patch it in, a workaround for HTML output would be to turn off section numbering and then fake it with CSS. I enclose a four-level example I happen to have lying around. You can extend if needed (note that the title becomes h1, so the top-level heading is h2). Yours, Christian On 5/6/11 5:59 AM, Skip Collins wrote: > I thought this would be easy. But I cannot find a way to get html > formatted the way I want. I would like to view org content in > "traditional" outline format, with indentation, Roman numerals for > the top level heading, etc: > > I. This is a top level heading > II. Here is another level-1 heading > A. Here is a level 2 heading > 1. This is a level-3 heading > 2. Another level-3 > a. Level-4 > b. Another level-4 > (1) Level-5 > (a) Level-6 > B. Another level 2 > > When I customize org-export-section-number-format, I do not get > exactly what I want in html output. All heading numbers include > higher level numbers, e.g. II.A.2.b. I am looking for a less cluttered > output in which a heading only includes the single counter for its level. > > --------------070209010100000401000306 Content-Type: text/css; name="css-simple-outline.css" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="css-simple-outline.css" CmJvZHkgewogY291bnRlci1yZXNldDogaGVhZDEgaGVhZDIgaGVhZDMgaGVhZDQ7Cn0KLm91 dGxpbmUtMiBoMjpiZWZvcmUgewogY291bnRlci1pbmNyZW1lbnQ6IGhlYWQxOwogY29udGVu dDogY291bnRlcihoZWFkMSwgdXBwZXItcm9tYW4pICIuICI7Cn0KaDIgewogY291bnRlci1y ZXNldDogaGVhZDIgaGVhZDMgaGVhZDQ7Cn0KaDM6YmVmb3JlIHsKIGNvdW50ZXItaW5jcmVt ZW50OiBoZWFkMjsKIGNvbnRlbnQ6IGNvdW50ZXIoaGVhZDIsIHVwcGVyLWxhdGluKSAiLiAi Owp9IApoMyB7CiBjb3VudGVyLXJlc2V0OiBoZWFkMyBoZWFkNDsKfQpoNDpiZWZvcmUgewog Y291bnRlci1pbmNyZW1lbnQ6IGhlYWQzOwogY29udGVudDogY291bnRlcihoZWFkMywgZGVj aW1hbCkgIi4gIjsKfQpoNCB7CiBjb3VudGVyLXJlc2V0OiBoZWFkNDsKfQoKaDU6YmVmb3Jl IHsKIGNvdW50ZXItaW5jcmVtZW50OiBoZWFkNDsKIGNvbnRlbnQ6IGNvdW50ZXIoaGVhZDQs IGxvd2VyLWxhdGluKSAiLiAiOwp9 --------------070209010100000401000306 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="css-simple-outline.org" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="css-simple-outline.org" #+TITLE: css-simple-outline.org #+OPTIONS: H:4 num:nil toc:nil #+STYLE: * Top heading, Level 1 (I) ** Level 2 subhead (A) *** Level 3 subhead (1) **** Level 4 subhead (a) **** Level 4 subhead (b) *** Level 3 subhead (2) **** Level 4 subhead (a) ***** Level 5 subhead (no formatting) --------------070209010100000401000306--