Fwd: relative path for images
Hi again, I am having now a problem when visualizing the document. It says that the name-of-my-folder.sty (LyXDocs.sty) is not found and it cannot create the final file. I have tried to run the command $ texhash, as they say in this blog: http://danielbaggio.blogspot.com/2007/10/latex-error-sty-not-found.html, but still gives me the same error. If I delete the relative path (\usepackage{LyXDocs}) from the Latex Preamble, works again. Any clue? Thanks! P.S. maybe I am too silly, but to run a command in the mini-buffer enter key is enough, isnt it? -- Forwarded message -- From: M DR maida@gmail.com Date: 2010/10/27 Subject: relative path for images To: lyx-users@lists.lyx.org Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble, is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
Re: relative path for images
On Thu, Oct 28, 2010 at 11:56 AM, M DR maida@gmail.com wrote: Hi again, I am having now a problem when visualizing the document. It says that the name-of-my-folder.sty (LyXDocs.sty) is not found and it cannot create the final file. I think it might have been my post that caused this confusion. I'm sorry about that. The command \usepackage{something.sty} is employed to include a package that gives you access to a set of commands that you would not otherwise have. For example, in my case, the commands for the particular margin formatting, as well as some of the function calls to fill in the front-matter pages for my thesis were included in a style file named myUthesis.sty There are options from hundreds of packages you might include, depending on what special things you want to be able to do in your document. These packages do extremely useful things like modify your table of contents (tocloft), add specially formatted theorem environments, add new fonts, or do other things like put coffee stains on some of your pages for you to save you the trouble. As an example there is the simpsons package you can download from ctan. Once that package is properly placed either within the latex distribution, or inside the local directory, it can be included with \usepackage{simpsons.sty} in the document's LaTeX preamble. This package adds a number of new fonts. So, when I want to add an image of bart simpson, I write the latex command \bart (using ERT) in my document. Since this function is defined in th file simpsons.sty that file has to be included so that latex knows what to do when it encounters the command. If you are using a regular document class such as report or article, and do not have the need to include other packages, your latex preamble (in documentsettingslatex preamble) will be empty. I have tried to run the command $ texhash, as they say in this blog: http://danielbaggio.blogspot.com/2007/10/latex-error-sty-not-found.html, but still gives me the same error. If I delete the relative path (\usepackage{LyXDocs}) from the Latex Preamble, works again. Any clue? \usepackage{someCoolPackage.sty} is not a relative path, but a LaTeX command. LaTeX commands typically start with \. See explanation of packages above. The commmand texhash is a command that you would run in your linux terminal, not in the LyX mini-buffer. That command tells your LaTeX distribution to update the paths after adding *.sty files somewhere in the LaTeX directory structure. The equivalent on windows with miktex is to click on refresh fndb inside the miktex settings manager. Thanks! P.S. maybe I am too silly, but to run a command in the mini-buffer enter key is enough, isnt it? MaDro In LyX, you can use modules, which can add some cool features, and are a bit more friendly to users. Some info can be found here: http://wiki.lyx.org/Layouts/Modules There is a page on the wiki explaining the concepts of layouts, styles, and modules here: http://wiki.lyx.org/LyX/Concepts I just want to mention one more time that it seems you may not have intended to do anything with latex packages or styles. If that is the case, you can leave your LaTeX preamble empty, and you'll be good to go. The only time you need to put stuff in there is if you want to include packages or give LaTeX commands before the main part of your document. As a new user, you likely not have seen the need to do this yet. I don't mean to add confusion. Hope that clears things up. Jacob
Fwd: relative path for images
Hi again, I am having now a problem when visualizing the document. It says that the name-of-my-folder.sty (LyXDocs.sty) is not found and it cannot create the final file. I have tried to run the command $ texhash, as they say in this blog: http://danielbaggio.blogspot.com/2007/10/latex-error-sty-not-found.html, but still gives me the same error. If I delete the relative path (\usepackage{LyXDocs}) from the Latex Preamble, works again. Any clue? Thanks! P.S. maybe I am too silly, but to run a command in the mini-buffer enter key is enough, isnt it? -- Forwarded message -- From: M DR maida@gmail.com Date: 2010/10/27 Subject: relative path for images To: lyx-users@lists.lyx.org Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble, is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
Re: relative path for images
On Thu, Oct 28, 2010 at 11:56 AM, M DR maida@gmail.com wrote: Hi again, I am having now a problem when visualizing the document. It says that the name-of-my-folder.sty (LyXDocs.sty) is not found and it cannot create the final file. I think it might have been my post that caused this confusion. I'm sorry about that. The command \usepackage{something.sty} is employed to include a package that gives you access to a set of commands that you would not otherwise have. For example, in my case, the commands for the particular margin formatting, as well as some of the function calls to fill in the front-matter pages for my thesis were included in a style file named myUthesis.sty There are options from hundreds of packages you might include, depending on what special things you want to be able to do in your document. These packages do extremely useful things like modify your table of contents (tocloft), add specially formatted theorem environments, add new fonts, or do other things like put coffee stains on some of your pages for you to save you the trouble. As an example there is the simpsons package you can download from ctan. Once that package is properly placed either within the latex distribution, or inside the local directory, it can be included with \usepackage{simpsons.sty} in the document's LaTeX preamble. This package adds a number of new fonts. So, when I want to add an image of bart simpson, I write the latex command \bart (using ERT) in my document. Since this function is defined in th file simpsons.sty that file has to be included so that latex knows what to do when it encounters the command. If you are using a regular document class such as report or article, and do not have the need to include other packages, your latex preamble (in documentsettingslatex preamble) will be empty. I have tried to run the command $ texhash, as they say in this blog: http://danielbaggio.blogspot.com/2007/10/latex-error-sty-not-found.html, but still gives me the same error. If I delete the relative path (\usepackage{LyXDocs}) from the Latex Preamble, works again. Any clue? \usepackage{someCoolPackage.sty} is not a relative path, but a LaTeX command. LaTeX commands typically start with \. See explanation of packages above. The commmand texhash is a command that you would run in your linux terminal, not in the LyX mini-buffer. That command tells your LaTeX distribution to update the paths after adding *.sty files somewhere in the LaTeX directory structure. The equivalent on windows with miktex is to click on refresh fndb inside the miktex settings manager. Thanks! P.S. maybe I am too silly, but to run a command in the mini-buffer enter key is enough, isnt it? MaDro In LyX, you can use modules, which can add some cool features, and are a bit more friendly to users. Some info can be found here: http://wiki.lyx.org/Layouts/Modules There is a page on the wiki explaining the concepts of layouts, styles, and modules here: http://wiki.lyx.org/LyX/Concepts I just want to mention one more time that it seems you may not have intended to do anything with latex packages or styles. If that is the case, you can leave your LaTeX preamble empty, and you'll be good to go. The only time you need to put stuff in there is if you want to include packages or give LaTeX commands before the main part of your document. As a new user, you likely not have seen the need to do this yet. I don't mean to add confusion. Hope that clears things up. Jacob
Fwd: relative path for images
Hi again, I am having now a problem when visualizing the document. It says that the "name-of-my-folder.sty" (LyXDocs.sty) is not found and it cannot create the final file. I have tried to run the command "$ texhash", as they say in this blog: http://danielbaggio.blogspot.com/2007/10/latex-error-sty-not-found.html, but still gives me the same error. If I delete the relative path (\usepackage{LyXDocs}) from the Latex Preamble, works again. Any clue? Thanks! P.S. maybe I am too silly, but to run a command in the mini-buffer enter key is enough, isnt it? -- Forwarded message -- From: M DR <maida@gmail.com> Date: 2010/10/27 Subject: relative path for images To: lyx-users@lists.lyx.org Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout -> Document -> Praeamble, is the same as Document -> Settings -> LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
Re: relative path for images
On Thu, Oct 28, 2010 at 11:56 AM, M DRwrote: > Hi again, > > I am having now a problem when visualizing the document. It says that the > "name-of-my-folder.sty" (LyXDocs.sty) is not found and it cannot create the > final file. > I think it might have been my post that caused this confusion. I'm sorry about that. The command \usepackage{something.sty} is employed to include a package that gives you access to a set of commands that you would not otherwise have. For example, in my case, the commands for the particular margin formatting, as well as some of the function calls to fill in the front-matter pages for my thesis were included in a "style file" named "myUthesis.sty" There are options from hundreds of packages you might include, depending on what special things you want to be able to do in your document. These packages do extremely useful things like modify your table of contents (tocloft), add specially formatted theorem environments, add new fonts, or do other things like put coffee stains on some of your pages for you to save you the trouble. As an example there is the simpsons package you can download from ctan. Once that package is properly placed either within the latex distribution, or inside the local directory, it can be included with \usepackage{simpsons.sty} in the document's LaTeX preamble. This package adds a number of new fonts. So, when I want to add an image of bart simpson, I write the latex command \bart (using ERT) in my document. Since this function is defined in th file "simpsons.sty" that file has to be included so that latex knows what to do when it encounters the command. If you are using a regular document class such as report or article, and do not have the need to include other packages, your latex preamble (in document>settings>latex preamble) will be empty. > > I have tried to run the command "$ texhash", as they say in this blog: > http://danielbaggio.blogspot.com/2007/10/latex-error-sty-not-found.html, > but still gives me the same error. If I delete the relative path > (\usepackage{LyXDocs}) from the Latex Preamble, works again. Any clue? > > \usepackage{someCoolPackage.sty} is not a relative path, but a LaTeX command. LaTeX commands typically start with "\". See explanation of packages above. The commmand "texhash" is a command that you would run in your linux terminal, not in the LyX mini-buffer. That command tells your LaTeX distribution to update the paths after adding *.sty files somewhere in the LaTeX directory structure. The equivalent on windows with miktex is to click on "refresh fndb" inside the miktex settings manager. > Thanks! > > P.S. maybe I am too silly, but to run a command in the mini-buffer enter > key is enough, isnt it? > > MaDro > > In LyX, you can use modules, which can add some cool features, and are a bit more friendly to users. Some info can be found here: http://wiki.lyx.org/Layouts/Modules There is a page on the wiki explaining the concepts of layouts, styles, and modules here: http://wiki.lyx.org/LyX/Concepts I just want to mention one more time that it seems you may not have intended to do anything with latex packages or styles. If that is the case, you can leave your LaTeX preamble empty, and you'll be good to go. The only time you need to put stuff in there is if you want to include packages or give LaTeX commands before the main part of your document. As a new user, you likely not have seen the need to do this yet. I don't mean to add confusion. Hope that clears things up. Jacob
Re: relative path for images
On 10/26/2010 6:51 PM, M DR wrote: Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. You will need to be a bit more specific about what is going wrong. You might also try posting a _small_ example document that does not work (minimal text, one image). btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble,is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? Yes, you are looking in the correct place. Note that if you have all the LaTeX packages used by the document installed on every machine where you work, you do not need to copy any LaTeX files into your work directory. The advice in the first link refers only to LaTeX packages that exist only on one of the machines. /Paul
Re: relative path for images
Am 27.10.2010 00:51, schrieb M DR: I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. Then make the image path in the image dialog a relative one. The LyX manuals are example files where all images are used with relative paths. regards Uwe
Re: relative path for images
2010/10/27 lyx-users-digest-h...@lists.lyx.org From: M DR maida@gmail.com To: lyx-users@lists.lyx.org Date: Wed, 27 Oct 2010 06:51:56 +0800 Subject: relative path for images Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. This is *exactly* the way I'm writing my thesis. It works fine, though I won't call it elegant. If it's safe to assume your document and image files all live within a shared logical root in your Dropbox directory, and all .lyx files will be in either the single directory or a uniform directory structure, you can just edit the file path of the target image in the Graphics dialogue. That is, + doc root is /Users/justin/Dropbox/_PhD/thesis + image files are then under thesis/_src/images/ + lyx files are in structure thesis/chapters/ch1/ So once inserting the image file through the Graphics dialogue in an example file under thesis/chapters/ch1/chapter1.lyx — which will use the full, system-specific file path — you then edit it to be a relative path. If example image file is /Users/justin/Dropbox/_PhD/thesis/_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png then it should be changed to traverse (in my case) two directories back to the shared root using the standard OS ../ pointer. * ../../*_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png Hope that makes sense. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble, is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
Re: relative path for images
On 10/26/2010 6:51 PM, M DR wrote: Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. You will need to be a bit more specific about what is going wrong. You might also try posting a _small_ example document that does not work (minimal text, one image). btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble,is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? Yes, you are looking in the correct place. Note that if you have all the LaTeX packages used by the document installed on every machine where you work, you do not need to copy any LaTeX files into your work directory. The advice in the first link refers only to LaTeX packages that exist only on one of the machines. /Paul
Re: relative path for images
Am 27.10.2010 00:51, schrieb M DR: I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. Then make the image path in the image dialog a relative one. The LyX manuals are example files where all images are used with relative paths. regards Uwe
Re: relative path for images
2010/10/27 lyx-users-digest-h...@lists.lyx.org From: M DR maida@gmail.com To: lyx-users@lists.lyx.org Date: Wed, 27 Oct 2010 06:51:56 +0800 Subject: relative path for images Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. This is *exactly* the way I'm writing my thesis. It works fine, though I won't call it elegant. If it's safe to assume your document and image files all live within a shared logical root in your Dropbox directory, and all .lyx files will be in either the single directory or a uniform directory structure, you can just edit the file path of the target image in the Graphics dialogue. That is, + doc root is /Users/justin/Dropbox/_PhD/thesis + image files are then under thesis/_src/images/ + lyx files are in structure thesis/chapters/ch1/ So once inserting the image file through the Graphics dialogue in an example file under thesis/chapters/ch1/chapter1.lyx — which will use the full, system-specific file path — you then edit it to be a relative path. If example image file is /Users/justin/Dropbox/_PhD/thesis/_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png then it should be changed to traverse (in my case) two directories back to the shared root using the standard OS ../ pointer. * ../../*_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png Hope that makes sense. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble, is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
Re: relative path for images
On 10/26/2010 6:51 PM, M DR wrote: Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. You will need to be a bit more specific about what is going wrong. You might also try posting a _small_ example document that does not work (minimal text, one image). btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout -> Document -> Praeamble,is the same as Document -> Settings -> LaTeX Preamble, which is the only one I've found ? Yes, you are looking in the correct place. Note that if you have all the LaTeX packages used by the document installed on every machine where you work, you do not need to copy any LaTeX files into your work directory. The advice in the first link refers only to LaTeX packages that exist only on one of the machines. /Paul
Re: relative path for images
Am 27.10.2010 00:51, schrieb M DR: I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. Then make the image path in the image dialog a relative one. The LyX manuals are example files where all images are used with relative paths. regards Uwe
Re: relative path for images
2010/10/27 <lyx-users-digest-h...@lists.lyx.org> > From: "M DR" <maida@gmail.com> > To: <lyx-users@lists.lyx.org> > Date: Wed, 27 Oct 2010 06:51:56 +0800 > Subject: relative path for images > Hello to all, > > this is surely a very simple question, but I'm a total no-geek and is > driving me crazy. > > I want to change the absolute path of the figures that I insert (the 90% of > them as a float) to a relative path, since I'm working from differents > computers and syncing the files with dropbox. I have found precisely this > info in these help files, but I'm doing something wrong, since it is not > working as expected. > This is *exactly* the way I'm writing my thesis. It works fine, though I won't call it elegant. If it's safe to assume your document and image files all live within a shared logical root in your Dropbox directory, and all .lyx files will be in either the single directory or a uniform directory structure, you can just edit the file path of the target image in the Graphics dialogue. That is, + doc root is /Users/justin/Dropbox/_PhD/thesis + image files are then under thesis/_src/images/ + lyx files are in structure thesis/chapters/ch1/ So once inserting the image file through the Graphics dialogue in an example file under thesis/chapters/ch1/chapter1.lyx — which will use the full, system-specific file path — you then edit it to be a relative path. If example image file is /Users/justin/Dropbox/_PhD/thesis/_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png then it should be changed to traverse (in my case) two directories back to the shared root using the standard OS "../" pointer. * ../../*_src/images/AR4/Fig7.20-aerosol_effects_schematic-semi-direct.png Hope that makes sense. > btw, I am using LyX version 1.6.7,so the path idicated in the first link: > Layout > -> Document -> Praeamble, is the same as Document -> Settings -> LaTeX > Preamble, which is the only one I've found ? > > http://wiki.lyx.org/Windows/LyXWinTips > > http://wiki.lyx.org/FAQ/RelativeFiguresLocation > > Thanks in advanced, > > MaDro >
relative path for images
Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble, is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
relative path for images
Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout - Document - Praeamble, is the same as Document - Settings - LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro
relative path for images
Hello to all, this is surely a very simple question, but I'm a total no-geek and is driving me crazy. I want to change the absolute path of the figures that I insert (the 90% of them as a float) to a relative path, since I'm working from differents computers and syncing the files with dropbox. I have found precisely this info in these help files, but I'm doing something wrong, since it is not working as expected. btw, I am using LyX version 1.6.7,so the path idicated in the first link: Layout -> Document -> Praeamble, is the same as Document -> Settings -> LaTeX Preamble, which is the only one I've found ? http://wiki.lyx.org/Windows/LyXWinTips http://wiki.lyx.org/FAQ/RelativeFiguresLocation Thanks in advanced, MaDro