Re: Probem compiling to pdf
On 2011-04-04, stephen's mailinglist account wrote: On 4 April 2011 09:02, Sam faye.sam...@gmail.com wrote: It happens to all my files I created previously on my mac. It is OK for with the files I created on the PC. There is no any strange thing happening or showing any error. It just freezes when I try to compile it. Are there error messages if you export to tex (FileExport...) and compile by hand (i.e. from the command line)? Günter
Re: How to disable automativally loaded packages iin lyx?
On 2011-04-04, Richard Heck wrote: On 04/04/2011 01:43 PM, Csikos Bela wrote: I want to use floatrow package, and I inserted \usepackage{floatrow} in the preamble. When I insert a float with setting place it here definitely lyx automatically loads the float. This leads to error messages during pdf creation. I do not need float package as I use the floatrow package. Is there a way to disable the float package or prevent its loading? Probably it will work to add a line like: Provides float 1 to some layout file you are using. If it does, the LyX way would be to create a floatrow module with #\DeclareLyXModule[floatrow.sty]{(floatrow)} AddToPreamble \usepackage{floatrow} EndPreamble Provides float 1 Günter
Re: LaTeX question w.r.t \input@path
Le 04/04/11 21:47, Hellmut Weber a écrit : Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. Note that this \input@path is not defined when you export to LaTeX, only when running inside LyX. So your code should be robust to that situation... JMarc
Re: LaTeX question w.r.t \input@path
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi Julien, thanks for your answer ;-) I think I got the basic idea BUT i Do NOT know the length the path delivered by \input@path. To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split('/')[-len:]) ... shorten_path('/home/leo/leo/Test/abc',2) '/.../Test/abc' Can this be done in (La)TeX? Thanks again and thanks to all others who contributed Best regards Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: LaTeX question w.r.t \input@path
On 04/05/2011 03:20 AM, Hellmut Weber wrote: To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split('/')[-len:]) ... shorten_path('/home/leo/leo/Test/abc',2) '/.../Test/abc' Can this be done in (La)TeX? Yes, but it involves magic. This post http://stackoverflow.com/questions/2402354/split-comma-separated-parameters-in-latex describes how to split on commas and this one on spaces http://tex.stackexchange.com/questions/12810/how-do-i-split-a-string They can both be adapted. Richard
Citing more than one paper
Dear all. I'm trying to cite three different documents, each one with a different page to which I point. How can I put all of them in just one citation? I'm using biblatex's verbose-trad1 style, so footnotes are being used. Right now, I have three different footnotes and I would like all of them on the same one separated by semicolons. Thx for your help. Regards. - Julio Rojas jcredbe...@gmail.com
Re: Citing more than one paper
RTFM!!! Solution: \footcites[\S 80]{Commission:2009a}[][p. 8]{FrenchConsRes2010}[][p. 4]{European-Commission:-Information-Society-and-Media-Directorate-General:2010} Regards. - Julio Rojas jcredbe...@gmail.com On Tue, Apr 5, 2011 at 2:48 PM, Julio Rojas jcredbe...@gmail.com wrote: Dear all. I'm trying to cite three different documents, each one with a different page to which I point. How can I put all of them in just one citation? I'm using biblatex's verbose-trad1 style, so footnotes are being used. Right now, I have three different footnotes and I would like all of them on the same one separated by semicolons. Thx for your help. Regards. - Julio Rojas jcredbe...@gmail.com
Springer style svmono for book is updated?
Hi, I'm having troubles in porting the LaTex .cls I find on Springer website for authors, despite the suggestions I have found on this mailing list. Since there is a svmono style already available in Lyx, does someone know if it is updated and corresponds to the LaTex style file? If yes, I wouldn't strive any longer! Thanks, Andrea
Merge Adjacent Citations?
Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? Thanks much! ~g
Re: How to disable automativally loaded packages iin lyx?
Guenter Milde mi...@users.berlios.de írta: On 2011-04-04, Richard Heck wrote: On 04/04/2011 01:43 PM, Csikos Bela wrote: I want to use floatrow package, and I inserted \usepackage{floatrow} in the preamble. When I insert a float with setting place it here definitely lyx automatically loads the float. This leads to error messages during pdf creation. I do not need float package as I use the floatrow package. Is there a way to disable the float package or prevent its loading? Probably it will work to add a line like: Provides float 1 to some layout file you are using. If it does, the LyX way would be to create a floatrow module with #\DeclareLyXModule[floatrow.sty]{(floatrow)} AddToPreamble \usepackage{floatrow} EndPreamble Provides float 1 Thank you, it is working. One thing I don't understand (but I am not familiar with lyx layout and module syntax): I made a floatrow.module file in ~/.lyx/layouts with the content exactly as above. When I add the module to the document, it adds this to the preamble: %% Textclass specific LaTeX commands. \usepackage{floatrow} \usepackage{floatrow} The \usepackage{floatrow} command is inserted twice. Why is it? Nevertheless it works perfect. Thanks! bcsikos
Re: Translations of Math environments in LyX output - last call for LyX 2.0
Pavel Sanda wrote: Rudi Gaelzer wrote: Dear Pavel. Concerning the translation to brazilian portuguese, your structure works with your template file (localization_test_1.lyx), which employs the Theorems (AMS) and Theorems (AMS-Extended ) modules. However, when I try the numbered by type modules, I detect the same problems I already mentioned in my previous threads: you attached wrong document, because its identical to the previous one... anyway i can reproduce your problem. it seems that our mechanism is not working for all AMS modules. Georg? These styles are missing the LangPreamble and BabelPreamble tags, since they did not exist yet when those tags were introduced. Somebody should go through all modules that have been added after the initial translation support (Feb. 2009) and add these tags where it makes sense. Unfortunately I have no time do so ATM. Fortunately the mentioned theorems will most probably not produce new strings for lib/layouttranslations. Georg
LyX 2.0 RC2 for Windows
How can I get LyX 2.0 RC2 in .exe to install in Windows? I can get the RC1 but the RC2 i can´t see it. I would like to get it because of a bug with Adobe Reader X in RC1 when viewing files. Keep the good work guys! You´re amazing! ;) Best regards.
Crash in rc_2
Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault (somtimes just one and Aborted...) It is similar to the one reported with shaded boxes, but I have no boxes. LyX 2.0.0rc2 (2011-03-29) Built on Apr 5 2011, 20:17:57 Configuration Host type:i686-pc-linux-gnu Special build flags: build=prerelease warnings assertions concept-checks C Compiler: gcc C Compiler LyX flags: C Compiler flags: -Wextra -Wall -g -O2 C++ Compiler: g++ (4.5) C++ Compiler LyX flags: C++ Compiler flags: -Wextra -Wall -g -O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version: 4.7.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx_rc2 Ingar Pareliussen test_crash_rc2.lyx Description: test_crash_rc2.lyx
Re: Crash in rc_2
On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. Maybe the etc part can give a hint what is wrong. Vincent
Official windows installers for RC2 are now available (Re: LyX 2.0 RC2 for Windows)
Alejandro Alonso Rodriguez wrote: How can I get LyX 2.0 RC2 in .exe to install in Windows? official installers have been just uploaded to ftp. pavel
Re: Crash in rc_2
Vincent van Ravesteijn wrote: On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 pavel
Re: Merge Adjacent Citations?
On 04/05/2011 02:57 PM, Greg Kise wrote: Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? http://www.lyx.org/trac/ticket/4842 Richard
Re: How to disable automativally loaded packages iin lyx?
On 04/05/2011 04:05 PM, Csikos Bela wrote: I made a floatrow.module file in ~/.lyx/layouts with the content exactly as above. When I add the module to the document, it adds this to the preamble: %% Textclass specific LaTeX commands. \usepackage{floatrow} \usepackage{floatrow} The \usepackage{floatrow} command is inserted twice. Why is it? Hmm. Very strange. I'll investigate. Richard
SV: Crash in rc_2
This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 I'll go through the translations tomorrow, as I am going throuh the pocheck anyway. Pavel: I'm working on nn.po not nb.po. but there are probably some errors in nn as well :) Ingar
Re: Crash in rc_2
Pavel Sanda wrote: Vincent van Ravesteijn wrote: On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 Ingar, aren't you by chance working on the translation? this would be actually nice to check inside pocheck.pl if some pythonist takes the challenge and add the few lines for checking that each msgid containing %1$s , %2$s , ... has its counterpart in msgtrs. pavel
Re: SV: Crash in rc_2
Ingar Pareliussen wrote: I'll go through the translations tomorrow, as I am going throuh the pocheck anyway. Pavel: I'm working on nn.po not nb.po. but there are probably some errors in nn as well :) i just guessed it... anyway pocheck doesn't seem to check this.. too bad :( pavel
Re: Merge Adjacent Citations?
If you are using Biblatex, you can use \cites, \parencites, \footcites, \textcites, \supercites. - Julio Rojas jcredbe...@gmail.com On Tue, Apr 5, 2011 at 11:14 PM, Richard Heck rgh...@comcast.net wrote: On 04/05/2011 02:57 PM, Greg Kise wrote: Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? http://www.lyx.org/trac/ticket/4842 Richard
Re: LaTeX question w.r.t \input@path
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: LaTeX question w.r.t \input@path
On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut Hellmut, You might consider taking your question to a dedicated TeX channel. Splitting on / is doable, escaping _ too, but the real hard part about your request is this: [-len:] In tEx I do not know how to access the last N elements of a list when he list length is unknown, although accessing the first N is easy. If you know the list length then it's easy as well, but it looks not right for your case because the path could be any depth. Cheers, Julien
Re: LaTeX question w.r.t \input@path
On 04/05/2011 07:28 PM, Julien Rioux wrote: On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut Hellmut, You might consider taking your question to a dedicated TeX channel. Splitting on / is doable, escaping _ too, but the real hard part about your request is this: [-len:] In tEx I do not know how to access the last N elements of a list when he list length is unknown, although accessing the first N is easy. If you know the list length then it's easy as well, but it looks not right for your case because the path could be any depth. OK, so this is getting a little off-topic, but the attached kind of works, as you can see if you compile it. Unfortunately, it does not work with macros, but only with a literal. I.e., this: \split{hi/there/bob} works but \def\tempa{hi/there/bob} \split{\tempa} does not work. I do not see why, but perhaps someone else will know. Richard \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{ifthen} \makeatletter \def\tempa{}\def\tempb{} \def\split#1{\@split{#1}#1/@endtoken} \def\@split#1#2/#3@endtoken{% \ifthenelse{\equal{#1}{#2}}{\def\tempa{#1}\def\tempb{}}% {\@@split#2/#3@endtoken}} \def\@@split#1/#2/@endtoken{\def\tempa{#1}\def\tempb{#2}} \makeatother \begin{document} Pure stuff. \split{hi/there/bob} \tempa \tempb Defined stuff \def\tempb{hi/there/bob} \split{\tempb} \tempa \tempb \end{document}
Re: Probem compiling to pdf
On 2011-04-04, stephen's mailinglist account wrote: On 4 April 2011 09:02, Sam faye.sam...@gmail.com wrote: It happens to all my files I created previously on my mac. It is OK for with the files I created on the PC. There is no any strange thing happening or showing any error. It just freezes when I try to compile it. Are there error messages if you export to tex (FileExport...) and compile by hand (i.e. from the command line)? Günter
Re: How to disable automativally loaded packages iin lyx?
On 2011-04-04, Richard Heck wrote: On 04/04/2011 01:43 PM, Csikos Bela wrote: I want to use floatrow package, and I inserted \usepackage{floatrow} in the preamble. When I insert a float with setting place it here definitely lyx automatically loads the float. This leads to error messages during pdf creation. I do not need float package as I use the floatrow package. Is there a way to disable the float package or prevent its loading? Probably it will work to add a line like: Provides float 1 to some layout file you are using. If it does, the LyX way would be to create a floatrow module with #\DeclareLyXModule[floatrow.sty]{(floatrow)} AddToPreamble \usepackage{floatrow} EndPreamble Provides float 1 Günter
Re: LaTeX question w.r.t \input@path
Le 04/04/11 21:47, Hellmut Weber a écrit : Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. Note that this \input@path is not defined when you export to LaTeX, only when running inside LyX. So your code should be robust to that situation... JMarc
Re: LaTeX question w.r.t \input@path
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi Julien, thanks for your answer ;-) I think I got the basic idea BUT i Do NOT know the length the path delivered by \input@path. To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split('/')[-len:]) ... shorten_path('/home/leo/leo/Test/abc',2) '/.../Test/abc' Can this be done in (La)TeX? Thanks again and thanks to all others who contributed Best regards Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: LaTeX question w.r.t \input@path
On 04/05/2011 03:20 AM, Hellmut Weber wrote: To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split('/')[-len:]) ... shorten_path('/home/leo/leo/Test/abc',2) '/.../Test/abc' Can this be done in (La)TeX? Yes, but it involves magic. This post http://stackoverflow.com/questions/2402354/split-comma-separated-parameters-in-latex describes how to split on commas and this one on spaces http://tex.stackexchange.com/questions/12810/how-do-i-split-a-string They can both be adapted. Richard
Citing more than one paper
Dear all. I'm trying to cite three different documents, each one with a different page to which I point. How can I put all of them in just one citation? I'm using biblatex's verbose-trad1 style, so footnotes are being used. Right now, I have three different footnotes and I would like all of them on the same one separated by semicolons. Thx for your help. Regards. - Julio Rojas jcredbe...@gmail.com
Re: Citing more than one paper
RTFM!!! Solution: \footcites[\S 80]{Commission:2009a}[][p. 8]{FrenchConsRes2010}[][p. 4]{European-Commission:-Information-Society-and-Media-Directorate-General:2010} Regards. - Julio Rojas jcredbe...@gmail.com On Tue, Apr 5, 2011 at 2:48 PM, Julio Rojas jcredbe...@gmail.com wrote: Dear all. I'm trying to cite three different documents, each one with a different page to which I point. How can I put all of them in just one citation? I'm using biblatex's verbose-trad1 style, so footnotes are being used. Right now, I have three different footnotes and I would like all of them on the same one separated by semicolons. Thx for your help. Regards. - Julio Rojas jcredbe...@gmail.com
Springer style svmono for book is updated?
Hi, I'm having troubles in porting the LaTex .cls I find on Springer website for authors, despite the suggestions I have found on this mailing list. Since there is a svmono style already available in Lyx, does someone know if it is updated and corresponds to the LaTex style file? If yes, I wouldn't strive any longer! Thanks, Andrea
Merge Adjacent Citations?
Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? Thanks much! ~g
Re: How to disable automativally loaded packages iin lyx?
Guenter Milde mi...@users.berlios.de írta: On 2011-04-04, Richard Heck wrote: On 04/04/2011 01:43 PM, Csikos Bela wrote: I want to use floatrow package, and I inserted \usepackage{floatrow} in the preamble. When I insert a float with setting place it here definitely lyx automatically loads the float. This leads to error messages during pdf creation. I do not need float package as I use the floatrow package. Is there a way to disable the float package or prevent its loading? Probably it will work to add a line like: Provides float 1 to some layout file you are using. If it does, the LyX way would be to create a floatrow module with #\DeclareLyXModule[floatrow.sty]{(floatrow)} AddToPreamble \usepackage{floatrow} EndPreamble Provides float 1 Thank you, it is working. One thing I don't understand (but I am not familiar with lyx layout and module syntax): I made a floatrow.module file in ~/.lyx/layouts with the content exactly as above. When I add the module to the document, it adds this to the preamble: %% Textclass specific LaTeX commands. \usepackage{floatrow} \usepackage{floatrow} The \usepackage{floatrow} command is inserted twice. Why is it? Nevertheless it works perfect. Thanks! bcsikos
Re: Translations of Math environments in LyX output - last call for LyX 2.0
Pavel Sanda wrote: Rudi Gaelzer wrote: Dear Pavel. Concerning the translation to brazilian portuguese, your structure works with your template file (localization_test_1.lyx), which employs the Theorems (AMS) and Theorems (AMS-Extended ) modules. However, when I try the numbered by type modules, I detect the same problems I already mentioned in my previous threads: you attached wrong document, because its identical to the previous one... anyway i can reproduce your problem. it seems that our mechanism is not working for all AMS modules. Georg? These styles are missing the LangPreamble and BabelPreamble tags, since they did not exist yet when those tags were introduced. Somebody should go through all modules that have been added after the initial translation support (Feb. 2009) and add these tags where it makes sense. Unfortunately I have no time do so ATM. Fortunately the mentioned theorems will most probably not produce new strings for lib/layouttranslations. Georg
LyX 2.0 RC2 for Windows
How can I get LyX 2.0 RC2 in .exe to install in Windows? I can get the RC1 but the RC2 i can´t see it. I would like to get it because of a bug with Adobe Reader X in RC1 when viewing files. Keep the good work guys! You´re amazing! ;) Best regards.
Crash in rc_2
Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault (somtimes just one and Aborted...) It is similar to the one reported with shaded boxes, but I have no boxes. LyX 2.0.0rc2 (2011-03-29) Built on Apr 5 2011, 20:17:57 Configuration Host type:i686-pc-linux-gnu Special build flags: build=prerelease warnings assertions concept-checks C Compiler: gcc C Compiler LyX flags: C Compiler flags: -Wextra -Wall -g -O2 C++ Compiler: g++ (4.5) C++ Compiler LyX flags: C++ Compiler flags: -Wextra -Wall -g -O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version: 4.7.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx_rc2 Ingar Pareliussen test_crash_rc2.lyx Description: test_crash_rc2.lyx
Re: Crash in rc_2
On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. Maybe the etc part can give a hint what is wrong. Vincent
Official windows installers for RC2 are now available (Re: LyX 2.0 RC2 for Windows)
Alejandro Alonso Rodriguez wrote: How can I get LyX 2.0 RC2 in .exe to install in Windows? official installers have been just uploaded to ftp. pavel
Re: Crash in rc_2
Vincent van Ravesteijn wrote: On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 pavel
Re: Merge Adjacent Citations?
On 04/05/2011 02:57 PM, Greg Kise wrote: Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? http://www.lyx.org/trac/ticket/4842 Richard
Re: How to disable automativally loaded packages iin lyx?
On 04/05/2011 04:05 PM, Csikos Bela wrote: I made a floatrow.module file in ~/.lyx/layouts with the content exactly as above. When I add the module to the document, it adds this to the preamble: %% Textclass specific LaTeX commands. \usepackage{floatrow} \usepackage{floatrow} The \usepackage{floatrow} command is inserted twice. Why is it? Hmm. Very strange. I'll investigate. Richard
SV: Crash in rc_2
This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 I'll go through the translations tomorrow, as I am going throuh the pocheck anyway. Pavel: I'm working on nn.po not nb.po. but there are probably some errors in nn as well :) Ingar
Re: Crash in rc_2
Pavel Sanda wrote: Vincent van Ravesteijn wrote: On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 Ingar, aren't you by chance working on the translation? this would be actually nice to check inside pocheck.pl if some pythonist takes the challenge and add the few lines for checking that each msgid containing %1$s , %2$s , ... has its counterpart in msgtrs. pavel
Re: SV: Crash in rc_2
Ingar Pareliussen wrote: I'll go through the translations tomorrow, as I am going throuh the pocheck anyway. Pavel: I'm working on nn.po not nb.po. but there are probably some errors in nn as well :) i just guessed it... anyway pocheck doesn't seem to check this.. too bad :( pavel
Re: Merge Adjacent Citations?
If you are using Biblatex, you can use \cites, \parencites, \footcites, \textcites, \supercites. - Julio Rojas jcredbe...@gmail.com On Tue, Apr 5, 2011 at 11:14 PM, Richard Heck rgh...@comcast.net wrote: On 04/05/2011 02:57 PM, Greg Kise wrote: Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? http://www.lyx.org/trac/ticket/4842 Richard
Re: LaTeX question w.r.t \input@path
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: LaTeX question w.r.t \input@path
On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut Hellmut, You might consider taking your question to a dedicated TeX channel. Splitting on / is doable, escaping _ too, but the real hard part about your request is this: [-len:] In tEx I do not know how to access the last N elements of a list when he list length is unknown, although accessing the first N is easy. If you know the list length then it's easy as well, but it looks not right for your case because the path could be any depth. Cheers, Julien
Re: LaTeX question w.r.t \input@path
On 04/05/2011 07:28 PM, Julien Rioux wrote: On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut Hellmut, You might consider taking your question to a dedicated TeX channel. Splitting on / is doable, escaping _ too, but the real hard part about your request is this: [-len:] In tEx I do not know how to access the last N elements of a list when he list length is unknown, although accessing the first N is easy. If you know the list length then it's easy as well, but it looks not right for your case because the path could be any depth. OK, so this is getting a little off-topic, but the attached kind of works, as you can see if you compile it. Unfortunately, it does not work with macros, but only with a literal. I.e., this: \split{hi/there/bob} works but \def\tempa{hi/there/bob} \split{\tempa} does not work. I do not see why, but perhaps someone else will know. Richard \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{ifthen} \makeatletter \def\tempa{}\def\tempb{} \def\split#1{\@split{#1}#1/@endtoken} \def\@split#1#2/#3@endtoken{% \ifthenelse{\equal{#1}{#2}}{\def\tempa{#1}\def\tempb{}}% {\@@split#2/#3@endtoken}} \def\@@split#1/#2/@endtoken{\def\tempa{#1}\def\tempb{#2}} \makeatother \begin{document} Pure stuff. \split{hi/there/bob} \tempa \tempb Defined stuff \def\tempb{hi/there/bob} \split{\tempb} \tempa \tempb \end{document}
Re: Probem compiling to pdf
On 2011-04-04, stephen's mailinglist account wrote: > On 4 April 2011 09:02, Samwrote: >> It happens to all my files I created previously on my mac. It is OK for with >> the files I created on the PC. >> There is no any strange thing happening or showing any error. It just >> freezes when I try to compile it. Are there error messages if you export to tex (File>Export>...) and compile "by hand" (i.e. from the command line)? Günter
Re: How to disable automativally loaded packages iin lyx?
On 2011-04-04, Richard Heck wrote: > On 04/04/2011 01:43 PM, Csikos Bela wrote: >> I want to use floatrow package, and I inserted \usepackage{floatrow} >> in the preamble. When I insert a float with setting "place it here >> definitely" lyx automatically loads the "float". This leads to error >> messages during pdf creation. I do not need float package as I use the >> floatrow package. >> Is there a way to disable the float package or prevent its loading? > Probably it will work to add a line like: > Provides float 1 > to some layout file you are using. If it does, the "LyX way" would be to create a "floatrow" module with #\DeclareLyXModule[floatrow.sty]{(floatrow)} AddToPreamble \usepackage{floatrow} EndPreamble Provides float 1 Günter
Re: LaTeX question w.r.t \input@path
Le 04/04/11 21:47, Hellmut Weber a écrit : Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. Note that this \input@path is not defined when you export to LaTeX, only when running inside LyX. So your code should be robust to that situation... JMarc
Re: LaTeX question w.r.t \input@path
Am 04.04.2011 23:32, schrieb Julien Rioux: > On 04/04/2011 3:47 PM, Hellmut Weber wrote: >> Hi list, >> recently in another post I found the internal LaTeX macro >> >>\input@path >> >> mentioned. Putting this (surrounded by \makeatletter and \makeatother) >> in an ERT eventually gives me the correct path to my LyX document as >> string in the document. >> >> S many thanks to the poster of that other message (soem days >> ago) ! >> >> Here is now my question to the LaTeX gurus: >> How can I define a LaTeX macro which gives me the END of the string >> delivered by \input@path? >> To give a concrete example: When I open document test-01.lyx with LyX in >> the directory >> >> /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam >> >> and compile my document it shows the correct path >> >> /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ >> >> Fine. >> >> What I would like to derive from this string is >> /.../Lyx-Tests/Inputpath/blam/ ;-) >> See what I mean? >> >> My LaTeX experience told me the need for \makeat..., >> but this transformation I'm not able to do in LaTeX. >> >> >> Any help appreciated >> >> >> Cheers >> >> Hellmut >> >> > > kludge solution, if you know how deep your paths are: > > \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} > \def\removeprefix#1{\expandafter\removeprefixx#1} > > \removeprefix{\input@path} > Hi Julien, thanks for your answer ;-) I think I got the basic idea BUT i Do NOT know the length the path delivered by \input@path. To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> def shorten_path(path, len): ... return '/.../' + '/'.join(path.split('/')[-len:]) ... >>> shorten_path('/home/leo/leo/Test/abc',2) '/.../Test/abc' >>> Can this be done in (La)TeX? Thanks again and thanks to all others who contributed Best regards Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: LaTeX question w.r.t \input@path
On 04/05/2011 03:20 AM, Hellmut Weber wrote: To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split('/')[-len:]) ... shorten_path('/home/leo/leo/Test/abc',2) '/.../Test/abc' Can this be done in (La)TeX? Yes, but it involves magic. This post http://stackoverflow.com/questions/2402354/split-comma-separated-parameters-in-latex describes how to split on commas and this one on spaces http://tex.stackexchange.com/questions/12810/how-do-i-split-a-string They can both be adapted. Richard
Citing more than one paper
Dear all. I'm trying to cite three different documents, each one with a different page to which I point. How can I put all of them in just one citation? I'm using biblatex's verbose-trad1 style, so footnotes are being used. Right now, I have three different footnotes and I would like all of them on the same one separated by semicolons. Thx for your help. Regards. - Julio Rojas jcredbe...@gmail.com
Re: Citing more than one paper
RTFM!!! Solution: \footcites[\S 80]{Commission:2009a}[][p. 8]{FrenchConsRes2010}[][p. 4]{European-Commission:-Information-Society-and-Media-Directorate-General:2010} Regards. - Julio Rojas jcredbe...@gmail.com On Tue, Apr 5, 2011 at 2:48 PM, Julio Rojaswrote: > Dear all. I'm trying to cite three different documents, each one with > a different page to which I point. How can I put all of them in just > one citation? I'm using biblatex's verbose-trad1 style, so footnotes > are being used. Right now, I have three different footnotes and I > would like all of them on the same one separated by semicolons. > > Thx for your help. Regards. > - > Julio Rojas > jcredbe...@gmail.com >
Springer style svmono for book is updated?
Hi, I'm having troubles in porting the LaTex .cls I find on Springer website for authors, despite the suggestions I have found on this mailing list. Since there is a svmono style already available in Lyx, does someone know if it is updated and corresponds to the LaTex style file? If yes, I wouldn't strive any longer! Thanks, Andrea
Merge Adjacent Citations?
Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? Thanks much! ~g
Re: How to disable automativally loaded packages iin lyx?
Guenter Mildeírta: >On 2011-04-04, Richard Heck wrote:> > On 04/04/2011 01:43 PM, Csikos Bela wrote:> > >> I want to use floatrow package, and I inserted \usepackage{floatrow}> >> in the preamble. When I insert a float with setting "place it here> >> definitely" lyx automatically loads the "float". This leads to error> >> messages during pdf creation. I do not need float package as I use the> >> floatrow package.> > >> Is there a way to disable the float package or prevent its loading?> > > Probably it will work to add a line like:> > Provides float 1> > to some layout file you are using.> > If it does, the "LyX way" would be to create a "floatrow" module with> > #\DeclareLyXModule[floatrow.sty]{(floatrow)}> AddToPreamble> \usepackage{floatrow}> EndPreamble> Provides float 1> > Thank you, it is working. One thing I don't understand (but I am not familiar with lyx layout and module syntax): I made a floatrow.module file in ~/.lyx/layouts with the content exactly as above. When I add the module to the document, it adds this to the preamble: %% Textclass specific LaTeX commands. \usepackage{floatrow} \usepackage{floatrow} The \usepackage{floatrow} command is inserted twice. Why is it? Nevertheless it works perfect. Thanks! bcsikos
Re: Translations of Math environments in LyX output - last call for LyX 2.0
Pavel Sanda wrote: > Rudi Gaelzer wrote: >> Dear Pavel. >> Concerning the translation to brazilian portuguese, your structure works >> with your template file (localization_test_1.lyx), which employs the >> Theorems (AMS) and Theorems (AMS-Extended ) modules. >> However, when I try the numbered by type modules, I detect the same >> problems I already mentioned in my previous threads: > > you attached wrong document, because its identical to the previous one... > anyway i can reproduce your problem. it seems that our mechanism is not > working for all AMS modules. Georg? These styles are missing the LangPreamble and BabelPreamble tags, since they did not exist yet when those tags were introduced. Somebody should go through all modules that have been added after the initial translation support (Feb. 2009) and add these tags where it makes sense. Unfortunately I have no time do so ATM. Fortunately the mentioned theorems will most probably not produce new strings for lib/layouttranslations. Georg
LyX 2.0 RC2 for Windows
How can I get LyX 2.0 RC2 in .exe to install in Windows? I can get the RC1 but the RC2 i can´t see it. I would like to get it because of a bug with Adobe Reader X in RC1 when viewing files. Keep the good work guys! You´re amazing! ;) Best regards.
Crash in rc_2
Hi I got a crash when trying to "Save As". Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii("%1$s")) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check "false" in file lassert.cpp:23 Segmentation fault (somtimes just one and Aborted...) It is similar to the one reported with shaded boxes, but I have no boxes. LyX 2.0.0rc2 (2011-03-29) Built on Apr 5 2011, 20:17:57 Configuration Host type:i686-pc-linux-gnu Special build flags: build=prerelease warnings assertions concept-checks C Compiler: gcc C Compiler LyX flags: C Compiler flags: -Wextra -Wall -g -O2 C++ Compiler: g++ (4.5) C++ Compiler LyX flags: C++ Compiler flags: -Wextra -Wall -g -O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version: 4.7.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx_rc2 Ingar Pareliussen test_crash_rc2.lyx Description: test_crash_rc2.lyx
Re: Crash in rc_2
On 5-4-2011 22:22, Ingar Pareliussen wrote: Hi I got a crash when trying to "Save As". Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii("%1$s")) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check "false" in file lassert.cpp:23 Segmentation fault This is not a crash, but an assertion. Most likely caused by an error in the translation. Maybe the part can give a hint what is wrong. Vincent
Official windows installers for RC2 are now available (Re: LyX 2.0 RC2 for Windows)
Alejandro Alonso Rodriguez wrote: > How can I get LyX 2.0 RC2 in .exe to install in Windows? official installers have been just uploaded to ftp. pavel
Re: Crash in rc_2
Vincent van Ravesteijn wrote: > On 5-4-2011 22:22, Ingar Pareliussen wrote: >> Hi >> >> I got a crash when trying to "Save As". Save seems to work fine... >> I have made a small sample file that crashes every time for me with save >> as. >> >> The error is many:: >> >> lassert.cpp(21): ASSERTION contains(fmt, from_ascii("%1$s")) VIOLATED IN >> lstrings.cpp:1329 >> Assertion triggered in void lyx::doAssert(const char*, const char*, long >> int) by failing check "false" in file lassert.cpp:23 >> >> Segmentation fault > > This is not a crash, but an assertion. > > Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 pavel
Re: Merge Adjacent Citations?
On 04/05/2011 02:57 PM, Greg Kise wrote: Hi LyXers, Is there any way to merge adjacent citations? I'm using BibDesk to search citations and then Send to Lyx script, works very nice. However the citations are sent to LyX one at a time (unless I ctrl^select, but sometimes you slip). Is there any way to merge adjacent citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, etc.)? http://www.lyx.org/trac/ticket/4842 Richard
Re: How to disable automativally loaded packages iin lyx?
On 04/05/2011 04:05 PM, Csikos Bela wrote: I made a floatrow.module file in ~/.lyx/layouts with the content exactly as above. When I add the module to the document, it adds this to the preamble: %% Textclass specific LaTeX commands. \usepackage{floatrow} \usepackage{floatrow} The \usepackage{floatrow} command is inserted twice. Why is it? Hmm. Very strange. I'll investigate. Richard
SV: Crash in rc_2
>> This is not a crash, but an assertion. >> >> Most likely caused by an error in the translation. > >i just fixed some problematic strings, but maybe not the last ones... >http://www.lyx.org/trac/changeset/38259 I'll go through the translations tomorrow, as I am going throuh the pocheck anyway. Pavel: I'm working on nn.po not nb.po. but there are probably some errors in nn as well :) Ingar
Re: Crash in rc_2
Pavel Sanda wrote: > Vincent van Ravesteijn wrote: > > On 5-4-2011 22:22, Ingar Pareliussen wrote: > >> Hi > >> > >> I got a crash when trying to "Save As". Save seems to work fine... > >> I have made a small sample file that crashes every time for me with save > >> as. > >> > >> The error is many:: > >> > >> lassert.cpp(21): ASSERTION contains(fmt, from_ascii("%1$s")) VIOLATED IN > >> lstrings.cpp:1329 > >> Assertion triggered in void lyx::doAssert(const char*, const char*, long > >> int) by failing check "false" in file lassert.cpp:23 > >> > >> Segmentation fault > > > > This is not a crash, but an assertion. > > > > Most likely caused by an error in the translation. > > i just fixed some problematic strings, but maybe not the last ones... > http://www.lyx.org/trac/changeset/38259 Ingar, aren't you by chance working on the translation? this would be actually nice to check inside pocheck.pl if some pythonist takes the challenge and add the few lines for checking that each msgid containing %1$s , %2$s , ... has its counterpart in msgtrs. pavel
Re: SV: Crash in rc_2
Ingar Pareliussen wrote: > I'll go through the translations tomorrow, as I am going throuh the pocheck > anyway. > Pavel: I'm working on nn.po not nb.po. but there are probably some errors in > nn as well :) i just guessed it... anyway pocheck doesn't seem to check this.. too bad :( pavel
Re: Merge Adjacent Citations?
If you are using Biblatex, you can use \cites, \parencites, \footcites, \textcites, \supercites. - Julio Rojas jcredbe...@gmail.com On Tue, Apr 5, 2011 at 11:14 PM, Richard Heckwrote: > On 04/05/2011 02:57 PM, Greg Kise wrote: >> >> Hi LyXers, >> >> Is there any way to merge adjacent citations? >> >> I'm using BibDesk to search citations and then Send to Lyx script, works >> very nice. However the citations are sent to LyX one at a time (unless I >> ctrl^select, but sometimes you slip). Is there any way to merge adjacent >> citations to make multi-citations? Like (Greg 2002, Greg et. al. 2010, >> etc.)? >> > http://www.lyx.org/trac/ticket/4842 > > Richard > >
Re: LaTeX question w.r.t \input@path
Am 04.04.2011 23:32, schrieb Julien Rioux: > On 04/04/2011 3:47 PM, Hellmut Weber wrote: >> Hi list, >> recently in another post I found the internal LaTeX macro >> >>\input@path >> >> mentioned. Putting this (surrounded by \makeatletter and \makeatother) >> in an ERT eventually gives me the correct path to my LyX document as >> string in the document. >> >> S many thanks to the poster of that other message (soem days >> ago) ! >> >> Here is now my question to the LaTeX gurus: >> How can I define a LaTeX macro which gives me the END of the string >> delivered by \input@path? >> To give a concrete example: When I open document test-01.lyx with LyX in >> the directory >> >> /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam >> >> and compile my document it shows the correct path >> >> /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ >> >> Fine. >> >> What I would like to derive from this string is >> /.../Lyx-Tests/Inputpath/blam/ ;-) >> See what I mean? >> >> My LaTeX experience told me the need for \makeat..., >> but this transformation I'm not able to do in LaTeX. >> >> >> Any help appreciated >> >> >> Cheers >> >> Hellmut >> >> > > kludge solution, if you know how deep your paths are: > > \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} > \def\removeprefix#1{\expandafter\removeprefixx#1} > > \removeprefix{\input@path} > Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... >>> shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' >>> TIA and Best regards Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: LaTeX question w.r.t \input@path
On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut Hellmut, You might consider taking your question to a dedicated TeX channel. Splitting on / is doable, escaping _ too, but the real hard part about your request is this: [-len:] In tEx I do not know how to access the last N elements of a list when he list length is unknown, although accessing the first N is easy. If you know the list length then it's easy as well, but it looks not right for your case because the path could be any depth. Cheers, Julien
Re: LaTeX question w.r.t \input@path
On 04/05/2011 07:28 PM, Julien Rioux wrote: On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other message (soem days ago) ! Here is now my question to the LaTeX gurus: How can I define a LaTeX macro which gives me the END of the string delivered by \input@path? To give a concrete example: When I open document test-01.lyx with LyX in the directory /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam and compile my document it shows the correct path /home/leo/leo/Tests/Lyx-Tests/Inputpath/blam/ Fine. What I would like to derive from this string is /.../Lyx-Tests/Inputpath/blam/ ;-) See what I mean? My LaTeX experience told me the need for \makeat..., but this transformation I'm not able to do in LaTeX. Any help appreciated Cheers Hellmut kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} \removeprefix{\input@path} Hi list, I have to add one aspect to the functionality I'm looking for: Since I'm used to use directory names which contain underscores ('_') my python code should read: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. def shorten_path(path, len): ... return '/.../' + '/'.join(path.split( '/')[-len:]).replace('_','\_') ... shorten_path('/home/leo/leo/Test_01/abc',2) '/.../Test\_01/abc' TIA and Best regards Hellmut Hellmut, You might consider taking your question to a dedicated TeX channel. Splitting on / is doable, escaping _ too, but the real hard part about your request is this: [-len:] In tEx I do not know how to access the last N elements of a list when he list length is unknown, although accessing the first N is easy. If you know the list length then it's easy as well, but it looks not right for your case because the path could be any depth. OK, so this is getting a little off-topic, but the attached kind of works, as you can see if you compile it. Unfortunately, it does not work with macros, but only with a literal. I.e., this: \split{hi/there/bob} works but \def\tempa{hi/there/bob} \split{\tempa} does not work. I do not see why, but perhaps someone else will know. Richard \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{ifthen} \makeatletter \def\tempa{}\def\tempb{} \def\split#1{\@split{#1}#1/@endtoken} \def\@split#1#2/#3@endtoken{% \ifthenelse{\equal{#1}{#2}}{\def\tempa{#1}\def\tempb{}}% {\@@split#2/#3@endtoken}} \def\@@split#1/#2/@endtoken{\def\tempa{#1}\def\tempb{#2}} \makeatother \begin{document} Pure stuff. \split{hi/there/bob} \tempa \tempb Defined stuff \def\tempb{hi/there/bob} \split{\tempb} \tempa \tempb \end{document}