I load the following fonts: \usepackage\)"' `"LR chi2"' `"Prob > chi2"' `"Baseline predicted probability"')) Used to generate the example to see how the solution works.
But if you use distinct fonts, the result will be as the one in the example above: minus symbol and brackets are set in “Euler”, a very pretty math-font, but the rest is set in Linux Libertine, my favourite free LaTeX font. If you use a complete font such as Latin Modern you won’t notice this because both text- and math-font look the same. they do not interfere with the decimal-alignment) in math-mode. The second problem occurs because siunitx sets symbols that are specified as input-symbols (i.e. But I don’t like this, because then we are not able to create really compact tables and furthermore it can happen that the column headline is not perfectly centered relative to the integer and digits. Hence, we need to specify this in siunitx by S to avoid overfull hbox warnings. Consider the table on the right: we have a maximum of 2 characters on the left side of the decimal limiter (minus + one integer) and a maximum of 5 characters on the right side (two decimals + three stars). The first occurs because siunitx, the package we use to decimal-align the values requires precise information about how much space there is in each column before and after the decimal limiter. If you use different math- and text-fonts, symbols in the table are set in the math-font, which can look ugly.īoth are relatively serious problems.You generate hundreds of overfull hbox warnings in LaTeX if you decimal-align the results.You might have encountered two problems following the instructions of my previous posts: This post is about improving the print quality in LaTeX even further. If you are new to LaTeX and Stata integration please read my introductory post and my follow up post that solves some problems. If you followed my previous posts regarding automated Stata and LaTeX integration you might already have a good idea how estout works and how a table can be printed in LaTeX in an aesthetically pleasing way.