# physics/trace-capital-to-Tr

Collapse a bare Trace with no following argument group to the local Tr anchor.

https://texform.dev/rules/physics/trace-capital-to-Tr

## Metadata

| Field | Value |
| --- | --- |
| Key | physics/trace-capital-to-Tr |
| Level | authoring |
| Fidelity | render |
| Enabled by packages | physics |
| Profiles | Authoring, Faithful, Corpus, Equiv |

## Rewrite patterns

### bare

From:

```latex
\Trace
```

To:

```latex
\Tr
```

## Examples

Examples show the rule in isolation, not a complete normalization profile.

### Bare

Before:

```latex
\Trace\rho=1
```

After this rule:

```latex
\Tr\rho=1
```

Packages: base, physics.

Rendering verified with the declared packages.

### Scripted bare

Before:

```latex
\Trace_A\rho
```

After this rule:

```latex
\Tr_A\rho
```

Packages: base, physics.

Rendering verified with the declared packages.

## Triggers

- [\\Trace](https://texform.dev/latex/commands/Trace)

## Produces

- [\\Tr](https://texform.dev/latex/commands/Tr)

## Touches

- [\\Trace](https://texform.dev/latex/commands/Trace)

## Downstream

- [physics/named-fn-to-operatorname](https://texform.dev/rules/physics/named-fn-to-operatorname): Rewrite physics-only named functions to operatorname and expand their auto-sized arguments.

## Same family

- [ams/operatorname-to-named-function](https://texform.dev/rules/ams/operatorname-to-named-function): Rewrite plain operatorname arguments to equivalent base named-function or named-operator commands.
- [ams/idotsint-expand](https://texform.dev/rules/ams/idotsint-expand): Expand idotsint to explicit repeated integral surfaces.
- [base/limits-drop](https://texform.dev/rules/base/limits-drop): Drop explicit limits from an audited operator while preserving attached scripts.
- [base/nolimits-drop](https://texform.dev/rules/base/nolimits-drop): Drop explicit nolimits from an audited operator while preserving attached scripts.
- [physics/cosine-to-cos](https://texform.dev/rules/physics/cosine-to-cos): Collapse a bare cosine helper to the standard cos operator.
- [physics/naturallogarithm-to-ln](https://texform.dev/rules/physics/naturallogarithm-to-ln): Collapse a bare natural logarithm helper to the standard ln operator.
- [physics/probability-to-pr](https://texform.dev/rules/physics/probability-to-pr): Collapse a bare Probability helper to the standard Pr operator.
- [physics/sine-to-sin](https://texform.dev/rules/physics/sine-to-sin): Collapse a bare sine helper to the standard sin operator.
- [physics/trace-to-tr](https://texform.dev/rules/physics/trace-to-tr): Collapse a bare trace with no following argument group to the local tr anchor.
- [physics/named-fn-paren-expand](https://texform.dev/rules/physics/named-fn-paren-expand): Expand physics power and auto-sized parenthesis arguments of standard named functions.
- [physics/named-fn-to-operatorname](https://texform.dev/rules/physics/named-fn-to-operatorname): Rewrite physics-only named functions to operatorname and expand their auto-sized arguments.
- [physics/physics-operator-fence-expand](https://texform.dev/rules/physics/physics-operator-fence-expand): Expand the physics auto-sized argument of exp, det, and Pr into an explicit fence.
- [physics/rank-to-operatorname-rank](https://texform.dev/rules/physics/rank-to-operatorname-rank): Rewrite rank to an explicit operatorname form instead of a package-local alias.

## Notes

In LaTeX physics.sty 1.3, \Trace is \DeclareMathOperator{\Trace}{Tr}, while \Tr is \opbraces{\Trace}: a following {...}, [...], or (...) becomes an auto-sized fence after \Tr but stays literal after \Trace. Only the bare form is equivalent, so the rule skips \Trace when its next sibling, counted by its script base, is an explicit brace group, [ or (; a \Trace that carries scripts is bare because physics grabs nothing after scripts. In faithful, named-fn-to-operatorname rewrites the skipped branches to \operatorname{Tr} and keeps the delimiters literal. MathJax treats both names as the same Expression, so it renders every branch alike. Touches-only convergence: every Applied removes one bare \Trace; non-matching nodes return Skipped.

## Disable this rule

```python
TransformEngine(profile="corpus", disable_rules=["physics/trace-capital-to-Tr"])
```

```javascript
new TransformEngine({ profile: 'corpus', disableRules: ['physics/trace-capital-to-Tr'] })
```

[Open in Playground](https://play.texform.dev/?input=%5CTrace%5Crho%3D1)
