Hot answers tagged

14

(obviously, this does not work in the PNG image) I do not know such functionality (export a LaTeX table in a PDF to a CSV file), but may be you can use the attachfile package so that the PDF files can con­tain attached these CSV files. The package allows ar­bi­trary LaTeX code for the file icon (­a graph­ic or a table, for example). Make the tables ...


6

The letter class does not define the float types of table or figure, so \captionof from caption package will fail as will \caption of course too (since there are no figure or table environments). However, it is possible to provide a 'fake' table environment with \DeclareFloatingEnvironment from newfloat. \documentclass{letter} \usepackage{caption} \...


4

How about this -- with the tcolorbox package and sidebyside, there's no need to fiddle around with the minipage and a tabular. The LaTeX code is displayed on the right panel of the box. \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{mathtools} \begin{document} \begin{tcblisting}{sidebyside} \begin{equation*} \begin{matrix} ...


3

You can move the \bibliographystyle to the preamble or whatever, so it is easier to switch out. That much is unobjectionable. However, everything suggested below this point is subject to a large caveat: If you are submitting source - as opposed to PDF - you should not do this as it will only annoy. In particular, it will piss off copy editors no end. ...


3

The S-columntype is from siunitx, which you of course already know. It tries to parse the numbers it finds in every cell. So when it finds some text, as in your toprow, it tries to parse that too. Solve this by placing curlybraces{} around each and one of the headertexts. Note that siunitx is semi-smart about this, so only those that could be mistaken for a ...


3

You could use table-space-text-pos and the < column specification. For some reason, the last column acts up with S and < which seems to be related with the problems in ctable and siunitx: Last column does not center correctly (possible incompatibility?). I have found that adding another column at the end helps, see also Peter Grill's comment. If you ...


3

The first \hline command is causing the trouble. If you remove it, the table is aligned. If you want a horizontal line on top, use the array-package and the \firsthline command. MWE: \documentclass{standalone} \usepackage{array} \begin{document} LEFT \begin{tabular}[t]{ll} First & \begin{tabular}[t]{|l|l|} \firsthline Line & 1 \\ \hline ...


3

\begin{tabular}{|l|c|l|c|c|c|c|c|} \hline Name of the faculty &\multicolumn{3}{c|}{Mr KASHYAP} & Department &\multicolumn{3}{c|}{ECE} \\ \cline{1-1} \cline{2-4} \cline{5-5} \cline{6-8} Employee Code &---- &Scheme &KTU &Semester &Third &Batch &A \\ \hline Name of the Subject &\multicolumn{3}{c|}{Logic Circuit ...


3

I would like to suggest that you give your table a more "open" look by removing all vertical lines -- trust me, they won't be missed! -- and many horizontal lines and by using the line-drawing macros of the booktabs package for the remaining horizontal lines. \documentclass{article} \usepackage[a4paper,margin=2.5cm]{geometry} % set text block parameters ...


3

After all, it’s also possible to use the articoletteracdp document class (disclosure: I am the author of this class), which provides the ability to write letters divided into \sections and \paragraphs, and also to include the ordinary figure and table environments. It supports \tableofcontents, \listoffigures, and \listoftables, too, on a letter-by-letter ...


3

Here is a solution, playing with the parameters of booktabs: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{gillius2} \usepackage{geometry} \usepackage[table, x11names]{xcolor} \usepackage{booktabs, hhline} \usepackage{etoolbox} \newcommand\thickvrule[1][DarkOrange2]{\ifblank{#1}{}{\color{#1}}\vrule width 2pt} \...


2

You can create something like the following using the following code. The code is annotated to explain it a bit, but you'll need to look at the manuals for tikzmark and/or TikZ for further details. The latter is very long, but you obviously don't need most of it and the bits used here are simple. \documentclass{article} \usepackage[table]{xcolor} \...


2

Please always post complete documents not fragments but your table has 8 columns but & Hoisting Motor & Lifting Motor \\ only has 3, so the last cells including the vertical rules are omitted, you need & Hoisting Motor & Lifting Motor &&&&& \\ Also \multicolumn{2}{|c|}{Power Factor} should be \...


2

This is just a matter of placing the \endhead. This is easily found in the documentation for longtable, under section 3. In this example I have used some looping just to simulate a long table, as you did not include a Minimal Working Example. Also, I've used the booktabs, which gives a much nicer look to tables. Output Image taken for page two, but ...


2

The syntax for tabular is \begin{tabular}[<pos>]{<col spec>} <tabular body> \end{tabular} where [<pos>] (optional) denotes a vertical alignment position or anchor. Options are [t]op, [c]entre (default) or [b]ottom. <col spec> (mandatory) defines a specification of the columns. Your usage \begin{tabular}{<width>} &...


1

Consider using adjustbox to vertically align the tabulars to the \items as the default [t]op and [b]ottom alignments when including horizontal rules - \hlines - influences it: \documentclass{article} \usepackage{adjustbox} \begin{document} \begin{enumerate} \item \adjustbox{valign=t}{\begin{tabular}{|c|c|} \hline Lorem & Ipsum \...


1

The problem here is with your use of parboxes. You could ofcourse use add in the optional arguments to solve this also (\parbox[pos][height][contentpos]{width}{text}, where pos should be set to t, to top-align the content.). But this could be solved using a different columntype, namely p{width}, since you anyway are setting the same width in all of those ...


1

With ConTeXt natural tables. \starttext \startTABLE \NC Name of the faculty \NC[nx=3] Mr KASHYAP \NC Department \NC[nx=3] ECE \NC\NR \NC Employee Code \NC --- \NC Scheme \NC KTU \NC Semester \NC Third \NC Batch \NC A \NC\NR \NC Name of the Subject \NC[nx=3] Logic Circuit Design \NC Subject Code \NC[nx=3] EC 207 \NC\NR \NC Department \NC[nx=7] ECE \...


1

\endhead was the solution, the problem is resolved.


1

The reason you're getting a "missing $ inserted" error message is that siunitx doesn't manage to parse the terms $\dot{W}^{M1}$ and $\dot{W}^{M2}$ correctly. As they're written, these terms satisfy LaTeX's own syntax rules for math formulas. See the following paragraph for a modification that helps out the siunitx parser. One solution is to enclose the ...


1

I suggest you load the threeparttable package and embed the \caption directive and the tabular (or array) environment inside a threeparttable environment. \documentclass{article} \usepackage{caption,threeparttable} \captionsetup{justification = raggedleft, singlelinecheck = off} \begin{document} \begin{table} \centering \begin{...


1

As far as I can tell, there's no need to specify exact widths for any of the columns, especially as automatic line wrapping would seem to be inappropriate. Just use the "standard" column types -- l, c, and r -- instead. Your table does have quite few columns, and it thus won't fit on a normal-sized page in portrait mode (unless you select a minuscule font ...



Only top voted, non community-wiki answers of a minimum length are eligible