TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

I am creating a flash card for Double Complement Law. My code gets me the desired effect. I am still curious to know if this is the most efficient method of accomplishing this.

[$](\overline {\overline{x}})=x[/$]
share|improve this question
I would say so, since it is a generic way of writing the complement of some symbol. An alternative would be to define a new command that writes the double complement, but I don't find that "better" or "more efficient". – Werner Oct 23 '11 at 6:55
up vote 4 down vote accepted

Simply define:


and use \doubleol{x} instead \overline {\overline{x}} otherwise if you need to have this kind of thing a lot in your document, you find that you waste too much time on typying and obviously sometimes it may produce error (e.g. you forgot to put one } or instead }, you put ])

share|improve this answer
I am assuming that I can add this to the header. Am I correct? – somehume Oct 23 '11 at 6:58
Yes, you can put it in the preamble of your document (between \documentclass{...} and \begin{document}) – IRAN Oct 23 '11 at 7:01

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.