# Tag Info

2

The white space comes from \LTpre, add the following line to your preamble after \usepackage{longtable}: \setlength{\LTpre}{0pt} Also \LTpost could be set to 0pt, but standalone seems to remove this space at the end of the page.

2

This approach numbers all tables correctly in LyX and LaTeX. It has the drawback that a table in a "floatrow" environment is not listed under "List of Tables" in the "Outline" side bar of LyX. In Local Layout under "Document settings" add the following code and "validate" it. Style FloatRowTableCaption LatexType command LatexName caption ...

1

If you are longtable for all tables, then you also have the disadvantage that the tables do not float. If a short table is broken across pages this also means, that the table does not fit on the starting page. Moving it to the next page leaves a more or less large gap on the page before the table. You can circumvent this with package afterpage. In the ...

2

You don't give LaTeX much of a chance here:-) Each of the sections is an unbreakable table (tabularx or tabulary mostly) as LaTeX never re-orders content it is inevitable that you get overfull boxes or big gaps. LaTeX does complain a lot Overfull \vbox (52.91997pt too high) has occurred while \output is active Overfull \vbox (51.91997pt too high) has ...

2

\documentclass{article} \usepackage{booktabs,tabularx} \begin{document} \noindent \begin{tabularx}{\linewidth}{@{} >{\itshape}lX @{}}\toprule \multicolumn{1}{c}{\textbf{Variable}} & \multicolumn{1}{c}{\textbf{Description}}\\ \midrule W\_hours & The average number of hours worked each week by the respondent \\ W\_hours\_dummy & ...

1

What if you abused the geometry package? %\documentclass[12pt]{memoir} \documentclass[oneside, 12pt]{memoir} \usepackage[showframe]{geometry} \usepackage{lipsum,longtable} \makeatletter % <-- all from geometry.sty, but with some lines commented out \renewcommand*{\Gm@vrules@mpi}{% \hb@xt@\@tempdima{\llap%{\Gm@vrule} \ignorespaces \hskip ...

0

I think you are looking for the fancyhdr package. It will not only provide you with the possibility to have chapter, page number, section name, etc. on each page, but will also be fully compatible with the package you are loading (specially for cross referencing like hyperref and bookmark). It is also very easy to use, and can be set with just a few ...

2

I thought you could achieve this effect without having to hack an itemize. Just use multiple rows of the table: \documentclass{report} \usepackage{longtable}% http://ctan.org/pkg/longtable \usepackage{array,booktabs} \begin{document} \begin{longtable}{p{4cm}p{4cm}>{-- }p{6cm}} \caption{Summary of proven determinants for ...

3

\documentclass{article} \usepackage{dcolumn} \newcolumntype{C}{>{\centering}p{1cm}} \newcolumntype{E}{D{.}{.}{5.0}} \begin{document} \begin{tabular}{C E} xxx & \multicolumn{1}{c}{\textbf{head of col}}\\ y y y & 120\\ z z z z z & 42001 \end{tabular} \end{document}

3

For typesetting Sudokus, you can also use the logicpuzzle bundle [CTAN]. \begin{center} \begin{lpsudoku} \setrow{9}{{},2,6,{},{},{},{},{},{}} \setrow{8}{{},{},{},{},{},{},1,7,{}} \setrow{7}{{},{},3,1,{},6,{},{},{}} \setrow{6}{{},6,{},{},5,{},8,{},3} \setrow{5}{{},{},9,2,6,1,7,{},{}} \setrow{4}{5,{},4,{},8,{},{},6,{}} ...

2

Without a full MWE, I've taken some code from Przemysław Scherwentke's answer: \documentclass{report} \usepackage{longtable}% http://ctan.org/pkg/longtable \usepackage{array,booktabs,enumitem}% http://ctan.org/pkg/{array,booktabs,enumitem} \newcolumntype{P}[1]{>{\endgraf\vspace*{-\baselineskip}}p{#1}} \begin{document} ...

2

The following is a working example. Because lcr are for one-line entries, itemize shouldn't work with them. Compare the first part, improved, with the second, unchanged. \documentclass[a4paper,twoside,11pt,openright]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{longtable} %\usepackage[inline]{enumitem} \usepackage{enumitem} ...

2

X columns are just p columns which are all set to the same width, where the width is calculated to make the total table width the specified size. So all the X and Y columns in your table are the same width, All the entries in that column are single line so you could just use c so the column is set to the natural width of its content. Or use \tabulary ...

5

It depends what you want It is certainly possible to ask the question. (Just use a p column if you want specified width) \hsize works. Use p m b for fixed width columns, and use c l r or X in columns without a pre-specified width. Or you could use tabulary (which is easier to use really).

3

Physicists would complain about 12.3 (4.56). 12.3 means that the last certain digit is the 3, e.g. you don't know what the exact following digits are. Lacking that knowledge, giving an error like 4.56 does not make any sense, as this would be more accurate than your actual result. So errors should have at best as many significant digits as the result. If ...

4

The p option does not put the tables at the end of the document. It puts the floating object on floating pages without text. Each \clearpage can force the pages to be output before end of document, for instance. You can use package endfloat to move the tables to the end of the document. Even longtable environments can be put there, if they are declared as ...

0

Have you considered a monospace font for your table? \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \texttt{ \begin{tabular}{rr} \toprule 27.8 ( 2.8) & 38.4 ( 3.1)\\ 126.8 (10.3) & 171.9 (11.2)\\ \bottomrule \end{tabular} } \end{document}

0

Here is what I have done, with a preamble as follows: \documentclass[oneside,12pt]{memoir} \usepackage{lipsum} \usepackage{everypage} \usepackage[absolute]{textpos}% % textpos settings \setlength{\TPHorizModule}{1cm}% \setlength{\TPVertModule}{1cm}% \TPMargin{0.0cm}% % page dimensions \settrimmedsize{11in}{8.5in}{*} \settrims{0pt}{0pt} ...

5

add \usepackage{dcolumn} then you can replace r by D{.}{.}{-1} for columns centred on a . (There are other options, see the package documentation). siunitx package S column has similar features. \documentclass{article} \usepackage{booktabs} \usepackage{dcolumn} \begin{document} \begin{tabular}{ D{.}{.}{3.2} D{.}{.}{3.1} @{\,} D{.}{.}{3.2} } ...

3

Replace \begin{tabularx}{\textwidth}{|X|} \hline \parbox[b][1cm]{2cm}{Signature} \parbox[b][1cm]{25mm}{\includegraphics[width=25mm]{signature.jpg}} \\ \hline \end{tabularx} by \fbox{Signature\hspace{1cm}% \raisebox{-2pt}{\includegraphics[width=25mm]{signature.jpg}}} and adjust the raisebox argument to taste,

2

Your signature IS bottom aligned. However, you probably want align it according its baseline, not the bottom of the letter y (?). \raisebox should solve the problem, e.g. \raisebox{-3mm}{Box with your signature}.

2

for both tabular use: \begin{tabularx}{\dimexpr\textwidth-2\tabcolsep}{@{}p{0.56\textwidth}@{}X@{}X@{}}%

2

use a tabularx: \documentclass{article} \usepackage{tabularx,booktabs} \usepackage{graphicx,ragged2e} \usepackage[table]{xcolor} \renewcommand\tabularxcolumn[1]{>{\RaggedRight}p{#1}} \begin{document} \noindent {\setlength\extrarowheight{5pt} \begin{tabularx}{\textwidth}{@{} *5X @{}}\toprule heading 1 & heading 2 & heading 4 & heading 4 ...

5

Not a problem yet as your entries are smaller than textheight but you have a word space to either side of the table due to missing % here \rotatebox{90}{% and here \end{tabular}% It seems to be intentional but I think the first heading looks odd offset 1em to the left as all the other headings are flush left with their respective cells. Probably you ...

1

As noted by @cgnieder the default appearance of numbers for the main text should be set to proportional and osf (old style figures). The chemistry equations should get proportional lining figures. Finally, tables should contain tabular figures (equal width), but personally I think old style figures are fine in a table. In the following code I define three ...

6

\documentclass[11pt]{article} \usepackage{array} \begin{document} \begin{tabular}{|p{1cm}|>{\vspace{.5cm}}p{1cm}<{\vspace{.5cm}}|} \hline 1-1 & 1-2\\ \hline 2-1 & 2-2\\ \hline \end{tabular} \end{document} In your original your paragraph entries are only single line so it is hard to spot the difference ...

0

Is this what you're looking for? \documentclass{article} \begin{document} \begin{tabular}{lccc} \multicolumn{4}{l}{Table 1: CPA regulatory costs by risk class} \\ \hline Risk class & Freq. inspection & Cost inspection & Freq. system revision \\ \hline $R_t = 1$ & Each year & 20,200 & Every 3rd year \\ $R_t = 2$ & Every 2nd ...

2

Not sure if this is what you want? I seem to recall that David Carlisle once said that the alignment parameters apply to the alignment with respect to other matter in that cell, not, as you were hoping, with respect to matter in adjacent cells. What I did here is add buffer space above and below each data entry. \documentclass[11pt]{article} ...

3

The libertine package per default has the options lining and tabular activated. In normal text you usually want proportional and oldstyle, though. \usepackage[oldstyle,proportional]{libertine} You don't want to set them as package options, though, but only after newtxmath has been loaded to get lining figures in math. This could be done by defining ...

0

I just had the same problem- turns out I had an errant \\ at the end of my final \item. Looks like you also have an extra \\ after \end{itemize} - try deleting it and see if that helps- worked for me!

1

Use \usepackage{libertine}, and immediately after \begin{document}, use \libertineOsF. Immediately after \begin{table}[..], use \libertineLF.

4

You can use t for the optional argument of aligned to get top alignment; I also changed the first column to be of type p{...}: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs,array} \newcommand*{\sheaf}[1]{\mathcal{#1}} \begin{document} \noindent\begin{tabular}{@{}>{\raggedright}p{10.5em} l l l l@{}} \toprule Rational curve: \\$[t,s] ... 3 Try the package cals. I wrote it with a similar need in mind. 4 I claim this is a problem with the dvi driver bleeding the coloured panels too far, but I see the same with dvipng You can compensate by over-printing an uncoloured table over the top so the rules are on top of the colour not adjacent. Compare and \documentclass{standalone} \usepackage[table]{xcolor} \begin{document} \def\foo#1{\begin{tabular}{ ... 4 no vertical lines, no centering, friendlier spacing: \documentclass[12pt]{article} \usepackage{booktabs,leading} \usepackage[utf8]{inputenc} \usepackage[justification=raggedright,singlelinecheck=false]{caption} \begin{document} \begin{table} \leading{16pt} \caption{\label{tab2} FMM: profiling of subroutines} \begin{tabular}{llllllll} ... 5 Don't use vertical lines at all: \documentclass[a4paper,12pt]{article} \usepackage{amsmath, amsmath, amssymb} \usepackage{caption} \usepackage{ctable} \usepackage{multirow} \begin{document} \begin{table}[H]\centering \caption{\label{tab2} FMM: profiling of subroutines} \begin{tabular}{lcccccc}\FL \multirow{2}{*}{$\Theta$} & ... 4 If your data are all homogeneous in columns as in the example you show, you can let TeX compute the column widths: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htp] \centering \begin{tabular}{*{6}{c}} \toprule \bfseries p & \bfseries N &$\|u-u_{h}\|_{L^{2}(0,1)}$& \bfseries$L^{2}$Rate & ... 3 To get a cell spanning several rows, you can use the multirow package. \backslashbox works well with this within its implemantion limits - the slash is constructed as a LaTeX picture, and so there are only a limited number of slopes for the line allowed. \documentclass[12pt]{article} \usepackage{slashbox,multirow} \begin{document} ... 4 If you need only a correction, here you are: \documentclass{article} \begin{document} \begin{table}[ht!] \begin{center} \begin{tabular}{p{0.6cm}p{0.6cm}p{2.3cm}p{1.4cm}p{2.3cm}p{1.45cm}} \hline \bf p & \bf N & \bf$\|u-u_{h}\|_{L^{2}(0,1)}$& \bf$L^{2}$Rate & \bf$\|u-u_{h}\|_{H^{1}(0,1)}$& \bf$H^{1}\$ Rate\\ ...

4

If \raggedright is acceptable... \documentclass[twocolumn]{article} \begin{document} \begin{table} \begin{tabular}{|p{0.25\columnwidth}|p{0.75\columnwidth}|} \hline \raggedright % PS longish line of text & second cell that will often have a lot of text\\ \hline \end{tabular} \end{table} \end{document} A second version: ...

1

The command \footnote is divided into \footnotemark and \footnotetext. \documentclass{article} \usepackage{tabularx}[1999/01/07] % v2.07 \usepackage{hyperref}% 2012/10/15 v6.83k \listfiles \begin{document} \begin{minipage}[t]{.5\linewidth} \begin{tabularx}{\linewidth}{c} text\footnote{footnote test} and text\footnotemark %1 and text\footnotemark %2 \\ ...

1

\begin{tabular}{lcccccc} %say &\multicolumn{3}{c}{Title1}&\multicolumn{3}{c}{Title2}\\ Row1 & 1&2&3&1&2&3\\ %and so on \end{tabular} Version with lines: \begin{tabular}{|l|c|c|c|c|c|c|} %say \hline &\multicolumn{3}{c|}{Title1}&\multicolumn{3}{c|}{Title2}\\ \hline Row1 & 1&2&3&1&2&3\\ %and so ...

2

m doesn't align the entry with the centre of the other columns It aligns the centre of this entry with the alignment point of the other columns (which is at the top as you used p). Change all three entries to m.

4

You haven't put any alignment points in your align so it is not that alignment is messed up, it wasn't attempted. Use {\begin{align} a&\in(b,c) \label{eq1}, \text{where}\\ b&=B \nonumber \\ c&=C \nonumber \end{align} } The outer {} would hide the alignment from tabularx although really using tabularx is very inefficient here. You ...

5

The paragraph box congaing the cells is vertically centred (using \vcenter) But that isn't the same thing as centring the digits in the actual content, note that a line box is the same height whether the content is ( or 1 or . You can add \setlength\extrarowheight{2pt} before the table to get a better appearance.

3

It usually gives a more consistent appearance if you choose a defined document font size such as \footnotesize rather than scaling the table. I also used array package to give extra padding below the horizontal lines, and used table rather than table*. Please always give complete documents showing the class and all packages used. The font size here is ...

3

Inside the table float, right click, choose Paragraph settings, and set the Alignment to Centered.

0

needs package graphicx ... \noindent \resizebox{\linewidth}{!}{% \begin{tabular}{|c|c|c|c|c|c|c|} % 7 colonnes ... \end{tabular}% } ... or if you do want want to resize it: ... \noindent \makebox[\linewidth]{% \begin{tabular}{|c|c|c|c|c|c|c|} % 7 colonnes ... \end{tabular}% } ...

0

This is because your table is too wide. The best way is to adjust the arrangement of your table contents. But if you don't want to change the arrangement, Here is a solution: ... \leavevmode\hbox to 0pt{\hss \begin{tabular}{|c|c|c|c|c|c|c|} % 7 colonnes ... \end{tabular} \hss} ...

1

Package slashbox.sty is available from http://mirror.ctan.org/macros/latex/contrib/slashbox, if it is not installed in your system \documentclass{article} \usepackage{slashbox,pict2e} \begin{document} \begin{tabular}{@{}c|ccc|c@{}} \backslashbox{\tabular{@{}l@{}}Ground\\truth\endtabular}{Inferred} & 1& 2& 3& \\\hline 1 & & & ...

Top 50 recent answers are included