Re: New paragraphs within description lists, numbered lists, etc.
The system depends on the bind file you use. As far as I know the emacs-like shortcuts do have a (weird) system, not easy to learn. I use cua (common user access). You can print out a pdf with all shortcuts: http://wiki.lyx.org/LyX/KeyboardShortcuts Bo Peng has modified standard shortcuts (same link) and added "Theorem" etc. shortcuts. Jürgen Am 12.08.2016, 11:19 Uhr, schrieb Bernt Lie: Thanks, Jürgen Is there a system for when one uses Ctrl+, Alt+, etc., and when one uses Alt+M, Alt+P, etc., etc.? -B
Re: New paragraphs within description lists, numbered lists, etc.
You can find the shortcuts in Tools > Preferences > Editing > Shortcuts. There are some presets available (.bind-file). I doubt, that there is a shortcut for "Theorem", because this is part of a an additional module. Regards Jürgen Am 12.08.2016, 09:01 Uhr, schrieb Bernt Lie: Hm. Ctrl+P followed by any number does not work on my computer (Win10, LyX 2.2.1). Alt-P + a letter works. Letter s gives Standard, letter q gives Quote, letter t gives Title. It is not clear how the system is, though. What if I want to use Alt-P + specifying Theorem? -B -Original Message- From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Richard Heck Sent: Thursday, August 11, 2016 21:12 To: Annaert Jan ; lyx-users@lists.lyx.org Subject: Re: New paragraphs within description lists, numbered lists, etc. On 08/11/2016 11:05 AM, Annaert Jan wrote: The default shortcut is ctrl-P followed by a number (0= Part, 1= Chapter, 2=Section, etc.). The ctrl-P followed by * and a number results in the unnumbered environments. And Alt-P followed by S will usually get you Standard. Richard
Re: Spell check, babel, multiple languages, and undefined control sequence error.
Mark the quote, then (rightclick) > Text Style > Customized... > Language to English (UK). The whole quote is now underlined with blue color, indicating that a "foreign" language is used. The rest of the document remains English (USA). Regards Jürgen Am 11.08.2016, 17:16 Uhr, schrieb Marshall Feldman: I'm using the memoir class to produce a LyX document that's mainly written in U.S. English but has several quotes that use British (UK) English. So when I put the document through LyX's spell check and came to words like "behaviours," I just marked them as UK English. But when I tried to compile the document, LaTeX threw an error saying the command "\foreignlanguage{british}{behaviours}" was undefined. No problem, I thought. I'll just put a command in the document preface to load babel with both languages: \usepackage[british,american]{babel}. But this didn't work because LaTeX threw an error saying babel had already been loaded. But for the life of me, I can't find where babel is being loaded. The memoir manual says it does not duplicate the functionality of packages like babel, and babel is not in the list of packages memoir loads. So by a process of elimination, I can only guess that LyX is surreptitiously loading babel. But if so, shouldn't it be doing so with options for all the languages used in the document? (I.e., is this a bug in LyX?) This is happening using LyX 2.2.1 on an iMac running OS X 10.10.5 (Yosemite), with MacTeX 2016 and all packages updated to their latest version with the TeX Live utility. The Language settings in the LyX file are "English (USA)," with Encoding set to Unicode (utf8), and Language package set to "Automatic." How can I fix this problem? Thanks.
Re: Bug with theorems in LyX 2.2?
To seperate the two theorems, you have to go to the end of the first theorem and press 3 times "enter", a red line should occur. Then you can add your second theorem below. Regards Am 11.08.2016, 14:01 Uhr, schrieb Bernt Lie : I used new "theorem" in both cases. Here is what it looks like: The second one does not get numbered. -- However, if I insert a *standard paragraph* in between, then it works. But I think that it should be possible to have two theorems in sequence, without standard text in between??? -B -Original Message- From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Kornel Benko Sent: Thursday, August 11, 2016 13:56 To: lyx-users@lists.lyx.org Subject: Re: Bug with theorems in LyX 2.2? Am Donnerstag, 11. August 2016 um 11:34:53, schrieb Bernt Lie Preliminaries: Windows 10, LyX 2.2.1. Suppose I change a paragraph from standard to Theorem. The theorem then gets numbered. Nice. However, If I have a *new* theorem in the subsequent paragraph, this one does not get numbered!!! At least not in the LyX editor? This must be a bug??? It should be possible to have two theorems in sequence? Thanks. -Bernt L. Use new 'theorem', not new 'theorem*'. Kornel
Re: LyX & mhchem package?
Ok, preview is now working with Tools > Preferences > Look & Feel > Display > Instant preview on Am 09.08.2016, 21:12 Uhr, schrieb Bernt Lie It is weird. I get preview of I open a new standard LaTeX book document. Hm… need to experiment more… --- With best regards/hilsen Bernt Lie, professor University College of Southeast Norway www.usn.no
Re: LyX & mhchem package?
Your are right. mhchem is also available in math mode. I can confirm, that there is no preview. Regards Am 09.08.2016, 18:57 Uhr, schrieb Bernt Lie Thanks for comment. I’m still confused: Ø This has nothing to do with the math mode. It must have something to do with math mode!?! · The feature is described in LyX’s Math Help document (section 20 of LyX’s detailed Math manual for LyX v. 2.2.x) · As far as I can see, LyX’s Math Help document has *not* included the statement you suggest in its Preamble. Instead, it has specified “Load automatically” package “mhchem” >under “Math Options” in the Document Settings. · In the Math Help document, it is stated “After inserting \ce to a formula a new blue box appears where chemical formulas can be inserted in an intuitive way”. I assume that “to >a formula” refers to a math formula??! · In Martin Hensel’s document “The mhchem Bundle” dated August 8, 2016, he states about his package that “This works in text mode (even in headings) and in math mode.” By playing around with my document, it seems like the chemical expressions are correctly typeset in the pdf file both if I insert the \ce expressions in TeX code, and in math mode. However, my *problem* is that in *my* document, the chemical formulas do not *preview* within LyX, while in LyX’s Math Help document, the correct typesetting seems to >*preview* within LyX. · WHY this difference? · (Could it be that my document is based on LaTeX Book style, while LyX’s documentation uses KOMA-script document styles??) -Bernt L.
Re: LyX & mhchem package?
Hi, you should put in the Preamble (Preferences, last entry) the following code: \usepackage[version=4]{mhchem} To insert the code (\ce{H2O}, please use (Main menu) Insert > TeX Code (red box). Then create pdf. This has nothing to do with the math mode. Regards Jürgen Am 09.08.2016, 16:41 Uhr, schrieb Bernt Lie I’m new to LyX, and try to typeset chemical formulae using package mhchem. It is not quite clear from “LyX’s detailed Math manual” of July 5, 2016 how to use mhchem, though. Preliminaries: · I use Windows 10 + LyX 2.2.1 · I *assume* that package mhchem is installed when I specify to “Load always” “mhchem” under Math Options of the Document Settings. [The documentation recommends that >“the LaTeX-package mhchem is installed” – but assumes that the user knows how to install the package.] · From the log when I typeset the document, it appears as if package mhchem, version 4.04 is used. Problem: · I have assumed that the command “\ce” is to be used in math mode, i.e., first use Ctrl+m to switch to math mode, then type “\ce “ (including the space after “\ce”) to get the >“new blue box” that is mentioned in section 20, p. 57 of document “LyX’s detailed Math manual”. · Assume that I want to typeset the chemical symbol for water, H2O – but with the number (“2”) in subscript. · So I type Ctrl+m, and then “\ce “, and then “H2O”... but it does not preview as H_2O. Shouldn’t it? Is it only in the output/PDF file that I see it correctly typeset? · According to Martin Hensel’s documentation for mhchem, version 4.05, I can also typeset chemical expressions in text mode. I assume that I have to insert the “\ce{xxx}” >expression into a TeX code to achieve this? Thanks! -Bernt L.
Re: LyX 2.2.1 is not running
Did you install both, the 32bit and the 64bit version of the Redistributable? Am 26.07.2016, 23:02 Uhr, schrieb Roberto Fanciulli I installed Visual C++ Redistributable for Visual Studio 2015 and again LyX 2.2.1 too, but the problem is not solved. Other suggestions? Regards, Roberto
Re: LyX 2.2.1 doesn't work on WINDOWS 8.1
Your C++ Redistributable 2015 is not installed properly. Please download und install: https://www.microsoft.com/en-US/download/details.aspx?id=48145 Regards Jürgen
Stop pdflatex
Hello, how can I stop the compiler process (pdflatex etc.) in Lyx? TeXworks has a start/stop button for the compilation: "Process interrupted by user". I want to avoid an appcrash of the compiler caused by faulty code (hanging process). Regards Jürgen
Chktex in Miktex
Hello, Chktex is now part of Miktex for Windows. The name of the package is "miktex-chktex-base". I've installed this package in Miktex. I want to use chktex in Lyx, but I don't find an instruction for it on Lyx webpage. Can anyone give my an instruction or hint to integrate chktex in Lyx under Windows with Miktex, for example the Checktex command line in preferences output > latex? Thank you, Jürgen
Re: what exactly is the "latex protocol" of a lyx document
Hello, I think the German translation for "Latex Log" is "Latex-Protokoll". You can execute this command (Dokument > Latex-Protokoll) after compiling your document to pdf. Regards Jürgen
Re: Carriage return in ERT inset
I want to give feedback (tested with a minimal gnuplot script). 1) double line breaks in ERT: works 2) program listing: fails, because gnuplot script is printed and not interpreted 3) paste special > plain text in ERT: works (my preferred method) Thanks!
Carriage return in ERT inset
Hello, Code with carriage returns a a a a inserted in ERT inset in Lyx appears as a a a a Is it possible to keep the carriage returns? (This is important in cases with huge parts of code, example: gnuplot scripts) Regards Jürgen
Re: Embed Gnuplot commands in Lyx
This is a good idea. A small solution is, to write a short manual how to embed Gnuplot in Lyx on the Lyx-Webpage. A disadvantage of embedding Gnuplot code in Lyx is, that ERT doesn't understand unicode. So it's impossible, to embed unicode Gnuplot code in Lyx. Jürgen Am 17.02.2016, 06:23 Uhr, schrieb Scott Kostyshak: On Tue, Feb 16, 2016 at 08:52:53PM +0100, Jürgen Lange wrote: It works now. I had to add the argument -shell-escape to the Converter syntax pdflatex in the Preferences. Thanks Glad you got it working. We wanted to make LyX work more seamlessly with gnuplot. I believe that Koji made efforts towards this goal. I wanted to continue his work but I did not find the time and have since lost interest. I CC Koji just in case you two want to attempt to bring those efforts back to life. Scott
Re: Embed Gnuplot commands in Lyx
It works now. I had to add the argument -shell-escape to the Converter syntax pdflatex in the Preferences. Thanks Am 16.02.2016, 20:16 Uhr, schrieb Guenter Milde : On 2016-02-16, Jürgen Lange wrote: Hello, I tried to embed Gnuplot commands in Lyx. The necessary package is gnuplottex. Because I use Miktex, I put \usepackage[miktex]{gnuplottex} in the Lyx-preamble. With Tex-Code in Lyx-document \begin{gnuplot}[terminal=pdf] plot sin(x) \end{gnuplot}, I don't get any gnuplot output. LyX does not "know" about any raw LaTeX - so it may be you have to export the file to LaTeX and then run LaTeX Gnuplot etc. "by hand". Günter gnuplot_test.pdf Description: Adobe PDF document
Re: Hyperlinks work in one PDF viewer and not another
My system is: Win10, sumatrapdf and the web-link is ok. Regards Am 16.02.2016, 15:20 Uhr, schrieb John Kane : It's a minor point as I am just experimenting as I've never needed links but I seem to be able to create a file which generates a PDF with a web-link that works with >Document Viewer or Adobe Reader. It may just be a problem with my Okular installation but would someone be kind enough to see how it works on their machines? Thanks. --John Kane Kingston ON Canada
Embed Gnuplot commands in Lyx
Hello, I tried to embed Gnuplot commands in Lyx. The necessary package is gnuplottex. Because I use Miktex, I put \usepackage[miktex]{gnuplottex} in the Lyx-preamble. With Tex-Code in Lyx-document \begin{gnuplot}[terminal=pdf] plot sin(x) \end{gnuplot}, I don't get any gnuplot output. Thanks for help and regards Jürgen
Re: coding of umlaut
Am 14.10.2014, 18:31 Uhr, schrieb Wolfgang Engelmann : Am 14.10.2014 um 18:01 schrieb Jürgen Spitzmüller: 2014-10-14 17:41 GMT+02:00 Wolfgang Engelmann: With ISO8859_15 I still do not get the correct Umlaut into my lyx document. I also saved this document under a different name, but no improvement. If you open the bib file with a text editor and set the editor's encoding to ISO8859_15, does it contain the correct glyph? It might have happened that the bib file was saved with a scrambled encoding. Yes, that worked. Does perhaps somebody know why setting the bib file in Jabref to ISO8859_15 does not work? Wolfgang Did I get it right, it is a matter of my bibfile encoding, not of lyx? I use bibtex. Yes. Jürgen Thanks again, and sorry Wolfgang You should try coding "Standard-Zeichenkodierung: Cp1252" in JabRef. Umlaute where displayed correct in Lyx. Greeting Jürgen Lange
Re: cite nobreak
Seems to be that line-break penalty for a citation (\cite{}) in Lyx is 0. This might be a Lyx glitch, because Latex package "cite" has a much higher penalty. Found a workaround for the problem: Put \linebreak[3] as Tex-Code before citation of reference. Greetings
cite nobreak
Hello, I have some citations in the form [22, p.18]. Sometimes Lyx breaks at [22, and next line p.18]. The package cite has an option [nobreak] that obviously prevent this. Can I use this option with Lyx? (\usepackage[nobreak]{cite} in preamble doesn't work properly) Class: Article (Standard) Thanks Jürgen
noun in index
Hello all, I tried to add a "noun" to the index. (mark word -> toggle noun -> Index entry) Unfortunately the small-caps format of the noun is lost in Index. Is this behavior intended? regards Jürgen -- test3.lyx Description: Binary data test3.pdf Description: Adobe PDF document
convert lilypond-lyx to epub
Hello, My lyx documents contain embedded lilypond code. I want to convert to epub. Unfortunately the lilypond code isn't compiling to xhtml exporting with Lyx-HTML. Are there any plans to implement this feature? Regards Jürgen --