1

Someone gave a solution on a topic: Nested boxes around cells in a table

But its solution is in standalone mode. The same can be done in "article" mode.

  • 2
    What is your question? – Mico Mar 29 '17 at 15:15
  • 2
    Very simple ... instead \documentclass[border=3mm, tikz,preview]{standalone} \usetikzlibrary{fit,matrix} use \documentclass{article} \usepackage{tikz}\usetikzlibrary{fit,matrix} – Zarko Mar 29 '17 at 15:51

1 Answers1

1

Very simple ... instead

\documentclass[border=3mm, tikz, preview]{standalone} 
\usetikzlibrary{fit, matrix} 

use

\documentclass{article} 
\usepackage{tikz}
\usetikzlibrary{fit, matrix}

As is said in package abstract:

A class and package is provided which allows TEX pictures or other TEX code to be compiled standalone or as part of a main document. Special support for pictures with beamer overlays is also provided.

The package is used in the main document and skips extra preambles in sub-files. The class may be used to simplify the preamble in sub-files. By default the preview package is used to display the typeset code without margins.

document class and packages are very handy to write examples as it is done in my answer here. It is good idea to become familiar with this package. Is is very useful to draw images in LaTeX which code you later include in your document or include generated images with includegraphics{...} . Here, on the site is quite extensively used for this purposes.

Zarko
  • 296,517