Hot answers tagged

17

Einstein is not among the units available by default in siunitx, but you can declare a new unit. Note also that you need \per for each unit in the denominator unless you've set sticky-per=true. \documentclass{article} \usepackage{siunitx} \DeclareSIUnit{\einstein}{E} \begin{document} \SI{60}{\micro\einstein\per\meter\squared\per\second} ...


9

The unit macros are defined only locally, so you do not want a global setting of \litre. Rather, use \DeclareSIUnit\litre{\liter} or \DeclareSIUnit\litre{L} or of course use your editor to do find and replace. (I'd favour making the two logically equivalent over hard-coding L into both.)


6

I think this is the most recent siunitx' manual. Here the word percent appears only five times, and I cannot find permille or similar. A possible answer can be found here, that is, you can put the following declaration in the preamble \DeclareSIUnit\permille{\text{\textperthousand}} and then use it just as the \percent macro of siunitx. ...


4

I do not know another solution but tweaking around with two columns. Is there a reasons why you do not want to use two? % arara: pdflatex \documentclass[12pt]{report} \usepackage{booktabs} \usepackage{siunitx} \usepackage{caption} \begin{document} \begin{table} \centering \caption{My caption} ...


3

You're overspecificating: stating column widths is usually unnecessary; you also have p{2.5cm}X which means two column specifiers. If you want that the first column takes all the available space, use X; for getting centered entries, >{\centering}X. \documentclass{article} \usepackage{array} \usepackage{tabularx} \usepackage{booktabs} ...


3

Maybe something like this: \documentclass[12pt]{report} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{table} \centering \sisetup{ table-figures-integer = 4 , table-figures-decimal = 0 , table-space-text-post = {~(\SI{99}{\percent})} , table-number-alignment = center } ...


1

The following example defined \phnum, which supports \X as additional digit. The macro is defined to be a phantom digit, leaving place for a digit. Then the colored number can be composed by overlaying the number with different colors. The digits of different colors are masked out by \X, for example: \documentclass{article} \usepackage{xcolor} ...



Only top voted, non community-wiki answers of a minimum length are eligible