Graphics, Figures & Tables\footnotesize doesn't work properly in TikZ figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

\footnotesize doesn't work properly in TikZ figure

Post by drgz »

I have a TikZ figure for which many of the nodes hold text which I want to be in \footnotesize. But for some reason, when compiling, the text isn't in the desired size at all; as if LaTeX just ignores the commands.

Strangly enough, this did work while making the figure, but now suddenly out of the blue, I can't get it to work again, and I really don't know what has happened since the last time it did work.

I've attached the code for the TikZ figure, and also the document I use when drawing figures (I probably load more TikZ libraries than I need, but since I often use the same document for compiling TikZ graphics, the number of libraries have just gathered up).

Code: Select all

Code, edit and compile here:
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{xcolor}
\usepackage{float}
\usepackage{siunitx}
\newcommand\hmmax{0} % default 3
\usepackage{bm}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}
\usetikzlibrary{decorations.pathmorphing}
\usepgflibrary{decorations.pathreplacing}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\usetikzlibrary{shapes}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{patterns}
\usepackage[siunitx,european,americanresistors]{circuitikz}
\begin{document}
\thispagestyle{empty}
\begin{figure}[ht]
\centering
\input{meas_setup_loadpull.tikz}
\end{figure}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Code: Select all

Code, edit and compile here:
\tikzstyle{branch} = [circle, inner sep = 0pt, minimum size = 0.5mm, fill = black, draw = black]
\tikzstyle{cyl} = [cylinder, shape border rotate = 90,draw = black]
\tikzstyle{circ} = [draw, circle, inner sep = 0mm, minimum size = 1mm, semithick]
\tikzstyle{circL} = [draw, circle, inner sep = 0mm, minimum size = 0.8cm, semithick]
\tikzstyle{connector} = [->,thick]
\tikzstyle{snakeline} = [connector, decorate, decoration={pre length=0.2cm,
post length=0.2cm, snake, amplitude=.8mm,
segment length=2mm},semithick,->]
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}
\begin{tikzpicture}[semithick,>=latex']
\draw[semithick] (10,5) -- (14,5) -- (14,4) -- (10,4) -- cycle;
\node[] at (12,4.5) {\footnotesize PC w/ MATLAB};
\draw[semithick] (10,3) -- (14,3) -- (14,2) -- (10,2) -- cycle;
\node[] at (12,2.5) {\footnotesize $\begin{matrix}\text{VTD SWAP-X402}\\\text{Time--domain receiver}\end{matrix}$};
\draw[semithick] (15.25,5) -- (17.65,5) -- (17.65,4) -- (15.25,4) -- cycle;
\node[] at (16.45,4.5) {\footnotesize $\begin{matrix}\text{R\&S}\\\text{FSQ40}\\\text{Spectrum analyzer}\end{matrix}$};
\draw[semithick] (15.25,3) -- (17.65,3) -- (17.65,2) -- (15.25,2) -- cycle;
\node[] at (16.45,2.5) {\footnotesize $\begin{matrix}\text{Output block:}\\\text{bias tee, coupler,}\\\text{attenuator}\end{matrix}$};
\begin{pgfonlayer}{foreground}
\draw[semithick,fill=white] (15.7,1) -- (17.2,1) -- (17.2,0) -- (15.7,0) -- cycle;
\node[] at (16.45,0.5) {\large$\boldsymbol{\Gamma}$\footnotesize $_\text{L}$};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
\draw[semithick,->] (15.7,-0.2) -- (17.2,1.2);
\end{pgfonlayer}
\node[] at (18,0.5) {\footnotesize$\begin{matrix}\text{FMW}\\\text{MPT--1820}\end{matrix}$};
\draw[semithick] (8.75,5) -- (6.35,5) -- (6.35,4) -- (8.75,4) -- cycle;
\node[] at (7.55,4.5) {\footnotesize $\begin{matrix}\text{R\&S}\\\text{SMU200A}\\\text{Signal generator}\end{matrix}$};
\draw[semithick] (8.75,3) -- (6.35,3) -- (6.35,2) -- (8.75,2) -- cycle;
\node[] at (7.55,2.5) {\footnotesize $\begin{matrix}\text{Input block:}\\\text{drivers, circulator,}\\\text{coupler, bias tee}\end{matrix}$};
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Any hints?

Best regards,
dm

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply