Hi,

I have some working LUA code in the preamble of a scrlttr2 returning the
Expected Date of Delivery (EDD) from the Date of the Last Menstrual
Period (LMP). It works and is not the issue here so I have abbreviated
for explanatory purposes

\usepackage{luacode}
\begin{luacode*}
function exd(refdat)
...
\end{luacode*}
\newcommand\EDD[1]{\directlua{tex.sprint(exd("#1"))}}


\newcommand\LMP{2017-01-01}


which when entered as ERT

\EDD{\LMP}

places the calculated EDD (date) in the text.

How to I create a local layout so that I can enter the LMP like I can
do with the Date in the Text window (instead of the Preamble)?

greetings, el

--
Dr. Eberhard W. Lisse  \        / Obstetrician & Gynaecologist (Saar)
[email protected]            / *     |   Telephone: +264 81 124 6733 (cell)
PO Box 8421             \     /
Bachbrecht, Namibia     ;____/

Reply via email to