ivankokan / Excel2LaTeX

The Excel add-in for creating LaTeX tables
Other
1.27k stars 147 forks source link

How to fill in caption? #14

Closed enoordam closed 8 years ago

enoordam commented 8 years ago

How can you get Excel2LaTeX to fill in the caption automatically? I can't seem to figure this out. I don't want to have to manually edit the output each time.

krlmlr commented 8 years ago

Can you write a .tex file generated.tex and include it via \input{}, like this:

\begin{table}
  \input{generated}
  \caption{Your caption}
\end{table}

?

enoordam commented 8 years ago

Yes I realize now that's the best way to do it, just export without the table environment. Thanks!

-------- Original Message -------- From: "Kirill Müller" notifications@github.com Sent: October 25, 2016 3:29:37 AM PDT To: krlmlr/Excel2LaTeX Excel2LaTeX@noreply.github.com Cc: enoordam eric.noordam@gmail.com, Author author@noreply.github.com Subject: Re: [krlmlr/Excel2LaTeX] How to fill in caption? (#14)

Can you write a .tex file generated.tex and include it via \input{}, like this:

\begin{table}
  \input{generated}
  \caption{Your caption}
\end{table}

?

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/krlmlr/Excel2LaTeX/issues/14#issuecomment-255998229

Sent from my phone. Please excuse my brevity.

chenqiuyuan commented 4 years ago

I think it will be more elegant if we can choose to fill the caption and the label.

Maybe an easy workaround is to enable editing the results in the box (or something like a template).