tweak the insert citation button
Hi, I am using LyX with biblatex and the verbose-trad styles. I need full citations as footnotes, so I should rather use the biblatex-dw package to manage those directly. However I really prefer the built-in verbose-* styles because those don't produce See note n° citations (apart from the verbose-note style, obviously), which I do not appreciate. The problem with biblatex's built-in styles in LyX is that I have to use \footcite command instead of \cite, and the insert citation button in LyX only does \cite, as far as I know. How to tweak LyX to always produce \footcite instead of \cite? many thanks pierre-philipp
Re: tweak the insert citation button
pierre-philipp braun wrote: I have to use \footcite command instead of \cite, and the insert citation button in LyX only does \cite, as far as I know. Depends on the citation backend. If you use natbib, you have a selection of \citet, \citep etc. How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite in preamble. Regards, Jürgen
Re: tweak the insert citation button
Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: tweak the insert citation button
Hello Jürgen, thanks for both of your answers. I was using the \let\cite\footcite trick already but there's a side effect: in footnotes, a \footcite brings some parenthesis around the citation. I don't need the parenthesis. I have asked tex.sx how to remove those but it would be better to have it fixed within LyX. I've tried to validate your layout script but it always says it is invalid. Eventhough I fixed the line breaks caused by email client formating, donno if it's mine or yours. I will try 2.1beta2! thanks, pierre-philipp Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: tweak the insert citation button
Ok I get it, the layout script was probably meant for 2.1, with witch it works! Problem solved. Thanks! Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
switching versions issues
Hi there, I just switched to version 2.1 beta2 to test a layout script, saved the document, and when I try to read it with version 2.0 again, I get an error related to the LyX format. path\to\tmpdir\Buffer_convertLyXFormat.emx is not a readable LyX document. Aren't LyX document supposed to be readable by various LyX versions? In that case this is definitely a beta. Is there a trick to fix the document or should I look at my last backups? thanks, pierre-philipp
Re: tweak the insert citation button
Apart from the fact I cannot read the document with the previous version anymore (this is addressed in another message), version 2.1 beta 2 seems to work fine here, on Windows XP SP3 FR 32-bit. The citation system works as good as I could wish it in my dreams. However there's now a '#' before the citation key, is it possible to remove it? I am used to [key] which is just fine enough. I might have Foot: now in front of it, which I guess I could tune, also. pierre-philipp Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: switching versions issues
On Sun, Dec 22, 2013 at 6:14 PM, pierre-philipp braun pbr...@nethence.com wrote: Hi there, I just switched to version 2.1 beta2 to test a layout script, saved the document, and when I try to read it with version 2.0 again, I get an error related to the LyX format. path\to\tmpdir\Buffer_convertLyXFormat.emx is not a readable LyX document. Aren't LyX document supposed to be readable by various LyX versions? In that case this is definitely a beta. The beta is a beta, and the standard disclaimer applies: do NOT use it for production purposes. This said, the file format in 2.1beta is incompatible with the fileformat in 2.0.x. This is a known and documented feature. If you modified your documents in 2.1beta and you want to access them in 2.0, then you need to File Export LyX 2.0.x. Regards, Liviu Is there a trick to fix the document or should I look at my last backups? thanks, pierre-philipp -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
CJK only LyX can't do it
Hi, I wrote a simple simple sentence using a Chinese sign. I could produce a pdf-file. Then I just pressed enter to make another line before the Chinese sign. Now LyX couldn't make a pdf-file anymore. I noticed LyX had ended the CJK-environment just after the enter. I couldn't move the \end{CJK}. I reported this behaviour already. But the answers were not satisfying. A develper said one can't combine CJK with the German package - because of LaTeX. At first I quit, but then I started a final test. I exported the lyx-file and produced a simple tex-file. Then I opened it with Gummi 0.6. As expected it couldn't produce a pdf-file. But unlike to LyX it allows to change the LaTeX directly. So I wrote \end{CJK} just before \end{document}. Now it worked just perfect! Now my question: Have you been ignored to by the LyX developers? What should I do now? Thanks for any answer. Karl Chinesisch.lyx Description: application/lyx
Re: CJK only LyX can't do it
On Sun, Dec 22, 2013 at 2:54 PM, Karl Linek k...@linek.at wrote: Hi, I wrote a simple simple sentence using a Chinese sign. I could produce a pdf-file. Then I just pressed enter to make another line before the Chinese sign. Now LyX couldn't make a pdf-file anymore. I noticed LyX had ended the CJK-environment just after the enter. I couldn't move the \end{CJK}. I reported this behaviour already. But the answers were not satisfying. A develper said one can't combine CJK with the German package - because of LaTeX. At first I quit, but then I started a final test. I exported the lyx-file and produced a simple tex-file. Then I opened it with Gummi 0.6. As expected it couldn't produce a pdf-file. But unlike to LyX it allows to change the LaTeX directly. So I wrote \end{CJK} just before \end{document}. Now it worked just perfect! Now my question: Have you been ignored to by the LyX developers? What should I do now? Thanks for any answer. Karl Hi Karl, I can reproduce your problem (thank you for sending a minimal example). if you open your .lyx file and go to View Source you will see LyX Warning: uncodable character '氣'. To fix this, you can select the character and go to Edit Text Style Customized and set Language to Chinese. From now on, you can select text and right click and go to Language in the right-click menu (you couldn't before because there was only one language. By the way, it's always useful in questions like these if we state our OS, LyX version and TeX distribution because sometimes a problem has to do with that. I'm using Ubuntu 13.10 and an up-to-date TeX Live 2013. I've tested my above instructions on 2.0.xgit (soon to be 2.0.7) and 2.1git (soon to be 2.1). Best, Scott
Re: Spellchecker
It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic landronim...@gmail.comwrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Spellchecker
William, Have you tried introducing some deliberate some deliberate errors into the last half to see how spellcheck behaves then? Gordon. On 22/12/13 19:13, Liviu Andronic wrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu
Re: Spellchecker
On Mon, Dec 23, 2013 at 12:42 AM, William Hanson whan...@umn.edu wrote: It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? You can easily check that: introduce an error towards the end of the document. Did you try enabling continuous spellchecking in Prefs Language Spellchecker? Liviu On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic landronim...@gmail.com wrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Spellchecker
Yes, it does detect deliberately introduced errors inserted near the end of the document. I was thrown off by the screen message that said it had reached the end of the document, when it clearly hadn't. If it had said that there were no more errors, I would have understood. All is well. Thanks. Bill On Sun, Dec 22, 2013 at 5:42 PM, William Hanson whan...@umn.edu wrote: It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic landronim...@gmail.comwrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
tweak the insert citation button
Hi, I am using LyX with biblatex and the verbose-trad styles. I need full citations as footnotes, so I should rather use the biblatex-dw package to manage those directly. However I really prefer the built-in verbose-* styles because those don't produce See note n° citations (apart from the verbose-note style, obviously), which I do not appreciate. The problem with biblatex's built-in styles in LyX is that I have to use \footcite command instead of \cite, and the insert citation button in LyX only does \cite, as far as I know. How to tweak LyX to always produce \footcite instead of \cite? many thanks pierre-philipp
Re: tweak the insert citation button
pierre-philipp braun wrote: I have to use \footcite command instead of \cite, and the insert citation button in LyX only does \cite, as far as I know. Depends on the citation backend. If you use natbib, you have a selection of \citet, \citep etc. How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite in preamble. Regards, Jürgen
Re: tweak the insert citation button
Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: tweak the insert citation button
Hello Jürgen, thanks for both of your answers. I was using the \let\cite\footcite trick already but there's a side effect: in footnotes, a \footcite brings some parenthesis around the citation. I don't need the parenthesis. I have asked tex.sx how to remove those but it would be better to have it fixed within LyX. I've tried to validate your layout script but it always says it is invalid. Eventhough I fixed the line breaks caused by email client formating, donno if it's mine or yours. I will try 2.1beta2! thanks, pierre-philipp Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: tweak the insert citation button
Ok I get it, the layout script was probably meant for 2.1, with witch it works! Problem solved. Thanks! Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
switching versions issues
Hi there, I just switched to version 2.1 beta2 to test a layout script, saved the document, and when I try to read it with version 2.0 again, I get an error related to the LyX format. path\to\tmpdir\Buffer_convertLyXFormat.emx is not a readable LyX document. Aren't LyX document supposed to be readable by various LyX versions? In that case this is definitely a beta. Is there a trick to fix the document or should I look at my last backups? thanks, pierre-philipp
Re: tweak the insert citation button
Apart from the fact I cannot read the document with the previous version anymore (this is addressed in another message), version 2.1 beta 2 seems to work fine here, on Windows XP SP3 FR 32-bit. The citation system works as good as I could wish it in my dreams. However there's now a '#' before the citation key, is it possible to remove it? I am used to [key] which is just fine enough. I might have Foot: now in front of it, which I guess I could tune, also. pierre-philipp Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use standard citation (not natbib), paste the following to Document Settings Local Format (hit Validate before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!a href='#LyXCite-%clean:key%'!} !endlink {!/a!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: switching versions issues
On Sun, Dec 22, 2013 at 6:14 PM, pierre-philipp braun pbr...@nethence.com wrote: Hi there, I just switched to version 2.1 beta2 to test a layout script, saved the document, and when I try to read it with version 2.0 again, I get an error related to the LyX format. path\to\tmpdir\Buffer_convertLyXFormat.emx is not a readable LyX document. Aren't LyX document supposed to be readable by various LyX versions? In that case this is definitely a beta. The beta is a beta, and the standard disclaimer applies: do NOT use it for production purposes. This said, the file format in 2.1beta is incompatible with the fileformat in 2.0.x. This is a known and documented feature. If you modified your documents in 2.1beta and you want to access them in 2.0, then you need to File Export LyX 2.0.x. Regards, Liviu Is there a trick to fix the document or should I look at my last backups? thanks, pierre-philipp -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
CJK only LyX can't do it
Hi, I wrote a simple simple sentence using a Chinese sign. I could produce a pdf-file. Then I just pressed enter to make another line before the Chinese sign. Now LyX couldn't make a pdf-file anymore. I noticed LyX had ended the CJK-environment just after the enter. I couldn't move the \end{CJK}. I reported this behaviour already. But the answers were not satisfying. A develper said one can't combine CJK with the German package - because of LaTeX. At first I quit, but then I started a final test. I exported the lyx-file and produced a simple tex-file. Then I opened it with Gummi 0.6. As expected it couldn't produce a pdf-file. But unlike to LyX it allows to change the LaTeX directly. So I wrote \end{CJK} just before \end{document}. Now it worked just perfect! Now my question: Have you been ignored to by the LyX developers? What should I do now? Thanks for any answer. Karl Chinesisch.lyx Description: application/lyx
Re: CJK only LyX can't do it
On Sun, Dec 22, 2013 at 2:54 PM, Karl Linek k...@linek.at wrote: Hi, I wrote a simple simple sentence using a Chinese sign. I could produce a pdf-file. Then I just pressed enter to make another line before the Chinese sign. Now LyX couldn't make a pdf-file anymore. I noticed LyX had ended the CJK-environment just after the enter. I couldn't move the \end{CJK}. I reported this behaviour already. But the answers were not satisfying. A develper said one can't combine CJK with the German package - because of LaTeX. At first I quit, but then I started a final test. I exported the lyx-file and produced a simple tex-file. Then I opened it with Gummi 0.6. As expected it couldn't produce a pdf-file. But unlike to LyX it allows to change the LaTeX directly. So I wrote \end{CJK} just before \end{document}. Now it worked just perfect! Now my question: Have you been ignored to by the LyX developers? What should I do now? Thanks for any answer. Karl Hi Karl, I can reproduce your problem (thank you for sending a minimal example). if you open your .lyx file and go to View Source you will see LyX Warning: uncodable character '氣'. To fix this, you can select the character and go to Edit Text Style Customized and set Language to Chinese. From now on, you can select text and right click and go to Language in the right-click menu (you couldn't before because there was only one language. By the way, it's always useful in questions like these if we state our OS, LyX version and TeX distribution because sometimes a problem has to do with that. I'm using Ubuntu 13.10 and an up-to-date TeX Live 2013. I've tested my above instructions on 2.0.xgit (soon to be 2.0.7) and 2.1git (soon to be 2.1). Best, Scott
Re: Spellchecker
It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic landronim...@gmail.comwrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Spellchecker
William, Have you tried introducing some deliberate some deliberate errors into the last half to see how spellcheck behaves then? Gordon. On 22/12/13 19:13, Liviu Andronic wrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu
Re: Spellchecker
On Mon, Dec 23, 2013 at 12:42 AM, William Hanson whan...@umn.edu wrote: It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? You can easily check that: introduce an error towards the end of the document. Did you try enabling continuous spellchecking in Prefs Language Spellchecker? Liviu On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic landronim...@gmail.com wrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Spellchecker
Yes, it does detect deliberately introduced errors inserted near the end of the document. I was thrown off by the screen message that said it had reached the end of the document, when it clearly hadn't. If it had said that there were no more errors, I would have understood. All is well. Thanks. Bill On Sun, Dec 22, 2013 at 5:42 PM, William Hanson whan...@umn.edu wrote: It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic landronim...@gmail.comwrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hanson whan...@umn.edu wrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
tweak the insert citation button
Hi, I am using LyX with biblatex and the verbose-trad styles. I need full citations as footnotes, so I should rather use the biblatex-dw package to manage those directly. However I really prefer the built-in verbose-* styles because those don't produce "See note n°" citations (apart from the verbose-note style, obviously), which I do not appreciate. The problem with biblatex's built-in styles in LyX is that I have to use \footcite command instead of \cite, and the insert citation button in LyX only does \cite, as far as I know. How to tweak LyX to always produce \footcite instead of \cite? many thanks pierre-philipp
Re: tweak the insert citation button
pierre-philipp braun wrote: > I have to use \footcite command instead of \cite, and the insert > citation button in LyX only does \cite, as far as I know. Depends on the citation backend. If you use natbib, you have a selection of \citet, \citep etc. > How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite in preamble. Regards, Jürgen
Re: tweak the insert citation button
Jürgen Spitzmüller wrote: > > How to tweak LyX to always produce \footcite instead of \cite? > > \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use "standard" citation (not natbib), paste the following to Document > Settings > Local Format (hit "Validate" before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!!} !endlink {!!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: tweak the insert citation button
Hello Jürgen, thanks for both of your answers. I was using the \let\cite\footcite trick already but there's a side effect: in footnotes, a \footcite brings some parenthesis around the citation. I don't need the parenthesis. I have asked tex.sx how to remove those but it would be better to have it fixed within LyX. I've tried to validate your layout script but it always says it is invalid. Eventhough I fixed the line breaks caused by email client formating, donno if it's mine or yours. I will try 2.1beta2! thanks, pierre-philipp Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use "standard" citation (not natbib), paste the following to Document > Settings > Local Format (hit "Validate" before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!!} !endlink {!!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: tweak the insert citation button
Ok I get it, the layout script was probably meant for 2.1, with witch it works! Problem solved. Thanks! Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use "standard" citation (not natbib), paste the following to Document > Settings > Local Format (hit "Validate" before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!!} !endlink {!!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
switching versions issues
Hi there, I just switched to version 2.1 beta2 to test a layout script, saved the document, and when I try to read it with version 2.0 again, I get an error related to the LyX format. path\to\tmpdir\Buffer_convertLyXFormat.emx is not a readable LyX document. Aren't LyX document supposed to be readable by various LyX versions? In that case this is definitely a beta. Is there a trick to fix the document or should I look at my last backups? thanks, pierre-philipp
Re: tweak the insert citation button
Apart from the fact I cannot read the document with the previous version anymore (this is addressed in another message), version 2.1 beta 2 seems to work fine here, on Windows XP SP3 FR 32-bit. The citation system works as good as I could wish it in my dreams. However there's now a '#' before the citation key, is it possible to remove it? I am used to [key] which is just fine enough. I might have Foot: now in front of it, which I guess I could tune, also. pierre-philipp Quoting Jürgen Spitzmüller 22/12/2013 16:33, Jürgen Spitzmüller wrote: How to tweak LyX to always produce \footcite instead of \cite? \let\cite\footcite With fortcoming LyX 2.1, you can also add a real \footcite command to the citation dialog. If you use "standard" citation (not natbib), paste the following to Document > Settings > Local Format (hit "Validate" before applying): CiteEngine default cite[] footcite[] nocite End CiteFormat default # translatable bits _notcited not cited _addtobib Add to bibliography only. _footcite Foot: # macros !open [ !sep , !close ] !startlink {!!} !endlink {!!} !cite %!startlink%{%label%[[%label%]] [[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite% !nextcite {%next%[[%!sep% %!cite%]]} !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]} !nextkey {%next%[[%!sep% %key%%!nextkey%]]} !textafter {%textafter%[[, %textafter%]]} # cite styles cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close% footcite %!open%{%dialog%[[%_footcite% #ID]][[%_footcite% %!cite%]]}%!textafter%%!close% nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]} End Regards, Jürgen
Re: switching versions issues
On Sun, Dec 22, 2013 at 6:14 PM, pierre-philipp braunwrote: > Hi there, > > I just switched to version 2.1 beta2 to test a layout script, saved the > document, and when I try to read it with version 2.0 again, I get an error > related to the LyX format. > > path\to\tmpdir\Buffer_convertLyXFormat.emx is not a readable LyX > document. > > Aren't LyX document supposed to be readable by various LyX versions? In > that case this is definitely a beta. > The beta is a beta, and the standard disclaimer applies: do NOT use it for production purposes. This said, the file format in 2.1beta is incompatible with the fileformat in 2.0.x. This is a known and documented feature. If you modified your documents in 2.1beta and you want to access them in 2.0, then you need to File > Export > LyX 2.0.x. Regards, Liviu > Is there a trick to fix the document or should I look at my last backups? > > thanks, > pierre-philipp -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
CJK only LyX can't do it
Hi, I wrote a simple simple sentence using a Chinese sign. I could produce a pdf-file. Then I just pressed enter to make another line before the Chinese sign. Now LyX couldn't make a pdf-file anymore. I noticed LyX had ended the CJK-environment just after the enter. I couldn't move the \end{CJK}. I reported this behaviour already. But the answers were not satisfying. A develper said one can't combine CJK with the German package - because of LaTeX. At first I quit, but then I started a final test. I exported the lyx-file and produced a simple tex-file. Then I opened it with Gummi 0.6. As expected it couldn't produce a pdf-file. But unlike to LyX it allows to change the LaTeX directly. So I wrote \end{CJK} just before \end{document}. Now it worked just perfect! Now my question: Have you been ignored to by the LyX developers? What should I do now? Thanks for any answer. Karl Chinesisch.lyx Description: application/lyx
Re: CJK only LyX can't do it
On Sun, Dec 22, 2013 at 2:54 PM, Karl Linekwrote: > Hi, > > I wrote a simple simple sentence using a Chinese sign. I could produce a > pdf-file. Then I just pressed enter to make another line before the > Chinese sign. Now LyX couldn't make a pdf-file anymore. I noticed LyX > had ended the CJK-environment just after the enter. I couldn't move the > \end{CJK}. I reported this behaviour already. But the answers were not > satisfying. A develper said one can't combine CJK with the German > package - because of LaTeX. At first I quit, but then I started a final > test. I exported the lyx-file and produced a simple tex-file. Then I > opened it with Gummi 0.6. As expected it couldn't produce a pdf-file. > But unlike to LyX it allows to change the LaTeX directly. So I wrote > \end{CJK} just before \end{document}. Now it worked just perfect! > > Now my question: Have you been ignored to by the LyX developers? What > should I do now? > > Thanks for any answer. > > Karl Hi Karl, I can reproduce your problem (thank you for sending a minimal example). if you open your .lyx file and go to "View Source" you will see "". To fix this, you can select the character and go to Edit > Text Style > Customized and set Language to "Chinese". From now on, you can select text and right click and go to "Language" in the right-click menu (you couldn't before because there was only one language. By the way, it's always useful in questions like these if we state our OS, LyX version and TeX distribution because sometimes a problem has to do with that. I'm using Ubuntu 13.10 and an up-to-date TeX Live 2013. I've tested my above instructions on 2.0.xgit (soon to be 2.0.7) and 2.1git (soon to be 2.1). Best, Scott
Re: Spellchecker
It's 2.0.5.1. In playing with it a little more I came to the conclusion that this may just be the spellchecker's way of telling me that it found no more errors in the remainder of the document. Is that plausible? On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronicwrote: > On Sun, Dec 22, 2013 at 1:11 AM, William Hanson wrote: > > I'm trying to run the spellchecker on a document of about 23,000 words. > It > > stops about halfway through, says it has reached the end of the document, > > and asks me if I want to start over from the beginning. I've tried > creating > > a new, shorter document consisting of the last half of my original, but I > > get the same message when I try to run the spellchecker starting at the > > beginning of it. Any suggestions? > > > What version of LyX? > > Liviu > > > -- > Do you know how to read? > http://www.alienetworks.com/srtest.cfm > http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader > Do you know how to write? > http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail >
Re: Spellchecker
William, Have you tried introducing some deliberate some deliberate errors into the last half to see how spellcheck behaves then? Gordon. On 22/12/13 19:13, Liviu Andronic wrote: On Sun, Dec 22, 2013 at 1:11 AM, William Hansonwrote: I'm trying to run the spellchecker on a document of about 23,000 words. It stops about halfway through, says it has reached the end of the document, and asks me if I want to start over from the beginning. I've tried creating a new, shorter document consisting of the last half of my original, but I get the same message when I try to run the spellchecker starting at the beginning of it. Any suggestions? What version of LyX? Liviu
Re: Spellchecker
On Mon, Dec 23, 2013 at 12:42 AM, William Hansonwrote: > It's 2.0.5.1. In playing with it a little more I came to the conclusion > that this may just be the spellchecker's way of telling me that it found no > more errors in the remainder of the document. Is that plausible? > You can easily check that: introduce an error towards the end of the document. Did you try enabling continuous spellchecking in Prefs > Language > Spellchecker? Liviu > > On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic > wrote: >> >> On Sun, Dec 22, 2013 at 1:11 AM, William Hanson wrote: >> > I'm trying to run the spellchecker on a document of about 23,000 words. >> > It >> > stops about halfway through, says it has reached the end of the >> > document, >> > and asks me if I want to start over from the beginning. I've tried >> > creating >> > a new, shorter document consisting of the last half of my original, but >> > I >> > get the same message when I try to run the spellchecker starting at the >> > beginning of it. Any suggestions? >> > >> What version of LyX? >> >> Liviu >> >> >> -- >> Do you know how to read? >> http://www.alienetworks.com/srtest.cfm >> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader >> Do you know how to write? >> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: Spellchecker
Yes, it does detect deliberately introduced errors inserted near the end of the document. I was thrown off by the screen message that said it had reached the end of the document, when it clearly hadn't. If it had said that there were no more errors, I would have understood. All is well. Thanks. Bill On Sun, Dec 22, 2013 at 5:42 PM, William Hansonwrote: > It's 2.0.5.1. In playing with it a little more I came to the conclusion > that this may just be the spellchecker's way of telling me that it found no > more errors in the remainder of the document. Is that plausible? > > > On Sun, Dec 22, 2013 at 12:13 AM, Liviu Andronic > wrote: > >> On Sun, Dec 22, 2013 at 1:11 AM, William Hanson wrote: >> > I'm trying to run the spellchecker on a document of about 23,000 words. >> It >> > stops about halfway through, says it has reached the end of the >> document, >> > and asks me if I want to start over from the beginning. I've tried >> creating >> > a new, shorter document consisting of the last half of my original, but >> I >> > get the same message when I try to run the spellchecker starting at the >> > beginning of it. Any suggestions? >> > >> What version of LyX? >> >> Liviu >> >> >> -- >> Do you know how to read? >> http://www.alienetworks.com/srtest.cfm >> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader >> Do you know how to write? >> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail >> > >