4
votes
1answer
61 views

In table cell, how to break long words after “::” or “_”?

I have a software program can generate tables which may be very long and may contains words with many letters,so i use longtabu package. Some words may look like this: AAA_BBB_CCCC_DDDDD_CC ...
-2
votes
0answers
71 views

How to break lines in a cell of table? a very long word contains “::” or “_” [duplicate]

I use "longtabu" package to create a table. The reason I choose longtabu is, first it can deal with very long table, second it can automatically break lines to fit the width of a cell. But I got a ...
1
vote
2answers
73 views

How to automatically break “a long word with underscore” in a cell of table, using longtabu package?

I use longtabu package for creating tables, because the table can be very long (several pages) and i need automatic linebreak(or wordbreak) if the sentence(or a single word) in certain cell is too ...
3
votes
1answer
92 views

how to make a line between two rows in table? (when no space between strings)

I use longtabu package to build table, when I use \\ to separate every line, it is ok, see below \begin{center} \begin{longtabu} to \textwidth {|X[1 , p ] |X[1 , p ] | X[2 , p ]| X[2 , p ]|X[1 , p ...
3
votes
1answer
77 views

How to right-justify URLs inside a table?

I have a table containing a URL, and I want the URL to break so that the URL is right-justified along with the other text. In my example below you can see that the last few lines are not ...
4
votes
2answers
47 views

Line breaks in custom command that uses tabular environment

I am using a resume template I found here - http://www.davidgrant.ca/latex_resume_template There is a custom command, based around the tabular environment, which is in the MWE below. I would like to ...
2
votes
1answer
83 views

Text is not fitting the column

I want my texts to continue in the next line instead of continuing in the other column. How can I manage this? My code is : ![enter image description here][1] ...
6
votes
3answers
85 views

bigdelim and text with multiple lines

I have a table with a common label for multiple lines. Using bigdelim I place brackets to give explanations. My explanation has too much text for one line, so I would like it to break over multiple ...
2
votes
1answer
63 views

Table with a single column using text-wrapping

I have a table with 3 columns. The first two just have cells with 1 or 2 short values which I do not want to wrap and I want to be the minimum allowed size. The 3rd column has a lot more text, and ...
5
votes
1answer
208 views

Latex Table - \smallskip breaks vertical lines

I am creating a table, in which I want to separate groups of lines, using \smallskip. However, at the very left of the table there is a \multirow cell, whose vertical lines are now broken. Is there a ...
2
votes
1answer
66 views

Line break in table [duplicate]

I want to go on writing in the first array but in a new line. The command \\ is not working for this. Can anybody help me please? My code is: \documentclass{article} \usepackage[landscape]{geometry} ...
4
votes
2answers
412 views

Automatic line-break in tabular

Sorry if I've missed the answer in another post, but I've literally spent 3+ hours googling this problem now. I'm making a tabular and I'd like to to automatically do a like break rather than going ...
4
votes
3answers
61 views

cellspacebreak macro

(I am rolling my own little system to take my LaTeX file and convert it to reasonable HTML and Epub. I have run into the following problem.) I would like to keep my tabulars very simple. There are ...
1
vote
1answer
90 views

I can't find/fix the errors in order to be able to compile it

\documentclass{article} \usepackage{amsmath} \begin{document} $These are two truth tables for the following: $\neg (p \vee q)$ is logically equivalent to $(\neg p) \wedge (\neg q)$ ...
15
votes
2answers
512 views

moving the whole word to next line when there is no free space

Is there any option in tabular that can move the whole word to the next line whenever the length of the word is greater than the fixed cell size? Currently I use \begin{tabular}{ | p{2cm} | } And ...
3
votes
3answers
120 views

How can I fix the width of the table?

I have a multi-column table but the width of last three column is float. I want it change line automatically when the text exceeds the table of too long to write in one line. Here is the image and ...
3
votes
1answer
143 views

Custom table caption (Updated)

I'd like to achieve a custom table (figure) format with Table numbering and title (this is usually the title also used in the list of tables but does not have to be) in boldface, and the (longer) ...
2
votes
1answer
198 views

avoid underfull \hbox (badness 10000) in paragraph because of linebreak

It seems to be a common question, but the other werent adressing my code. \begin{table}[ht!] \centering \small \caption{Absolute and relative frequencies } \label{FreqFair} ...
3
votes
1answer
79 views

Creating Table using array

I'm trying to create entry similar to tables using array begin{array}{*{20}{r}} {}| & A |& B \\ \hline A_1| & {one|} & {two} \\ B_2| & {three|} & {four} \\ \hline ...
3
votes
1answer
4k views

Underfull \hbox (badness 10000) in paragraph for table

I got a "bad box" warning said `!h' Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness ...
1
vote
2answers
89 views

Creating table with multirow option fixed width and wrapped text

I am trying to create a table using multirow option. I am using the following code: \documentclass[10pt]{article} %\usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
1
vote
1answer
75 views

break on @ symbol in table cell

I have a table that often overruns the width of the page. I figured out that if I format the cells as paragraphs with a set width then LaTeX will wrap the contents of the cell. However, the column ...
1
vote
1answer
1k views

Automatic forced line breaks in latex table

Im making a table where the last column contains a URL which may be quite large, so I want to make automatic line breaks in this column. If I use p{3in} in the table, some of the URL are seen as one ...
4
votes
3answers
300 views

Automatic line-breaks in tables?

I'm writing a short tabular CV that I have to add to my thesis. I thought a quick way would be to use a table for that purpose: \begin{tabular}{ll} 2009-present & very long text 1, very ...
3
votes
1answer
89 views

I want to have pbox have line breaks where the margin falls

I am using \pbox to have line breaks in a table, but cannot seem to figure out how to have it break at the "natural" location where the margin begins. Here is my code: \documentclass{article} % ...
5
votes
3answers
2k views

How to center table caption that includes a newline

My table caption spans more than on line so I added a \newline to split the caption at an appropriate position. Now, the two lines are left aligned. How do I center the two lines of the caption? ...
0
votes
1answer
137 views

how to break lines in a table?

my code is here \begin{table}[t] \centering \bgroup \def\arraystretch{1.2} \begin{tabular}{|c|c|c|} \hline Frucht graph & Graph $K_3$ & An homomorphism from Frucht graph to $K_3$\\ ...
5
votes
1answer
505 views

Overfull hbox in tabular

In the following (M)WE, the tabular version of the Contact information from a CV gives an overfull hbox warning when compiled with pdfLatex, but the minipage version does not. Why? I have not found a ...
3
votes
1answer
122 views

How to add two force line breaks in cell

I would like to add two force line breaks in a cell. Using an answer from this question I can add one force line break. Can you help to add two line breaks using similar function like ...
5
votes
1answer
134 views

Make less space between lines on a table

I have a big table where I need to use multiple lines on each cell. The table is too big though so I need the space between lines on each cell to be smaller. I found on another post that I could use ...
4
votes
2answers
161 views

custom word-wrapping in tablecolumns with fixed width

I have a somewhat special problem. I want to create a fixed-width table column (for example by using the p{0.2\textwidth} column-type). But in the column are really (!) long words, containing mostly ...
3
votes
2answers
112 views

Using \color in a paragraph column inside a tabular environment results in a line break [duplicate]

Some of my documents are compiled into multiple outputs. Some Versions contain certain parts, while other versions contain only a placeholder. For this purpose I have a macro \markup that colors its ...
1
vote
1answer
183 views

Text does not fit into table which causes bad box errors

I use Excel2Latex to convert tables in Excel to Latex, however a problem arises when the text is too long to fit in the column and I get many bad box errors. My code is: % Table generated by ...
3
votes
1answer
648 views

Underfull hbox in tabular

I'm trying to make a table with fixed column widths. Cells in the first column will generally not have enough text to require a line break within the cell. The second column's cells will quite often ...
1
vote
1answer
90 views

How to add equation with cases inside the table

I want to include the complicated equation into one of the cells of my table. I am using tabular environment, additionally I have some multirows. I would like to add something like this: ...
7
votes
1answer
605 views

How to create a table with merged columns and rows, and wrapped text, like in MS Word?

The above can easily be created in MS word, but how can I create something like this in latex? Basically changing the columns for specific cells, merging a bunch of cells together, wrapping text in ...
4
votes
2answers
587 views

How to get line-breaking / multirow to work in the caption of my beginner's table?

How to get line-breaking / multirow to work in the caption of my beginner's table? \caption{this is my first table's captive caption} I'd like the caption to look sth like this: this is my ...
5
votes
2answers
99 views

How to get autobreaking with sequential tables

So it appears that \hspace is not breakable, but is if it is followed by \allowbreak. Alternatively you can use \hskip1.0em as that is breakable. So, if my understanding is correct, then why do the ...
0
votes
2answers
173 views

Linebreak in table cell at document margin

In order to allow line breaks within a table cell, I use \parbox. But when the cells I want to have line breaks in are in the last column of the table, the best thing would be to break them at the ...
3
votes
2answers
229 views

line break in tabular

I try to set a line break within a tabular environment where the column is not definded with p{$width}. I've tried the following without the expected result \documentclass{article} \begin{document} ...
2
votes
2answers
495 views

Multiline listing within multicolumn row

I have a problem putting a listing (using lstlisting package) within a table. The problem is that I want to put a multiline listing in a row taking 2 columns. The following minimal example shows ...
0
votes
1answer
112 views

How to wrap text in table with delimiter?

I have one long text in a column of table. I want to wrap this it into a cell by using delimiter "/". How can I do it in longtable? ABCDEFGHIJ/DATSET Format: ABCDEFGHIJ DATSET
1
vote
1answer
588 views

Big Table with line and pagebreaks

For a technical documentation (two columns: function name left, description right) I need a way for automatic line and page breaks in a table environment in case the descriptions get a bit longer. I ...
6
votes
2answers
127 views

How can I get a very wide table to wrap all three rows within the margins?

I have a series of tables that are going to be very (very!) wide, but with only 3 rows. Is there any way I can get the tables to wrap within my margins, without having to break the rows within the ...
10
votes
1answer
576 views

How to wrap the 90 degrees rotated text in a table cell

in Microsoft word I have a table which has the following structure. Now, I need to make a similar table in LaTex to submit a publication, I tried with the following code, ...
2
votes
1answer
313 views

Table column fixed width does not fire

I have the springer svjour3 template and the user guide says that for tables the usual Latex 2e commands are used. Now, I would like to produce a table that goes over the whole page (the error is the ...
7
votes
3answers
159 views

Preventing newline from left column from forcing a newline in the right column

I'm writing a CV in LaTeX, and got started with the sample called Writing a CV in LaTeX. I'm trying to modify it so that a newline in the left column does not force a newline in the right column. ...
3
votes
1answer
466 views

Automatic break line after multicolumn

Is there a way to put \\ after multicolumn automatically, each time it appears in the code? Pseudocode would look like this: \newcommand{\commandThatAddsBreaklines} if(thereIsAMulticolumn == true) ...
2
votes
1answer
126 views

Text gets out beyond the table

I use WinEdit and try to make a table. The problem is that I can not move the text in a multirow to the second line. There are the packages I use: \documentclass[12pt, a4paper]{article} ...
19
votes
1answer
2k views

Difference between \\ and \tabularnewline

What is the difference between \\ and \tabularnewline? Is it same as the difference between \\ and newline? Is \tabularnewline preferred over \\ when creating tables?