TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

How to make a dictionary with LyX ? I found this page about this in LaTeX. The \newenvironment and \newcommand i put in Preamble or inside the text?

share|improve this question

closed as not constructive by Marco Daniel, Kurt, T. Verron, Martin Schröder, mafp Feb 22 '13 at 18:42

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! Please consider adding more detail including a Minimum Working Example (MWE) to your post. That might help others to provide solutions. – Peter Jansson Feb 22 '13 at 17:57
up vote 2 down vote accepted

\newenvironment and \newcommand have to go into the preamble "Document > Settings ... > LaTeX Preamble".

Note that they will not automatically create new styles. Unfortunately, you have to write LyX styles yourself. (For more details, see "Help > Customization" in LyX, and an example is here.)

Alternatively, you could use "TeX code" / ERT (Ctrl-L) and write LaTeX directly, but then there is not much gain in using LyX. Or - if the dictionary is only a part of your document - you can include LaTeX code via "Insert > File > Child Document" using "Include Type: Input".

share|improve this answer
Thank you! I will try it! – norbux Mar 15 '13 at 19:38

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