This has nothing to do with LyX in the first place, it is just nomencl
’s standard behaviour. The \nomenclature
command just stores the entry for the list, but it does not print any text. However, you can redefine the \nomenclature
command in order to print the text as well. You could, for instance, put the following in the preamble of your document:
\let\nomenclOrig\nomenclature
\renewcommand*{\nomenclature}[3][]{#2\nomenclOrig[#1]{#2}{#3}}
The first line stores the \nomenclature
command in \nomenclOrig
. This is necessary, since we have to redefince the \nomenclature
command. This is done in the second line. Since the \nomenclature
command has two mandatory arguments and one optional argument, we have to specify 3 arguments (the [3]
bit). The optional argument has no standard value (the []
bit). Then we print the second argument (which is the first mandatory argument, since the optional argument is always #1
) as normal text and use the original command that we have stored in \nomenclOrig
.
I tried this with LyX, without problems. Note, though, that the two lines will give an error in a document without a nomenclature entry or list, because then LyX will not load the nomencl
package and thus the \renewcommand
will throw an error.
The method suggested by Gonzalo Medina in a comment works also in LyX.
Having created your table, add an ERT (TeX code box, with Ctrl + L) and type \cellcolor{LightGreen}
in the first cell that your multirow
should cover. Copy this ERT to the rest of the cells, and in the bottom one, write \multirow{-8}{2.5cm}{<your text>}
after the \cellcolor
. Note the negative number in the first argument.
In addition, you have to remove the lines above/below the cells that are part of the multirow
with the buttons on the toolbar:
If not, the lines will be above the colored area.
LyX and PDF-view (click to enlarge):
A final note (you are probably aware of this):
Unless the multirow
feature in LyX has been used elsewhere, you have to add that package to the preamble, in Document --> Settings --> LaTeX preamble. The xcolor
package with the table
option must be loaded to be able to color the cells:
\usepackage{multirow}
\usepackage[table]{xcolor}
Best Answer
Write your
tikzpicture
in a separate plain text file, then include it in your LyX document, using the menu item Insert | File | Child Document.You have to make sure that you use the Include type: Input here.