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

Fixing that each document will return true for \ifmonograph besides \if[pubtype] #25

Open
wants to merge 1 commit into
base: ally
Choose a base branch
from

Conversation

mhottenroth-le-tex
Copy link
Contributor

Hi, @LupinoTech.

I found an issue with the pubtype parameter in the CoCoTeX document class. With the current pubtype choice definition, where the initial/default value is mono, \ifmonograph will always return true, no matter which pubtype has been set in the document parameters. However, the \if[pubtype] that corresponds to the set pubtype will also return true. Putting the initial value mono for the respective choice key to the top fixes that issue.

Please evaluate that and merge if you can confirm that my fix is valid. An MWE for testing the issue is below:

% 
\documentclass[english,french,swedish,danish,portuguese,greek,main=ngerman,pubtype=collection]{cocotex}
\usepackage{htmltabs}
\usepackage[format=print,layout=170,verlag=vr, authorbioposition=placed, abstractposition=placed, logoColorsQnt=1]{vr}

\begin{tpMeta}
\end{tpMeta}

\begin{document}

\ifcollection
  \typeout{++++++++++++++++++++++ It’s a collection!}%
\fi
\ifarticle
  \typeout{++++++++++++++++++++++ It’s an article!}%
\fi
\ifjournal
  \typeout{++++++++++++++++++++++ It’s a journal!}%
\fi
\ifmonograph
  \typeout{++++++++++++++++++++++ It’s a monograph!}%
\fi

\end{document}

Kind regards,
Marcus

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

Successfully merging this pull request may close these issues.

1 participant