Skip to content
Snippets Groups Projects
Verified Commit d02c785c authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

properly spaced and scaled :warning:; retire \Warning for it

% test file

\documentclass{article}%

\usepackage[utf8]{inputenc}%
\usepackage[LY1,TS1,T1]{fontenc}%
\usepackage[varqu,varl]{inconsolata}%	for table example
\usepackage{unicodepoints}%
\usepackage[a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry}%

\setlength{\parskip}{0.3cm plus 5mm minus 1mm}%
\setlength{\parindent}{0cm}%

\begin{document}

:warning: Default size m:warning:m

{\tiny :warning: size tiny}

{\scriptsize :warning: size scriptsize}

{\footnotesize :warning: size footnotesize}

{\small :warning: size small}

{\normalsize :warning: size normalsize}

{\large :warning: size large}

{\Large :warning: size Large}

{\LARGE :warning: size LARGE}

{\huge :warning: size huge}

{\Huge :warning: size Huge}

{\sffamily%
:warning: sans Default size

{\tiny :warning: size tiny}

{\scriptsize :warning: size scriptsize}

{\footnotesize :warning: size footnotesize}

{\small :warning: size small}

{\normalsize :warning: size normalsize}

{\large :warning: size large}

{\Large :warning: size Large}

{\LARGE :warning: size LARGE}

{\huge :warning: size huge}

{\Huge :warning: size Huge}
}

EOF

\end{document}
parent acdeb091
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
% \usepackage[utf8]{inputenc}% % \usepackage[utf8]{inputenc}%
\NeedsTeXFormat{LaTeX2e}% \NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{unicodepoints}[2018/08/05 2.2 Unicode codepoints]% \ProvidesPackage{unicodepoints}[2018/08/16 2.3 Unicode codepoints]%
\makeatletter% \makeatletter%
\ifx\UTFviii@defined\@undefined% \ifx\UTFviii@defined\@undefined%
...@@ -94,10 +94,16 @@ ...@@ -94,10 +94,16 @@
}% }%
% Render command for ⚠ (U+26A0) % Render command for ⚠ (U+26A0)
\DeclareRobustCommand\Warning{% \DeclareRobustCommand\unicodepoints@warn{%
\makebox[1.4em][c]{% \resizebox{!}{\fontcharht\font`A}{%
\makebox[0pt][c]{\raisebox{.2em}{\footnotesize!}}% \fontencoding{OMS}\fontfamily{cmsy}\fontseries{m}\fontshape{n}\fontsize{20.74}{25}\selectfont%
\makebox[0pt][c]{\color{red}\huge$\bigtriangleup$}% \makebox[\fontcharwd\font"34][c]{%
\makebox[0pt][c]{\color{red}\symbol{"34}}%
\makebox[0pt][c]{\raisebox{2pt}{%
\fontencoding{T1}\fontfamily{cmr}\fontsize{11}{13}\selectfont%
!%
}}%
}%
}% }%
}% }%
...@@ -1686,7 +1692,7 @@ ...@@ -1686,7 +1692,7 @@
\newunicodechar{}{\Recycling}% \newunicodechar{}{\Recycling}%
\newunicodechar{}{\Wheelchair}% \newunicodechar{}{\Wheelchair}%
\newunicodechar{}{\MineSign}% \newunicodechar{}{\MineSign}%
\newunicodechar{}{\Warning}% \newunicodechar{}{\unicodepoints@warn}%
\newunicodechar{}{\FemaleFemale}% \newunicodechar{}{\FemaleFemale}%
\newunicodechar{}{\MaleMale}% \newunicodechar{}{\MaleMale}%
\newunicodechar{}{\FemaleMale}% \newunicodechar{}{\FemaleMale}%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment