Questions tagged [lyx-layouts]

LyX uses layout files (.layout) to control the appearance of a document inside LyX. This does not (directly) control the appearance of the printed document.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Figure not displayed in pdflatex after exporting from lyx

I am able to add the figure in a lyx document, by using float and insert graphics. But when I view in the pdf, I don't see the figure in the inserted location. Instead I see the location of the file ...
triangular_triffle's user avatar
0 votes
0 answers
25 views

LyX; how to change the color of the LyX environment choice box

The background of this box remains all black no matter which Linux theme I pick, nor can I find any such color in Tools → Preferences → Look & Feel → Colors.
Cynicus Rex's user avatar
0 votes
0 answers
28 views

Prevent page break within \item of an enumerate in LyX without redefining \item

(For background and current purpose of this question, please see here: Prevent page break within \item of an enumerate). I have an enumerate of questions. Each of those questions has some opening text ...
scottkosty's user avatar
  • 12.7k
2 votes
0 answers
34 views

How to create custom directives in LyX?

In LyX, there are special formatting directives such as "New Page" and "Page Break." They don't require any input and they have distinct appearance in the editor, such as having a ...
David von Tamar's user avatar
1 vote
2 answers
77 views

LyX: How to scale a figure to more than 100% text width and have it centered?

Actually, the title says it all. I can scale a picture to >100% text width, but it will always have its left edge aligned with the text block, so will stick out at the right side. What I want is a ...
Peter Kämpf's user avatar
0 votes
0 answers
99 views

Using class options in LyX

I've recently installed TeXlive and LyX. Now I'm trying to write a document using the tufte-book class. But I can't find any way to make the text column justified or make section, chapter numbers ...
kobaltishblue_312's user avatar
0 votes
0 answers
32 views

how can i draw this diagram on lyx (in the most easiest way)? I dont know how to use latex coding

i also need to add some graphs and staff like that, but I want it to look like a nice official pdf document like we can see on books and reports. Non of the tutorials shows how to do it.. just how to ...
יואל דחוח הלוי's user avatar
1 vote
2 answers
632 views

Lyx not working on Mac Ventura

I recently downloaded Apple Ventura and with my great surprise I'm not longer able to open Lyx. I tried to uninstall and reinstall, to open it despite it's not a Mac app, etc but with no results. How ...
Joshua Mollner's user avatar
0 votes
0 answers
57 views

Edit or add enviroments in LyX

I'm using LyX on Windows 10 with AMSthm module and need to make some changes to the environments. (Including: 1. making theorem not italics, 2. adding new environments like "Challenge" to ...
Manu's user avatar
  • 493
0 votes
1 answer
191 views

Adding numbering to new AMS environment in Lyx

I used the method presented here to create a new environment ('Assumption') in Lyx. But this environment does not come with automatic numbering which fits with the automatic numbering of different ...
GSofer's user avatar
  • 103
0 votes
1 answer
97 views

Add two text column into a frame

I'm new to Latex and to Lyx as well. I'm trying to create a frame in Lyx containing 2 columns, the first one being JSON formatted text, and the second one being comments of the lines of the fist ...
Ariel's user avatar
  • 103
1 vote
1 answer
26 views

Insert a line break to EndLabelString in LyX custom style

I want to create a new style of type "environment" in the LyX editor by means of writing a module, so that the user can choose and insert it from the style combobox on the toolbar. I want to ...
tush's user avatar
  • 1,093
1 vote
1 answer
244 views

Beamer template Warsaw— LaTeX Error: Missing \begin{document} [closed]

I am using warsaw template in lyx. But I am getting error about Missing \begin{document}. This is the description of this error message \setbeamertemplate{section page}[default][colsep=-4bp,rounded=...
Ajeen Lew's user avatar
0 votes
0 answers
21 views

every image on separate blank pages without page number

I have my final year report. I want to put every images on separate blank pages (no text, only image) without page numbers, keeping the rest of the text flow unaltered. Is there some way of doing it ...
Penan Rajput's user avatar
2 votes
1 answer
142 views

How to align text with against an image in a table-LyX

I am totally new to LyX and currently using the classic-thesis template. I am using a multi-column table in a float figure , where I am importing two images and a text in 3rd column. But I am unable ...
Ajeen Lew's user avatar
3 votes
1 answer
267 views

when write Arabic in lyx and add some words in English-The letters in English are inverse

I type in Arabic but when I add English words in the same line after Arabic word i notice the English letters are inverses. in the following picture I type two Arabic words from right to left and then ...
user35528's user avatar
1 vote
0 answers
120 views

how to customize the Lyx layout to write affiliation with new cas-dc class format?

I almost find a solution. Style Author Margin Static LatexType Command Category FrontMatter InTitle 0 Argument 1 LabelString "ref address&...
Ben's user avatar
  • 11
1 vote
0 answers
140 views

Lyx: Presentation with beamer: How to use graphics/images/pictures

Pictures/images/graphics are for me a crucial part of presentations. Is anywhere a tutorial which describes how to use them in lyx with beamer layout? So with most important things to know how to use ...
SearchSpace's user avatar
0 votes
1 answer
129 views

Customize section in lyx

I am writing in lyx and inserted a new section. i wonder how could i align the section header to the center rather than to the left. I put \usepackage{titlesec} \titleformat{\section}{\centering} in ...
Sdeng's user avatar
  • 31
0 votes
0 answers
32 views

How to use Post Script Type 1 in new Lyx?

I need to use Post Script Type 1 on my Lyx. It seems this old article (https://wiki.lyx.org/Tips.InstallType1Fonts) is for the version of Lyx that relied on MikTex. So right now here, I see only 3 ...
user1849133's user avatar
3 votes
0 answers
79 views

Floats aligned to the right in LyX

EDIT: I ended up using the method outlined here and was able to resolve the problem. Big thanks to the answerer of that question! I am using LyX, and am trying to center two images next to each other. ...
cruijf's user avatar
  • 41
0 votes
0 answers
61 views

how to customize my headers in lyx?

I want my part/section title to have underlined and be bold and increase its size. I can't find how to make the wanted setting stay as my default. How can I do this? I'm a complete beginner so if you ...
Yonatan Marom's user avatar
1 vote
1 answer
54 views

how to customize my headers? [duplicate]

I want my part/section title to have underlined and be bald and increase its size. I can't find how to make the wanted setting stay as my default. How can I do this?
Yonatan Marom's user avatar
0 votes
0 answers
337 views

LyX Local layout for a custom environment

I have the following local layout in LyX. Format 66 Preamble \usepackage{xcolor} \newcounter{YourTurn} \newenvironment{YourTurn}[1][]{\refstepcounter{YourTurn}\par\medskip \noindent \color{...
Anthony Macks's user avatar
0 votes
0 answers
72 views

Uncentered Abstract in Lyx

I am using the AEA template for Lyx. For some reason my abstract is not centering properly...it appears to be slightly shifted to left. This is what the output looks like: This is how my Lyx looks ...
Adam Aberra's user avatar
1 vote
1 answer
712 views

How can I scale down the size of my table in LyX editor to avoid it going off the margins?

I have a table that looks like this in the editor: However, when I compile the pdf, it runs out of the page margins like this: Can someone please help me fix this? I guess this link is useful but I ...
badavadapav's user avatar
2 votes
1 answer
474 views

Is there a way to use LyX like iPython notebooks?

Is there a way to use LyX like Jupyter/iPython notebooks? To add code fields and get the outputs? Basically, in an ideal world, I would have a new LyX environment for code. Whenever I execute the ...
Jenny Reininger's user avatar
0 votes
1 answer
63 views

Slide starts way below slide title if it starts with equation

In beamer, when I start a slide with equation, then when the slide is full, the slide starts way below the slide title. When I start a slide with text, then when the slide is full, it starts very ...
user42459's user avatar
  • 207
0 votes
0 answers
29 views

How to add header ALSO to frontpage

I have the following preamble which adds headers in right and left side (not sure how I would add one in center though) BUT it is missing on the front page... it is only from page 2 and on ward. Help
Emil Krabbe's user avatar
0 votes
1 answer
626 views

How to make and install a LyX Document Class, based on a journal’s LaTeX template files

I would like to submit an article to a journal. The journal suggests using template files that one can find at https://www.mdpi.com/authors/latex . I have used (on a Windows 10 computer) the following ...
TJB's user avatar
  • 71
3 votes
1 answer
96 views

Section counter punctuation in an AMS article is positioned in LTR direction instead of RTL

I'm using amsart with XeTeX, LyX, and writing an article in an RTL language. Enumerations within text should normally position their punctuation in the opposite direction to separate between their ...
David von Tamar's user avatar
1 vote
0 answers
43 views

Lyx custom layout for command: newline should stay in same environment?

I am writing a Lyx custom .layout, specifically for a class-specific TeX command that takes the form \command{}. I want that when typing a newline in Lyx, the new lines stays within the \command{}, ...
Matifou's user avatar
  • 690
0 votes
0 answers
51 views

Subsection out of margin in LYX

I have a title of a subsection which is out of the margin of my document as can be seen below figure. Can someone help if i can use maybe some kind of ert whichi will be inline with my content?
Annalise Azzopardi's user avatar
0 votes
0 answers
160 views

How to create a keyboard-shortcut to custom insert at LyX?

Look at this question: How to create LyX inset without text-box (input box)? I want to create a keyboard-shortcut for one of my custom insert, it is possible? Thank you!
heblyx's user avatar
  • 2,551
1 vote
0 answers
153 views

LyX question about nomenclature and editing custom styles

Three related questions: What are these things called (that the arrows are pointed at)? (I'm going to refer to them as "custom styles".) How does one edit these "custom styles"? How does one copy ...
thanks_in_advance's user avatar
0 votes
0 answers
671 views

Change layout or borders of my document without package {geometry}

I want to set the borders of my scrartcl document. Right now im doing this: \documentclass[12pt,listof=totoc,bibliography=totoc]{scrartcl} \usepackage[left=3cm,right=2cm,top=2.4cm,bottom=2cm]{...
user185075's user avatar
1 vote
1 answer
171 views

Change "part" to "act" in a Lyx custom layout file?

I have a custom layout file that is attached to my document and used by Lyx. The file is in ~/.lyx/layouts. This question tells how to add a line to the preamble via the menu: \renewcommand\partname{...
Nick's user avatar
  • 121
0 votes
1 answer
133 views

mdframed in lyx

when i used this code in local layout (in Lyx) i got error: Style myLaw Category MainText Margin Static LatexType Environment LatexName bluec ...
silver's user avatar
  • 29
1 vote
0 answers
68 views

Creating a multi-paragraph Command Style for Lyx

I have an existing LaTeX style which defines a \solution command (printing a box that also contains a solution as text, if showSolution is set). I now created a LyX Style for this: Style Solution ...
JonathanK's user avatar
  • 131
1 vote
0 answers
103 views

How to format LabelString in Lyx .module file?

MWE Style Brief_Name Category Pleading LatexType Command Align Left Margin Dynamic LabelType Static ...
jed's user avatar
  • 235
1 vote
1 answer
442 views

Passing arguments to an environment in Lyx modules?

I have created a LyX module which generates an environment but has one necessary parameter Format 66 Style Goals Category "Goal Box" LatexName "goalbox" LatexType ...
Jenny Reininger's user avatar
2 votes
1 answer
568 views

How do I create a custom layout module in LyX for a special itemized list?

How do I create a custom layout module in LyX for a special itemized list? \newenvironment{goalbox}[1][\unskip] {\begin{goalboxT}[#1]\begin{eBox}\ \begin{enumerate}} ...
Jenny Reininger's user avatar
1 vote
1 answer
789 views

LyX "exam" document layout - multiple paragraphs per question

I am using Christopher Fuhrman's exam layout in LyX. When using the SmartQuestion style, I can add a numbered list of questions, but I cannot find a way to include paragraph breaks for multiple ...
Luke Scicluna's user avatar
1 vote
1 answer
74 views

How do I set multiple text styles in an envirnoment defined in a layout file?

I'm trying to make the font monospace, bold, and small at the same time in an environment defined in my layout file. This seems like a ridiculously simple thing to do, but I've been struggling with ...
Nick's user avatar
  • 121
2 votes
1 answer
887 views

What is the best Module/Approach for writing about Algorithms in LyX?

I would like to develop and write about algorithms directly in LyX while minimizing the use of ERTs and Tex Code while maximizing the comprehensibility of the LyX code as several people will look at ...
Jenny Reininger's user avatar
1 vote
1 answer
288 views

Writing custom.module file for LyX

MWE: This is for a custom.module file that should be accessed using the top-left drop down menu in LyX: #\DeclareLyXModule{custom} #DescriptionBegin #Legal Format #DescriptionEnd #Author: Jalep ...
jed's user avatar
  • 235
1 vote
1 answer
1k views

Importing a list of references into LyX

I have a JabRef reference list and like to import the list elements into LyX to create a LyX file with the actual list of references. I cannot do it. Any idea how to do it...
Tugrul Temel's user avatar
1 vote
1 answer
205 views

LyX Style, that renders like a \paragraph command?

In the layout/module file format of LyX, is there any method to produce a paragraph style, that renders and exports like \paragraph{title} content... The purpose would be to create layouts, where \...
kdb's user avatar
  • 1,869
1 vote
1 answer
809 views

Collaboration with only one collaborator using LyX

I would like to collaborate on a paper with someone who's experienced with LaTeX and it would be improper for me to ask them to use LyX, but I really don't like digging into raw LaTeX code. Is there a ...
dspyz's user avatar
  • 111
3 votes
1 answer
489 views

LyX InsetLayout for LaTeX command with no argument

I would like to create inset layouts for LaTeX commands without argument, e.g. \meter from siunitx package, so that there is no box presented to the user. This exists for standard commands like \...
Jérôme Champavère's user avatar