| 1 |
\documentclass[oneside,a4paper]{l3doc} |
| 2 |
|
| 3 |
% Packages |
| 4 |
\usepackage{lexend} |
| 5 |
|
| 6 |
\usepackage[english]{babel} |
| 7 |
\usepackage{blindtext} |
| 8 |
\usepackage{hologo} |
| 9 |
\usepackage{listings} |
| 10 |
\usepackage{pgffor} |
| 11 |
\usepackage{soul} |
| 12 |
\usepackage{xcolor} |
| 13 |
|
| 14 |
% Settings |
| 15 |
\setmonofont{DejaVu Sans Mono} |
| 16 |
|
| 17 |
\hypersetup{ |
| 18 |
hidelinks, |
| 19 |
bookmarksnumbered, |
| 20 |
bookmarksopen, |
| 21 |
bookmarksdepth=3, |
| 22 |
colorlinks=true, |
| 23 |
allcolors=blue, |
| 24 |
unicode |
| 25 |
} |
| 26 |
|
| 27 |
\urlstyle{rm} |
| 28 |
|
| 29 |
\definecolor{lightgray}{gray}{0.95} |
| 30 |
|
| 31 |
\lstset{breaklines=true,backgroundcolor=\color{lightgray},basicstyle=\ttfamily,frame=single,numbers=left,numberstyle=\ttfamily,aboveskip=\baselineskip} |
| 32 |
|
| 33 |
% Additional commands |
| 34 |
\DeclareRobustCommand{\code}[1]{{\sethlcolor{lightgray}\texttt{\hl{#1}}}} |
| 35 |
\soulregister{\code}{1} |
| 36 |
\makeatletter |
| 37 |
\pdfstringdefDisableCommands{\let\code\@firstofone} |
| 38 |
\makeatother |
| 39 |
|
| 40 |
\providecommand{\tightlist}{% |
| 41 |
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
| 42 |
|
| 43 |
\newcommand*{\fullref}[1]{\hyperref[{#1}]{\autoref*{#1} \nameref*{#1} (Page \pageref*{#1})}} |
| 44 |
|
| 45 |
% Document start |
| 46 |
\begin{document} |
| 47 |
|
| 48 |
\title{ |
| 49 |
The \textsf{lexend} package\\ |
| 50 |
\large{The \href{https://www.lexend.com/}{\textsf{Lexend} fonts} for \hologo{XeLaTeX} and |
| 51 |
\hologo{LuaLaTeX} through \textsf{fontspec}} |
| 52 |
} |
| 53 |
\author{ |
| 54 |
Yannick Schinko\\ |
| 55 |
\texorpdfstring{\url{https://github.com/BrainStone/latex-lexend}}{} |
| 56 |
} |
| 57 |
\date{ |
| 58 |
\today\\ |
| 59 |
v1.1.0.70 |
| 60 |
} |
| 61 |
|
| 62 |
\pagenumbering{roman} |
| 63 |
\maketitle |
| 64 |
|
| 65 |
\bigskip |
| 66 |
|
| 67 |
\begin{abstract} |
| 68 |
The purpose of this package is pretty straight forward:\\ |
| 69 |
The Lexend font collection has been designed by Dr. Bonnie Shaver-Troup and Thomas Jockin to make |
| 70 |
reading easier for everyone.\\ |
| 71 |
Now my goal is it to bring this wonderful collection to world of \hologo{LaTeX}. |
| 72 |
\end{abstract} |
| 73 |
|
| 74 |
\bigskip |
| 75 |
\tableofcontents |
| 76 |
\newpage |
| 77 |
|
| 78 |
\pagenumbering{arabic} |
| 79 |
|
| 80 |
\section{Changelog} |
| 81 |
|
| 82 |
\hypertarget{version-1.1.0}{% |
| 83 |
\subsection*{Version 1.1.0}\label{version-1.1.0}} |
| 84 |
|
| 85 |
* \href{https://github.com/BrainStone/latex-lexend/issues/1}{Fixed XeLaTeX support}.\\ |
| 86 |
* Made the \texttt{\textbackslash{}LexendXXX} commands work as described in the documentation - |
| 87 |
\href{https://github.com/zauguin}{Marcel Krüger - @zauguin} |
| 88 |
|
| 89 |
\hypertarget{version-1.0.2}{% |
| 90 |
\subsection*{Version 1.0.2}\label{version-1.0.2}} |
| 91 |
|
| 92 |
* Added original changelog to changelog. |
| 93 |
|
| 94 |
\hypertarget{version-1.0.1}{% |
| 95 |
\subsection*{Version 1.0.1}\label{version-1.0.1}} |
| 96 |
|
| 97 |
* Updated lexend to 1.1: |
| 98 |
|
| 99 |
\begin{quote} |
| 100 |
2018 April 9 (Thomas Jockin) Version 1.0 |
| 101 |
|
| 102 |
\begin{itemize} |
| 103 |
\tightlist |
| 104 |
\item |
| 105 |
First public release |
| 106 |
\end{itemize} |
| 107 |
|
| 108 |
2020 January 18 (Thomas Jockin) Version 1.1 |
| 109 |
|
| 110 |
\begin{itemize} |
| 111 |
\tightlist |
| 112 |
\item |
| 113 |
Expansion to Arabic script |
| 114 |
\item |
| 115 |
Bug fixes in Latin Character Set |
| 116 |
\end{itemize} |
| 117 |
\end{quote} |
| 118 |
|
| 119 |
\hypertarget{version-1.0.0}{% |
| 120 |
\subsection*{Version 1.0.0}\label{version-1.0.0}} |
| 121 |
|
| 122 |
+ Added package options \texttt{nomain} (and \texttt{main}) and \texttt{nosans} (and |
| 123 |
\texttt{sans}).\\ |
| 124 |
* Improved documentation. |
| 125 |
|
| 126 |
\hypertarget{version-0.1.1}{% |
| 127 |
\subsection*{Version 0.1.1}\label{version-0.1.1}} |
| 128 |
|
| 129 |
* Fixed detecting tags as branches that should not be added to the version. |
| 130 |
|
| 131 |
\hypertarget{version-0.1.0}{% |
| 132 |
\subsection*{Version 0.1.0}\label{version-0.1.0}} |
| 133 |
|
| 134 |
+ Created the lexend package.\\ |
| 135 |
+ Created the lexend(.sty) style.\\ |
| 136 |
+ Added build system.\\ |
| 137 |
+ Added package docs (including font samples).\\ |
| 138 |
+ Added acknowledgements. |
| 139 |
|
| 140 |
\section{Acknowledgments} |
| 141 |
|
| 142 |
I would like to take the time to thank everyone that helped me along my journey of creating this |
| 143 |
package. It would not have been possible without every single one of you. |
| 144 |
|
| 145 |
Special thanks to David Carlisle, Ulrike Fischer, Phelype Oleinik and Marcel Krüger who helped me |
| 146 |
tremendously and continuously in the \hologo{LaTeX} Stack Exchange chat and with code contributions. |
| 147 |
I really can't put it in words how much your continued contributions and willingness to help helped |
| 148 |
me during the creation of this package. |
| 149 |
|
| 150 |
Special thanks to Dr. Bonnie Shaver-Troup and Thomas Jockin for creating these fonts and allowing |
| 151 |
people to have an easier time reading. |
| 152 |
|
| 153 |
Consider this contribution to the great \hologo{LaTeX} community as my thank you to you all. |
| 154 |
|
| 155 |
\section{Package Loading and Options} |
| 156 |
|
| 157 |
\subsection{Loading behavior} |
| 158 |
|
| 159 |
First of all this package depends on the \textsf{fontspec} package and therefore requires |
| 160 |
\hologo{XeLaTeX} and \hologo{LuaLaTeX}. So when you load this package the \textsf{fontspec} will |
| 161 |
also be loaded. |
| 162 |
|
| 163 |
When this package is loaded it sets the main font to \textsf{LexendDeca} and the sans font to |
| 164 |
\textsf{LexendGiga} using \textsf{fontspec}'s \code{\textbackslash{}setmainfont} and |
| 165 |
\code{\textbackslash{}setsansfont} commands. |
| 166 |
|
| 167 |
If you do not wish for this package to change the default fonts, use the package options explained |
| 168 |
in \fullref{subsec:package-options}. |
| 169 |
|
| 170 |
\subsection{Package Options}\label{subsec:package-options} |
| 171 |
|
| 172 |
\begin{function}{nomain,main} |
| 173 |
Use one of these options to either not have this package set the main font or to have it set it |
| 174 |
explicitly respectively. |
| 175 |
\end{function} |
| 176 |
|
| 177 |
\begin{function}{nosans,sans} |
| 178 |
Use one of these options to either not have this package set the sans font or to have it set it |
| 179 |
explicitly respectively. |
| 180 |
\end{function} |
| 181 |
|
| 182 |
\section{Features} |
| 183 |
|
| 184 |
There aren't many features to talk about yet\footnote{See \fullref{subsec:future-features}}, but it |
| 185 |
certainly doesn't hurt documenting them. |
| 186 |
|
| 187 |
\subsection{Commands} |
| 188 |
|
| 189 |
\begin{function}{ |
| 190 |
\LexendDeca, |
| 191 |
\LexendExa, |
| 192 |
\LexendGiga, |
| 193 |
\LexendMega, |
| 194 |
\LexendPeta, |
| 195 |
\LexendTera, |
| 196 |
\LexendZetta |
| 197 |
} |
| 198 |
This collection of commands allows you to use any of the Lexend fonts ad-hoc.\\ |
| 199 |
The usage is identical to any font modification commands (like \code{\textbackslash{}textit} for |
| 200 |
example.) |
| 201 |
|
| 202 |
It is equivalent to using the \code{\textbackslash{}fontspec} command with the corresponding font |
| 203 |
variant name as the parameter to the \code{\textbackslash{}fontspec} command. |
| 204 |
|
| 205 |
Using it looks as follows: |
| 206 |
|
| 207 |
\begin{lstlisting}[language={[LaTeX]TeX},caption={\code{\textbackslash{}LexendPeta} Example}] |
| 208 |
\LexendPeta{ |
| 209 |
Text here.\\ |
| 210 |
More text. |
| 211 |
} |
| 212 |
|
| 213 |
\LexendPeta{ |
| 214 |
This text is using the font LexendPeta. |
| 215 |
} |
| 216 |
\end{lstlisting} |
| 217 |
|
| 218 |
Result:\bigskip |
| 219 |
|
| 220 |
\LexendPeta{ |
| 221 |
Text here.\\ |
| 222 |
More text. |
| 223 |
} |
| 224 |
|
| 225 |
\LexendPeta{ |
| 226 |
This text is using the font LexendPeta. |
| 227 |
} |
| 228 |
\end{function} |
| 229 |
|
| 230 |
\begin{function}{\LexendVariants} |
| 231 |
This command is just a list containing all variants of the Lexend font collection.\\ |
| 232 |
Mainly useful if you want to iterate over all font variants. |
| 233 |
|
| 234 |
\bigskip |
| 235 |
Using it as is will yield this result: |
| 236 |
|
| 237 |
\bigskip |
| 238 |
\LexendVariants |
| 239 |
\end{function} |
| 240 |
|
| 241 |
\subsection{.fontspec Files} |
| 242 |
|
| 243 |
Every Lexend font has its own \code{.fontspec} file. Though they are all identical (excluding the |
| 244 |
actual name) and look like this (\code{<FONTNAME>} will be replaced with the font's name of course): |
| 245 |
|
| 246 |
\lstinputlisting[language={[LaTeX]TeX},caption={template.fontspec}]{template.fontspec} |
| 247 |
|
| 248 |
\subsubsection{Expanding the Default Fontspecs} |
| 249 |
|
| 250 |
If you want to keep the default font settings but would like to add onto them, that's really easy:\\ |
| 251 |
Use the \code{\textbackslash{}defaultfontfeatures+} command of \textsf{fontspec}. |
| 252 |
|
| 253 |
\bigskip |
| 254 |
|
| 255 |
For example if you would like to set the default color for every time you use the font |
| 256 |
\textsf{LexendPeta}, all you have to do is this: |
| 257 |
|
| 258 |
\begin{lstlisting}[language={[LaTeX]TeX},caption={\code{\textbackslash{}defaultfontfeatures+} Example}] |
| 259 |
\defaultfontfeatures+[LexendPeta]{ |
| 260 |
Color=888888 |
| 261 |
} |
| 262 |
\end{lstlisting} |
| 263 |
|
| 264 |
Since this is handled by the \textsf{fontspec} package, please refer to their documentation at |
| 265 |
\url{https://ctan.org/pkg/fontspec}. |
| 266 |
|
| 267 |
\subsection{Future Features}\label{subsec:future-features} |
| 268 |
|
| 269 |
This package is still very young and also fairly incomplete. There's a list of things I'd like to |
| 270 |
add over time. Ordered by how soon I wish to implement them myself. |
| 271 |
|
| 272 |
\begin{itemize} |
| 273 |
\item Support for the continuous spacing font variant of Lexend\tightlist |
| 274 |
\item Support for other \hologo{LaTeX} engines\\ |
| 275 |
That's something I definitely need help with. So feel free to reach out to me or to create a |
| 276 |
Pull Request on GitHub.\tightlist |
| 277 |
\end{itemize} |
| 278 |
|
| 279 |
\section{License} |
| 280 |
|
| 281 |
The licensing of this project is a bit uncommon, so let me explain: |
| 282 |
|
| 283 |
The final package, the one you find on \href{https://ctan.org/}{CTAN}, is licensed under |
| 284 |
\href{https://ctan.org/license/lppl1.3c}{The \hologo{LaTeX} Project Public License 1.3c}. So use it |
| 285 |
like you would use most other packages on \href{https://ctan.org/}{CTAN}. |
| 286 |
|
| 287 |
The source repository, the one you find under \url{https://github.com/BrainStone/latex-lexend}, |
| 288 |
however is licensed under the \href{https://www.gnu.org/licenses/gpl-3.0.html}{GNU General Public |
| 289 |
License v3.0}. |
| 290 |
|
| 291 |
Lastly, the font collection itself is licensed under the |
| 292 |
\href{https://opensource.org/licenses/OFL-1.1}{SIL Open Font License 1.1}. You can find the license |
| 293 |
file under \url{https://github.com/ThomasJockin/lexend/blob/master/OFL.txt}. |
| 294 |
|
| 295 |
\section{Font Samples} |
| 296 |
|
| 297 |
While this whole document uses \textsf{LexendDeca} as the main font and \textsf{LexendGiga} as the |
| 298 |
sans font, it doesn't hurt showing them off individually.\\ |
| 299 |
Each font will be shown off in the sizes \small\textbackslash{}small\normalsize{}, |
| 300 |
\textbackslash{}normalsize and \large\textbackslash{}large\normalsize{} and the variants |
| 301 |
\textbf{\textbackslash{}textbf}, \textit{\textbackslash{}textit} and |
| 302 |
\textbf{\textit{\textbackslash{}textbf\{\textbackslash{}textit\}}} |
| 303 |
|
| 304 |
\foreach \fontVariant in \LexendVariants |
| 305 |
{ |
| 306 |
\subsection{\texorpdfstring{\fontspec{\fontVariant}{\fontVariant}}{\fontVariant}} |
| 307 |
|
| 308 |
\fontspec{\fontVariant}{ |
| 309 |
\small\blindtext\normalsize\bigskip |
| 310 |
|
| 311 |
\blindtext\bigskip |
| 312 |
|
| 313 |
\large\blindtext\normalsize\bigskip |
| 314 |
|
| 315 |
\textbf{\blindtext}\bigskip |
| 316 |
|
| 317 |
\textit{\blindtext}\bigskip |
| 318 |
|
| 319 |
\textbf{\textit{\blindtext}} |
| 320 |
} |
| 321 |
} |
| 322 |
|
| 323 |
\end{document} |