Caption Kurzform neben Abbildungsnummer

Tabellen und Grafiken erstellen und anordnen


Blaight
Forum-Newbie
Forum-Newbie
Beiträge: 7
Registriert: Fr 16. Aug 2013, 15:14

Caption Kurzform neben Abbildungsnummer

Beitrag 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}

Benutzeravatar
Johannes_B
Moderator
Moderator
Beiträge: 5079
Registriert: Do 1. Nov 2012, 14:55
Kontaktdaten:

Beitrag von Johannes_B »

Erstell uns bitte ein Minimalbeispiel.

Und bitte markiere deinen Code auch als solchen. Das habe ich diesmal übernommen.
TeXwelt - Fragen und Antworten Schaut vorbei und stellt Fragen.
LaTeX-Vorlagen?

Der Weg zum Ziel: Ruhe bewahren und durchatmen, Beiträge und unterstützende Links aufmerksam lesen, Lösungsansätze verstehen und ggf. nachfragen.

Felix
Forum-Century
Forum-Century
Beiträge: 210
Registriert: Sa 25. Jan 2014, 13:57

Beitrag 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

Antworten