1

Is it possible to define non-ASCII tags? I'm looking to stuff like

\начать{стих}
   некоторые \акцент{вещи} и другие
\конец{стих}

Which is:

\begin{verse}
   some \emph{stuff} and other
\end{verse}

It is needed especially for languages written from right to left to make text more readable.

So basically I want to define

  • generic tag using Unicode name
  • Define environments using Unicode names.

It it possible? Is it possible for tags only?

6
  • Related: tex.stackexchange.com/questions/192130/…
    – user31729
    Commented Jan 12, 2016 at 15:36
  • yes with xetex as long as the letters have catcode 11 (which they should have if they are normal letters) then you can use them just as you use a-z in pdftex Commented Jan 12, 2016 at 15:40
  • @ChristianHupfer it is the same question but the xetex answer there is just in a comment. Commented Jan 12, 2016 at 15:41
  • @DavidCarlisle: You can answer it ;-)
    – user31729
    Commented Jan 12, 2016 at 15:42
  • The question linked wasn't really answered also I'd like to know if it is possible to define new aliases for begin/end and environment names.
    – Artyom
    Commented Jan 12, 2016 at 15:51

1 Answer 1

1

Ok as nobody had written:

this works

\newcommand{\начать}[1]{\emph{#1}}
\let\начать\begin
\let\конец\end
\newenvironment{стих}{\begin{verse}}{\end{verse}}

Works out of the box, thanks to @David Carlisle for \let\xyz\begin tip

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .