Y. Y. - Прикреплённый пост

[Recent Entries][Archive][Friends][User Info]
[Login] [Home] [Recent comments] [News] [Sitemap] [ljr_fif] [Update journal] [Customize S2]
2030-07-19
00:29

[Link]

Previous Entry Add to Memories Tell A Friend Next Entry
Прикреплённый пост
[Текст записи пропущен. Вы находитесь в режиме детального просмотра дерева комментариев.]

(21 comments | Leave a comment | Uncollapse)

Comments
 
[User Picture]
[info]yy
2024-10-11 18:59 (Link) [1]
Жирные математические формулы
Как сделать в TeX математические формулы, которые жирнеют если окружающий текст жирный: [1] (linguisticturn, answered Feb 3, 2022 at 20:07, edited Feb 5, 2022 at 21:05). Полезно, например, для формул в названиях разделов. Это ответ на вопрос [2] (``How to define a macro that holds the value that \f@series assumes for bold?'', linguisticturn, asked Jan 27, 2022 at 17:32, edited Jan 27, 2022 at 17:46).

[1]: https://tex.stackexchange.com/a/632576
[2]: https://tex.stackexchange.com/q/631716
[User Picture]
[info]yy
2024-10-17 13:24 (Link) [2]
Скопирую на всякий случай. Цитата:

This 'weight-transparent \bm' command I will call \WTbm. Here is one possible definition:

\def\WT@in@#1#2{\edef\WT@Aux@in@{\noexpand\in@{#1}{#2}}\WT@Aux@in@}
\DeclareRobustCommand{\WTbm}[1]{\WT@in@{b}{\f@series}\ifin@{\bm{#1}}\else{#1}\fi}

[...]

Furthermore, we can also exclude certain specific weights from counting as bold for the purposes of our \WTbm. For example, in order for the weight whose descriptor is eb to not count as bold, do the following: in any of the above definitions, replace the appearance of \bm{#1} by {\def\excl{eb}\ifx\f@series\excl#1\else\bm{#1}\fi}.
Powered by LJ.Rossia.org