Is it possible to edit source code in Lyx?

Otherwise, how might I draw diagrams like venn diagrams or graphs

2 Answers 2


Quick answer is no, though you can export the file to LaTeX and work from there.

Re. second question, you can insert any TeX code in LyX by using Ctrl+L (TeX button).


here is an example: http://tug.org/PSTricks/main.cgi?file=LyX/lyx

  • 1
    I think the community agreed that questions should not just contain links to other sites: "the solution should be entered in the text of the answer itself. Attributions to external sources are fine – and encouraged! – but just linking to solutions posted elsewhere outside of the site should be discouraged." (from Quality Standards for Answers)
    – Jake
    Aug 28, 2011 at 12:49

You must log in to answer this question.

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