I want to create commands that will show some data and will be used as a single character in different places (paragraphs, tables etc.).
Here is an example of how it should be looking:
I achieved it with the following code:
\newcommand{\Helium}{
\begin{tabular}{|c|}
{\huge He}\\
{\small Helium}
\end{tabular}
}
\newcommand{\Titanium}{
\begin{tabular}{|c|}
{\huge Ti}\\
{\small Titanium}
\end{tabular}
}
And now it is used as:
Some text \Helium{} and more text \Titanium{} and final text.
- Is it good to use tables for that (side lines are not needed and are here only to show size of the created element)?
- Is there any way to reduce padding? Horizontal padding is quite big and when side lines are removed it takes too much space.
{|c||}
with{@{}c@{}}
the remove the space on each side of the column.