I just downloaded the package stmaryrd and have a LyX LaTeX Beamer document in which I want to insert some symbols with this package (\llbracket). Is there a way to make LyX include the package in the file, without having to edit the underlying document outside of LyX? Thanks!


LyX has an option to edit the LaTeX preamble (under Document > Settings > LaTeX Preamble), and in there you can insert:


And then you can insert the symbols you need using its feature for inserting LaTeX codes directly.

Getting the symbols to appear correctly in the LyX preview screen is another matter, and probably very difficult if not impossible, however.

  • Thanks, but can you please give me the exact menu/button names? I've been looking like mad. There is no menu item "Layout" and I can't find anything that works in the menu "Document". – Felix Dombek Jan 17 '11 at 5:04
  • @Felix: I change the menu path to what I think is correct (I have never actually used LyX). – Caramdir Feb 17 '11 at 4:45
  • @Caramdir: thank you so much! (I feel extremely stupid now for not finding it though ...) – Felix Dombek Feb 17 '11 at 8:09
  • Sorry I must have been looking an an older/different version of LyX. I don't even have it installed anymore. – frabjous Feb 17 '11 at 12:52
  • I've also been looking like mad as to how to get custom latex packages to render in preview in lyx... I found a similar question, I really would like to see either question answered: tex.stackexchange.com/questions/6525/… – Adam Miller Feb 10 '13 at 1:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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