ConTeXt 信件模块反向地址

ConTeXt 信件模块反向地址

我一直在使用上下文字母模块,并试图删除反向地址,但我遇到了困难

\usemodule[letter]

\setupletterstyle[backaddress=no] % trying to switch off backaddress

\setupletter
    [fromname={The Author},
     fromaddress={Hidden Street 2\\57895 Mystery town}]

\setupletter
    [toname={Mike Wilson},
     toaddress={Linden street 12\\78569 TeX City}]


\startletter
    [opening={Dear Reader,},
     subject={Step by step guide to write a letter},
     closing={Greetings from the Author}]

    Thus, I came to the conclusion ...

\stopletter

不起作用。

\setupletterstyle[backaddress][alternative=no]

上一本手册是 2010 年的。其间有什么变化吗?

答案1

内部有些东西已经改变,文档尚未更新。主要是\setupletterstyle命令已被替换为\setupletterlayer。仅供参考,以下是可用的手册:

每当我使用通信模块时,我通常只是浏览源代码找到如何修改事物的方法。诚然,对于非高级用户来说,这可能不是最好的方法。

\usemodule[letter]

\setupletter
    [fromname={The Author},
     fromaddress={Hidden Street 2\\57895 Mystery town}]

\setupletter
    [toname={Mike Wilson},
     toaddress={Linden street 12\\78569 TeX City}]

\setupletterlayer
    [backaddress]
    [state=stop]

\startletter
    [opening={Dear Reader,},
     subject={Step by step guide to write a letter},
     closing={Greetings from the Author}]

    Thus, I came to the conclusion ...

\stopletter

相关内容