Noto Sans SemiBold und tabularray

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: Noto Sans SemiBold und tabularray

Re: Noto Sans SemiBold und tabularray

von AaronK » So 16. Nov 2025, 14:06

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

Re: Noto Sans SemiBold und tabularray

von Stefan Kottwitz » So 16. Nov 2025, 13:42

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

Re: Noto Sans SemiBold und tabularray

von AaronK » So 16. Nov 2025, 13:30

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?

Re: Noto Sans SemiBold und tabularray

von Stefan Kottwitz » So 16. Nov 2025, 13:01

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

Noto Sans SemiBold und tabularray

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}

Nach oben