groff - Combine eqn math in pic labels -


i want add math equations pic labels. how can write such thing, example

box "this $1 on 2$ test" "using math in pic labels" 

. know of ctan circuit_macros, require tex document. want document stay in roff -ms format.

for example output of

printf ".eq\n1 on 2\n.en" | eqn |groff -tps > 1over2.ps 

is see below.

enter image description here

i try luck macros... or there inline way define .eq text?

sorry guy's slow. solution comes inline equations, defined delimiters:

printf '.ps\nbox "this a1 on 2b test" ""'\ '"using math in pic labels" wid 2 ht .7\n.pe' | pic|eqn -tps -dab | groff -tps > testbox.ps 

gives:

enter image description here


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -