TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using a virtual greek keyboard and the following packages it's possible to directly implement Greek unicode characters (e.g. θ)


However the displayed characters in the PDF are always the Greek variants e.g. \vartheta as opposed to \theta.

Is there any way to avoid this other than \let\vartheta\theta for each character?

share|improve this question


The Unicode definitions for theta are:



With the first of those being the one in your question, and the second being the more curly open one.

However in the encodings set up by the ucs package a U+03b8 character will by default give you \texttheta (which would probably give you the right character in text mode if you loaded the correct font encodings, I got undefined command) But if you use the [mathletters] option as in your fragment it switches to use the definition


in the file uni-3.def

I.e., assumes that you want the theta-symbol character in math mode. So the \let you suggest would be one way, or you could over-ride this definition:





 (e.g. θ)


which produces:

enter image description here

The full set of \var... in uni-3.def is

5 matches for "\\var" in buffer: uni-3.def
share|improve this answer

If you want to avoid ucs (which clashes e.g. with biblatex) you can use the lgrxenc.def and lgrenc.dfu provoided here: http://milde.users.sourceforge.net/LGR/

lgrenc.dfu maps e.g. U+03BB to \texttheta which I think should be the symbol you want.

share|improve this answer

It appears that you are using an outdated version of ucs. Starting with version 2.0 from April 2012, both normal and variant greek characters map to the proper macros when using the mathletters option. See my blog article New release of the ucs LaTeX package.

If you have to stick to your older ucs version, you can also modify the mappings from characters to TeX code, which is cleaner than redefining the greek letter macros via \let. However, using \uc@dclc, as in the answer from David Carlisle, is not recommended. The user-level command to use is \DeclareUnicodeCharacter. See the package documentation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.