{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

7
votes
3answers
8k 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)?
6
votes
4answers
3k views

LyX is leaving a big gap between paragraphs in the place where float (figure) should be

I just want to ask about why is LyX leaving a big gap between paragraphs surrounding a figure?. Not all paragraphs, but only between those paragraphs where I inserted a float (figure). The figure is ...
6
votes
2answers
827 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 ...
6
votes
1answer
242 views

Loss of figure subsection numbers when using mainmatter

I recently added \frontmatter, \mainmatter, etc. with the \numberwithin setting for my figures and tables into a document, but now my figures are no longer numbered by subsection on export. Inside ...
6
votes
1answer
264 views

How do I realize an arrow representing “line numbers” in LyX?

I want to draw an arrow, who shall represent line numbers like in the following screenshot. I struggeled with xymatrix, but this doesn't seem to be the right approach. Any ideas?
6
votes
1answer
6k views

single column abstract in an article and delete date below title

I am using LyX to prepare my journal for publication using article style. I use double column article. When I choose abstract from left panel, the abstract turns out to be in left-column in double ...
6
votes
3answers
5k views

Using LyX, how do you put a table and a figure side by side and caption them Table XX and Figure XX?

I have found solutions for them to be done in normal TeX, but how do I do this in LyX? What I wish to obtain is something like that shown in Table and Figure side-by-side with Table caption above, ...
5
votes
1answer
506 views

Similar header format for my company

I need to reproduce the following header format: Please help; I'm a completely starter at LaTeX or TeX. I work with LyX and this is included in the document's preamble: \usepackage{fancyhdr} \...
5
votes
1answer
334 views

LyX: Paragraphs ignored in PDF output

I have a document with article class. Here's the minimal example: #LyX 2.0 created this file. For more info see http://www.lyx.org/ \lyxformat 413 \begin_document \begin_header \textclass article \...
5
votes
4answers
9k views

equations that are too large to fit on one line

I have an equation that is too long to fit on one line: x = a + b + c + d + e + f as an example of what it looks like. What is the correct way to handle this? Do i break it up over multiple lines? ...
5
votes
3answers
7k views

lyx shortcut for superscript and subscript

Instead of using the menu for Insert->Formatting->Superscript or Subscript, I would like to use a keyboard shortcut. I tried Tools->Preferences->Shortcuts, there are already shortcuts for math-...
5
votes
1answer
277 views

LyX “table” not capitalized IEEEtran

It seems I'm having a lot of issues with using the ieeetran class in Lyx. Currently the word "Table" appears instead of "TABLE". Each of the letters is supposed to be capitalized, but right now just ...
5
votes
2answers
2k views

Lyx 2.0 Formatted references to theorem/lemma/claim environments

In Lyx 2.0, I'm trying to use a formatted reference to a claim, but I cannot get the "formatted" part, i.e. I can't get it to typeset "claim" as well as the claim number. I'm using modules "Theorems (...
4
votes
4answers
7k views

LyX: add multiple authors

In Lyx, I have to insert 3 authors in an article. For each one of them I will have to specify their email address and the university they belong to. Two belong to the same one: author_a, author_a@...
4
votes
1answer
2k views

Removing a page numeration from Table of Contents

In LyX, how can I make the pages numbers start from the second page? (i.e., making the first page, which is the table of contents in my case, not having a page number on it)
4
votes
1answer
460 views

Combining threeparttable with cross references - LyX

I was wondering if there was a known issue with combining threeparttable with cross references inside a float. I have my labels inside the table captions, and this works just fine unless ...
4
votes
2answers
649 views

Vertical alignment of tables when using numbered list in LyX

I have a table on my numbered lists but the number is appearing in the middle, I want it to be at the top like normal. This is what it looks like when using tables. (Screenshot below) I've attached a ...
4
votes
1answer
478 views

Lyx: Works Cited + (separate) Annotated Bibliography

I'm using mostly default settings in Lyx. How can I create two distinctly titled sections at the end, one for "Works Cited" and the next for "Annotated Bibliography"? Also, if I have normal "...
4
votes
1answer
1k views

LyX TeX Table too big

I am including a TeX file into a LyX document using Insert -> Child Document. The Table looks fine on the LyX screen but when I preview the PDF it is 10 times too big. Not sure how to fiddle with the ...
4
votes
1answer
40 views

Lyx: Reduce vertical spacing of items [in UI only]

I like to use lists to structure my ideas before writing them down. To organize these notes it is very convenient to have shortcuts to exchange and change the level of indentation (just as in Emacs ...
3
votes
1answer
325 views

How do I install a custom .cls and .bst file on Fedora 20?

I would like to add a .cls and a .bst file to texlive that will then be found by LyX. Is there a preferred way to do this? I would prefer a solution that will last a while / won't have to be fixed ...
3
votes
1answer
1k views

Error, command already defined - IOP article with mhchem [duplicate]

I am using LyX to prepare an article. The document class is 'IOP article' and I am using the mhchem package to typeset chemical formulae in the paper. I include \usepackage[version=3]{mhchem} in the ...
3
votes
1answer
4k views

Insert Abbreviations in LyX document

I would like to generate the abbreviations entry in the report written in LyX. I could not find it. I would like to know 3 things : Insert the abbreviations table in the TOC. Insert the ...
3
votes
0answers
237 views

How can I automatically copy a LyX-generated .aux file to the working directory for cross referencing?

This is a follow up to: Using the xr package in LyX (for cross-referencing an external LyX document) I have two LyX documents, called draft.lyx and supplement.lyx. I need to compile them into ...
3
votes
0answers
257 views

Wrong numbering persists in LyX [closed]

When I try to organise my notes using Section\Subsection\Subsubsection numeration, I keep getting the wrong numbers in the editor: Previously, I've got help finding the solution to fix this problem ...
3
votes
2answers
222 views

Remove header from the page after TOC and LOF

I am using Koma-script book document class, twosides, and I also use the package \fancyhdr to modify my pages. The problem is that header appears both in the next page after TOC and after LOF, so I ...
3
votes
1answer
758 views

How can you place a figure caption inside a table using LyX?

I have 3 graphs I would like to use in a LyX document. In order to save space I have placed the 3 graphs into a 2x2 table and in the final box I have inserted the figure caption. When I try and ...
3
votes
0answers
36 views

footmisc hang and multiple only work with english document langage [duplicate]

When I set the document to my local langage, French, and with appropriate quote style in LyX, this preamble doesn't work (neither hang nor multiple, which other options do work), \usepackage[hang,...
3
votes
1answer
2k views

Thesis template - LyX

I have two questions and I cannot find a solution up to now: I open a predifined template from thesis (i.e. chapter-1.lyx) and all the mathematical equations that I insert with Ctrl+Shift+M are ...
3
votes
1answer
3k views

Noun in math mode

this is propably an Ubuntu packaging error; but just to confirm... \documentclass{article} \begin{document} $\noun{name}$ \end{document} ... this works on your texlive (2009) distribution with ...
3
votes
1answer
1k views

Citation Style in LyX

I am using LyX on Max OS X. When I insert a citation and I compile the document I get a reference number between square brackets that matches the number of the reference in the bibliography section. ...
3
votes
2answers
3k views

Alignement in columns and spacing between columns of an equations environment

(Too) Long ago, I had some problems with some equation. I wanted them to look like this (this is how they looked in LyX), but when compiled they looked like this: . What botheres me compared to ...
3
votes
1answer
1k views

Footnotes: Label in paragraph, text somewhere else?

TL;DR: Is there a package that allows writing the text of a footnote after the position where the mark should be inserted? Note that I'm asking about positioning of source code, not about positioning ...
2
votes
1answer
352 views

Inhibit indentation of first paragraph of quotation

I'm using LyX. Would it be possible to format something as "quotation" in a way in which the first paragraph doesn't get indented but the subsequent paragraphs does, like the way in which text ...
2
votes
1answer
5k views

Fractions with `\dfrac` cause compile error

I'm new to LyX. I'm writing my next homework with it to give it a try. My example code is below: % Preview source code %% LyX 2.0.5.1 created this file. For more info, see http://www.lyx.org/. %% ...
2
votes
1answer
105 views

Page numbers at the bottom in lyx

How to add page numbers at the bottom center of page in LYX? The page numbers are not coming properly. The document class is book. By adding the following code in preamble \usepackage{scrpage2} \...
2
votes
1answer
449 views

How to generate a database or reference in bibliography?

I am new to LyX. I want to add bibliography but I don't have any database to insert. So how can I type the references directly in LyX or how to create a database and then insert it? Also is there any ...
2
votes
1answer
2k views

LyX: Problem with longtable in landscape

I am trying to embed a longtable in landscape mode. What I have always done is put \usepackage{longtable} and \usepackage{pdflscape} in the preamble, then put the table between \begin{landscape} and \...
2
votes
1answer
487 views

memoir margins and hyperref

I'm trying to use the hyperref package with the memoir class but the bottom margin of the document is no longer 2 cm as I set it. Rather, it seems like there is no margin at all. When I remove the ...
2
votes
2answers
924 views

Hyperref to external file in LyX

I have two separated folders, each includes LyX files with the needed attachments (pictures...etc.) , I found that I need to to use zref-xr package to make hyper cross references between those files (...
2
votes
1answer
2k views

Lyx on Ubuntu 14.04: Spell checker has no dictionaries

Situation: I'm trying to spell check for German in Lyx on Ubuntu 14.04. Currently I'm having Enchant selected under Preferences, but I'm open to any alternative to gain "in document" spell checking ...
2
votes
2answers
350 views

Double header in longtable

I'm trying to make a longtable and use some R tools for generating them. The problem is that when a long table has more than one columns, it creates double headers, as shown here: http://stackoverflow....
2
votes
1answer
998 views

LyX unable to access needed font resources

I'm getting an error in LyX when I attempt to use certain features that require access to font resources, even though these same features work fine in TexShop. For example, if I attempt to enable "...
2
votes
1answer
607 views

Changing Theorem(AMS) in Lyx

I use the theorem(AMS) module in Lyx. If i use the Lemma, Definition etc. enviroment then Lemma for example is written in bold letters. If i use the remark enviroment its in italic. I would like to ...
2
votes
1answer
442 views

Why does LyX flag the following maths macro definition as an error?

The following macro is the LaTeX equivalent of a macro that I defined using the LyX maths macro facility. \global\long\def\fdd#1#2#3{\mathscr{F}^{\left(#1\right)}\left[#2_{#3}\right]} LyX comes up ...
2
votes
0answers
380 views

TikZ in LyX - compiles, but acrobat says the pdf has an error [closed]

I'm using LyX. I'm trying to use TikZ for the first time (to draw graphs, specically - trees). The LyX code compiles and the pdf is created, but when I open the pdf, Acrobat reader says: "An ...
2
votes
1answer
2k views

Insert Image from multipage pdf file in Lyx

I am writing a report and I have all the images in a pdf file with very high resolution. With limited skills in editing, I am loosing the quality of the image when I try to save the individual images. ...
2
votes
1answer
569 views

LyX BibTeX with child-documents not working

If I insert the bibliography within the child document, it works perfectly. (therefore it cannot be the Databank). But when I try to render the parent document, I get the following error: \citep ...
2
votes
1answer
120 views

\swapnumbers in lyx

I'm using LyX 2.2dev on Mac together with Theorems (AMS), Theorems (AMS-Extended), Number Equations by Section and Theorems (Numbered by Sections) modules. I put \swapnumbers in my LaTeX preamble, but ...
2
votes
2answers
1k views

Lyx bibliography displaying section number

I am using LyX to write my thesis. I am using a BibTeX Generated Bibliography (generated in Jabref) which works fine. I just have one problem, in the actual PDF, the Bibliography section after each ...