CTAN Comprehensive TeX Archive Network

Directory macros/luatex/generic/cloze



EN: cloze is a Lua/ package to generate cloze. It uses the capabilities of the modern engine LuaTex.

DE: cloze ist a Lua/-Paket zum Erstellen von Lückentexten. Es nutzt die Möglichkeiten der modernen -Engine Lua.


Copyright (C) 2015-2020 by Josef Friedrich <josef@friedrich.rocks>

This work may be distributed and/or modified under the conditions of the Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in:


and version 1.3 or later is part of all distributions of version 2005/12/01 or later.


Since July 2015 the cloze package is included in the Comprehensive Archive Network (CTAN).




Get source:

git clone git@github.com:Josef-Friedrich/cloze.git
cd cloze



or manually:

luatex cloze.ins
lualatex --shell-escape cloze.dtx
makeindex -s gglo.ist -o cloze.gls cloze.glo
makeindex -s gind.ist -o cloze.ind cloze.idx
lualatex --shell-escape cloze.dtx


First delete the stable version installed by Live. Because the package cloze belongs to the collection collection-latexextra, the option --force must be used to delete the package.

tlmgr remove --force cloze

Deploying a new version

Update the version number in the file cloze.dtx on this locations:

In the markup for the file cloze.sty (approximately at the line number 30)

  [2020/05/20 v1.4 Package to typeset cloze worksheets or cloze tests]

Add a changes entry (approximately at the line 90):


In the package documentation documentation.tex (approximately at the line number 125)

\date{v1.6~from 2020/06/30}

In the markup for the file cloze.lua (approximately at the line number 1900)

if not modules then modules = { } end modules ['cloze'] = {
  version   = '1.4'

Update the copyright year:

sed -i 's/(C) 2015-2020/(C) 2015-2021/g' cloze.ins
sed -i 's/(C) 2015-2020/(C) 2015-2021/g' cloze.dtx

Command line tasks:

git tag v1.4
make ctan

Download the contents of this package in one zip archive (573.7k).

cloze – A Lua package for creating cloze texts

This is a Lua or Lua package for generating cloze texts. The main feature of the package is that the formatting doesn’t change when using the hide and show options.

There are the commands \cloze, \clozefix, \clozefil, \clozenol, \clozestrike and the environments clozepar and clozebox to generate cloze texts.

Bug trackerhttps://github.com/Josef-Friedrich/cloze/issues
Version1.6 2020-06-30
LicensesThe Project Public License 1.3
Copyright2015–2020 Josef Friedrich
MaintainerJosef Friedrich
Contained inTeX Live as cloze
MiKTeX as cloze
Guest Book Sitemap Contact Contact Author