texlive[73392] Master/texmf-dist: citation-style-language (11jan25)
commits+karl at tug.org
commits+karl at tug.org
Sat Jan 11 00:01:25 CET 2025
Revision: 73392
https://tug.org/svn/texlive?view=revision&revision=73392
Author: karl
Date: 2025-01-11 00:01:25 +0100 (Sat, 11 Jan 2025)
Log Message:
-----------
citation-style-language (11jan25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md
trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.pdf
trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex
Added Paths:
-----------
trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-extralight.fontspec
trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-light.fontspec
trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-semilight.fontspec
trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode.fontspec
trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiamono-otf.sty
Modified: trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md 2025-01-10 23:01:10 UTC (rev 73391)
+++ trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md 2025-01-10 23:01:25 UTC (rev 73392)
@@ -3,13 +3,13 @@
## Description
-`cascadiamono-otf` is the version of cascadiacode-otf without ligatures.
-Official repo is https://github.com/microsoft/cascadia-code
-CascadiaCode is already present, it's just a fontspec file for using CascadiaMono version :-)
+`cascadiamono-otf` is the version of cascadiacode-otf without ligatures.
+Official repo is https://github.com/microsoft/cascadia-code
+CascadiaCode is already present, it's just a fontspec file (or a fontfamily) for using CascadiaMono version :-)
## Contents
-* the `tex/` directory holds the fontspec configuration files;
+* the `tex/` directory holds the fontspec configuration files and the .sty file;
* the `doc/` directory holds short documentation with samples.
## Usage
@@ -16,33 +16,34 @@
lualatex/xelatex and fontspec are necessary in order to use cascadiamono fonts.
-'Normal' version of the font is available with `\setmonofont{CascadiaCode}[options]`.
-'SemiLight' version of the font is available with `\setmonofont{CascadiaCode-SemiLight}[options]`.
-'Light' version of the font is available with `\setmonofont{CascadiaCode-Light}[options]`.
-'ExtraLight' version of the font is available with `\setmonofont{CascadiaCode-ExtraLight}[options]`.
+* 'Normal' version of the font is available with global `\setmonofont{CascadiaMono}[options]` or locally with `\cascadiamono`.
+* 'SemiLight' version of the font is available with global `\setmonofont{CascadiaMono-SemiLight}[options]` or locally with `\cascadiamonosemilight`.
+* 'Light' version of the font is available with global `\setmonofont{CascadiaMono-Light}[options]` or locally with `\cascadiamonolight`.
+* 'ExtraLight' version of the font is available with global `\setmonofont{CascadiaMono-ExtraLight}[options]` or locally with `\cascadiamonoextralight`.
## Installation
-This package is meant to be installed automatically by TeXLive, MikTeX, etc.
+This package is meant to be installed automatically by TeXLive, MikTeX, etc.
Otherwise, `cascadiamono-otf` can be installed under TEXMFHOME or TEXMFLOCAL, f.i.
++ sty file (`tex/cascadiamono-otf.sty`) in directory `texmf-local/tex/latex/cascadiamono-otf/`
+ fontspec files (`tex/*.fontspec`) in directory `texmf-local/tex/latex/cascadiamono-otf/`
+ documentation (from doc/ directory) in `texmf-local/doc/fonts/public/cascadiamono-otf/`
-Don't forget to rebuild the file database (mktexlsr or so) if you install under TEXMFLOCAL.
-
+Don't forget to rebuild the file database (mktexlsr or so) if you install under TEXMFLOCAL.
Finally, you may want to make the system font database aware of the `cascadiamono-otf` fonts (fontconfig under Linux).
## License
* Files are distributed under the terms of the LaTeX Project
-Public License from CTAN archives in directory macros/latex/base/lppl.txt.
-Either version 1.3 or, at your option, any later version.
+* Public License from CTAN archives in directory macros/latex/base/lppl.txt.
+* Either version 1.3 or, at your option, any later version.
## Changes
+* v0.3 (sty file with fontfamily & code version)
* v0.2 (new alt weights)
* v0.1 (experimental).
---
-Copyright 2024 C. Pierquet (with help from D. Flipo)
+Copyright 2024--2025 C. Pierquet (with help from D. Flipo)
E-mail: cpierquet (at) outlook (dot) fr
Modified: trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex 2025-01-10 23:01:10 UTC (rev 73391)
+++ trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex 2025-01-10 23:01:25 UTC (rev 73392)
@@ -3,8 +3,7 @@
\documentclass{article}
\usepackage[margin=0.75in]{geometry}
-\usepackage{fontspec}
-\setmonofont{CMU Typewriter Text}
+\usepackage{cascadiamono-otf}
\usepackage{listings}
\usepackage{xcolor}
\setlength{\parindent}{0pt}
@@ -14,30 +13,23 @@
--- ?`But aren't Kafka's Schlo\ss{} and \AE sop's \OE uvres often na\"\i ve vis-\`a-vis the d\ae monic ph\oe nix's official r\^ole in fluffy souffl\'es?
}
-%\newcommand*\demotextsc{\textsc{\ Sphinx of black quartz, judge my vow}.}
+\newcommand\samplettxt{oO08 iIlL1 g9qCGQ <=>}
+\newcommand\samplett[1][]{#1\samplettxt}
+\newcommand\samplettit[1][]{\textit{#1\samplettxt}}
+\newcommand\samplettbf[1][]{\textbf{#1\samplettxt}}
+\newcommand\samplettbfit[1][]{\textbf{\textit{#1\samplettxt}}}
+\newcommand\sampletttbl[1][]{& \samplett[#1] & \samplettit[#1] & \samplettbf[#1] & \samplettbfit[#1]}
\begin{document}
-\part*{cascadiamono-otf (v0.2)}
+\part*{cascadiamono-otf (v 0.3)}
-\section{Usage}
+\section{Usages}
-With \lstinline[language=TeX,basicstyle=\ttfamily]|\usepackage{fontspec}| (so with \lstinline[language=TeX,basicstyle=\ttfamily]|XeTeX| or \lstinline[language=TeX,basicstyle=\ttfamily]|LuaLaTeX| compilation), you can use \texttt{CascadiaCode} fonts, and \textit{remove} ligature's features, in order to use (in fact) \texttt{CascadiaMono} fonts.
+With \lstinline[language={[latex]TeX},basicstyle=\ttfamily]|\usepackage{fontspec}| (so with \lstinline[language={[latex]TeX},basicstyle=\ttfamily]|XeTeX| or \lstinline[language={[latex]TeX},basicstyle=\ttfamily]|LuaLaTeX| compilation), you can use \texttt{CascadiaCode} fonts, and \textit{remove} ligature's features, in order to use (in fact) \texttt{CascadiaMono} fonts.
\smallskip
-The idea is to propose \texttt{fontspec} config files to load correctly \texttt{CascadiaMono} features.
-
-\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
-\usepackage{fontspec}
-\setmonofont{CascadiaMono}[options] %version regular
-\setmonofont{CascadiaMono-SemiLight}[options] %version semilight
-\setmonofont{CascadiaMono-Light}[options] %version light
-\setmonofont{CascadiaMono-ExtraLight}[options] %version extralight
-\end{lstlisting}
-
-\section{The default settings}
-
Following OpenType fonts are supported (it's based on \texttt{CascadiaCode} without the ligatures) :
\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
@@ -49,6 +41,8 @@
CascadiaCode-SemiLight.otf CascadiaCode-SemiLightItalic.otf
\end{lstlisting}
+\section{The default settings}
+
The \texttt{fontspec} config for the \textit{normal} version :
\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
@@ -93,6 +87,45 @@
Contextuals=AlternateOff}
\end{lstlisting}
+It's possible to use ligatures with \texttt{Code} alias, instead of \texttt{Mono}.
+
+\pagebreak
+
+\subsection{With config files}
+
+The idea is to propose \texttt{fontspec} config files to load correctly \texttt{CascadiaMono} features.
+
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\usepackage{fontspec}
+%w/o ligatures
+\setmonofont{CascadiaMono}[options] %version regular
+\setmonofont{CascadiaMono-SemiLight}[options] %version semilight
+\setmonofont{CascadiaMono-Light}[options] %version light
+\setmonofont{CascadiaMono-ExtraLight}[options] %version extralight
+%w ligatures
+\setmonofont{cascadiacode}[options] %version regular
+\setmonofont{cascadiacode-semilight}[options] %version semilight
+\setmonofont{cascadiacode-light}[options] %version light
+\setmonofont{cascadiacode-extralight}[options] %version extralight
+\end{lstlisting}
+
+\subsection{With the package loading}
+
+With \lstinline[language={[latex]TeX},basicstyle=\ttfamily]|\usepackage[scale=...]{cascadiamono-otf}|, \lstinline[language={[latex]TeX},basicstyle=\ttfamily]|fontspec| is loaded, and \lstinline[language={[latex]TeX},basicstyle=\ttfamily]|fontfamily| are defined :
+
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+%w/o ligatures
+\newfontfamily\cascadiamono{CascadiaMono}
+\newfontfamily\cascadiamonosemilight{CascadiaMono-SemiLight}
+\newfontfamily\cascadiamonolight{CascadiaMono-Light}
+\newfontfamily\cascadiamonoextralight{CascadiaMono-ExtraLight}
+%w ligatures
+\newfontfamily\cascadiacode{cascadiacode}
+\newfontfamily\cascadiacodesemilight{cascadiacode-semilight}
+\newfontfamily\cascadiacodelight{cascadiacode-light}
+\newfontfamily\cascadiacodeextralight{cascadiacode-extralight}
+\end{lstlisting}
+
\section{Font Samples}
\subsection{Normal version (Regular - Italic - Bold - BoldItalic)}
@@ -145,8 +178,26 @@
\pagebreak
-\section{Algorithm samples}
+\section{Simple code samples}
+\setmonofont{CMU Typewriter Text}[Scale=MatchLowercase]
+
+\noindent{\small \begin{tabular}{lllll}
+ \hline
+ Type & Normal & Italic & Bold & BoldItalic \\ \hline
+ ttdefault \sampletttbl[\ttfamily] \\ \hline
+ Cmonoregular \sampletttbl[\cascadiamono]\\ \hline
+ Cmonosemilight \sampletttbl[\cascadiamonosemilight] \\ \hline
+ Cmonolight \sampletttbl[\cascadiamonolight] \\ \hline
+ Cmonoextralight \sampletttbl[\cascadiamonoextralight]\\ \hline
+ Ccoderegular \sampletttbl[\cascadiacode]\\ \hline
+ Ccodesemilight \sampletttbl[\cascadiacodesemilight] \\ \hline
+ Ccodelight \sampletttbl[\cascadiacodelight] \\ \hline
+ Ccodeextralight \sampletttbl[\cascadiacodeextralight]\\ \hline
+\end{tabular}}
+
+\section{Algorithm samples, without ligatures}
+
\subsection{Normal version}
\setmonofont{CascadiaMono}[Scale=MatchLowercase]
@@ -217,11 +268,74 @@
\pagebreak
+\section{Algorithm code, with ligatures}
+
+\setmonofont{CMU Typewriter Text}[Scale=MatchLowercase]
+
+Regular version of the fonts, with ligatures enable, can be uses with \texttt{code} alias (\lstinline[language={[latex]TeX},basicstyle=\ttfamily]|\cascadiacode|).
+
+\makeatletter
+\renewcommand*\verbatim at nolig@list{}
+\makeatother
+
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\cascadiacode,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single,columns=flexible,showstringspaces=false]
+\lstset{
+ language=python,
+ basicstyle=\footnotesize\cascadiacode,
+ commentstyle=\itshape\color{gray},
+ keywordstyle=\bfseries\color{magenta},
+ tabsize=4,
+ frame=single,
+ columns=flexible,
+ showstringspaces=false
+}
+\end{lstlisting}
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\cascadiacode,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single,columns=flexible,showstringspaces=false]
+const similar = "oO08 iIlL1 g9qCGQ"
+const diacritics_etc = "â é ù ï ø ç Ã Ē Æ œ"
+
+window.toggleFavorite = (alias) => {
+ try {
+ let favorites = JSON.parse(localStorage.getItem('favorites')) || []
+ if (favorites.indexOf(alias) > -1) {
+ favorites = favorites.filter((v) => {
+ return v !== alias
+ })
+ } else {
+ favorites.push(alias)
+ }
+ localStorage.setItem('favorites', JSON.stringify(Array.from(new Set(favorites))))
+ } catch (err) {
+ // eslint-disable-next-line no-console
+ console.error('could not save favorite', err)
+ }
+ renderSelectList()
+ return false
+}
+\end{lstlisting}
+
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\cascadiacode,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single,columns=flexible,showstringspaces=false]
+def Fibonacci(n) :
+ # Check if input is 0 then it will print incorrect input
+ if n < 0 :
+ print("Incorrect input")
+ elif n == 0 :
+ return 0
+ elif 1 <= n <= 2 :
+ return 1
+ else :
+ return Fibonacci(n-1) + Fibonacci(n-2)
+\end{lstlisting}
+
+\pagebreak
+
+
\section{History}
\setmonofont{CMU Typewriter Text}[Scale=MatchLowercase]
\begin{verbatim}
+v0.3 Package loading with fontfamily + 'code' version
v0.2 New weight options
v0.1 Initial version
\end{verbatim}
Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-extralight.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-extralight.fontspec (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-extralight.fontspec 2025-01-10 23:01:25 UTC (rev 73392)
@@ -0,0 +1,8 @@
+\defaultfontfeatures[cascadiacode-extralight]
+ {Extension=.otf,
+ UprightFont=CascadiaCode-ExtraLight,
+ ItalicFont=CascadiaCode-ExtraLightItalic,
+ BoldFont=CascadiaCode-SemiLight,
+ BoldItalicFont=CascadiaCode-SemiLightItalic,
+ Contextuals=Alternate
+}
\ No newline at end of file
Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-light.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-light.fontspec (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-light.fontspec 2025-01-10 23:01:25 UTC (rev 73392)
@@ -0,0 +1,8 @@
+\defaultfontfeatures[cascadiacode-light]
+ {Extension=.otf,
+ UprightFont=CascadiaCode-Light,
+ ItalicFont=CascadiaCode-LightItalic,
+ BoldFont=CascadiaCode-Regular,
+ BoldItalicFont=CascadiaCode-Italic,
+ Contextuals=Alternate
+}
\ No newline at end of file
Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-semilight.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-semilight.fontspec (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode-semilight.fontspec 2025-01-10 23:01:25 UTC (rev 73392)
@@ -0,0 +1,8 @@
+\defaultfontfeatures[cascadiacode-semilight]
+ {Extension=.otf,
+ UprightFont=CascadiaCode-SemiLight,
+ ItalicFont=CascadiaCode-SemiLightItalic,
+ BoldFont=CascadiaCode-SemiBold,
+ BoldItalicFont=CascadiaCode-SemiBoldItalic,
+ Contextuals=Alternate
+}
\ No newline at end of file
Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode.fontspec (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiacode.fontspec 2025-01-10 23:01:25 UTC (rev 73392)
@@ -0,0 +1,8 @@
+\defaultfontfeatures[cascadiacode]
+ {Extension=.otf,
+ UprightFont=CascadiaCode-Regular,
+ ItalicFont=CascadiaCode-Italic,
+ BoldFont=CascadiaCode-Bold,
+ BoldItalicFont=CascadiaCode-BoldItalic,
+ Contextuals=Alternate
+}
\ No newline at end of file
Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiamono-otf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiamono-otf.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiamono-otf.sty 2025-01-10 23:01:25 UTC (rev 73392)
@@ -0,0 +1,29 @@
+% cascadiamono-otf.sty
+% C. Pierquet 2025
+% This file is distributed under the terms of the LaTeX Project Public
+% License from CTAN archives in directory macros/latex/base/lppl.txt.
+% Either version 1.3 or, at your option, any later version.
+
+\ProvidesPackage{cascadiamono-otf}[2025/01/10 v0.3 Supports cascadiamono fonts for lualatex and xelatex.]
+
+\RequirePackage{xkeyval}
+
+\newcommand*{\CascadiaMono at scale}{MatchLowercase}
+\DeclareOptionX{scale}{\renewcommand*{\CascadiaMono at scale}{#1}}
+\ProcessOptionsX\relax
+
+\RequirePackage{fontspec}
+\defaultfontfeatures{
+ HyphenChar = None,
+ Scale = \CascadiaMono at scale}
+\newfontfamily\cascadiamono{CascadiaMono}
+\newfontfamily\cascadiamonosemilight{CascadiaMono-SemiLight}
+\newfontfamily\cascadiamonolight{CascadiaMono-Light}
+\newfontfamily\cascadiamonoextralight{CascadiaMono-ExtraLight}
+\newfontfamily\cascadiacode{cascadiacode}
+\newfontfamily\cascadiacodesemilight{cascadiacode-semilight}
+\newfontfamily\cascadiacodelight{cascadiacode-light}
+\newfontfamily\cascadiacodeextralight{cascadiacode-extralight}
+\defaultfontfeatures{}
+
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/cascadiamono-otf.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the tex-live-commits
mailing list.