TransWikia.com

Change fontsize on birthdays in genealogytree

TeX - LaTeX Asked by Erik Vind Frost on March 22, 2021

I can’t make the birthdays and birth place typed in example Huge fontsize. Please help.

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=hugebfseries,
    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}

One Answer

The place text and event text keys can be used to change the format.

  place text={newlineHuge}{},
  event text={Huge}{~}{ }{},

which are separated in pre and app and separator etc. (see page 179 of the current genealogytree manual, for example)

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=hugebfseries,
  place text={newlineHuge}{},
  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}

enter image description here

Answered by user31729 on March 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP