[Tex/LaTex] Add bold font to the itemize environment

fontsitemizelists

I am trying to list some items in my document so that I can add bold option to the words in the item such as below:

  • src contains the activities as well as the java code.
  • gen contains the activities as well as the java code.
  • assets contains the activities as well as the java code.
  • bin contains the activities as well as the java code.

But with this code the items are being created without the bold font option. How can I achieve that with itemize or other enviremnt?

\begin{itemize}
  \item  src contains the activities  as well as the java code.
  \item gen
  \item assets
  \item bin
\end{itemize}

Best Answer

\textbf makes the argument bold. An alternative is environment description:

\documentclass{article}

\begin{document}

\begin{itemize}
  \item \textbf{src} contains the activities  as well as the Java code.
  \item \textbf{gen}
  \item \textbf{assets}
  \item \textbf{bin}
\end{itemize}

\hrule

\begin{description}
  \item[src] contains the activities  as well as the Java code.
  \item[gen]
  \item[assets]
  \item[bin]
\end{description}

\end{document}

Result