Graphics, Figures & TablesPicture Number and Title

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Picture Number and Title

Post by Kaspars »

Hello,

Here is my code:

Code: Select all

\documentclass[12pt,a4paper,fleqn]{article}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{appendix}
\setotherlanguages{english}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{titlesec,titletoc}

\begin{document}

\section{first section}

\begin{figure}[!h]
\includegraphics[width=1.00\textwidth]{pic}\hfill
\caption{picture descriprion}
\end{figure}

\end{document}
In attachment you will find a picture.

If you compile, you can see that pictures number and name is writed like this:
Figure 1: Picture description

What I must do, so the title would look like this:
1. Figure. Picture description

Thanks for help :)
Attachments
pic for program
pic for program
pic.png (8.81 KiB) Viewed 1648 times
Last edited by Kaspars on Wed May 11, 2011 10:03 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Picture Number and Title

Post by sommerfee »

This could be done with the/my caption package:

Code: Select all

\usepackage{caption}
\DeclareCaptionLabelFormat{myformat}{#2.~#1.}
\captionsetup{labelformat=myformat,labelseparator=space}
HTH,
Axel
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Picture Number and Title

Post by Kaspars »

sommerfee wrote:This could be done with the/my caption package:

Code: Select all

\usepackage{caption}
\DeclareCaptionLabelFormat{myformat}{#2.~#1.}
\captionsetup{labelformat=myformat,labelseparator=space}
HTH,
Axel
It works, thanks a lot :)
Post Reply