From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qF07GZLrz2UOYAAAe85BDQ:P1 (envelope-from ) for ; Sat, 17 Feb 2024 00:11:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qF07GZLrz2UOYAAAe85BDQ (envelope-from ) for ; Sat, 17 Feb 2024 00:11:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CpOkSMa7; 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=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708125074; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VHFSVvV0g+Sfp2BXrA0iCPjkLlsKh7NBfIFfcstWk2g=; b=PTFz0CS7eWqmdIXlokl40qsDOyl78//+/vEMxAG4Egns5tPqFNfm0g28Zu1dMGsTD8a2V1 7E+kn95eZ4lxkBNHK18SDlsAdvEDo/ZljkPwHi5zVpsM6QvQgw0wkcJlvmtEgLe7eR9880 UszG+ODgS9RhLL79UTYN59WFAbbBc/2gcWVw6xEUlnZ7OY3yYznspVyHHBqD+4gB5s/jSg oR7GA8HvrGcsi1P1fLnA9akhdkuVWS26Jc2IOQLK7QM6nEXcC+IR2ewbSo56QStFsKMRJG WMewFU5AjGiSm7/LoWTLCKTHyaTqR5P4GWGIAr4s5+vPU8WDjqg7CVUecJrrsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CpOkSMa7; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708125074; a=rsa-sha256; cv=none; b=szLAX13WGy+ZUGC5BIly7fXygRDIEq1KQuaqf77zlKqj93uamjPZ4+/KXf2LG3CTa5Cf5q IIU1q8ePgGL3elXOVKbNtQOh/A46N0mX3uVqTCwaGa+MLZT58UiJvSl6tyjh9DU5mZ8qmy GCZLyPiwIXG9TA222ex4IUUO1zLz2QFkTs51PuqR1rRNNanbT6QKxpD5vtR1+VYzIPnpIV 43FYiXz13HU17bROiGgXm/vXnbbZf0M2kIuFZlj5T9qleCdFBpyVQeLOrYL9XlVxeyzdM6 lPwjokk2Ovd0JXLox4VFKRNMsbz4y89ML9axEY9G+J3Mfku4IL5CtmgH89gThw== 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 1983164191 for ; Sat, 17 Feb 2024 00:11:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rb7Lh-00013q-Fu; Fri, 16 Feb 2024 18:10:29 -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 1rb7Lf-00013R-OL for emacs-orgmode@gnu.org; Fri, 16 Feb 2024 18:10:27 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rb7Ld-0004XH-Bm for emacs-orgmode@gnu.org; Fri, 16 Feb 2024 18:10:27 -0500 Received: by mail-wr1-x441.google.com with SMTP id ffacd0b85a97d-33d01faf711so1133961f8f.1 for ; Fri, 16 Feb 2024 15:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708125023; x=1708729823; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VHFSVvV0g+Sfp2BXrA0iCPjkLlsKh7NBfIFfcstWk2g=; b=CpOkSMa7/rpx3N7xw7NMAEb5AsZ9Cng6QEy4IdXqbndlrTDwWKvX7f3ffkQAaua2q9 nkuKvuoj1URYSXBDFJLM1Uw6LvXc95z8Nx2GULi3hSexVYj9W4VJwyYwzUNyOvxSTGCD fDiVQeYFvzM2EoSb5x1J9rkh5BimsWsE0Mop8/SajYfHt2EeoTpEXydZckR+Q3HcqFi6 4ymrJgoLQD5MiF1lri1c0MNjYfcSXxBPE4Dwh0czFCOpCmwZ/v3xeilyOeUhElqj93d6 btUIrXGot8myIswWimZ8XbeMPkChtIaVYcQ39tb4UWihw6lRrPOTe+PgUYgL9DDsH3A+ LHzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708125023; x=1708729823; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VHFSVvV0g+Sfp2BXrA0iCPjkLlsKh7NBfIFfcstWk2g=; b=wjvpkaknQvsFhZbL+ff0bZPK/8Sf145lx39Ow+5Ff7qleiW6uG75KitZ9EGMp7kU5m Tywsw1mhNMeG7qT8UJW7gLGEq3xkAlNVxkGG2FmY1GQGV46+Z53x+Qza8D6ei2d56zkJ hLSk3B1Nr/Gb2AKqbrJtAsJXAyKPO98NC/3f8G8gByLuguyH58awv/MYWHWZmu3yTd5l oXfJrEipaiXo5LQShVbF/TRb/qDdWeZijpWZ6h5mznT8ZLSiEtb+h/x6DUonvykiHUcB 8Nb/L1ieYNyUQEQmQQMpDdl5UTNEjzWdC2Wpy8oBn3Wk54uIcdTbNa3KOn5QaP5ZE0UT SYUw== X-Gm-Message-State: AOJu0YxKzdc49Gkx/HQtkLGodXDYYtz2JYS6wlVozenb0QafantSPGO7 RvaGajlTK0A4KG2EuMOPiGTo0HR9eZGj4MNbs8NewLrpXu2Mi2Q2ih17vcJGPwrLQ+jbRW1fUti pPmE3EF4gdDfsvewNe613PYTX/sSoDNBJyVEH7w== X-Google-Smtp-Source: AGHT+IFxx7TbIp1aqtshdqiBo9mxNheN81QKmm0ZgkoHFs5itLR4uQ+XadVmFdGSOlX0KYxAhWQWzgHmrazrvtYzt7o= X-Received: by 2002:a5d:4a52:0:b0:33d:2d00:15fb with SMTP id v18-20020a5d4a52000000b0033d2d0015fbmr184596wrs.48.1708125022591; Fri, 16 Feb 2024 15:10:22 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Martin_Edstr=C3=B6m?= Date: Sat, 17 Feb 2024 00:10:11 +0100 Message-ID: Subject: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=meedstrom91@gmail.com; helo=mail-wr1-x441.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: mx12.migadu.com X-Migadu-Spam-Score: -6.79 X-Spam-Score: -6.79 X-Migadu-Queue-Id: 1983164191 X-TUID: KcombsksNSXN I've just been struggling with my custom setting for `org-latex-to-html-convert-command` outputting many math snippets wrong. The fault was mine: I didn't correctly shell-quote the input. I propose to add a warning in the docstring, because many people will trip the same problem. The thing is that double-quotes don't work in shell commands. I had \"%i\", but it should've been '%i': (setopt org-latex-to-html-convert-command "node /home/kept/pub/texToMathML.js \"%i\"") Math snippets that start with $, like $y = 200$ of course get butchered into just " = 200$" because of course the first $y gets interpreted as a shell environment variable.