von Palmenstrand » Mo 21. Dez 2015, 10:51
Guten Morgen
Ich habe bereits
http://golatex.de/wiki/%5Ccaptionof
gelesen. Doch dort wird eine Lösung für mein Problem nicht angegben.
Wenn ich diesen Befehl nutze, erscheint Abbildung 1, Abbildung 2 etc.
Gerne würde ich nun aber das es Sagt Abbildung 7.1 wenn ich in der Section 7.1 bin.
Das Minimalbeispiel ist:
\documentclass[a4paper,11pt]{article} %Schriftgrösse noch auf 12pt ändern.
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[hidelinks]{hyperref}
\usepackage{chngcntr}
\counterwithout{footnote}{section}
\usepackage{titlesec}
\titlespacing{\chapter}{0pt}{-2em}{10pt}
\titleformat{\chapter}{\bfseries\Large}{\thechapter.\quad}{0em}{}
\AtBeginDocument{\renewcommand{\chaptername}{}}
\titleformat{\section}{\bfseries\large}{\thesection.\quad}{0em}{}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{graphs}
\usepackage[margin=10pt,font=small,labelfont=bf,
labelsep=endash]{caption}
\begin{document}
\section{Hühner}
\subsection{Eier}
\section{Giraffen}
\subsection{Löwen}
\begin{minipage}[t]{0.5\textwidth}
\centering
\begin{tikzpicture}
\coordinate[label=above:$A$] (A) at (5,0);
%\coordinate[label=right:$B$] (B) at (4,1);
\coordinate[label=above:$C$] (C) at (3,0);
\coordinate[label=below:$D$] (D) at (3,-1);
\fill (C) circle (2pt);
\fill(D) circle (2pt);
\end{tikzpicture}
\captionof{figure}{Beispiel}
\label{B}
\end{minipage}
\end{document}
Guten Morgen
Ich habe bereits
http://golatex.de/wiki/%5Ccaptionof
gelesen. Doch dort wird eine Lösung für mein Problem nicht angegben.
Wenn ich diesen Befehl nutze, erscheint Abbildung 1, Abbildung 2 etc.
Gerne würde ich nun aber das es Sagt Abbildung 7.1 wenn ich in der Section 7.1 bin.
Das Minimalbeispiel ist:
[code]\documentclass[a4paper,11pt]{article} %Schriftgrösse noch auf 12pt ändern.
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[hidelinks]{hyperref}
\usepackage{chngcntr}
\counterwithout{footnote}{section}
\usepackage{titlesec}
\titlespacing{\chapter}{0pt}{-2em}{10pt}
\titleformat{\chapter}{\bfseries\Large}{\thechapter.\quad}{0em}{}
\AtBeginDocument{\renewcommand{\chaptername}{}}
\titleformat{\section}{\bfseries\large}{\thesection.\quad}{0em}{}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{graphs}
\usepackage[margin=10pt,font=small,labelfont=bf,
labelsep=endash]{caption}
\begin{document}
\section{Hühner}
\subsection{Eier}
\section{Giraffen}
\subsection{Löwen}
\begin{minipage}[t]{0.5\textwidth}
\centering
\begin{tikzpicture}
\coordinate[label=above:$A$] (A) at (5,0);
%\coordinate[label=right:$B$] (B) at (4,1);
\coordinate[label=above:$C$] (C) at (3,0);
\coordinate[label=below:$D$] (D) at (3,-1);
\fill (C) circle (2pt);
\fill(D) circle (2pt);
\end{tikzpicture}
\captionof{figure}{Beispiel}
\label{B}
\end{minipage}
\end{document}
[/code]