From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30003 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mujtaba Alam Newsgroups: gmane.text.pandoc Subject: Pandoc works with mhchem but not chemfig Date: Wed, 19 Jan 2022 04:10:04 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4218_507176109.1642594204176" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22862"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDWMLW5T2AGRBHP7T6HQMGQEEZZFVZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 19 13:10:08 2022 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 1nA9mx-0005hz-GH for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 19 Jan 2022 13:10:07 +0100 Original-Received: by mail-ot1-f60.google.com with SMTP id a89-20020a9d2662000000b005909e4d9585sf1305942otb.18 for ; Wed, 19 Jan 2022 04:10:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Pyr6x89blYtPrvXuUpBzs8UonbTAdAVo2ZRmD8YNaac=; b=XFdcPzAPmgb5zI6PJGTJb03NIZxrvrFM9jY9hBThhpTXYcZgvsCbF+ZIDY35jDOKn1 gZcxhj1+YEiHXRqSUMIDUWBgdgUhSn7cUle+xM6XQzvA3UpiWys3fMPnTEeRU2l4QI2a 4iuUwsSxoK/20aajprhyip8KM/h35MFJCrg+4xbNUGV9gDj5qvAGbPaE3oYuEbbplvtE FoB3tv7CMwUnTNB767puVDhPvyJtW7qhubsAMNiTdIxuNAyIVXTxZn9M+tlZY8RDiZUJ nu88SQTfBoQb78MVQ6RLVZYmjswj08lzeyWeNwSom/rV8N7ZsisURbFIG2Auj4ot7aCK 6gfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=Pyr6x89blYtPrvXuUpBzs8UonbTAdAVo2ZRmD8YNaac=; b=DFvbkBDijekgzqtvoFLc9O7UYD7T36lYyzjFqxHMcFkDNi7F/2DLgnM1t/0Fho0nHL oyiaFDA0IbgjyfBzFH65cWEuyQ5IPWj6qtfMYYx0i8TMNYrwu7lOKQ7OuWAQ/8L1r/Ij jMkdPgl/HvMPq7ydD0rtEzEt/UWcJVy6/iPUWmMP0jTXt3GXChPE96Oe11Ic+N0PE1vE y10kJiBKAV4A6vxDsZeVFTyGyO5w25sKQATlbELxFJouj1e8tqby5IKlFjcn1w/ICR5i JgbhgMy+MHe2TY7qXJVZtqNtiT6aCGRHSGhIXvPss+hvG1/UTtva06W/EZ8gUXC9+mw5 CYUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id: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=Pyr6x89blYtPrvXuUpBzs8UonbTAdAVo2ZRmD8YNaac=; b=F56tpkIvCOT+DGubjliv2Y5SF1k7GTdhzF7I4H83PhhPWFWd7VmvhFgbmH9/nDUtwd hSkZOnBwtFlTqWx56cOYfQrG0+BWpemz/dS5OISRbUTcMG7mqbnnSBsY03ONO8HfUg0s lzpY9z+1vszKz+dVKBB4z5S7iFvKYJKD8IRyF9Lxn+CUKtOc3xuUbmkAaoH7/YNIyPtK h5SPtPs10I9YTmDg54uHlhE9Nxo+5ZiN2E+sFLRHhauqeOvjI04aIFpFNJjgRAlGgfrh K+ZX//48QJDzgqrluiYrbR/dgpcbt7WhVEUBBsTTH8sWP6fyaWUt+Z9J6nKlSJRY8Dtf tDvA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531qHzmpG7UjXQ/+C91lPLPgQIVr1zvj0UOWcUKpnk0aq/XWNMmH 0JNhSV52KAtvKeHJLcED1N0= X-Google-Smtp-Source: ABdhPJycxNJzKsjbayOzjTDuGziJW/pE4Zs6eyzA9Ltn82iEY1j7oAZ5IRoJWoya3cdubE1ED8hUxg== X-Received: by 2002:a05:6808:1985:: with SMTP id bj5mr2738224oib.146.1642594206252; Wed, 19 Jan 2022 04:10:06 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:1412:: with SMTP id w18ls544809oiv.4.gmail; Wed, 19 Jan 2022 04:10:05 -0800 (PST) X-Received: by 2002:aca:2409:: with SMTP id n9mr2670553oic.120.1642594204855; Wed, 19 Jan 2022 04:10:04 -0800 (PST) X-Original-Sender: mujtabaalam9-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:30003 Archived-At: ------=_Part_4218_507176109.1642594204176 Content-Type: multipart/alternative; boundary="----=_Part_4219_1125275895.1642594204176" ------=_Part_4219_1125275895.1642594204176 Content-Type: text/plain; charset="UTF-8" Hello, I'm trying to use pandoc to convert files to html and pdf. I have all the necessary libraries (mhchem and chemfig) installed on MikTex (global installation, so it's in the Program Files folder). However, when I run a pandoc command to convert to html, it seems to work with mhchem but not chemfig. Examples: ``` pandoc $\ce{CO2 + C -> 2 CO}$ ``` gives ``` [WARNING] Could not convert TeX math \ce{CO2 + C -> 2 CO}, rendering as TeX: \ce{CO2 + C -> 2 CO} ^ unexpected control sequence \ce expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace ``` and ``` pandoc --mathjax $\ce{CO2 + C -> 2 CO}$ ``` gives ```

\(\ce{CO2 + C -> 2 CO}\)

``` but ``` pandoc -s test1.md -f markdown+smart --mathjax -o test1.html ``` gives an html file with the mhchem (/ce) code correctly rendered but with the chemfig (/chemfig) code rendered as plaintext, and the "\usepackage{chemfig}" line ignored entirely. -- 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/a22f9312-c3c5-4454-bd38-6a504e08225cn%40googlegroups.com. ------=_Part_4219_1125275895.1642594204176 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,
I'm trying to use pandoc to convert files to html and pdf.
I h= ave all the necessary libraries (mhchem and chemfig) installed on MikTex (g= lobal installation, so it's in the Program Files folder). However, when I r= un a pandoc  command to convert to html, it seems to work with mhchem = but not chemfig.

Examples:

```<= /div>
pandoc
$\ce{CO2 + C -> 2 CO}$
```
gives
 ```
[WARNING] Could not convert TeX math = \ce{CO2 + C -> 2 CO}, rendering as TeX:
  \ce{CO2 + C -> 2 CO= }
     ^
  unexpected control sequence \ce
&nb= sp; expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace
=
```

and 

```
pandoc --mathjax
$\ce{CO2 + C -> 2 CO}$
= ```
gives
```
<p><span class=3D"math= inline">\(\ce{CO2 + C -&gt; 2 CO}\)</span></p>
```

but

```
pandoc -s test1.md -f markdown+smart --mathjax -o test1.html
`= `` 
gives an html file with the mhchem (/ce) code correctly = rendered but with the chemfig (/chemfig) code rendered as plaintext, and th= e "\usepackage{chemfig}" line ignored entirely.

--
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/a22f9312-c3c5-4454-bd38-6a504e08225cn%40googlegroups.= com.
------=_Part_4219_1125275895.1642594204176-- ------=_Part_4218_507176109.1642594204176--