Cecil Westerhof

2020-05-27 17:42:35 UTC

I have the following code:

\documentclass{article}

\begin{document}

\begin{table}

\begin{tabular}{|l|l|l|l|}

\hline

AD & KH & QS & JC \\

\hline

& & A & \\

\hline

& & & A \\

\hline

& A & & \\

\hline

\end{tabular}

\end{table}

\begin{table}

\begin{tabular}{|l|l|l|l|}

\hline

AD & KH & QS & JC \\

\hline

& & & A \\

\hline

& A & & \\

\hline

& & A & \\

\hline

\end{tabular}

\end{table}

\end{document}

Works reasonable, but I have two problems with it:

- I want the tables beside each-other instead of the second below the

first.

- I want a png file that exactly contains the two tables and not a

complete A4 page.

How would I accomplish this?

\documentclass{article}

\begin{document}

\begin{table}

\begin{tabular}{|l|l|l|l|}

\hline

AD & KH & QS & JC \\

\hline

& & A & \\

\hline

& & & A \\

\hline

& A & & \\

\hline

\end{tabular}

\end{table}

\begin{table}

\begin{tabular}{|l|l|l|l|}

\hline

AD & KH & QS & JC \\

\hline

& & & A \\

\hline

& A & & \\

\hline

& & A & \\

\hline

\end{tabular}

\end{table}

\end{document}

Works reasonable, but I have two problems with it:

- I want the tables beside each-other instead of the second below the

first.

- I want a png file that exactly contains the two tables and not a

complete A4 page.

How would I accomplish this?

--

Cecil Westerhof

Senior Software Engineer

LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Cecil Westerhof

Senior Software Engineer

LinkedIn: http://www.linkedin.com/in/cecilwesterhof