Hot answers tagged

9

I think the best way to proceed is to stop using \hline -- and, while you're at it, ditch all vertical bars -- and to use the line-drawing macros of the booktabs package. For the table at hand, \toprule and \bottomrule should be used. If, for some reason, you simply must use vertical bars (and hence can't use \toprule and \bottomrule), I suggest you load ...


9

The problem is not in diacritics, it is in LaTeX tables. You can give rows some vertical padding with the cellspace package, which ensure a minimal vertical distance between a cell and the above and below rules. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{array, cellspace} \setlength\cellspacetoplimit{3pt} ...


6

Insert a large \strut. \documentclass{article} \begin{document} \begin{table}[!h] \begin{tabular}{|c|c|c|c|c|c|} \hline {\Large\strut}\"Ostersund & \AA m\aa l & Oxel\"osund & Alings\aa s & \'Orlaith &O\'O\"O\H{O}\\ \hline \end{tabular} \end{table} \end{document}


6

In my opinion, you should (a) get rid of all vertical lines (trust me, they won't be missed...) and (b) omit the horizontal lines as well since they are redundant, given that you're using colors (or, rather, shades of gray) to set off the header row. What I would do, in contrast, is split the information in the header row into two separate rows, to the ...


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 ...


3

You have not quoted the full error message which is ! Extra alignment tab has been changed to \cr. <recently read> \endtemplate l.9 ... &اثربخشی &رتبه& کارایی& کارایی DMU which tells you the problem is on line 9 and shows which & is the problem. (Always use a code section ...


3

Here you go … I used colortbl (loaded by xcolor) to color the rows in the tabular and TikZ to draw the frame around it. Some more explanations are in the code comments, let me know if I should explain something in more detail. \documentclass[fontsize=8.5pt]{scrartcl} % set page size \usepackage{geometry} \geometry{ paperwidth = 3.5in, paperheight ...


3

It is a bit tricky as you want to start the grey row in the second column. I just made the cell white afterwards. I hope, the code is self explanatory. % arara: pdflatex \documentclass{article} \usepackage{graphicx} \usepackage{booktabs} \usepackage{lscape} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{landscape} ...


3

Since Zarko said so: \begin{table}[p] \input{table1} \end{table} \clearpage \begin{table}[p] \input{table2} \end{table} :)


2

You're misusing \faicon: either you use \faicon{<name>} or \fa<Name> \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{fontawesome} \title{Test} \author{lordthistle } \date{May 2016} \begin{document} \maketitle \faEnvelope\ or \faicon{envelope} \section{Introduction} \begin{tabular}{ll} \faicon{envelope} & Test \\ ...


2

You can do calculations of page positions: \documentclass{beamer} \usepackage{tikz} \usetheme{default} \usepackage{zref-savepos} \begin{document} \begin{frame} \tikz[overlay,remember picture]\draw[red] (current page.north)--(current page.south); \centering \hspace*{\dimexpr\zposx{end}sp-\zposx{midright}sp-\zposx{midleft}sp+\zposx{start}sp}% ...


2

If you want your text readable (which you do 111% in a test), you really don't want to shrink it. Therefore you have to split it into two pages. Together with de-tabularizing your list, the code could look like this: \documentclass[a4paper,12pt]{article} \usepackage[british]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{geometry} ...


2

The TABLE environment starts a \vbox, so if it occurs at the beginning of a sentence, it switches to vertical mode. To prevent that, add a \dontleavehmode. \starttext Normal text \setupnarrower[left=2cm] \startnarrower[left] Narrower text \blank[small] \dontleavehmode \bTABLE \bTR \bTC Misbehaving ...


2

Is it something like this you want? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage[T2A]{fontenc} \usepackage{fourier, erewhon} \usepackage[left=2cm,right=3cm,top=2cm,bottom=2cm, showframe]{geometry} \usepackage{tabularx} \sloppy \parindent=1,5cm \usepackage{amsmath} \begin{document} \begin{table} ...


2

\documentclass{scrreprt} \usepackage{extsizes}%пакет для 14 шрифта \usepackage[utf8]{inputenc}%кодировка \usepackage[russian]{babel}%кириллица \usepackage[T2A]{fontenc}%кодировка теха \usepackage{multirow}%объединение строки \usepackage{array} \usepackage{ragged2e} \newcolumntype{C}[1]{>{\hspace{0pt}\centering\arraybackslash}m{#1}} \begin{document} ...


2

I can understand your reluctance to split tabular material across pages. However, if the choice is between (a) allowing a page break in the middle of the tabular material and (b) shrinking the tabular material to make it fit in the available space on a page (and risking the material becoming tiny and virtually unreadable!), the former choice may well be far ...


2

As starting point can serve the following MWE: \documentclass[10pt,journal,compsoc]{IEEEtran} \usepackage{booktabs,tabularx} \newcolumntype{C}{>{\centering\arraybackslash}X} \usepackage{lipsum} \begin{document} \lipsum[1-3] \begin{table}[htb] \begin{minipage}{\linewidth} \begin{tabularx}{\columnwidth}{*{4}{C}} \toprule T & X & Y & ...


2

OPTION 1: Row specific padding One can add a \stackgap to a given element of the line, which pads the element vertically by the amount of the optional argument (default 3pt). The MWE below shows 3 rows that have been padded with 1pt, 3pt, and 5pt, respectively. \documentclass{article} \usepackage{stackengine} \begin{document} \begin{table}[!h] ...


2

Something like this? This combines makecell with the booktabs style you are already using which, as you know, is allergic to vertical rules (so I assume you don't want those). Note that I'm a great fan of TikZ but using a tikzpicture for each tick is surely overkill if anything is. Even if you need TikZ elsewhere in the document, please don't use it ...


1

You may have to reduce the inter-column spacing by adding something like \setlength{\tabcolsep}{<len>} before the tabular (or placing it inside a group to limit the scope of the change, like inside a table environment). Either fix <len> or use something relative, like .5\tabcolsep to reduce the current \tabcolsep to 50% of its value. \tabcolsep ...


1

I'm an absolute beginner here, but just playing around with your code I managed to get the following table: \begin{table}[h] \caption{Results} \label{table_example} \centering \begin{tabular}{ *{9}{c} } \hline \addlinespace && \multicolumn{3}{c}{PMX} & \multicolumn{3}{c}{CX} \\ \cmidrule(lr){3-5} ...


1

You have defined 9 columns for your table and in the first row, you are using 7. But if I interpret your table correctly, it should be 8. Here is how I would have done it: % arara: pdflatex \documentclass{IEEEtran} \usepackage{blindtext} \usepackage{siunitx} \usepackage{booktabs} \begin{document} \Blindtext \begin{table*} ...


1

Something like this? % arara: pdflatex % arara: pdflatex \documentclass[11pt]{book} \usepackage{longtable} \usepackage{array} % take a look on the corners of your tables. \usepackage{hyperref} \begin{document} \begin{small} \begin{longtable}{ | p{0,8cm} | p{2,5cm} p{1,8cm} p{2,3cm} p{2,6cm} | p{0,7cm} | } \caption{Coding frames ...


1

Here is a solution based on \IfFileExists{}{}{} \foreach not necessary just to make it easy \documentclass{article} \usepackage{datatool} \usepackage{pgffor} \begin{document} \foreach \x in {1,...,10} {% \IfFileExists{fic\x.csv}{% \DTLloaddb{myDB\x}{fic\x.csv} \begin{table} \DTLdisplaydb{myDB\x} \caption{My table caption (\x)} \end{table}}{}} ...


1

Here's an alternative answer, which differs from my earlier answer mainly by the use of a tabular environment. To ensure that the tabular material and the header material fit on a single page while using a \large relative font size, it will in general be necessary to decrease the widths of the vertical margins relative to what you've specified in the posting ...


1

\documentclass{article} \usepackage{graphicx} \usepackage{multirow} \begin{document} \begin{table}[ht] \large \centering \begin{tabular}{c|c||*{8}{c|}} \multicolumn{2}{c}{} & \multicolumn{8}{c}{Area Range} \tabularnewline \cline{2-10} \multirow{9}*{\rotatebox{90}{No. of tasks}} & & \bfseries 0 & \bfseries 1 & ...


1

You have to use a p{<length>} spec inside the argument of \multicolumn if you want line breaks. I suggest you use tabularx right away. Reg. making "Option 1" and "Option 2" oriented vertically: It is ugly and hard to read. My recommendation is just don't do it. Other thing you probably want is to reduce the vertical spacing around itemize. Code: ...


1

Here is a solution with tabularx and hhline, to improve the look of your word table. I customised the spacings in the itemize environment with the enumitem package: \documentclass{article} \usepackage[utf8]{inputenc} % \usepackage{fourier} \usepackage{tabularx,array, rotating, caption, hhline} \usepackage{enumitem} ...


1

Use the \thead command from makecell. Ir allows linebreaks and a common formatting of column heads. dded an \extrarowheight so the vertical spacing doesn't look so tight: \documentclass{article} \usepackage[showframe, nomarginpar]{geometry} \usepackage{array} \usepackage[labelfont=bf]{caption} \captionsetup{format=plain,font=footnotesize} ...


1

Er who knows what tabulary is doing:-) Something in its setup is confusing the nested cases construct. You could try complaining to the package author and it might get resolved, but if you just want to get on with the document and and make the warning go away, I'd avoid the nesting: \documentclass{article} \usepackage{amsmath} \usepackage{tabulary} ...



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