Take the 2-minute tour ×
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.

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
1  
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
add comment

1 Answer

up vote 3 down vote accepted

Simply define:

\newcommand{\doubleol}[1]{\overline{\overline{#1}}}

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
1  
Yes, you can put it in the preamble of your document (between \documentclass{...} and \begin{document}) –  IRAN Oct 23 '11 at 7:01
add comment

Your Answer

 
discard

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.