New answers tagged

5

Here is a solution with wrapfigure. I replaced the items of a description environment (wrapfigure won't work) with a special formatting of \paragraph with the titlesec package, in order to mimick the layoout of a description environment: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{fourier, erewhon} ...


2

You can do that with the makecell package, which allows for line breaks in cells and a common formatting, through the\thead and \makecell commands. I propose another, looking better, solution, with only horozontal rules of different thickness, with the booktabs package. Finally I added some improvements to your table (unbreakable thin space between number ...


1

Try this: <<results='asis',echo=FALSE>>= # row.names(Count) = stringr::str_wrap(row.names(Count), width=50) print(xtable(Count, caption='test', label='tab:example', align=c('p{1in}',rep('|c', ncol(Count)))),scalebox = 0.75) @ The only change made is for the parameter align. The insertion of p{1in} tells that the first column should have the ...


0

Here you are. I added some vertical padding to cells, with the \makegaedcells command from makecell: \documentclass{article} \usepackage{tabularx} \usepackage{makecell, multirow} \renewcommand\theadfont{\bfseries} \setcellgapes[t]{2pt} \begin{document} \makegapedcells \begin{tabularx}{\textwidth}{*{2}{l} X} \hline \multirowthead{7}{Abduction} ...


3

Try to employ package makecell and use its macro \thead. In this case you need to manually broke lines in the column heads where those is necessary. For example: \documentclass{article} \usepackage{lscape} \usepackage[table]{xcolor} \usepackage{tabu} \usepackage{makecell,multirow} \renewcommand\theadfont{\bfseries} \begin{document} \begin{landscape} ...


4

wrapfig works by using the height of the wrapped object to calculate the number of lines of text which it should shorten and then shortening those lines. Sometimes, this isn't right and you can override the number with the optional argument. In this case, that is never going to be enough because it is effectively unable to find any lines which it can shorten ...



Top 50 recent answers are included