From mboxrd@z Thu Jan 1 00:00:00 1970 From: L. Larrabee Strow Subject: Re: table-of-contents with body-only for html export Date: Sun, 17 Jan 2016 15:50:07 -0500 Message-ID: References: <8737twj5ur.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKuHC-0007aO-GN for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 15:50:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKuH7-0001yJ-ET for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 15:50:18 -0500 Received: from mail-qg0-f44.google.com ([209.85.192.44]:36583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKuH7-0001yE-Ai for emacs-orgmode@gnu.org; Sun, 17 Jan 2016 15:50:13 -0500 Received: by mail-qg0-f44.google.com with SMTP id e32so456953517qgf.3 for ; Sun, 17 Jan 2016 12:50:11 -0800 (PST) In-reply-to: <8737twj5ur.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Oh my, so easy, thank you. Just FYI, what makes this work so nicely for me is that I can place the TOC *after* and #+BEGIN_EXPORT HTML block which contains Hugo web site generator YAML instructions, which must be at the top of the file. So, I am now happily producing a HUGO website with org-mode HTML. Although others try for fancier ways to do this, my simple simple approach only requires 3 exporter commands to get it to publish (C-b h h) and I am done. (Hugo will process html files with YAML at the top.) It is so nice to be able to use org-mode html output instead of markdown, esp. tables! Thanks again. Larrabee Nicolas Goaziou writes: > Hello, > > Larrabee Strow writes: > >> I'd like to get toc:t to produce an html table-of-contents with body-only >> true? >> >> Is that possible? From what I can tell if body-only in the export, you >> will never get a toc. > > See #+TOC in the manual. > > > Regards, -- L. Larrabee Strow UMBC Physics Department Email: strow@umbc.edu Cell: 724-288-6933