Re: execute command whenever I compile LyX file
Sorry - the copier should read: ### #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROM > $TODIR/svninfo.txt ### Rainer On Mon, Dec 14, 2009 at 9:51 AM, Rainer M Krug wrote: > Hi > > I want to execute a command whenever I compile a compile a LyX file (pdf, > dvi, ps, ...) to save the output from "svn info ..." to a file to be able to > use it > > I thought about using a copier, but which one do I have to use? > > Am I right in assuming, thet a copier as below would do what I want? > > # > ## cp.lyx ## > #!/bin/bash > FROM=$1 > TO=$2 > TODIR=`dirname $TO` > svn info $FROMFILE > $TODIR/svninfo.txt > # > > Where do I have to put: > > cp.lyx $$i $$o > > Rainer > > > > -- > NEW GERMAN FAX NUMBER!!! > > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, > UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Natural Sciences Building > Office Suite 2039 > Stellenbosch University > Main Campus, Merriman Avenue > Stellenbosch > South Africa > > Cell: +27 - (0)83 9479 042 > Fax:+27 - (0)86 516 2782 > Fax:+49 - (0)321 2125 2244 > email: rai...@krugs.de > > Skype: RMkrug > Google: r.m.k...@gmail.com > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
execute command whenever I compile LyX file
Hi I want to execute a command whenever I compile a compile a LyX file (pdf, dvi, ps, ...) to save the output from "svn info ..." to a file to be able to use it I thought about using a copier, but which one do I have to use? Am I right in assuming, thet a copier as below would do what I want? # ## cp.lyx ## #!/bin/bash FROM=$1 TO=$2 TODIR=`dirname $TO` svn info $FROMFILE > $TODIR/svninfo.txt # Where do I have to put: cp.lyx $$i $$o Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: svninfo packages and similar in LyX
Thanks for all your comments, but I am confused now. Could you please provide an example LyX file and neccesary commands which need to be executed in the shell (Linux)? Just that I see how it works. Cheers, Rainer On Fri, Dec 11, 2009 at 7:57 PM, Julien Rioux wrote: > Abdelrazak Younes writes: > > > > Rainer M Krug wrote: > > > When I put the following into the preamble: > > > > > > > So you'll need to do the same: > > > > $ svn propset svn:keyword "URL Author Date Rev" BlackboxProtocol.lyx > > property 'svn:keyword' set on 'BlackboxProtocol.lyx' > > > > You also need > > \svnInfo $Id:$ > > in your preamble to "define" what \svnId should include when it is > expanded. > > From the svninfo doc, sec. 2.2: > > http://ctan.org/tex-archive/macros/latex/contrib/svninfo/svninfo.pdf > > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: install new layout class
On 12/13/2009 07:46 PM, Sergio Celani wrote: Hi I have some problems for to install a new layout. I create a layout for the class au.cl of the journal Algebra Universalis http://www.math.umanitoba.ca/homepages/au/instructions.html I assume you have saved this as au.cls? I don't know for sure, but LyX may want to see the standard .cls extension. First, I install the au.cl class in Miktex. The class is installed correctly because I have checked with Texnicenter. So take the amsar.layout (the au.class is a derived of the amsart.cl). I change the \DeclareLaTeXClass{article (AMS)} by \DeclareLaTeXClass[au]{AlgUniversalis (AU)}. I record a new layout called alguniv.layout In LyX run Reconfigure, closed and open Lyx. Open a new document. So, I go Document => Settings -> Document Class and when I select the new class is not available. Do you see your layout there at all? Or is it marked unavailable? If you don't see it at all, then where did you put your new layout file? You might try saving it as au.layout, and deleting the "[au]" optional argument. This is easier. If it's marked unavailable, then the problem is that the configure.py script is not finding the class for some reason. Try to reconfigure again. Richard
install new layout class
Hi I have some problems for to install a new layout. I create a layout for the class au.cl of the journal Algebra Universalis ht= tp://www.math.umanitoba.ca/homepages/au/instructions.html First, I install the au.cl class in Miktex. The class is installed correctly because I have checked with Texnicenter. So take the amsar.layout (the au.class is a derived of the amsart.cl). I change the \DeclareLaTeXClass{article (AMS)} by \DeclareLaTeXClass[au]{AlgUniversalis (AU)}. I record a new layout called alguniv.layout In LyX run Reconfigure, closed and open Lyx. Open a new document. So, I go Document => Settings -> Document Class and when I select the new class is not available. Please, I need some help sac
Re: \day, \month, \year and \today
Liviu Andronic schreef: Dear all Out of these four, only \today seems to be working here in ERT (LyX 1.6.5, Debian testing, amd64). I get errors for any of \day, \month or \year, commands that I found mentioned in this document [1]. Should I expect these commands to work with LyX? Alternatively, what command should I use to insert the current year? Thank you Liviu [1] http://www.ntg.nl/doc/biemesderfer/ltxcrib.pdf Try: \number\day \number\month \number\year Vincent
\day, \month, \year and \today
Dear all Out of these four, only \today seems to be working here in ERT (LyX 1.6.5, Debian testing, amd64). I get errors for any of \day, \month or \year, commands that I found mentioned in this document [1]. Should I expect these commands to work with LyX? Alternatively, what command should I use to insert the current year? Thank you Liviu [1] http://www.ntg.nl/doc/biemesderfer/ltxcrib.pdf -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Minor interface annoyance
Dear all, I am experiencing a minor problem with the visualization of /ldots and I wonder if it is specific to my installation. When I insert an ellipsis with ALT-. Lyx sometimes inserts three regular- looking black-colored dots, and sometimes it inserts three wider spaced blue dots. The source window shows that LyX produces the identical \ldots command in both cases. However, I am a bit confused about the different looks on screen. Bug? Feature? Screwed-up installation? Cheers, S. __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Re: Lyx 1.6.5 Installer
Am 13.12.2009 15:10, schrieb Vincent van Ravesteijn: Ok, I see some extra movement in the task bar when opening LyX, .. that's all. I believe that with your installer, one can really see a window popping up (or two). This is correct, but they are closed immediately -- takes a few milliseconds. I don't think that this is a problem. It would only be annoying and a bug if the console window is not closed. regards Uwe
Re: Lyx 1.6.5 Installer
Uwe Stöhr schreef: Am 13.12.2009 14:10, schrieb Vincent van Ravesteijn: LyX is programmed in a way that a console is always started. My and also the standard installer hides it immediately. The standard installer doesn't open this console window. Ok, I see some extra movement in the task bar when opening LyX, .. that's all. I believe that with your installer, one can really see a window popping up (or two). Vincent
Re: Page number
Thanks Dave. I have just checked the "memoir" class manual and have found this fact. As I have no use for a bigger outer margin, but I'll do for an inner one (bindings), I have added the "anysize" package to the preamble: \usepackage{anysize} \marginsize{4.5cm}{3cm}{3cm}{3cm} Thanks for your tip. - Julio Rojas jcredbe...@gmail.com On Sun, Dec 13, 2009 at 2:57 PM, case wrote: > On Sun, Dec 13, 2009, Julio Rojas wrote: > >> Dear all, I am using LyX with a book (Memoir) class to write my >> thesis. I have seen that though the page number is on the right (left) >> side of odd (even) pages, the inner margin (the biggest one) is also >> to the right (left) side of odd (even) pages. So, the page number is >> always on the same side of the biggest margin, which is wrong as they >> should be on opposite sides. I haven't touched the way LyX/LaTeX >> handles this issue, so I would like to know why the standard way of >> handling it is erroneous, at least to my knowledge. > > Why do you equate "inner margin" with "the biggest one"? In a standard book > layout, the opposite would be true. This has been discussed many times on > this mailing list, so a search of the archives may help. > > Say reply for the page numbers: generally, the page number would be at the > same side of the page as the bigger (outer) margin. > > ...dave case > >
Re: Page number
On Sun, Dec 13, 2009, Julio Rojas wrote: > Dear all, I am using LyX with a book (Memoir) class to write my > thesis. I have seen that though the page number is on the right (left) > side of odd (even) pages, the inner margin (the biggest one) is also > to the right (left) side of odd (even) pages. So, the page number is > always on the same side of the biggest margin, which is wrong as they > should be on opposite sides. I haven't touched the way LyX/LaTeX > handles this issue, so I would like to know why the standard way of > handling it is erroneous, at least to my knowledge. Why do you equate "inner margin" with "the biggest one"? In a standard book layout, the opposite would be true. This has been discussed many times on this mailing list, so a search of the archives may help. Say reply for the page numbers: generally, the page number would be at the same side of the page as the bigger (outer) margin. ...dave case
Re: Lyx 1.6.5 Installer
Am 13.12.2009 14:10, schrieb Vincent van Ravesteijn: LyX is programmed in a way that a console is always started. My and also the standard installer hides it immediately. The standard installer doesn't open this console window. No, this installer does the same: Section -Launch # Start LyX and capture the command line output Push '"$EXEDIR\lyx.exe" $Parameters' CallInstDLL "$EXEDIR\Console.dll" ExecToLog Pop $ReturnValue #Return value SectionEnd This is done in the file launcher.nsi. This procedure is a bit different of mine because the console output is copied to LyX and thus directly accessible from within LyX. This special feature lead in the past to problems and I therefore only hide the console window. The LyX console window cannot be avoided, we had a long discussion about this in the past. To get rid of the console LyX need to be reprogrammed which is not wanted. regards Uwe
endnotes and hyperref
Dear Lyx-list, I want to use endnotes with hyperref. Endnotes are produced by: - Footnote function from Lyx - insert ERT '\theendnotes' (where endnotes should appear) and in preamble \usepackage{endnotes} \let\footnote=\endnote However, the number of the endnotes are not 'clickable' which means there is no link present. How can I change that so that endnote-numbers are clickable and link directly to the endnotes at the end of the chapter? thanks! best wishes, leo
Re: Lyx 1.6.5 Installer
Uwe Stöhr schreef: Murat Yildizoglu schrieb: I can see two console windows opening each time I launch Lyx using the bat file that has been installed by the alternative installer. They disappear very quickly (I do not have time to read their contents). This is how it should be. LyX is programmed in a way that a console is always started. My and also the standard installer hides it immediately. The standard installer doesn't open this console window. Vincent
Page number
Dear all, I am using LyX with a book (Memoir) class to write my thesis. I have seen that though the page number is on the right (left) side of odd (even) pages, the inner margin (the biggest one) is also to the right (left) side of odd (even) pages. So, the page number is always on the same side of the biggest margin, which is wrong as they should be on opposite sides. I haven't touched the way LyX/LaTeX handles this issue, so I would like to know why the standard way of handling it is erroneous, at least to my knowledge. Thanks for your kind help. - Julio Rojas jcredbe...@gmail.com