Generate Logic Circuit Diagrams Tex Latex Stack Exchange