General ⇒ list of figure captions
list of figure captions
how can i get that?
thank you very much
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: list of figure captions
\listoffigures (and l@figure) is defined by the document class. Which class do you use?
Stefan
Re: list of figure captions
i dont have to use listoffigures, if there is another way to list all figure captions.
thanks
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
list of figure captions
try this:
Code: Select all
{\renewcommand*\numberline[1]{}
\makeatletter
\renewcommand*\l@figure[2]{#1\newline}
\makeatother
\listoffigures}
Re: list of figure captions
i want it like
fig.1. blahblahblah
fig.2. blahblahblah
thank you very much
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
list of figure captions
try this modification:
Code: Select all
{\renewcommand*\numberline[1]{Fig.\,#1:\space}
\makeatletter
\renewcommand*\l@figure[2]{\noindent#1\par}
\makeatother
\listoffigures}
Stefan
list of figure captions
thanks a lot.
Code: Select all
\begin{figure}[!hb]
\centering
\includegraphics[width=4.042in]{heatxrd.eps}
\caption{X-ray diffraction patterns of the as-prepared %
and at 600\celsius\xspace heat-treated %
Co\textsubscript{58.34}Fe\textsubscript{3.84}B\textsubscript{13.06}Si\textsubscript{13.06}Cr\textsubscript{11.7}.}
\label{fig:heatxrd}
\end{figure}
Re: list of figure captions
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
list of figure captions
Code: Select all
\newlength{\fig}
\settowidth{\fig}{Fig.\,99:~}
{\renewcommand*\numberline[1]{\llap{\makebox[\fig][l]{Fig.\,#1:~}}}
\makeatletter
\renewcommand*\l@figure[2]{\leftskip\fig\noindent#1\par}
\makeatother
\listoffigures}
list of figure captions
but still it doesnt work, i think maybe it's because of my use of \textsubscript make the composition: Co\textsubscript{58.34}Fe\textsubscript{3.84}B\textsubscript{13.06}Si\textsubscript{13.06}Cr\textsubscript{11.7} cannot be broken apart.
i restructured the caption and make sure the special composition could be normally shown in
the sentence. but i just feel not good. i think there must be some better ways to do it.
another thing is the captions are not be alligned evenly at the right side. when i change the font from mathptmx to palatino, it works fine. here are my premable
Code: Select all
\documentclass[12pt,a4paper,english,titlepage]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage[english]{babel}% clash with \renewcommand{\figurename}{Fig.}
\usepackage[top=2.54cm,left=3cm,right=3cm,bottom=2.54cm]{geometry}% page layout
\usepackage{mathptmx,courier,pifont}
\usepackage[scaled=.92]{helvet}
\usepackage{graphicx}
\usepackage{setspace,xspace,hanging}
\usepackage{fixltx2e} %use \textsubscript
\usepackage{enumerate}
\usepackage{blindtext,textcase,textcomp,gensymb}
\usepackage{url,cite}
\usepackage[normalem]{ulem}
\usepackage{longtable}
\usepackage{subfigure}%it's for subfigures
\usepackage{ccaption}
\captionnamefont{\bfseries}
\captiontitlefont{\small}
\renewcommand{\figurename}{Fig.}
\usepackage{amssymb,amsmath}