Question about biblio
Hi all, I am preparing my PhD presentation in beamer, and need to use biblatex in order to make citations appear in the same slide. I am about to achieve this, with a lot of effort, but now my problem is that Lyx is not copying my bib file, as done automatically with bibtex, from my custom folder to the temp path. When using the bibliography inset of Lyx, it generated the following latex code: \bibliographystyle{plain} \bibliography{\stringD:/Mariano/papers/ECG Classification/docs/database de referencias/refs\string} And work great, it means copy refs.bib from that folder to the temp path, and compile and produce pdf ok. But when using biblatex, I dont know how to do the filename conversion, or how to include refs.bib in the files to copy list that Lyx automatically do when using the inset. Sometime when I used the insert - file - external material I remember that you can define a list of files to copy to the temp path, and then the conversion script to use, etc. Maybe I can do smth similar with the bib file. Thanks for your help, Mariano.
Conversion to doc via pandoc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just discovered pandoc, and I use it to convert to odt format (and then in OpenOffice to doc). The conversion goes LyX - LyXHTML - odt I defined the following format: \format odt lo odt Libreoffice writer libreoffice libreoffice document,menu=export and the following converter: \converter xhtml odt lo pandoc -o $$o $$i The format is very nice to work with, and I had no luck with the normal mk4ht way, as it resulted in a corrupt odt document, while the pandoc route worked nicely. OK - tables and pictures need to be manually adjusted, but the text was exported very nicely. I tried to go LyX - LaTeX - odt, but the result was not as useful. Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+MGasACgkQoYgNqgF2egpL9wCfbZfmBs3qdzFxvhYzFLt2ivab IGoAnRjvjiBKr5sgyw2sCfTmLsU5H95i =ttIF -END PGP SIGNATURE-
Regenerating Lilypond files
I am working on a large project involving hundreds of musical examples typeset in Lilypond. So far, LyX has been great in handling them. I have run into one issue. LyX seems to know if a Lilypond file hasn't changed since the last output PDF was generated. If the Lilypond file hasn't changed, it doesn't run Lilypond again. In most circumstances, I can see how this is desirable. However, I need to know how to get LyX to regenerate ALL Lilypond files if I want to, even if the file LyX actually sees hasn't changed. Basically, since the structure of my musical examples is so complex, I have taken to separating some general formatting instructions and the actual musical data into separate files. These are loaded in the header of the Lilypond file that LyX actually sees, which is mostly a dummy file that sets up the score for the actual LyX example. So, if I make changes to the actual notes of my file or to the general formatting header file for my examples, the file LyX sees usually doesn't change. Yet, I still need LyX to re-run Lilypond sometimes. I don't need this to happen all the time, but is there a command or a way to just tell LyX to re-run Lilypond for all external material insets if I want a complete wipe? (I've noticed various ways of hacking this, like deleting an external material insertion and reinstating it in LyX, or adding an unnecessary blank comment line to my dummy files so LyX detects a change, but these sorts of things are obviously annoying when dealing with hundreds of Lilypond files.) Thanks for any suggestions!
Re: Global find and replace of straight quotes with proper curly quotes?
On Sun, Apr 15, 2012 at 9:36 PM, Richard Heck rgh...@comcast.net wrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heckrgh...@comcast.net wrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or didn't, see below] know how to put the space back in in the replace field Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s] Replace Field: CTRL-L ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced FR? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
numbering paragraphs (lyx newbie)
Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama
Re: Question about biblio
On Mon, Apr 16, 2012 at 3:05 AM, Mariano Llamedo Soria llame...@gmail.com wrote: Hi all, I am preparing my PhD presentation in beamer, and need to use biblatex in order to make citations appear in the same slide. I am about to achieve this, with a lot of effort, but now my problem is that Lyx is not copying my bib file, as done automatically with bibtex, from my custom folder to the temp path. When using the bibliography inset of Lyx, it generated the following latex code: \bibliographystyle{plain} \bibliography{\stringD:/Mariano/papers/ECG Classification/docs/database de referencias/refs\string} And work great, it means copy refs.bib from that folder to the temp path, and compile and produce pdf ok. But when using biblatex, I dont know how to do the filename conversion, or how to include refs.bib in the files to copy list that Lyx automatically do when using the inset. Mariano, check out the wiki page on biblatex. It basically says two things: 1. Put the \usepackage[biblatex various options]{biblatex} your preamble 2. Load the bib file in the preamble with biblatex's commands: either \bibliographyfilename} or the newer \addbibresource{filename} full instructions are here: http://wiki.lyx.org/BibTeX/Biblatex Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonka yamap...@gmail.com wrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On 04/16/2012 09:41 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonkayamap...@gmail.com wrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. Thank you, Stephano, good question The required format has no sections - the only organizing level is the paragraph, thus the numbering should go from [0001] to [0n] as the last paragraph in the document. It might be nice to be able to have a few non-numbered paragraphs, but that hack would be very easy, if the numbering elsewhere were achieved.
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonka yamap...@gmail.com wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonkayamap...@gmail.com wrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. Thank you, Stephano, good question The required format has no sections - the only organizing level is the paragraph, thus the numbering should go from [0001] to [0n] as the last paragraph in the document. It might be nice to be able to have a few non-numbered paragraphs, but that hack would be very easy, if the numbering elsewhere were achieved. Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 10:50 AM, stefano franchi stefano.fran...@gmail.com wrote: On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonka yamap...@gmail.com wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Also, it depends on which document class you're using. Here is a stab using memoir and the fmtcount package to get the padding zeros: Put this in your preamble: \setcounter{secnumdepth}{5} \setafterparaskip{0em} \setbeforeparaskip{0em} \setparaheadstyle{\normalfont} \usepackage{fmtcount} \renewcommand\theparagraph{{[}\padzeroes[4]{\decimal{paragraph}}{]}} Then, use the first few words of each real paragraphs as the content of the paragraph environment, as per in the enclosed example. You may want to write a simple module that tweak the layout of the paragraph environment in lyx, perhaps, to match more closely the final output, and put the preamble code in the same module. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org numberedPara-example.lyx Description: Binary data
Re: Using LyX to edit organise bibliographies
I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: Using LyX to edit organise bibliographies
I'm still trying Mr Andrew Parsloe's work and there are to new thing I have discovered 3. The math insets such as $^{90}$ are imported as text when they should be imported as math, see point 1. 4. The coding \textemdash is imported as text when it should be imported as -- and the -- characters should be exported as \textemdash, this is a large dash Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 01:21 p.m., Alex Vergara Gil escribió: I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: footer on all pages
On Sat, 14 Apr 2012, the wise Paul A. Rubin wrote: You set Document Settings Page Layout Page Layout Headings style to fancy? That and \rfoot{} in the preamble work for me. Perhaps you should post a minimal example file. (Also, it might help to know which version of LyX you use, and what platform you're on.) Yes the headings style is fancy and I put \rfoot{} in the preamble. But I discovered that the footer is not shown on pages with the chapter headers. I'm trying to write a contract which has a chapter on almost all pages so the footers are not shown this way. So the question now in my case is how to get the footer on the chapter pages? Marco -- AMBIGUITY: Telling the truth when you don't mean to.
Re: Conversion to doc via pandoc
On 04/16/2012 09:07 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just discovered pandoc, and I use it to convert to odt format (and then in OpenOffice to doc). The conversion goes LyX - LyXHTML - odt I defined the following format: \format odt lo odt Libreoffice writer libreoffice libreoffice document,menu=export and the following converter: \converter xhtml odt lo pandoc -o $$o $$i How much better is this than simply exporting LyXHTML and then opening the resulting file in LibreOffice? There's no reason we couldn't add this as a converter. File a bug to remind me if you like. Richard
Re: Global find and replace of straight quotes with proper curly quotes?
On 04/16/2012 09:22 AM, stefano franchi wrote: On Sun, Apr 15, 2012 at 9:36 PM, Richard Heckrgh...@comcast.net wrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heckrgh...@comcast.netwrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or didn't, see below] know how to put the space back in in the replace field Oh, sorry, I see the problem. Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? Maybe that one could be done with a script. Another option would be to add the space back in with something like X . Then you can replace that with nothing. 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s] Replace Field: CTRL-L ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced FR? There have been some reports of this kind of behavior. Richard
Re: Conversion to doc via pandoc
On Mon, Apr 16, 2012 at 10:42 PM, Richard Heck rgh...@comcast.net wrote: There's no reason we couldn't add this as a converter. File a bug to remind me if you like. I guess #6042 [1] serves for this purpose. Liviu [1] http://www.lyx.org/trac/ticket/6042
Re: Global find and replace of straight quotes with proper curly quotes?
On Mon, Apr 16, 2012 at 3:45 PM, Richard Heck rgh...@comcast.net wrote: On 04/16/2012 09:22 AM, stefano franchi wrote: On Sun, Apr 15, 2012 at 9:36 PM, Richard Heckrgh...@comcast.net wrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heckrgh...@comcast.net wrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or didn't, see below] know how to put the space back in in the replace field Oh, sorry, I see the problem. Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? Maybe that one could be done with a script. Another option would be to add the space back in with something like X . Then you can replace that with nothing. Ah right...the old trick. I had forgotten about that (used to do it all the time on my wife's word files to get rid of double end-of-paragraphs). Thanks for reminding me. 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s] Replace Field: CTRL-L ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced FR? There have been some reports of this kind of behavior. Glad to know it is not me... Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Global find and replace of straight quotes with proper curly quotes?
stefano franchi writes: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? I think you can simply fool LyX and insert a space at the very beginning even if the stupid thing would not let you do so. You can do this both in the find and replace area. Simply input any character followed by a space and what else you need, then delete the first character you inserted. You now have an initial space in both areas... -- Enrico
RE: footer on all pages
Would the solution be easy as Document-Settings-modules Custom header/footerlines to the selected list. Without it fancy headers doesn't seem to work. Best regards, Hannu Vuolasaho
Re: Regenerating Lilypond files
On GNU/Linux, an easy way to solve it would be to run touch *.ly in the directory(ies) containing the Lilypond files to make them appear modified. Perhaps someone else knows how to do it the right way. - Thomas On Sun, Apr 15, 2012 at 4:24 PM, John McKay jzmc...@yahoo.com wrote: I am working on a large project involving hundreds of musical examples typeset in Lilypond. So far, LyX has been great in handling them. I have run into one issue. LyX seems to know if a Lilypond file hasn't changed since the last output PDF was generated. If the Lilypond file hasn't changed, it doesn't run Lilypond again. In most circumstances, I can see how this is desirable. However, I need to know how to get LyX to regenerate ALL Lilypond files if I want to, even if the file LyX actually sees hasn't changed. Basically, since the structure of my musical examples is so complex, I have taken to separating some general formatting instructions and the actual musical data into separate files. These are loaded in the header of the Lilypond file that LyX actually sees, which is mostly a dummy file that sets up the score for the actual LyX example. So, if I make changes to the actual notes of my file or to the general formatting header file for my examples, the file LyX sees usually doesn't change. Yet, I still need LyX to re-run Lilypond sometimes. I don't need this to happen all the time, but is there a command or a way to just tell LyX to re-run Lilypond for all external material insets if I want a complete wipe? (I've noticed various ways of hacking this, like deleting an external material insertion and reinstating it in LyX, or adding an unnecessary blank comment line to my dummy files so LyX detects a change, but these sorts of things are obviously annoying when dealing with hundreds of Lilypond files.) Thanks for any suggestions!
Re: numbering multi-line formulas
Also, pressing Ctrl+Enter in regular math mode will give you eqnarray. On Sun, Apr 15, 2012 at 9:09 PM, David L. Johnson david.john...@lehigh.eduwrote: On 04/15/2012 06:18 PM, El Merehbi, Ibrahim wrote: Hello again, I believe I didn't clear it out well. I meant a shortcut for the eqnarray not the equation numbering. Sorry, I misunderstood. Add to the shortcuts something like this: command-sequence math-mode on; math-mutate eqnarray; and link it to your favorite hot-key. I use F12. -- David L. Johnson A mathematician is a machine for turning coffee into theorems. -- Paul Erdos --
Re: Using LyX to edit organise bibliographies
On 17/04/2012 7:21 a.m., Alex Vergara Gil wrote: I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. Thanks for the kind comments. I did wonder about importing the bib files as LaTeX files so that commands like \textsc{blahblah} meant blahblah was displayed as small caps in LyX, and correspondingly, exporting as LaTeX so that the reverse happened, but it seemed *much* more complicated: some formatting, like the small caps, to be translated into LaTeX, some formatting, like the list environments used for the overall display of the records, not to be translated into LaTeX. A few thoughts of this kind convinced me that converting to and from *text* rather than LaTeX was the way to go (i.e. was within my technical competence). 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. If you mean having a blank record available like @book{, author = {}, title = {}, ... then you could create one in a yellow note (or a deactivated branch) and simply copy and paste as required. In biblatex there are so many possible fields that having a blank record containing all possibilities would be a hindrance rather than a help. I found it helpful to associate a shortcut key (Ctrl+=) with command-sequence self-insert = {},; char-left; char-left; which inserts ={}, and puts the cursor between the braces, waiting for stuff to be typed. Andrew my best regards ~-o--{}--o-~ Alex Vergara Gil
Re: Using LyX to edit organise bibliographies
On 17/04/2012 7:53 a.m., Alex Vergara Gil wrote: I'm still trying Mr Andrew Parsloe's work and there are to new thing I have discovered 3. The math insets such as $^{90}$ are imported as text when they should be imported as math, see point 1. 4. The coding \textemdash is imported as text when it should be imported as -- and the -- characters should be exported as \textemdash, this is a large dash Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. best regards ~-o--{}--o-~ Alex Vergara Gil Alex, I've chosen to use LyX as an elaborate *text* editor with its list formatting, its bolding, colour, Outline window, yellow notes, branches, etc., but all the time acting on plain text rather than interpreting LaTeX commands and displaying them as LyX does `normally'. The main reason for this choice (with my level of technical competence) was the difficulty in distinguishing, on export to the plain text bib file, which LaTeX commands are part of the bib file and which are just providing cosmetic effects to aid readability or aid navigation in LyX (and are not part of the bib file). Whatever the frustration of not having e.g. maths displayed as such, it does mean you can use LyX with a certain freedom, almost as a `scratch pad', colouring text here, emphasising it there, bolding it, if you want to draw attention to particular records or parts of them -- it is all stripped away on plain text export. Andrew
Re: numbering paragraphs (lyx newbie)
The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the fix. I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Thank you so much! Yama 1.- the pages of the specification (but not the transmittal letter sheets or other forms), including claims and abstract, must be numbered consecutively, starting with 1, the numbers being centrally located above or preferably below, the text. The lines of the specification must be 1.5 or double spaced (lines of text not comprising the specification need not be 1.5 or double spaced). It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). It is preferable to use all of the section headings described below to represent the parts of the specification. Section headings should use upper case text without underlining or bold type. If the section contains no text, the phrase Not Applicable should follow the section heading. On 04/16/2012 11:17 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 10:50 AM, stefano franchi stefano.fran...@gmail.com wrote: On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonkayamap...@gmail.com wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Also, it depends on which document class you're using. Here is a stab using memoir and the fmtcount package to get the padding zeros: Put this in your preamble: \setcounter{secnumdepth}{5} \setafterparaskip{0em} \setbeforeparaskip{0em} \setparaheadstyle{\normalfont} \usepackage{fmtcount} \renewcommand\theparagraph{{[}\padzeroes[4]{\decimal{paragraph}}{]}} Then, use the first few words of each real paragraphs as the content of the paragraph environment, as per in the enclosed example. You may want to write a simple module that tweak the layout of the paragraph environment in lyx, perhaps, to match more closely the final output, and put the preamble code in the same module. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 9:34 PM, Yamandu Ploskonka yamap...@gmail.com wrote: The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the fix. I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. You can also do it with standard classes and the titlesec package (which is not really compatible with memoir). See attached example. If you have section headings, however, paragraphs numbers will not be reset for every section. Is that what you need? Resetting counters can be managed, I think, but off the top of my head I don't remember how to do it automatically. BTW, in the attached example, the spacing between the para label and the main text (which is set in the preamble), should probably be tweaked to get a natural looking feel. See titlesec's manual for details. Your specs are also not very clear about the parindent. Is the number indented as well or just the paragraph text? At any rate, either behavior is easy to do with memoir or the titlesec package. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Then we're neighbor. I live in Austin too. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org numberedPara-example-article.lyx Description: Binary data
Re: numbering paragraphs (lyx newbie)
parnum is flush with left margin, indent is just enough to allow for parnum and a little bit. Some examples I have seen do have some space between paragraphs, but it is not explicitly requested. the numbering is running, from 0001 to , last parnum of the document. Only section headings would not be numbered, and that is easy to hack in many ways. I'll try the attach, Thank you! On 04/16/2012 10:07 PM, stefano franchi wrote: On Mon, Apr 16, 2012 at 9:34 PM, Yamandu Ploskonkayamap...@gmail.com wrote: The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the fix. I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. You can also do it with standard classes and the titlesec package (which is not really compatible with memoir). See attached example. If you have section headings, however, paragraphs numbers will not be reset for every section. Is that what you need? Resetting counters can be managed, I think, but off the top of my head I don't remember how to do it automatically. BTW, in the attached example, the spacing between the para label and the main text (which is set in the preamble), should probably be tweaked to get a natural looking feel. See titlesec's manual for details. Your specs are also not very clear about the parindent. Is the number indented as well or just the paragraph text? At any rate, either behavior is easy to do with memoir or the titlesec package. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Then we're neighbor. I live in Austin too. Cheers, Stefano
Question about biblio
Hi all, I am preparing my PhD presentation in beamer, and need to use biblatex in order to make citations appear in the same slide. I am about to achieve this, with a lot of effort, but now my problem is that Lyx is not copying my bib file, as done automatically with bibtex, from my custom folder to the temp path. When using the bibliography inset of Lyx, it generated the following latex code: \bibliographystyle{plain} \bibliography{\stringD:/Mariano/papers/ECG Classification/docs/database de referencias/refs\string} And work great, it means copy refs.bib from that folder to the temp path, and compile and produce pdf ok. But when using biblatex, I dont know how to do the filename conversion, or how to include refs.bib in the files to copy list that Lyx automatically do when using the inset. Sometime when I used the insert - file - external material I remember that you can define a list of files to copy to the temp path, and then the conversion script to use, etc. Maybe I can do smth similar with the bib file. Thanks for your help, Mariano.
Conversion to doc via pandoc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just discovered pandoc, and I use it to convert to odt format (and then in OpenOffice to doc). The conversion goes LyX - LyXHTML - odt I defined the following format: \format odt lo odt Libreoffice writer libreoffice libreoffice document,menu=export and the following converter: \converter xhtml odt lo pandoc -o $$o $$i The format is very nice to work with, and I had no luck with the normal mk4ht way, as it resulted in a corrupt odt document, while the pandoc route worked nicely. OK - tables and pictures need to be manually adjusted, but the text was exported very nicely. I tried to go LyX - LaTeX - odt, but the result was not as useful. Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+MGasACgkQoYgNqgF2egpL9wCfbZfmBs3qdzFxvhYzFLt2ivab IGoAnRjvjiBKr5sgyw2sCfTmLsU5H95i =ttIF -END PGP SIGNATURE-
Regenerating Lilypond files
I am working on a large project involving hundreds of musical examples typeset in Lilypond. So far, LyX has been great in handling them. I have run into one issue. LyX seems to know if a Lilypond file hasn't changed since the last output PDF was generated. If the Lilypond file hasn't changed, it doesn't run Lilypond again. In most circumstances, I can see how this is desirable. However, I need to know how to get LyX to regenerate ALL Lilypond files if I want to, even if the file LyX actually sees hasn't changed. Basically, since the structure of my musical examples is so complex, I have taken to separating some general formatting instructions and the actual musical data into separate files. These are loaded in the header of the Lilypond file that LyX actually sees, which is mostly a dummy file that sets up the score for the actual LyX example. So, if I make changes to the actual notes of my file or to the general formatting header file for my examples, the file LyX sees usually doesn't change. Yet, I still need LyX to re-run Lilypond sometimes. I don't need this to happen all the time, but is there a command or a way to just tell LyX to re-run Lilypond for all external material insets if I want a complete wipe? (I've noticed various ways of hacking this, like deleting an external material insertion and reinstating it in LyX, or adding an unnecessary blank comment line to my dummy files so LyX detects a change, but these sorts of things are obviously annoying when dealing with hundreds of Lilypond files.) Thanks for any suggestions!
Re: Global find and replace of straight quotes with proper curly quotes?
On Sun, Apr 15, 2012 at 9:36 PM, Richard Heck rgh...@comcast.net wrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heckrgh...@comcast.net wrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or didn't, see below] know how to put the space back in in the replace field Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s] Replace Field: CTRL-L ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced FR? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
numbering paragraphs (lyx newbie)
Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama
Re: Question about biblio
On Mon, Apr 16, 2012 at 3:05 AM, Mariano Llamedo Soria llame...@gmail.com wrote: Hi all, I am preparing my PhD presentation in beamer, and need to use biblatex in order to make citations appear in the same slide. I am about to achieve this, with a lot of effort, but now my problem is that Lyx is not copying my bib file, as done automatically with bibtex, from my custom folder to the temp path. When using the bibliography inset of Lyx, it generated the following latex code: \bibliographystyle{plain} \bibliography{\stringD:/Mariano/papers/ECG Classification/docs/database de referencias/refs\string} And work great, it means copy refs.bib from that folder to the temp path, and compile and produce pdf ok. But when using biblatex, I dont know how to do the filename conversion, or how to include refs.bib in the files to copy list that Lyx automatically do when using the inset. Mariano, check out the wiki page on biblatex. It basically says two things: 1. Put the \usepackage[biblatex various options]{biblatex} your preamble 2. Load the bib file in the preamble with biblatex's commands: either \bibliographyfilename} or the newer \addbibresource{filename} full instructions are here: http://wiki.lyx.org/BibTeX/Biblatex Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonka yamap...@gmail.com wrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On 04/16/2012 09:41 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonkayamap...@gmail.com wrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. Thank you, Stephano, good question The required format has no sections - the only organizing level is the paragraph, thus the numbering should go from [0001] to [0n] as the last paragraph in the document. It might be nice to be able to have a few non-numbered paragraphs, but that hack would be very easy, if the numbering elsewhere were achieved.
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonka yamap...@gmail.com wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonkayamap...@gmail.com wrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my subsubsections being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. Thank you, Stephano, good question The required format has no sections - the only organizing level is the paragraph, thus the numbering should go from [0001] to [0n] as the last paragraph in the document. It might be nice to be able to have a few non-numbered paragraphs, but that hack would be very easy, if the numbering elsewhere were achieved. Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 10:50 AM, stefano franchi stefano.fran...@gmail.com wrote: On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonka yamap...@gmail.com wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Also, it depends on which document class you're using. Here is a stab using memoir and the fmtcount package to get the padding zeros: Put this in your preamble: \setcounter{secnumdepth}{5} \setafterparaskip{0em} \setbeforeparaskip{0em} \setparaheadstyle{\normalfont} \usepackage{fmtcount} \renewcommand\theparagraph{{[}\padzeroes[4]{\decimal{paragraph}}{]}} Then, use the first few words of each real paragraphs as the content of the paragraph environment, as per in the enclosed example. You may want to write a simple module that tweak the layout of the paragraph environment in lyx, perhaps, to match more closely the final output, and put the preamble code in the same module. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org numberedPara-example.lyx Description: Binary data
Re: Using LyX to edit organise bibliographies
I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: Using LyX to edit organise bibliographies
I'm still trying Mr Andrew Parsloe's work and there are to new thing I have discovered 3. The math insets such as $^{90}$ are imported as text when they should be imported as math, see point 1. 4. The coding \textemdash is imported as text when it should be imported as -- and the -- characters should be exported as \textemdash, this is a large dash Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 01:21 p.m., Alex Vergara Gil escribió: I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: footer on all pages
On Sat, 14 Apr 2012, the wise Paul A. Rubin wrote: You set Document Settings Page Layout Page Layout Headings style to fancy? That and \rfoot{} in the preamble work for me. Perhaps you should post a minimal example file. (Also, it might help to know which version of LyX you use, and what platform you're on.) Yes the headings style is fancy and I put \rfoot{} in the preamble. But I discovered that the footer is not shown on pages with the chapter headers. I'm trying to write a contract which has a chapter on almost all pages so the footers are not shown this way. So the question now in my case is how to get the footer on the chapter pages? Marco -- AMBIGUITY: Telling the truth when you don't mean to.
Re: Conversion to doc via pandoc
On 04/16/2012 09:07 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just discovered pandoc, and I use it to convert to odt format (and then in OpenOffice to doc). The conversion goes LyX - LyXHTML - odt I defined the following format: \format odt lo odt Libreoffice writer libreoffice libreoffice document,menu=export and the following converter: \converter xhtml odt lo pandoc -o $$o $$i How much better is this than simply exporting LyXHTML and then opening the resulting file in LibreOffice? There's no reason we couldn't add this as a converter. File a bug to remind me if you like. Richard
Re: Global find and replace of straight quotes with proper curly quotes?
On 04/16/2012 09:22 AM, stefano franchi wrote: On Sun, Apr 15, 2012 at 9:36 PM, Richard Heckrgh...@comcast.net wrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heckrgh...@comcast.netwrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or didn't, see below] know how to put the space back in in the replace field Oh, sorry, I see the problem. Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? Maybe that one could be done with a script. Another option would be to add the space back in with something like X . Then you can replace that with nothing. 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s] Replace Field: CTRL-L ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced FR? There have been some reports of this kind of behavior. Richard
Re: Conversion to doc via pandoc
On Mon, Apr 16, 2012 at 10:42 PM, Richard Heck rgh...@comcast.net wrote: There's no reason we couldn't add this as a converter. File a bug to remind me if you like. I guess #6042 [1] serves for this purpose. Liviu [1] http://www.lyx.org/trac/ticket/6042
Re: Global find and replace of straight quotes with proper curly quotes?
On Mon, Apr 16, 2012 at 3:45 PM, Richard Heck rgh...@comcast.net wrote: On 04/16/2012 09:22 AM, stefano franchi wrote: On Sun, Apr 15, 2012 at 9:36 PM, Richard Heckrgh...@comcast.net wrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heckrgh...@comcast.net wrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or didn't, see below] know how to put the space back in in the replace field Oh, sorry, I see the problem. Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? Maybe that one could be done with a script. Another option would be to add the space back in with something like X . Then you can replace that with nothing. Ah right...the old trick. I had forgotten about that (used to do it all the time on my wife's word files to get rid of double end-of-paragraphs). Thanks for reminding me. 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s] Replace Field: CTRL-L ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced FR? There have been some reports of this kind of behavior. Glad to know it is not me... Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Global find and replace of straight quotes with proper curly quotes?
stefano franchi writes: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? I think you can simply fool LyX and insert a space at the very beginning even if the stupid thing would not let you do so. You can do this both in the find and replace area. Simply input any character followed by a space and what else you need, then delete the first character you inserted. You now have an initial space in both areas... -- Enrico
RE: footer on all pages
Would the solution be easy as Document-Settings-modules Custom header/footerlines to the selected list. Without it fancy headers doesn't seem to work. Best regards, Hannu Vuolasaho
Re: Regenerating Lilypond files
On GNU/Linux, an easy way to solve it would be to run touch *.ly in the directory(ies) containing the Lilypond files to make them appear modified. Perhaps someone else knows how to do it the right way. - Thomas On Sun, Apr 15, 2012 at 4:24 PM, John McKay jzmc...@yahoo.com wrote: I am working on a large project involving hundreds of musical examples typeset in Lilypond. So far, LyX has been great in handling them. I have run into one issue. LyX seems to know if a Lilypond file hasn't changed since the last output PDF was generated. If the Lilypond file hasn't changed, it doesn't run Lilypond again. In most circumstances, I can see how this is desirable. However, I need to know how to get LyX to regenerate ALL Lilypond files if I want to, even if the file LyX actually sees hasn't changed. Basically, since the structure of my musical examples is so complex, I have taken to separating some general formatting instructions and the actual musical data into separate files. These are loaded in the header of the Lilypond file that LyX actually sees, which is mostly a dummy file that sets up the score for the actual LyX example. So, if I make changes to the actual notes of my file or to the general formatting header file for my examples, the file LyX sees usually doesn't change. Yet, I still need LyX to re-run Lilypond sometimes. I don't need this to happen all the time, but is there a command or a way to just tell LyX to re-run Lilypond for all external material insets if I want a complete wipe? (I've noticed various ways of hacking this, like deleting an external material insertion and reinstating it in LyX, or adding an unnecessary blank comment line to my dummy files so LyX detects a change, but these sorts of things are obviously annoying when dealing with hundreds of Lilypond files.) Thanks for any suggestions!
Re: numbering multi-line formulas
Also, pressing Ctrl+Enter in regular math mode will give you eqnarray. On Sun, Apr 15, 2012 at 9:09 PM, David L. Johnson david.john...@lehigh.eduwrote: On 04/15/2012 06:18 PM, El Merehbi, Ibrahim wrote: Hello again, I believe I didn't clear it out well. I meant a shortcut for the eqnarray not the equation numbering. Sorry, I misunderstood. Add to the shortcuts something like this: command-sequence math-mode on; math-mutate eqnarray; and link it to your favorite hot-key. I use F12. -- David L. Johnson A mathematician is a machine for turning coffee into theorems. -- Paul Erdos --
Re: Using LyX to edit organise bibliographies
On 17/04/2012 7:21 a.m., Alex Vergara Gil wrote: I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. Thanks for the kind comments. I did wonder about importing the bib files as LaTeX files so that commands like \textsc{blahblah} meant blahblah was displayed as small caps in LyX, and correspondingly, exporting as LaTeX so that the reverse happened, but it seemed *much* more complicated: some formatting, like the small caps, to be translated into LaTeX, some formatting, like the list environments used for the overall display of the records, not to be translated into LaTeX. A few thoughts of this kind convinced me that converting to and from *text* rather than LaTeX was the way to go (i.e. was within my technical competence). 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. If you mean having a blank record available like @book{, author = {}, title = {}, ... then you could create one in a yellow note (or a deactivated branch) and simply copy and paste as required. In biblatex there are so many possible fields that having a blank record containing all possibilities would be a hindrance rather than a help. I found it helpful to associate a shortcut key (Ctrl+=) with command-sequence self-insert = {},; char-left; char-left; which inserts ={}, and puts the cursor between the braces, waiting for stuff to be typed. Andrew my best regards ~-o--{}--o-~ Alex Vergara Gil
Re: Using LyX to edit organise bibliographies
On 17/04/2012 7:53 a.m., Alex Vergara Gil wrote: I'm still trying Mr Andrew Parsloe's work and there are to new thing I have discovered 3. The math insets such as $^{90}$ are imported as text when they should be imported as math, see point 1. 4. The coding \textemdash is imported as text when it should be imported as -- and the -- characters should be exported as \textemdash, this is a large dash Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. best regards ~-o--{}--o-~ Alex Vergara Gil Alex, I've chosen to use LyX as an elaborate *text* editor with its list formatting, its bolding, colour, Outline window, yellow notes, branches, etc., but all the time acting on plain text rather than interpreting LaTeX commands and displaying them as LyX does `normally'. The main reason for this choice (with my level of technical competence) was the difficulty in distinguishing, on export to the plain text bib file, which LaTeX commands are part of the bib file and which are just providing cosmetic effects to aid readability or aid navigation in LyX (and are not part of the bib file). Whatever the frustration of not having e.g. maths displayed as such, it does mean you can use LyX with a certain freedom, almost as a `scratch pad', colouring text here, emphasising it there, bolding it, if you want to draw attention to particular records or parts of them -- it is all stripped away on plain text export. Andrew
Re: numbering paragraphs (lyx newbie)
The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the fix. I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Thank you so much! Yama 1.- the pages of the specification (but not the transmittal letter sheets or other forms), including claims and abstract, must be numbered consecutively, starting with 1, the numbers being centrally located above or preferably below, the text. The lines of the specification must be 1.5 or double spaced (lines of text not comprising the specification need not be 1.5 or double spaced). It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). It is preferable to use all of the section headings described below to represent the parts of the specification. Section headings should use upper case text without underlining or bold type. If the section contains no text, the phrase Not Applicable should follow the section heading. On 04/16/2012 11:17 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 10:50 AM, stefano franchi stefano.fran...@gmail.com wrote: On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonkayamap...@gmail.com wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Also, it depends on which document class you're using. Here is a stab using memoir and the fmtcount package to get the padding zeros: Put this in your preamble: \setcounter{secnumdepth}{5} \setafterparaskip{0em} \setbeforeparaskip{0em} \setparaheadstyle{\normalfont} \usepackage{fmtcount} \renewcommand\theparagraph{{[}\padzeroes[4]{\decimal{paragraph}}{]}} Then, use the first few words of each real paragraphs as the content of the paragraph environment, as per in the enclosed example. You may want to write a simple module that tweak the layout of the paragraph environment in lyx, perhaps, to match more closely the final output, and put the preamble code in the same module. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 9:34 PM, Yamandu Ploskonka yamap...@gmail.com wrote: The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the fix. I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. You can also do it with standard classes and the titlesec package (which is not really compatible with memoir). See attached example. If you have section headings, however, paragraphs numbers will not be reset for every section. Is that what you need? Resetting counters can be managed, I think, but off the top of my head I don't remember how to do it automatically. BTW, in the attached example, the spacing between the para label and the main text (which is set in the preamble), should probably be tweaked to get a natural looking feel. See titlesec's manual for details. Your specs are also not very clear about the parindent. Is the number indented as well or just the paragraph text? At any rate, either behavior is easy to do with memoir or the titlesec package. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Then we're neighbor. I live in Austin too. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org numberedPara-example-article.lyx Description: Binary data
Re: numbering paragraphs (lyx newbie)
parnum is flush with left margin, indent is just enough to allow for parnum and a little bit. Some examples I have seen do have some space between paragraphs, but it is not explicitly requested. the numbering is running, from 0001 to , last parnum of the document. Only section headings would not be numbered, and that is easy to hack in many ways. I'll try the attach, Thank you! On 04/16/2012 10:07 PM, stefano franchi wrote: On Mon, Apr 16, 2012 at 9:34 PM, Yamandu Ploskonkayamap...@gmail.com wrote: The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the fix. I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. You can also do it with standard classes and the titlesec package (which is not really compatible with memoir). See attached example. If you have section headings, however, paragraphs numbers will not be reset for every section. Is that what you need? Resetting counters can be managed, I think, but off the top of my head I don't remember how to do it automatically. BTW, in the attached example, the spacing between the para label and the main text (which is set in the preamble), should probably be tweaked to get a natural looking feel. See titlesec's manual for details. Your specs are also not very clear about the parindent. Is the number indented as well or just the paragraph text? At any rate, either behavior is easy to do with memoir or the titlesec package. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Then we're neighbor. I live in Austin too. Cheers, Stefano
Question about biblio
Hi all, I am preparing my PhD presentation in beamer, and need to use biblatex in order to make citations appear in the same slide. I am about to achieve this, with a lot of effort, but now my problem is that Lyx is not copying my bib file, as done automatically with bibtex, from my custom folder to the temp path. When using the bibliography inset of Lyx, it generated the following latex code: \bibliographystyle{plain} \bibliography{\string"D:/Mariano/papers/ECG Classification/docs/database de referencias/refs\string"} And work great, it means copy refs.bib from that folder to the temp path, and compile and produce pdf ok. But when using biblatex, I dont know how to do the filename conversion, or how to include refs.bib in the "files to copy" list that Lyx automatically do when using the inset. Sometime when I used the insert - file - "external material" I remember that you can define a list of files to copy to the temp path, and then the conversion script to use, etc. Maybe I can do smth similar with the bib file. Thanks for your help, Mariano.
Conversion to doc via pandoc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just discovered pandoc, and I use it to convert to odt format (and then in OpenOffice to doc). The conversion goes LyX -> LyXHTML -> odt I defined the following format: \format "odt lo" "odt" "Libreoffice writer" "" "libreoffice" "libreoffice" "document,menu=export" and the following converter: \converter "xhtml" "odt lo" "pandoc -o $$o $$i" "" The format is very nice to work with, and I had no luck with the normal mk4ht way, as it resulted in a corrupt odt document, while the pandoc route worked nicely. OK - tables and pictures need to be manually adjusted, but the text was exported very nicely. I tried to go LyX -> LaTeX -> odt, but the result was not as useful. Cheers, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+MGasACgkQoYgNqgF2egpL9wCfbZfmBs3qdzFxvhYzFLt2ivab IGoAnRjvjiBKr5sgyw2sCfTmLsU5H95i =ttIF -END PGP SIGNATURE-
Regenerating Lilypond files
I am working on a large project involving hundreds of musical examples typeset in Lilypond. So far, LyX has been great in handling them. I have run into one issue. LyX seems to "know" if a Lilypond file hasn't changed since the last output PDF was generated. If the Lilypond file hasn't changed, it doesn't run Lilypond again. In most circumstances, I can see how this is desirable. However, I need to know how to get LyX to regenerate ALL Lilypond files if I want to, even if the file LyX actually sees hasn't changed. Basically, since the structure of my musical examples is so complex, I have taken to separating some general formatting instructions and the actual musical data into separate files. These are loaded in the header of the Lilypond file that LyX actually sees, which is mostly a dummy file that sets up the score for the actual LyX example. So, if I make changes to the actual notes of my file or to the general formatting header file for my examples, the file LyX sees usually doesn't change. Yet, I still need LyX to re-run Lilypond sometimes. I don't need this to happen all the time, but is there a command or a way to just tell LyX to re-run Lilypond for all external material insets if I want a complete wipe? (I've noticed various ways of hacking this, like deleting an external material insertion and reinstating it in LyX, or adding an unnecessary blank comment line to my dummy files so LyX detects a "change," but these sorts of things are obviously annoying when dealing with hundreds of Lilypond files.) Thanks for any suggestions!
Re: Global find and replace of straight quotes with proper curly quotes?
On Sun, Apr 15, 2012 at 9:36 PM, Richard Heckwrote: > On 04/15/2012 12:13 PM, stefano franchi wrote: >> >> On Sun, Apr 15, 2012 at 7:46 AM, Richard Heck wrote: >>> >>> On 04/14/2012 07:39 PM, stefano franchi wrote: > If you do the first thing I suggested, with the pointless regex, will that > work? > Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or "didn't," see below] know how to put the space back in in the replace field Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s"] Replace Field: CTRL-L " ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced F? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
numbering paragraphs (lyx newbie)
Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: "It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.)." Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my "subsubsections" being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama
Re: Question about biblio
On Mon, Apr 16, 2012 at 3:05 AM, Mariano Llamedo Soriawrote: > Hi all, I am preparing my PhD presentation in beamer, and need to use > biblatex in order to make citations appear in the same slide. I am about to > achieve this, with a lot of effort, but now my problem is that Lyx is not > copying my bib file, as done automatically with bibtex, from my custom > folder to the temp path. When using the bibliography inset of Lyx, it > generated the following latex code: > > \bibliographystyle{plain} > > \bibliography{\string"D:/Mariano/papers/ECG Classification/docs/database de > referencias/refs\string"} > > > And work great, it means copy refs.bib from that folder to the temp path, > and compile and produce pdf ok. But when using biblatex, I dont know how to > do the filename conversion, or how to include refs.bib in the "files to > copy" list that Lyx automatically do when using the inset. Mariano, check out the wiki page on biblatex. It basically says two things: 1. Put the \usepackage[biblatex various options]{biblatex} your preamble 2. Load the bib file in the preamble with biblatex's commands: either \bibliographyfilename} or the newer \addbibresource{filename} full instructions are here: http://wiki.lyx.org/BibTeX/Biblatex Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonkawrote: > Hi! > > I've been into Lyx for several weeks. > > Nowadays trying to comply with these specs: > > "It is desirable to include an indentation at the beginning of each new > paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], > etc.)." > > Despite already 2 days searching everywhere, the best I came up with was an > ugly kludge. There /must/ be a better way > > \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} > > > this, used with a local article.layout where I make > > > DefaultStyle Subsubsection > > Style Subsubsection > > Margin Dynamic > LatexType Command > LatexName subsubsection > Font > > Family Roman > Series Medium > Size Normal > > EndFont > TocLevel 1 > > End > > > then eventually ERT with > \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} > > > It works, *except* for the PDF output of my "subsubsections" being in bold > > I have absolutely not been able to fix that, except manually, and then the > numbering stays in bold... > > can you help, please? > > Thank you! > > Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On 04/16/2012 09:41 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonkawrote: Hi! I've been into Lyx for several weeks. Nowadays trying to comply with these specs: "It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.)." Despite already 2 days searching everywhere, the best I came up with was an ugly kludge. There /must/ be a better way \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} this, used with a local article.layout where I make DefaultStyle Subsubsection Style Subsubsection Margin Dynamic LatexType Command LatexName subsubsection Font Family Roman Series Medium Size Normal EndFont TocLevel 1 End then eventually ERT with \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} It works, *except* for the PDF output of my "subsubsections" being in bold I have absolutely not been able to fix that, except manually, and then the numbering stays in bold... can you help, please? Thank you! Yama Yama, what is the numbering pattern you're trying to achieve? 1. Continuous numbering throughout the document, regardless of other divisions (sections, subsections, etc.] 2. Restarting from each division? 3. A composite subsection/paragraph numbering? S. Thank you, Stephano, good question The required format has no sections - the only organizing level is the paragraph, thus the numbering should go from [0001] to [0n] as the last paragraph in the document. It might be nice to be able to have a few non-numbered paragraphs, but that hack would be very easy, if the numbering elsewhere were achieved.
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonkawrote: > > On 04/16/2012 09:41 AM, stefano franchi wrote: >> >> On Mon, Apr 16, 2012 at 8:33 AM, Yamandu Ploskonka >> wrote: >>> >>> Hi! >>> >>> I've been into Lyx for several weeks. >>> >>> Nowadays trying to comply with these specs: >>> >>> "It is desirable to include an indentation at the beginning of each new >>> paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], >>> [0003], >>> etc.)." >>> >>> Despite already 2 days searching everywhere, the best I came up with was >>> an >>> ugly kludge. There /must/ be a better way >>> >>> \renewcommand\thesubsubsection{{[000}\arabic{subsubsection}{]}} >>> >>> >>> this, used with a local article.layout where I make >>> >>> >>> DefaultStyle Subsubsection >>> >>> Style Subsubsection >>> >>> Margin Dynamic >>> LatexType Command >>> LatexName subsubsection >>> Font >>> >>> Family Roman >>> Series Medium >>> Size Normal >>> >>> EndFont >>> TocLevel 1 >>> >>> End >>> >>> >>> then eventually ERT with >>> \renewcommand\theparagraph{{[010}\arabic{paragraph}{]} >>> >>> >>> It works, *except* for the PDF output of my "subsubsections" being in >>> bold >>> >>> I have absolutely not been able to fix that, except manually, and then >>> the >>> numbering stays in bold... >>> >>> can you help, please? >>> >>> Thank you! >>> >>> Yama >> >> >> Yama, >> >> what is the numbering pattern you're trying to achieve? >> >> 1. Continuous numbering throughout the document, regardless of other >> divisions (sections, subsections, etc.] >> >> 2. Restarting from each division? >> >> 3. A composite subsection/paragraph numbering? >> >> S. >> > Thank you, Stephano, good question > > The required format has no sections - the only organizing level is the > paragraph, thus the numbering should go from [0001] to [0n] as the last > paragraph in the document. It might be nice to be able to have a few > non-numbered paragraphs, but that hack would be very easy, if the numbering > elsewhere were achieved. > Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 10:50 AM, stefano franchiwrote: > On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonka wrote: >> >> On 04/16/2012 09:41 AM, stefano franchi wrote: > Well, I would suggest using the paragraph sectioning command, with a > few tweaks to get the font and spacing identical to the following > text. That would also allow you to insert non numbered paragraphs > anywhere you want. But before a solution can be provided: what is > format of the numbering? Do you need numbers padded with up to three > zeros? That is less trivial, even though there are packages that do > that. > Also, it depends on which document class you're using. Here is a stab using memoir and the fmtcount package to get the padding zeros: Put this in your preamble: \setcounter{secnumdepth}{5} \setafterparaskip{0em} \setbeforeparaskip{0em} \setparaheadstyle{\normalfont} \usepackage{fmtcount} \renewcommand\theparagraph{{[}\padzeroes[4]{\decimal{paragraph}}{]}} Then, use the first few words of each real paragraphs as the content of the paragraph environment, as per in the enclosed example. You may want to write a simple module that tweak the layout of the paragraph environment in lyx, perhaps, to match more closely the final output, and put the preamble code in the same module. Cheers, Stefano > > -- > __ > Stefano Franchi > Associate Research Professor > Department of Hispanic Studies Ph: +1 (979) 845-2125 > Texas A University Fax: +1 (979) 845-6421 > College Station, Texas, USA > > stef...@tamu.edu > http://stefano.cleinias.org -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org numberedPara-example.lyx Description: Binary data
Re: Using LyX to edit & organise bibliographies
I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: Using LyX to edit & organise bibliographies
I'm still trying Mr Andrew Parsloe's work and there are to new thing I have discovered 3. The math insets such as $^{90}$ are imported as text when they should be imported as math, see point 1. 4. The coding \textemdash is imported as text when it should be imported as -- and the -- characters should be exported as \textemdash, this is a large dash Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 01:21 p.m., Alex Vergara Gil escribió: I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: footer on all pages
On Sat, 14 Apr 2012, the wise Paul A. Rubin wrote: You set Document > Settings > Page Layout > Page Layout > Headings style to "fancy"? That and \rfoot{} in the preamble work for me. Perhaps you should post a minimal example file. (Also, it might help to know which version of LyX you use, and what platform you're on.) Yes the headings style is fancy and I put \rfoot{} in the preamble. But I discovered that the footer is not shown on pages with the chapter headers. I'm trying to write a contract which has a chapter on almost all pages so the footers are not shown this way. So the question now in my case is how to get the footer on the chapter pages? Marco -- AMBIGUITY: Telling the truth when you don't mean to.
Re: Conversion to doc via pandoc
On 04/16/2012 09:07 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just discovered pandoc, and I use it to convert to odt format (and then in OpenOffice to doc). The conversion goes LyX -> LyXHTML -> odt I defined the following format: \format "odt lo" "odt" "Libreoffice writer" "" "libreoffice" "libreoffice" "document,menu=export" and the following converter: \converter "xhtml" "odt lo" "pandoc -o $$o $$i" "" How much better is this than simply exporting LyXHTML and then opening the resulting file in LibreOffice? There's no reason we couldn't add this as a converter. File a bug to remind me if you like. Richard
Re: Global find and replace of straight quotes with proper curly quotes?
On 04/16/2012 09:22 AM, stefano franchi wrote: On Sun, Apr 15, 2012 at 9:36 PM, Richard Heckwrote: On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heck wrote: On 04/14/2012 07:39 PM, stefano franchi wrote: If you do the first thing I suggested, with the pointless regex, will that work? Richard: I guess I'm still not getting your suggestion. Yes, the pointless Regex matches correctly, but I still don't [or "didn't," see below] know how to put the space back in in the replace field Oh, sorry, I see the problem. Enrico: Thanks for your suggestion (which I would have never dreamt of). It works, but I have two issues with it: 1. I can insert a space back in with empty ERT+space, but then I have my file littered with all these empty ERT boxes. They are ignored in the pdf output, as they should, but there are still very annoying. Is there any way to get rid of them? Maybe that one could be done with a script. Another option would be to add the space back in with something like "X ". Then you can replace that with nothing. 2. Every time I try a global find and replace on my file (it's a chapter, about 25K words) with the suggested pattern (i.e: Find field: [REGEX \s"] Replace Field: CTRL-L " ) , Lyx gobbles up all the ram available until it crashes. Is this a general issue with the advanced F? There have been some reports of this kind of behavior. Richard
Re: Conversion to doc via pandoc
On Mon, Apr 16, 2012 at 10:42 PM, Richard Heckwrote: > There's no reason we couldn't add this as a converter. File a bug to remind > me if you like. > I guess #6042 [1] serves for this purpose. Liviu [1] http://www.lyx.org/trac/ticket/6042
Re: Global find and replace of straight quotes with proper curly quotes?
On Mon, Apr 16, 2012 at 3:45 PM, Richard Heckwrote: > On 04/16/2012 09:22 AM, stefano franchi wrote: >> >> On Sun, Apr 15, 2012 at 9:36 PM, Richard Heck wrote: >>> >>> On 04/15/2012 12:13 PM, stefano franchi wrote: On Sun, Apr 15, 2012 at 7:46 AM, Richard Heck wrote: > > On 04/14/2012 07:39 PM, stefano franchi wrote: >>> >>> If you do the first thing I suggested, with the pointless regex, will >>> that >>> work? >>> >> Richard: I guess I'm still not getting your suggestion. Yes, the >> pointless Regex matches correctly, but I still don't [or "didn't," see >> below] know how to put the space back in in the replace field > > Oh, sorry, I see the problem. > > >> Enrico: Thanks for your suggestion (which I would have never dreamt >> of). It works, but I have two issues with it: >> >> 1. I can insert a space back in with empty ERT+space, but then I have >> my file littered with all these empty ERT boxes. They are ignored in >> the pdf output, as they should, but there are still very annoying. Is >> there any way to get rid of them? >> > Maybe that one could be done with a script. Another option would be to add > the space back in with something like "X ". Then you can replace that > with nothing. Ah right...the old trick. I had forgotten about that (used to do it all the time on my wife's word files to get rid of double end-of-paragraphs). Thanks for reminding me. > > >> 2. Every time I try a global find and replace on my file (it's a >> chapter, about 25K words) with the suggested pattern (i.e: Find field: >> [REGEX \s"] Replace Field: CTRL-L " ) , Lyx gobbles up all the ram >> available until it crashes. Is this a general issue with the advanced >> F? >> > There have been some reports of this kind of behavior. Glad to know it is not me... Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Global find and replace of straight quotes with proper curly quotes?
stefano franchi writes: > 1. I can insert a space back in with empty ERT+space, but then I have > my file littered with all these empty ERT boxes. They are ignored in > the pdf output, as they should, but there are still very annoying. Is > there any way to get rid of them? I think you can simply fool LyX and insert a space at the very beginning even if the stupid thing would not let you do so. You can do this both in the find and replace area. Simply input any character followed by a space and what else you need, then delete the first character you inserted. You now have an initial space in both areas... -- Enrico
RE: footer on all pages
Would the solution be easy as Document->Settings->modules Custom header/footerlines to the selected list. Without it fancy headers doesn't seem to work. Best regards, Hannu Vuolasaho
Re: Regenerating Lilypond files
On GNU/Linux, an easy way to solve it would be to run touch *.ly in the directory(ies) containing the Lilypond files to make them appear modified. Perhaps someone else knows how to do it the "right" way. - Thomas On Sun, Apr 15, 2012 at 4:24 PM, John McKaywrote: > I am working on a large project involving hundreds of musical examples > typeset in Lilypond. So far, LyX has been great in handling them. > > I have run into one issue. LyX seems to "know" if a Lilypond file hasn't > changed since the last output PDF was generated. If the Lilypond file > hasn't changed, it doesn't run Lilypond again. > > In most circumstances, I can see how this is desirable. > > However, I need to know how to get LyX to regenerate ALL Lilypond files if > I want to, even if the file LyX actually sees hasn't changed. > > Basically, since the structure of my musical examples is so complex, I > have taken to separating some general formatting instructions and the > actual musical data into separate files. These are loaded in the header of > the Lilypond file that LyX actually sees, which is mostly a dummy file that > sets up the score for the actual LyX example. > > So, if I make changes to the actual notes of my file or to the general > formatting header file for my examples, the file LyX sees usually doesn't > change. Yet, I still need LyX to re-run Lilypond sometimes. > > I don't need this to happen all the time, but is there a command or a way > to just tell LyX to re-run Lilypond for all external material insets if I > want a complete wipe? > > (I've noticed various ways of hacking this, like deleting an external > material insertion and reinstating it in LyX, or adding an unnecessary > blank comment line to my dummy files so LyX detects a "change," but these > sorts of things are obviously annoying when dealing with hundreds of > Lilypond files.) > > Thanks for any suggestions! >
Re: numbering multi-line formulas
Also, pressing Ctrl+Enter in regular math mode will give you eqnarray. On Sun, Apr 15, 2012 at 9:09 PM, David L. Johnsonwrote: > On 04/15/2012 06:18 PM, El Merehbi, Ibrahim wrote: > >> Hello again, >> >> I believe I didn't clear it out well. I meant a shortcut for the >> "eqnarray" not the equation numbering. >> > Sorry, I misunderstood. Add to the shortcuts something like this: > > command-sequence math-mode on; math-mutate eqnarray; > > and link it to your favorite hot-key. I use F12. > > -- > > David L. Johnson > > A mathematician is a machine for turning coffee into theorems. >-- Paul Erdos > > -- > >
Re: Using LyX to edit & organise bibliographies
On 17/04/2012 7:21 a.m., Alex Vergara Gil wrote: > I want to personally congratulate Mr Andrew Parsloe for this piece of > art. It's outstanding and is what I'm looking for a few days ago, there > are off course some issues I want to discuss: > > 1. when you import from BibTeX the coding as \textsc{} or \'{} are > imported as text, I know this is a first approximation but it will be > desirable that all the coding are imported as their meaning (to > acomplish LyX phylosophy) and then exported again as coding. I mean when > you have an accronym ABCD then the exported line should be \textsc{ABCD} > and when you have accents like ó then the exported character should be > \'{o}, and so on. Thanks for the kind comments. I did wonder about importing the bib files as LaTeX files so that commands like \textsc{blahblah} meant blahblah was displayed as small caps in LyX, and correspondingly, exporting as LaTeX so that the reverse happened, but it seemed *much* more complicated: some formatting, like the small caps, to be translated into LaTeX, some formatting, like the list environments used for the overall display of the records, not to be translated into LaTeX. A few thoughts of this kind convinced me that converting to and from *text* rather than LaTeX was the way to go (i.e. was within my technical competence). > 2. It will be desirable to have the standard sections of a bibliography > in the definitions, so when you add a new reference you must just only > fill the sections such as author, journal, title, and so on. > If you mean having a blank record available like @book{, author = {}, title = {}, ... then you could create one in a yellow note (or a deactivated branch) and simply copy and paste as required. In biblatex there are so many possible fields that having a blank record containing all possibilities would be a hindrance rather than a help. I found it helpful to associate a shortcut key (Ctrl+=) with command-sequence self-insert = {},; char-left; char-left; which inserts ={}, and puts the cursor between the braces, waiting for stuff to be typed. Andrew > my best regards > ~-o--{}--o-~ > Alex Vergara Gil
Re: Using LyX to edit & organise bibliographies
On 17/04/2012 7:53 a.m., Alex Vergara Gil wrote: > I'm still trying Mr Andrew Parsloe's work and there are to new thing I > have discovered > > 3. The math insets such as $^{90}$ are imported as text when they should > be imported as math, see point 1. > 4. The coding \textemdash is imported as text when it should be imported > as -- and the -- characters should be exported as \textemdash, this is a > large dash > > Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. > > best regards > ~-o--{}--o-~ > Alex Vergara Gil Alex, I've chosen to use LyX as an elaborate *text* editor with its list formatting, its bolding, colour, Outline window, yellow notes, branches, etc., but all the time acting on plain text rather than interpreting LaTeX commands and displaying them as LyX does `normally'. The main reason for this choice (with my level of technical competence) was the difficulty in distinguishing, on export to the plain text bib file, which LaTeX commands are part of the bib file and which are just providing cosmetic effects to aid readability or aid navigation in LyX (and are not part of the bib file). Whatever the frustration of not having e.g. maths displayed as such, it does mean you can use LyX with a certain freedom, almost as a `scratch pad', colouring text here, emphasising it there, bolding it, if you want to draw attention to particular records or parts of them -- it is all stripped away on plain text export. Andrew
Re: numbering paragraphs (lyx newbie)
The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the "fix". I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Thank you so much! Yama 1.- "the pages of the specification (but not the transmittal letter sheets or other forms), including claims and abstract, must be numbered consecutively, starting with 1, the numbers being centrally located above or preferably below, the text. The lines of the specification must be 1.5 or double spaced (lines of text not comprising the specification need not be 1.5 or double spaced). It is desirable to include an indentation at the beginning of each new paragraph, and for paragraphs to be numbered (i.e., [0001], [0002], [0003], etc.). It is preferable to use all of the section headings described below to represent the parts of the specification. Section headings should use upper case text without underlining or bold type. If the section contains no text, the phrase "Not Applicable" should follow the section heading." On 04/16/2012 11:17 AM, stefano franchi wrote: On Mon, Apr 16, 2012 at 10:50 AM, stefano franchiwrote: On Mon, Apr 16, 2012 at 9:52 AM, Yamandu Ploskonka wrote: On 04/16/2012 09:41 AM, stefano franchi wrote: Well, I would suggest using the paragraph sectioning command, with a few tweaks to get the font and spacing identical to the following text. That would also allow you to insert non numbered paragraphs anywhere you want. But before a solution can be provided: what is format of the numbering? Do you need numbers padded with up to three zeros? That is less trivial, even though there are packages that do that. Also, it depends on which document class you're using. Here is a stab using memoir and the fmtcount package to get the padding zeros: Put this in your preamble: \setcounter{secnumdepth}{5} \setafterparaskip{0em} \setbeforeparaskip{0em} \setparaheadstyle{\normalfont} \usepackage{fmtcount} \renewcommand\theparagraph{{[}\padzeroes[4]{\decimal{paragraph}}{]}} Then, use the first few words of each real paragraphs as the content of the paragraph environment, as per in the enclosed example. You may want to write a simple module that tweak the layout of the paragraph environment in lyx, perhaps, to match more closely the final output, and put the preamble code in the same module. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: numbering paragraphs (lyx newbie)
On Mon, Apr 16, 2012 at 9:34 PM, Yamandu Ploskonkawrote: > The parnum format is square bracket, four digits, square bracket > > As to the text formatting, it's supposed to be plain - no bolds, different > sizes, anything - section titles are supposed to be like the rest, merely in > upper case [1] . Interestingly, the one sample provided /does/ show > horizontal lines above and below the section titles... (been looking for the > last 20 minutes and cannot find that one, sorry...) > > Thus no problem as to Class, pretty much anything plain page would do. > > Maybe Memoir will be the "fix". I've tried Koma, all sorts of plain and > some other assorted (my code was hacked out of hollywood...), but never > Memoir. I'll get into it right now. You can also do it with standard classes and the titlesec package (which is not really compatible with memoir). See attached example. If you have section headings, however, paragraphs numbers will not be reset for every section. Is that what you need? Resetting counters can be managed, I think, but off the top of my head I don't remember how to do it automatically. BTW, in the attached example, the spacing between the para label and the main text (which is set in the preamble), should probably be tweaked to get a natural looking feel. See titlesec's manual for details. Your specs are also not very clear about the parindent. Is the number indented as well or just the paragraph text? At any rate, either behavior is easy to do with memoir or the titlesec package. > > BTW, I see you're Aggie, Stefano, I am located in Austin myself. Then we're neighbor. I live in Austin too. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org numberedPara-example-article.lyx Description: Binary data
Re: numbering paragraphs (lyx newbie)
parnum is flush with left margin, indent is just enough to allow for parnum and a little bit. Some examples I have seen do have some space between paragraphs, but it is not explicitly requested. the numbering is running, from 0001 to , last parnum of the document. Only section headings would not be numbered, and that is easy to hack in many ways. I'll try the attach, Thank you! On 04/16/2012 10:07 PM, stefano franchi wrote: On Mon, Apr 16, 2012 at 9:34 PM, Yamandu Ploskonkawrote: The parnum format is square bracket, four digits, square bracket As to the text formatting, it's supposed to be plain - no bolds, different sizes, anything - section titles are supposed to be like the rest, merely in upper case [1] . Interestingly, the one sample provided /does/ show horizontal lines above and below the section titles... (been looking for the last 20 minutes and cannot find that one, sorry...) Thus no problem as to Class, pretty much anything plain page would do. Maybe Memoir will be the "fix". I've tried Koma, all sorts of plain and some other assorted (my code was hacked out of hollywood...), but never Memoir. I'll get into it right now. You can also do it with standard classes and the titlesec package (which is not really compatible with memoir). See attached example. If you have section headings, however, paragraphs numbers will not be reset for every section. Is that what you need? Resetting counters can be managed, I think, but off the top of my head I don't remember how to do it automatically. BTW, in the attached example, the spacing between the para label and the main text (which is set in the preamble), should probably be tweaked to get a natural looking feel. See titlesec's manual for details. Your specs are also not very clear about the parindent. Is the number indented as well or just the paragraph text? At any rate, either behavior is easy to do with memoir or the titlesec package. BTW, I see you're Aggie, Stefano, I am located in Austin myself. Then we're neighbor. I live in Austin too. Cheers, Stefano