Tag Info

New answers tagged

0

You should use BibTeX files generated by Mendeley. Go to Tools->Options->BibTeX and select where to store your BibTeX files. In LyX Go to: Insert->Lists->BibTeX Bibliography, click Add, and navigate to where your BibTeX file is stored. Then again choose Insert-> Citation.


0

Here is a partial, possible solution. I'm not sure if this will work for you or not because it depends a great deal on what else is going on in your document. This reformats footnote markers so that they conform to the requirements of the citation style. I've used a sample bib entry from the example file provided by the package and some of the code you ...


0

@GonzaloMedina provides a valid and useful answer. I have found a simpler solution based on his second example code block. It will not work in all situations but handles my case: % in the preamble: \let\oldshadowbox\shadowbox \renewcommand{\shadowbox}[1]{% \noindent \oldshadowbox{% \begin{minipage}[t]{1\linewidth} #1 \end{minipage}}% } Do ...


2

I had the same error in Ubuntu. A previously working document with greek letters gave the two errors below: ! Package fontenc Error: Encoding file `lgrenc.def' not found (fontenc) You might have misspelt the name of the encoding. l.99 \ProcessOptions* Necessary code for this encoding was not loaded. Thus calling the encoding later on will ...


2

In LyX, follow the menu Edit > Box Settings... Here you can change the box width to measure \linewidth: This should update your LaTeX code accordingly:


1

I'd suggest you to use \linegoal from the linegoal package (requires two compilations). Of course, you also need to take into account the padding of the box and the width of the shadow, so the width would be -\fboxsep-\shadowsize+\linegoal A complete example: \documentclass{article} \usepackage{fancybox} \usepackage{linegoal} \usepackage{showframe} ...


0

Exit LyX, rename ~/.lyx to something else, and restart LyX. ~/.lyx contains your preferences, shortcuts, templates (if any), and other things. Look in the folder "bind" to see the shortcuts.


1

Yes, the idea is to add a local version of the Logical Markup module. Here are the steps below for LyX 2.1, which should be released in a couple of days. Locate the Logical Markup module: Go to Help > About and under "Library directory:" you will see a path such as /usr/share/lyx/ (this is what shows up on Ubuntu). In that folder, there is a folder ...


1

Simple steps: Close your running Lyx Open any PDF file within your computer with "right-click" - open with -> choose your Adobe Acrobat as default. Close the PDF file. Open Lyx - Tool - Preferences - Path - PATH Prefix From many paths listed, Change ONLY the path of Ghostscript to your Adobe Acrobat path. Apply - Save Tools - Reconfigure, close Lyx Reopen ...


2

This happens because you've inserted the cover page as part of the title, it should be before the title, and the style should be Standard. To fix this, place the cursor between the included PDF and the title, and hit enter to add a paragraph break between them. Then move the cursor to the paragraph containing the inserted PDF, and select Standard from the ...


0

Installing url package via the package manager worked.


1

1 and 3 In a way, questions 1 and 3 are the same, or they can at least be answered in the same way, which is that described in Translate paragraph environment. In short, if you're using babel, which I think is the default behaviour, go to Document --> Settings --> LaTeX preamble, and add \AtBeginDocument{% \addto\captionsenglish{% ...


1

With the commands \overset↓ and \underset↓ characters can be placed above or below an operator, respectively, to accent it source: http://elyxer.nongnu.org/lyx/Math.html [section 7.2]


4

Write in your preamble either: \usepackage{chngcntr} \counterwithin{section}{part} \renewcommand{\thepart}{\arabic{part}} or \makeatletter \@addtoreset{section}{part} \makeatother \renewcommand{\thepart}{\arabic{part}} \renewcommand*\thesection{\thepart.\arabic{section}} (By default, the partcounter is written in Roman numerals).


4

the usual method for numbering one level within another is \makeatletter \@addtoreset{section}{part} \makeatother


1

On Ubuntu installing texlive-latex-extra solved the problem for me.


3

LyX uses LaTeX as the backend, so in principle you can use any LaTeX macro in LyX. For your case, you can go to Document --> Settings --> LaTeX preamble, and add your \newcommand there. To use it in a document just type \from, but note that this only works in math mode.


1

This is a MikTeX issue, as confirmed by Enrico Forestieri: For some reason, miktex does not understand/obey the command lyx inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info. The generation of the required info can be forced by changing the converter ...


2

Add to your Document > Settings... > LaTeX Preamble the following code: \makeatletter \@addtoreset{figure}{part}% Reset figure numbering at every part \makeatother \renewcommand{\thefigure}{\arabic{part}.\arabic{figure}}% Figure number is part.figure The default numbering of parts in KOMA-Script is Roman, so I've used \arabic{part} since. However, if ...


3

You don't need any additional packages to use \quad. If by 'not recognized' you mean that \quad doesn't have an effect, it may be because you've added it after a line break (Ctrl + Enter), where it won't work, as egreg mentioned in a comment. Instead, use \hspace*{1em} in an ERT, or do Insert --> Formatting --> Horizontal space, using a custom length and ...


2

The reason for CONTENTS in the header stems from the \tableofcontents macro in the book document class/book.cls: \newcommand\tableofcontents{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\contentsname \@mkboth{% \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% ...


1

I don't use Lyx, but as you say you're using \part* instead of \chapter* this is probably the cause your header isn't updated correctly. The text in the headers is defined in the commands \leftmark and \rightmark, which in a book by default use the last known chapter and section title respectively. Since the table of contents inserts a chapter header, and ...


0

The reason is I think 'that is just how threeparttable works'. The simplest way of fixing this is to place the caption before the threeparttable environment, so you have \begin{table}[htbp] \caption{My Title} \label{efectos_generales} \begin{threeparttable} ... \end{threeparttable} \end{table}


1

Go into the settings of the two last minipages and change the vertical alignment of the box to Bottom:


2

(Note: there are parts of this solution that are sub-optimal, and I'm aware of that, but I'll have to fix that later. I'll remove this note when I find the time to improve things.) You can change the files theorems-ams.module and theorems-ams.inc, or better create copies as described in my answer to How to make "claim" environments look like ...


0

The trick is to use as much of the built in nomencl support from LyX as possible. I have done this by borrowing from the Biblatex in LyX wiki entry. First we create a document with a nomenclature in LyX. Insert > List / TOC > Nomenclature Since we do not want LyX to print the nomenclature, 'capture' this element in a LyX comment (yellow box). Next ...


1

Use tocloft package: \documentclass{book} \usepackage[Lenny]{fncychap} \usepackage{tocloft} %\renewcommand{\contentsname}{Table of contents} % change "Contents" to "Table of Contents" \renewcommand{\cfttoctitlefont}{\center\hfill\large\bfseries\MakeUppercase} % change toc title to upper case \renewcommand{\cftaftertoctitle}{\hfill} ...


1

The placeins package gives the command \FloatBarrier, which will make sure any floats will be put in before this point. The flafter package ensures that floats don't appear until after they appear in the code. You could move the definition of the float to after your list. (These are the LaTeX solutions, I assume they'd work for Lyx.) (Taken from this ...


1

One alternative is to add tight as an option to the minitoc package, i.e. \usepackage[tight]{minitoc} This will set the minitocs with tighter vertical spacing, which will make it fit on one page.


2

Just enter the label manually in the "Cross-reference" dialog. LyX will display it with a BROKEN: prefix (as it cannot find the respective label), but it works nevertheless. You have to be a bit careful if editing it later, though. Using the LyX dialog has the advantage that you can easily use LyX built-in support for formatted references: If you don't ...


2

This is not really answering your question, but providing a workaround for the specific situation. If you'd like to, you can use a combination of LyX-stuff and ERTs: Add a table float, with Insert --> Float --> Table, or the corresponding button the toolbar. This will give you a table float with a caption. Write your caption, and add the label inside (or ...


3

You are not using LyX's interface for managing labels and cross-references. As such, if you're using \label{abc} in an ERT (or "TeX code"), then you need to also use an ERT for the reference \ref{abc} as well.


1

The default behaviour of captions is to be set in single spacing, even if you set the document layout to be spaced double in LyX's book (Memoir) document class: This yields as output a single-spaced caption with a double-spaced body text: The memoir user manual does mention this about using the caption package: 10.13 THE CLASS VERSUS THE CAPTION ...



Top 50 recent answers are included