Бывало ли, что вы были почти готовы к печати, а потом поняли, что декабрь уже закончился, и вам нужно было увеличить год? (Или, что еще хуже, вы заметили это уже после того, как книга вышла из принтера?) Хотели бы вы, чтобы компьютер сделал это за вас?
Вы можете вставить что-то вроде этого в поле копирайта в PTXprint (вкладка Basic, режим Full view):
© 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)