Is there any way to Import a table from Latex to Excel or any other format ?
121837
I know there are tools to export excel tables to latex, but what about the other way around?  I get a lot of latex tables from functions in R (e.g.: texreg) that aren't perfectly customizable via the code, and need some editing.  For example, I'll have variables like T:X and X:T as separate rows, based on how whatever model function interpreted an interaction expansion.  I'd like to be able to input a tabular object and get .csv-like table, which I could then edit and re-export (using calc2latex in my case).    Anything like this exist?
45172
How can I insert a  into a LaTeX formula?  Ɗ
22184
I want to create a table like this using Latex        ---------------------------------       |               sets            |       ---------------------------------       | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | --------------------------------------- | I1  | * |   | * | * |   | * |   | * | ---------------------------------------   Here is what I wrote  \begin{table} \caption{Multiprogram sets} \label{multiprogram}  \begin{tabular}{| c | c | c | c | c | c | c | c | c |}   \cline{3-9}   \multicolumn{8}{}{}    &amp;   Sets  \\   \hline   \multicolumn{1}{}{}   &amp; 1 &amp; 2 &amp;  3 &amp; 4 &amp; 5 &amp;  6 &amp; 7  &amp; 8 \\   \hline    astar         &amp;  &amp; * &amp;  &amp; * &amp;  &amp;  &amp; * &amp;   \\   \hline  \end{tabular} \end{table}   But it doesn't work! The output look like            -----------------------------                                  sets | ---------------------------------------         1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | --------------------------------------- | I1  | * |   | * | * |   | * |   | * | ---------------------------------------   Any way to fix that?
79635
I know that you can combine tabularx and longtable functionality with either ltxtable or ltablex, but is there something similar for tabulary? My searching has come up dry when looking for any way to get tabulary to work with very long tables.  The table I am working with has large amounts of text that requires line breaking in multiple columns. Some cells have very little, and some have a lot, and I would like to see the column widths juggled to minimize total table length. I realize I could manually do this with the {&gt;{\hsize=.5\hsize}X&gt;{\hsize=1.5\hsize}X} functionality in tabularx, but what I'm making is intended to be a template that should work well with any particular arrangement of data that gets thrown in. Am I doomed to using tabularx and manually adjusting the hsize numbers each time I want to make a table?
107924
I'm trying to get an equation go to a new line in a table, in latex.  Basically I want it look something like this:    column 1         column 2               column 3 (equation)          (text)               (equation)    A+B+C           quite long text         A+B+C,  A=B+C,                   that gets split up              B=D-G                   as you write    B+G+H+J         more long text that    A+Y+J+K, A=F+G+L                   that wraps around               F=B-R+H+L  [other equation]   [more long text]      A+F+H [&lt;- only this equation]   The specific format I'm looking to make is that of the one in column 3, where the 3rd equation is directly under the 2nd equation.   However only in certain rows like row 1 and 2. Row 3 just has a single equation, that doesn't need to take that format.   I'm doing this because certain lines are too long and go off the end of the page. And I to want to split it up, column 1 is just 1 long equation which I can't split up. Column 2 is just text, and I've found a way to wrap it around quiet nicely. Column 3 however consists of either 1, 2, or 3 different equations, and I want to bring an equation down to the next line, but in the format I need, equation 3 below 2.   I've tried using the format of column 2, in column 3, messes up all my equations in the other rows of the table.  Any help would be appreciated, my code and a picture of how my current pdf looks, is below:   \documentclass[10pt,a4paper]{article} \setlength{\abovecaptionskip}{5mm} \usepackage{array} \newcolumntype{L}{&gt;{\centering}m{5cm}} \newcolumntype{j}m{5cm}} \setlength{\extrarowheight}{2.5mm} \usepackage{amsmath} \usepackage{multicol} \usepackage{float} \usepackage{longtable}  ~ all preamble ~  \begin{Document}  ...  ...  \renewcommand{\arraystretch}{1.7}  \begin{longtable}{ l L l }  $\overline{X} \cdotp Y \cdotp Z + \overline{X \cdotp \overline{Y} \cdotp  \overline{Z} + X \cdotp Y \cdotp Z} $ &amp;   Use De Morgan's law [OR to AND] &amp;   $ \overline{A+B} = \overline{A} \cdotp \overline{B}, $  $ \quad A = X \cdotp \overline{Y} \cdotp \overline{Z}, $ $\quad B = X \cdotp Y \cdotp Z $ \\\  ...  more similiar rows  ...  \end{longtable}  \end{document}
52527
I have an Excel spreadsheet that I want to import select columns into my SQL Server 2008 database table. The wizard didn't offer that option.  Do any easy code options exist?
23791
How do we add a matrix to a LaTeX document?
37802
Is there something like indent for LaTeX? I have a collaborator that is using Scientific Workplace and the code it produces is totally messed up; I know I shouldn't expect miracles, but any machine support would be useful.  EDIT: This question is quite undefined without my comment to KeithB's answer; the idea is to save VC-friendly one sentence/one paragraph per text file line structure which SWT "fixes" by wrapping everything into fixed column width format.
56650
What is the best way of editing an existing LaTeX table? I need to swap the order of two columns and can't think of an efficient way of doing this.  My table is a long creature of the following structure:  A &amp;     -0.523 &amp;      26.94 &amp;     0.8243 &amp;     0.0000 &amp;     -12.67 \\ B &amp;     -0.614 &amp;      30.02 &amp;     0.8509 &amp;     0.0000 &amp;     -13.12 \\ C &amp;     -0.630 &amp;      32.92 &amp;     0.9254 &amp;     0.0000 &amp;     -21.45 \   I need to change the values so that it is:   A &amp;     26.94 &amp;      -0.523 &amp;     0.8243 &amp;     0.0000 &amp;     -12.67 \\ (etc)   The thoughts that I had were to import it into Excel and to drag columns around, and then use the concatenate() function to produce the number &amp; number structure. I feel like there might be a better way of doing this that I am unaware of.
31810
Excel has the functionality to import fixed-width text files where it presents a dialog that lets you choose where the begins and ends of fields are which it puts into columns.  Does it also have functionality where, given an existing spreadsheet, you can export to a fixed-width text file?    If so, how do I access this? I have tried using Save As and choosing Text File but it seems to only save as Tab-delimited which doesn't help me.  This is Excel 2003 if it matters.
48621
\begin{table}[ht] \makebox[\textwidth][c]{     \begin{tabular}{ccccc}         \hline         \hline         [] &amp; [] &amp; [] &amp; [] &amp; []\\         [] &amp; [] &amp; [] &amp; [] &amp; []\\         \hline         \hline     \end{tabular} } \caption{test} \end{table}   I cannot run the above code, latex returned an error about missing number, but I can't see anything I am missing.  And the weirdest thing is that  \begin{table}[ht] \makebox[\textwidth][c]{     \begin{tabular}{ccccc}         \hline         \hline         [] &amp; [] &amp; [] &amp; [] &amp; []\\         \hline         \hline     \end{tabular} } \caption{test} \end{table}   This code works.  Anyone have any idea?
119721
In a two column document in LaTeX, is there any way to put a table* (a table spanning both columns) at the bottom of the page?  The obvious doesn't work:  \begin{table*}[b]   % b!, hb, hb!, etc. doesn't work either    %... a wide table \end{table*}
56327
The LaTeX Wikibook :     Please understand: you do not have to use floating tables. It only   looks more professional. If you want to place your tables where they   lie in your source code, do not use table at all! This is a very   common misunderstanding among newcomers.   LaTeX works with an intricate , but I often prefer immediate placement with the H placement specifier (enabled by the float package).  My understanding is that captions and table/figure numbering require the table/figure environments. Is this really so, or are there ways around that? What other reasons are there for using table/figure if we know that we don't want a particular object to float?
43779
I am trying to include a figure into LaTeX from a paper originally created using MS Word. I have already converted all the text/equations into LaTeX but I can't figure out how to get the figures over without re-drawing them using LaTeX code (which I do not want to do). The image is a plain box (like a tabular) one row by 7 columns with numbers inside each cell. Then I inserted arrows of varying length above and below the box (several short ones and one much longer).    I am trying to use the  package with the \includegraphics command.   I copied the figure (box and arrows) from my original article into a blank Word doc. The figure only takes up the first 4 or 5 lines of the blank document. I then selected/highlighted the image and printed the selection using 'PDFCreator'. This allowed me to save the image as a .eps file. I then copied and pasted the eps file into the folder where all my .tex files are saved.  When I compile the document using pdftexify there is a blank space where the image should be. In the console I get the following message when I compile the document:  [27] &lt;Fig3-eps-converted-to.pdf, id =105, 391.4625pt x 74.2774pt&gt; &lt;use Fig3-eps-converted-to.pdf&gt; Overfull \hbox 1.46153pt too wide) in paragraph at lines 511--516 []   My code looks like this:  \documentclass[12pt]{article}  \usepackage{graphicx} \usepackage{epstopdf} \begin{document}  %Text  \includegraphics{fig3.eps}  %text  \end{document}   I have read the sections on graphics in 'LaTeX: A Document Preparation System' and 'The Not So Short Introduction to LaTeX2e' but I still can't figure this out. Should I maybe use a PNG image since it is a pretty basic figure? Any advice on how to properly transfer images from a word doc to .eps format and/or how to get those .eps files into LaTeX properly would be a huge help.
56267
How can I dump a specific table or set of tables without including the rest of the db tables?
68629
I am using PHP on my server to create a latex table from a database, which is working fine.  The problem I have now is getting that into my latex document.  I thought that giving it the path would allow it to get the file from the web and input it like normal but that doesn't work and I've been unable to find anything online about doing this sort of thing.  Here is an example of what I'm trying to accomplish:  \documentclass{article} \begin{document} \input{http://example.com/generated-latex.php} \end{document}
96328
I have a LaTeX table generated like this,   \begin{table}[ht] \begin{center} \begin{tabular}{rrrrrrr} \hline &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 \\  \hline 1 &amp; 181.21 &amp; 169.01 &amp; 130.03 &amp; 135.93 &amp; 142.31 &amp; 108.11 \\  2 &amp; 106.80 &amp; 130.71 &amp; 186.43 &amp; 126.46 &amp; 167.28 &amp; 137.91 \\  3 &amp; 162.69 &amp; 198.98 &amp; 188.33 &amp; 184.30 &amp; 147.02 &amp; 197.38 \\  4 &amp; 132.42 &amp; 150.50 &amp; 148.69 &amp; 134.31 &amp; 129.52 &amp; 172.72 \\  \hline \end{tabular} \end{center} \end{table}   but when i compile it in MiKTeX I am getting the following error   ! Undefined control sequence. l.1 \begin           {table}[ht] ?  Process interrupted by user   I want a table generated from this i am compiling under pdfTeX. I am using LaTeX for first time, can anyone please give a suggestion?