Noto Sans SemiBold und tabularray Thema ist als GELÖST markiert

Tabellen und Grafiken erstellen und anordnen


AaronK
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 83
Registriert: So 2. Mai 2021, 09:29

Noto Sans SemiBold und tabularray

Beitrag von AaronK »

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}

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2805
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: Noto Sans SemiBold und tabularray

Beitrag von Stefan Kottwitz »

Hallo Aaron,

schreibe cell statt cells. Vielleicht so:
\documentclass{scrbook}
\usepackage{fontspec}
\setmonofont{Noto Sans Mono}[UprightFont = * SemiBold]
\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},
        cell{2-Z}{1} = {font=\ttfamily\small}
    }
    \toprule
    Spalte 1 & Spalte     \\
    \midrule
    123 - 456  & Zeile 1  \\
    123 - 456  & Zeile 2  \\
    123 - 456  & Zeile 3  \\
    123 - 456  & Zeile 4  \\
    \bottomrule
\end{longtblr}
\end{document}
Stefan

AaronK
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 83
Registriert: So 2. Mai 2021, 09:29

Re: Noto Sans SemiBold und tabularray

Beitrag von AaronK »

Hallo Stefan,

die Tabelle zeigt den richtigen Font Noto Sans Mono Semibold an. Der Font Bold wird nicht mehr geladen. Wie es scheint, ist jetzt Noto Sans Mono SemiBold der "neue" Bold Font.

\texttt{Hallo das ist nicht mehr Bold}

Hast Du vielleicht noch eine Idee, wie ich beide Fonts nebeneinander verwenden kann?

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2805
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: Noto Sans SemiBold und tabularray

Beitrag von Stefan Kottwitz »

Vielleicht ähnlich, mit sowas wie
\newfontfamily\NotoMonoSemiBold{Noto Sans Mono}[UprightFont = * SemiBold]
\newfontfamily\NotoMonoBold{Noto Sans Mono}[UprightFont = * Bold]
...
\NotoMonoSemiBold Hier kommt SemiBold Mono.
\NotoMonoBold Das ist Bold Mono.
Stefan

AaronK
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 83
Registriert: So 2. Mai 2021, 09:29

Re: Noto Sans SemiBold und tabularray

Beitrag von AaronK »

Hallo Stefan

leider ist das noch nicht das Ergebnis, welches ich haben möchte. Ich werde erst einmal Noto Sans Mono SemiBold bleiben.

Vielen Dank für die Hilfe

Antworten