Oh oh. Tooo many mistakes. What was i thinking. Will try these. Thanks. On Tue, Aug 16, 2022, 13:17 G. Branden Robinson < g.branden.robin...@gmail.com> wrote:
> At 2022-08-16T12:56:30+0300, Riza Dindir wrote: > > I am using groff 1.22.4 on FreBSD 13.1. Wanted to write inline > > equations (in a document that uses ms macros), and it does not give me > > any inline equations. I must be missing something or doing something > > wrong. > > > > Here is my simple document. > > > > .TH > > Inline math > > Not related to your issue, but I think you mean "TL", the "title" macro, > not "TH", which is useful only inside tables ("TS"/"TE"). > > > .NH > > Start > > .LP > > .EQ > > delim $$ > > .EN > > .LP > > This is some paragraph with inline math: $sum from 1 to 10 = 5 + x$. > > > > I do process this with > > > > pic inline-math.ms | groff -ms > main.ps > > > > But all I get in the document is a centered line with delim $$ > > following with the paragraph that is given as the last line in the > > document. > > > > How could I do inline math expressions in paragraphs? > > The equation preprocessor is eqn, not pic. > > Try this. > > eqn inline-math.ms | groff -ms > main.ps > > You can also do this. > > groff -e -ms > main.ps > > Regards, > Branden >