Latex longtable tabularx. In order to get a table that breaks across pages and has the variable with X type columns from the tabularx package, you could use the ltablex package as shown in the following example. Latex longtable tabularx

 
In order to get a table that breaks across pages and has the variable with X type columns from the tabularx package, you could use the ltablex package as shown in the following exampleLatex longtable tabularx 5) so as to fit the whole table on the page

In order to specify a multicolumn of 1. Therefore, I think that I should (1) change the width of the first 3 columns and/or fill the table over the entire page (on the left and right). 3 These chunks do not affect page breaking, you could use ltablex or ltxtable both of which combine tabularx and longtable, but really, I wouldn't. 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. vertical-alignment. the baseline is in the center. 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. The corrected code would be the following, resulting in the table to be split onto two pages. An online LaTeX editor that’s easy to use. A very long text. Move caption inside egin {tabularx} and put a endfirsthead after that, also remove the table environment` for this. 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. It only takes a minute to sign up. Aug 21, 2013 at 13:07. You could use X to do so. Resizing the entire table to fit within the line width via the graphicx package esize {<h-len>} {<v-len>} {<stuff>} command: Use fixed-width tabulars. Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the. For the table to fit within the margins, use ltablex and an X column. An online LaTeX editor that’s easy to use. – Schweinebacke. So you need to. item 5 & second line too end{tabularx} A simple solution is using a p paragraph column, you can combine with par to separate paragraphs within a cell. Improve this answer. Please ask separate question, if you have problem with this issues. by this changes his solution start to work for me, before that I got errors {csvcoli & csvcolii & csvcoliii & csvcoliv & csvcolv & csvcolvi & csvcolvii} are. Also, note that in the landscape environment, for a full width table, you have to use linewidth or extheight, but not extwidth. the first row has to be bold. print(tabla_1. Headers were turned on to check if the landscape environment works correctly. (Well, LuaLaTeX offers access to Lua's table functions, including table. I know that my question below may be similar like this one, nevertheless I kindly ask you for your patience, as I am using some different tabular environments. com. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. I tried many answers such as this one but none seem to work to me. Copying and pasting a table from another document while using Visual Editor. I write the code as. To answer this we need: the main reason why centering works is that it sets leftskip=0pt plus 1fil and ightskip being the same value. You can write captions within the table (typically at the start of the table), and headers and trailers for pages of table. The syntax ed is simply wrong. {longtable,tabularx} LTcapwidth=7in usepackage{bigstrut} egin{document} egin{landscape} {small abcolsep=2. I also use tabulary, a variation on tabularx such that, given the total width of the table, the width of a column is based on the widest cell in that column. These commands are actually used in the (admittedly brief) ltablex documentation, but a continued caption, which would be used in the general header (or footer), is not part of. A main change, relative to the code fragment you posted, is moving the units to a separate header row; this makes each column just that much less. However, I don't really see the need for tabularx at all in you case. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. You can either calculate a value yourself or use one of the packages which combine the facilities of tabularx with those of longtable. 1 Answer. And add usepackage {longtable} to the preamble, of. Improve this question. 4cm, right=2. You'll have to use a fixed-width p {<len>} column for your tabular, or consider using tabularx. Writing the LaTeX code for the table in Code Editor. Dec 17, 2012 at 11:03. If replaced with proper syntax, e. Tables. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. In the package documentation, you will find more about formal tables. As it does not work perfectly with \thead (no correct display of the \thead in the first column), I had to circumvent the problem by adding a first empty column. 比较麻烦的. g. booktabs package is used for better horizontal lines. – leandriis. \\ \hline \end. 3 Answers. The following screenshot shows just the header row and the first two data rows. To split a table across pags, take a look at the longtable package. answered Jan 5, 2016 at 3:16. I need to make a table over more than one page. The “four-eyed” fish Anableps anableps has numerous morphological adaptations that enable above and below-water vision. 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. egin {tabular} {p {3cm} p {12cm}} extbf {Socialism in One Country}:& Bolshevik foreign policy transformed from expansion and advancement to internal consolidation and defence, from which emerged Stalin's Socialism in One Country extbf {Permanent Revolution}: & Foreign policy in inter-war. I'm using tabularx to create a table of many rows, for which I'm also using ltablex to extend over multiple pages. For the case of your table, you'd either issue the two setlength commands in the preamble (to make them apply to all longtable environments) or localize them in a TeX group (so that they only apply to the longtable (s) within that group). type texdoc longtable and the manual has many examples or look at the longtable tag on this site for thousands more examples. That is it, it prevents the numbering of the second table. tex. By default longtable uses 20 rows per chunk, but this can be set by the user, with e. ) The material formatted by. I am unsure about why this is happening. FRQ. At the first case add to preamble \usepackage {etoolbox} \AtBeginEnvironment {xltabular} {\sffamily}, for cover also the second cas, add to above \AtBeginEnvironment {table} {\sffamily}. documentclass[a4paper, 11pt]{article} usepackage{amsmath} % Nice maths symbols. just simply use a longtable as in egin{longtable}{|p{150mm}|p{30mm}|}. Using extwidth within the inner tabularx is most likely going to result in columns being too wide. If your longtable accompanies section or chapter titles, then these will be rotated too (if inside the landscape environment) or be left alone in a preceding blank page (if outside, landscape call clearpage). ltablex will, just as longtable not work with tables inside a floating table environment. egin {table} caption {Table Title} egin {tabular}. Tables. It only takes a minute to sign up. I actually need a long table, but my problem is that I don't know how to. 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. 3. /MikTeX/doc/latex. %linebreak documentclass [a4paper,12pt] {report} usepackage {wrapfig} usepackage {units} usepackage. It will be a really long table and here is what I have till now: \documentclass [12pt] {article} \usepackage {mathptmx}% \usepackage {tabularx. Add a comment. It only takes a minute to sign up. You can set the widths of columns using p {2cm} as for a normal tabular. . A simple tabular should do fine. Reference. Finally, the centering instruction isn't doing anything useful and. 23 2. You have a tabular inside a tabularx inside a longtabu, which seems like 2 table environments too many:-) longtabu will break over a page but tabularx and tabular will not, so essentially you just have the inner tabular, the tabularx and longtabu can not do anything useful –I am reading user generated data and am trying to automate the layout. I am using a longtable where I'd like to align the content of a specific cell vertically to the top. longtable definitely is a better approach than. 2 Answers. The second table are only c columns, so table behaviour as standard. Also, depending on the complexity of the tabularx setup, you may have to run latex more than once in order for the algorithm to "converge". You simply forgot that a long table is not a float, so you shouldn't use the table environment, and you should the syntax of longtable (endfirsthead and the like). The tabularx package. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. longtable; tabularx; Share. Therefore I was told I should use tabluarx . Admitted I handle thing poorly when it comes to working with table. It only takes a minute to sign up. The X column type requires a tabularx environment, and you have to set the total width of the table. Gonzalo Medina. (or X columns from the tabularx package) and avoid m columns, otherwise it will mess with the alignment. Viewed 36k times. 9. Another possibilities is to use novel tabularray package. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Copying and pasting a table from another document while using Visual Editor. – bastibe. 3 cm). Asked 6 years, 4 months ago. 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. 14. This is potentially more useful than the. Main diference are: csv file is reorganized: instead of semicolons are used comas. : documentclass {article} usepackage {longtable} usepackage {tabu} egin {document} egin {longtabu} {l} caption {This is a caption} This is some table data end {longtabu} end {document} Any credits go to @cfr who already explained. [. Tables. The answer to your actual question is: remove the setlength abcolsep {60pt}. Add a comment. halfway between the head and the foot, you mostly. 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. Aldo don't use resizebox on tables since it will leave you with inconsistent font sizes. Ask Question. A comprehensive solution (based on this answer) is to define new column types (say, L, C, and R) that take their width as argument and do the following:. I was just pointing out that your answer was a. When using the multicolumn command, you may need to run your code through LaTeX several times. – David Carlisle. Follow asked Apr 9, 2022 at 15:16. 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. @OptimistOptimizer, LaTeX provide many table environments, each is dedicated to specific problem. 5cm]. enewcommand {arraystretch} {<factor>} to increase the default cell spaces in all rows by factor. 1. 이 지시자로 지정된 칼럼은 표 전체의. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. 2 Answers. 6. 要使得表格能够换页,需要使用 longtable宏包 。. However rather than adding space between the columnsI need to create a long table in latex, but when the size of the table is longer than page, the table doesn't go to the next page. Environment tabularx is wrong in two ways: The table width argument is missing. Sep 24, 2010 at 14:43. Vita Talalay latex is often called the Earth’s Most Perfect Sleep Material, and not without good reason. Layout a catalogue of exam questions in LaTeX. Moreover, komascript has a footref`` command that works withhyperef`. 例如:. 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. It prevent that they can be broken over several pages. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more. 3nrique0 3nrique0. So I changed my code to look like that: documentclass {scrartcl} usepackage [table] {xcolor} usepackage. Modifies the tabularx environment to combine the features of the tabularx package (auto-sized columns in a fixed width table) with those of the longtable package (multi-page tables). The height of the others rows which are different from the first three, for neat, should be equal the last row's natural height. 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. As @TrevorAndrew has already pointed out in a comment, you need to switch from a table / tabularx setup to a longtable setup. 0 How to convert a tabularx table into longtable in twocolumn class? 1 Combining longtable, booktabs, and xcolor in LaTex, layout problems. – David Carlisle. Download the contents of this package in one zip archive (228. However, using LuaLaTeX would seem like overkill for what you say you want to achieve. 0. ]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, use hline instead of teh booktabs horizontal lines. 1. This last contrasts with the superficially similar supertabular package. An argument to the tabularx environment specifies the table width, X columns share the available space. ) The package requires the array package, and needs e-T e X to. 2. 6 extwidth}} The usable overall width is 1. Here's the former approach: documentclass[a4paper,10pt]{article}. Inmy table below I have six months divided into weeks. longtable provides commands to define a first and a general header as well as a general and a last footer. print(tabla_1. If you comment out usepackage {ltablex}, then you will find that the table regains formatting - centered and all. Add a comment. 2 Answers. 0` is possible to manage to be referable. I also need a description for each panel. The new LaTeX3 package tabularray is an alternative to the outdated tabu package. To switch from a table / tabular combination to a longtable setup, the following adjustments are required: delete end {tabular} and change end {table} to end {longtable}; omit the centering directive that's usually provided for tabular material; and. 簡単に使用できるオンラインLaTeXエディター。 インストール不要、リアルタイムコラボレーション、バージョン管理、何百種類のLaTeXテンプレートなど多数の機能。TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Here is my suggestion: I have replaced the longtable environment by xltabular that combines the features of longtable with those of tabularx. 1 it depends but usually something like {llp {. 0 extwidth. xtab extends supertabular by some features and improves page breaking. Dec 17, 2009 at 21:36. After some experiments with different column types. Since you're using a longtable environment, which has its own caption commands, etc. To quote from the booktabs manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. The tabularx package. (too long for a comment, hence posted as an answer) You specified egin{longtable}{p{. – daleif. Depends on content, it can end before or protrude bottom text. The second row shows all lines except first line get pushed to the right. Copying and pasting a table from another document while using Visual Editor. – Mico. 501k 67 1655 1821. Oct 26, 2011 at 12:11. Jun 7, 2022 at 12:52. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. Finally numprint allows for scientific notations in cells. Modified 2 years, 1 month ago. Longtable interacts directly with \output and cannot be inside anything else. You can use X columns in longtblr environment: \documentclass {article} \usepackage {tabularray} \UseTblrLibrary {booktabs} \begin {document} \begin {longtblr} [ caption = {A very long table}, label = {tab:LongtableOne}, ] {X [1]X [2]} \toprule WHO & World Health. In the original example this section was entitled 'Teaching Experience', but in your answer its been changed to tabularx. Can anyone suggest an elegant solution to create a very compact bulleted points within a table cell. @Raaja - I can see no reason why the xurl package/url macro setup can't be used in other settings. 1. As an workaround change tabularx to tabular and everything is working. Instead, use a tabular* environment (and set its width to linewidth ). for such an environment seem to occur quite regularly in comp. \end{tabularx} 如果希望两者兼得,该怎么办?. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Follow. Implementing page break in tabularx environment. The longtable environment has a mandatory argument in which you specify the number of columns. But the resulting tables do not align. How do I make a jspdf autotable landscape? 1. Longtable. 1. g. 3 These chunks do not affect page breaking,One of the easiest ways is to load the package array and invoke. 4cm, top=2. Headings are footnotesize to avoid overfull hbox warnings. In an X column, you can change the spacing between lines inside a cell by adjusting aselineskip. The two arguments to fontsize are the actual font size in size and the size of the baseline-skip in skip. An example of your table is: documentclass [12pt] {article} usepackage {xltabular} % splits cells with text longer than the column. Copying and pasting a table from another document while using Visual Editor. Sorted by: 4. David Carlisle for the colortbl, longtable, ltxtable, tabularx and tabulary LaTeX packages. LaTeX伪代码 (algorithm)跨页展示. The table environment lets you create captions while the tabular environment enables you to insert values and margins for your table. Sorted by: 59. The xltabular combines the functionalities of longtable and tabularx. 1 Answer. 5cm,bottom=2. Instead of longtable is better to use xltabular, which is combination of longtable and tabularx packages, where for the last column employ X column type. documentclass {article} usepackage {ltxtable} egin {document} LTXtable { extwidth} {table. BUT it looks like it deletes spacing between words. 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. 4 Answers. Copying and pasting a table from another document while using Visual Editor. I need to split a table (using longtable or other) with the tabularx settings. 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. Oct 16, 2021 at 15:52. Writing the LaTeX code for the table in Code Editor. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more. Jul 9, 2012 at 14:01. Here's what I came up with (assuming you're happy faking the effect of tabularx as suggested in the. It is especially true for the cases when there is a long word in a narrow column. note that it is not tabularx that does this, if you load the tabularx package rather than ltablex then you get. By the way: your example is not compilable since usepackage {caption} and egin {document} are missing. 7. }. Hence the caption shouldn't be separated from the table body, and the table doesn't float. The new LaTeX3 package tabularray is an alternative to the outdated tabu package. I tried to rotate to use longtable, longtable + rotating and longtable + lscape. multicolumn. 18 (MiKTeX 2. 1. text. Writing the LaTeX code for the table in Code Editor. I suggest you load the tabularx package, use a tabularx environment instead of a tabular environment, and apply a centered version of the package's X column type to the final data. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. e. At the moment, I counter this behavior by inserting a. py. 1,494 1 10 24. There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. JuanMuñoz JuanMuñoz. Details on tabularx can be found here. Long tables are natively supported by LaTeX thanks to the longtable environment, which replaces both the tabular and table environments or rather combines. organize the header and footer material with endhead, endfoot and, if needed. Simon Fear for the booktabs LaTeX package. to_latex(). Writing the LaTeX code for the table in Code Editor. But the old. l. Something like the following? The solution suggested below uses a sidewaystable environment, employs a tabularx environment (with width set to extwidth and the first column type set to the (slightly modified) X type), restricts the height of the rotated header cells, and employs the macros of the booktabs package -- oprule,. 2. Just use tabular (forcing the columns apart should be a non-aim anyway) – David Carlisle. You can use the lscape (or pdflscape) package to get a wide and long table spread over several pages. in which case you can say: begin {longtable} {l > {\raggedright}p {0. When using the multicolumn command, you may need to run your code through LaTeX several times. 例如:. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Delete egin {table}centering and end {table}, replace tabular with longtable, move caption and label to immediately after egin {longtable} {. As you clearly want your table to spread over the whole line width, the best in my opinion would be to load the ablex package, which brings the functionalities of longtable to tabularx: documentclass{article} usepackage{ltablex,booktabs} keepXColumns egin{document}. Here is a solution that should solve most problems: I use the ltablex package, which is a extension of longtable to tabularx. This is pdfTeX, Version 3. – leandriis. egin{table} caption{Example of different attributions by three representative participants (A, B and C)} label{table3} setcellgapes{5pt} makegapedcells centering. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. 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). I am having some issues with formatting the below table. I am making a long table for my thesis correction. Please clarify the desired output. Please do not recommend using fontsize switching commands as environments. Another possibilities is to use novel tabularray package. Folder for styles is in. owcolors together with booktabs. A very long text. ) ltxtable combines features of longtable and tabularx. Not with longtable – just xltabular, which incorporates the functionalities of longtable to tabularx. tabularx 2. The all rows could be a line stretch less than 1 (I set to 0. color {red} it compiles fine: documentclass {book} %mwe_clisting3 usepackage {ae,lmodern} % ou seulement l'un, ou l'autre, ou times etc. – David Carlisle. While it functions the same way as longtable, it also adds X column-type (from tabularx). The following post will show you how to better present your data in tables through coloring rows/columns or even single cells to highlight important data. 1 - Tab. \\ \hline \end{tabularx} \end{table} \bibliographystyle{spmpsci_copy} \bibliography{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 : How to create a clongtable that spans over multiple pages with page width in a document of two columns page? I have this so far: \documentclass[final,3p,times,twocolumn,authoryear]{elsarticle} \ Oct 26, 2011 at 9:04. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 1 Answer. tabularx generally only makes sense if you plan on using it with at least one X type column. The longtable environment has a mandatory argument in which you specify the number of columns. 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. The sidewaystable environment does not let you split its contents across multiple pages. I have tried with the following egin{longtable}{|>{. , setcounter{LTchunksize}{10}. $ pandoc SORUCE -o OUT. Writing the LaTeX code for the table in Code Editor. A very long text. The below code represents the issue I'm facing, where. For padding at the top you can use this solution (I found it here ): ule {0pt} {4ex}. An alternative would be to use the adjustbox package and replace the esizebox with egin{adjustbox}{width= extwidth} . There are three ways you can insert tables in Overleaf: Using the Insert table button in the editor toolbar. Align the text at the top of the cell. hline end. A way to use longtable within multicols is described in one of the answers to Balancing long table inside multicol in LaTeX. Solution:. I need a longtable like this table shown in HTML: but when I use multirow, the data inside the multirow is continued inside the next cell. The first issue: It is not positioning after the text and instead is starting on a new page despite the positioning !htbp. \documentclass {report} \usepackage [utf8] {inputenc} \usepackage {booktabs. To use longtable, add this to your preamble. In the MWE there are 5 equal tables displaying two major problems: Row numbers of the table do not start with 1 andthrough an almost direct dataframe. (i) long table should not be enclosed in table environment, (ii) longtable (as well longtabu) have special syntax for repeating column headers and footers on each page, which (so far) are not part of your command and are superfluous at tables shorter than one page (it is described in these package documentation) , (iii). Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top. 1 Answer. I want to get a table that needs both to fit on width page and to continue in the next page. I do not know what to use, since I charged the package longtable but didn´t find the correct way to use it in this case. 1; **p<0. How to convert table to longtable. sort. Using both p {} and r/l/c in tabularize. 2Examples ListofTables 1 Using the original tabularxenvironment: a pagebreak not possible! This is the 4. (Needs the array package) If you want multiple of these columns in your table, you may want to consider defining your own column type using ewcolumntype. As pointed out by other members in the comments, you have set a width that is greater than extwidth, in this case tabularx can be used to benefit from the total available width by setting the first column as p{2cm} and the rest of the width goes to the second column. If you’re new to LaTeX, using the toolbar in Visual Editor (option 1) is a great way to get started. If you want to horizontally center all contents inside of a p type column, it is easier to use > {centeringarraybackslash}p {5cm} instead of adding centering to every single cell. A very long text. Just to mention an additional method: the tabular* environment. @Zarko mine worked fine a couple of years ago. longtable; tabularx; xltabular; Share. 4 extwidth}p{. 8 extwidth} {lXXr} left column & text & text & right column end {tabularx} Relative column width in LaTeX. 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. 2 Answers. hline end{tabularx} end{table} (iii). Thanks for help. these rules are defined by command ch (see mwe above)I am trying to use longtable with repeating headers on each page. No installation, real-time. 05; p<0. I tried ltablex, but this changed all the other tables in the text. which brings the functionalities of longtable to tabularx, and replace. Compile the following and then compare with the same code where egin {adjustbox} {width= extwidth} and end {adjustbox} are commented. How to force a table into page width. – jon. As it does not work perfectly with head (no correct display of the head in. You have to move your label{mytbl} just after the caption like caption{My caption}label{mytbl} oprule You can put the Continued on next page in the same way. Create LaTeX tables online : Online tool. Sharing of footnote between different part of tables using flextable. Simply use the caption package and make your first table normally with caption {} and label it and then in the caption of the second table put: caption* {label {table1}}. . My MWE: documentclass[12pt,oneside]{book} usepackage[showframe]{geometry} usepackage{amsmath} usepackage{ragged2e} usepackage{booktabs, makecell, multirow, tabularx,. As you can see, it is very picky about where it breaks the words. Additionally, fix thetableèformat of S columns to the exact number of digits, and ThhreePartTablex package for the table note: documentclass [12pt, a4paper, twoside] {article} usepackage {showframe} enewcommandShowFrameLinethickness {0. 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. 6-1.