texlive[52888] Master/texmf-dist: lexend (22nov19)

commits+karl at tug.org commits+karl at tug.org
Fri Nov 22 23:17:21 CET 2019


Revision: 52888
          http://tug.org/svn/texlive?view=revision&revision=52888
Author:   karl
Date:     2019-11-22 23:17:20 +0100 (Fri, 22 Nov 2019)
Log Message:
-----------
lexend (22nov19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/lexend/lexend.pdf
    trunk/Master/texmf-dist/doc/fonts/lexend/lexend.tex
    trunk/Master/texmf-dist/tex/latex/lexend/lexend.sty

Modified: trunk/Master/texmf-dist/doc/fonts/lexend/lexend.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/fonts/lexend/lexend.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/lexend/lexend.tex	2019-11-22 22:14:57 UTC (rev 52887)
+++ trunk/Master/texmf-dist/doc/fonts/lexend/lexend.tex	2019-11-22 22:17:20 UTC (rev 52888)
@@ -56,7 +56,7 @@
 }
 \date{
 	\today\\
-	v0.1.1.51
+	v1.0.0.55
 }
 
 \pagenumbering{roman}
@@ -79,6 +79,12 @@
 
 \section{Changelog}
 
+\subsection*{Version 1.0.0}\label{version-1.0.0}
+
++ Added package options \texttt{nomain} (and \texttt{main}) and \texttt{nosans} (and
+\texttt{sans}).\\
+* Improved documentation.
+
 \subsection*{Version 0.1.1}\label{version-0.1.1}
 
 * Fixed detecting tags as branches that should not be added to the version.
@@ -115,15 +121,23 @@
 
 When this package is loaded it sets the main font to \textsf{LexendDeca} and the sans font to
 \textsf{LexendGiga} using \textsf{fontspec}'s \code{\textbackslash{}setmainfont} and
-\code{\textbackslash{}setsansfont} commands.\footnote{See \fullref{subsec:package-options}}
+\code{\textbackslash{}setsansfont} commands.
 
-If you do wish to change the default fonts, just override the set fonts yourself with the same
-commands.
+If you do not wish for this package to change the default fonts, use the package options explained
+in \fullref{subsec:package-options}.
 
 \subsection{Package Options}\label{subsec:package-options}
 
-\textit{None at the moment}\footnote{See \fullref{subsec:future-features}}
+\begin{function}{nomain,main}
+Use one of these options to either not have this package set the main font or to have it set it
+explicitly respectively.
+\end{function}
 
+\begin{function}{nosans,sans}
+Use one of these options to either not have this package set the sans font or to have it set it
+explicitly respectively.
+\end{function}
+
 \section{Features}
 
 There aren't many features to talk about yet\footnote{See \fullref{subsec:future-features}}, but it
@@ -149,14 +163,22 @@
 
 Using it looks as follows:
 
-\begin{lstlisting}[language={[LaTeX]TeX},caption={\code{\textbackslash{}LexendPeta Example}}]
+\begin{lstlisting}[language={[LaTeX]TeX},caption={\code{\textbackslash{}LexendPeta} Example}]
 \LexendPeta{
-	Text here.
+	Text here.\\
+	More text.
+
+	This text is using the font LexendPeta.
 }
 \end{lstlisting}
 
+Result:\bigskip
+
 \LexendPeta{
-	Text here.
+	Text here.\\
+	More text.
+
+	This text is using the font LexendPeta.
 }
 \end{function}
 
@@ -188,7 +210,7 @@
 For example if you would like to set the default color for every time you use the font
 \textsf{LexendPeta}, all you have to do is this:
 
-\begin{lstlisting}[language={[LaTeX]TeX}]
+\begin{lstlisting}[language={[LaTeX]TeX},caption={\code{\textbackslash{}defaultfontfeatures+} Example}]
 \defaultfontfeatures+[LexendPeta]{
 	Color=888888
 }
@@ -203,7 +225,6 @@
 add over time. Ordered by how soon I wish to implement them myself.
 
 \begin{itemize}
-\item Package option to turn off setting the main and sans font\tightlist
 \item Support for the continuous spacing font variant of Lexend\tightlist
 \item Support for other \hologo{LaTeX} engines\\
 	That's something I definately need help with. So feel free to reach out to me or to create a

Modified: trunk/Master/texmf-dist/tex/latex/lexend/lexend.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lexend/lexend.sty	2019-11-22 22:14:57 UTC (rev 52887)
+++ trunk/Master/texmf-dist/tex/latex/lexend/lexend.sty	2019-11-22 22:17:20 UTC (rev 52888)
@@ -9,12 +9,22 @@
 % 
 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
 \ProvidesPackage{lexend}
-  [2019/11/16 0.1.1.51 The Lexend fonts for XeLaTeX and LuaLaTeX through fontspec]
+  [2019/11/18 1.0.0.55 The Lexend fonts for XeLaTeX and LuaLaTeX through fontspec]
 
+% Packages/Dependencies
 \RequirePackage{expl3}
 \RequirePackage{fontspec}
+\RequirePackage{kvoptions}
 
+% Package options
+\DeclareBoolOption[true]{main}
+\DeclareComplementaryOption{nomain}{main}
 
+\DeclareBoolOption[true]{sans}
+\DeclareComplementaryOption{nosans}{sans}
+
+\ProcessKeyvalOptions*{}
+
 % Font list
 \def\LexendVariants{
 LexendDeca,%
@@ -33,9 +43,14 @@
 \ExplSyntaxOff
 
 % Set main fonts
-\setmainfont{LexendDeca}
-\setsansfont{LexendGiga}
+\iflexend at main
+  \setmainfont{LexendDeca}
+\fi
 
+\iflexend at sans
+  \setsansfont{LexendGiga}
+\fi
+
 \endinput
 %%
 %% End of file lexend.sty.



More information about the tex-live-commits mailing list