Latex longtable tabularx. As an workaround change tabularx to tabular and everything is working. Latex longtable tabularx

 
 As an workaround change tabularx to tabular and everything is workingLatex longtable tabularx At the first case add to preamble usepackage {etoolbox} AtBeginEnvironment {xltabular} {sffamily}, for cover also the second cas, add to above AtBeginEnvironment {table} {sffamily}

Add a comment. 1 Answer. An argument to the tabularx environment specifies the table width, X columns share the available space. Edit: Your table is really huge! To put it on the same page where is title of appendix, is not possible or its content become unreadable small. One way of doing so would be to omit all vertical lines and to actually use the macros of the booktabs package -- \toprule, \midrule, \cmidrule, \addlinespace, and \bottomrule-- instead of \hline and \hline\hline. Oct 16, 2021 at 15:52. to_latex(index = False, longtable=True)) But the problem is that pandas generate my longtables in this way: egin{longtable}{lrrr} oprule Nombre & No datos & P. Vancouver Sun Archives 1912 - 2021. Folder for styles is in. Here is my preambule: documentclass [12pt] {article} usepackage [letterpaper, left=2. @v_2e tabulary L column is same as egin {flushleft} which prefers leaving a line short over hyphenation, you can use J columns instead for justified columns with hyphenation (the usual latex default). The all rows could be a line stretch less than 1 (I set to 0. Solution:. The X column will have the necessary width in order to make the whole table the desired width. For maximum flexibility, generate the source code to a separate file which you can input from your main document file with the \input command. Sorted by: 10. 1 Answer. 0. Longtable. Suppose you have a table with 6 center-aligned columns. Oct 26, 2011 at 12:11. By the way: your example is not compilable since usepackage {caption} and egin {document} are missing. hline end{tabularx} end{table} (iii). Third, Variable, Cluster 8 until Cluster 10. – leandriis. As you're looking to preserve the ability to set the width of the tabular material and to have three equally wide columns, you could proceed as follows: (i) Load the longtable, tabularx, and ltxtable packages, (ii) place the longtable material (which will contain column types defined by the tabularx package) in a separate file, and (iii) use the command \LTXtable{\textwidth}{<name of file. The minimum working example is given below: documentclass [11pt,twocolumn,conference] {IEEEtran} usepackage. With longtable you don't explicitly set the total table width but you can set the left and right margin to set the width as shown in the longtable documentation. You need something like egin {longtable} {lll} (or some p s or r s or whatever). Um editor de LaTeX online fácil de usar. 2. 5cm,bottom=2. instead of decimal comas are used decimal points. Below is a MWE of the problem I faced. longtable provides commands to define a first and a general header as well as a general and a last footer. It only takes a minute to sign up. You can write captions within the table (typically at the start of the table), and headers and trailers for pages of table. You could use X to do so. It prevent that they can be broken over several pages. For example, you can add a matching cover page, header, and sidebar. 'tabularx' solves the problem of long headers (does not fit otherwise in width). Then, you really want to see the sizes of the preceding pages and the following pages, so you can be sure that your landscape pages are really landscape. I was pretty happy with all my LaTeX code and would really appreciate a solution where I don't need to change the interior of the table or write all the numbers again. You don't need to move the table to an appendix if you do not want to, leave it until document edits are more or less done then put onecolumn to force a page break and switch to single column at the point that latex breaks the two column page anyway, then have the longtable over 2 or more pages, then back to wocolumn. I am new to LaTeX. 2Examples ListofTables 1 Using the original tabularxenvironment: a pagebreak not possible! This is theBut once you've created all the manual line breaks, there's no further need for a tabularx environment. An alternative would be to use the adjustbox package and replace the esizebox with egin{adjustbox}{width= extwidth} . A very long text. g. For 2, I need the package array and quite a lot of commands (see Make first row of table all bold) However if I transpose the above commands into a tabularx (rather than tabular) things won't work. I added a line to your image showing the reference points of the cells in the second row, the reference point of column 1 is the middle of the 40 rather than the. 0 extwidth+4 abcolsep. text. tabularx, longtable, supertabular, longtabu) as well as at least one X-column (mentioned in Tables and tabularx and Make a tabularx environment fit inside the text block). Type H <return> for immediate help. Notice the ctable gives better spacing for the caption relative to the table. I am trying to have two large subtables within a tabularx environment, because the two tables are more than a page each. item 1 par % 2. if that is too large re-arrange the data so that it fits on the page. All hlines in a tabular should be preceded by a as stated by @Zarko in a comment. For the first and last column width, set by the hsize=1. owcolors together with booktabs. That's all. David Carlisle for the colortbl, longtable, ltxtable, tabularx and tabulary LaTeX packages. 2 - Tab. tex --filter table-filter. A column specifier X is missing. For example: documentclass {article} usepackage {tabularx} egin {document} egin {tabularx} {1 extwidth} {|X||p {4cm}||p {3cm}|} hline extsc { extbf {Nombre. to get a longtable that's automatically as wide as extwidth. There are two basic techniques for making fixed-width tables in LaTeX: you can make the gaps between the columns stretch, or you can stretch particular cells in the table. Strange as it may seem, you need to specify an m -column on the columns that you don't want centred. \documentclass {article} \usepackage {array} \usepackage {enumitem}% Not used here \usepackage. hspace{0pt} with tabularx. Ask Question. You can do this with the caption package. Inmy table below I have six months divided into weeks. The corrected code would be the following, resulting in the table to be split onto two pages. Do upvote his answer ! Share. ]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, use hline instead of teh booktabs horizontal lines. British Columbia Marriages 1800-1946at MyHeritage. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. 3 These chunks do not affect page breaking,One of the easiest ways is to load the package array and invoke. As you can see, it is very picky about where it breaks the words. Here is a solution that should solve most problems: I use the ltablex package, which is a extension of longtable to tabularx. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Hot Network Questions German pharmacy payment "Fireblob" in KO₂ and PCl₅ reaction What American military strategist is Yves de Gaulle. This one goes before the first cell content. To fix this, I suggest you (a) load the fontenc package with the option T1 (to allow hyphenation of words that contain Umlauts and other accented characters), (b. For the second problem: long tables cannot end exactly at the end of text. Here’s a section of a (fake) CV illustrating the issue: As you can just. Add a comment | 2Addendum with two alternative specifications of some or all of the tabular material:. 6300 64-bit) entering. Asked 6 years, 4 months ago. @v_2e tabulary L column is same as \begin {flushleft} which prefers leaving a line short over hyphenation, you can use J columns instead for justified columns with hyphenation (the usual latex default). It’s important to read the documentation, since usage is distinctly odd;. An online LaTeX editor that’s easy to use. Jason. Table formatting using xltabular. Further there may be times when some tables need to. Viewed 36k times. 939 5 13. The two methods for doing this I see involves using tabular or longtable. Long Table without Vertical Lines. In my report I reached a point that I want to insert table (landscape) that would span multiple pages. The package tabularx is necessary for the X type column. Align position of decimal point within tabularx. Follow asked Apr 9, 2022 at 15:16. \documentclass {report} \usepackage [utf8] {inputenc} \usepackage {booktabs. 3 Answers. (too long for a comment, hence posted as an answer) You specified egin{longtable}{p{. 333aselineskip]{caption} usepackage{booktabs,tabularx,rag. , there's no real need to embed it in a sidewaystable environment anyway. I also used the booktabs package to have better-looking horizontal rules and a less tight vertical spacing. Since I always want the tables to start at the top of the page, I also use the command "afterpage" but it does not work. I am trying to use the longtable package and I cannot get it to work. TeX isn't very good at sorting; that's why BibTeX and biber were created: to sort bibliographic entries alphabetically. 2 Answers. – David Carlisle. My MWE: documentclass[12pt,oneside]{book} usepackage[showframe]{geometry} usepackage{amsmath} usepackage{ragged2e} usepackage{booktabs, makecell, multirow, tabularx,. That works just as advertised. 1. The problem is that I can't manage to compile both of them at the same time. You could also choose the c column type for the four data. 4cm, bottom=2. And add usepackage {longtable} to the preamble, of. The longtable environment has a mandatory argument in which you specify the number of columns. The new LaTeX3 package tabularray is an alternative to the outdated tabu package. Writing the LaTeX code for the table in Code Editor. Follow. documentclass {article} usepackage {booktabs,multirow,array,caption} egin {document. When converting from a table / tabular pair of environments to a (single) longtable environment, be sure to define the table's headers and footers, via endfirsthead, endhead, endfoot, and endlastfoot directives. See the LaTeX manual or LaTeX Companion for explanation. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. The syntax ed is simply wrong. You can control the caption placement by enabling the use of the "caption" package and then adjusting the skip between the table and the caption. Reference. – Mico. longtable; tabularx; xltabular; Share. Here's the former approach: documentclass[a4paper,10pt]{article}. egin{table} caption{Example of different attributions by three representative participants (A, B and C)} label{table3} setcellgapes{5pt} makegapedcells centering. Hot Network Questions A question about a phrase in "The Light Fantastic", Discworld #2 by Pratchett Geometry nodes: How to check object type Is a buyout of this kind of an inheritance even an option?. g. The following solution employs a table / tabularx combination, with a target width of extwidth; it employs the X column type for the final column. affects all following text until the end of the current group, the fact that there is a longtable there isn't that. 1 Answer. (updated the answer to switch from a longtable setup to a tabularx setup) If you eliminate the line breaks in columns 2, 3, and 4, you can typeset the entire table on a single page. 5. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. print(tabla_1. Reply to this email directly or [4]view it. documentclass {article} usepackage {ltxtable} egin {document} LTXtable { extwidth} {table. I also tried LTXtable, but I guess I did not know how to use it properly. 2 Answers. Share. After some experiments with different column types. I am having some issues with formatting the below table. Here's what I came up with (assuming you're happy faking the effect of tabularx as suggested in the. Copying and pasting a table from another document while using Visual Editor. Mayber there is some workaround that when my column-percentages ends at 1 the table is the excact width of my paper. I tried and it seems to work. documentclass [12pt] {article} usepackage. So I changed my code to look like that: documentclass {scrartcl} usepackage [table] {xcolor} usepackage. Issue aggedright, centering, or aggedleft to achieve the desired horizontal alignment,. – James Evershed. For the second problem: long tables cannot end exactly at the end of text. Dec 17, 2009 at 19:56. 45. tex file can be just like this (with tabularx formatting)Tables. Tables. Sorry for the downvote, but my question is about line breaks, not page breaks. Environments such as tabular, tabular*, tabularx, tabulary, and longtable-- hereafter, tabular-like environments -- should be used if much of the material they contain should be typeset in text mode. Warning: Any long table can be broken between pages only between rows and never in a row! For better spacing text into cells it is advisable to use smaller font, for. egin{tabularx}{ extwidth}{p{50mm}|X} 1. I also tried LTXtable, but I. I meant the height of the rotated table (the width in the document). – Nathanael Farley. An example using the longtable environment to create tables that span multiple pages. Using LaTeX I want to layout a catalogue of exam question with the following requirements: All cell contents should be centered vertically Question and answer cells should have their text left-. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 5cm,left=3. Jan 27, 2015 at 14:12. 6. usepackage{tabularx} % preamble에 넣으세요. Depends on content, it can end before or protrude bottom text. (Note that this latter offers an enhancement of ltxtable. I actually need a long table, but my problem is that I don't know how to. 5+. Use footnotesize or, if you must, iny. 2Examples ListofTables 1 Using the original tabularxenvironment: a pagebreak not possible! This is the 4. If longtable has been defined before this code is executed then within the area marked with wuhaobiao then longtable will work as before but prefixed by wuhao. An example of your table is: documentclass [12pt] {article} usepackage {xltabular} % splits cells with text longer than the column. first i remove minipage and center environment. Asked 6 years, 4 months ago. In an X column, you can change the spacing between lines inside a cell by adjusting aselineskip. – leandriis. Instead, use a tabular* environment (and set its width to linewidth ). With this, the text can break anywhere. Admitted I handle thing poorly when it comes to working with table. Personally, I would recommend the new longtblr from tabularray package, but as I said, this is also subjective. I had a table the width of the text with three columns, the first two were snapped to the largest content, and the last extended to the right margin. The advantage of xltabular is mainly the X type column, which os often more flexible than say the p column. Sorted by: 4. Jul 9, 2017 at 9:45. m means alignment in the vertical center, i. You need to (a) drop the existing table "wrapper", (b) convert the outer tabular environment to a longtable environment, and (c) use endhead and endlastfoot to set off the material that belongs in the header and footer, respectively. I am creating a table using tabularx package, and adding figtext and caption in the table package. \usepackage{longtable} \begin{longtable} {ll} aa & bbbbbbbbbbbbbbbbbbbbbbbb \\. which brings the functionalities of longtable to tabularx, and replace. Then [<space>] always makes the row <space> as a minimum. – James Evershed. I used tho centered columns for you ( {c c} );It is a common misunderstanding about m it does not mean place the content in the middle of the vertical space for that cell. A very long text. Initially,. 3 Basic example The following table : Top cell Middle cell Bottom cell. I'm using tabularx to create a table of many rows, for which I'm also using ltablex to extend over multiple pages. The documentation shows an example that only looks right after four passes. You might want to have a look at the longtable package (note that longtable cannot be combined with table* as a float ( table*) by its very definition cannot span more than one page. Use \footnotesize or, if you must, \tiny. When using the multicolumn command, you may need to run your code through LaTeX several times. 1,494 1 10 24. \usepackage {longtable} and then replace every \begin {tabular} by \begin {longtable} and \end {tabular} by \end {longtable}. }. The result was: Well, the alternate row coloring works but tabular* inserts space between columns to stretch the whole table to \textwidth. You need something like \begin {longtable} {lll} (or some p s or r s or whatever). By default longtable uses 20 rows per chunk, but this can be set by the user, with e. Copying and pasting a table from another document while using Visual Editor. You need to (a) drop the existing table "wrapper", (b) convert the outer tabular environment to a longtable environment, and (c) use \endhead and \endlastfoot to set off the material that belongs in the header and footer, respectively. You can contact him at info [at] latex-tables [dot] com. Note: folders tools. Apr 22, 2019 at 20:57. documentclass [11pt] {article} usepackage. 1. An online LaTeX editor that’s easy to use. Also, lontable needs to be replaced by longtable, because the former environment is undefined. That's all. 比较麻烦的. Even better, install for example MiKTeX on your computer. Share. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. longtable is a tabular-like environment, so youl shouldn't nest a tabular inside. The column specification goes after egin {longtable} and you don't use a egin {tabular} inside it. They can lead to (at least to some users) unexpected results and really should be avoided:The caption command should be inside in the longtable environment, which is no floating environment then and everything will be alright. You could do egin{tabularx}{0. ltablex combines longtable and tabularx. Join. Longtable allows you to write tables that continue to the next page. A very long text. This is not the case with xltabular: no caption, no counter change. words longer than the. Writing the LaTeX code for the table in Code Editor. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. longtable has a reputation for failing to interwork with other packages, but it does work with colortbl, and its author has provided the ltxtable package to provide (most of) the facilities of tabularx (see fixed-width tables) for long tables: beware of its rather curious usage constraints — each long table should be in a file of its own, and. About your second question. You will also have to add an right after the label command. Writing the LaTeX code for the table in Code Editor. use the X column type (from the package tabularx) for column with cells containing long texts which otherwise spill-out of page use head and makecell macros from the package makecell for made column headers shorter (using two lines) and also for some cells in the third columnsI'd use the ltablex package, which combines the functionalities of longtable and tabularx, and makecell to have a common formatting of all column heads. So I changed my code to look like that: \documentclass {scrartcl} \usepackage [table] {xcolor} \usepackage. If OP would instead multicolumn {3} {c} {*p<0. The column style eg is there for two reasons (1) it is not possible to have math and other complex stuff inside of a header cell and (2) we define that the numbers are align to the decimal point. To create LaTeX tables, you must first create a table environment followed by a tabular environment. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 1 Answer. I don't know how to adjust the column width automatically, like does tabularx. TeX - LaTeX: I’m trying to write my CV using tabularx, but I’m having some problems with getting some things to align. – jon. Mar 22, 2017 at 12:44. You can write captions within the table (typically at the start of the table), and headers and trailers for pages of table. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Instead, either remove the setlength{ abcolsep}{1pt} or, if you need it for some resaon for a different table, make sure it is limited to this particular table only. 4. 6 extwidth}} The usable overall width is 1. Not quite: I want to use longtable for sections which span over multiple pages, but when I do so the faint grey line is shifted rightwards slightly. tabularx (env. Another possibilities is to use novel tabularray package. Add a comment. The default value of. To vertically center the contents of the rotated first column, I have used a combination of a vertically centered X type column (See enewcommand { abularxcolumn} [1] {m {#1}}) and the [origin=c]. 1 - Tab. I’m using tabularx for sections on single pages, but longtable for sections spanning multiple pages. It is far from clear what output you are trying to get. –. LTchunksize In order to TEX multi-page tables, it is necessary to break up the table into smaller chunks, so that TEX does not have to keep everything in memory at one time. 1 Answer. , setcounter{LTchunksize}{10}. tabularx環境を使うと複数ページにまたがる表をつくれないし、longtable環境を使うとセル内改行できないしで、 複数 ページにまたがって、かつセル内で改行が起こるような表をつくりたいという状況にぶち当たると、ちょっと困ったことになってしまいま. Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top. I'd just enclose the entire {tabularx} with the font size changing environment {footnotesize}. This may be similar to this question: How to make a tabular in a header ignore the environment set by the currently processed longtable I don't really manage to get an answer from it. [. But this does not seem to work with longtable. The xltabular combines the functionalities of longtable and tabularx. A very long text. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. type texdoc longtable and the manual has many examples or look at the longtable tag on this site for thousands more examples. Layout a catalogue of exam questions in LaTeX. 7. (1) welcome, (2) please post full minimal examples not sniplets others cannot work with. /MikTeX/tex/latex and for its documentation in. I have tried with the following egin{longtable}{|>{. Using [<space>] adds space to the end of the last cell, so if the last cell of each row has significantly different contents, then the row height can vary. as in tabular*, extracolsep {fill}} allows the table to expand to the specified width, your table is too wide, so you need to use a multi-line cell (change the first l to p {2cm} or whetever width you want) or use a smaller font such as. ltablex also combines features of longtable and tabularx. Delete egin {table}centering and end {table}, replace tabular with longtable, move caption and label to immediately after egin {longtable} {. Improve this answer. I am trying to build a table using longtable and tabularx with the ltxtable. which can break across pages thanks to the ltablex package, which brings the functionalities of longtable to tabularx. 1. 3 Using lines in tables LATEX provides the possibility of using lines in ta-bles: vertical lines are added by placing a | at theTill to publishing of the TeXLive 2022 it will have outdated version of tabularray package. It is especially true for the cases when there is a long word in a narrow column. For your question, I don't remember the details, but at the time I posted, the xltabular package did not exist yet, and I used ltablex , which did a similar job, but was a bit more complex to use. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. The package provides an environment, tabu, which will make any sort of tabular (that doesn’t need to split across pages), and an environment longtabu which provides the facilities of tabu in a modified longtable environment. Section 5 in the package documentation indicates the solution. 7. . $ pandoc SORUCE -o OUT. "continued from previous page" and "continued on next page"). Improve this question. 4. The Situation The code if executed could develop a table the covers the entire page in IEEE format but when I try to make the table more than a page longer, it doesn't show the last data of the code that goes beyond one page. So it suffices to add a label when the footnote appears first. % Включаем пакет для поддержки русского usepackage{multirow,tabularx} usepackage{tabu} usepackage{longtable} {small egin{center} abulinesep=2mm egin{longtabu} to extwidth { X[1,l,p] X[0. LaTeX format is directly generated as you type. 1 Answer. It only takes a minute to sign up. m {width} Align the text in the middle of the cell. tabularx (env. As suggested by Martin Scharrer in a comment to this answer on TeX. xltabular improves the behavior of ltablex and combines tabularx convenience with longtable. Note: ewline will not take effect in columns of standard type. For me, the b and s approach didn’t quite work, when I needed {|sb|}. Declare let ewline to allow to use ewline for manual line breaks within a cell (note that centering & friends. for such an environment seem to occur quite regularly in comp. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. color {red} it compiles fine: documentclass {book} %mwe_clisting3 usepackage {ae,lmodern} % ou seulement l'un, ou l'autre, ou times etc. Hence the caption shouldn't be separated from the table body, and the table doesn't float. As mentioned in a comment, longtable is centred tabular is indented. The result was: Well, the alternate row coloring works but tabular* inserts space between columns to stretch the whole table to extwidth. A very long text. Add a comment. The two arguments to fontsize are the actual font size in size and the size of the baseline-skip in skip. EDIT Like some comments below are remarking the table environment doesn't allow tables over more than one page. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. A very long text. I tried to use ltxtable to make it jump over to the next page and now spended a whole afternoon but could not make it work. 1. So my solution. 4. I installed this in my Master-file: counterwithout {table} {chapter} usepackage {caption} usepackage {ltxtable} usepackage {filecontents} usepackage {longtable} usepackage {tabularx} And this is the code for. I work on landscape page and I want create a table like that table which contains 34 columns:. 1 Answer. Share. halfway between the head and the foot, you mostly. This is easily solved by adding an extra column, and keeping it empty. 0 extwidth. 6hsize: tabularx can not do anything sensible with such a specification, anything it does is accidental:-)Be aware that the way tabularx parses the con-tents of a table limits the possibility of de ning new environments based on the tabularx. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. 501k 67 1655 1821. The problem: tabularx-tables increase the tablecount +1 (normal behavior) but longtable-tables increase the count +2. You ask for a tabular length of extwidth but do not adpate the size of the column. load the tabularx package and use a tabularx environment instead of a tabular environment and set its desired width to extwidth. supertabular provides tabulars that can split across multiple pages. hline end{tabularx} end{table} ibliographystyle{spmpsci_copy} ibliography{Bibliography} end{document} How to active the auto-break of my table, i mean that I want to replace automatic the part of the table which penetrates the limits to next page as shown in that picture :. longtable definitely is a better approach than. To fix this, I suggest you (a) load the fontenc package with the option T1 (to allow hyphenation of words that contain Umlauts and other accented characters), (b. tex. , setcounter{LTchunksize}{10}. With some simplifications of your code, shown with (a) longtable, (b) using tabular and with (c) tabularx the extra spaces and misalignment (and bad boxes) are gone. I have made a table with 5 columns, of which I'd like the last 4 to be of the same width. It would appear that your document setup doesn't allow hyphenation of the cell contents in the header row of the tabularx environment -- even though it's clearly needed. The original longtable increases the counter tablein any case, with or without a caption. I have a tabular environment in my fancyhdr which works well, but when I do arraystretch or extrarowheight before a longtable the header also gets stretched. 4. the total with has to be 3hsize so if you have 2 s then b should be hsize=2size so you have 2+. documentclass{article} usepackage[margin=2cm,a4paper]{geometry} usepackage{lipsum} usepackage{longtable,array,calc} ewcommand{dummy}{% This is my favourite table. tabularx, they will be automatically numbered in the captions like that: Tab. number of columns in a tabularx table is limited to 20. Sorry for the downvote, but my question is about line breaks, not page breaks. You do not need the complication of tabularx here you can simply calculate the width of your last column by subtracting the widths of the other columns from \textwidth – The \multicolumn command may be used in longtable in exactly the same way as for tabular. You should use makecell after. Normally, I would "embed" longtable into a ThreePartTable environment, define appropriate \endfirsthead, \endhead, \endfoot and \endlastfoot and include notes with \insertTableNotes. , less turgid, look, don't use bold.