Text FormattingPrepending Figure/Table to LoF/LoT

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
onidavin
Posts: 9
Joined: Thu Apr 29, 2010 11:12 pm

Prepending Figure/Table to LoF/LoT

Post by onidavin »

Hello,

Is there a relatively newbie-friendly way of prepending a word such as "Figure" or "Table" to the label provided in LoF or LoT? Caveat: I can't use tocloft, as it dorks up the university template I'm using.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Prepending Figure/Table to LoF/LoT

Post by gmedina »

Hi,
onidavin wrote:...Is there a relatively newbie-friendly way of prepending a word such as "Figure" or "Table" to the label provided in LoF or LoT? Caveat: I can't use tocloft, as it dorks up the university template I'm using.
What about asking the author/maintainer of the template?

If that's not possible, then you could post here (as an attachment) the customized .cls file and perhaps someone will look through it and suggest you a possible solution.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
onidavin
Posts: 9
Joined: Thu Apr 29, 2010 11:12 pm

Prepending Figure/Table to LoF/LoT

Post by onidavin »

Sadly, the template is no longer being maintained. The University hasn't posted an official one, because they decided that not enough students attempted to use LaTeX. Chicken/Egg Scenario?

It's available at http://ivan.research.ucf.edu/UCF_thesis ... hesis.html
onidavin
Posts: 9
Joined: Thu Apr 29, 2010 11:12 pm

Prepending Figure/Table to LoF/LoT

Post by onidavin »

Managed to figure out my problem using titletoc. It's a little hacky, as I've used inflexible widths to accommodate the word 'Figure', but maybe someone with the same problem will find this useful.

Code: Select all

 \usepackage{titletoc}
 \titlecontents{figure} [3.8em]
	{} 
	{Figure \hspace{3em} \contentslabel{2.2em}} 
	{\hspace*{-3.2em}} 
	{\titlerule*[1pc]{.}\contentspage}
Post Reply