public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* The \mathlarger command from relsize package does not work for .md -> .docx conversion.
@ 2018-04-21 11:06 J
       [not found] ` <8c5559ab-9ebd-45e3-9a1b-4a2e164978b6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: J @ 2018-04-21 11:06 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1274 bytes --]

The \mathlarger command from the relsize package works for .md -> .pdf 
conversion but not for .md -> .docx conversion. 

Could you help to suggest how to make it work for .md -> .docx conversion ? 
Many thanks !

$ pandoc MWE2.md --mathml --filter=pandoc-crossref --filter=pandoc-citeproc 
-s -o MWE2.pdf  --pdf-engine=xelatex
$
$ pandoc MWE2.md --mathml --filter=pandoc-crossref --filter=pandoc-citeproc 
-s -o MWE2.docx
[WARNING] Could not convert TeX math ' \lim\limits_{r\to\infty} 
U_{X}^{\sigma} = -\mathlarger{\frac{1}{r}} \qquad(1)', rendering as TeX:
  igma} = -\mathlarger{\frac{1}{r}} \qquad
                     ^
  unexpected "{"
  expecting "%", "\\label", "\\nonumber" or whitespace
$


-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8c5559ab-9ebd-45e3-9a1b-4a2e164978b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2277 bytes --]

[-- Attachment #2: MWE2.md --]
[-- Type: text/x-markdown, Size: 552 bytes --]

---
geometry: top=3.18cm, bottom=3.18cm, left=2.54cm, right=2.54cm
mainfont: Times New Roman
CJKmainfont: FangSong
fontsize: 12pt
header-includes:
    - \usepackage{caption}\captionsetup{singlelinecheck=false,justification=centering}
    - \usepackage{setspace}\onehalfspacing
    - \usepackage{xcolor}
    - \usepackage{relsize}
---

The *exact* asymptotic behavior of the exchange-energy density of any finite many-electron system is known, and is given by 

$$ \lim\limits_{r\to\infty} U_{X}^{\sigma} = -\mathlarger{\frac{1}{r}} $$ {#eq:asymptotic}

[-- Attachment #3: MWE2.docx --]
[-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 9723 bytes --]

[-- Attachment #4: MWE2.pdf --]
[-- Type: application/pdf, Size: 40245 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The \mathlarger command from relsize package does not work for .md -> .docx conversion.
       [not found] ` <8c5559ab-9ebd-45e3-9a1b-4a2e164978b6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-04-21 19:41   ` John MacFarlane
       [not found]     ` <m2r2n8l54i.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2018-04-21 19:41 UTC (permalink / raw)
  To: J, pandoc-discuss


`\mathlarger` is not currently support by jgm/texmath, the library we
use for tex -> docx math conversion.  Nor is there a good prospect of
supporting it soon, since the underlying equation model doesn't include
sizes.  I'd recommend adding a latex macro redefinition for this to
your document

    \renewcommand{\mathlarger}[1]{#1}

This will allow pandoc to compile it, though the size won't be larger.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The \mathlarger command from relsize package does not work for .md -> .docx conversion.
       [not found]     ` <m2r2n8l54i.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2018-04-22  3:31       ` J
  0 siblings, 0 replies; 3+ messages in thread
From: J @ 2018-04-22  3:31 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1133 bytes --]

Dear John,

Thank you for your knowledgeable comments !

On Sunday, April 22, 2018 at 3:41:18 AM UTC+8, John MacFarlane wrote:
>
>
> `\mathlarger` is not currently support by jgm/texmath, the library we 
> use for tex -> docx math conversion.  Nor is there a good prospect of 
> supporting it soon, since the underlying equation model doesn't include 
> sizes.  I'd recommend adding a latex macro redefinition for this to 
> your document 
>
>     \renewcommand{\mathlarger}[1]{#1} 
>
> This will allow pandoc to compile it, though the size won't be larger. 
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5c267735-d10f-4f0a-8d7b-b5e3961cf275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1757 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-22  3:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-21 11:06 The \mathlarger command from relsize package does not work for .md -> .docx conversion J
     [not found] ` <8c5559ab-9ebd-45e3-9a1b-4a2e164978b6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-04-21 19:41   ` John MacFarlane
     [not found]     ` <m2r2n8l54i.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-04-22  3:31       ` J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).