Graphics, Figures & Tables ⇒ Box / Frame around a list
Box / Frame around a list
- Attachments
-
- Untitled.jpg (18.91 KiB) Viewed 13788 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Box / Frame around a list
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[charter]{mathdesign}
\usepackage{eulervm}
\usepackage{enumitem}
\usepackage{xcolor}
\begin{document}
\fcolorbox{black}[HTML]{E9F0E9}{\parbox{\textwidth}{%
\noindent \textbf{Eksempel.}
\begin{enumerate}[nolistsep]
\item Input $h$
\item Input $g$
\item $areal \rightarrow h \cdot g$
\item $areal \rightarrow \frac{areal}{2}$
\item Output $areal$
\end{enumerate}}}
\end{document}
Re: Box / Frame around a list
Re: Box / Frame around a list
Box / Frame around a list
In matematic this is called a pseudocode, describes a algorithm.
Code: Select all
\begin{enumerate}[nolistsep]
\item Input $h$
\item Input $g$
\item $areal \rightarrow h \cdot g$
\item $areal \rightarrow \frac{areal}{2}$
\item Output $areal$
\end{enumerate}}}

Box / Frame around a list
Here it is inside:
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[charter]{mathdesign}
\usepackage{eulervm}
\usepackage{enumitem}
\usepackage{xcolor}
\begin{document}
\fcolorbox{black}[HTML]{E9F0E9}{\parbox{\textwidth}{%
\noindent \textbf{Eksempel.}
\begin{enumerate}[nolistsep]
\item Input $h$
\item Input $g$
\item $areal \rightarrow h \cdot g$
\item $areal \rightarrow \frac{areal}{2}$
\item Output $areal$
\end{enumerate}
\hrulefill
Text
}}
\end{document}
Re: Box / Frame around a list
