Verified Commit 674e9657 authored by Yannick Schinko's avatar Yannick Schinko
Browse files

Documented the commands

parent 9fadd443
Pipeline #3 passed with stage
in 7 seconds
......@@ -40,6 +40,8 @@
\newcommand*{\fullref}[1]{\hyperref[{#1}]{\autoref*{#1} \nameref*{#1} (Page \pageref*{#1})}}
% Document start
......@@ -103,19 +105,62 @@ also be loaded.
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.
\code{\textbackslash{}setsansfont} commands.\footnote{See \fullref{subsec:package-options}}
If you do wish to change the default fonts, just override the set fonts yourself with the same
\subsection{Package Options}
\subsection{Package Options}\label{subsec:package-options}
\textit{None at the moment}
\textit{None at the moment}\footnote{See \fullref{subsec:future-features}}
There aren't many features to talk about yet\footnote{See \fullref{subsec:future-features}}, but it
certainly doesn't hurt documenting them.
This collection of commands allows you to use any of the Lexend fonts ad-hoc.\\
The usage is identical to any font modification commands (like \code{\textbackslash{}textit} for
It is equivelent to using the \code{\textbackslash{}fontspec} command with the corresponding font
variant name as the parameter to the \code{\textbackslash{}fontspec} command.
Using it looks as follows:
\begin{lstlisting}[language={[LaTeX]TeX},caption={\code{\textbackslash{}LexendPeta Example}}]
Text here.
Text here.
This command is just a list containing all variants of the Lexend font collection.\\
Mainly useful if you want to iterate over all font variants.
Using it as is will yield this result:
\subsection{.fontspec Files}
Every Lexend font has its own \code{.fontspec} file. Though they are all identical (excluding the
......@@ -142,7 +187,7 @@ For example if you would like to set the default color for every time you use th
Since this is handled by the \textsf{fontspec} package, please refer to their documentation at
\subsection{Future Features}
\subsection{Future Features}\label{subsec:future-features}
This package is still very young and also fairly incomplete. There's a list of things I'd like to
add over time. Ordered by how soon I wish to implement them myself.
......@@ -180,7 +225,7 @@ Each font will be shown off in the sizes \small\textbackslash{}small\normalsize{
\textbf{\textbackslash{}textbf}, \textit{\textbackslash{}textit} and
\foreach \fontVariant in \lexendVariants
\foreach \fontVariant in \LexendVariants
......@@ -16,7 +16,7 @@
% Font list
......@@ -29,7 +29,7 @@ LexendZetta%
% Font aliases
%% Iterate over all known fonts and create aliases
\clist_map_inline:Nn \lexendVariants { \exp_args:Nc \newfontfamily { #1 } { #1 } }
\clist_map_inline:Nn \LexendVariants { \exp_args:Nc \newfontfamily { #1 } { #1 } }
% Set main fonts
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment