Debian Codegraph @

texmf-dist/doc/latex/lucide-icons/lucide-icons-doc.tex

raw
1 % !TeX TXS-program:compile = txs:///arara
2 % arara: pdflatex: {shell: no, synctex: no, interaction: batchmode}
3 % arara: pdflatex: {shell: no, synctex: no, interaction: batchmode}
4
5 \documentclass{article}
6 \usepackage[margin=1in]{geometry}
7 \usepackage{lucide-icons}
8 \usepackage{xcolor}
9 \usepackage{longtable}
10 \usepackage{booktabs}
11 \usepackage{hyperref}
12 \usepackage{fancyvrb}
13 \usepackage{shortvrb}
14 \MakeShortVerb{\|}
15 \setlength{\parindent}{0pt}
16
17 \newenvironment{lucideiconcase}
18 {%
19 \begin{longtable}{cllr}%icon + name + macro + page
20 \cmidrule[\heavyrulewidth]{1-4}% \toprule
21 \bfseries Icon & \bfseries Name & \bfseries Direct command & \bfseries PDF page \\
22 \cmidrule{1-4}
23 \endhead
24 }%
25 {%
26 \cmidrule[\heavyrulewidth]{1-4}
27 \end{longtable}%
28 }
29
30 \NewDocumentCommand{\showcaselucideicons}{mm}{%name + macro + page
31 \textcolor{violet}{\Large\lucideicon{#1}} & \itshape #1 & \ttfamily \textbackslash lucideicon\{#1\} & \sffamily #2 \\
32 }
33
34 \begin{document}
35
36 \title{The \textsf{lucide-icons} package (0.1.3) -- 12/05/2026}
37 \author{%
38 Cédric Pierquet\\%
39 \url{https://lucide.dev} (Source version 1.14.0)\\%
40 \url{https://github.com/cpierquet/latex-packages/tree/main/lucide-icons} (\LaTeX{} package)
41 }
42 \date{cpierquet -- at -- outlook . fr}\maketitle
43
44 This package provides \LaTeX{} support for the \textsf{Lucide-Icons} project (\url{https://lucide.dev}).
45
46 \medskip
47
48 \hspace*{5mm}\fbox{\begin{minipage}{0.75\linewidth}{\emph{A set of 1703 free ISC License high-quality SVG/PDF icons for you to use in your web projects.}}\end{minipage}}
49
50 \medskip
51
52 To use \textsf{lucide-icons} in your document, include the package with |\usepackage{lucide-icons}|.
53
54 An icon can be accessed using the icon name. A list of all included icons with their respective \textit{page} can be found at the end of this document.
55
56 \medskip
57
58 The individual icons are provided as pages of a PDF and are ultimately loaded using the |\includegraphics| command from the |graphicx| package.
59
60 \medskip
61
62 Thanks to \textsf{priiduonu} for the tip with stroke color !
63
64 \section{Example}
65
66 \begin{Verbatim}[frame=single]
67 ...
68 \usepackage{lucide-icons}
69 ...
70 \begin{document}
71 ...
72 Inline \lucideicon{anchor} version, and colored \textcolor{red}{\lucideicon{anchor}}
73 ...
74 \end{document}
75 \end{Verbatim}
76
77 Result: Inline \lucideicon{anchor} version, and \textcolor{red}{\lucideicon{anchor}} colored version
78
79 \pagebreak
80
81 \section{Usage}
82
83 \subsection{Generic macro}
84
85 \begin{Verbatim}[frame=single]
86 \lucideicon[height=...,(d)strut=...]<includegraphics options>{name}
87 \end{Verbatim}
88
89 Key \texttt{[height=...]} can be:
90
91 \begin{itemize}
92 \item \texttt{dauto} (by default): inline insertion with height/depth;
93 \item \texttt{auto}: inline insertion with height/nodepth;
94 \item \texttt{a length}: normal insertion with fixed height;
95 \item \texttt{manuel height/depth}: normal insertion with fixed height/depth.
96 \end{itemize}
97
98 The keys \texttt{[(d)strut=...]} can be used to set the \textit{reference} box for dimension calculations.
99
100 \medskip
101
102 By default, icons are given with a small border, so the given height is the height of the \textit{full} box, not the hight of the icons.
103
104 \medskip
105
106 Example: Inline{\setlength\fboxsep{0pt}\fbox{\lucideicon{anchor}}}version or inline {\setlength\fboxsep{0pt}\fbox{\lucideicon{anchor}}} version
107
108 \pagebreak
109
110 \subsection{Examples}
111
112 \begin{Verbatim}[frame=single]
113 %normal version: inline with automatic height/depth (from qX characters)
114 \lucideicon[height=dauto]{anchor} %or \lucideicon{anchor}
115 \end{Verbatim}
116
117 {\Huge q\lucideicon{anchor}X}
118
119 \begin{Verbatim}[frame=single]
120 %normal version: inline with automatic height/depth (from specified characters)
121 (q\lucideicon[height=dauto,dstrut=(qB)]{anchor}B)
122 \end{Verbatim}
123
124 {\Huge (q\lucideicon[height=dauto,dstrut=(qB)]{anchor}B)}
125
126 \begin{Verbatim}[frame=single]
127 %normal version: inline with automatic height (from X character) default version
128 \lucideicon[height=auto]{anchor}
129 \end{Verbatim}
130
131 {\Huge X\lucideicon[height=auto]{anchor}X}
132
133 \begin{Verbatim}[frame=single]
134 %normal version: inline with manual height/depth
135 \lucideicon[height={0.8em/-0.4em}]{anchor}
136 \end{Verbatim}
137
138 {\Huge qb\lucideicon[height={0.8em/-0.4em}]{anchor}Xz}
139
140 \begin{Verbatim}[frame=single]
141 %fixed height
142 \lucideicon[height=2in]{anchor}
143 \end{Verbatim}
144
145 \lucideicon[height=1.5in]{anchor}
146
147 \subsection{Used packages}
148
149 \texttt{ifthen}, \texttt{calc}, \texttt{graphicx}, \texttt{xstring} and \texttt{simplekv} are loaded and used by the package.
150
151 \subsection{Bugs}
152
153 For bug reports and feature requests, report on the GitHub repository \url{https://github.com/cpierquet/latex-packages/issues}.
154
155 \newpage
156
157 \section{List of icons}
158
159 The \textsf{PDF} file is \texttt{lucide-icons-all}.
160
161 Icons are colored in \textcolor{violet}{violet}.
162
163 \input{lucideiconsbindings}
164
165 \end{document}