Seite 1 von 1

Caption Kurzform neben Abbildungsnummer

Verfasst: Mo 30. Jun 2014, 10:04
von Blaight
Hey,
ich will, dass meine Abbildungen den Titel, der im Abbildungsverzeichnis steht, auch in fett neben ihre Nummer bekommen und der Text erst eine Zeile darunter beginnt. Wie muss ich das verändern? Danke Leute!
\usepackage[font=footnotesize,labelfont=bf]{caption} 

\begin{figure}
\centering
\includegraphics[width=\linewidth]{GFX/HippocampusOV}
\caption[The hippocampal formation in mammals]{The hippocampus forms a principally unidirectional network with input from the axons of the entorhinal cortex connected to the granule cells of the dentate gyrus and CA3 neurons via the perforant path (lateral and medial; pp). Dendrites of CA3 neurons receive input from the DG via mossy fibers (mf) and project their axons to the CA1 region (Schaffer collateral pathway; sc) as well as to CA3 neurons of the contralateral hippocampus (associational commissural pathway). CA1 neurons receive direct input from the perforant path and project their axons to the subiculum, where output is sent back to the entorhinal cortex. (Bruce MacIver lab, Stanford University)}
\label{fig:HippocampusOV}
\end{figure}

Verfasst: Mo 30. Jun 2014, 10:08
von Johannes_B
Erstell uns bitte ein Minimalbeispiel.

Und bitte markiere deinen Code auch als solchen. Das habe ich diesmal übernommen.

Verfasst: Mo 30. Jun 2014, 13:25
von Felix
Für mich funktioniert das so:
\makeatletter
\long\def\@caption#1[#2]#3{%
  \par
   \addcontentsline{\csname ext@#1\endcsname}{#1}%
    {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
  \begingroup
     \@parboxrestore
     \if@minipage
       \@setminipage
     \fi
     \normalsize
    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces\textbf{#2}\newline#3}\par
  \endgroup}
\makeatother
Hier hab ich Originalcode aus caption.sty redefiniert. Vllt. weitere Infos:

- Was machen hier \makeatletter und \makeatother
- Wie funktionieren Gleitobjekte (denn Du hast gar keine Platzierungsoptionen)

Nicht von den langen Texten erschrecken lassen dort, man will nur besonders gut antworten. Wirst Du merken, falls Du selbst eine Frage stellst und super Erklärungen kriegst. ;-)

Felix