# Tag Info

7

This does not solve your current problem (David's answer should work fine in this respect). However, next time you need to highlight changes for your editor, remember that LyX has a pretty good built-in change tracking system: Just do your edits in change-tracking mode and you are done: It's possible to have mark-ups for the changes in the PDF output, ...

5

Add the following in your Local Layout of LyX (Document > Settings... > Local Layout): #\DeclareLyXModule{Other} #DescriptionBegin #Defines Axiomp (primed axioms) #DescriptionEnd #Requires: theorems-ams-extended #Category: theorems Format 35 Requires amsmath # The environments defined (regular and starred) are : # - Axiomp Style Axiomp CopyStyle ...

4

Simply adding \usepackage{longtable} to the preamble does not mean that all tables automatically are allowed to break across pages. The standard LaTeX environment for tables, which is used by LyX as default, is called tabular, and does not break across pages. The longtable package defines a new table environment by the same name which can break across pages ...

4

Following e-birk's solution a step further, yes you can preview raw TeX code instantly inside LyX 2.0.6. Go to Tools>preferences>Look&Feel>Display and select Display graphics and instant preview "On". Type Ctrl+M to insert a new formula region. Type Ctrl+L inside the math formatted region you created in (2) to insert your raw (La)TeX code. If ...

4

You did add the \write18 in an ERT, or the preamble? I think you add the --shell-escape flag in Tools --> Preferences --> File Handling --> Converters. If you use pdfLaTeX to compile your document, find the entry in the list called LaTeX (pdfLaTeX) -> PDF (pdflatex). Add --shell-escape in the Converter field, between pdflatex and i:

3

Expanding on my comment a bit, you can do this with an align environment from amsmath, that in LyX is inserted via Insert --> Math --> AMS align Environment: After doing that, you get a math environment with two boxes, just as if you insert a math matrix: In the first box, you enter the expression on the left side of the equals sign, in the second box ...

3

This may not be a very good idea, but adding some \vspace in \addtokomafont seemed to work fine in the quick little test I did. Go to Document --> Settings --> LaTeX Preamble, and add \addtokomafont{subsubsection}{\vspace{2ex}} Change 2ex to the length of your choice. \addtokomafont/\setkomafont is intented to be used to change the formatting (font size, ...

3

{ is an opening brace, and } is a closing brace. TeX/LaTeX (which is used by LyX 'under the hood') uses these e.g. to delimit groups and arguments to macros. I don't know exactly how LyX does this with moderncv, but say you have a macro that takes four mandatory arguments, then in LaTeX you would write \somemacro{first argument}{second argument}{third ...

3

This can be done with a combination of firstnumber and numberfirstline: \documentclass{article} \usepackage{listings} \lstset{numbers=left,stepnumber=5,firstnumber=1,numberfirstline} \begin{document} \begin{lstlisting} a b c d A B C D E a b c d e Q \end{lstlisting} \end{document} yields: [I assume you are using the listings package.]

3

You can at least make a shortcut to insert just \displaystyle, if that is OK. Go to Tools --> Preferences --> Editing --> Shortcuts (see Shortcuts for Lemma, Claim, Theorem etc for a screenshot). Click New, and in the Function field write math-size \displaystyle Enter whichever shortcut you would like. If the shortcut already exists, LyX will inform you ...

3

I don't understand exactly what you want to achieve, so there are two parts to this answer. pdfpages This technique will let you distribute all the pages of a PDF across as many pages as necessary of a LyX document. I don't know if it's possible to add notes within LyX next to each page/slide, for that purpose the other technique (see below) would be ...

2

From karlkoeller's comment: Document --> Settings --> LaTeX preamble, add \renewcommand{\lstlistingname}{Snippet} Caption and label has to be set for each listing of course, but the general style can be defined in Document --> Settings --> Listings:

2

As far as I know you have to do it manually, but in a short way: Copy that line and insert it into LyX Mark the $2r = 2rr+rl$ with (!) the two \$ hit Insert->Math->Inline that will convert that expression into inline math code.

2

You can add the \singlespacing command from setspace (which LyX uses when you set the linespacing to OneHalf or Double) to the \basicstyle of the listings. This will basically add \singlespacing (and any other commands added there) at the start of every code listing. A side effect of this seems to be that some additional whitespace is added before every ...

2

You could add, to your LaTeX Preamble, the following: \usepackage[export]{adjustbox}% http://ctan.org/pkg/adjustbox % Resize figures that are too wide for the page. \let\oldincludegraphics\includegraphics \renewcommand\includegraphics[2][]{% \oldincludegraphics[#1,max width=\linewidth,max height=\textheight]{#2} } adjustbox allows to set the maximum ...

2

Try adding a \clearpage, i.e. Insert --> Formatting --> Clear Page instead of a New page. If you want the bibliography to be printed in one column rather than two, add an ERT (Ctrl + L) just before the bibliography, and write \onecolumn in it.

2

In the listings manual you will find a parameter xleftmargin that you can modify. In the code example below I set it to 10% of the width of the line, but you can modify that to any length you'd like. In LyX, go to Document --> Settings --> Listings, and add xleftmargin=<length> to the listing parameters. (Below I also changed the font to a typewriter ...

2

The error message you show in your question comes from not loading subfig, as it is subfig that defines \subfloat. Adding font=large as an option to subfig should work (requires the caption package as well, I think), i.e. \usepackage[font=large]{subfig} And of course, remove the subfigure package from the preamble.

2

For a scrreprt class you can redefine directly the \subsection command. For example: \makeatletter \renewcommand\subsection% {\@startsection {subsection}{2}{\z@}% {-23.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} \makeatother Note that you must change -23.5ex to the desired space (by default is -3.5ex). The complete ...

1

You can get support for compiling with pdfTeX and IvriTeX Hebrew fonts by using install-tl-ubuntu. Just run the following command: sudo ./install-tl-ubuntu --hebrew Before you do that, you should remove whichever LaTeX installation you currently have (by default it installs a full TeX Live 2013 distribution). See ./install-tl-ubuntu --help for more ...

1

For the ToC and lists of figures/tables, try adding \pagestyle{plain} in an ERT just before the first of these, and \clearpage\pagestyle{fancy} after the last of them. Similar, for appendices/bibliography, add \pagestyle{plain} just before them. \thispagestyle affects only the current page, whereas \pagestyle affects all following pages.

1

You can use the ERT box (Insert->TeX code, or simply click the TeX button) to pass overlay specifications. In fact, the ERT box allows you to enter any TeX/LaTeX codes you'd like. Step 1. Enter frame contents Step 2. Add overlay specifications First bring cursor to the beginning of an item Open an ERT box by clicking the TeX box (or use Ctrl+L in ...

1

If you're writing the bibliography yourself, then you need to add a label for each item. Right click the grey box in the reference list where the citation key is written - highlighted by the red ellipse in the screenshot below - and choose Settings (the only option). In the Label field write authorname(year) without a space before the parenthesis, e.g. ...

1

When you use the key, stepnumber=5, the numbers are incremented in steps of 5. However, under that scenario, your numbers will come out to be 5, 10... Not the sequence you asked for. So, you will have to coax LaTeX to start your number from the very first line. You add numberfirstline,firstnumber=1 and for that purpose. From the relevant documentation, ...

1

On my system a .bind file was created in the user folder of LyX. You can find out where this folder is located by choosing Help --> About LyX, where the path to the User directory is given. Here (in Kubuntu) the folder is located in ~/.lyx, and there is a file called user.bind in ~/.lyx/bind/.

1

If I understand you correctly, you can do this with biblatex, which is a quite new LaTeX package for dealing with bibliographies. As LyX hasn't built in support for this in the GUI yet, there is some initial setup required. The information in this answer comes from two sources: The LyX wiki: http://wiki.lyx.org/BibTeX/Biblatex Sorting the bibliography by ...

1

The question mark usually indicates an unresolved reference. I suppose you added the bibtex database to your document like this: Select "Insert" --> "List / TOC" --> "BibTex Bibliography..." from the menu In the dialogue box click on "Add..." Click "Browse..." Select the file you want (in this case: test.bib) Now, don't forget to confirm the ...

1

Burst the PDF file into seperate PDFs (one per page) and include them as an image to your document separately. Insert page breaks if needed. For example, if you have pdftk installed, you can run the following command in the terminal: pdftk yourSlides.pdf burst This will create a couple of files "pg_0001.pdf", "pg_0002.pdf", etc., which you can include ...

1

I have just finished writing a document where I pasted in matrices, integrals,etc using tex code (ERC). It exported fine to pdf. Here is the solution that worked for me (see the link): Is it possible to type Latex code and see its real time preview in LyX? For your specific trouble, I've noticed that certain environments such as "aligned" can have issues. ...

1

Here is one very simple idea that is only a slight variation of what you're currently doing. Put the following into the local layout of your LyX file (in document settings): InsetLayout Flex:PHP LyxType Custom Decoration Classic KeepEmpty 1 LabelString PHP LatexType Paragraph PassThru 1 End Now to insert PHP, instead of using a TeX ...

Only top voted, non community-wiki answers of a minimum length are eligible