Unterabschnitt Schriftgröße

Unterabschnitt Schriftgröße

Ich arbeite an einem Projekt, das in Abschnitte und Unterabschnitte unterteilt ist. Im ersten Unterabschnitt wird die Textgröße automatisch kleiner, im zweiten jedoch nicht, und ich verstehe nicht, warum.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage[normalem]{ulem}
\usepackage{bm}
\usepackage[absolute,overlay]{textpos}
\usepackage{hyperref}

\hypersetup{colorlinks=true, linkcolor=black}

\usepackage{tikz}
\usepackage{graphicx}
\usepackage{karnaugh-map}
\usepackage[dvipsnames]{xcolor}

\newcommand{\cwave}[2]{
    \textcolor{#1}{\uwave{\textcolor{black}{#2}}}
}
\newcommand{\minr}[1]{\textcolor{PineGreen}{\bm{#1}}}
\newcommand{\per}[1]{\stackrel{\textcolor{red}{\textit{\textbf{#1}}}}{=}}


\usepackage{comment}

\usetikzlibrary{arrows,shapes.gates.logic.US,shapes.gates.logic.IEC,calc}
\tikzstyle{branch}=[fill,shape=circle,minimum size=3pt,inner sep=0pt]

\begin{document}
    
    \section{Individuazione della funzione Booleana}
    \subsection{Minterm}
    Evidenziamo i termini minimi della funzione $f(x, y, z, w)$ appena identificata. \\
    
    \begin{center}
        \scalebox{1.30}{%
            \begin{tabular}{c | c || c c c c || c}
                & & $x$ & $y$ & $z$ & $w$ & $f(x, y, z, w)$ \\
                \hline
                \color{PineGreen}\boldmath$m_0$ & $\color{PineGreen}\overline{x}\:\overline{y}\:\overline{z}\:\overline{w}$ & 0 & 0 & 0 & 0 & \color{PineGreen}\textbf{1} \\
                $m_1$ & $\overline{x}\:\overline{y}\:\overline{z}\:w$ & 0 & 0 & 0 & 1 & 0 \\
                \color{PineGreen}\boldmath$m_2$ & $\color{PineGreen}\overline{x}\:\overline{y}\:z\:\overline{w}$ & 0 & 0 & 1 & 0 & \color{PineGreen}\textbf{1} \\
                $m_3$ & $\overline{x}\:\overline{y}\:z\:w$ & 0 & 0 & 1 & 1 & 0 \\
                $m_4$ & $\overline{x}\:y\:\overline{z}\:\overline{w}$ & 0 & 1 & 0 & 0 & 0 \\
                \color{PineGreen}\boldmath$m_5$ & $\color{PineGreen}\overline{x}\:y\:\overline{z}\:w$ & 0 & 1 & 0 & 1 & \color{PineGreen}\textbf{1} \\
                \color{PineGreen}\boldmath$m_6$ & $\color{PineGreen}\overline{x}\:y\:z\:\overline{w}$ & 0 & 1 & 1 & 0 & \color{PineGreen}\textbf{1} \\
                $m_7$ & $\overline{x}\:y\:z\:w$ & 0 & 1 & 1 & 1 & 0 \\
                $m_8$ & $x\:\overline{y}\:\overline{z}\:\overline{w}$ & 1 & 0 & 0 & 0 & 0 \\
                \color{PineGreen}\boldmath$m_9$ & $\color{PineGreen}x\:\overline{y}\:\overline{z}\:w$ & 1 & 0 & 0 & 1 & \color{PineGreen}\textbf{1} \\
                $m_{10}$ & $x\:\overline{y}\:z\:\overline{w}$ & 1 & 0 & 1 & 0 & 0 \\
                \color{PineGreen}\boldmath$m_{11}$ & $\color{PineGreen}x\:\overline{y}\:z\:w$ & 1 & 0 & 1 & 1 & \color{PineGreen}\textbf{1} \\
                \color{PineGreen}\boldmath$m_{12}$ & $\color{PineGreen}x\:y\:\overline{z}\:\overline{w}$ & 1 & 1 & 0 & 0 & \color{PineGreen}\textbf{1} \\
                \color{PineGreen}\boldmath$m_{13}$ & $\color{PineGreen}x\:y\:\overline{z}\:w$ & 1 & 1 & 0 & 1 & \color{PineGreen}\textbf{1} \\
                $m_{14}$ & $x\:y\:z\:\overline{w}$ & 1 & 1 & 1 & 0 & 0 \\
                $m_{15}$ & $x\:y\:z\:w$ & 1 & 1 & 1 & 1 & 0 \\
                
        \end{tabular}}
    \end{center}
    
    \hspace*{-0.64cm} Per ottenere la forma canonica della funzione prendo le quaterne in cui \\ la funzione vale 1. \\ \\
    La funzione può essere quindi espressa come somma di prodotti ed è pari a: \\
    
    
    \hspace*{-2.70cm} \scalebox{1.2}{%
        $\bm{f(x, y, z, w)}= \overline{x}\:\overline{y}\:\overline{z}\:\overline{w} + \overline{x}\:\overline{y}\:z\:\overline{w} + \overline{x}\:y\:\overline{z}\:w + \overline{x}\:y\:z\:\overline{w} + x\:\overline{y}\:\overline{z}\:w + x\:\overline{y}\:z\:w + x\:y\:\overline{z}\:\overline{w} + x\:y\:\overline{z}\:w$
    }
    
    \newpage
    
    
    \hspace*{-0.64cm} Per ottenere la forma canonica della funzione prendo le quaterne in cui \\ la funzione vale 0. \\ \\
    La funzione può essere quindi espressa come prodotti di somme ed è pari a: 
    
    
    \large\vspace*{-0.50cm}\begin{align*}
        \hspace*{-1.50cm}\bm{f(x, y, z, w)} &= (x+y+z+\overline{w}) \cdot (x+y+\overline{z}+\overline{w}) \cdot (x+\overline{y}+z+w) \cdot (x+\overline{y}+\overline{z}+\overline{w}) \cdot \\
        &\hspace*{0.58cm}(\overline{x}+y+z+w) \cdot (\overline{x}+y+\overline{z}+w) \cdot (\overline{x}+\overline{y}+\overline{z}+w) \cdot (\overline{x}+\overline{y}+\overline{z}+\overline{w})
    \end{align*}
    
    \newpage
    \section{Semplificazione}
    \subsection{Semplificazione algebrica minterm}Adesso effettuo la semplificazione della forma canonica della funzione espressa dai minterm.
    La \cwave{PineGreen}{sottolineatura} evidenzia i termini ai quali verrà applicato un teorema o un assioma, che verrà indicato alla fine della riga.
    Il risultato viene evidenziato in \textcolor{PineGreen}{\textbf{verde}}.\\
    
    \begin{align*}
        \hspace*{-2.0cm}\bm{f(x, y, z, w)}= & \:\overline{x}\:\overline{y}\:\overline{z}\:\overline{w} + \cwave{PineGreen}{\overline{x}\:\overline{y}\:z\:\overline{w}} + \overline{x}\:y\:\overline{z}\:w + \cwave{PineGreen}{\overline{x}\:y\:z\:\overline{w}} + x\:\overline{y}\:\overline{z}\:w + x\:\overline{y}\:z\:w + x\:y\:\overline{z}\:\overline{w} + x\:y\:\overline{z}\:w \per{A6} \\
        %
        & =  \overline{x}\:\overline{y}\:\overline{z}\:\overline{w} + \minr{\overline{x}\:z\:\overline{w}\cwave{PineGreen}{\textcolor{PineGreen}{(\overline{y}+y)}}} + \overline{x}\:y\:\overline{z}\:w + x\:\overline{y}\:\overline{z}\:w + x\:\overline{y}\:z\:w + x\:y\:\overline{z}\:\overline{w} + x\:y\:\overline{z}\:w \per{A7} \\
        %
        & = \overline{x}\:\overline{y}\:\overline{z}\:\overline{w} + \cwave{PineGreen}{\overline{x}\:z\:\overline{w}*\minr{1}} + \overline{x}\:y\:\overline{z}\:w + x\:\overline{y}\:\overline{z}\:w + x\:\overline{y}\:z\:w + x\:y\:\overline{z}\:\overline{w} + x\:y\:\overline{z}\:w \per{A3} \\
        %
        & = \overline{x}\:\overline{y}\:\overline{z}\:\overline{w} + \minr{\overline{x}\:z\:\overline{w}} + \cwave{PineGreen}{\overline{x}\:y\:\overline{z}\:w} + x\:\overline{y}\:\overline{z}\:w + x\:\overline{y}\:z\:w + x\:y\:\overline{z}\:\overline{w} + \cwave{PineGreen}{x\:y\:\overline{z}\:w} \per{A6} \\
        %
        & = \overline{x}\:\overline{y}\:\overline{z}\:\overline{w} + \overline{x}\:z\:\overline{w} + \minr{y\:\overline{z}\:w\cwave{PineGreen}{\textcolor{PineGreen}{(\overline{x}+x)}}} + x\:\overline{y}\:\overline{z}\:w + x\:\overline{y}\:z\:w + x\:y\:\overline{z}\:\overline{w} \per{A7} \\
        %
    \end{align*}
    
    
\end{document}

Das ist die Schriftgröße, die ich möchte

Bildbeschreibung hier eingeben

Dies ist die Schriftgröße, die ich bekomme

Bildbeschreibung hier eingeben

Antwort1

Tut mir leid, aber Sie begehen zu viele Anfängersünden.

  1. Skalieren Sie niemals Tabellen oder Gleichungen

  2. Verwenden Sie es niemals \\zum manuellen Unterbrechen von Zeilen, es sei denn, es ist erforderlich, z. B. in alignoder ähnlichen Umgebungen.

  3. Verwenden Sie keine geschätzten Abstandsanweisungen.

  4. Absätze werden in der Eingabe mit einer Leerzeile abgeschlossen; lassen Sie in der Ausgabe keine „Leerzeilen“: Die Einrückung ist ausreichend.

  5. Vermeiden Sie „nackte“ \largeAnweisungen: Es handelt sich um eine Deklaration, die nur durch den Umfang begrenzt ist, in dem sie ausgeführt wird.

  6. Lange Formeln können auf verschiedene Weise aufgeteilt werden. Achten Sie darauf, dass sie nicht die Ränder ausfüllen.

  7. Achten Sie auf unnütze Leerzeichen im Definitionstext.

  8. \tikzstyleist seit einigen Jahren veraltet (ich würde sagen, mehr als fünf).

\documentclass{article}
%\usepackage[utf8]{inputenc}% no longer needed
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage[normalem]{ulem}
\usepackage{bm}
\usepackage[absolute,overlay]{textpos}

\usepackage{tikz}
\usetikzlibrary{arrows,shapes.gates.logic.US,shapes.gates.logic.IEC,calc}
\usepackage{graphicx}
\usepackage{karnaugh-map}
\usepackage[dvipsnames]{xcolor}

\newcommand{\cwave}[2]{% <-- don't forget
    \textcolor{#1}{\uwave{\textcolor{black}{#2}}}% <-- don't forget
}
\newcommand{\minr}[1]{\textcolor{PineGreen}{\bm{#1}}}
\newcommand{\per}[1]{\stackrel{\textcolor{red}{\textit{\textbf{#1}}}}{=}}


\usepackage{comment}

\usepackage{hyperref}

\hypersetup{colorlinks=true, linkcolor=black}

\tikzset{
  branch/.style={
    fill,
    shape=circle,
    minimum size=3pt,
    inner sep=0pt,
  },
}


\begin{document}
    
\section{Individuazione della funzione Booleana}

\subsection{Minterm}

Evidenziamo i termini minimi della funzione $f(x, y, z, w)$ appena identificata.
    
\begin{center}
\begin{tabular}{c | c || c c c c || c}
& & $x$ & $y$ & $z$ & $w$ & $f(x, y, z, w)$ \\
\hline
\color{PineGreen}\boldmath$m_0$ &
  $\color{PineGreen}\overline{x}\:\overline{y}\:\overline{z}\:\overline{w}$ &
  0 & 0 & 0 & 0 & \color{PineGreen}\textbf{1}
\\
$m_1$ &
  $\overline{x}\:\overline{y}\:\overline{z}\:w$ &
  0 & 0 & 0 & 1 & 0
\\
\color{PineGreen}\boldmath$m_2$ &
  $\color{PineGreen}\overline{x}\:\overline{y}\:z\:\overline{w}$ &
  0 & 0 & 1 & 0 & \color{PineGreen}\textbf{1}
\\
$m_3$ &
  $\overline{x}\:\overline{y}\:z\:w$ &
  0 & 0 & 1 & 1 & 0
\\
$m_4$ &
  $\overline{x}\:y\:\overline{z}\:\overline{w}$ &
  0 & 1 & 0 & 0 & 0
\\
\color{PineGreen}\boldmath$m_5$ &
  $\color{PineGreen}\overline{x}\:y\:\overline{z}\:w$ &
  0 & 1 & 0 & 1 & \color{PineGreen}\textbf{1}
\\
\color{PineGreen}\boldmath$m_6$ &
  $\color{PineGreen}\overline{x}\:y\:z\:\overline{w}$ &
  0 & 1 & 1 & 0 & \color{PineGreen}\textbf{1}
\\
$m_7$ &
  $\overline{x}\:y\:z\:w$ &
  0 & 1 & 1 & 1 & 0
\\
$m_8$ &
  $x\:\overline{y}\:\overline{z}\:\overline{w}$ &
  1 & 0 & 0 & 0 & 0
\\
\color{PineGreen}\boldmath$m_9$ &
  $\color{PineGreen}x\:\overline{y}\:\overline{z}\:w$ &
  1 & 0 & 0 & 1 & \color{PineGreen}\textbf{1}
\\
$m_{10}$ &
  $x\:\overline{y}\:z\:\overline{w}$ &
  1 & 0 & 1 & 0 & 0
\\
\color{PineGreen}\boldmath$m_{11}$ &
  $\color{PineGreen}x\:\overline{y}\:z\:w$ &
  1 & 0 & 1 & 1 & \color{PineGreen}\textbf{1}
\\
\color{PineGreen}\boldmath$m_{12}$ &
  $\color{PineGreen}x\:y\:\overline{z}\:\overline{w}$ &
  1 & 1 & 0 & 0 & \color{PineGreen}\textbf{1}
\\
\color{PineGreen}\boldmath$m_{13}$ &
  $\color{PineGreen}x\:y\:\overline{z}\:w$ &
  1 & 1 & 0 & 1 & \color{PineGreen}\textbf{1}
\\
$m_{14}$ &
  $x\:y\:z\:\overline{w}$ &
  1 & 1 & 1 & 0 & 0 \\
$m_{15}$ &
  $x\:y\:z\:w$ &
  1 & 1 & 1 & 1 & 0
\end{tabular}
\end{center}
    
Per ottenere la forma canonica della funzione prendo le quaterne in cui la funzione vale~$1$.

La funzione può essere quindi espressa come somma di prodotti ed è pari a:
\begin{equation*}
\begin{split}
\bm{f(x, y, z, w)}
 &= \overline{x}\:\overline{y}\:\overline{z}\:\overline{w}
  + \overline{x}\:\overline{y}\:z\:\overline{w}
  + \overline{x}\:y\:\overline{z}\:w
  + \overline{x}\:y\:z\:\overline{w}
\\
 &\qquad
  + x\:\overline{y}\:\overline{z}\:w
  + x\:\overline{y}\:z\:w
  + x\:y\:\overline{z}\:\overline{w}
  + x\:y\:\overline{z}\:w
\end{split}
\end{equation*}

Per ottenere la forma canonica della funzione prendo le quaterne in cui la funzione vale~$0$.

La funzione può essere quindi espressa come prodotti di somme ed è pari a: 
\begin{equation*}
\begin{split}
\bm{f(x, y, z, w)}
  &= (x+y+z+\overline{w})
   \cdot (x+y+\overline{z}+\overline{w})
   \cdot (x+\overline{y}+z+w)
\\
  &\qquad
   \cdot (x+\overline{y}+\overline{z}+\overline{w})
   \cdot (\overline{x}+y+z+w)
   \cdot (\overline{x}+y+\overline{z}+w)
\\
  &\qquad
   \cdot (\overline{x}+\overline{y}+\overline{z}+w)
   \cdot (\overline{x}+\overline{y}+\overline{z}+\overline{w})
\end{split}
\end{equation*}
    
\section{Semplificazione}

\subsection{Semplificazione algebrica minterm}

Adesso effettuo la semplificazione della forma canonica della funzione espressa dai minterm.
La \cwave{PineGreen}{sottolineatura} evidenzia i termini ai quali verrà applicato un 
teorema o un assioma, che verrà indicato alla fine della riga.
Il risultato viene evidenziato in \textcolor{PineGreen}{\textbf{verde}}.
\begin{align*}
\bm{f(x, y, z, w)}
  &= \overline{x}\:\overline{y}\:\overline{z}\:\overline{w}
   + \cwave{PineGreen}{\overline{x}\:\overline{y}\:z\:\overline{w}}
   + \overline{x}\:y\:\overline{z}\:w
   + \cwave{PineGreen}{\overline{x}\:y\:z\:\overline{w}}
\\
  &\qquad
   + x\:\overline{y}\:\overline{z}\:w
   + x\:\overline{y}\:z\:w
   + x\:y\:\overline{z}\:\overline{w}
   + x\:y\:\overline{z}\:w
\\
  &\per{A6}
     \overline{x}\:\overline{y}\:\overline{z}\:\overline{w}
   + \minr{\overline{x}\:z\:\overline{w}
     \cwave{PineGreen}{\textcolor{PineGreen}{(\overline{y}+y)}}}
   + \overline{x}\:y\:\overline{z}\:w
   + x\:\overline{y}\:\overline{z}\:w
\\
  &\qquad
   + x\:\overline{y}\:z\:w
   + x\:y\:\overline{z}\:\overline{w}
   + x\:y\:\overline{z}\:w 
\\
  &\per{A7}
     \overline{x}\:\overline{y}\:\overline{z}\:\overline{w}
   + \cwave{PineGreen}{\overline{x}\:z\:\overline{w}*\minr{1}}
   + \overline{x}\:y\:\overline{z}\:w
   + x\:\overline{y}\:\overline{z}\:w
\\
  &\qquad
   + x\:\overline{y}\:z\:w
   + x\:y\:\overline{z}\:\overline{w}
   + x\:y\:\overline{z}\:w
\\
  &\per{A3}
     \overline{x}\:\overline{y}\:\overline{z}\:\overline{w}
   + \minr{\overline{x}\:z\:\overline{w}}
   + \cwave{PineGreen}{\overline{x}\:y\:\overline{z}\:w}
   + x\:\overline{y}\:\overline{z}\:w
\\
  &\qquad
   + x\:\overline{y}\:z\:w
   + x\:y\:\overline{z}\:\overline{w}
   + \cwave{PineGreen}{x\:y\:\overline{z}\:w}
\\
  &\per{A6}
     \overline{x}\:\overline{y}\:\overline{z}\:\overline{w}
   + \overline{x}\:z\:\overline{w}
   + \minr{y\:\overline{z}\:w\cwave{PineGreen}{\textcolor{PineGreen}{(\overline{x}+x)}}}
\\
  &\qquad
   + x\:\overline{y}\:\overline{z}\:w
   + x\:\overline{y}\:z\:w
   + x\:y\:\overline{z}\:\overline{w}
\\
  &\per{A7}
\end{align*}    
    
\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen