答复: 转发: Help for using chapterbib with LyX
Dear Scott, If the reference style is numerical, then the beginning of references of next section is not 1. Do you have noticed that? I am not sure if that can be solved. Thank you very much, Best, Kecao -邮件原件- 发件人: Scott Kostyshak [mailto:skost...@lyx.org] 发送时间: 2016年11月15日 22:51 收件人: caoke...@163.com 抄送: lyx-users@lists.lyx.org 主题: Re: 转发: Help for using chapterbib with LyX On Tue, Nov 15, 2016 at 02:30:26PM +0800, caoke...@163.com wrote: > Dear all, > > I am using Lyx to realize Multiple and sectioned bibliographies in book. I > have spent a lot of time with tips from web page but that does not work. Hi Kecao, Welcome to the list! In the future, please describe what doesn't work. It is hard to help with just "it does not work". You could try the following, which works for me: https://github.com/scottkosty/lyx-princeton-diss Scott P.S. please respond to the list.
RE: Numbering of Theorems, etc.
From: Richard Heck [mailto:rgh...@lyx.org] Sent: tirsdag 15. november 2016 19.04 To: Bernt Lie ; LyX Users Subject: Re: Numbering of Theorems, etc. On 11/15/2016 09:43 AM, Bernt Lie wrote: I use LyX 2.2.1 (currently) on Windows 10. I have a rather long document (some 600 pages, with 9 chapters + several appendices), and want to number Exercises, Problems, Examples, Theorems, etc. *independently* and numbered *by the chapter* (or appendix) they appear in. Thus, exercises in chapter 6 should be numbered Exercise 6.1, Exercise 6.2, etc., while examples in chapter 6 should be numbered Example 6.1, Example 6.2, etc. Currently, this doesn’t work. My set-up is: · Document class: Book (Standard Class) · Modules: Theorems (AMS, Numbered by Type) What else do I need to set? I assume the problem is that you are not getting the "numbered by chapter" bit? If so, then maybe the easiest thing to do is use the internal LaTeX command \@addtoreset in the preamble, thus: \@addtoreset{theorem}{chapter} Now the theorem counter gets reset whenever the chapter counter is reset. You'll need to do the same thing for any other counters you are using, and see the theorems-ams-bytype.inc file for the names of the various counters. See also: http://www.tex.ac.uk/FAQ-addtoreset.html. Richard -- Richard, Thanks for quick reply. I’ve tested it (inserting “\@addtoreset{theorem}{chapter}” in the preamble), but now get the following error messages: [cid:image001.jpg@01D23FF0.AC5099B0] OK. Let me try to be a little bit more precise. Currently, the counters count independently. In other words, Definition 1, Definition 2, Theorem 1, Definition 3, Theorem 2, Example 1, etc. However, they (i) do not contain a chapter counter, and (ii) they do (obviously) not reset the chapter counter in each chapter. So, I still have a problem. -Bernt
Centering a tabular inside a description
I have a tabular environment inside a description environment (see the attached MWE): I'd like to have it centered but I can't get it. I guess I am missing something simple but what? Thanks test.lyx Description: application/lyx
Re: Centering a tabular inside a description
On 16.11.2016 13:49, Mario D wrote: I have a tabular environment inside a description environment (see the attached MWE): I'd like to have it centered but I can't get it. I guess I am missing something simple but what? Maybe use a box? Dee attachment. Daniel test.lyx Description: application/lyx
Re: Centering a tabular inside a description
I knew I was going to make a fool of myself by asking this... :( But sometime one misses the evident. Thank you 2016-11-16 14:15 GMT+01:00 racoon : > On 16.11.2016 13:49, Mario D wrote: > >> I have a tabular environment inside a description environment (see the >> attached MWE): I'd like to have it centered but I can't get it. >> I guess I am missing something simple but what? >> > > Maybe use a box? Dee attachment. > > Daniel > >
Re: Centering a tabular inside a description
On 16.11.2016 14:41, Mario D wrote: I knew I was going to make a fool of myself by asking this... :( But sometime one misses the evident. Don't worry. At least I have my own record of such questions on the list. :)
Re: 答复: 转发: Help for using chapterbib with LyX
On Wed, Nov 16, 2016 at 04:06:03PM +0800, caoke...@163.com wrote: > Dear Scott, > If the reference style is numerical, then the beginning of references of next > section is not 1. Do you have noticed that? > I am not sure if that can be solved. Ah I did not notice that. You might want to search for how to reset the "counter" of citations. My guess is that there is a way but you will have to insert that code manually at the start of each chapter using ERT. Or perhaps there's a way to insert code in the preamble that can reset the counter at the beginning of each chapter. If you do find a solution, please let us know. Best, Scott P.S. please bottom-post signature.asc Description: PGP signature
Re: Numbering of Theorems, etc.
On 11/16/2016 04:03 AM, Bernt Lie wrote: > > *From:*Richard Heck [mailto:rgh...@lyx.org] > *Sent:* tirsdag 15. november 2016 19.04 > *To:* Bernt Lie ; LyX Users > *Subject:* Re: Numbering of Theorems, etc. > > > > On 11/15/2016 09:43 AM, Bernt Lie wrote: > > I use LyX 2.2.1 (currently) on Windows 10. > > > > I have a rather long document (some 600 pages, with 9 chapters + > several appendices), and want to number Exercises, Problems, > Examples, Theorems, etc. **independently** and numbered **by the > chapter** (or appendix) they appear in. Thus, exercises in chapter > 6 should be numbered Exercise 6.1, Exercise 6.2, etc., while > examples in chapter 6 should be numbered Example 6.1, Example 6.2, > etc. > > > > Currently, this doesn’t work. My set-up is: > > · Document class: Book (Standard Class) > > · Modules: Theorems (AMS, Numbered by Type) > > > > What else do I need to set? > > > I assume the problem is that you are not getting the "numbered by > chapter" bit? If so, then maybe the easiest thing to do is use the > internal LaTeX command \@addtoreset in the preamble, thus: > \@addtoreset{theorem}{chapter} > Now the theorem counter gets reset whenever the chapter counter is reset. > > You'll need to do the same thing for any other counters you are using, > and see the theorems-ams-bytype.inc file for the names of the various > counters. > > See also: http://www.tex.ac.uk/FAQ-addtoreset.html. > > Richard > > -- > > Richard, > > Thanks for quick reply. I’ve tested it (inserting > “\@addtoreset{theorem}{chapter}” in the preamble), but now get the > following error messages: > > > > OK. Let me try to be a little bit more precise. Currently, the > counters count independently. In other words, Definition 1, Definition > 2, Theorem 1, Definition 3, Theorem 2, Example 1, etc. > > > > However, they (i) do not contain a chapter counter, and (ii) they do > (obviously) not reset the chapter counter in each chapter. > See the attached. Sorry, I got the names of the counters wrong. (I mixed up the LyX counters and the LaTeX ones.) The LaTeX names are the same as the names of the environments as they are declared in the preamble, e.g.: \newtheorem{lem}{\protect\lemmaname} So the counter is "lem" for Lemmas. Richard ch.lyx Description: application/lyx
Re: HTML conversions [Resolved]
This problem has been fixed. A work-around from my colleague was simple. The function with a double dash that could not be converted to html is now displayed as an image copied from the screen. Thanks to those who offered advice. Gordon.
Re: HTML conversions [Resolved]
On Thu, Nov 17, 2016 at 09:59:27AM +1300, gordon cooper wrote: > This problem has been fixed. A work-around from my colleague was > simple. The function with a double dash that could not be converted > to html is now displayed as an image copied from the screen. Thanks for posting back this creative solution! Glad it is fixed. Scott signature.asc Description: PGP signature
Re: Numbering of Theorems, etc.
On 17/11/2016 6:02 a.m., Richard Heck wrote: On 11/16/2016 04:03 AM, Bernt Lie wrote: *From:*Richard Heck [mailto:rgh...@lyx.org] *Sent:* tirsdag 15. november 2016 19.04 *To:* Bernt Lie ; LyX Users *Subject:* Re: Numbering of Theorems, etc. On 11/15/2016 09:43 AM, Bernt Lie wrote: I use LyX 2.2.1 (currently) on Windows 10. I have a rather long document (some 600 pages, with 9 chapters + several appendices), and want to number Exercises, Problems, Examples, Theorems, etc. **independently** and numbered **by the chapter** (or appendix) they appear in. Thus, exercises in chapter 6 should be numbered Exercise 6.1, Exercise 6.2, etc., while examples in chapter 6 should be numbered Example 6.1, Example 6.2, etc. Currently, this doesn’t work. My set-up is: ·Document class: Book (Standard Class) ·Modules: Theorems (AMS, Numbered by Type) What else do I need to set? I assume the problem is that you are not getting the "numbered by chapter" bit? If so, then maybe the easiest thing to do is use the internal LaTeX command \@addtoreset in the preamble, thus: \@addtoreset{theorem}{chapter} Now the theorem counter gets reset whenever the chapter counter is reset. You'll need to do the same thing for any other counters you are using, and see the theorems-ams-bytype.inc file for the names of the various counters. See also: http://www.tex.ac.uk/FAQ-addtoreset.html. Richard -- Richard, Thanks for quick reply. I’ve tested it (inserting “\@addtoreset{theorem}{chapter}” in the preamble), but now get the following error messages: OK. Let me try to be a little bit more precise. Currently, the counters count independently. In other words, Definition 1, Definition 2, Theorem 1, Definition 3, Theorem 2, Example 1, etc. However, they (i) do not contain a chapter counter, and (ii) they do (obviously) not reset the chapter counter in each chapter. See the attached. Sorry, I got the names of the counters wrong. (I mixed up the LyX counters and the LaTeX ones.) The LaTeX names are the same as the names of the environments as they are declared in the preamble, e.g.: \newtheorem{lem}{\protect\lemmaname} So the counter is "lem" for Lemmas. Richard Perhaps I've misunderstood, but it seems to me what is wanted is the module Theorems (Numbered by Type within Chapters) that comes with LyX. This allows one to number by type within chapters each of theorems, corollaries, lemmas, propositions, conjectures, facts, definitions, examples, problems, exercises, remarks and claims. Andrew --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus