%%MUST convert nigeria-flag.svg to nigeria-flag.png
\input color
%%Should use phone-pdf?
\let\ifphonepdf\iftrue

%font streamlining
\newcount\spacing
\newdimen\size
\def\adjs{%adjust spacing
  \baselineskip=\size \multiply\baselineskip by \spacing \divide\baselineskip by 100 \multiply\baselineskip by 6 \divide\baselineskip by 5%6/5 = normal 1.2 addition for character depth
}
\def\newfont#1=#2@#3pt{%name, base, size
  \expandafter\font\csname x#1\endcsname=#2 at #3pt
  \expandafter\edef\csname #1\endcsname{\size=#3pt \adjs \csname x#1\endcsname}
}

%Actual Fonts
\newfont{tenit}=ptmri7t@10pt
\newfont{twelverm}=ptmr7t@12pt
\newfont{twelvebf}=ptmb7t@12pt
\newfont{twelveit}=ptmri7t@12pt
\newfont{fourteenbf}=ptmb7t@14pt
\fourteenbf

%content-centred definitions
\def\href#1#2{%visual, url
  \pdfstartlink
    user{/Subtype /Link
    /A <<
      /Type /Action
      /S /URI
      /URI (#2)
    >>}%
    {\color{blue} \underbar{#1}}%
  \pdfendlink
}

\def\prebullet#1{\hbox to 0in{\hss\hbox to .5in{\hfil$#1$\hfil}}}%.5in box for bullet (#1) in lists
\def\site#1---#2@#3{{%visual, description, url
  \leavevmode%
  \leftskip=.5in \twelverm%
  \prebullet{\bullet}\href{#1}{#3}\thinspace---\thinspace#2%
  \par%
}}
\def\detail#1{{%text
  \leavevmode%
  \leftskip=1in\tenit
  \prebullet{\diamond}#1
  \par%
}}

%%Specific Looks
\parindent=0in %beginning of list shouldn't be indented
\spacing=150 %1.5 spaced

%%Phone-Sized PDF
\ifphonepdf
  \magnification=\magstep2
  \raggedright
  \spacing=100
\fi
\fourteenbf

%%Title
{\leftskip=0pt plus 1fil \rightskip=0pt plus 1fil %center all items in list
  \centerline{Nigeria (GTMUN 2019)}
  \bigskip
  \centerline{\pdfximage width .8\hsize{model-un/nigeria-flag.png}\pdfrefximage\pdflastximage}
}

%%Content
Generally Helpful Links:
\site CIA Factbook---Basic Facts and Statistics with a slight Western bias@{https://cia.gov/library/publications/the-world-factbook/geos/ni.html}
  \detail{This website can aid in finding general information.}
\site Nigeria's Ministry of Foreign Affairs---Firsthand information about recent events and foreign policies affecting Nigeria (loads slowly)@{https://foreignaffairs.gov.ng}

\bye
