I want to emulate this in LaTeX code as an equation.
\usepackage{spalign}
\[
\spalignsys{
\text{Maximizar} \hspace{4mm} z=c_1x_1+c_2x_2+\dots+c_nx_n ;
\text{Sujeto a:} ;
\hspace{4mm} a_{11}x_1+a_{12}x_2+\dots+a_{1n}x_n \leq b_1;
x_1,x_2,\dots,x_n \geq 0 }
\]
You can use the same technique as in https://tex.stackexchange.com/a/587258/36296 :
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\left\{\begin{array}{lc}
\text{Maximizar} & z=c_1x_1+c_2x_2+\dots+c_nx_n\\
\text{Sujeto a:}& \\
&a_{11}x_1+a_{12}x_2+\dots+a_{1n}x_n \leq b_1\\
& x+1+2+3\\
\end{array}\right.
\]
\end{document}
Related
In the minipage environment with listing and figure I'd like to have three separate captions a, b, c evenly as the picture below:
But my try with this minimal code results an untidy captions as below:
\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
%\usepackage{caption}
\begin{document}
\begin{figure}[h!]
\noindent\begin{minipage}{0.3\textwidth}
\begin{lstlisting}[]
while(a < 0){
a++;
}
\end{lstlisting}
\caption{C program}
\end{minipage}%
\noindent\begin{minipage}{0.45\textwidth}
\begin{align*}
&F_1(a, b) \leftarrow a \le 0 \\
&F_2(a, b) \leftarrow F_1(a, b) \\
\end{align*}
\caption{Automata}
\end{minipage}%
\noindent\begin{minipage}{0.3\textwidth}
\includegraphics[scale=0.2]{example-image-a}
\caption{Relation}
\end{minipage}%
\caption{overal blablablablablabla caption}
\end{figure}
\end{document}
How can I get rid of Figure keyword and get a, b, c caption in the same level?
You can [b]ottom align your minipages:
\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
%\usepackage{caption}
\begin{document}
\begin{figure}[h!]
\noindent\begin{minipage}[b]{0.3\textwidth}
\begin{lstlisting}[]
while(a < 0){
a++;
}
\end{lstlisting}
\caption{C program}
\end{minipage}%
\noindent\begin{minipage}[b]{0.45\textwidth}
\begin{align*}
&F_1(a, b) \leftarrow a \le 0 \\
&F_2(a, b) \leftarrow F_1(a, b) \\
\end{align*}
\caption{Automata}
\end{minipage}%
\noindent\begin{minipage}[b]{0.3\textwidth}
\includegraphics[scale=0.2]{example-image-a}
\caption{Relation}
\end{minipage}%
\end{figure}
\end{document}
The same technique works also with subfigures:
\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[h!]
\noindent\begin{subfigure}[b]{0.3\textwidth}
\begin{lstlisting}[]
while(a < 0){
a++;
}
\end{lstlisting}
\caption{C program}
\end{subfigure}%
\noindent\begin{subfigure}[b]{0.45\textwidth}
\begin{align*}
&F_1(a, b) \leftarrow a \le 0 \\
&F_2(a, b) \leftarrow F_1(a, b) \\
\end{align*}
\caption{Automata}
\end{subfigure}%
\noindent\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[scale=0.2]{example-image-a}
\caption{Relation}
\end{subfigure}%
\caption{text}
\end{figure}
\end{document}
Consider the following class diagram:
\documentclass{article}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{empheq}
\usepackage{mdframed}
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{color}
\usepackage{psfrag}
\usepackage{pgfplots}
\usepackage{bm}
\usepackage{tikz}
\usepackage{tikz-uml}
\begin{document}
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\umlclass[]{Class1}
{
}
{
}
\umlinterface[y=4]{Class2}{}
{
+ createDocument(doc: str) : str \\
+ resolveDocument(id: str) : str \\
+ updateDocument(doc: str) : str \\
+ deleteDocument(id: str) : str \\
+ createStatusList(sl: str) \\
+ resolveStatusList(id: str) \\
+ updateStatusList(sl: str) \\
+ deleteStatusList(id: str)
}
\umlclass[x=-2,y=-3]{Class33333333333333333333333}{}{}
\umlclass[x=3,y=-3]{Class4}{}{}
\umlinherit{Class1}{Class2}
\umlaggreg[geometry=|-|]{Class1}{Class33333333333333333333333}
\umlaggreg[geometry=|-|]{Class1}{Class4}
\end{tikzpicture}
\end{figure}
\end{document}
Since Class3 is bigger in size I had to add a unit for the x coordinate of Class2 to keep some space between the two. Is this the correct approach? How can I get even space between classes by not playing with coordinates? Every time a class changes in size I often need to redefine many coords. Also, how to fix the alignment of the two classes in respect of Class 1?
You can use relative positioning from the TikZ positioning library:
\documentclass{article}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{empheq}
\usepackage{mdframed}
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{color}
\usepackage{psfrag}
\usepackage{pgfplots}
\usepackage{bm}
\usepackage{tikz}
\usepackage{tikz-uml}
\usetikzlibrary{positioning}
\begin{document}
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\umlinterface{Class2}{}
{
+ createDocument(doc: str) : str \\
+ resolveDocument(id: str) : str \\
+ updateDocument(doc: str) : str \\
+ deleteDocument(id: str) : str \\
+ createStatusList(sl: str) \\
+ resolveStatusList(id: str) \\
+ updateStatusList(sl: str) \\
+ deleteStatusList(id: str)
}
\umlclass[below=1cm of Class2]{Class1}
{
}
{
}
\umlclass[below left=2cm and 0.5cm of Class1]{Class33333333333333333333333}{}{}
\umlclass[below right=2cm and 0.5cm of Class1]{Class4}{}{}
\umlinherit{Class1}{Class2}
\umlaggreg[geometry=|-|]{Class1}{Class33333333333333333333333}
\umlaggreg[geometry=|-|]{Class1}{Class4}
\end{tikzpicture}
\end{figure}
\end{document}
I need to write this exact same table in Latex (in the picture)
This is my code :
\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage{array,multirow,colortbl}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
}
\begin{document}
\colorbox{lightgray}{%
\arrayrulecolor{white}
\begin{tabular}{p{2.2in} | p{2.1in}}
\textbf{Signaleigenschaft} & \textbf{Mathematische Beschreibung} \\ \hline
Explizit definiertes Signal & Funktionswert kann direkt abgelesen werden,\newline zum Beispiel\newline
$x\left(t\right)=10\cdot e^{-a\cdot t^{2} } \cdot \sin \left(b\cdot t\right)$ \\
\end{tabular}%
}%end colorbox
\end{document}
I obtain a small table and the text isn't like in the picture (centered etc..)
Centered text and applied sans serif font for both text and equation. Used \parbox with specific height and width to match spacing of "this exact same table".
\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage{array,multirow,colortbl}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
}
\begin{document}
{
\scriptsize%
\sffamily%
\setlength{\fboxsep}{0pt}%
\colorbox{lightgray}{%
\arrayrulecolor{white}%
\begin{tabular}{| l | l |}
\hline
\parbox[c][0.28in][c]{2.5in}{\smallskip\centering\textbf{Signaleigenschaft}} & \parbox[c][0.28in][c]{2.5in}{\smallskip\centering\textbf{Mathematische Beschreibung}}\\ \hline
\parbox[c][0.64in][c]{2.5in}{\centering{Explizit definiertes Signal}} & \parbox[c][0.64in][c]{2.5in}{\centering{Funktionswert kann direkt abgelesen werden,\\zum Beispiel\\[3pt]$\mathsf{x\left(t\right)=10\cdot e^{-a\cdot t^{2} } \cdot \sin \left(b\cdot t\right)}$}}\\
\hline
\end{tabular}%
}%end colorbox
}
\end{document}
You could define a new, centred column type:
\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage{array,multirow,colortbl}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\begin{document}
\colorbox{lightgray}{%
\arrayrulecolor{white}
\begin{tabular}{C{2.2in} | C{2.1in}}
\textbf{Signaleigenschaft} & \textbf{Mathematische Beschreibung} \\ \hline
Explizit definiertes Signal &
Funktionswert kann direkt abgelesen werden,\par
zum Beispiel\par
$x\left(t\right)=10\cdot e^{-a\cdot t^{2} } \cdot \sin \left(b\cdot t\right)$ \\
\end{tabular}%
}%end colorbox
\end{document}
I am new to latex. My issue is that I would like the arrow from the "perceived" to the "distress" node to be horizontal. As you can see in the picture attached below, the arrow is not completely horizontal. Thanks in advance.
[1]: https://i.stack.imgur.com/gq17O.png
\documentclass[jou]{apa7}
\usepackage{tikz}
\usetikzlibrary{shapes, shadows, arrows}
\usetikzlibrary{positioning}
\tikzset{mynode/.style={align=center}
}
\begin{document}
[\begin{tikzpicture}
\node\[mynode\] (mental){\begin{tabular}{c} Mental health \\ support \end{tabular}};
\node\[mynode,below left=of mental\](family) {\begin{tabular}{c} Perceived family \\ support \end{tabular}};
\node\[mynode,below right=of mental\](distress) {Distress};
\draw\[-latex\] (family.north) -- node\[auto,\] {.2395} (mental.west);
\draw\[-latex\] (mental.east) -- node\[auto,\] {1.4509} (distress.north);
\draw\[-latex\] (family.east) -- node\[below=3mm, align=center\] {$-.0453$$^*$} (distress.west);
\draw\[-latex\] (family.east) -- node\[above=3mm, align=center\] {$-.0248$$^*$} (distress.west);
\end{tikzpicture}
\end{document}
\documentclass[jou]{apa7}
\usepackage{tikz}
\usetikzlibrary{shapes, shadows, arrows}
\usetikzlibrary{positioning}
\tikzset{mynode/.style={align=center,text width=3cm}
}
\begin{document}
\begin{tikzpicture}
\node[mynode] (mental){Mental health \\ support};
\node[below= of mental] (dummy) {};
\node[mynode,left=2cm of dummy](family) {Perceived family \\ support};
\node[mynode,right=2cm of dummy](distress) {Distress};
\draw[-latex] (family.north) -- node[auto,] {.2395} (mental.west);
\draw[-latex] (mental.east) -- node[auto,] {1.4509} (distress.north);
\draw[-latex] (family.east) -- node[below=3mm, align=center] {$-.0453$$^*$} (distress.west);
\draw[-latex] (family.east) -- node[above=3mm, align=center] {$-.0248$$^*$} (distress.west);
\end{tikzpicture}
\end{document}
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.