From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QDL9OvRonGS7JwAASxT56A (envelope-from ) for ; Wed, 28 Jun 2023 19:08:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +HnzOvRonGT7UAAAauVa8A (envelope-from ) for ; Wed, 28 Jun 2023 19:08:04 +0200 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 8B7D1C3C6 for ; Wed, 28 Jun 2023 19:08:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iDIvhzlt; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687972084; a=rsa-sha256; cv=none; b=H43fZVK+O6K8W1a00fH8QfHRVis2VoKvAnNxxb0pvbebXyWPX8sG6SjS16gEaVW5EskIQ+ QSnnCLsOqJxT6MqkuQzKXFigQ3Kd+fvieX8VyZpBbuiukVUHKs26mGNjawmuDZBC6WB+mP 3+8J4uyluyvxOtT43jOvsR92cWPQ1AO7u/yoYxLsJeNZZh5fAcEs1FsT/dopsJnqMlU7CW JBqaCA+WohbXdKJ2amkV9XHTGZqGd4SUljvwYXspqWnRJdRI4+cUS/DuEeVF4vBAt+iD3Y OohhAMumY9cgvOMr6jji67xqNZh/zCzm+w2OvzATHV2VyufdFS8eRAZRWEiVnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iDIvhzlt; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687972084; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ALzEc29yPZqPW5acqzepEuWhsl6rWx2fbJrLTHhHSZA=; b=HJa07bokXgEFPR8B4xA97LD1HLB99XaopetMF86DM5f6zuGDegLpjvC5XJgB7DQ9R5+uf6 sOTqttbDqerqcoDUGPoFXX8oRjY956cjnBTzKETL5ttmPX4p8AZ+Ma7WfXE3cJWyA/u2xi rYG2TopJAcvT4h7dIv5gHjlPnPRFb+V/WckGIKjbP7bUEB3w7jZgTK+LrjoroCKAwCECj0 6b3TQ0VnuzxRaZxWzExV+fyFnQOHjYronJolnPaVFaZsgDNnOmwJ1r194VIoWtUuusi7zr ZD1we9vGlERFKCV8Ni/fy7e0kenzEu/H4ifayNsPrt/E5ky0I+on1HnsoqYGjg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEYd8-00026U-41; Wed, 28 Jun 2023 13:06:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEYd6-00026C-Az for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 13:06:56 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEYd4-00052E-1U for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 13:06:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 90BEB240104 for ; Wed, 28 Jun 2023 19:06:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687972010; bh=MiBMI5RJhJhM3jdS7/AHzzhKxAefQKVhV/jquAoNvOo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=iDIvhzltWP32z/733OPDlj5e+PTq1LejFT0auaUg2MSf3zz8hb8jBu38Pu8GshrXZ jBHub/GMG8uQPJRqr813sjCtCOcbr/qHZzfJqpdzCapTz43Dvc7AK3LJWJPTjXvKQ8 ml8G8M1thuJlq/X7AVduE3Vz5pNQYobgXthVkajQ/+By7dGiC+gTDWrXIoJjRoC7yB cCN1nnrN+QUkZeuEXjrBNAer5OYKq7Ac8H6sR7bl1yCX09JOiRrKnbdJ8L+6hWMtbm ybf1UKLHset3veF4MwBmkJ7raPY5T8/cW6wR7TkXrsmYJQhFuWbPFIX9Nh5ky9Fpf8 tockLHnQo3zTQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qrp0B0c4Vz6txY; Wed, 28 Jun 2023 19:06:50 +0200 (CEST) From: Ihor Radchenko To: dongdigua Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org-faq.org: rename org-export-htmlize-* options to org-html-htmlize-* In-Reply-To: References: Date: Wed, 28 Jun 2023 17:06:49 +0000 Message-ID: <875y77wm6u.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.22 X-Migadu-Queue-Id: 8B7D1C3C6 X-Spam-Score: -6.22 X-TUID: eVMu8ohISdwR dongdigua writes: > sorry, my email client wrapped the lines Thanks! I looked into this again, and I can see that the FAQ entry is dubious. > -** How can I preserve faces when I export an agenda from the command line? > +** How can I preserve faces when I export an org file from the command line? Note that the FAQ entry is talking both about exporting Org files and also exporting agenda - two different code branches. > @@ -3821,18 +3821,18 @@ does not have a display and therefore only rudimentary face > definitions. If you'd like to use more complex styles, you'll have to > make sure that the export process only assigns classes instead of > direct color values. This can be done by binding the variable > -=org-export-htmlize-output-style= to =css= for the duration of the > +=org-html-htmlize-output-style= to =css= for the duration of the `org-html-htmlize-output-type', not "-style". > export, for example with > > : emacs -batch -l ~/.emacs > -: -eval '(let ((org-export-htmlize-generate-css (quote css))) > +: -eval '(let ((org-html-htmlize-generate-css (quote css))) > : (org-batch-agenda "e"))' And this example is talking specifically about agenda export, which is relying on htmlize package. There, the css generation is controlled by `htmlize-output-type', not by `org-html-htmlize-generate-css'. So, we need a much more significant rewrite to make this FAQ entry up to date. [ org-faq is severely outdated, unfortunately. It would really be welcome if some kind soul could review it and update things as needed. ] > Then you can use a style file to make these classes look any way you > like. To generate face definitions for a CSS file based on any faces > you are currently using in Emacs, you can use the following command: > > -: M-x org-export-htmlize-generate-css RET > +: M-x org-html-htmlize-generate-css RET > > This will generate a == section, the content of > which you can add to your style file. And in agenda, it will be org-agenda-export-html-style variable that has to be set. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at