Nutrition Facts label in LaTeX

nutritionfacts is a free LaTeX package that typesets a US-style Nutrition Facts panel and a per-100 g nutrition table, for recipe books, food-science courses, student reports and product mock-ups.

Nutrition Facts panel for one medium banana and a per-100 g table for an egg, typeset with the nutritionfacts LaTeX package

Quick start

\usepackage{nutritionfacts}

\begin{nutritionfacts}[servings=1, serving size={1 medium (118 g)}, calories=105]
  \nfrow{Total Fat}{0.4g}{1}
  \nfrow[1]{Saturated Fat}{0.1g}{1}
  \nfrow{Total Carbohydrate}{27g}{10}
  \nfrow[1]{Dietary Fiber}{3.1g}{11}
  \nfrow{Protein}{1.3g}{}
\end{nutritionfacts}

Per-100 g table

\begin{nutritiontable}[per=100 g, portion={1 egg (50 g)}]
  \nfitem{Energy}{143 kcal}{72 kcal}
  \nfitem{Protein}{12.6 g}{6.3 g}
\end{nutritiontable}

Download

The example values come from USDA FoodData Central. The package only typesets the numbers you give it; it does not calculate daily values or check labelling rules. Questions: strawbelly.app@gmail.com.

Need the numbers first? Look up a food on our food calorie pages, or work out a daily target with the calorie calculator.

Counting calories, finally cute

Snap a meal with Snowbelly and see calories, protein and fiber in seconds.

Free on the App Store