public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: "Илья Волк" <thesun409-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: How to run chem troff with pandoc
Date: Mon, 29 Mar 2021 14:32:52 -0700	[thread overview]
Message-ID: <m235wdk5mj.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <67af0eff-be18-43fd-be82-871116dab6bbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


You'll need two things:

first, you'll need

--pdf-engine-opt=-j

This will cause the chem preprocessor to be invoked.
Then, you'll need to insert raw .ms sections into your
document with the chem macros. If your source document
is pandoc markdown, you can do that with a raw block:

A benzene ring is

```{=ms}
ring double 1,2 3,4 5,6
```

Илья Волк <thesun409-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I use pandoc for produce PDF and docx files.
> -t ms: pdfroff parameter.
> Actually a want to write chemical formulas with pandoc using pdfroff engine.
>
> понедельник, 29 марта 2021 г. в 20:58:38 UTC+3, John MacFarlane: 
>
>>
>> Are you using pandoc to read or to write ms?
>>
>> Илья Волк <thes...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > I use pandoc with ms preproc. How to use chem troff for chemistry 
>> formulas 
>> > with roff -ms preproc?
>> >
>> > Thanks!
>> >
>> > -- 
>> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/017d0265-5af3-40ad-bbd8-d46861e779d6n%40googlegroups.com
>> .
>>
>
> -- 
> 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/67af0eff-be18-43fd-be82-871116dab6bbn%40googlegroups.com.

-- 
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/m235wdk5mj.fsf%40MacBook-Pro.hsd1.ca.comcast.net.


  parent reply	other threads:[~2021-03-29 21:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 10:34 Илья Волк
     [not found] ` <017d0265-5af3-40ad-bbd8-d46861e779d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-03-29 17:58   ` John MacFarlane
     [not found]     ` <m2r1jxkfjz.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-03-29 18:28       ` Илья Волк
     [not found]         ` <67af0eff-be18-43fd-be82-871116dab6bbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-03-29 21:32           ` John MacFarlane [this message]
     [not found]             ` <m235wdk5mj.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-03-29 22:28               ` John MacFarlane
     [not found]                 ` <m2lfa5ioh7.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-03-30  9:08                   ` Илья Волк
     [not found]                     ` <29cbec4e-df69-4b2c-8448-1d0966479f81n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-03-30 16:11                       ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m235wdk5mj.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=thesun409-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).