New answers tagged

2

Here is a solution, with the etoolbox package. You can reference the rows. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} % Включаем пакет для поддержки русского \usepackage{multirow,tabularx} \usepackage[a4paper,margin=1in,landscape]{geometry} \usepackage{etoolbox} \newcounter{rowcnt} ...


1

The main point is to replace the * argument to \multirow, which means ‘use the natural width of the contents’ with \linewidth, i.e. the width of an X column. I added some improvements to your code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \usepackage{multirow,tabularx} ...


0

The solution for my problem is to use \captionsetup{margin=1pt} with the caption package. With 2pt i got the correct alignment of the caption. thanks to Herbert! or as alternative when using Komascript - like me - the command \setcapmargin{2pt} will do the same.


7

The answer would be to put the list inside a minipage or parbox, but that is not really fun. Here is another solution with enumitem using the before and after keys and the command \tablistcommand: Use tabitemize when you have a cell with a list only, and clear out the before key with text preceding the list. The lines are correctly aligned. ...


8

Here is an enumitem version: I have defined a tableitems variant of the itemize environment and used it inside your table. Note the ungainly hack using \vspace for those lists that do not have a header. Without this there is an empty line about the list. Code \documentclass{scrartcl} \usepackage{graphicx} \usepackage{booktabs} ...


8

Is not perfect but see, if it is useful: \documentclass{scrartcl} \usepackage{graphicx} \usepackage{caption} \usepackage{booktabs,makecell,tabularx} \renewcommand\theadfont{\bfseries\sffamily} \newcommand{\textblacksquare}{\rule[.2ex]{0.8ex}{0.8ex}} \usepackage{paralist} \usepackage{ragged2e} ...


0

The caption must be incorporated in the table, inside the foot specifications, if you want the caption at the bottoms of the table, or in the head soecifications to have it above the table (which is recommended). Also, if you load ltablex, you don't have to load tabularx nor longtable since they're loaded by ltablex. \documentclass[a4paper]{article}% ...


0

use \usepackage{booktabs} \usepackage{ltablex} \setkomafont{disposition}{\normalfont\bfseries} \setkomafont{caption}{\small} \begin{document} \keepXColumns \begin{tabularx}{\textwidth}{Xx}\toprule \textbf{Column 1} & \textbf{Column 2} \\\midrule $R$ & 1This is an example sentence \\ $R$ & 2As well as the line before ...


0

The following builds on the technique described in An improved \rowstyle that takes the cell contents as an argument, capturing each cell using collcell: Each cell .. is set using \textcolor{red}{..} depending whether/not the switch \ifrowcolour has been set to \rowcolourtrue or \rowcolourfalse. Since these switches occur inside tabular cells (and ...


0

Often the described symptoms are caused by the parskip indent. In this obvious case it can easily be solved by setting either locally \noindent before the respective paragraph or in a general manner as global definition by \setlength{\parindent}{0pt}. In my specific case the issue was produced by the document class option parskip=half* of the KOMA-Script. I ...


4

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{array} \begin{document} \noindent \begin{tabular}[t]{ | l | }\firsthline Табельний номер \\ \hline 0000000000000 \\ \hline \end{tabular} \begin{tabular}[t]{@{}r} Прийняти на роботу з \underline{25.01.2016} \\ до \underline{25.01.2017} \end{tabular} ...


2

You can put the minipage in a figure environement: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{multirow,tabularx} \begin{document} \begin{figure*} \hfill\begin{minipage}{0.27\textwidth} \begin{tabularx}{\textwidth}{ | X | } \hline Табельний номер \\ \hline 0000000000000 \\ \hline \end{tabularx} ...


3

You can have this: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{rotating, graphicx} \usepackage{makecell, tabularx, multirow} \renewcommand\theadfont{\normalsize} \newcounter{rownum} \begin{document} \begin{table*} \renewcommand{\arraystretch}{2} \settowidth\rotheadsize{\theadfont aligned with data} ...


2

As you know the widths in advance you are best avoiding tabularx als if using vertical rules only use | on the right hand edge (apart from the first column) otherwise you get duplicate rule one at the right of one cell and a touching one at the left of the next, \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % Включаем ...


0

Watch this MWE. It clearly shows how to set up a multicolumn table with \tabularx: \documentclass[a4paper]{article} \usepackage{tabularx} \begin{document} \begin{table}[h] \begin{tabularx}{\linewidth}{|X|X|X|X|} \hline \multicolumn{3}{|l|}{3 cells left} & 1 cell right \\ \hline 1 cell right ...


3

As I said in my comment, you have problem with \parindent. Your minipage widt with of \textwidth doesn't start at left text border bit after parindent and consequently for its amount protrude right text border caused warning Overfull \hbox (15.0pt too wide) in paragraph at lines 9--31. I f you add before begin{minipage}˛ a command \noindent or set \parindent ...


1

1) \noindent\begin{minipage} 2) no need to \\ befor tabularx if necessary \makebox[\linewidth]{Zur Erläuterung der Vorgehensweise definiert Bechmann die folgenden Variablen:} 3) p{.3\linewidth} \documentclass{article} \usepackage{tabularx} \begin{document} \noindent\begin{minipage}{\linewidth} \makebox[\linewidth]{Zur Erläuterung der Vorgehensweise ...


1

Please include full minimal working examples including the relevant packages you use. Your code produces both an underfull and overfull box. I don't think creating a minipage is really helping here. I can recommend wrapping the \tabularx{} environment into a \table{} environment which in your example doesn't produce any overfull boxes. Also the geometry ...


2

As a small variation of answer provided by @Herbert, I can compile this document without a single warning: \documentclass[draft]{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tabularx,booktabs,ragged2e} \newcolumntype{Y}{>{\hspace{0pt}\RaggedRight}X} \begin{document} \noindent ...


1

Use \documentclass[ngerman]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{tabularx,booktabs,ragged2e} \renewcommand\tabularxcolumn[1]{>{\hspace{0pt}\RaggedRight}p{#1}} \begingroup \begin{document}\tabcolsep=3pt \begin{tabularx}{\textwidth}{@{}XX|XXX|XXX@{}} \rlap{Alternativen} & & $A_1$ & ...


1

Using the p-column type for the first column: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage{ltablex} \usepackage{lipsum} % only for this example \begin{document} \lipsum[2] \medskip \noindent \begin{tabularx}{\linewidth}{@{}>{\bfseries}p{2.5cm}@{\hspace{.5em}}X@{}} 2009--present & very long text 1, very long text 2, very ...


3

Do you mean this? \multicolumn is tricky with vertical rules (rather don't use them at all!) \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{multirow,tabularx} \begin{document} \begin{tabularx}{\textwidth}{|X|X|X|X|c|c|} \hline \multirow{2}*{N} & \multirow{2}*{номер} & ...


2

See the following changes of your MWE (they considers all above comments and add design of table and column headers, for this the package multirow is needed): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{multirow,tabularx}% <--- \begin{document} \begin{tabularx}{\textwidth}{|l|X|c|}% <--- \hline ...


3

I guess, that you actually you like to have portrait orientation for your document and only very big table to be on landscape orientation. The table, which example you show, is not really so big that this is (to my opinion needed. According to your preamble, you have a plan to use tabularx tables. With it you can already at shoved table use it in by it ...


2

The default layout is for US letter which does not match A4. To ensure you get A4, add a4paper to the class options or to the options for geometry. I would use: \documentclass[12pt, oneside, a4paper, landscape, leqno]{report} Here, I correct the typo in landscape as well. Note that examining the console output when you compile sometimes tells you useful ...


5

I can't understand why you use \tabularx if you than not use X column type ... If you like to have table width equal to \textwidth, than exploit tabularx capabilities! Anyway, see if the following solutions is what you looking for: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{newtxtext,newtxmath} ...


3

In addition to providing at least one type-X column in a tabularx environment, you should also use a font family that actually provides bold-smallcaps glyphs (Computer Modern does not), and not use full justification in narrow columns, as doing so will almost certainly create unacceptably large gaps between words; instead, use ragged-right mode in narrow ...


4

You ask for a tabular length of \textwidth but do not adpate the size of the column. You could use X to do so. In tabularx, X will expand the column to fit the required size. For example: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{1\textwidth}{|X||p{4cm}||p{3cm}|} \hline \textsc{\textbf{Nombre}} & ...


1

Something like this perhaps: \documentclass[a4paper]{article} \begin{document} \begin{table}[htp] \begin{minipage}{.5\textwidth}\centering \textbf{Advantages} \begin{itemize} \item Very efficient! \item Use of mild conditions \item Broad spectrum of reactions, almost everything \item Not Bound to Natural decision! ...


0

See, if the following is what you looking for: \documentclass{article} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[russian]{babel} \usepackage[T1,T2A]{fontenc} \usepackage{tabularx} \usepackage[margin=30mm,showframe]{geometry} \begin{document} \hfill\begin{minipage}{0.5\textwidth} \raggedleft { \large\scshape Типова форма № П-4\\ ...


0

You can use the cellspace package, which lets you define a minimal vertical spacing between a row and the above and below rows. Additionnally, I loaded the caption package to ensure a correct vertical spacing between caption and table: \documentclass{article} \usepackage{array, caption} \usepackage[table, svgnames]{xcolor} \usepackage{cellspace} ...


0

Another possibility is use multirow package: \documentclass{article} \usepackage{multirow,tabularx}% <-- added multirow \usepackage[demo]{graphicx} \usepackage{fancyhdr} \usepackage[a4paper, portrait, margin=1in, headheight=73pt, includehead]{geometry} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[T1,T2A]{fontenc} \usepackage[russian]{babel} ...


0

Here is a way, with a simple \raisebox. I also added input encoding, and had to change some parameters with geometry: \documentclass{article} \usepackage{tabularx} \usepackage[demo]{graphicx} \usepackage{fancyhdr} \usepackage[a4paper, portrait, margin=1in, headheight=73pt, includehead]{geometry} \usepackage{ucs} \usepackage[utf8x]{inputenc} ...


3

tabularx is the wrong tool here really, as the column widths are known in advance. I simplified the markup generally but seems to make the required table. \documentclass{article} \usepackage[left=1.5cm,right=1.5cm,top=2cm,bottom=2cm]{geometry} \usepackage{lscape,array} \newcommand{\decimaltable} {{\par \setlength\extrarowheight{10pt}% ...


1

Do you mean something like this: For this you need to column type add >{\ttfamily}: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{tabularx} \usepackage[active,floats,tightpage]{preview}% <-- Only show only table. % Don't use in +real document! ...


2

The row only appeared misaligned due to the non-symmetric rule added which had height but not depth. \documentclass[12pt]{report} \usepackage{array} \usepackage{amsmath} \begin{document} \begin{tabular}{| >{$}c<{$} | c | c | c | c | c | c |c |} \cline{2-8} \multicolumn{1}{c}{}&\multicolumn{7}{|c|}{\rule{0mm}{0.4cm}{figure1 put here}}\\ \hline ...



Top 50 recent answers are included