10

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!

1 Answers1

12

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

\usepackage{stmaryrd}

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.

Caramdir
  • 89,023
  • 26
  • 255
  • 291
frabjous
  • 41,473
  • 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 05:04
  • @Felix: I change the menu path to what I think is correct (I have never actually used LyX). – Caramdir Feb 17 '11 at 04:45
  • @Caramdir: thank you so much! (I feel extremely stupid now for not finding it though ...) – Felix Dombek Feb 17 '11 at 08: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: http://tex.stackexchange.com/questions/6525/creating-wysiwyg-preview-for-a-custom-math-functions-on-lyx – Adam Miller Feb 10 '13 at 01:00
  • @frabjous where should I put the file I've downloaded from CTAN? How does Lyx knows about the package if it's not downloaded yet? – bobsacameno Nov 23 '18 at 09:00
  • @bobsacameno You should install the package with your TeX distribution's package manager rather than simply downloading it from CTAN. LyX doesnt need to know about it; only LaTeX does. – frabjous Nov 24 '18 at 17:27
  • @frabjous and how do I install that? (I'm using a Mac) – bobsacameno Nov 25 '18 at 08:13
  • @bobsacameno Why am I not surprised you're using a mac? Google how to install a package with your TeX distribution's package manager. Without even knowing what TeX distribution you're using, it's a bit hard for me to guess. – frabjous Nov 26 '18 at 02:20