TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 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!

share|improve this question
If you ever wanted to know what package to use for any other symbol, you'd think this question was a little restricted! :) – Adam Miller Feb 16 '13 at 22:13
up vote 7 down vote accepted

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.

share|improve this answer
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 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.