{lyx} specifically is for questions about the LyX document-authoring application, that uses LaTeX for typesetting. Check that your problem isn't really a LaTeX problem before using this tag: export your file as LaTeX and try to compile this to find out.

learn more… | top users | synonyms

1
vote
1answer
2k views

How to write raw text verbatim in LyX?

I want to write PlantUML diagrams from within LyX, and I want to put the result right into the document itself. To do so, I attempted to create a comment environment, in which I put the diagram ...
3
votes
3answers
1k views

Adding my own format to lyx

I have written a LaTeX math document with lyx (using document ams class), but now my teacher sent me some LaTeX code which should make the style as he wants it. I tried a few options to insert the ...
5
votes
1answer
2k views

How to change the way theorems are displayed with LyX?

The theorems are currently all displayed in bold, but I would like to display them in small-caps. My question is much like this one. However, I am using LyX with an AMS style document class, and was ...
7
votes
0answers
562 views

using \input and pygmentize together: trying to get line numbers to show [closed]

I am using pygments to highlight the code I insert in my lyx document. The external file gets inserted in my document like this: {\small \input{listings/blah.tex} } And I use this command to ...
4
votes
2answers
405 views

Powerdot shrink text in figure caption

I am using the powerdot class to make my first presentation in LaTeX (LyX). I have a figure whose caption contains a lot of text. Currently the text rolls off the slide. I can manually change the font ...
4
votes
1answer
2k views

`backgroundcolor` in `lstset` does not work

When I use the backgroundcolor option in lstset, all I get is a colored line above the listing: \lstset{% language=Matlab, backgroundcolor=\color{blue} } and in the document: ...
8
votes
3answers
540 views

Keeping the names of things consistent in LyX.

I'm documenting a software project using LyX and many of the "things" (classes, processes, etc.) that I'm describing don't yet have good names. As my understanding of these things improves, I want to ...
3
votes
1answer
513 views

Error: class or style file required by it is not available

I'm new to Latex. I'm running Ubuntu 10.10 64-bit with Lyx 1.6.7. I had created a modified APA template for school. It works on my Windows XP and Mac OSX systems. But in the Ubuntu system I get an ...
4
votes
2answers
3k views

Resize large images that exceed page margin whilst respecting existing scale

The solution posted here Scale (resize) large images (graphics) that exceed page margins works great. Just to summarise, Dave Jarvis suggested \usepackage{graphicx} % Determine if the image is too ...
16
votes
3answers
4k views

Use a quality glossary and acronym list in Lyx

The question How to combine Acronym and Glossary shows us how to make a great glossaries and acronym lists. I would like to use a quality glossary and acronym list in Lyx. This may be too large a ...
9
votes
1answer
7k views

LyX - changing subsection from numbers to letters

I have a problem set that I want to type up. In my section, i get numbers which is fine since I have 4 problems on my problem set. But each subsection is lettered on my problem set, so I would like ...
1
vote
2answers
652 views

\int does not work on my LyX

Just starting to use LaTeX to type up my homework. I am doing differential equations right now and I have to type in an integral symbol. However when I do that, and try to make a DVI, LyX gives me ...
5
votes
3answers
3k views

LyX enumeration style from numbers to letters

I'd like to use, for this specific instance, letter style enumeration [ like a) b) c) ] . I realize that I can nest one enumerate environment in another and the style will change, but I don't want a ...
3
votes
1answer
523 views

Is there a way to change the appearance of LyX output with change tracking (or alter the commands in LaTeX)?

I tend to use LyX for composing scientific papers, but a journal wants me to have changed text marked in specific ways that don't happen to be the way that LyX translates tracked changes into PS/PDF. ...
6
votes
1answer
2k views

Apply gradient (shading) background to algorithm listing

Background A number of source files are included within floating algorithm boxes. The source files are PNG images with a transparent background. The document is edited using LyX. Problem The source ...
10
votes
3answers
4k views

Two-sided document: reverse page margins for hardcopy

Background Wrote a manual in LyX. The PDF is two-sided. Using KOMA Script v2. The pages are 8.5" x 11". Problem The spacing on the margins is not printer-friendly, it is reversed: Since this ...
1
vote
1answer
547 views

Unequivocally force first reference to same page as the referred item?

Background Writing a manual using LyX. All tables, figures, and source listings are always referenced in the paragraph (or enumerated step) that immediately precedes them. The preamble to the manual ...
4
votes
1answer
298 views

Use a longtable in Lyx

The following compiles well in Kile but when imported into Lyx the title is duplicated and the "continued on next page" incorrectly appears at the end of the table. %% LyX 1.6.7 created this file. ...
3
votes
1answer
4k views

How do I fix missing 'fi' characters in LyX?

I have a paper written and edited in LyX. On a printing today I noticed that all 'fi' combinations are not visible. The characters are in the document and displays in the PDF but doesn't print. Is ...
3
votes
2answers
3k views

How do you install a module in Lyx?

How do you install a module in Lyx? I find this site is not helpful enough: http://wiki.lyx.org/Layouts/Modules
6
votes
1answer
5k views

Use custom latex package in LyX

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 ...
11
votes
1answer
3k views

How to create (1) a new Environment for LyX's Environment drop-down menu, (2) a new Text Style

My two part question pertains to LyX. How do you create a new "Environment" ("Paragraph Style") for LyX's Environment drop-down list (Standard, Itemize, Enumerate, Chapter, Section, Subsection, ...
11
votes
2answers
4k views

Use xcolor for colored tables in a beamer slide

How can I use a table with alternately colored rows like this in a beamer slide? There seems to be a conflict with beamer and xcolor. I am using LyX too, bonus marks for something that works well in ...
9
votes
1answer
874 views

Can Lyx syntax files override document class defaults?

I'm editing a client's Latex file in Lyx, where the client has used a document class not supported by Lyx. In these cases, I use tex2lyx with either -c article or -c report to ensure Lyx can import ...
7
votes
1answer
7k views

Using BibTeX with LyX: errors in auto-generated .bbl

I've been puzzling with this for hours now and I can't solve it. I'm using LyX for my article and I made a BibTeX file with JabRef. I inserted the BibTeX bibliography into LyX, but when I try to ...
1
vote
1answer
5k views

Create appendix in Lyx

I am trying to create appendix in Lyx. I use 'Document->Start Appendix Here' just before the beginning of the appendix text, and I can see that the text before the Bibliography is wrapped in an ...
0
votes
2answers
1k views

Why don't my images show up?

I am using LyX to create my documents. I then export them to plain LaTeX and use XeLaTeX to create a PDF output. My images show up in the LyX document but not in the PDF output. LyX generates this ...
3
votes
1answer
1k views

Newline in a “cases” environment

I have the same issue as in this question: Split-like environment inside cases environment with one difference - I would like to get the same result with LyX, using as little LaTeX code as possible. ...
11
votes
1answer
1k views

Alternatives to $\backslash$

Background Instead of marking up the text with bold or emphasis, I read (and agree) that it is better to define a command, or environment, that describes the content. Then apply text formatting ...
13
votes
2answers
4k views

Create new paragraph style in LyX

Background In OpenOffice and Microsoft Word it takes seconds to create a new paragraph style. Here is how I currently use LyX with the KOMA Script document class to mark text as a quotation: Type ...
4
votes
1answer
730 views

Creating wysiwyg preview for a custom math functions on lyx

Let's say I want to create a "macro" called \limx that will be defined as: \newcommand{\limx}{\displaystyle{\lim_{x\to\x_{0}}}} How can I make LyX recognize it and make an auto-prieview of it? ...
7
votes
3answers
6k views

Rename “Algorithm” to “Listing”

Background Syntax-highlighted source code image listings are being used as Algorithm floats with the lst: prefix for captions. Problem The following LaTeX code in the preamble renames the caption ...
12
votes
4answers
8k views

Scale (resize) large images (graphics) that exceed page margins

Background A large number of screen captures have been scaled 300% at 288dpi. They appear correctly when embedded in OpenOffice, but not LyX. Problem Images that do not extend beyond the margins ...
3
votes
1answer
1k views

Table, Figure, and Listing prefixes

Background Using LyX and KOMA Script to author a technical manual. Problem The documents are strewn with the following references: \ref{fig:Example-Database-Type} When converted to PDF, this ...
11
votes
3answers
6k views

How can I center all tables in a document?

Background Would like to center all tables within floats, without having to add \centering to each table. Ideas Tried the following: \let\originaltabular\tabular ...
2
votes
1answer
2k views

Autofit table column with booktabs

Background Using booktabs produces the top table in the following image: Both tables reside in floats, but even when outside of the float the same result is produced. The Application and Version ...
4
votes
1answer
16k views

Lyx Templates site

Does anyone know of a site which collates Lyx templates and provides previews of how they look? I don't just mean thesis layouts but also letters, essays and all sorts. Many thanks in advance.
3
votes
1answer
4k views

Paste images into LyX

A fair amount of my homework is of the form: prove some statement then paste in a bunch of graphs verifying it experimentally. LyX makes me save images I paste in, which is really annoying when I ...
15
votes
5answers
2k views

How to include graphs in my document?

I've just started using LyX for my Economics essays. Using Inkscape, I have been able to create some very neat diagrams to go with them. However I really need to be able to insert graphs (XY charts, ...
4
votes
2answers
4k views

Using jabref generated bibliography with lyx

I'm using a jabref generated bibliography in lyx according to the following instructions: http://ubuntuforums.org/showthread.php?t=477632 It works well, except for one type of error which I cannot ...
6
votes
2answers
5k views

Setting document width in Lyx

When I view my document in a PDF with pdflatex, my stuff is squished into like only 60% of the page, leaving the rest an ugly, unused whitespace. How do I fixed this (preferably in Lyx)?
7
votes
2answers
4k views

Customize line-spacing and indentation of a list in LyX

I am currently using a list with bullet-points; however, I think the lines are spaces too far apart and they're indented way too much. I don't see any way to correct this in LyX, however.
8
votes
2answers
665 views

Can one “fold” part of the paragraphs in LyX

By "folding", I mean condense some part of the codes, and by one click , you can unfold them.
6
votes
2answers
665 views

Lyx customized view of command

I have a command definition in my LaTeX preamble: \newcommand*{\code}[1]{\texttt{#1}} But the usage of this command appears as an ERT e.g. \code{select}. I would like this to appear as select that ...
3
votes
1answer
2k views

LyX new macros and instant preview

When we define new macros in LyX, can we still have instant preview for them? For example, I defined a new command \abc, but when I put \abc in the math inset, it does not have instant preview. ...
3
votes
1answer
227 views

What is the black part in the Lyx window?

Just some very basic questions as a new user... What is that black part under the pink part of the Lyx window? Can we change the pink color? Can we remove the black part? Why can't we use "Enter" to ...
20
votes
5answers
3k views

How to embed screenshots properly?

I have a .png screenshot and I want to insert it in a LyX document. However, the screenshot needs scaling to fit in my column width. Downscaling (or upscaling) the image, if done wrong, gives all ...
3
votes
1answer
2k views

LyX AMS align environment justification/ horizontal alignment

I'd like to know how to justify individual columns in the AMS align environment. In the matrix environment, the Table toolbar buttons are active, but not inside the AMS align environment.
1
vote
2answers
7k views

Lyx template for scientific paper

Anyone know of any simple Template for scientific paper which is easy to modify and looks great? So that i don't have to use several hour to find out the syntax.
2
votes
4answers
7k views

Lyx template for scientific paper

Anyone know of any simple Template for scientific paper which is easy to modify and looks great? So that i don't have to use several hour to find out the syntax.