From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kodi Arfer Subject: Re: [PATCH] ox-html: Allow "Figure %d:", etc. to be styled Date: Tue, 09 Jul 2013 16:19:30 -0400 Message-ID: <51DC7052.9070607@arfer.net> References: <51D4A375.9050904@arfer.net> <87bo6b1pe1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UweNr-00050N-AI for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 16:19:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UweNo-0002es-PI for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 16:19:35 -0400 Received: from mxout-07.mxes.net ([216.86.168.182]:34159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UweNo-0002eg-Ji for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 16:19:32 -0400 In-Reply-To: <87bo6b1pe1.fsf@gmail.com> 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 On 2013 Jul 09 Tue 3:53:26 PM -0400, Nicolas Goaziou wrote: > Kodi Arfer writes: > >> From a873d204b2c4f3facf2d8658f69764acbd063246 Mon Sep 17 00:00:00 2001 >> From: Kodi Arfer >> Date: Wed, 3 Jul 2013 17:51:56 -0400 >> Subject: [PATCH] ox-html: Allow "Figure %d:", etc. to be styled >> >> * lisp/ox-html.el (org-html-paragraph): Wrap "Figure %d:" in >> . >> (org-html-list-of-tables, org-html-table): Wrap "Table %d:" in >> . >> (org-html-list-of-listings): Wrap "Listing %d:" in >> . >> * doc/org.text (CSS support): Mention .figure-number, >> .listing-number, and .table-number. > > Thank you for the patch. De nada. > Wouldn't it be more future-proof to wrap them within the same CSS entry? > Otherwise, if we ever introduce other caption types, we'll need to > remember to add another entry for it. > > Obviously, my question assume it is very unlikely that someone would > want different styles for captions. But I may be wrong. One case I know of is APA style. Here are some examples from the APA publication manual. "Figure 1" is supposed to be italicized and inline with the caption ( http://i.imgur.com/u6jsfJx.png ), whereas "Table 1" is supposed to be upright and on its own line ( http://i.imgur.com/3gvxEdd.png ). Admittedly, APA style is crazy, and you have to be additionally crazy to want APA style in HTML. We could still use the same class and then expect people to use selectors to be as specific as they want (e.g., if the generic class is ~.caption-number~, one could use the selector ~caption .caption-number~ for tables and ~figcaption .caption-number~ for figures, at least in HTML5). I think using different classes is actually simpler, though, because then we don't have to keep track of how selectable the different caption types are. > BTW, do you have any news about your FSF papers? I got an assignment form back from the FSF, and I returned scans of the signed form on July 1, but I haven't heard back since. I guess there's not much of a hurry. I won't be firing off these little patches as much now that I've released http://arfer.net/daylight .