I would like to align some text similar to how the align
math environment works. I don't want to put the text in a table, because I don't want it to float. I tried putting the text in a tabular environment, but that doesn't flow well with the text before and after.
An example:
Here is some text before by aligned text
S Isomeric state
Z Atomic number
A Atomic mass number
Some text after the aligned text
Does that example make sense?
Best Answer
There are numerous ways to achieve this depending on the complexity of the alignment.
One way is to use
\makebox
to set the text into a fixed width size:Depending on the complexity of the alignment, you can define macros to make the entry as above easier.
If you only have a list as in the example you have given, you could use simply use a list environment. Here is an an example use the
enumitem
packageYou could also use the
tabular
environment and not put it in a float:Yet another option is to use the
tabbing
environment (suggested by @GonzaloMedina):