如何在 Typst 中重新创建 \LaTeX 的结果?

问题描述 投票:0回答:1

在排版语言 Latex 中,宏

\LaTeX
输出 Latex 徽标:

如何在 Typst 中获得类似的结果?

背景: 这应该作为如何操纵角色位置的示例。

latex typst
1个回答
0
投票

这是一个独立的 Typst 文档,它定义了

LATEX
函数并使用它:

#let LATEX = {
  [L];box(move(
    dx: -4.2pt, dy: -1.2pt,
    box(scale(65%)[A])
  ));box(move(
  dx: -5.7pt, dy: 0pt,
  [T]
));box(move(
  dx: -7.0pt, dy: 2.7pt,
  box(scale(100%)[E])
));box(move(
  dx: -8.0pt, dy: 0pt,
  [X]
));h(-8.0pt)
}


It is possible that #LATEX will soon be obsolete.

Screenshot of a rendered PDF which displays the phrase

© www.soinside.com 2019 - 2024. All rights reserved.