Add Emoji font and InlineGraphic command.
This commit is contained in:
BIN
fonts/NotoEmoji/NotoEmoji-Bold.ttf
Normal file
BIN
fonts/NotoEmoji/NotoEmoji-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoEmoji/NotoEmoji-Light.ttf
Normal file
BIN
fonts/NotoEmoji/NotoEmoji-Light.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoEmoji/NotoEmoji-Medium.ttf
Normal file
BIN
fonts/NotoEmoji/NotoEmoji-Medium.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoEmoji/NotoEmoji-Regular.ttf
Normal file
BIN
fonts/NotoEmoji/NotoEmoji-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoEmoji/NotoEmoji-SemiBold.ttf
Normal file
BIN
fonts/NotoEmoji/NotoEmoji-SemiBold.ttf
Normal file
Binary file not shown.
@@ -44,7 +44,7 @@
|
|||||||
% #2: Tabularray colspec, passed to @boxout argument #2.
|
% #2: Tabularray colspec, passed to @boxout argument #2.
|
||||||
O{colspec={X[l,h]}}
|
O{colspec={X[l,h]}}
|
||||||
% #3: Caption.
|
% #3: Caption.
|
||||||
+m
|
m
|
||||||
% #4: [Ww] for warning box.
|
% #4: [Ww] for warning box.
|
||||||
o
|
o
|
||||||
% #5: Body, passed to @boxout.
|
% #5: Body, passed to @boxout.
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
% #5: Tabularray colpec, passed to Boxout argument #2.
|
% #5: Tabularray colpec, passed to Boxout argument #2.
|
||||||
O{X[l,h]}
|
O{X[l,h]}
|
||||||
% #6: Caption, passed to Boxout argument #3.
|
% #6: Caption, passed to Boxout argument #3.
|
||||||
+m
|
m
|
||||||
% #7: [Ww] for warning box, if present passed to Boxout argument #4.
|
% #7: [Ww] for warning box, if present passed to Boxout argument #4.
|
||||||
o
|
o
|
||||||
% #5: Body, passed to Boxout.
|
% #5: Body, passed to Boxout.
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
O{3in}
|
O{3in}
|
||||||
O{X[l,h]}
|
O{X[l,h]}
|
||||||
>{\TrimSpaces}m
|
>{\TrimSpaces}m
|
||||||
+m
|
m
|
||||||
o
|
o
|
||||||
+b
|
+b
|
||||||
}{%
|
}{%
|
||||||
|
|||||||
@@ -48,16 +48,28 @@
|
|||||||
BoldItalicFont = RobotoSerif/RobotoSerif-ExtraBoldItalic,
|
BoldItalicFont = RobotoSerif/RobotoSerif-ExtraBoldItalic,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
% Emoji font: Noto Emoji
|
||||||
|
\newfontfamily{\emfamily}{NotoEmoji}[
|
||||||
|
Path = {\fontpath/},
|
||||||
|
Extension = .ttf,
|
||||||
|
UprightFont = NotoEmoji/NotoEmoji-Regular,
|
||||||
|
BoldFont = NotoEmoji/NotoEmoji-Bold,
|
||||||
|
ItalicFont = NotoEmoji/NotoEmoji-Light,
|
||||||
|
]
|
||||||
|
|
||||||
\NewDocumentCommand{\serif}{m}{\textrm{#1}}
|
\NewDocumentCommand{\serif}{m}{\textrm{#1}}
|
||||||
\NewDocumentCommand{\sans}{m}{\textsf{#1}}
|
\NewDocumentCommand{\sans}{m}{\textsf{#1}}
|
||||||
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
|
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
|
||||||
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
|
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
|
||||||
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
||||||
|
\NewDocumentCommand{\emoji}{m}{{\emfamily{}#1}}
|
||||||
|
|
||||||
\RequirePackage{amssymb}
|
\RequirePackage{amssymb}
|
||||||
|
|
||||||
\RequirePackage[os=win]{menukeys}
|
\RequirePackage[os=win]{menukeys}
|
||||||
|
|
||||||
\renewmenumacro{\directory}[,]{hyphenatepaths}
|
\renewmenumacro{\directory}[/]{hyphenatepaths}
|
||||||
|
\renewmenumacro{\keys}[+]{shadowedangularkeys}
|
||||||
|
\renewmenumacro{\menu}[>]{angularmenus}
|
||||||
|
|
||||||
\RenewDocumentCommand{\ctrlname}{}{$\wedge$}
|
\RenewDocumentCommand{\ctrlname}{}{$\wedge$}
|
||||||
@@ -8,7 +8,17 @@
|
|||||||
\RequirePackage{wrapfig2}
|
\RequirePackage{wrapfig2}
|
||||||
|
|
||||||
\providelength{\iconsize}[0.25in]
|
\providelength{\iconsize}[0.25in]
|
||||||
\providelength{\igh}[10pt] % igh = Inline Graphics Height.
|
|
||||||
|
\providelength{\@InlineGraphicHeight}[12pt]
|
||||||
|
\providelength{\@InlineGraphicOffset}[-2pt]
|
||||||
|
|
||||||
|
\NewDocumentCommand{\InlineGraphic}{
|
||||||
|
O{\@InlineGraphicHeight}
|
||||||
|
m
|
||||||
|
O{\@InlineGraphicOffset}
|
||||||
|
}{%
|
||||||
|
\raisebox{#3}{\includegraphics[keepaspectratio,height=#1]{#2}}%
|
||||||
|
}
|
||||||
|
|
||||||
% Shorthand command for \includegraphics.
|
% Shorthand command for \includegraphics.
|
||||||
\NewDocumentCommand{\ig}{O{width=0.5in} m}{%
|
\NewDocumentCommand{\ig}{O{width=0.5in} m}{%
|
||||||
@@ -96,15 +106,15 @@
|
|||||||
% First label.
|
% First label.
|
||||||
>{\TrimSpaces}m
|
>{\TrimSpaces}m
|
||||||
% First caption.
|
% First caption.
|
||||||
m
|
>{\TrimSpaces}m
|
||||||
% Second graphic file.
|
% Second graphic file.
|
||||||
m
|
m
|
||||||
% Second label.
|
% Second label.
|
||||||
>{\TrimSpaces}m
|
>{\TrimSpaces}m
|
||||||
% Second caption.
|
% Second caption.
|
||||||
m
|
>{\TrimSpaces}m
|
||||||
}{%
|
}{%
|
||||||
\begin{BigFloat}[generic][#1][#2][#3]%
|
\begin{BigFloat}[figure][#1][#2][#3]%
|
||||||
\begin{tblr}{%
|
\begin{tblr}{%
|
||||||
colspec = {*{2}{Q[c,m,wd=\twinfigwidth]}},%
|
colspec = {*{2}{Q[c,m,wd=\twinfigwidth]}},%
|
||||||
hlines = {0pt},
|
hlines = {0pt},
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
% Suppress warning about \showhyphens being changed.
|
% Suppress warning about \showhyphens being changed.
|
||||||
\let\CheckCommand\providecommand
|
\let\CheckCommand\providecommand
|
||||||
|
|
||||||
|
\RequirePackage{ifthen}
|
||||||
|
|
||||||
\NewDocumentCommand{\providelength}{m O{0pt}}{%
|
\NewDocumentCommand{\providelength}{m O{0pt}}{%
|
||||||
\ifdeflength{#1}{% It is already defined!
|
\ifdeflength{#1}{% It is already defined!
|
||||||
}{% Not defined, so define it!
|
}{% Not defined, so define it!
|
||||||
@@ -126,7 +128,7 @@
|
|||||||
}{%
|
}{%
|
||||||
\begin{#1}[#3]% float environment
|
\begin{#1}[#3]% float environment
|
||||||
\begin{SmartAdjustWidth}{-#2}{-#2 * \real{#4}}% adjustwidth(*)
|
\begin{SmartAdjustWidth}{-#2}{-#2 * \real{#4}}% adjustwidth(*)
|
||||||
\begin{minipage}{\linewidth}%#2 * (#4 + 1) + \textwidth}%
|
\begin{minipage}{\linewidth}%{#2 * (#4 + 1) + \textwidth}%
|
||||||
\ifthenelse{\boolean{isDraft}}{%
|
\ifthenelse{\boolean{isDraft}}{%
|
||||||
{\color{layoutColor}\rule{\textwidth}{1pt}\zws}%
|
{\color{layoutColor}\rule{\textwidth}{1pt}\zws}%
|
||||||
#5%
|
#5%
|
||||||
@@ -135,6 +137,6 @@
|
|||||||
#5%
|
#5%
|
||||||
}%
|
}%
|
||||||
\end{minipage}%
|
\end{minipage}%
|
||||||
\end{#5}%
|
\end{SmartAdjustWidth}%
|
||||||
\end{#1}%
|
\end{#1}%
|
||||||
}{}
|
}{}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}{
|
}{
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
allcolors = textColor,
|
allcolors = textColor,
|
||||||
pdfduplex = true,
|
pdfduplex = DuplexFlipLongEdge,
|
||||||
pdfpagelayout = TwoPageRight,
|
pdfpagelayout = TwoPageRight,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user