你是否曾遇到过这种情况:眼看就要打印了,却突然发现已经不是12月了,需要把年份改大?(或者更糟的是,打印出来之后才发现的?)你是否希望电脑能自动帮你完成这件事?
你可以在 PTXprint 的版权字段(basic 选项卡,完整视图)中输入类似以下内容:
© 2019\endash\the\year\ My Publishing Organisation
\endash 是短破折号(en-dash,U+2013),比普通的连字符看起来更美观。使用宏比直接从网页示例代码中插入 Unicode 字符更容易识别和输入,当然你也可以直接插入该字符。
\the\year 会以文本形式输出你电脑系统时钟中的当前年份。
\ (反斜杠加空格)用于输出一个空格。如果没有它,year 后面的空格只会被视为 \year 的结束标记而被忽略,最终结果会变成 2023My(以今年为例)。
Have you ever been almost ready to print when you realised it wasn’t December any more, and you needed to increase the year? (Or worse, did you notice that after it came off the printer?) Did you wish your computer could do it for you?
You could put something like this in the copyright field in PTXprint (basic tab, on full view):
© 2019\endash\the\year\ My Publishing Organisation
\endash is an en-dash, U+2013, which looks better than just a hyphen. Using the macro is easier to identify / type from some example code on a webpage than just inserting the unicode character, though of course you could do that.
\the\year outputs the current year from your computer’s system clock, as text.
\ (slash space) outputs a space. Without it, the space after year would just mark the end of \year and get ignored, and you’d end up with 2023My (this year)
机器翻译自 English 显示原文