LaTeX: Numbering subsubsection and showing it in Table of Contents

By default, the \subsubsection heading has no numbering and it is also not shown in the Table of Contents. To put numbering and to show the subsubsection in table of contents, we need to define the counter value of tocdepth and secnumdepth in the preamble of your LaTeX document using \setcounter. Here is the sample … Read more

Smarty: Selection list using foreach and section loop

In this article, I will be explaining about foreach and section loop used in Smarty. I will be using these loops for creating a selection list. We can create selection list from a custom Smarty function html_options. <select name="user"> {html_options values=$id output=$names selected="4"} </select> Instead of html_options, we can also use loops to create the … Read more