Hot answers tagged

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 ...


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 ...


3

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


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

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: ...


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 ...


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

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}{\...


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

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 ...


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 ...


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.


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 ...


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.


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....



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