From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33496 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Unable to use longdivision package with LaTeX Date: Sat, 9 Dec 2023 19:55:31 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30808"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBNUM2OVQMGQEGJ7Q2LA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 09 20:55:37 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f55.google.com ([209.85.219.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rC3QH-0007p2-Em for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 09 Dec 2023 20:55:37 +0100 Original-Received: by mail-qv1-f55.google.com with SMTP id 6a1803df08f44-67ab1ce51b7sf41788596d6.2 for ; Sat, 09 Dec 2023 11:55:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702151736; cv=pass; d=google.com; s=arc-20160816; b=MHTZrcPFjMSs4sYLdvFyFUYvE4TLqGJ3UhusDgB4rQJSJ7DF+YZ/ZHABxh/uZ1VzvL FyYcCzKtR6gZkPFsf9oXO9ICeT65AVVB91QsqnILyN09mSrtrNs2SLpP3riyO3dHl2t9 0rc1WTkrsK2La2y/GUtXHy0gKmftSgeVruhQiHlJflEwyLRhaC4pRncl2XvssbTLjvlf NKDnmzDAdND4N04dqo/XN4yaNR7jzNnyuwpXOGvpUEOquNEFm1lr46/7pf0Xmeoe5ow4 rbJnIKhilCX6xAqlCoUPa9xfmIQPxOhG97giFTnXuATjnkvsUC/QZo/U2FogcgJove5C ZHSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=kDA+nLrXNF7rLU33A4h3UeEWLi60mMIhwghVeGWYYgA=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=wczsyYIwrzmDpUCxhvTeDEGBD9Qy3w34AqvjV4PPcbypL22CMhMltMloqkY4SNxfAk jZYm7PjKAjeRokdUyCjSfLbwoqOQ3DPvKYuuvHX11PZAFldDctxssMthVZsd02SuoluF ZtaUvJEPFboSFz/4qVqZcjRXBzfmhe/muVLkk5jP1G0Y360jxxA8k6J30/6f8jRgvS+W mMlJVPUCY9mNqlwWzXSwv48eFOUXxK80UsMk/6+bhHpxgvbtppZr4sAUlG1rIuQUmORp NlZuRuH9XAEwCoqg8Hr26DRSDlZZGIcyfMTO2LlxSB9gcZ2pkTkIgZR92bHxvaw0usGp fi1Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YXDrFVuo; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1702151736; x=1702756536; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=kDA+nLrXNF7rLU33A4h3UeEWLi60mMIhwghVeGWYYgA=; b=tcKtUACR77OHnVidzKYVs5grm0KUM4Shh/u0nq6lrS0A/Mjn9NxJEED2fnm8XwLysG 3T4VZ/C5oTPwPI9VebfpguL4A7MbSIj0dDZ5NrRqhN8oiyPObUXWpGcYV3e6oOn8Shwn u3k13N/L+qkfcHUjrhd2+mmVEaZw27ckxVR8IbHInvM/1r2KOsakhxfDqtqfM68r0dIT iBP0yKA5jdbBvYR6NOTXJ1k+7xtQ7zxnzUP887+55AYSps2Ybu4mKK60NEN/EUFCbL5F X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702151736; x=1702756536; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=kDA+nLrXNF7rLU33A4h3UeEWLi60mMIhwghVeGWYYgA=; b=VGmW6tUkRcPDpSLwJc4i+1U3cEhZ9sPkXEnik/lDSrYVjq0se4UlX8TE5dB/QSqvlG SI0jwqCQz9joEr4WVi2NiaEJZjysTWv6I77rWOgSaQ7BieOfx5UgLm4yUGqASmmRAJxo OWvSdXIJ/LobIO3HzneTtk1o/SA+Bi8zH98SV35jF52jOT9T6vi/zrj5Zf3YmdrzQ2sc P7jouDXwYR4ixPytyR4eYq1hJcNe Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YzEEBOk9aG01IRTl4ffenYr0Wup5wPKoh8QRCjx1lX10WQMpdn/ 7k3jApWVAzJ7ldCQIrDvr7M= X-Google-Smtp-Source: AGHT+IHj5E/SAzYm4lj+E/KlKmkyLiMX/6msBKYu7+JfE4XGUuag3SF5AkUruSi+qwUJ7w9lEZFK8w== X-Received: by 2002:ad4:470f:0:b0:67a:aa74:6a32 with SMTP id qb15-20020ad4470f000000b0067aaa746a32mr2747008qvb.110.1702151736485; Sat, 09 Dec 2023 11:55:36 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0c:e842:0:b0:67a:b1a9:2f66 with SMTP id l2-20020a0ce842000000b0067ab1a92f66ls3283990qvo.1.-pod-prod-09-us; Sat, 09 Dec 2023 11:55:33 -0800 (PST) X-Received: by 2002:a0c:ed41:0:b0:67a:a53a:4dc9 with SMTP id v1-20020a0ced41000000b0067aa53a4dc9mr2423502qvq.25.1702151733342; Sat, 09 Dec 2023 11:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702151733; cv=none; d=google.com; s=arc-20160816; b=XXpYk39HCjzuoBfnLSQBlSBkQV4Um52kq+pdtWGNGsRbIr8MRcUCPbnzq4A2fTYSb2 yS2OsD2dfF23NhLxHmZntUg1jFLVX0VtzK9n9bZkLy6crOgiycIRrC/5zw9ypNShQSX0 UEh4rWNhM4yXVISb/3xr9Di0GRQy14q9W1aktMhWfScDEFfC2eMtXimLTe7ZLT+x7U/m CXnudUsbFosene+FT1VGweY+HKHWuytrHHycY2e87glxeDQf8bcJjEke04QgOmBXqlLn SNHRiWBNLQ0jNED2iPTSTogp0trdJV/g3uC9/rZZqB5yTGubJ6SOku17jKbUlfk/FVs1 OXUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=qpVVjTLoJ+/c8WyFhjJqFMT6604+NcZvK7dCkdlz8gI=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=PpRb0xby23ekdWl2wqq0ghVNct2gsRgL3kHjsadMQb750Y39a8oRpAFUIgoYvtHJ67 VzdV4XMaPsQaZIFvqMpffsWJHJTZbVTZzwOqKwjuJOWREvL1AZgDHMRv4m7IwI3Yjyvx thFhU54QD4cIOg6mB0Vkwauu/TTiFOI4Dz8MbriPnUZLdaa/DQnXMlNHAZ+ck9IdivNP aO6/JVA1T2uDnkpnNsQD/qaTK4Y1ibPI3lmUqsc4aNj770c0U7lOSEu94aHGIpKQLFGp M4EhMjLvY8EO+wxx847aSQABC1sPrikFHSyHIVZMSKYjcue9ssvpuTluc1zvhio8V7qz lP9g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YXDrFVuo; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id g2-20020a0cf842000000b0067abbc1779bsi496642qvo.4.2023.12.09.11.55.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 11:55:33 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 33302240027 for ; Sat, 9 Dec 2023 20:55:32 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Sndz75sBrz9rxH for ; Sat, 9 Dec 2023 20:55:31 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YXDrFVuo; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33496 Archived-At: You can answer your question by searching for files containing "\longdivisi= on" in your TeX installation (the texmf/ or texmf-dist/ directory). In this= case, the package "unicode-math" already defines \longdivision as a long d= ivision rule (the Unicode x027CC character, if I understand well). The long-term solution would be to ask the developpers of longdivision to p= rovide an alias when the macro is already defined. For now, one possible wo= rkaround is to place a copy of longdivision.sty in the same folder as the M= D file and to replace \longdivision with e.g. \mylongdivision in the follow= ing line: \NewDocumentCommand \longdivision { omm } { Then, you will be able to use \mylongdivision in your document instead of \= longdivision. Of course, you can also remove \usepackage{unicode-math} from your template= if you are sure that you don't need it. Le Saturday 09 December 2023 =C3=A0 09:09:50PM, R (Chandra) Chandrasekhar a= =C3=A9crit : > Dear Folks, >=20 > The .tex file below compiles with lualatex without murmur: >=20 > --- > \documentclass{article} > \usepackage{longdivision} > \begin{document} > \longdivision{516}{27} > \end{document} > --- >=20 > and the result is attached as longdivision.png. >=20 > However, when I compile the equivalent markdown file, md-ld.md, >=20 > =3D=3D=3D > --- > title: "Test of long division" > date: 2023-12-09 > header-includes: > - \usepackage{longdivision} > --- >=20 > This is a test of long division. >=20 > $$ > \longdivision{516}{27} > $$ > =3D=3D=3D >=20 > using >=20 > pandoc --from markdown --to latex --pdf-engine lualatex --standalone > --output md-ld.pdf md-ld.md >=20 > I get the error message >=20 > --- > Error producing PDF. > ! LaTeX cmd Error: Command '\longdivision' already defined. >=20 > For immediate help type H . > ... >=20 > l.192 } > --- >=20 > If I leave out the longdivision package, and use the same command line, i= t > compiles, but the output of the long division is not correct and is shown= in > the image pdf-from-pandoc.png. >=20 > Can someone please tell me which package is "already defining" the > \longdivision command, and also how I might get the desired result from t= he > .md file? >=20 > Thanks. >=20 > Chandra > 2023-12-09 >=20 > --=20 > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/d9e637b2-06d5-4085-9b56-4ba80c9a0299%40gmail.com. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/ZXTGM7kGnjzIksH2%40localhost.