emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: bullets when exporting a list of checklists
Date: Fri, 19 Jul 2013 21:22:44 +0200	[thread overview]
Message-ID: <87ip06tkvv.fsf@gmx.us> (raw)
In-Reply-To: m9hir4euo1be.fsf@W0144758.usac.mmm.com

david@adboyd.com (J. David Boyd) writes:

> david@adboyd.com (J. David Boyd) writes:
>
>> Is there any way to turn off the solid and hollow bullet points when exporting
>> a checklist of checklists?
>>
>> I want to make a checklist for my camping trips, and I don't want the bullet
>> points, just the nice clean list.
>>
>> I've seen some options available for formatting, but nothing seems to control
>> the generation of the bullet points.
>>
>> Any pointers on where to look in the docs or source for controlling this?
>>
>> Thanks,
>>
>> Dave in St. Petersburg, FL
>
> And sorry, I should have said "When exporting to html,"

looking at M-x apropos-variable org-export-with RET I didn't see
anything.  But check it out. 

If nothing works you can add a filter.  Here's something to get you
started.  You could add more robustness-check, e.g. making sure that
only the first occurrence is removed etc.

(defun me/org-export-remove-checkboxes-from-html (item backend info)
  "Remove checkboxes from html via regexp.  It's inheritantly
unstable as it only recognizes checkboxes of the format
<code>[something]</code>.  Info is ignored"
  (when (org-export-derived-backend-p backend 'html)
    (replace-regexp-in-string "<code>\\[.*?\\]</code> ?" "" item)))

(add-to-list 'org-export-filter-item-functions
             'me/org-export-remove-checkboxes-from-html)

–Rasmus

-- 
. . . The proofs are technical in nature and provides no real understanding.

  reply	other threads:[~2013-07-19 19:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19 18:18 bullets when exporting a list of checklists J. David Boyd
2013-07-19 18:24 ` J. David Boyd
2013-07-19 19:22   ` Rasmus [this message]
2013-07-19 20:17   ` Nick Dokos
2013-07-19 20:33     ` J. David Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ip06tkvv.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).