From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28692 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Rached A." Newsgroups: gmane.text.pandoc Subject: Re: Equation numbers and newlines not rendering as I expect in docx generated from LaTeX Date: Sat, 26 Jun 2021 14:40:10 -0700 (PDT) Message-ID: <8ca05161-e11b-4b67-bdda-b63e3c864828n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3270_1877662125.1624743610634" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3599"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCU4LEV43EKRBO5532DAMGQES3LBJTA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jun 26 23:40:14 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lxG29-0000hX-TT for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 26 Jun 2021 23:40:13 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id e28-20020a9d491c0000b02903daf90867besf9256900otf.11 for ; Sat, 26 Jun 2021 14:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=8OaRgOkwW1TROdmWzDx94EtnBrHoLdeW0dU1fJ2ViyY=; b=Ww8k7epTAca8rPG7t+XLvx2CU8o1s1YddEclzWeSH+eicGzHz5Poesn+FFFU7Q2X7b Tm/t3M3BOFNtVtOoJOKNc5VaGAO0C4IUdCgWhlQlCOVmShEDcDCCcYxaak5GGhrVKngA TFDiuQJTZybiLh4hbndcZVdEqTIA/jgNKJ3AfewgQPap3ddYFF9KeHcEaZrmJHbZdeG4 xlvps+UjDKoNpAWgHDX7/4Jmo4sUjbkbp7sjViixz4bSpOieStSBvJ07SvaqJH2LuGGV zWsjxt0n7KeaDmKBNNv7o3XZ4hkdy6WOfx7Fq5/SXFdlE7U03sfGv+NAS5QnvYpsxGvA aVPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=8OaRgOkwW1TROdmWzDx94EtnBrHoLdeW0dU1fJ2ViyY=; b=RJ8Wog9ti6dcDVj0w2CQy618ZxxzzLp8S+KBbvYoXSnM6kVeaTygtmgsEbYuXpCJT3 OTNrv/bKYoeHPzHhWUO++OaTHWe0R6j3roikZdnrJP3MnpmFU8xjd8ck3r9o1MERt8N8 cRmK+AtzJooPNTULyCya6tHe1odTz8dyEdoAa/xsdUUSK2OhH4rINFx9P1lOULVuF6fR vWIdJlMwIYprXjzv7Ti96VDY1ldPoMNwwflSEkMuJdKsISfKf6tthwz4FEpo3h/SfsRC IFuPMYSW1GiIrQzD0k6cNoKkpAdaPB8Me6BZBs61DsDjIGOjavS3GhjF6TfvlLzgELpR s5cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=8OaRgOkwW1TROdmWzDx94EtnBrHoLdeW0dU1fJ2ViyY=; b=QSndmlenfMn2IDFh3gPyMREywjrEM8/qPZsHnUkHoZK+d7FjCAJF8HdoCXAfVRB+vn UkOClNeHDbyfkeSP8rK2vr+OKASdD2SjIggZtyUdyoYPNnqIV039bJHdKrvKR6z52Nvk yeZ8HQiTqYyDqSwqWCvwjUoTBOaHIz70PDatY1LLR+wvH95LarBz7OqY2Dl+T1mWa5H5 s7rzG4c4eDeX1MHcEZwRYnjIdIUaji44epX8Uf0QP2cFD+OLPPRBm2d+Uvjn27OhBdQA SlxJuUrpJFXfPUpXPl5dGoe6i006OGQlNNp0Ac4zjGwSqrAvszQgmrqmVUT4GCDcg4oQ 8Bdg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532HqCwO+6GTM989qMUvDLlo9ibNpqsCkQqugOkoTRBRycNUNOfM /UbceL+ml9SoxkoGgPCpJv4= X-Google-Smtp-Source: ABdhPJxEQX/8J1brLyIYhMAYpE+KgKwK4xXvsjB1lo8/mitELgFzEXTXMQBU9szZt02pGsRaHQzSFQ== X-Received: by 2002:a05:6830:1be6:: with SMTP id k6mr15564836otb.219.1624743612951; Sat, 26 Jun 2021 14:40:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:604c:: with SMTP id v12ls4949238otj.6.gmail; Sat, 26 Jun 2021 14:40:11 -0700 (PDT) X-Received: by 2002:a9d:4d8c:: with SMTP id u12mr12373046otk.67.1624743611338; Sat, 26 Jun 2021 14:40:11 -0700 (PDT) In-Reply-To: X-Original-Sender: rached.aL-Re5JQEeQqe8AvxtiuMwx3w@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:28692 Archived-At: ------=_Part_3270_1877662125.1624743610634 Content-Type: multipart/alternative; boundary="----=_Part_3271_846427433.1624743610634" ------=_Part_3271_846427433.1624743610634 Content-Type: text/plain; charset="UTF-8" I would like to add that figure references seem to render as expected in the docx. Only equation references seem to be problematic. E.g. Here is Fig. \ref{fig:A} \begin{figure}[H] \centering \includegraphics[width=5in]{figures/file.png} \caption{\doublespacing ...} \label{fig:A} \end{figure} On Saturday, June 26, 2021 at 3:25:01 p.m. UTC-4 Rached A. wrote: > > 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/8ca05161-e11b-4b67-bdda-b63e3c864828n%40googlegroups.com. ------=_Part_3271_846427433.1624743610634 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I would like to add that figure refer= ences seem to render as expected in the docx. Only equation references seem= to be problematic.
E.= g.
Here is Fig. = \ref{fig:A}
\begin{figure}[H]
\centering
\inclu= degraphics[width=3D5in]{figures/file.png}
\caption{\doublespacing ...}\label{fig:A}
\end{figure}

On Saturday, June 26, 2021 at 3:25:01 p.m. UTC-4= Rached A. wrote:

Dear community,

The f= ollowing latex markup renders as expected in in overleaf:
=
Here is equation \ref{eq:test}
\begin{equat= ion} \label{eq:test}
=C2=A0=C2=A0=C2=A0 \begin{split}
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 a & =3D b \\
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 & =3D c
=C2=A0=C2=A0=C2=A0 \end{split}
\end{equat= ion}

Roughly looking like this in t= he complied pdf:
<= br>
Here is equati= on 9
a =3D b
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (9)
=C2=A0 =3D c

When I try converting the .tex file to .docx using pandoc as sh= own below, three problems arise:

1. The equation is not referenced properl= y 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 =3D b = =3D 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=3Dmybib.bib -N --wrap=3Dpreserve -= o mydoc.docx

<= /span>
pandoc 2.14.0.2=
pandoc-crossref 0.3.12.0

Could someone kindly p= oint me in the right direction to resolve this issue?

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/8ca05161-e11b-4b67-bdda-b63e3c864828n%40googlegroups.= com.
------=_Part_3271_846427433.1624743610634-- ------=_Part_3270_1877662125.1624743610634--