So I have a problem I would bet at least some people know: Styling tables inside Orgmode. The problem is, that you have to copy paste the same configuration that makes sure your table looks good for each single table. Since this is quite tedious and quite a pain if you have lots and lots of tables. After some searching I figured out, that I can use the tabularray LaTeX Package for this. The problem is, that I quite suck with LaTeX, and there is not that much information about global tabular enviroments for this. The only Information I could find was this stackexchange post regarding global table enviroments and some general information about tabularray, which can be found here.
The table style I want is in fact quite simple. I want the top row to be colored grey (which I already implemented myself) and I need the table style to allow for multiline columns and I need automatic line breaks in case theres more text in a single cell than theres space in the line. Additionally the table should always be aligned in the center of the page.
I have the following example orgmode-document (the \renewenviroment command is to switch the default enviroment from tables to my global table style)
#+Options: toc:nil
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LATEX_HEADER: \usepackage{booktabs}
#+LATEX_HEADER: \usepackage{tabularray}
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER: \NewTblrEnviron{globaltbl}
#+LATEX_HEADER: \SetTblrInner[globaltbl]{hlines, vlines, row{1} = {bg=gray5, fg=white, font=\bfseries}, rowsep = 4pt, colsep = 8pt, width = \linewidth}
#+LATEX_HEADER: \SetTblrOuter[globaltbl]{baseline = m}
#+LATEX_HEADER: \renewenvironment{tabular}{\begin{globaltbl}}{\end{globaltbl}}
|-----------+-------------------+-----------------------------------------------------------------------------------|
| Exit code | Type | Meaning |
|-----------+-------------------+-----------------------------------------------------------------------------------|
| 0 | Internal/External | Succesfull operation; logical true |
| | some other | |
|-----------+-------------------+-----------------------------------------------------------------------------------|
| 1 | Internal | Non successfull operation; logical false and some other text that is not important |
which generates the following LaTeX file:
% Intended LaTeX compiler: pdflatex
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{tabularray}
\usepackage{booktabs}
\usepackage{tabularray}
\usepackage{xcolor}
\NewTblrEnviron{globaltbl}
\SetTblrInner[globaltbl]{hlines, vlines, row{1} = {bg=gray5, fg=white, font=\bfseries}, rowsep = 4pt, colsep = 8pt, width = \linewidth}
\SetTblrOuter[globaltbl]{baseline = m}
\renewenvironment{tabular}{\begin{globaltbl}}{\end{globaltbl}}
\author{cow}
\date{\today}
\title{}
\hypersetup{
pdfauthor={cow},
pdftitle={},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 30.2 (Org mode 9.7.11)},
pdflang={English}}
\begin{document}
\begin{center}
\begin{tabular}{rll}
\hline
Exit code & Type & Meaning\\
\hline
0 & Internal/External & Succesfull operation; logical true\\
& some other & \\
\hline
1 & Internal & Non successfull operation; logical false and some other text that is not important\\
\end{tabular}
\end{center}
\end{document}
which renders to the following table:

As you can see in the first column, that tabularray does not insert an hline to create a new coluumn, but still renders this thinner line. Is there a way to turn this off? You can also see, that the rest of the last cell gets cut off.
I would really appreciate if someone could help me with this, since I have zero Idea what else to try.

Is that even legal? I know that they can do this in the US, but I have no clue about the legality of this in the Netherlands.