Lots of stuff.
This commit is contained in:
@@ -5,14 +5,16 @@
|
||||
|
||||
\dim_const:Nn \c_Graphics_icon_dim {0.25in}
|
||||
|
||||
\dim_const:Nn \c_InlineGraphic_offset_dim {-2pt}
|
||||
|
||||
\NewDocumentCommand{\IconSize}{}{\c_Graphics_icon_dim}
|
||||
|
||||
\keys_define:nn{InlineGraphic}{
|
||||
height .dim_set:N = \l_InlineGraphic_height_dim,
|
||||
height .initial:n = {12pt},
|
||||
height .initial:e = {\baselineskip},
|
||||
|
||||
offset .dim_set:N = \l_InlineGraphic_offset_dim,
|
||||
offset .initial:n = {-2pt},
|
||||
offset .initial:e = {\c_InlineGraphic_offset_dim},
|
||||
}
|
||||
|
||||
\NewDocumentCommand{\InlineGraphic}{
|
||||
@@ -23,9 +25,10 @@
|
||||
}{
|
||||
\keys_set:nn{InlineGraphic}{#1}
|
||||
\raisebox{\l_InlineGraphic_offset_dim}{
|
||||
\includegraphics[
|
||||
keepaspectratio,height=12pt
|
||||
]{#2}
|
||||
\expanded{\noexpand\includegraphics[
|
||||
keepaspectratio,
|
||||
height=\l_InlineGraphic_height_dim,
|
||||
] {#2}}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user