Setting Tikz Boarder Globally | Latex - latex

With the following Code I am able to set the boarder for current page, but how can I make the boarder available to all pages without explicitly setting it on every page.
% !TeX TS-program = xelatex % | xelatex %
\documentclass[12pt, a4paper]{article}
\usepackage[left=3.3cm,right=2.3cm,top=2.3cm,bottom=2.3cm, footskip=42pt]{geometry}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[remember picture, overlay]
\draw[line width=3pt] ($(current page.north west)+(2.5cm,-1.5cm)$) rectangle ($(current page.south east)+(-1.5cm,1.5cm)$);
\draw[line width=1pt] ($(current page.north west)+(2.6cm,-1.6cm)$) rectangle ($(current page.south east)+(-1.6cm,1.6cm)$);
\fill[red] (current page.center) circle (0.1);
\node[font=\Large\bfseries, text width=5cm,align=center] at (current page.center) {
\uppercase{Note -- 1}
\vspace{24pt}
\uppercase{Data analysis}
};
\end{tikzpicture}
\newpage
test
\end{document}

One possibility is to use the eso-pic package:
% !TeX TS-program = xelatex % | xelatex %
\documentclass[12pt, a4paper]{article}
\usepackage[left=3.3cm,right=2.3cm,top=2.3cm,bottom=2.3cm, footskip=42pt]{geometry}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{eso-pic}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[remember picture, overlay]
\draw[line width=3pt] ($(current page.north west)+(2.5cm,-1.5cm)$) rectangle ($(current page.south east)+(-1.5cm,1.5cm)$);
\draw[line width=1pt] ($(current page.north west)+(2.6cm,-1.6cm)$) rectangle ($(current page.south east)+(-1.6cm,1.6cm)$);
\end{tikzpicture}%
}
\begin{document}
\begin{tikzpicture}[remember picture, overlay]
\fill[red] (current page.center) circle (0.1);
\node[font=\Large\bfseries, text width=5cm,align=center] at (current page.center) {
\uppercase{Note -- 1}
\vspace{24pt}
\uppercase{Data analysis}
};
\end{tikzpicture}
\newpage
test
\end{document}

Related

LaTeX with overleaf editor - adding another line of text without it overlapping

I want to add another line of italic text below 'Surbiton high school'. When I add another line it just overlaps on top of what is there, instead of underneath my A-level description.
I am very new to all of this and am using a template to create my CV. Any help much appreciated!
I have included a screenshot of the CV
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{contour}
\usepackage{ulem}
\input{glyphtounicode}
%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}
% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\text{#1} & #2 \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}
\renewcommand{\ULdepth}{3pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%-----------EDUCATION-----------
\section{Education}
\resumeSubHeadingListStart
\resumeSubheading
{The University of Sussex}{Brighton, UK}
{Bachelor of Science in Economics - First Class Honours}{September 2018 -- June 2021}
\begin{itemize}
\item podcast
\end{itemize}
\resumeSubheading
{Surbiton High School}{London, UK}
{A-level Qualifications in Economics A, Mathematics A, Physics C}{September 2014 -- June 2016}
\resumeSubHeadingListEnd
Leave an empty line to start a new paragraph and then add whatever text you want (and \end{document} is missing again ...):
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{contour}
\usepackage{ulem}
\input{glyphtounicode}
%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}
% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\text{#1} & #2 \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}
\renewcommand{\ULdepth}{3pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%-----------EDUCATION-----------
\section{Education}
\resumeSubHeadingListStart
\resumeSubheading
{The University of Sussex}{Brighton, UK}
{Bachelor of Science in Economics - First Class Honours}{September 2018 -- June 2021}
\begin{itemize}
\item podcast
\end{itemize}
\resumeSubheading
{Surbiton High School}{London, UK}
{A-level Qualifications in Economics A, Mathematics A, Physics C}{September 2014 -- June 2016}
\textit{a new line}
\resumeSubHeadingListEnd
\end{document}

Latex beamer error: argument of \language#active#arg" has an extra }. \end{frame}

I'm trying to put together a presentation using latex beamer. I drew a triangle using the tikz package but I can't put the names on the angles. When executing the code, the following error appears: "Argument of \language#active#arg" has an extra }. \end{frame}"
The code is:
\documentclass[xcolor=dvipsnames,10pt,serif]{beamer} % serif, mathserif
\usepackage[english,brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}
\setbeamertemplate{caption}[numbered]
\setlength\abovecaptionskip{-3pt}
\setbeamertemplate{caption}[numbered]
\setbeamerfont{caption}{size=\scriptsize}
\usefonttheme[onlymath]{serif}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{mathrsfs}
\usepackage{icomma}
\usepackage{bm}
\usepackage{steinmetz}
\usepackage{tikz}
\usepackage{adjustbox}
\usepackage{subfigure}
\usepackage{ragged2e}
\usepackage{tkz-euclide}
\usetikzlibrary{angles,quotes,babel}
\DeclareMathOperator{\sen}{sen}
\mode<presentation>
{
\usetheme{CambridgeUS}
}
\begin{document}
\begin{frame}{Frame Title}
\begin{figure}
\begin{tikzpicture}
\coordinate (C) at (-1.5,-1);
\coordinate (A) at (1.5,-1);
\coordinate (B) at (1.5,1);
\coordinate (D) at (1.5,-3);
\node [below] at (3,-1) {$\Re$};
\node [above] at (-1.5,2) {$\Im$};
%draw cartesian plane
\draw[stealth-stealth] (-1.5,-4) -- (-1.5,2) coordinate (y axis);
\draw[-stealth] (C) -- (3,-1) coordinate (x axis);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}] (C) --
node[font=\Large,sloped,above] {$S_{abc}$} (B);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}](A) --
node[font=\Large,pos=0.7,right] {$Q_{abc}$} (B);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}](C) --
node[font=\Large,pos=0.8,above] {$P_{abc}$} (A);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}](C) --
node[font=\Large,sloped,below] {$S_{abc}$} (D);
\draw[very thick,{Stealth[length=3mm, width=1.5mm]}-](D)--
node[font=\Large,pos=0.3,right] {$-Q_{abc}$} (A) ;
\pic[thick,"$\theta$", draw=blue,-stealth, angle eccentricity=1.2, angle radius=1cm]
{angle=A--C--B};
\pic[thick,"$\theta$", draw=red, stealth-, angle eccentricity=1.2, angle radius=0.9cm]
{angle=D--C--A};
\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}
Can anybody help me?
If you have fragile content in your frame, like certain tikz pictures, use the fragile frame option.
Some other comments:
the serif class option is obsolete. A warning in the log file will tell you to use the serif font theme instead, but as you already do this, there is really no reason to use this class option
if your tex distribution isn't terrible outdated, you no longer need \usepackage[utf8]{inputenc}
there are two \setbeamertemplate{caption}[numbered]
you don't need color and the ams* packages, beamer already loads them for you
\documentclass[xcolor=dvipsnames,10pt]{beamer} % serif, mathserif
\usepackage[english,brazil]{babel}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}
\setbeamertemplate{caption}[numbered]
\setlength\abovecaptionskip{-3pt}
%\setbeamertemplate{caption}[numbered]
\setbeamerfont{caption}{size=\scriptsize}
\usefonttheme[onlymath]{serif}
%\usepackage{color}
%\usepackage{amsmath}
%\usepackage{amsfonts}
%\usepackage{amssymb}
%\usepackage{amstext}
\usepackage{mathrsfs}
\usepackage{icomma}
\usepackage{bm}
\usepackage{steinmetz}
\usepackage{tikz}
\usepackage{adjustbox}
\usepackage{subfigure}
\usepackage{ragged2e}
\usepackage{tkz-euclide}
\usetikzlibrary{angles,quotes,babel}
\DeclareMathOperator{\sen}{sen}
\mode<presentation>
{
\usetheme{CambridgeUS}
}
\begin{document}
\begin{frame}[fragile]
\frametitle{Frame Title}
\begin{figure}
\begin{tikzpicture}
\coordinate (C) at (-1.5,-1);
\coordinate (A) at (1.5,-1);
\coordinate (B) at (1.5,1);
\coordinate (D) at (1.5,-3);
\node [below] at (3,-1) {$\Re$};
\node [above] at (-1.5,2) {$\Im$};
%draw cartesian plane
\draw[stealth-stealth] (-1.5,-4) -- (-1.5,2) coordinate (y axis);
\draw[-stealth] (C) -- (3,-1) coordinate (x axis);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}] (C) --
node[font=\Large,sloped,above] {$S_{abc}$} (B);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}](A) --
node[font=\Large,pos=0.7,right] {$Q_{abc}$} (B);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}](C) --
node[font=\Large,pos=0.8,above] {$P_{abc}$} (A);
\draw[very thick,-{Stealth[length=3mm, width=1.5mm]}](C) --
node[font=\Large,sloped,below] {$S_{abc}$} (D);
\draw[very thick,{Stealth[length=3mm, width=1.5mm]}-](D)--
node[font=\Large,pos=0.3,right] {$-Q_{abc}$} (A) ;
\pic[thick,"$\theta$", draw=blue,-stealth, angle eccentricity=1.2, angle radius=1cm]
{angle=A--C--B};
\pic[thick,"$\theta$", draw=red, stealth-, angle eccentricity=1.2, angle radius=0.9cm]
{angle=D--C--A};
\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}

Place boundary of two adjacent nodes on top of each other

If I place two nodes adjacent to each other the resulting boundary between the nodes is doubled making it more thick than other boundarys. Is it possible to place them on top of each other in order to keep the original thickness?
Here my code and below some example pictures:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\tikzstyle{node} = [draw, rectangle, minimum width=1cm]
\node [node] (n_one) {node 1};
\node [node, right = 0cm of n_one.north east, anchor = north west] (n_two) {node 2};
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}
You can shift the right node by one line width:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\tikzstyle{node} = [draw, rectangle, minimum width=1cm]
\node [blue,node] (n_one) {node 1};
\node [red,node, right = -\the\pgflinewidth of n_one.north east, anchor = north west] (n_two) {node 2};
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}
Or you could draw only a single node:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes.multipart}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\node[
rectangle split,
rectangle split parts=2,
draw,
rectangle split horizontal,
rectangle split part align={center, top, bottom}
] at (0,0) {node 1\nodepart{two}node 2};
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}

How do I draw other circle to the right instead of under?

I have this
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\tikzset{
mycirc/.pic={
\foreach \w in {0,0.5} {
\draw (0,\w) circle (0.5cm);
}
}
}
\begin{tikzpicture}
\pic at (2,2) {mycirc};
\end{tikzpicture}
\end{document}
The code draws to circles intersecting. I want the circles to intersect from the right instead of from under. How do I do it?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\tikzset{
mycirc/.pic={
\foreach \w in {0,0.5} {
\draw (\w,0) circle (0.5cm);
}
}
}
\begin{tikzpicture}
\pic at (2,2) {mycirc};
\end{tikzpicture}
\end{document}

Latex Letter template with sidebar

I'm looking for someone who can tell me how to make this letter template in LaTeX, i currently using a template made in word. I'm wondering where it's possible to make the same template in LaTeX.
Background info:
Two fonts are used: Garamond and Arial
Fontsize: 12 and 16
Must support Tabular, minipage and figure environment
My normal preamble is the following (which i have used a lot of time writing):
\documentclass[10pt,a4paper]{extarticle}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{titling}
\usepackage{listings}
\usepackage{caption}
%\usepackage[helvet]{sfmath}
% commands from fontspec
\defaultfontfeatures{Ligatures=TeX}
\setmainfont[Scale=1.2]{Garamond}
\newfontfamily\gmd{Garamond}
\newfontfamily\DTL{DTL Argo}
\newfontfamily\subsubsectionfont{Helvetica Neue}
%
\titleformat{\section}[hang]{}{\thesection}{1.8cm}{}[{\titlerule[0.4pt]}]
\titleformat{\subsection}[hang]{}{\thesubsection}{1.6cm}{}
\titleformat{\subsubsection}[hang]{\bfseries}{\thesubsubsection}{1.4cm}{}
% commands from titlesec
\newcommand*{\Stor}{\#setfontsize\Stor{30pt}{30pt}}
\titleformat*{\section}{\gmd\fontsize{28pt}{30pt}\selectfont}
\titleformat*{\subsection}{\gmd\fontsize{18pt}{18pt}\selectfont}
\titleformat*{\subsubsection}{\bfseries\fontsize{14pt}{14pt}\subsubsectionfont}
% Document properties
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{geometry}
\geometry{margin=1.3in}
\geometry{top=1.4in}
\geometry{bottom=1.4in}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\usepackage{float}
\usepackage{newfloat}
\usepackage{amsmath, amssymb}
\usepackage{fixltx2e}
\usepackage[hang,nooneline]{subfigure}
\usepackage[danish]{babel}
\usepackage{multirow}
\setlength{\parindent}{0em}
\usepackage{color}
\usepackage{natbib}
\usepackage{arydshln}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{graphicx}
\usepackage{lastpage}
\usepackage{enumitem}
\usepackage{etoolbox}
\usepackage{caption}
\usepackage{xcolor}
\usepackage{xcolor,colortbl}
\usepackage{adjustbox}
\usepackage{mdframed}
% Footnote font
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\newfontfamily\gmd{Garamond}
%\patchcmd{\#footnotetext}{\footnotesize}{\normalsize\gmd}{}{}
\let\footnotesize\small
\makeatother
\usepackage[hang]{footmisc}
\setlength\footnotemargin{7.05pt}
\renewcommand{\footnoterule}{%
\kern 3pt
\hrule width \textwidth height 0.4pt
\kern 2.6pt
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
%\numberwithin{figure}{section}
%\numberwithin{table}{section}
%\numberwithin{program}{section}
%\numberwithin{boks}{section}
%\numberwithin{equation}{section}
% Colors and lines
%\definecolor{fm}{RGB}{248,244,230}
\definecolor{fm}{RGB}{248,247,217}
\definecolor{borsen}{RGB}{254,232,215}
\definecolor{dblue}{RGB}{4,19,73}
%\definecolor{Grå}{RGB}{128,128,128}
\definecolor{Grå}{RGB}{217,217,217}
\newcommand{\gline}{\arrayrulecolor{Grå}\hline}
\newcommand{\HRule}{\rule{\linewidth}{0.25mm}}
\newcommand{\HHRule}{\rule{\linewidth}{1.5mm}}
\newcommand{\tabitem}{\par\hspace*{\labelsep}\textbullet\hspace*{\labelsep}}
\arrayrulecolor{Grå}
\DeclareCaptionFont{dblue}{\color{dblue}}
\DeclareCaptionFont{black}{\color{black}}
% commands from caption
\usepackage[document]{ragged2e}
\usepackage[width={\textwidth}, margin=11pt , aboveskip=20pt, belowskip=6pt, font=footnotesize, labelfont={bf,dblue}, textfont={bf,black}, tableposition=top, figureposition=top,justification=RaggedRight,singlelinecheck=false, labelsep={newline}]{caption}%
\newfontfamily\tablefont[Numbers={Monospaced,Lining}]{Arial}
\AtBeginEnvironment{table}{\setmainfont[Color=black, Numbers={Proportional,OldStyle}]{Arial}}
\AtBeginEnvironment{figure}{\setmainfont[Color=black, Numbers={Proportional,OldStyle}]{Arial}}
\AtBeginEnvironment{boks}{\setmainfont[Color=black, Numbers={Proportional,OldStyle}]{Arial}}
%%%%%%%%%%%%%%%%%% Liste %%%%%%%%%%%%%%%%%%
\setlist[description]{
style=multiline,
font=\normalfont\gmd, % set the label font
align=parleft,
topsep=5pt,
labelwidth={0.06\textwidth},
leftmargin=!,
parsep=0pt,
before=\gmd
}
%%%%%%%%%%%%%%%%%%%%CEPOS Figure%%%%%%%%%%%%%%
\usepackage{url}
\usepackage{threeparttable}
\usepackage{tabularx,booktabs}
\usepackage{tabulary}
\belowrulesep=0pt
\aboverulesep=0pt
\renewcommand{\arraystretch}{1.4}
%%%%%%%%%%%%%%%%%%%% Finansministeriets figur %%%%%%%%%%%%%%%%%
\newenvironment{fmfigur}[4]{
\begin{figure}[htbp!]
\centering
\begin{adjustbox}{minipage=\textwidth,bgcolor=fm}
\rule{\textwidth}{0.4pt}
\begin{tabular}{#{\extracolsep{\fill}} #{}c#{}}
\begin{minipage}[t]{\textwidth}
\captionof{figure}{#1}\label{#2}
\end{minipage}
\\
\begin{minipage}[t]{\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{bil/#2.pdf}
\end{minipage}
\end{tabular}
\rule{\textwidth}{0.4pt}
\end{adjustbox} \vspace{-0.5em}
\begin{center}
\begin{adjustbox}{minipage=0.95\textwidth}
{\gmd\small
\begin{description}
\item[{\ Anm.}:]#3
\item[{\ Kilde}:]#4
\end{description}}
\end{adjustbox} \vspace{-1.75em}
\end{center}
\end{figure}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% Finansministeriets Side by Side figurer %%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\FMADAM}[6]{
\begin{table}[htpb!]
\begin{adjustbox}{minipage=\textwidth,bgcolor=fm}
\rule{\textwidth}{0.4pt}\vspace{-1pt} \arrayrulecolor{black}
\begin{tabular}{#{\extracolsep{\fill}} #{}c#{} | #{}c#{} }
\begin{minipage}[t]{0.5\textwidth}
\captionof{figure}{#1}\label{#2}
\end{minipage}
&
\begin{minipage}[t]{0.5\textwidth}
\captionof{figure}{#3}\label{#4}
\end{minipage}
\\
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=0.9\linewidth,keepaspectratio=true]{bil/#2.pdf}
\end{minipage}
&
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=0.9\linewidth,keepaspectratio=true]{bil/#4.pdf}
\end{minipage}
\vspace{-1pt}
\end{tabular}
\rule{\textwidth}{0.4pt}
\end{adjustbox} \vspace{-0.5em}
\begin{center}
\begin{adjustbox}{minipage=0.95\textwidth}
{\gmd\small
\begin{description}
\item[{\ Anm.}:]#5
\item[{\ Kilde}:]#6
\end{description}}
\end{adjustbox} \vspace{-1.75em}
\end{center}
\end{table}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareFloatingEnvironment[
fileext=lop,
name=Program
]{program}
% announce the float to subcaption and create the subprogram environment
\DeclareCaptionSubType{program}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareFloatingEnvironment[
fileext=lop,
name=Boks
]{boks}
% announce the float to subcaption and create the subprogram environment
\DeclareCaptionSubType{boks}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FMTable%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\fmboks}[5]{
\begin{boks}[htbp!]
\begin{adjustbox}{minipage=\textwidth,bgcolor=fm}
\rule{\textwidth}{0.4pt}
\begin{minipage}[t]{\textwidth}
\caption{#1}\label{boks:#2}
\end{minipage}
\fontsize{8pt}{9pt}\selectfont\centering
\begin{tabulary}{0.95\textwidth}{#{\extracolsep{\fill}}#{}L#{}}
\onehalfspacing \fontsize{8pt}{9pt}\selectfont
#3
\end{tabulary}
\rule{\textwidth}{0.4pt}
\end{adjustbox} \vspace{-0.5em}
\begin{center}
\begin{adjustbox}{minipage=0.95\textwidth}
{\gmd\small
\begin{description}
\item[{\ Anm.}:]#4
\item[{\ Kilde}:]#5
\end{description}}
\end{adjustbox} \vspace{-1.75em}
\end{center}
\end{boks}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FMTable%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\fmtable}[5]{
\begin{table}[htbp!]
\begin{adjustbox}{minipage=\textwidth,bgcolor=fm}
\rule{\textwidth}{0.4pt}
\begin{minipage}[t]{\textwidth}
\caption{#1}\label{tab:#2}
\end{minipage}
\begin{center}
\begingroup
\fontsize{8pt}{9pt}\selectfont\arrayrulecolor{Grå}
#3
\endgroup
\end{center}
\rule{\textwidth}{0.4pt}
\end{adjustbox} \vspace{-0.5em}
\begin{center}
\begin{adjustbox}{minipage=0.95\textwidth}
{\gmd\small
\begin{description}
\item[{\ Anm.}:]#4
\item[{\ Kilde}:]#5
\end{description}}
\end{adjustbox} \vspace{-1.75em}
\end{center}
\end{table}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeindex
\patchcmd{\footrule}{\hrule}{\color{dblue}\hrule}{}{}
\patchcmd{\headrule}{\hrule}{\color{dblue}\hrule}{}{}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\headrulewidth}{0pt}
\makeindex
\DeclareMathOperator{\dlog}{dlog\!}
\DeclareMathOperator{\dd}{d\!}
\newcommand{\gmdit}[1]{\textit{\gmd #1}}
\newcommand{\abs}[1]{\lvert #1 \rvert}
\newcommand{\lrarrow}{\Leftrightarrow}
\newcommand{\degree}{\text{\textdegree}}
\newcommand{\rarrow}{\Rightarrow}
\newcommand{\larrow}{\Leftarrow}
\newcommand{\udarrow}{\Updownarrow}
\newcommand{\bsm}{\left[ \begin{smallmatrix}}
\newcommand{\esm}{\end{smallmatrix} \right]}
\newcommand{\shiftline}{\newline \newline}
\newcommand{\PD}{\partial}
\newcommand{\grad}{\nabla}
\newcommand{\lb}{\left(}
\newcommand{\rb}{\right)}
\newcommand{\ohm}{\Omega}
\newcommand{\Sun}{\ensuremath{\odot}}
\newcommand{\g}{\cdot}
\newcommand{\limit}{\lim_{n \rightarrow \infty}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\mat}[1]{
\begin{align*}
\centering
#1
\end{align*}}
\newcommand{\matnr}[1]{
\begin{align}
\centering
#1
\end{align}}
\usepackage{setspace}
\renewcommand{\baselinestretch}{1.4}
\fancyhead[R]{{Ivan Erik Kragh}\\{(+45) 60 68 13 05}} % predefined ()
\fancyhead[L]{Opdatering: Ulighed og Working Poor (juli, 2016)} % 1. sectionname
\lfoot{\small }
\chead{\ }
%\rhead{\small Ivan Erik Kragh\\(+45) 60 68 13 05}
\cfoot{Side \thepage\ af \pageref{LastPage}}
\rfoot{ik#kraghinvest.dk}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\textwidth=12in
\begin{document}
\begin{tabular}{p{6cm}p{4cm}p{6cm}}
Navin & &28 September\\
Firma & &2016
\end{tabular}
\textwidth=8in
{\bf Kaer Navin}\\
\small
\vspace{2cm}
% here you can enter your paragraph
This is what I get when I type to see the test page. That
must be crazy.
\vspace{3cm}
Med\\
\line(1,0) {100}\\
Tl: 123 456
\vfill
\hspace{2cm}Kevin etc.
\end{document}
% I think this format will be useful to you.

Resources