Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local show/hide option seems to affect whole paragraph / TikZ picture #5

Open
FloMiLe opened this issue Aug 30, 2020 · 1 comment
Open
Labels

Comments

@FloMiLe
Copy link

FloMiLe commented Aug 30, 2020

In the following MWE, cloze texts should generally be hidden due to the global option, but some should be shown as per local options. However, in cases where multiple clozes appear in a paragraph or a TikZ picture, the las local option seems to dictate the behavior of all others.

\documentclass{article}
\usepackage{tikz}
\usepackage{cloze}
\clozehide

\begin{document}

This \cloze{cloze} should be hidden.

This \cloze[show]{cloze} should be shown.

This \cloze{cloze} should be hidden. This \cloze[show]{cloze} should be shown.

This \cloze[show]{cloze} should be shown. This \cloze{cloze} should be hidden.

Cloze inside a TikZ: \tikz[baseline=(C.base)] \node (C) {This \cloze{cloze} should be hidden.};

Cloze inside a TikZ: \tikz[baseline=(C.base)] \node (C) {This \cloze[show]{cloze} should be shown.};

Cloze inside a TikZ: \tikz[baseline=(C.base)] {
	\node (C) {This \cloze{cloze} should be hidden.};
	\node at (5,0) {This \cloze[show]{cloze} should be shown.};
	}

Cloze inside a TikZ: \tikz[baseline=(C.base)] {
	\node at (5,0) {This \cloze[show]{cloze} should be shown.};
	\node (C) {This \cloze{cloze} should be hidden.};
	}

\end{document}
@Josef-Friedrich
Copy link
Owner

Thank you for pointing out this bug. A quick fix might be if you use \clozefix instead of \cloze.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants