I'd like to define the font size in a standalone
document so that it is identical to the one in my "real" big document.
I have several standalone
-documents. In those, I'd like to implement an option which makes the standalone-documents simply adhere to what is written in font-config.tex
(see MWE)–which is currently empty.
(In my main document, I of course define the size as an option for the documentclass (scrreprt), but I am a bit clueless what to do here since standalone does not take \KOMAoptions
obviously.)
What should I write into font-config.tex
so that it basically mimics whatever I define for my real document?
MWE
\documentclass[
12pt
]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\input{font-config}
%\KOMAoptions{fontsize=11pt}
\usepackage{
tikz,
}
\begin{document}
\begin{tikzpicture}[font=\small]
\draw
(0,0) coordinate (A)
(1,1) coordinate (B)
;
\draw[thick] (A) rectangle (B) node[anchor=south west, align=left] {Words abc.\\Test.};
\end{tikzpicture}
\end{document}
Best Answer
standalone
usesarticle
as its 'base' class, but you can change this with theclass=<classname>
option. Hence, you could tellstandalone
to use a KOMA class withYou can then use the
\KOMAoptions
directly in yourstandalone
files, place it in thefont-config
file, or add thefontsize
declaration to the class options directly.