From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eDkSKMPu7mVoPgEAqHPOHw:P1 (envelope-from ) for ; Mon, 11 Mar 2024 12:45:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eDkSKMPu7mVoPgEAqHPOHw (envelope-from ) for ; Mon, 11 Mar 2024 12:45:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=christianmoe.com header.s=x header.b=0KM9Cw17; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=christianmoe.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710157507; 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=VoUlb2GQHdh3vY2YjYV6CJNgabb66WDJcMquAFZuB8A=; b=mlDZpNwnicrB/7qfBJSpT64LCKxa47xvn2rYwSMz4tS34n8PTp9FVsN5y8c0UAczTFH0mt SQ0n8nco8QbHT5zsE0//JgOxA+v+VyDII8HPSu9thpDJ5fzOxwnQJVSZyUFt5RAqBe8DHY ytNl4jDkigsQ2CFkUMsgL6cS8yIWJ5PfA9HcOUOIhaAOmZky5DUvP0g05xh1OV7izOKofL QYHfiMs4UPNmJg4T+8BAlWbjXCLkzDe4DPZF6WlKkjyfNkJ6PE5Dox9mBTDkuGiVjyA+07 M41VpcEJnqRxFDsM5k/egW2qK8xj0XWA2J76N+X32YsIPIhathSo4VeR2Ltduw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710157507; a=rsa-sha256; cv=none; b=Ca+namnMQHglMjwhGxGL+z/g8T7OuZ5zkrJR0NDhB85oZsFmGTAOXHYYtZTPTlvvLd+gOb /hOxvvM+R786pL9xZuesoFUfKfMhe04n6xSknHNUOGvUq3CYG5+IoKQ4jr8GMcaqI5+uMz eVh4/7NH4hSfWTLZ7LvbQNq4A56xs0x4RIP7tjF5UJsAbLVhA5So53+vZtp6gwLBiSytgC +epYHK1jPt4Q064Myb7xpv4wqIQbOtUt5gQE5r7UGvvs83HG/RShBEV8yMnCqKKmUm6T2M CYoyHA8tamAhu++2yqA/CiWZLJLs3V4Oezb+yQUviKP740M/gpnNIRLjU4AcLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=christianmoe.com header.s=x header.b=0KM9Cw17; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=christianmoe.com (policy=none) 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 53B20451EC for ; Mon, 11 Mar 2024 12:45:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjdfN-0001q0-On; Mon, 11 Mar 2024 07:18:01 -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 1rjdfL-0001pZ-3K for emacs-orgmode@gnu.org; Mon, 11 Mar 2024 07:17:59 -0400 Received: from mailer-211-145.hitrost.net ([91.185.211.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjdfI-0003Ol-0d for emacs-orgmode@gnu.org; Mon, 11 Mar 2024 07:17:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=christianmoe.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:Cc:To:From:References:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VoUlb2GQHdh3vY2YjYV6CJNgabb66WDJcMquAFZuB8A=; b=0KM9Cw17tKdSoXSQ9g4UkH6rsA GesyfrUfEyxWyaITDTfMVflGPtveeiB0pKdEDb7oTdXAyEgA4uD00P9MbyoZm/VtTN8zU5Y7/Kyza Ot3506g2nyqH85iO6IPo0v2Awpf6oBVgHxmzo0YYt96JEFHbT4E6zYXfznsxkR1ARdxRdrW7bfTL1 qLYpp64PanOsYHX4+Zi2xOXhSuyrNCt+DIZqg3MpvuSHrnD2KBncW6J59He5GNlCbNTpKERyORYe3 78j3P7jIRwC07IzzTMqCmN4tFZnVVoPwlXkG9Cw7dgKWLPU5XM7gw3aPzIQLT9631afLU6oQBEk5c rn38PutA==; Received: from 92-63-16-127.dynamic.telemach.net ([92.63.16.127] helo=Tauriel) by b1.hitrost.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1rjdfB-0000000EKWl-3ltV; Mon, 11 Mar 2024 12:17:49 +0100 References: <874jdd3xdt.fsf@yandex.com> User-agent: mu4e 1.2.0; emacs 27.2 From: Christian Moe To: m43cap@yandex.com Cc: emacs-orgmode@gnu.org Subject: Re: Footnotes on line and not raised In-reply-to: <874jdd3xdt.fsf@yandex.com> Date: Mon, 11 Mar 2024 12:17:49 +0100 Message-ID: <877ci93tlu.fsf@christianmoe.com> MIME-Version: 1.0 Content-Type: text/plain X-GeoIP: Country [IP], SI [92.63.16.127] X-Authenticated-Id: mail@christianmoe.com Received-SPF: pass client-ip=91.185.211.145; envelope-from=mail@christianmoe.com; helo=mailer-211-145.hitrost.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.80 X-Spam-Score: -2.80 X-Migadu-Queue-Id: 53B20451EC X-Migadu-Scanner: mx11.migadu.com X-TUID: pC5TfwXIx1Aw Hi, The footnote definitions are easy to fix with CSS since they are wrapped in divs with the .footdef class. #+begin_src css .footdef sup { vertical-align: baseline; font-size: 100%; } #+end_src But as you point out, the footnote references, are not as straigthforward given the structure -- at least if you need other superscripts. If you're not very concerned about cross-browser support, you can use the :has() selector. Works fine in an up-to-date Firefox, but that's all I'll promise. #+begin_src css sup:has(.footref) { vertical-align: baseline; font-size: 100%; } #+end_src Otherwise, I think you'll need an export filter. Here's one that simply sets the .footref class on the SUP element as well: #+begin_src elisp (defun my-html-filter-footnotes (footnote backend info) "Export footnote references with a class definition on the SUP element to make them more amenable to CSS." (when (org-export-derived-backend-p backend 'html) (replace-regexp-in-string "" "" footnote))) (add-to-list 'org-export-filter-footnote-reference-functions 'my-html-filter-footnotes) #+end_src Now it's easy to style the footnote reference with #+begin_src css sup.footref { vertical-align: baseline; font-size: 100%; } #+end_src One could perhaps make the case that Org ought to do this by default. Yours, Christian Colin Baxter writes: > I use footnotes as [fn:1], etc. in an org-mode file which I then export > to html. In the output, I see the footnotes raised slightly above the > line. I do not want this. Instead, I would like the footnotes to be on > the line. Is this possible? > > I have read the doc strings associated with the variables > `org-footnote-define-inline' and `org-footnote-auto-adjust', but, > frankly, I am none the wiser. > > Best Wishes, > > Colin Baxter.