- From: Hammer Functor <address@hidden>
- To: texmacs-users <address@hidden>
- Subject: Re: Default values of arguments for TeXmacs macros
- Date: Sun, 12 Dec 2021 21:37:13 +0800
Dear Giovanni,
Below segments may be helpful:
(tm-define (title-author-info)
(:secure #t)
'(document
(doc-data
(doc-title "(title here)")
(doc-author
(author-data
(author-name "Hammer")
(author-note
(concat
"Anhui University, Hefei, Anhui, China, 230601, "
(hlink "address@hidden" "
mailto:address@hidden")))))
(doc-date (concat "(Dated: (date here))")))))
(kbd-map
(:mode in-text?)
("h a m m e r tab" (insert (title-author-info))))
Sincerely,
Hammer Hu
>
On Dec 12, 2021, at 8:21 PM, Giovanni Piredda <address@hidden> wrote:
>
>
Dear all,
>
>
is it possible to write a macro where some arguments take default values?
>
>
I would like to build for myself a title template which includes the title
>
proper, the date (which isn't "today") and a line for miscellaneous
>
information, and it would be very nice to have a reminder that there is a
>
blank date to fill: the default values might be the reminder.
>
>
Thanks in advance,
>
>
G.
>
Archive powered by MHonArc 2.6.24.