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 ms5.migadu.com with LMTPS id yP80A0s31GOrgAEAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 21:42:51 +0100 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 +OYiA0s31GMYCQEA9RJhRA (envelope-from ) for ; Fri, 27 Jan 2023 21:42:51 +0100 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 CB6A51280D for ; Fri, 27 Jan 2023 21:42:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLVY3-00032S-0U; Fri, 27 Jan 2023 15:42:11 -0500 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 1pLVY1-00031z-6U for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 15:42:09 -0500 Received: from mr85p00im-ztdg06021101.me.com ([17.58.23.180]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLVXz-00061B-Mx for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 15:42:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1674852124; bh=HaT0BuhtM7V6caFl60R6fM3I7JggI7aqmpFO7NKDiwU=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AQ04IEiYTXHC7qc42YStFDqbz7EDuG65gtL/n2fRPuByEXQiQuk57JoRfQFUn0OlQ 2ADC2KHOxPFstENnSUCi3xPoZlXAS8L7m2shyizvQwu6PNwB2/bac+OdeU4qSCgwlH KtP1yH6bfBlCGkvQqGjwhNrwOHXFcqjRppCPZ0u+Z0FiIerelTjTlhdzEB2bjularK dDZeXK5awNFhJggwPtnuENY1x4GN2X9+IMjqbY+5LowFnj8+sjxBZz9Fp/h4ig0HUi kD6V5HxUPEKVatxKI/bdaECtalQ+VQooxaKxkrcrn0PhQEl0AkWFNAXFFaaYGsnN7G NYpcrc8OSYPuA== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021101.me.com (Postfix) with ESMTPSA id 5500F80891; Fri, 27 Jan 2023 20:42:03 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Partha Pratim Ghosh , Ihor Radchenko Cc: Help Emacs Orgmode Subject: Re: Org html conversion with XyJax In-Reply-To: <87edrfg6f4.fsf@unisa.ac.za> References: <87y1pogxeh.fsf@unisa.ac.za> <87fsbw87ga.fsf@localhost> <87edrfg6f4.fsf@unisa.ac.za> Date: Fri, 27 Jan 2023 21:41:59 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: Eyvl3KLm5J5WBhhlymrhti735lhu_7jJ X-Proofpoint-ORIG-GUID: Eyvl3KLm5J5WBhhlymrhti735lhu_7jJ X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 phishscore=0 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=592 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2301270191 Received-SPF: pass client-ip=17.58.23.180; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06021101.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674852169; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HaT0BuhtM7V6caFl60R6fM3I7JggI7aqmpFO7NKDiwU=; b=DTtrbPKVjjF89JTgiYxsh0deQr4kmgAuuW5YeRcYu9iNXJimMtWs2Ex8hq8110qOZrWrWr 9z2TlbPOM7pAFgSJ0LZRQd5z7uJ8oxKq0xCMtwbpfjPy3hCkIQkA3wUMVxnN1pmydTVOZq n6H4609wtWp/FvFQfWkV6wE2q1PMqTQTGuOsGudAwTzMe2mJgKrAc/A9R0J/vJFGq6xX+K 4TOfpFu43BdR6+tUEA9xLuUwgCiBltyt8py+NqFh0OH3mgKuWoburL5IX9SceirvEGNiRc V8NbfWyIiu7PUaHQof5+jcvfE9IgB/V4tp3ZB49is5dV8biIhC3iHoL4c25Maw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=AQ04IEiY; dmarc=pass (policy=quarantine) header.from=me.com; 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=1674852169; a=rsa-sha256; cv=none; b=ZuA3rQlJHzPU6D2isrpVIjTb8mt1F7Lk07xWq91NHji87RxHxC2rU0wRnf8XpIQj5ZdjSh 0/Pxt9zBMaHROOsboQimPubsx05dSTjSJpPtP7mw0cXC4xKjed7dpOwaTRSRgxCyXlE/if paGIwioon+F4ti34ZlHx5cEGGlttRWSSfNSwlekMzVV/nzsJi1biAMyEDdx2imHDIx5L1k sFYs/uXspM9GCFW1j/IN/X4QqYMvTzgsA3bULAOPFRKteH3uzj9zbVGIG3BnZ7g7TwFqKw qRp/t0XTV1HegHHi6VmczEfJwFyqJ6QNMjybegoovpCZHy8Q4XFDpdQTrENG/A== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=AQ04IEiY; dmarc=pass (policy=quarantine) header.from=me.com; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-Migadu-Queue-Id: CB6A51280D X-TUID: /AQ1vBz/SbQ3 Partha Pratim Ghosh writes: > #-*- mode: org -*- FYI: You do not need this line if the file has an '.org' extension. > #+TITLE: test > #+AUTHOR: Partha > #+latex_header:\usepackage{Documents/tex/essentials/symbols} Note that this header applies to LaTeX and will not work with MathJax. You can make Org to use actual LaTeX in HTML by adding #+OPTIONS: tex:dvisvgm to your document. > Can I use \LaTeX ? Let us try: $f: A\rightarrow B$ is a function MathJax ignores \LaTeX but renders the function correctly. (I tried with plain 'emacs -Q' on Emacs 30.) > $\xymatrix{ {A} \ar@{o->}[r] & {B} }$ MathJax does not recognize this, hence the "Misplaced &" error. You have two options here: either (1) install the MathJax extension you mentioned or (2) make Org to use LaTeX for HTML. If you decide to go the MathJax/JavaScript route, please note that you need= to use Emacs 29 or later, where Org uses MathJax 3 and not 2. > \Arr{f}{A}{B} MathJax does not recognize this either. > 2. The file exports perfectly to pdf: That happens because Org always uses LaTeX for PDF documents. If you want = it to use LaTeX for HTML too, see the OPTIONS above. Rudy --=20 "Chop your own wood and it will warm you twice." -- Henry Ford; Francis Kinloch, 1819; Henry David Thoreau, 1854 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia