Information and discussion about graphics, figures & tables in LaTeX documents.
ubuntu2014
Posts: 29 Joined: Mon Oct 06, 2014 12:42 am
Post
by ubuntu2014 » Mon Oct 06, 2014 12:48 am
Hello.
I have made a table in
LaTeX
Here is the code :
Code: Select all
\documentclass{beamer}
\begin{document}
\begin{tabular}{| l | c | c | r |}
\hline
&6&4& \\ \hline 2&8&1&7 \\ \hline &5&3& \\\hline
\end{tabular}
\end{document}
In this table I just want to omit the empty square boxes.
How do I do that ?
Please see the attachment.
CodeCogsEqn.gif (874 Bytes) Viewed 4548 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide : 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook : 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ : the first book about TikZ for perfect drawings in your LaTeX thesis
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Mon Oct 06, 2014 9:34 am
You can do this using a tabular environment and a bit of trickery, but i somehow have the feeling that you might be better off with Ti
k Z.
Code: Select all
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{| l | c | c | r |}
\cline{2-3}
\multicolumn{1}{c|}{} &6&4&\multicolumn{1}{c}{}
\\ \hline 2&8&1&7 \\ \hline
\multicolumn{1}{c|}{} &5&3&
\multicolumn{1}{c}{}\\\cline{2-3}
\end{tabular}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ubuntu2014
Posts: 29 Joined: Mon Oct 06, 2014 12:42 am
Post
by ubuntu2014 » Mon Oct 06, 2014 1:33 pm
Thankyou.
It works perfectly if I make a document but how to put this on codecogs.com ? Am I missing a trick or codecogs doesn't support LaTeX ?
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Tue Oct 07, 2014 8:50 am
As far as i can tell from a quick look, codecog is some kind of online LaTeX equation editor.
So, the question coming to my mind is: What do you want to do?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ubuntu2014
Posts: 29 Joined: Mon Oct 06, 2014 12:42 am
Post
by ubuntu2014 » Sun Nov 02, 2014 10:44 pm
Actually, I want to put this code on that website, codecogs.com and then I want to download it in the form of a transparent image so that I can easily use it in other places.
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Mon Nov 03, 2014 9:06 am
Use the standalone class along with its conversion option. You need to have a converter instaled on your system, the default
looking place is Image Magick, which is free software. Result is the attached png. More details on options of the conversion can be found in the documentations.
Code: Select all
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{| l | c | c | r |}
\cline{2-3}
\multicolumn{1}{c|}{} &6&4&\multicolumn{1}{c}{}
\\ \hline 2&8&1&7 \\ \hline
\multicolumn{1}{c|}{} &5&3&
\multicolumn{1}{c}{}\\\cline{2-3}
\end{tabular}
\end{document}
Attachments
ubuntuTabularExportPng.png (2.55 KiB) Viewed 4405 times
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.