New answers tagged

1

Just tried using the apa6.lyx layout. When starting a new document, go to templates and select apa6.lyx. That will help you format your entire document using APA6 format. If you are talking about just "incorporating" packages, the method varies (AFAIK). On Linux (my preferred system is ArchLinux), I just download the packages, and then (in LyX) click on ...


2

I ran into the same problem. My solution: Open a new document in LyX: File - New Go to Document and then Settings. In the window that pops go to Document Class and select Springer SV Mult You are done and now you can start writing your book... Took me a while but I am getting there...


2

You can define your own LyX Layout file and place it in /usr/share/lyx/layouts (respectively %APPDATA%\LyX*\resources\layouts for windows) Creating this file is a mixture of LaTeX definitions and LyX configuration options. Currently you only want to redefine some global variables, but maybe you want to add your own custom styles later! Find more about ...


1

As I mentioned briefly in a comment, I wouldn't do this I think. Keep the margins constant throughout. That said, it looks like you can do this with the geometry package. You don't give any details about documentclass or how you set the margins, so this is a bit general. Seemed to work for my simple test with the book class. Add the geometry package, one ...


3

Insert ▷ Formatting ▷ Horizontal space. Spacing: horizontal fill Fill pattern: __________


2

You can add a Custom Inset by adding to your Document > Settings... > Local Layout Format 49 InsetLayout "Flex:HRuleFill" LyXType Custom LabelString HRuleFill LatexType Command LatexName hrulefill Decoration classic LabelFont Color blue Size Small EndFont ...


1

You could use some ERT (type <CTRL+l> for that, thats 'l' like in latex) and insert \vline{}~\vline{} into its box (thats LaTeX code for 'vertical line', 'space', 'vertical line'). Move out of the ERT box and write your math to the right of it. The lines on the left will be the same height as your math on the right of it.


4

To have an equivalent of the LaTeX \left\| \begin{array}{l} \mbox{For } a \\ f(a') \\ \end{array} \right. First, you go I̲nsert>Math̲>Delimiter̲s You uncheck the box "Keep matched" and you chose the correct left and right: Then, inside these delimiters, you will be in maths mode and have access to the maths toolbar. Add a matrix 2x1: Finally, you may ...


0

I seriously hope this is faulty introduced by the user and not code generated by LyX. You cannot just call \tableofcontents inside the date field. \documentclass{article} \begin{document} \title{LyX is strange} \author{Wombat} %\date{February 11-14; May 5-9, 2014\pagebreak{}\tableofcontents{}\pagebreak{}}% This is rubbish, sorry \date{In 2014} \...


1

As mentioned in a comment in the question you linked too, one can allow miktex to write to absolute pathes by creating the environment variable MIKTEX_ALLOWUNSAFEOUTPUTFILES and setting it to the value 1. Then externalization to an absolute path works fine for me if I avoid to use a path with spaces in it. But I don't recommend this. This is very ...


0

Believe it or not. Now everything works. 2 problems solved: JabRef doesnt allow german "Umlaute" ok..fair enough. Second problem: My original file name was "Masterthesis I" When the file name is "Masterthesis" everything works. If the file is called "Master thesis" citation wouldnt work again. I also tried other filenames. Its just important that the file ...


2

Here's my naive shot: \documentclass{exam} \newcounter{mydepth}% \newcommand{\myenvironmentname}{% \ifnum\value{mydepth}=0notinquestion\fi% \ifnum\value{mydepth}=1question\fi% \ifnum\value{mydepth}=2part\fi% \ifnum\value{mydepth}=3subpart\fi% \ifnum\value{mydepth}=4subsubpart\fi% \ifnum\value{mydepth}>4undefinedquestion\fi% }% \newcommand{\myquestion}{\...


5

It makes absolutely no sense to load txfonts and then palatino. The former sets up a Times font for text and math, the latter is largely obsolete. This is the source of the problem. Besides, the preamble is horrible. Loading pstricks without needing it should be avoided Instead of graphics, load graphicx that's more powerful subfigure has been obsolete ...


2

Your command contains the macro \textcolor. This is not part of standard LaTeX, so you need to load an appropriate package. The two main choices are the color package from the graphics bundle, and the xcolor package which is an extension with many more predefined color names and access to different color models. So I suggest you add \usepackage{xcolor} ...


2

Turns out to be basic LaTeX hacking (rewriting a macro). Here's how I accomplished it, based on advice from this answer: In LyX, set the ItemCommand in the Item_Environment to \mychoice Add an optional argument for the items, as follows. Here's an example in the exam.layout file I'm developing: Style Multiple_Choice_Answers_(checkboxes) CopyStyle ...


0

Combining the following three worked for me: 1) Insert -> Formatting -> New Page 2) Insert -> Formatting -> Ligature Break 3) Insert -> Formatting -> New Page


0

Use table and borders. In LyX: PDF output: (After looking around on the web for some time, this was the easiest and nicest solution I could find. It was based on DalyaG's answer.)


2

The simplest is to type \middle/. Corresponding empty left and right delimiters \left. \right. can be obtained from the Delimiters dialog. A more advanced solution is to define a LyX macro with LaTeX output as above: \left.#1\middle/#2\right., and LyX display: \left.#1\big/#2\right. (which hides LaTeX command \middle which LyX does not know about). This will ...


2

Buried in the discussion on the LyX forum at https://www.mail-archive.com/lyx-users@lists.lyx.org/msg102234.html there seems to be an answer if you're using LyX 2.2 or higher. Place into Document > Settings > Local Layout: PackageOptions todonotes myoptions This has worked for me in LyX 2.2.0 to set the notes background color to a pastel green: ...


0

According to this answer, LyX 2.2 now supports putting into Document > Settings > Local Layout: PackageOptions url hyphens I have successfully used this with todonotes, but haven't tried it with your specific problem.


1

Inside the LyX environment, you can't show indentation. Moreover, the LyX interface for algorithms is very limited under the algorithm2e module (Document > Settings... > Modules > Algorithm2e). You can use the ERTs \Indp and \Indm to add - or plus - indentation and remove - or minus indentation:


1

I'm not sure if LyX can recognize Foxit Reader, but it will recognize the other readers if you've put them in the path. I installed 2.2.0 (which is not really an upgrade, as it makes a separate install) on Windows 10 and had trouble getting LyX to recognize my Sumatra PDF installation. Two things I had to do: Add the path to the PDF viewer's binary, e....


1

Add the Document > Settings... > Modules > Custom Header/Footerlines module: This will give you access to provide header/footer specifications: Also, you can add the headers/footer manually using Document > Settings... > LaTeX Preamble and adding the fancyhdr package: \usepackage{fancyhdr} \fancyhf{}% Clear header footer % Other fancyhdr settings... % ...


1

It took me a long time to find the answer, but this is what worked. You have to close and open the LyX document. Sounds like an annoying bug in LyX with temporary files? Anyway, it's the solution that worked.


0

You can also hack around this by using the following keyboard shortcut (works for Lyx 2.1.4): command-sequence flex-insert Code; char-backward; inset-toggle; char-forward If you bind it to a specific key. It will insert the "code" inset, which will place the cursor after it. Then go back into it, toggle the label display of the inset (which will put the ...



Top 50 recent answers are included