slavonic / cu-tex

Church Slavonic support for TeX and derivatives
MIT License
4 stars 2 forks source link

\cuKinovar in \newenviroment #66

Open EliseyP opened 4 years ago

EliseyP commented 4 years ago

I'm trying define such enviroment for paragraph (for styile-converting from LibreOffice with writer2latex and for further processing):

\newenvironment*{Txt}[1]{%
  \ifthenelse{\equal{#1}{K}}{\cuKinovar }{}%
  \ifthenelse{\equal{#1}{L}}{\cuLettrine }{}%
  % some other tests and other features (\noindent etc.)
}{\par}

\begin{Txt}{K}
Текст текст текст
\end{Txt}

and \cuLettrine work fine, but \cuKinovar isn't.
May be someone can help with it?
(\NewDocumentEnvironment and \NewEnviron not working too)

Thanks, Elisey

pgmmpk commented 4 years ago

@EliseyP did it work before recent kerning patches?

EliseyP commented 4 years ago

Not, I hope, patch solve this, but not.
It output: Argument of \ifthenelse has an extra }. \begin{Txt}{K}

EliseyP commented 4 years ago

Now I'm using \newcommand{\Txt} with similar features. It work.

typiconman commented 4 years ago

Is this still an issue or can this be closed?

EliseyP commented 4 years ago

Still issue, I think.