TransWikia.com

how to introduce a list of parameters for your mathematical formula

TeX - LaTeX Asked on April 15, 2021

I am writing my mathematical formula in latex and I would like to create the following list. However, I want to add some more space between the indixes and the definitions and to write the definitions in Italic. How would you do that?

documentclass{article}
usepackage[utf8]{inputenc}
usepackage[super]{natbib}
usepackage{comment}
usepackage{graphicx}
usepackage{float}
usepackage{hyperref}
usepackage{amsmath}
usepackage{amssymb}
usepackage{amsfonts}
usepackage{caption}
usepackage{adjustbox}
usepackage{lipsum}
usepackage{lscape}
usepackage{multicol}
captionsetup[figure]{font=small,labelfont=bf}
captionsetup[table]{font=small,labelfont=bf}
usepackage[justification=centering]{caption}
usepackage{eurosym}
usepackage[table, dvipsnames]{xcolor} 


begin{document}
subsubsection{Indices} 
The following indices capture the dimension of the problem:

begin{itemize}
item[k]{suppliers, $kin {1,…, K}$}
vspace{-2mm}item[i]facilities, $iin {1,…, I}, I subset K$   
vspace{-2mm}item[o]OpCos, $oin {1,…, O}$
vspace{-2mm}item[j]customers, $jin {1,…, J}, J subset O$
vspace{-2mm}item[p]products, $pin {1,…, P}$
vspace{-2mm}item[g]transportation modes, $gin {1,…, G}$
vspace{-2mm}item[y]years, $yin {1,…, Y}$
end{itemize}

end{document}

enter image description here

Thanks!!

One Answer

For the space between the items, you could use itemsep command directly after the begin opening the list environment.

For italics, you could either enclose your labels with $$ that would turn them to math mode. Or use enumitem package.

MWE:

documentclass{article}
usepackage{enumitem} 
setlist[itemize]{font=normalfontitshapespace} 

begin{document}

begin{itemize}
itemsep-2mm
item[k]{suppliers, $kin {1,…, K}$}
item[i]facilities, $iin {1,…, I}, I subset K$   
item[o]OpCos, $oin {1,…, O}$
item[j]customers, $jin {1,…, J}, J subset O$
item[p]products, $pin {1,…, P}$
item[g]transportation modes, $gin {1,…, G}$
item[y]years, $yin {1,…, Y}$
end{itemize}


end{document}

Correct answer by Elad Den on April 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP