Hot answers tagged

4

You need the \multicolumn spec to include @{}: \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{booktabs} \usepackage{siunitx} \usepackage{makecell} \usepackage[british]{babel} \begin{document} \begin{tabular}{@{}l*{3}{S[table-format=3]}@{}} \toprule & \multicolumn{1}{c}{Lions} & \...


3

I guess this feature requires the usage of defined units instead of just text input. Compare the following two expressions: \documentclass[11pt, paper=a4, footinclude, oneside ]{scrbook} \usepackage{mathtools} \usepackage[ngerman]{babel} \usepackage{graphicx} \usepackage{caption} \usepackage[european]{circuitikz} \usepackage{float} \...


2

There seem to be two problems here. The first is that you can't have command names that include digits, so \glsentryunit2 actually means \glsentryunit followed by 2. (This is why there are commands, such as \glsentryuseri, that contain Roman numerals instead of digits.) Your first \glsaddkey command defines \glsentryunit, and your second \glsaddkey attempts ...


2

The problem is in the continued caption, which is too wide; the excess always goes to the last column. \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[english]{babel} \usepackage{siunitx} \usepackage{longtable} \usepackage{booktabs} \textheight=8\baselineskip % just for the example \begin{document} \begin{longtable}{ l *{2}{S[table-...


2

If you add \addtolength\textheight{-30\baselineskip} You see the cause of the space on page 2 You need to shorten the heading or spread it over two lines so that it does not force the last column to be too wide. Perhaps \multicolumn{5}{c}% {\tablename\ \thetable\ -- \textit{Univariate Item Descriptives}} \\ \multicolumn{5}{r}% {(\textit{Continued ...


2

What about a solution like this? (Ispired by David Carlisle's answer to this question: Combine column types defined in dcolumn with tabularx). Even if a column header is needed... \documentclass[a4paper,12pt]{article} \usepackage{array} \usepackage{siunitx} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \newcolumntype W{S[round-mode=places,...


2

I assume that your answer is actually continuation of your question (I suggest to edit your question and move it there). Problem in aligning of cells content and boldface fonts for some of them is in option parse-numbers=false. Without it all with exception of cells of form (-0.01) works as expected, those cells generate errors. This can be prevented by ...


1

(I will delete this soon) The following code is supposed to append % to only the last 3 columns, but it does only append % to the two last columns in addition to an ugly space on the last column. \documentclass[preview,border=5pt]{standalone} \usepackage{booktabs} \usepackage{siunitx} \newcommand\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} \begin{...


1

To add % to each cell in S column type is the same as at other column types: S[....]<{\%} With siunitx to tables oriented option you can make fine tuning of apperance o %. Two examples are in MWE below: \documentclass[preview,border=5pt]{standalone} \usepackage{booktabs} \usepackage{siunitx} \newcommand\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} ...



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