From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uMC5LEfXJ2BuUQAA0tVLHw (envelope-from ) for ; Sat, 13 Feb 2021 13:42:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cEyTKEfXJ2BfUQAAB5/wlQ (envelope-from ) for ; Sat, 13 Feb 2021 13:42:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1CDFF27E13 for ; Sat, 13 Feb 2021 14:42:31 +0100 (CET) Received: from localhost ([::1]:39026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAvBu-00089X-7g for larch@yhetil.org; Sat, 13 Feb 2021 08:42:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAv6j-0005ov-D2 for emacs-orgmode@gnu.org; Sat, 13 Feb 2021 08:37:09 -0500 Received: from mailer-211-159.hitrost.net ([91.185.211.159]:2249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAv6e-0002R8-E9 for emacs-orgmode@gnu.org; Sat, 13 Feb 2021 08:37:08 -0500 Received: from lk.84.20.234.47.dc.cable.static.lj-kabel.net ([84.20.234.47] helo=Tauriel) by b1.hitrost.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1lAv6X-00D1Qx-J0; Sat, 13 Feb 2021 14:36:57 +0100 References: <87turbj2nu.fsf@gmail.com> <878s7t95fu.fsf@kyleam.com> <87wnvd2ph3.fsf@wi.uni-muenster.de> <875z2xylr0.fsf@gmail.com> User-agent: mu4e 0.9.19; emacs 25.3.2 From: Christian Moe To: Tim Cross Subject: Re: [PATCH] tweaks to ox-html style In-reply-to: <875z2xylr0.fsf@gmail.com> Date: Sat, 13 Feb 2021 14:32:27 +0100 Message-ID: <877dncw0t0.fsf@christianmoe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-GeoIP: Country [IP], SI [84.20.234.47] X-Antivirus-Scanner: Clean mail though you should still use an Antivirus Received-SPF: pass client-ip=91.185.211.159; envelope-from=mail@christianmoe.com; helo=mailer-211-159.hitrost.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1CDFF27E13 X-Spam-Score: -2.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: XHS2H9uxSpGd Tim Cross writes: > BTW I think it would be nice if the html export was able to produce/use > a separate CSS file rather than in-line styles. This would make it > easier to drop exported HTML files into existing sites with custom > styles or update the look of exported files without needing to re-export > or manually edit. The complication is with exporting of HTML snippets, > where you probably want in-line styles. Isn't this already covered by existing capabilities? From the manual: The HTML export back-end includes a compact default style in each exported HTML file. To override the default style with another style, use these keywords in the Org file. They will replace the global defaults the HTML exporter uses. #+HTML_HEAD: #+HTML_HEAD_EXTRA: To just turn off the default style, customize ‘org-html-head-include-default-style’ variable, or use this option line in the Org file. #+OPTIONS: html-style:nil The only thing I don't think it does is export the default style as a separate .css file rather than inline. Maybe there's a use case where that would be better than turning it off and specifying a linked style, but I can't really think of one. I suppose one would need a new option to specify a path for the exported stylesheet, so it wouldn't save a lot on option lines. Yours, Christian