1

I have started using LATEX as a document processor for good. I use SCRUM for my work flow. There we usually create a list of items numbered in Fibonacci sequence. I googled for the feature in LATEX and found most topics about fibnum package are about page numbering or finding Fibonacci sequence.

My question is,

Is there a way to generate a list numbered using Fibonacci sequence?.

For example,
1 Task 1
1 Task 2
2 Task 3
3 Task 4
5
8
...

UPDATE:
I used enumerate for my lists. Now, I want to change my list numbering to Fibonacci sequence.

NOTE: Usually backlogs go above 50 tasks. So it's not feasible to number a list manually.

Thanks.

  • Welcome to TeX.SX! Are you talking about a enumerate environment or something special (like a package's special environment)? – TeXnician Feb 10 '17 at 11:54
  • I used enumerate for my lists. Now, I want to change my list numbering to Fibonacci. I didn't use any special package – Mitty Feb 10 '17 at 11:56
  • You could define your own function (see tex.stackexchange.com/questions/83148/…) and then use it together with enumitem's label. – TeXnician Feb 10 '17 at 12:02
3

Here's a way with enumitem for making enumerated lists:

\documentclass{article}
\usepackage{enumitem}
\usepackage{fibnum}

\newcommand{\fibonacci}[1]{\expandafter\fibnum\csname c@#1\endcsname}
\AddEnumerateCounter{\fibonacci}{\fibnum}{100} % or bigger

\begin{document}

\begin{enumerate}[label=\fibonacci*]

\item Task
\item Task
\item Task
\item Task
\item Task
\item Task
\item Task
\item Task
\item Task
\item Task
\item Task

\end{enumerate}

\end{document}

If you want sections numbered as the Fibonacci sequence, after

\newcommand{\fibonacci}[1]{\expandafter\fibnum\csname c@#1\endcsname}

add also

\renewcommand{\thesection}{\fibonacci{section}}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.