From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sJ47FmEDXWSfOgEASxT56A (envelope-from ) for ; Thu, 11 May 2023 17:01:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kJIwFmEDXWSu+gAA9RJhRA (envelope-from ) for ; Thu, 11 May 2023 17:01:53 +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 1E28BE1CF for ; Thu, 11 May 2023 17:01:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1px7mg-0001As-0t; Thu, 11 May 2023 11:00:46 -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 1px7md-0001AW-RU for emacs-orgmode@gnu.org; Thu, 11 May 2023 11:00:44 -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 1px7mb-0008PD-Ty for emacs-orgmode@gnu.org; Thu, 11 May 2023 11:00:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BDFBB240267 for ; Thu, 11 May 2023 17:00:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683817239; bh=PMPDGYa5nLruQe/DSOWC5zj2wZZSPAXU2mderlLzXO0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=b/CtBuKsxgjHXtxYYtTwr62STXk8rsR2oCJjr0zvdzCx6zuzzIqKjs3QMkaPnnsJa ktG2HcTvIlAlaS5qUbYva7Q28jpOenNcsVqgaeiimMdGz/b/wlgn9HwH0Qo+S9/wG7 Nx4LpUkVjyNX0f61uIQn/lcCs2n/bCakKpfOjJD5mGRuCjmH1N/GjyIlhJ0RYUVodc fmsUSdZtecfpY92zQ7zsW9iViFvNaRV/3asVxTprGvNlKEfNVru9iOldvGtW9j38K5 DwsA4kbOc6ctgbCTZtyM4CIFiJAaYMoWNcRy+1/3wMvwvf9wR12SL++4xOr8Q24HlV AWfcT7g5W2hOA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QHFSg47D2z9rxN; Thu, 11 May 2023 17:00:35 +0200 (CEST) From: Ihor Radchenko To: Gustaf Waldemarson Cc: emacs-orgmode@gnu.org, Timothy Subject: Re: [BUG] Wrap LaTeX Fragments in a Span [9.6.2 (release_9.6.2)] In-Reply-To: References: Date: Thu, 11 May 2023 15:04:02 +0000 Message-ID: <87o7mq52ql.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_H2=-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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683817313; a=rsa-sha256; cv=none; b=K0Svpa7jgVDQ5ra1pOr/K3p+NavaoikrYTfDjLauBeNXvrqp614DiG46xqqgTedNLVhNI7 vyn2qpjM4venKvuBrNw3qgTz6pjklmKq0lZ//F/hB9jeaj1rQq69BeoH93gX64xZesbNU7 HnD7Pgm6swF2VEWelh8Q//MD9RE8NtujVdGWCDnWAPGVMvnhe4fwxCHTd2EbzcKgel4bb6 C4hWJW+XO9tPT+BN5xkT39kOu2ol/97i7Pjf4WAD0ka8ou9ppYyUutoyr0/q7oC4ud8jgR BRLbu6xFNyaW68fnGQ+QZSJ7QElvgrmDD1IJ33zREWxg1gRUX7n2k6DYDqfj4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="b/CtBuKs"; 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=1683817313; 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=99Neia/uSsPZOxMpO5dj5GPzI7cS/OWxmgA7RzzdiSE=; b=GBkkIezEFlmR2Z16YSSAltwOxWOwYopZniVfO3OK8fmzLxaRj6rWo8oIvuz6xnV1365so4 5tUh/wBdu58pFXjuEou4JLAqC4kXymBvM5in8eU1Mcury5NPzyciziUwVqnRPXTUsxpAnI 4cN81KG50h+GM7StkFfl8lrLjEBXoKDEG9emVRk65f2bkHYnKObV9oGHXLCqagWRBBWm+v 5S3xShqezLxSRRkdEkuY9rx+mg6F5JjQjj2TOY2m+uynRqHMB6xP1WOME51r1SIhWbFjiD TPkEpAv5lj9MZ0s5CrB8qrVkFJkTwkEkytpaZ2Y7HxT2UXs43lVxXvFiJVVPHw== X-Migadu-Spam-Score: -4.69 X-Spam-Score: -4.69 X-Migadu-Queue-Id: 1E28BE1CF X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="b/CtBuKs"; 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" X-TUID: /3O79Z82ZSCW Gustaf Waldemarson writes: > The other day I wanted to do some additional styling of LaTeX (MathJax) > elements, however, I noticed that none of them were actually captured in any > HTML tag or CSS class, making this a bit cumbersome. > > So I spent a bit of time to look things up and see if this could be fixed > and > came up with the attached patch, which wraps all LaTeX fragments in a class="equation"> tag. Ideally, one should probably have separate CSS > classes > for inline fragments and full environments, but I wasn't really able to > figure > out how to separate those. See `org-html--wrap-latex-environment'. `org-html-latex-environment' does wrap latex environments into equation class, but not for mathjax processing type. CCing the maintainer. It looks reasonable to wrap Mathjax fragments as well. But there might be non-obvious pitfalls. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at