New answers tagged

0

There is a bug request asking for a button to stop the compilation: http://www.lyx.org/trac/ticket/10108. In the meanwhile, you can try to stop the spawned processes (pdflatex, knitr...) and lyx will give up at some point (not ideal).


0

Also you can use this option Indented for this the option fleqn must be inserted in the menu Document ▷ Settings under Document Class


0

Changing a theme for presentation in LyX is easy. Just go to Document > Settings Select LaTeX preamble and write \usetheme{ThemeName}, where ThemeName can be changed to the name of the theme like Warsaw etc. Check out this video. It will show you how to change the Theme in LyX: Changing Theme for Presentation in LyX


0

A slide or Frame in LyX consists of a Frame heading followed by contents and then a separator. So first select the Frame tag from the drop down list and give it a title Then fill in the Contents of the Frame and in the end select a separator from the drop down list at the top right corner. You can repeat this process to create as many slides/Frames as you ...


0

I managed to get the desired result. In LyX click on the reference within the text and change the way its displayed in "formatting". In LaTeX, this can be achieved by using \citep instead of cite


0

Here's what I'd do: create ecsthesis.layout in your thesis folder, make this its contents: #\DeclareLaTeXClass[ecsthesis,book]{ecsthesis} Format 49 Input stdclass.inc Input numreport.inc Copy ecsthesis.cls to the same folder. Create a new file in LyX, save it where these two files are, then in 'Document>Settings>Document Class>Local layout' choose ...


3

The problem in your example is caused by the class option balancelastpage. This option causes the columns on the last page to be balanced, i.e. have the same height. If you go to Document --> Settings --> Document class, and change balancelastpage to nobalancelastpage, you'll get a different result.


4

You probably want to set Preferences > Look & Feel > Display > Instant Preview to No math.


0

For anybody who encounters this problem while using tlmgr instead of the distro package managers, you can solve this problem by installing the following packages: greek-fontenc babel-greek cbfonts


3

Well, OK, I found my answer, digging through browser history. There is a command layout-reload Tools -> Preferences then Editing -> Shortcuts then it is under "Font, Layout and Text-Classes" and you can assign a keyboard shortcut to layout-reload as I did.


3

The problem seems to lie in using \section* rather than \section in the redefinition. The fix is simple: \renewcommand{\bibsection}{\section{References}} The reason is that *-forms of sectioning commands print the title, but -- barring other redefinitions by the user or the class or a package -- do not include a number and do not make an entry in the ...


3

As per http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf, in LyX one must use \sp instead of ^ and \sb instead of _.


2

The XY-pic User's guide says that /_/ is just a short for /:a(-90)/, so I guess you could use something like \ar@/:a(-90)/[r]. \ar@(dr,ur)[r] works too.


2

This is not a perfect answer but is a slightly better workaround than putting the whole picture in a TeX environment. Add the following to your preamble (in Document->Settings): \makeatother \newcommand{\arup}[1]{\ar@/^/[#1]} \newcommand{\ardn}[1]{\ar@/_/[#1]} \makeatletter (Yes, this combination of \makeatother and \makeatletter is the opposite way round ...


2

In any amsmath environment such as alignat, you can add \qedhere at the end of the last cell and wrap it inside \tag*, as follows: For repeated usage, I recommend defining a macro as follows: I have been using this trick for years, it always worked for me.


2

Here is TeX based solution. \def\subinrm#1{\sb{\rm#1}} {\catcode`\_=13 \global\let_=\subinrm} \mathcode`_="8000 \def\upsubscripts{\catcode`\_=12 } \def\normalsubscripts{\catcode`\_=8 } \upsubscripts $A_{lake}$, $\normalsubscripts \sum_{i=1}^\infty {1\over n}$


1

Here's a LuaLaTeX-based solution. The solution assumes that subscript material that's encased in curly braces should be rendered in the upright font shape. For the convenience of entering single-character subscripts -- a frequently occurring situation! -- it is further assumed that single-character subscripts that are not encased in curly braces should not ...


2

Go to Document > Settings ... > Document class > Custom and just write the options delimited by commas: 12pt, draftclsnofoot, onecolumn


3

From the LyX wiki: If you do not want any line breaks within paragraphs, set Tools→Preferences→Output→General→Output line length to 0. https://wiki.lyx.org/FAQ/ImportExport


1

Too long for a comment, but without more information about your document we cannot help. This works fine as pure LaTeX \documentclass[a4paper]{memoir} \usepackage{listings} \renewcommand\ttdefault{txtt} \begin{document} \lstset{ % language = R, numbers=left, numbersep=10pt, tabsize=4, breaklines=true, title=\lstname } \lstinputlisting{MonteCarlo.R} ...


0

Following Guy Rutenberg's recommendation, I'm using XeLaTeX. I don't know how did you get your wrong column order (you didn't post a MWE...), but in my configuration there is no need to do anything special in order to get right to left support for multicol. Here's an example code: \documentclass{book} \usepackage{multicol} \usepackage{polyglossia} ...


5

The Hebrew Article document class uses \rule{2mm}{2mm} for it's proof environment "QED symbol". To see this, open the View > Source Pane and choose, for example, "Preamble only" to see \newenvironment{proof}% {\R{\textbf{הוכחה:}}}% {\hfill\rule{2mm}{2mm}\par\vspace{2mm}} You could add to your preamble \newcommand{\qedsymbol}{\rule{2mm}{2mm}} which ...


3

Wolfram Alpha recognizes \cdot, but it is not a full TeX parser. Example for the matrix syntax in Wolfram Alpha (Examples > Mathematics > Matrices & Linear Algebra): {{6, -7, 10}, {0, 3, -1}, {0, 5, -7}} The following example defines a macro \wapmatrix, which takes a nested comma separated list as matrix like the syntax for Wolfram Alpha and writes ...


2

If you look into the documentation of multicols, i.e., multicol.pdf you will find this question answered: use \RLmulticolcolumns to change the order to right-to-left. As David mentioned, the bidi package should also work with multicol, though there have been some incompatibilities in the past.


5

First attempt with tikz and decorations.pathreplacing library to draw braces Code \documentclass[margin=5mm,dvipsnames]{standalone} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{positioning,decorations.pathreplacing} \begin{document} \begin{tikzpicture}[node distance=2cm,minimum height=1cm] \node (A) {$n$}; \node[below left=of A] ...


2

Change the pagestyle in your preamble with either fncyhdr or titleps. Example with titleps: \usepackage{titleps} \renewpagestyle{plain}{% \headrule %% if you want a rule \sethead[\thepage][][]{}{}{\thepage} \setfoot{}{}{} }% \pagestyle{plain}


0

There is an environment called subappendices in the package appendix specifically for this. E.g. \documentclass{book} \usepackage{appendix} \begin{document} \chapter{thesis article one} \section{introduction} \begin{subappendices} \section{extra info} \end{subappendices} \chapter{thesis article two} \end{document} This gives: Note that: ...


1

You can define a "\breaking slash" macro via Insert -> Math -> Macro. Define the macro boxes as follows: Macro name: \brslash TeX :/\allowbreak LyX :/ The result in LyX will be So in LyX, enter math mode (Insert -> Math -> Inline formula) then \text (followed by a space bar) to enter plain text in math mode, and then type the ...


3

A simple solution, if you add DOIs by hand is to use the hyperref package in your preamble: \usepackage{hyperref}. Each URL or DOI has to be given in the following format: \href{http://dx.doi.org/10.1007/978-3-531-92180-8}{doi:10.1007/978-3-531-92180-8}. This should create linebreaks where needed.


2

The general way of doing this is described in Math symbol question: Vertical bar for ''evaluated at ...'' : To insert a delimiter of a given, or variable, size, click the Insert delimiter button on the math toolbar: In your case you want to select a brace as left delimiter, and None as the right delimiter, on the first line. Vice versa on ...



Top 50 recent answers are included