New answers tagged

0

That's an old question, but I have stumbled upon it recently and thought that it might help pointing out to the link below https://lucatrevisan.wordpress.com/2009/02/21/converting-latex-to-wordpress/ Seems like someone came-up with an automatic script in python that can translate math oriented latex to nice wordpress formatted text.


0

In LyX, I added \usepackage{amsmath} to Document -> Settings -> LaTeX Preamble. Then instead of using array environment, which generates I change to aligned environment, which generates a much better looking equation array and spacing There are other discussions on the left alignments that seem very complicated. But what I found in my case is that, if ...


0

I use a newer version of Lyx (version 2.1.4) and I can no longer follow the answers here. The problem is the same, which is that the default pdf viewer is changed to okular after I do the "reconfigure." What I did to solve the problem is the followings. Go to /.lyx. There a lyxrc.defaults which contains many key-value pairs for Lyx configurations. Make a ...


1

to end items and go back to your normal paragraph press enter and you l be put in a new item righ? look up to the icon "implicite" next to "liste numeroté",, it looks like a paper with lines in it ,, press it and bamm ! problem solved.


1

Solution: in preferences use the "save" button to permanently save, not the "apply" button. You've run into a common confusion, represented by this LyX bug. The "apply" button is meant only to apply it for that LyX session. It is a useful feature if you understand the difference, because this way you can experiment with various preferences without concern ...


3

In order for your child document to use information from a different .lyx file, LyX needs to know where to look. In your child document go to Document > Settings, check the box "Select default master document", and then browse to select the master lyx file, and then click "OK". Some useful information can also be bound on this LyX wiki page.


1

May be you want this (captions aligned and images top-aligned)? \documentclass[11pt,a4paper]{book} \usepackage[utf8]{inputenc} % \usepackage{geometry} \usepackage{floatrow, graphicx} \begin{document} \begin{figure}[!ht] \floatsetup{style=plain, floatrowsep=qquad, heightadjust=object, valign=t, captionskip=2.5ex} \begin{floatrow} \ffigbox[\FBwidth]{\...


0

For example: \documentclass[a5paper]{report} \usepackage{graphicx} \usepackage{caption} \captionsetup{format=hang} \begin{document} \setcounter{chapter}{3} \begin{figure} \begin{minipage}[t]{.5\dimexpr\linewidth-\columnsep\relax} \kern0pt \centering \scalebox{6}{$\infty$} \caption{This float is on the left side} \end{minipage}\hfill \...


2

Try \renewcommand{\cftsecfont}{\fontseries{md}\fontsize{14}{16}\selectfont} \renewcommand{\cftsubsecfont}{\fontseries{md}\fontsize{10}{12}\selectfont} If you want the corresponding page numbers to have the same font size (or another size), use \renewcommand{\cftsecpagefont}{\fontsize{14}{16}\selectfont} \renewcommand{\cftsubsecpagefont}{\fontsize{10}{12}...


1

Write the following in the document's local layout: InsetLayout ERT Font Color latex Family typewriter Size Small EndFont End (Tiny is an acceptable value as well.) This is an application of the general answer found there: https://tex.stackexchange.com/a/281207/87201


0

The described behaviour is caused by setting LeftMargin in the document settings Local Layout. This is because InsetLayouts (which control the layout of sub/superscripts, among other things) inherit the global margin settings, with no possibility to adjust the margin to their own values (missing feature). A bug report ticket has been raised at http://www....


1

LyX (even the last version 2.2.0) doesn't provide native support for BibLaTeX yet, but if you see here: https://wiki.lyx.org/BibTeX/Biblatex you'll find how to use the built-in citation manager with BibLaTeX with some little tricks. In pratice you leave the the BibTeX inset (Insert→List/TOC→BibTeX Bibliography...) in a LyX note or comment, in this way LyX ...


0

To use Harvard style in Lyx, you will have to use label such as Author(2016) with no space before parenthesis. And my setting looks like: The Harvard style is generated as expected:


1

Actually, it seems the latest release (May 2016) changes the default environment to use align instead of eqnarray. From the update post: Ctrl+M now inserts \text in math mode instead of \mbox, and Ctrl+Enter introduces by default an AMS align environment instead of an eqnarray. So if you've installed the latest version of LyX (>= 2.2), this should no ...


1

../classicthesis.sty means latex searches in the parent folder for the sty file. to fix this you have two possibilities: if classicthesis.sty is located in the same folder as your document, change ../classicthesis.sty to ./classicthesis.sty move classicthesis.sty to the folder above your document.


0

This is strange. One must select natbib and author-year style which I tried many times before, but also one must delete the non-bibtex bibliography entries, otherwise it just crashes with: ! Package natbib Error: Bibliography not compatible with author-year citations.


2

As mentioned similar quostion here. The CLS file uses the document class Article. It seems that easiest is to set up local aaltothesis.layout file for your thesis, not working yet: errors documented below. Other option is to put it under /Applications/LyX.app/Contents/Resources/layouts/ but so far at least not working in my OSX Lyx. The Aaltothesis.cls ...


1

This is not really an actual solution but more of a workaround. Instead of copying the image into its Float Figure container, I use the Insert graphics tab beneath the menu bar. A more definite solution was to reinstall lyx (make sure you save the files you've been working on before; do not leave anything in the default working directories).


4

Go to Document > Settings > Local Layout and put provides graphicx 1 Click on Validate, then click "OK". What this does is it tells LyX "I'm taking care of loading the graphicx package, don't worry about." Then the responsibility is on you. To find out more details, consider reading Help > Customization > 5.3.4 General text class parameters. (thanks to ...


3

A bit of technique first. LyX is based on Qt, and Qt delegates the input of Unicode character to input to a component called the Input Method. This includes typing the code point directly, as stated here: https://bugreports.qt.io/browse/QTBUG-8. Thus LyX receives the Unicode character directly in interpreted form from the Input Method. In particular what ...


3

the multlined facility of mathtools can be used here: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} A &= \begin{multlined}[t] \text{first line of A}\\ \text{second line of A} \end{multlined}\\ \text{other} &= \begin{multlined}[t] \text{first line of other}\\ \text{second line of other} \...


2

For the record: in Linux, with Lyx (or without Lyx): Alt Gr + D = ð Alt Gr + F = đ To use the unicode character in math mode you can use \text{đ} or \text{\textit{đ}} of amsmath package: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \[f(x) \mathop{\!}dx+g(y)\mathop{}\text{\textit{đ}} ...


3

Go to View > Toolbars > Command Buffer or do Alt + x (may depend on your OS, this works on Ubuntu). Go down to the bottom where a text box appeared and enter unicode-insert 0111 and then press return. LyX will take care of the rest. If you do this in plain text, LyX inserts \dj{} for you. If you do this in math, LyX inserts $\mkern3mu\mathchar'26\mkern-12mu ...


4

The character U+0111 is not a math symbol. There is no symbol for the inexact differential in Unicode, as far as I know. I suggest defining a macro for it: \documentclass{article} \newcommand{\diff}{\mathop{}\!d} % http://tex.stackexchange.com/a/253108/4427 \newcommand{\dbar}{{\mkern3mu\mathchar'26\mkern-12mu d}} % \newcommand{\idiff}{\mathop{}\!\dbar} \...


7

You could do this from the menus with LyX. Use: Insert > Special Characters > Symbols,... And get this pop-up window: And input your symbol that way (like Word's ALT-I, if memory serves). You then can copy/paste if you want to keep using that symbol. You can also use the "Evil Red Text" technique as noted by @AFeldman. If you use that approach, ...


0

To enter a character in LyX you can use the "Evil Red Text" (Ctrl-T)to enter a \char and the ascii number. For instance \char126 usually produces a tilde "~". You have to know what your character map produces.


-1

Have the same problem on LyX 2.2 and ubuntu 14.04. Solve by putting this converter: \converter "pytexs1" "PyTeXs2" "pythontex $$i" "" instead of \converter "pytexs1" "PyTeXs2" "pythontex.py $$i" ""


1

Your .lyx file doesn't seem to show this, but the error message you posted indicate where things went wrong: Runaway argument? {\noindent \resizebox {\textwidth }{!}{\begin {table} \begin {tabular\ETC. This tells me that you put the \resizebox around both the floating container (\begin{table} in the code) and the table itself (\begin{tabular), which is ...


0

Without an example, we of course cannot help you fix the root problem, so I will answer the question of under what situation this error is given. The error message you received happens when pdflatex exited with a non-zero status code, pdflatex produced a log file, and LyX could not figure out what the error was from parsing the log file. Those are the three ...


4

Check Documents > Settings > Suppress default date on front page.


2

As Kurt mentioned in the comment, I think it is as simple as adding the "evil red text" \date{} to your preamble. To add your ERT place the cursor before your title, Ctrl-l (that's a small "L" not a capital "I") and type \date{} into the red box, and that should do it. You can also choose the menu button marked TeX or go through your menu, Insert then TeX-...



Top 50 recent answers are included