Skip to content

Documentation issues with halign as outer style? #665

Description

@Explorer-cc

The issues arisen from my answer here:

\documentclass{article}
\usepackage[paperheight=10cm]{geometry}
\usepackage{tabularray}
\usepackage{showframe}
% https://tex.stackexchange.com/a/680307
\NewTblrTheme{naked}{
  \DefTblrTemplate{foot}{empty}{}
  \SetTblrTemplate{foot}{empty}
  \DefTblrTemplate{head}{empty}{}
  \SetTblrTemplate{head}{empty}
}
\begin{document}

\begin{longtblr}[
    entry=none,
    label=none,
    theme=naked,
    halign=l%<-
]{colspec={ll},hlines,vlines}
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
    A & B \\
    C & D \\
\end{longtblr}

\end{document}

It works, but in the documemtation, there is no envidence that halign could be accpeted in outer style:

Image

Here below is the code:

tabularray/tabularray.sty

Lines 4139 to 4166 in 6b921ea

\__tblr_keys_define:nn { table/outer }
{
long .code:n = \__tblr_outer_gput_spec:nn { portrait } { long },
tall .code:n = \__tblr_outer_gput_spec:nn { portrait } { tall },
halign .code:n = \__tblr_outer_gput_spec:nn { halign } {#1},
baseline .code:n = \__tblr_outer_gput_spec:nn { baseline } {#1},
l .meta:n = { halign = l },
c .meta:n = { halign = c },
r .meta:n = { halign = r },
t .meta:n = { baseline = t },
T .meta:n = { baseline = T },
m .meta:n = { baseline = m },
M .meta:n = { baseline = M },
b .meta:n = { baseline = b },
B .meta:n = { baseline = B },
valign .meta:n = { baseline = #1 }, % obsolete, will be removed some day
expand .code:n = \__tblr_outer_gput_spec:nn { expand } {#1},
expand+ .code:n = \__tblr_outer_gconcat_spec:nn { expand } {#1},
headsep .code:n = \__tblr_outer_gput_spec:nn { headsep } {#1},
footsep .code:n = \__tblr_outer_gput_spec:nn { footsep } {#1},
presep .code:n = \__tblr_outer_gput_spec:nn { presep } {#1},
postsep .code:n = \__tblr_outer_gput_spec:nn { postsep } {#1},
theme .code:n = \__tblr_use_theme:n {#1},
caption .code:n = \__tblr_outer_gput_spec:nn { caption } {#1},
entry .code:n = \__tblr_outer_gput_spec:nn { entry } {#1},
label .code:n = \__tblr_outer_gput_spec:nn { label } {#1},
unknown .code:n = \__tblr_table_option_key:Vn \l_keys_key_str {#1},
}

From the documentation, that is hard to realize that halign could also control the longtblr's centering.

My question is:

  • Whether I missed some details in the documentation?
  • Is halign=l the "correct" method to left align the whole longtblr?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions