%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  2. Auflage
%% 
%%  Beispiel 08-06-12 auf Seite 335.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{169.16928pt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{fancybox}
\setlength\textwidth{6cm}
\setlength\textheight{8cm}
\usepackage{xcolor}\let\Rule\rule
\renewcommand\rule[2]{{\color{lightgray}\Rule{#1}{#2}}}
\AtBeginDocument{\addtolength\abovecaptionskip{-3pt}
\addtolength\belowcaptionskip{-2pt}}
\fancypage{\setlength\fboxsep{4pt}\fbox}{}
\makeatletter\renewcommand\fps@figure{!ht}\makeatother
%StartShownPreambleCommands
\usepackage{caption}
\makeatletter
\renewcommand\p@figure{A:}
\makeatother
\DeclareCaptionListFormat{MFormat}{#1 [#2]}
\captionsetup{listformat=MFormat}
%StopShownPreambleCommands
\begin{document}
\begin{figure}
  \centering\rule{0.75\linewidth}{2mm}
  \caption{Eine Beschriftung}
\end{figure}

\begin{figure}
  \centering\rule{0.75\linewidth}{2mm}
  \captionsetup{justification=raggedright}
  \caption{Eine Beschriftung}
\end{figure}
\listoffigures
\end{document}
