Re: The subcaption package
mrpiggi wrote: > is there a workaround for using the subcaption package in lyx instead of > the default subfig package? No. Except for using ERT of course. Jürgen
Re: using "import" package within LyX?
Richard Heck wrote: > > 1. create a file "master.lyx" and edit the LaTeX preamble to include > > "\usepackage{import}" > > 2. Insert ERT "\subimport{subdir}{trythis.tex}" > > 3. create "trythis.tex" in subdir > > 4. Compile. > > > > This will fail. > > > > If you export your "master.lyx" file to a LaTeX file, it will work. > > > > Is there a way to get this working in LyX? > > I'm guessing that maybe import.sty needs more LaTeX runs than we do? You have to remember that the file is copied to and processed in a temporary directory. So if \subimport points to a relative path, this path will need to be relative from the temporary directory. Absolute paths should work, though. Jürgen
Re: Figure numbers and the figure captions overlap in list of figures
Hi, I found the solution... tocloft doesn't work properly with some of the classes... I used titletoc instead.. . \usepackage{titletoc} \dottedcontents{figure}[4.5em]{}{3em}{0.75em} \dottedcontents{table}[4.5em]{}{3em}{0.75em} it worked fine.. Nagaraj
Re: Error using tocloft
Hi, I found the solution... tocloft doesn't work properly with some of the classes... I used titletoc instead.. \usepackage{titletoc} \dottedcontents{figure}[4.5em]{}{3em}{0.75em} \dottedcontents{table}[4.5em]{}{3em}{0.75em} and it worked.. Nagaraj
Re: lyx 2 export to html and biblatex?
>> >> How do I get rid of the key? >> > At the moment, you can't, mostly because if you're using author-year, then > we need to know which one is 2011a, 2011b, etc. But if you have an idea > here, I'm all ears. Richard, is it possible to make key values accessible from within the layout description? Since the 2011a or 2011b part of the key is constructed by Lyx, I think, that would make it possible to write a standard format, such as: Franchi, Stefano, 2011a, etc. (That would also means that the user could build an ¨improper¨ reference, of course). Cheers, Stefano Stefano
Use floatrow instead of float
Hi I want to use the floatrow package to configure my tables and graphs. I include it in the preamble by: \usepackage[capposition=top]{floatrow} Which works good. The problem comes when I need to change the default placement of a table to "Here definitely". Then, when I try to compile I get the following error: Package floatrow Error: Do not use float package with floatrow. Is there any way to fix it? Thanks.
Error using tocloft
Hi, I want to increase the width between figure numbers and figure captions in "list of figures". But when I use tocloft, I get an error.. Here is what I am doing: \usepackage{tocloft} \setlength{\cftfignumwidth}{3em} I even tried this as mentioned in some lists on the internet, but no success.. \usepackage[subfigure]{tocloft} \setlength{\cftfignumwidth}{3em} I observed that even if I just include the statement \usepackage{tocloft} without the second line, I get an error.. The error says Missing } inserted... Any suggestions please? Nagaraj
Re: lyx 2 export to html and biblatex?
On 02/28/2011 02:31 PM, stefano franchi wrote: Sorry, my fault, I hadn´t realized the layout option is a Document option, of ocurse, not a lyx preference. I was testing it on the Help file, which of course is read-only. It works on my file. I think I understand the syntax of the simple customization language used in the layout file. What I don´t understand is why, in the reference section, I get both the key and the reference. Shouldn´t the key be omitted? If I have a text like: As Franchi said in his latest and greatest piece (2011), with a reference like: @Article{Franchi2011, author = {Stefano Franchi}, title = {My best article}, journal = {The journal}, volume = {1}, number = {1}, pages = {200--220}} I would expect the reference to look like Franchi, Stefano, My best article, The journal, 1:1, pp. 200-220. Instead the export gives something like: [Franchi 2011] Franchi, Stefano, My best article, The journal (2011), 1:1, pp. 200-220. How do I get rid of the key? At the moment, you can't, mostly because if you're using author-year, then we need to know which one is 2011a, 2011b, etc. But if you have an idea here, I'm all ears. rh
Re: lyx 2 export to html and biblatex?
Sorry, my fault, I hadn´t realized the layout option is a Document option, of ocurse, not a lyx preference. I was testing it on the Help file, which of course is read-only. It works on my file. I think I understand the syntax of the simple customization language used in the layout file. What I don´t understand is why, in the reference section, I get both the key and the reference. Shouldn´t the key be omitted? If I have a text like: As Franchi said in his latest and greatest piece (2011), with a reference like: @Article{Franchi2011, author = {Stefano Franchi}, title = {My best article}, journal = {The journal}, volume = {1}, number = {1}, pages = {200--220}} I would expect the reference to look like Franchi, Stefano, My best article, The journal, 1:1, pp. 200-220. Instead the export gives something like: [Franchi 2011] Franchi, Stefano, My best article, The journal (2011), 1:1, pp. 200-220. How do I get rid of the key? Thanks, Stefano On Mon, Feb 28, 2011 at 12:55 PM, Richard Heck wrote: > On 02/28/2011 01:30 PM, stefano franchi wrote: >> >> On Mon, Feb 28, 2011 at 10:37 AM, Richard Heck wrote: >>> >>> On 02/28/2011 09:57 AM, stefano franchi wrote: Is there any way to have some (minimal) control over the formatting of the references? >>> Yes. See section 5.3.12 for the details. It's a bit messy, I'm afraid. >>> These >>> are layout commands, so they can be put in a module or added to >>> Document>Settings>Local Layout. >> >> Thanks Richard, thatś what I was looking for. >> >> I guess I should : >> >> 1.Paste the layout description from the file into the Local Layout pane, >> 2. validate it >> 3. Save it >> >> >> I tried BUT... >> >> I cannot get to 3. The layout validates, but the ¨Apply¨ button >> remains greyed out. >> > Hmm. It seems to work here. Other info? > > rh > >
Re: using "import" package within LyX?
On 02/28/2011 12:22 PM, James C. Sutherland wrote: I need to use the LaTeX import package to manage hierarchical directory structures with graphics files distributed throughout the structure. Furthermore, this is in a mixed LyX/LaTeX environment, where LyX gathers the LaTeX files to create various "master" documents. While the "import" package seems to work fine in straight LaTeX, it fails in even the simplest LyX example, even when the LaTeX-exported file works fine. Steps: 1. create a file "master.lyx" and edit the LaTeX preamble to include "\usepackage{import}" 2. Insert ERT "\subimport{subdir}{trythis.tex}" 3. create "trythis.tex" in subdir 4. Compile. This will fail. If you export your "master.lyx" file to a LaTeX file, it will work. Is there a way to get this working in LyX? I'm guessing that maybe import.sty needs more LaTeX runs than we do? Richard
Re: lyx 2 export to html and biblatex?
On 02/28/2011 01:30 PM, stefano franchi wrote: On Mon, Feb 28, 2011 at 10:37 AM, Richard Heck wrote: On 02/28/2011 09:57 AM, stefano franchi wrote: Is there any way to have some (minimal) control over the formatting of the references? Yes. See section 5.3.12 for the details. It's a bit messy, I'm afraid. These are layout commands, so they can be put in a module or added to Document>Settings>Local Layout. Thanks Richard, thatś what I was looking for. I guess I should : 1.Paste the layout description from the file into the Local Layout pane, 2. validate it 3. Save it I tried BUT... I cannot get to 3. The layout validates, but the ¨Apply¨ button remains greyed out. Hmm. It seems to work here. Other info? rh
Re: lyx 2 export to html and biblatex?
On Mon, Feb 28, 2011 at 10:37 AM, Richard Heck wrote: > On 02/28/2011 09:57 AM, stefano franchi wrote: >> >> Is there any way to have some (minimal) control over the formatting of >> the references? >> > Yes. See section 5.3.12 for the details. It's a bit messy, I'm afraid. These > are layout commands, so they can be put in a module or added to > Document>Settings>Local Layout. Thanks Richard, thatś what I was looking for. I guess I should : 1.Paste the layout description from the file into the Local Layout pane, 2. validate it 3. Save it I tried BUT... I cannot get to 3. The layout validates, but the ¨Apply¨ button remains greyed out. Stefano > > Richard > >
Re: Copy and Paste to Moodle
> On 2011-02-26, Dean Montgomery wrote: >> I'm trying to copy and Paste LyX source view to moodle (Firefox). I >> add and extra $ at the beginning and end of the TeX code and Moodle >> will render it as a proper formula. However for some reason the LyX >> Source view window adds some HTML + CSS formating and shows up as a >> line of code right above the rendered formula: p, li { white-space: >> pre-wrap; } > > Strange. I never realized this. > Are you sure that LyX adds the HTML/CSS? > Does this also happen, if you paste into a "normal" text editor? Yes I can paste to a plain text editor, then re-copy it to clipboard then it will paste without html formatting into Moodle/Drupal. Cont... >> This also happens if I paste source code from LyX view source window >> into Drupal. Is there a way to have LyX not copy html source to >> clipboard? > > You might try to copy from the buffer. At least here on my Linux > machine, formulas are exported as LaTeX code. Ok I found it works copying from the main window instead of the source view window in LyX. This resolves the problem. Thanks.
using "import" package within LyX?
I need to use the LaTeX import package to manage hierarchical directory structures with graphics files distributed throughout the structure. Furthermore, this is in a mixed LyX/LaTeX environment, where LyX gathers the LaTeX files to create various "master" documents. While the "import" package seems to work fine in straight LaTeX, it fails in even the simplest LyX example, even when the LaTeX-exported file works fine. Steps: 1. create a file "master.lyx" and edit the LaTeX preamble to include "\usepackage{import}" 2. Insert ERT "\subimport{subdir}{trythis.tex}" 3. create "trythis.tex" in subdir 4. Compile. This will fail. If you export your "master.lyx" file to a LaTeX file, it will work. Is there a way to get this working in LyX? James
Re: lyx 2 export to html and biblatex?
On 02/28/2011 09:57 AM, stefano franchi wrote: Is there any way to have some (minimal) control over the formatting of the references? Yes. See section 5.3.12 for the details. It's a bit messy, I'm afraid. These are layout commands, so they can be put in a module or added to Document>Settings>Local Layout. Richard
Re: lyx 2 export to html and biblatex?
On Mon, Feb 28, 2011 at 8:42 AM, Richard Heck wrote: > On 02/28/2011 09:19 AM, stefano franchi wrote: >> >> I an experimenting with the new HTML export feature of Lyx 2.0 and I >> was wondering if there is any support for biblatex. >> > The XHTML export does not use any external program at all, even BibTeX. The > output is generated the same way the output in the citation dialog is > generated. Ah, I didn´t know that. > >> In my first try, I got a rather nice html file, with anchors >> corresponding to the \cite commands, but no bibliography section at >> the end of the file for the anchors to tink to. In other words, all >> the biblio links were dead. >> >> Is there anything special I am supposed to do to to let Lyx create the >> bibliography? >> > > This should just work, assuming you have a bibliography inset at the end of > the paper. If it's not, can you send me the file (and corresponding BibTeX > file)? > I had the bibliography in a Lyx note and the refs to the files in the preamble (in a biblatex command). If I turn biblatex off and activate the the biobliography inset I get the proper reference section with working links. Is there any way to have some (minimal) control over the formatting of the references? Thanks, Stefano
Re: lyx 2 export to html and biblatex?
On 02/28/2011 09:19 AM, stefano franchi wrote: I an experimenting with the new HTML export feature of Lyx 2.0 and I was wondering if there is any support for biblatex. The XHTML export does not use any external program at all, even BibTeX. The output is generated the same way the output in the citation dialog is generated. In my first try, I got a rather nice html file, with anchors corresponding to the \cite commands, but no bibliography section at the end of the file for the anchors to tink to. In other words, all the biblio links were dead. Is there anything special I am supposed to do to to let Lyx create the bibliography? This should just work, assuming you have a bibliography inset at the end of the paper. If it's not, can you send me the file (and corresponding BibTeX file)? Richard
Re: Saving with version 2.0beta3 / reference list w/ version 2.0beta3
On 02/28/2011 06:45 AM, Christoph wrote: Hi there, 1. I saved a document with version 2.0beta3 and tried to open it with 1.6.9. it says unable to open - lyx2lyx could not convert the document... This is normal. If you want to open in 1.6.x, then File>Export>LyX 1.6. 2. I created a reference list with 2.0beta3 (bibtex) and all the reference titles are "decapitalized" although theya are correct in bibtex... thanks for your help... Example file? rh
key binds for font coloring
Hello everybody, I would like to mark fast certain parts in my LyX text (e.g., important comments, questions) with colors. The slowly way is to mark the text, open the font dialog box and apply it (if the right has been chosen previously). A littler faster is to use the "apply last" button and define a some keyboard short cuts in the bind file. However, I would like to be able to use different colors for different types of comments. Therefore, the apply last button isn't really a short cut for me. Have you any suggestion how I could solve that problem? Thanks for help in advance, All the best, Helmut -- --- Helmut Hauser, Ph.D. Artificial Intelligence Laboratory Dept. of Informatics, University of Zurich Andreasstr. 15, CH-8050 Zurich, Switzerland --- Inffeldgasse 16b/I, A-8010 Graz, Austria Phone:+43 316 873-5821 Fax: +43 316 873-5805 Web: http://www.igi.TUGraz.at/helmut/ Skype:helmuthauser Email:helmut.hau...@igi.tugraz.at
lyx 2 export to html and biblatex?
I an experimenting with the new HTML export feature of Lyx 2.0 and I was wondering if there is any support for biblatex. In my first try, I got a rather nice html file, with anchors corresponding to the \cite commands, but no bibliography section at the end of the file for the anchors to tink to. In other words, all the biblio links were dead. Is there anything special I am supposed to do to to let Lyx create the bibliography? Best, Stefano
Looking for dark background colour theme?
Hi I know that lyx does not support colour themes in the sense that they can be lowded directly, but I am looking for settings for dark background colour settings. I started changing them, but it wil take time to get all right. So: is somebody using dark background colours and could mail me the colour settings section from the preferences file? In addition, it might be a nice section for the wiki, to publish some "colour themes" and their corresponding colour settings. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Saving with version 2.0beta3 / reference list w/ version 2.0beta3
Hi there, 1. I saved a document with version 2.0beta3 and tried to open it with 1.6.9. it says unable to open - lyx2lyx could not convert the document... 2. I created a reference list with 2.0beta3 (bibtex) and all the reference titles are "decapitalized" although theya are correct in bibtex... thanks for your help...
Re: font embed LyX.............
On Mon, 28 Feb 2011 10:49:00 + (UTC) Guenter Milde wrote: > On 2011-02-25, Liviu Andronic wrote: > > On Fri, Feb 25, 2011 at 9:55 PM, Charlie > > wrote: > > >> Hello All, > > >> Does Okular embed the fonts that are used for document creation in > >> LyX? > > > To complement Rob, Okular doesn't embed fonts: it is a PDF viewer. > > To see if your PDF contains embedded fonts, try acroread or evince. > > However, like the PDF-viewers acroread or evince, okular can show > whether fonts are embedded (File>Properties), no need to change the > viewer. > > ... > > >> Also the actual converter line in LyX where that should be > >> changed? I find the terms in the converter window confusing: where > >> is LyX->PDF? > > Conversion is chained, either LyX - LaTeX - PDF (pdflatex) or > LyX - LaTeX - PS - PDF. > > However, embedding of fonts is configured in the LaTeX setup - see > your LaTeX distributions documentation for details. > > Günter > Thank you Günter. Much Appreciated. Charlie -- http://www.skymesh.net.au/~taogypsy/ - Registered Linux User:- 329524 *** What's here right now? Delusion is yesterday's dream-enlightenment, tomorrow's delusion. - TAIZAN MAEZUMI *** Debian GNU/Linux - just the best way to create magic -
Re: language settings?
Guenter Milde wrote: > * Mark text > * Edit>Text>Custom> Language [reset] > > Alternatively, > > * Mark text > * Esc-x language english That is: Alt-x language english In LyX 2, you can also use the context menu, given that you use multiple languages in your document. > To the lyxperts: > is there an argument for the "language" LFUN to reset > the language to the default? Not that I know. Jürgen
Re: language settings?
On 2011-02-24, Gwen Barnes wrote: > I just want my text within LyX to be in English. Somehow, without me > trying, LyX seems to think that I'm writing in Afrikaans. Maybe some text was copied from another LyX buffer with a document in another language? > If I check "mark > foreign languages" in the LyX preferences, my entire document gets > underlined in blue. The status bar at the bottom says Font: Default, > Language: Afrikaans. I can't figure out how to change this. * Mark text * Edit>Text>Custom> Language [reset] Alternatively, * Mark text * Esc-x language english To the lyxperts: is there an argument for the "language" LFUN to reset the language to the default? Günter
Re: font embed LyX.............
On 2011-02-25, Liviu Andronic wrote: > On Fri, Feb 25, 2011 at 9:55 PM, Charlie wrote: >> Hello All, >> Does Okular embed the fonts that are used for document creation in LyX? > To complement Rob, Okular doesn't embed fonts: it is a PDF viewer. To > see if your PDF contains embedded fonts, try acroread or evince. However, like the PDF-viewers acroread or evince, okular can show whether fonts are embedded (File>Properties), no need to change the viewer. ... >> Also the actual converter line in LyX where that should be changed? I >> find the terms in the converter window confusing: where is LyX->PDF? Conversion is chained, either LyX - LaTeX - PDF (pdflatex) or LyX - LaTeX - PS - PDF. However, embedding of fonts is configured in the LaTeX setup - see your LaTeX distributions documentation for details. Günter
Re: Copy and Paste to Moodle
On 2011-02-26, Dean Montgomery wrote: > I'm trying to copy and Paste LyX source view to moodle (Firefox). I > add and extra $ at the beginning and end of the TeX code and Moodle > will render it as a proper formula. However for some reason the LyX > Source view window adds some HTML + CSS formating and shows up as a > line of code right above the rendered formula: p, li { white-space: > pre-wrap; } Strange. I never realized this. Are you sure that LyX adds the HTML/CSS? Does this also happen, if you paste into a "normal" text editor? > This also happens if I paste source code from LyX view source window > into Drupal. Is there a way to have LyX not copy html source to > clipboard? You might try to copy from the buffer. At least here on my Linux machine, formulas are exported as LaTeX code. Günter
Re: Copy&paste irregularity (2.0-B4) [how to reproduce]
Sam Lewis yahoo.co.uk> writes: > A random text copied from a pdf into lyx (as done many times before), > produces some spacing/ wrapping > irregularities. See attachment. How do I remove any formatting? How it it It seems to be only happening with pdf documents from this journal. Copying from other pdf documents works fine. Reproduce: * Copy from here (open journal): http://www.germanlawjournal.com/pdfs/Vol11-No1/PDF_Vol_11_No_01_9- 32_GG60_Mahlmann.pdf *Paste into new document Cheers, Sam