And the file ;-)
/PA

On Fri, 18 Apr 2025 at 10:12, Pedro Andres Aranda Gutierrez <
paag...@gmail.com> wrote:

> HI again
>
> I've attached an example .tex (lualatex) file, with bits and pieces from
> many discussions at tex.stackexchange and elsewhere.
> The structure would allow us to create two custom variables to generate
> the code:
>
> one for the direct lua fallback list and another for the \set...font
> mappings
>
> I think that trying to address all mappings out-of-the-box is not very
> realistic and would add too much noise.
> This option can be (easily?) tailored to everybody's needs, without
> imposing too much burden on anybody.
>
> WDYT, /PA
>
> On Fri, 18 Apr 2025 at 07:42, Pedro Andres Aranda Gutierrez <
> paag...@gmail.com> wrote:
>
>> HI,
>>
>> interesting... I have been giving this a thought, Maybe what we should
>> have are two things:
>>
>>
>>    1. an alist for setting the main, sans and mono font with a
>>    reasonable default value (Free... seems to be available by default in a
>>    quite cross-OS manner - I'm testing with macOS, a couple of Linuxen and
>>    M$Win)
>>    2. the possibility of substituting package names as strings by a
>>    function in the package list and have that function generate the whole 
>> font
>>    related prelude for the different compilers. We would have one for 
>> PDFLaTeX
>>    and another one for LuaLaTeX/XeTeX quite like we have it today.
>>
>> If a user doesn't have access/like the default font list in LuaLaTeX he
>> could change the list in 1. (his|her) needs and in more challenging
>> environments, (s)he would need to change 2.
>>
>> Alternatively, we could also teach the users to include most of the stuff
>> in the class templates. Certain challenging scenarios may be more
>> reasonably handled this way:
>>
>> https://de.overleaf.com/latex/templates/demonstration-of-noto-serif-cjk-and-noto-sans-cjk-fonts/sgrwgcddtqsq
>> or, more generally with references to pdflatex and lualatex:
>> https://cs.overleaf.com/learn/latex/International_language_support
>> and all the references therein
>>
>>
>> On Thu, 17 Apr 2025 at 14:09, Max Nikulin <maniku...@gmail.com> wrote:
>>
>>> On 13/04/2025 14:56, Ihor Radchenko wrote:
>>> > Max Nikulin writes:
>>> >> This list looks like a set of fallback variants for primary font, not
>>> as
>>> >> options to try when some characters are missed. Perhaps it may be
>>> >> reasonable to have predefined configuration for widely used fonts like
>>> >> Noto, freefonts, DejaVu, Liberation, CMU (Computer Modern Unicode),
>>> >> crosscore, ubuntu, etc., test what ones are installed (unless
>>> preferred
>>> >> family is configured by the user) and use just it.
>>>
>>> > Yup, that's what I thought. It looks like lualatex is able to scan
>>> > available fonts and select first available, so we do not have to limit
>>> > ourselves to a single font.
>>>
>>> It seems if any configured font name is missed then text completely
>>> disappears (nullfont is used). Try Something like "Missed Serif" in e.g.
>>> \setmainfont or in a fallback list.
>>>
>>> So either elisp or lua code should iterate over known families (Noto,
>>> Freefont, DejaVu), drop unavailable, and prefer family that is available
>>> in all necessary variants: serif, sans, mono, matching math font.
>>>
>>
>>
>> --
>> Fragen sind nicht da, um beantwortet zu werden,
>> Fragen sind da um gestellt zu werden
>> Georg Kreisler
>>
>> Sagen's Paradeiser, write BE!
>> Year 1 of the New Koprocracy
>>
>>
>
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> Sagen's Paradeiser, write BE!
> Year 1 of the New Koprocracy
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Sagen's Paradeiser, write BE!
Year 1 of the New Koprocracy
\documentclass{article}
\usepackage{fontspec}
\usepackage{amsmath}
\usepackage{unicode-math}

\directlua{
   luaotfload.add_fallback("FallbackFonts", { 
      "Noto Color Emoji:mode=harf", 
      "Noto Sans CJK JP:" 
   })
}

\setmathfont{Stix Two Math}[RawFeature={fallback=FallbackFonts}]
\setromanfont{FreeSerif}[RawFeature={fallback=FallbackFonts}]
\setsansfont{FreeSans}[RawFeature={fallback=FallbackFonts}]
\setmonofont{FreeMono}[RawFeature={fallback=FallbackFonts}]
% for \textrm{} to work, we can't \setmainfont
% \setmainfont{FreeSans}[RawFeature={fallback=FallbackFonts}]
% We need to put this in the #+LATEX_HEADER instead
\renewcommand{\familydefault}{\sfdefault}

\begin{document}

\noindent
😄  minikube v1.15.1 on Ubuntu 20.04\par\noindent
✨  Automatically selected the docker driver\par\noindent
👍  Starting control plane node minikube in cluster minikube\par\vspace*{1em}

\noindent And a \textrm{simple UTF-8 text} showing a file directory:

\begin{verbatim}
/test
  ├── file-a
  ├── file-b
  └── file-c
\end{verbatim}


Ähnlich wie Anno dazumal: Sagen's Paradeiser, daß man's merkt.

Volvió la cigüeña

Così mi pare e purtroppo è vero. 

Добрий день

Japanese (日本語)	こんにちは / コンニチハ

\begin{equation*}
\frac{G\symup{μ}}{c^2} = 
\mathcal{O}\biggl(\frac{E^2}{M_{pl}^2}\biggr)\,,\tag{1.1}
\end{equation*}
where $M_{pl}$ ($≡ℏc/G$) denotes the Planck mass.

\end{document}

Reply via email to