From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33497 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "R (Chandra) Chandrasekhar" Newsgroups: gmane.text.pandoc Subject: Re: Unable to use longdivision package with LaTeX Date: Sun, 10 Dec 2023 11:01:58 +0530 Message-ID: <39fa8da1-3566-4950-b505-8ae1b8ef235a@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19857"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCQPFLNGRAERBVE22WVQMGQEFHYQGAI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Dec 10 06:32:10 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f184.google.com ([209.85.210.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rCCQD-0004zT-IN for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 10 Dec 2023 06:32:09 +0100 Original-Received: by mail-pf1-f184.google.com with SMTP id d2e1a72fcca58-6ce337ff87fsf2006174b3a.0 for ; Sat, 09 Dec 2023 21:32:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702186328; cv=pass; d=google.com; s=arc-20160816; b=DE8nNS4r/Vqtoyex3G8+5gqVld4vS4h8rRJBmMZjBeu39bNxSwgOIrd4QMWokz5uaT Rzjf58M78BYo8pKZOuY2lYlsv8oAWu5IhRtry1zdSQMnLYEjVlVAITGRD6fRkqEuj/2j 80uW9qemxFuQTEc8KDh3tm5saV2ZKwggH6Ib0EuN/uZTkVwUO4fwaT733B0T/rwD28Qz gpGAr1RFlOzsAzhU9LNDVlhE47AQ+GNYIPFJ3LBEUUAlPlqaC/3MH3Mkryuv5Rs4ohbk lnInahJpytLvWmnKxEcbvJL9+v3bXUgz3ZVyrg9EVitGoqW3UhS4t6nKsF/ksSCU+SUk Ht7Q== 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:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature:dkim-signature; bh=LITsge2MusXlZWamKweihePo0/5ypRPPxHoWfpAR5oQ=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=nbiqs8JDKvB7FjHyN2UzxKWytjndnFEstl3/gGbYQHofqutjcAZ6HEdRglFxfMCyw8 JsIwdBDJsL9IxeRxliCdLhoBVgLz7ydmQWDJTYeHpYnrT/U+qABIfBIINlEQ6YOAvH2i TWoUgc5f+regkfZOMbjgyGE466l56wqIQBeSbgkaX+bNb1de9VBqKsVmYXof3kPTgzwx 5ZjCtFnP+pQ3HTIsPwYslzRMYYTJQmv35zppXbuGQ4qaEdaz+zgrRPJcWj1338L2UwqN RBUEZ3PfX9tMSUNdPZNekwqijVsqh4njv4gbCfEflYZn7+b1cQl0w1pOE9gpkQ6lzZLn ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FDF0fG0F; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52a as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1702186328; x=1702791128; 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 :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=LITsge2MusXlZWamKweihePo0/5ypRPPxHoWfpAR5oQ=; b=YtZxwq1EMGU05xFGxWVapuXqMH2BfZtbn15j8efNfMzSuNcmwbforKofPmPBRR73wl d5DK1PqOPBpjbWYdNKd6KuKVjskUsxU+TWmGLJN4jIbhGdd2viZ0KxThmsMCL4i3l6UI KMqdgpcJh+2sx12RC0xNyEwyoWP5d/Y5/nBBIKVysDulAq5OAepWFlk/aVpGhhPb0CA0 gH/WniDz5Z4mNK9vhb/O844p5ACWGK/0dQf63RVibaaJHCMMfxNBotDJtPX4bxKrD3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702186328; x=1702791128; 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 :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LITsge2MusXlZWamKweihePo0/5ypRPPxHoWfpAR5oQ=; b=ZasBNCxRAxTpk4TlHO1Uz6XJT8Shn47ZmcvruQB42uONrn5hOS4Mzv74y2DIdIsqEK NIt9RQcQcVx2Tst6trfVOLkeNCm6HtNL8oLkXL8rP+rUvW8b95RLSHSRRIYksOVjqg2u RY6ct7ss2f93VhzAB2QH430uIpmw/VlFStsx8ePpvgqhgi5IOpgg81TyZINrbUs5emPv kJ8CZbDgQHZ/vkOV2tgV6Obvp1O5XBFPqvir85pmrHn8BEhE95E4zrjqeYUK+G5ApiTz ct X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702186328; x=1702791128; 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 :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=LITsge2MusXlZWamKweihePo0/5ypRPPxHoWfpAR5oQ=; b=RinSr+EOToXsUH51IV9l3evf75J6RWVU/UiiNpUa0I3OqqdBBooDPobReZk7L6zA8c 5/nUz/QlcoBHSPbvzaXPcjH/2vpUWoY0t/VvvZ8gXfsmkqS1hcNO6hIQ2NVi3/bI8d7o FlSfTPFZP0XLh0ceTJnfxq4b5hEm/VIXa2ITWycTt0EUh7RqfSOHEknNtwbVATLtsTza 3g69DiiUoal/5BfJ6Ekt Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YwYh25zWQf8Ls+oe7KYqVfMwYHNoigmaOQpynVS4eWBbhWInRxC xpofBw+m886Aio8ZS1Od7Fs= X-Google-Smtp-Source: AGHT+IGEp7ddNNWI8f7XzfDFODTflLCSlHNapYMGII8objfcmmgP4Ym+x25zbc7GGMiasNGI/21XQQ== X-Received: by 2002:a05:6a20:3c8b:b0:190:2f5f:f44a with SMTP id b11-20020a056a203c8b00b001902f5ff44amr4212542pzj.3.1702186328209; Sat, 09 Dec 2023 21:32:08 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6a00:6c93:b0:690:ffcd:3bfd with SMTP id jc19-20020a056a006c9300b00690ffcd3bfdls1982191pfb.2.-pod-prod-00-us; Sat, 09 Dec 2023 21:32:03 -0800 (PST) X-Received: by 2002:a05:6a00:2303:b0:6ce:945d:80eb with SMTP id h3-20020a056a00230300b006ce945d80ebmr4449590pfh.2.1702186322736; Sat, 09 Dec 2023 21:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702186322; cv=none; d=google.com; s=arc-20160816; b=igB4ASMw/TxWeTDMTXIkrQdToS7afMozVDHRZ6MAMzDS2W+gY76kxvGkW6qbnOdJBD qB0TPpYYK5ZRU8Mb41+aEkS8hDi9H2Dt8jSUZW0K/zOs8wO4Zv4EwF2wYYKYdDEOi3Ox 5eaDffwYpUyFsxRf+xbOj7AGQweMN/TToTjC4AtPAv3o7nFvgfE73Nbi2ja9F+41SW0G nkbp5PZg/Cv2JgABOqe0/uMCkQwtsT0e9TVwl6I4ImZiW3H2Cl+UiKEjykkwb0Qv0Uo/ Py0sdv136NPjbZ7n2pTRbi5g8joocoGRZHRyfyDU/e8IdtcPNBz56gPj5swjA7sZJZlu QsNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=3dqqQuXxMwSUbwO4wn0GjBSABkzRg+yub3TYJRTpXG8=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=UK7ZZwViNUHViA0pLETm/hOTYT2oFnBZFBMweE3yPOg157FQbvsAbI+kVO06tvpdl1 S4CzTU9rQ1Q+U+Iju9z0t3hsEU9zo3Rlk3yxNvczZoljx0ilwJjg135RC3eT1n+yVAuB iGDWpYfkZaCo1NHc82uqyrveHoXqA3k9mJhC2SY8vefB8/sxxM6coktze+llu7Z13Egk fFy5TGC7+BL/u/pLB9SurIiwGPtt8eTA4ykB944dTWEMx/1+FprPt4GbHwQRQ3Wlsh3F No5CRwlGIMehL9GMT/QYJ3Gpy8N4ZXHkpUdMnu3dLBkz/ECu72sAlB5S+t43WCC29R6n VV7Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FDF0fG0F; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52a as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com. [2607:f8b0:4864:20::52a]) by gmr-mx.google.com with ESMTPS id z8-20020aa78888000000b006ce99cc58afsi312628pfe.3.2023.12.09.21.32.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Dec 2023 21:32:02 -0800 (PST) Received-SPF: pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52a as permitted sender) client-ip=2607:f8b0:4864:20::52a; Original-Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5c66988c2eeso2405164a12.1 for ; Sat, 09 Dec 2023 21:32:02 -0800 (PST) X-Received: by 2002:a17:902:d54d:b0:1d0:7649:38d8 with SMTP id z13-20020a170902d54d00b001d0764938d8mr3639748plf.40.1702186321993; Sat, 09 Dec 2023 21:32:01 -0800 (PST) Original-Received: from [192.168.1.37] ([120.138.12.36]) by smtp.gmail.com with ESMTPSA id q5-20020a170902bd8500b001c9d011581dsm4193525pls.164.2023.12.09.21.32.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Dec 2023 21:32:01 -0800 (PST) Content-Language: en-GB In-Reply-To: X-Original-Sender: chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FDF0fG0F; spf=pass (google.com: domain of chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52a as permitted sender) smtp.mailfrom=chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:33497 Archived-At: Thanks for that. I have now found out that if longdivision is invoked _before_=20 unicode-math, there is no error or warning, but the result is wrong. I have written to the package author describing the behaviour and=20 requesting a resolution. Chandra On 10/12/2023 01:25, Bastien DUMONT wrote: > You can answer your question by searching for files containing "\longdivi= sion" in your TeX installation (the texmf/ or texmf-dist/ directory). In th= is case, the package "unicode-math" already defines \longdivision as a long= division rule (the Unicode x027CC character, if I understand well). >=20 > The long-term solution would be to ask the developpers of longdivision to= provide an alias when the macro is already defined. For now, one possible = workaround is to place a copy of longdivision.sty in the same folder as the= MD file and to replace \longdivision with e.g. \mylongdivision in the foll= owing line: >=20 > \NewDocumentCommand \longdivision { omm } { >=20 > Then, you will be able to use \mylongdivision in your document instead of= \longdivision. >=20 > Of course, you can also remove \usepackage{unicode-math} from your templa= te if you are sure that you don't need it. >=20 > Le Saturday 09 December 2023 =C3=A0 09:09:50PM, R (Chandra) Chandrasekhar= a =C3=A9crit : >> Dear Folks, >> >> The .tex file below compiles with lualatex without murmur: >> >> --- >> \documentclass{article} >> \usepackage{longdivision} >> \begin{document} >> \longdivision{516}{27} >> \end{document} >> --- >> >> and the result is attached as longdivision.png. >> >> However, when I compile the equivalent markdown file, md-ld.md, >> >> =3D=3D=3D >> --- >> title: "Test of long division" >> date: 2023-12-09 >> header-includes: >> - \usepackage{longdivision} >> --- >> >> This is a test of long division. >> >> $$ >> \longdivision{516}{27} >> $$ >> =3D=3D=3D >> >> using >> >> pandoc --from markdown --to latex --pdf-engine lualatex --standalone >> --output md-ld.pdf md-ld.md >> >> I get the error message >> >> --- >> Error producing PDF. >> ! LaTeX cmd Error: Command '\longdivision' already defined. >> >> For immediate help type H . >> ... >> >> l.192 } >> --- >> >> If I leave out the longdivision package, and use the same command line, = it >> compiles, but the output of the long division is not correct and is show= n in >> the image pdf-from-pandoc.png. >> >> Can someone please tell me which package is "already defining" the >> \longdivision command, and also how I might get the desired result from = the >> .md file? >> >> Thanks. >> >> Chandra >> 2023-12-09 >> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/d9e637b2-06d5-4085-9b56-4ba80c9a0299%40gmail.com. >=20 >=20 >=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 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/39fa8da1-3566-4950-b505-8ae1b8ef235a%40gmail.com.