更改家谱树中生日的字体大小

更改家谱树中生日的字体大小

我无法输入生日和出生地,例如字体太大。请帮忙。

\documentclass{article}
\usepackage{graphicx}
\usepackage[all]{genealogytree}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern} % Pænere danske bogstaver
\usepackage{pslatex} % Giver pænere font
\usepackage[space]{grffile}
\usepackage[danish]{babel}
  \begin{document}
     \begin{genealogypicture}[
    timeflow=up,
    processing=database,
    database format=medium no marriage,
    node size=6cm,   % width of nodes
    level size=7cm,              % height of nodes
    level distance=3cm,          % generation distance
    list separators hang,
  name font=\huge\bfseries,
    place text={\newline}{},
    date format=d-m-yyyy,
                             % redefine default setting for female,male,neuter:
    tcbset={
      female/.style={colback=red!20,arc=1mm},
      male/.style={colback=blue!20,sharp corners},
    },
    % node settings
    box={fit basedim=7pt,boxsep=2pt,segmentation style=solid,
    halign=left,fontlower=\Huge,fontupper=\Huge,before upper=\parskip10pt,
    \gtrDBsex,drop fuzzy shadow,
    },
    % edge settings
    edges={foreground={black,line width=1mm},    
           background={white,line width=2mm}},
  %Marriage-notes
           label database options={place text={(}{)}},
 label options={fill=green!20,node font=\large,inner     sep=0.5mm,draw=green!30!black,sloped,anchor=south,auto=true},
  ]
    %%%%%% the graph %%%%%%
    sandclock{
    child[id=migkirsten,family database={marriage={1961-08-22}{Langelund}}]{
      g[id=mig]{
      male,
      name={Anders },
      birth={1937-02-17}{Biltoft}
      }
   p[id=kirsten]{
      female,
      name={Kirsten \pref{(f. Pedersen)}{}},
      birth={1941-03-14}{Oksbøl}
      }
      c[id=anne]{
          female,
          name={Anne {Sjælland}},
          birth={1962-01-17}{}
          }
          }
          }
\end{genealogypicture}
\end{document}

答案1

place textevent text可用于更改格式。

  place text={\newline\Huge}{},
  event text={\Huge}{~}{ }{},

pre它们以和app等分隔(例如,separator参见当前手册的第 179 页)genealogytree

\documentclass{article}
\usepackage{graphicx}
\usepackage[all]{genealogytree}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern} % Pænere danske bogstaver
\usepackage{pslatex} % Giver pænere font
\usepackage[space]{grffile}
\usepackage[danish]{babel}
  \begin{document}
     \begin{genealogypicture}[
    timeflow=up,
    processing=database,
    database format=medium no marriage,
    node size=6cm,   % width of nodes
    level size=7cm,              % height of nodes
    level distance=3cm,          % generation distance
    list separators hang,
  name font=\huge\bfseries,
  place text={\newline\Huge}{},
  event text={\Huge}{~}{}{},
  date format=d-m-yyyy,
  % redefine default setting for female,male,neuter:
    tcbset={
      female/.style={colback=red!20,arc=1mm},
      male/.style={colback=blue!20,sharp corners},
    },
    % node settings
    box={fit basedim=7pt,boxsep=2pt,segmentation style=solid,
    halign=left,fontlower=\Huge,fontupper=\Huge,before upper=\parskip10pt,
    \gtrDBsex,drop fuzzy shadow,
    },
    % edge settings
    edges={foreground={black,line width=1mm},    
           background={white,line width=2mm}},
  %Marriage-notes
           label database options={place text={(}{)}},
 label options={fill=green!20,node font=\large,inner     sep=0.5mm,draw=green!30!black,sloped,anchor=south,auto=true},
  ]
    %%%%%% the graph %%%%%%
    sandclock{
    child[id=migkirsten,family database={marriage={1961-08-22}{Langelund}}]{
      g[id=mig]{
      male,
      name={Anders },
      birth={1937-02-17}{Biltoft}
      }
   p[id=kirsten]{
      female,
      name={Kirsten \pref{(f. Pedersen)}{}},
      birth={1941-03-14}{Oksbøl}
      }
      c[id=anne]{
          female,
          name={Anne {Sjælland}},
          birth={1962-01-17}{}
          }
          }
          }
\end{genealogypicture}
\end{document}

在此处输入图片描述

相关内容