{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

2
votes
1answer
762 views

How to find out the counter of theorems etc. in LyX

I have a document that has a lot of theorems - all introduced in LyX via the "Theorems"-Module (for those who don't know LyX, that means, that I didn't define my own theorem environment via ...
5
votes
1answer
1k views

Numbering theorems in the appendix by adding the appendix letter in front/after the theorem number

Can someone please tell me how to make definitions, theorems etc. in the appendix look like Definition A1 or Definition 1A (an "A" should be somewhere), if the appendix is "numbered" with A (meaning ...
1
vote
0answers
352 views

lyx change environment level with keyboard [closed]

Much in the way that the tab key iterates over section levels: Part -> Chapter -> Section -> Subsection -> Subsubsection -> Paragraph -> Subparagraph I would like to do the same ...
3
votes
1answer
1k views

LyX: Equation number overlaps equation

Using LyX 2.0.1, using the book (KOMA-script) class with the "Number Equations by Section" module, I have a long equation (in an equation array) that is overlapped by the equation number: Is there ...
2
votes
1answer
687 views

In LyX, what do I need to do to force bibtex to run?

In LyX, if I make changes to code related to my bibliography or citations (e.g. chaining the citation style in BibLaTeX) these changes are (generally) not reflected in my document until I close and ...
5
votes
1answer
626 views

What shell commands are executed by LyX View menus?

For a variety of reasons, I'm using LyX as my primary LaTeX document creation tool, but I want to avoid doing things or relying on features of LyX that make it hard to use other tools as well. While ...
14
votes
3answers
36k views

Lyx: Quick way to insert Dirac bra-ket

In LyX, what is a quick way to insert mismatched delimiters in math environment? I tried typing \left|\right>, but it is not interpreted automatically.
4
votes
2answers
1k views

Asymmetric quoting in LyX

In LyX, when I enter quoted text, the generated LaTeX source has uses different quotes for left and right: `` for the former and '' for the latter so that "Ugly quotes" produces ``Ugly quotes'' ...
6
votes
1answer
329 views

Clicking on a link I don't jump to the **exact** location of the label, just somewhere around it

When I label an equation and later have a reference to it, then by clicking the corresponding link the pdf I jump to that equation, with the equation being exactly at the top of the page. Same goes ...
1
vote
1answer
847 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 ...
6
votes
4answers
710 views

Latex not data driven enough, Embed XML+XSLT?

Ok, so I've been using Lyx for about a year now. I haven't really dug too deep in to the LaTex/Tex side of things. I've a little more experience with XML + XSLT. It has a nice seperation of Data from ...
2
votes
1answer
487 views

How can I have subfloats with knitr in LyX?

I have two knitr chunks in LyX that work fine by themselves in their separate floats (this post applies to both figures and tables). But when I try to put them in as subfloats (by selecting both and ...
1
vote
1answer
383 views

How do I reference an object inline in LyX that is in a knitr chunk?

Suppose I have an object that was processed in an earlier knitr chunk, say my_df <- read.dta('somefile.dta') x <- mean(my_df$age) Putting an inline knitr chunk does not work -- the knitr ...
3
votes
2answers
2k views

How can I get capitalised cross references in LyX with refstyle

LyX (v2.03) uses refstyle for cross references. By default if you use the GUI to create a reference it produces source that looks like: \tabref{label1} \figref{label2} which produces an output like ...
2
votes
0answers
263 views

How to add a parameter to a LaTeX class via the LyX layout? [closed]

I want to have this LaTeX document class code produced by LyX: \documentclass[english]{lni} My Layout class looks like this: #% Do not delete the line below; configure depends on this # ...
2
votes
1answer
1k views

Reducing R figure sizes in lyx?

I am using LyX with the Sweave module to generate some R figures within a document. I can't seem to get the figures to be smaller, and they tend to take up half a page which is far too large. I have ...
3
votes
1answer
4k views

How to add a PDF file in appendix in Lyx?

I'm writing a thesys Using LyX, it worked fine up to now. I need to insert a PDF of 4 pages in Appendix, so I looked for a solution. Here in StackOverflow I found a possible solution, using a ...
4
votes
2answers
673 views

Conditional Bibliography in LyX Subdocument

I am using LyX to manage a multi-part document (my thesis) and I would like to be able to produce stand alone sub-documents (e.g. a chapter) that include a bibliography, but only when the sub-document ...
2
votes
1answer
419 views

Bibliography shows citation locations in LyX

I'm rather new to LaTeX and as a result I'm starting out with LyX. The problem is that in my bibliography I cannot get rid of the citation locations. You can see here it sometimes (though not ...
0
votes
1answer
596 views

Mathematica Diagrams in LyX

Is is possible to use diagrams from Mathematica and put them in a LyX document? This is not just restricted to a graph or table. Also, I am wondering if one can import diagrams from wolframalpha to ...
9
votes
1answer
569 views

I wrote an article in Lyx but publishing journal wants it in TeX - Which steps do I take now?

I have written an article in LyX but have been requested to submit in the journals format (detailed TeX package is here) following their instructions from: ...
1
vote
1answer
879 views

Is there a way to position a footnote in LyX without using TeX code “manually”?

I'm using the tufte-latex document class with LyX and would like to adjust the positions of some "footnotes" in my document by specifying an offset. I understand that I can do this manually by ...
4
votes
2answers
561 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 ...
10
votes
1answer
2k views

Numbers and programming code

This happens when I use programming code and enumeration, how can I add a gap between the numbering and the line numbers of the code. I'm using this in LaTeX Preamble: \usepackage{listings} ...
3
votes
1answer
794 views

Representing hyperlinks differently in a single pdf file

Can someone tell me how to color/represent (only internal) hyperlinks in a pdf differently (preferably just by using LyX,i.e. without diving deeper into pure latex) ? For example I would like the ...
5
votes
2answers
1k views

How do I prevent LyX from using fontenc by default?

All of the documents I create with LyX have \usepackage[T1]{fontenc} in the preamble, which causes problems when I use certain classes or try to switch from pdfLaTaX to XeTeX (for example). Is ...
8
votes
2answers
2k views

In LyX, is there a way to toggle the display of TeX code in math expressions?

Is there a way to toggle the display of math expressions in LyX between the default, which makes an attempt at replacing TeX code with easy to read symbols (but is short of actual rendering), and the ...
5
votes
1answer
1k views

How do I prevent LyX from loading inputenc?

In my (out of the box) configuration of LyX, the line \usepackage[latin9]{inputenc} is inserted in the generated .tex file by default. This makes it impossible for me to set different options ...
2
votes
1answer
8k views

LyX fancy header \thispagestyle{fancy}

I am using LyX and would like (all) my document pages to have a fancy header style that I defined. However, including \thispagestyle{fancy} or \AtBeginDocument{\thispagestyle{fancy}} doesn't ...
5
votes
1answer
871 views

LyX: how to make two “examples” not separated by a different environment? [duplicate]

I use LyX for some time now, but have not figured out how to put two "examples" (or exercises or theorems etc.) one after the other without having to separate them by a different environment. What ...
7
votes
0answers
398 views

Can I import existing .Rnw Sweave file into LyX? [closed]

I am trying to import an existing Sweave .Rnw file into LyX. I wonder whether LyX is capable of doing it? My LyX version is 2.02 and I can use its Sweave module with no problem. I find out it does ...
3
votes
2answers
975 views

LyX and mathspec gives fontspec error, unicode-math no better

I get the following error message whenever using mathspec in LyX ...Package[\eu@zf@math]{fontspec}[2008/08/09] The package fontspec has already been loaded with options: [] There has now been an ...
0
votes
1answer
705 views

Use specific font in LyX

I would like to use some of theese greek fonts in LyX for my thesis: http://aka-acid.com/fontsscript.html I installed the theme but I don't know how to use it in LyX I also installed XeTeX Can ...
9
votes
1answer
1k views

Basic kerning with XeTeX

Trying to use custom fonts with LyX, so I started using XeTeX. Unfortunately, It seems kerning only works with certain OpenType fonts (Linux Libertine) but not for others (Doulos SIL or Charis SIL). ...
4
votes
1answer
534 views

How can I revert to the defaults in LyX?

New LyX user here. How can I restore LyX to its original document defaults?* (I have tried reinstalling LyX, but that didn't work.) *I want to do this, because I want to return to the default fonts. ...
4
votes
1answer
11k views

How does one create a title page in LyX?

What's the easiest way to create a good-looking title page in LyX? What I've currently found is a little bit of a hack. It doesn't place the title in the center, and uses raw LaTeX boxes for the ...
4
votes
2answers
4k views

LyX: set width of image to 100% of page width

When I insert an image into LyX and set it to 100% page width, its left side is not at the farthest most edge of the left page. Instead it starts where the text margin is, and since it's too large to ...
3
votes
1answer
1k views

How do I load a custom class in LyX?

I'm interested in making some modifications to a standard class to use as the class for many documents I'm creating, and see that one way to do this is to simply create a "wrapper class". This ...
4
votes
1answer
5k views

Copy and paste disabled in LyX 2.0

I try to copy and paste in a LyX document I am editing and it says that the command (paste) is disabled. This happens with anything, be it normal text, figures or formulae. I am working on a 64 bit PC ...
0
votes
1answer
201 views

date interpretation from numbers to regular

I was wondering if there exists such a package, or an option, to write the date in the form 31.1.2012 for example, and then have LaTeX present it as "January 31, 2012". I am actually using LyX and ...
2
votes
1answer
4k views

Creating LyX Layouts – No indents for first paragraphs

Based on article.cls, I created my own Document Class with a new Environment, called "Body." It shows up right when compiled, but it doesn't appear in LyX correctly. It's supposed to have the same ...
2
votes
2answers
2k views

Creating Hotkeys in LyX

How I can I create hotkeys for some of the features in LyX? Are there keyboard shortcuts for the "Horizontal Space" feature?
1
vote
2answers
3k views

Why is LyX trying to convert every image into eps?

I am trying to insert an image into my document. I tried following formats: PNG, JPG, PDF, SVG (using inkscape) and BMP. No matter what I do I get following error: LaTeX Error: Unknown graphics ...
3
votes
1answer
7k views

Problem importing .tex file into LyX — ampersands displaying in IEEEeqnarray

I received a .tex file from a user and tried to open this up in Lyx 2.0.2 on Win. After importing it into LyX, the document has ampersand characters everywhere in the equations as though LyX didn't ...
1
vote
1answer
554 views

Keep Format Settings in Lyx

I currently have a resume written in Lyx. I want to make some minor changes to it and just change its content. However, I want to keep the same format (i.e. the same margin, same indentation, etc.) I ...
5
votes
7answers
9k views

Adding empty lines for readability

I'm a new user of LyX, and reading the tutorial I found that I can't add freely spaces and empty lines to the LaTeX code, since it's about formatting the text, and it's done by the compiler. I can ...
6
votes
3answers
17k views

Aligning text in LyX: left/center/right

How can I center/right/left align text in LyX? In Microsoft Word, I can just click the 3 buttons on the toolbar.
40
votes
4answers
52k views

Math symbol question: Vertical bar for ''evaluated at …''

How do I insert the line "|" after the equation in LaTeX (see image below)? I'm using LyX so if you can point me to the symbol of that line is also OK. I don't know if this line has a proper name ...
2
votes
1answer
1k views

How to insert the author of a quotation using natbib and lyx?

Hello all: have a small issue, (btw, i am quite new to LaTeX, so please be gentle :)) When I create a quote in lyx and add a reference to it: % Preview source code for paragraph 52 \begin{quote} ...
3
votes
1answer
6k views

Difference between LaTeX and Word in setting font size

I am working in LyX (compiled with MiKTeX) on Windows. I am a newbie so I am wondering how can I manually set the font (like entering in a number as you would in Microsoft Word).