From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28698 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Equation numbers and newlines not rendering as I expect in docx generated from LaTeX Date: Mon, 28 Jun 2021 10:12:13 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25432"; mail-complaints-to="usenet@ciao.gmane.io" To: "Rached A." , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB6UF5CDAMGQEKB4TTQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 28 19:12:30 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f192.google.com ([209.85.215.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lxuo9-0006Nj-0y for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 28 Jun 2021 19:12:29 +0200 Original-Received: by mail-pg1-f192.google.com with SMTP id x7-20020a63db470000b029022199758419sf12431351pgi.11 for ; Mon, 28 Jun 2021 10:12:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624900347; cv=pass; d=google.com; s=arc-20160816; b=l+KOCIcAPC7fAc9YJAGyJN0LI31sGFNdAPEdtCq/lvBchS0Gv3q4qkDNywMbSwihhx 3CLq5FbbkmvQDlKeEUNdeJgG3FGrgs42YAVQgGbOlpeV3nqB5eG4b/JQS8LvkHKetyQm eoFBl9y9FTsOQlEjKuQHIdO55FaVx+nznj98YrCLT7rW5EglGPvwHt7pHO6FCoqqtSAP BfCaurTK6bElrBmVo9ScSQyltpn+ek89NmQ3Zg16dFiJG6L+d24pU4dnnjituoBct7vb o1Kp/IMugTPq4dBQGnYAHq7bPdOkNnQ4ZQ2OobY6GVJTNZVUIYdSuXf64mMzYlYTLmEW jm/Q== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=ziqiSlyYbaXytbrqh5TmgWp1C3rYAZIK2xFoYusiIf0=; b=Ua9e7Z0fJz9BXudnfPECICScf/rrVNQbb8lteSF2y4N4sFmkeTWP/fNJjxH7KeKWp/ Y/QzgT26uMJHIb5/o7FNMOhcxaJDdWm87ugcJYs8sN/gR3LtWmAMjfRuHtF/1dAwOWBC Pb2Pt05T5GYRUV33GEFnIKH0hLjKjnJQs49ftstlH/I0VY8/SU/yDCwb4gmWK6X4w2Ce q/UJvYOXIZ9qpDDEaEKucHBHbWdMOuT1NS7i/A7HrLCLWDmh+M762THQcyInvIT7/Zw9 q5fknFIxIIwEoSe6xlFNxZ7mrF7gq/EaA0qLpqQlfmaaQkjxhPiJrhzag5SUoFS/3EZV CxBw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BBCXGFAz; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ziqiSlyYbaXytbrqh5TmgWp1C3rYAZIK2xFoYusiIf0=; b=nNyuDyrzode/G2FuOlQUrHbdoMLG3nmIk+OMPM2i7/xwZWhVvSYitlo/MGAQ7Bebb+ 82dt3QL5sXNN2eTF2sdK9rItzF7BkjTO0NLAE1e/zu44aJi1pY0iDGHG+oyBngg2RW1/ pheaALeoizDmqn5SOniw3wvSajC6sD1ecggxA3Z+ezklGVC45nf7T91R2ki+/9mn+d6L CamaK4vEenGZGtaby7YqWM7QGC7NB4pfA3m7/5c0+nD0Ml0guztkOt091rDfP7QLSZ0o 2xWH+Ypi+RiJCOBUuHoffOh7hNPdalcyfLoLqNdcXJN/q7MTvhZ40l/0D+E61oBq6n1S UQ4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ziqiSlyYbaXytbrqh5TmgWp1C3rYAZIK2xFoYusiIf0=; b=sSnREY9rJF96NrGMAaVKSau6rFdiLREDjvOIBBf+cYO+EIBgptExDHhFwcUj/q8nbY e/6xZfFMioLeVkHLEbc3iaMoY07Z0iHyjBf4xpYT7zfqOtsAxTZjHHD/335ETUi4mixK 1kFyxXtKDr01FIqw8UrIbui/zzpClcnlkOn/nKY1DRdZxRvhfjO3ACFtFChKEQ5S1cZ0 SYz4nSVP8TTP+Ba3yMqXywnpbZijUm2UqmAhg+l+TXBOXdshGiKhVH00060AVwBRnEyk Mq4U96Jdh6BwTT7HxtRQ4gCRt3ot4PCVdawUWleDZjU4I889kVtMGHtxRXR78XhsgCUf OhhQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530X8sDux/zO+gkIwdSxjK5u1RtccPaT2ES6CD3OP7Ahq6tUiXJD m3/fYMe/n4rYhijy+d2I548= X-Google-Smtp-Source: ABdhPJzygQg63Jvg+pO/qLBgUqmQ/cP2hUm6z+HEerDW9FYP9gbPMwgw+aUujGedx95UrJxT/+uEuw== X-Received: by 2002:a62:1c05:0:b029:305:5230:79f7 with SMTP id c5-20020a621c050000b0290305523079f7mr25656934pfc.80.1624900347784; Mon, 28 Jun 2021 10:12:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:1547:: with SMTP id 68ls8266523pfv.6.gmail; Mon, 28 Jun 2021 10:12:25 -0700 (PDT) X-Received: by 2002:a63:5966:: with SMTP id j38mr23833658pgm.451.1624900345837; Mon, 28 Jun 2021 10:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624900345; cv=none; d=google.com; s=arc-20160816; b=Amq/fg4B9QfcW759lBLz3nmyxD3CYGksIQs4088dNlipRgjRrGnUNQRDMiEKapN4CM F+5iu+kxQXBTC8OP4Ww0L7pZFHYsVDZgDzc7T7Ap1kUMKmZkgs8+ZF2DyIRgnxxMqpbU IIkmHGgiP0aUQ/K92m4wJO50nWfuMU7D7jAExHSin7QZGPCRnj50UpjGL2hfCoTCLuNM hVKDcGKucFQ3haJ8QxrdZCnvf9HkqLNaWrwW9ywHg5Sb1GAy8Phjz887tp7vajWW8E5o L6LYNjoe+y/58z/MsT2fuHPD/kKwVaNcKyqL0W61Dn6m7S2TJkkjfLljM2vmH1XbmIxX WLBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=8w4Gnr3Joj0SuTMGeLyBoIGHRRS1K7sP+pGCoYiOlxk=; b=GJ7upwFlS3TAow8hcx/vJrNmnGE23Nme3+5/l4RfzBM/6XScfYaL1Ost/FBEQne8Em oGoFX+Sit5+lubX7si5n+gXvse8vFWxngjGJUCO8C2yfXvgUwI1Oq+yqCnZr1st1UAW7 7gmuigZ8NDLDVbehr1u+ktvlLjvT1x+ZwUbcq52QnxytH3OMBd+2Y6RcAqlU2ttkxbYB LfndCFkAK02f/lSUk4GMJbyXBdQustQMQyHB3sq4OA2WH01pOGYbfnO3mD/5a0CqXFDL V4QmCesEFZgqaaJp+nsFLLEaYeTZzaPSJcoMe6AYr3YsYxUCF/zxgij9LfNbAjay9/Nf 3r8A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BBCXGFAz; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com. [2607:f8b0:4864:20::533]) by gmr-mx.google.com with ESMTPS id r7si1539210pjp.0.2021.06.28.10.12.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Jun 2021 10:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) client-ip=2607:f8b0:4864:20::533; Original-Received: by mail-pg1-x533.google.com with SMTP id e20so16023280pgg.0 for ; Mon, 28 Jun 2021 10:12:25 -0700 (PDT) X-Received: by 2002:a62:d14f:0:b029:30b:4937:dce3 with SMTP id t15-20020a62d14f0000b029030b4937dce3mr10271537pfl.10.1624900345334; Mon, 28 Jun 2021 10:12:25 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id c24sm16450501pgj.11.2021.06.28.10.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 10:12:24 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id F16B1A249; Mon, 28 Jun 2021 13:12:13 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BBCXGFAz; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:28698 Archived-At: Equation labels and references are not yet supported in the latex reader. You could submit an issue for this so we can track it. It's a bit complex; we need to do conversions among multiple math formats, and they all have their own way of doing references. In addition, texmath (which does the equation conversion) doesn't have access to all the information pandoc has about references. Another relevant issue is https://github.com/jgm/pandoc/issues/2851 "Rached A." writes: > Dear community, > > The following latex markup renders as expected in in overleaf: > > Here is equation \ref{eq:test} > \begin{equation} \label{eq:test} > \begin{split} > a & = b \\ > & = c > \end{split} > \end{equation} > > Roughly looking like this in the complied pdf: > > Here is equation 9 > a = b > (9) > = c > > When I try converting the .tex file to .docx using pandoc as shown below, > three problems arise: > > 1. The equation is not referenced properly in the paragraph. It looks like > this in the docx: > Here is equation [eq:test] > > 2-3. The equation itself is not labelled with a number AND there is no > newline in the equation. It looks like this in the docx: > a = b = c > > This is the command I ran to perform the conversion: > pandoc main.tex --filter /usr/local/bin/pandoc-crossref -C --csl > ./springer-basic-brackets --bibliography=mybib.bib -N --wrap=preserve -o > mydoc.docx > > pandoc 2.14.0.2 > pandoc-crossref 0.3.12.0 > > Could someone kindly point me in the right direction to resolve this issue? > > -- > 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/msgid/pandoc-discuss/d9a2ff0a-7f05-4ee6-b5c4-cb650fcc66a5n%40googlegroups.com.