# \hfilll

MathJax compatibility alias for array-cell fill markers; used like \hfill inside an array-like cell when input contains the nonstandard name \hfilll.

https://texform.dev/latex/commands/hfilll

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Spacing](https://texform.dev/latex/topics/spacing) |
| Packages | base |
| Allowed mode | math |
| Tags | invisible, mathjax-extension, discouraged |
| Commonality | low |
| Kind | prefix |

## Syntax

### base

Argument specification: ``

MathJax compatibility alias for array-cell fill markers; used like \hfill inside an array-like cell when input contains the nonstandard name \hfilll.

## Examples

```latex
\begin{array}{c}a\hfilll\end{array}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Barray%7D%7Bc%7Da%5Chfilll%5Cend%7Barray%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| base | full | none | none |

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

### Discouraged in base

\hfilll is not a standard TeX/LaTeX control sequence; MathJax only accepts it because BaseMappings explicitly aliases it to the HFill handler.

```latex
\hfilll -> \hfill
```

\hfill is the standard TeX/LaTeX command and is portable beyond MathJax's special alias.

```latex
\hfilll -> \hfil
```

\hfil is also a standard TeX command, unlike the nonstandard MathJax-only alias \hfilll.

### [base/hfilll-to-hfill](https://texform.dev/rules/base/hfilll-to-hfill)

Collapse hfilll to the canonical hfill command.

Level: authoring. Fidelity: render.

```latex
\hfilll
```

→

```latex
\hfill
```

```latex
\begin{array}{l} x^2+1 \hfilll y^2+1 \end{array}
```

→

```latex
\begin{array}{l} x^2+1 \hfill y^2+1 \end{array}
```

## Equivalent forms

```latex
\hfill
```

exact. BaseMappings explicitly maps \hfilll to the same BaseMethods.HFill implementation as \hfill.

## See also

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

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{array}{cc} a \hfilll & b \end{array} | Positive: ctx:in-array | Pass | Fail | Fail |
