von AaronK » So 16. Nov 2025, 12:36
Ich möchte den Font Semi Bold Mono verwenden. Der Font ist in TeX Live 2025 installiert. Die Fonts Noto Sans SemiBold Mono sind leider nicht installiert. Ich würde mir wünschen, dass diese Fonts in der nächsten TeX Live Version enthalten sind.
Wie rufe ich die SemiBold Mono Family richtig auf? Ich habe einige versucht. Richtig erscheint mir das nicht. Ich möchte Bold Mono und SemiBold Mono beides verwenden.
Wie rufe ich diese Fonts auf, ohne solch ein Konstrukt zu bauen?
Ich möchte die Spalte 2 ab Zeile 2 mit Noto SemiBold Mono verwenden. Ich habe hier auch einiges versucht. Bitte scheut euch einmal diese Zeile an:
cells{2-Z}{1} = {font=\NotoMonoSB\small} % Funktioniert nicht
%% Fonts
% Noto Sans Mono SemiBold Font
\newfontface\NotoMonoSB{Noto Sans Mono SemiBold}
%%%% Wie geschrieben, meiner Meinung nach falsch %%%%
% Special Font Combinations
% Noto Sans Bold-Monospace Font
\newcommand{\textbftt}[1]{{\textbf{\texttt{#1}}}}
% Noto Sans Medium-Monospace Font
\newcommand{\textmdtt}[1]{{\textmd{\texttt{#1}}}}
% Noto Sans Semibold-Monospace Font
\newcommand{\textsbtt}[1]{{\NotoMonoSB #1}}
\documentclass{scrbook}
\usepackage{fontspec}
\usepackage[sfdefault]{noto}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
\begin{longtblr}[
caption = {Test},
label = {tab:test}
]{
colspec = {cX[l]},
rowhead = 1,
row{1} = {font={\small\sffamily\bfseries}, abovesep=3pt, belowsep=3pt},
row{2-Z} = {font={\small\sffamily}, abovesep=1pt, belowsep=1pt},
cells{2-Z}{1} = {font=\NotoMonoSB\small} % <- Funktioniert nicht
}
\toprule
Spalte 1 & Spalte \\
\midrule
123 - 456 & Zeile 1 \\
123 - 456 & Zeile 2 \\
123 - 456 & Zeile 3 \\
123 - 456 & Zeile 4 \\
\bottomrule
\end{longtblr}
Ich möchte den Font Semi Bold Mono verwenden. Der Font ist in TeX Live 2025 installiert. Die Fonts Noto Sans SemiBold Mono sind leider nicht installiert. Ich würde mir wünschen, dass diese Fonts in der nächsten TeX Live Version enthalten sind.
Wie rufe ich die SemiBold Mono Family richtig auf? Ich habe einige versucht. Richtig erscheint mir das nicht. Ich möchte Bold Mono und SemiBold Mono beides verwenden.
Wie rufe ich diese Fonts auf, ohne solch ein Konstrukt zu bauen?
Ich möchte die Spalte 2 ab Zeile 2 mit Noto SemiBold Mono verwenden. Ich habe hier auch einiges versucht. Bitte scheut euch einmal diese Zeile an:
cells{2-Z}{1} = {font=\NotoMonoSB\small} % Funktioniert nicht
[code]
%% Fonts
% Noto Sans Mono SemiBold Font
\newfontface\NotoMonoSB{Noto Sans Mono SemiBold}
%%%% Wie geschrieben, meiner Meinung nach falsch %%%%
% Special Font Combinations
% Noto Sans Bold-Monospace Font
\newcommand{\textbftt}[1]{{\textbf{\texttt{#1}}}}
% Noto Sans Medium-Monospace Font
\newcommand{\textmdtt}[1]{{\textmd{\texttt{#1}}}}
% Noto Sans Semibold-Monospace Font
\newcommand{\textsbtt}[1]{{\NotoMonoSB #1}}
\documentclass{scrbook}
\usepackage{fontspec}
\usepackage[sfdefault]{noto}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
\begin{longtblr}[
caption = {Test},
label = {tab:test}
]{
colspec = {cX[l]},
rowhead = 1,
row{1} = {font={\small\sffamily\bfseries}, abovesep=3pt, belowsep=3pt},
row{2-Z} = {font={\small\sffamily}, abovesep=1pt, belowsep=1pt},
cells{2-Z}{1} = {font=\NotoMonoSB\small} % <- Funktioniert nicht
}
\toprule
Spalte 1 & Spalte \\
\midrule
123 - 456 & Zeile 1 \\
123 - 456 & Zeile 2 \\
123 - 456 & Zeile 3 \\
123 - 456 & Zeile 4 \\
\bottomrule
\end{longtblr}
[/code]