Shortcut to Insert - Note - Comment
Hi everybody, anyone knows the LFUN name of the insert comment function accessed via Insert - Note - Comment. Thanks, Mariano.
RE: Shortcut to Insert - Note - Comment
Hi everybody, anyone knows the LFUN name of the insert comment function accessed via Insert - Note - Comment. Open Help-LyX Functions and search for Comment. Vincent
Re: Convert Comment into Marginal Note
Hi Diego, I did something similar for lyxgreyedout in my dissertation. The caveat is that both., lyxgreyedout and comment are environments, whereas marginpar is a command. So actually you are looking for a technique to grab the content of an environment in a way it can be passed to a command. After hours of googling I had found the trick. The amsmath package provides a fairly magic macro called \coll...@body to perform this task. I have added the respective lines from my thesis preamble. I developed three variants to typeset the comments, but don't know if the marginpar variant ever really worked. The tikz variant was way cooler :-) Have fun, Daniel %* %** handling of notes % LyX typesets greyed out notes in an LaTeX environment lyxgreyedout. By % redefinition of this environment, we can control how notes are printed % out in the PDF. % % The \coll...@body (provided by amsmath) trick was taken from % http://groups.google.com/group/comp.text.tex/browse_thread/thread/4cc1379654f40925/2316a38e9912fe23?lnk=stq=+%5Ccollect%40body+1995+rnum=1#2316a38e9912fe23 % Basically, it can be used to pass all content of an enviroment to a command. %% % Variant 1: typeset notes as \marginpar (yet to be completed) %% \makeatletter %% \renewenvironment{lyxgreyedout}{\coll...@body\@NOTE}{\global \...@ignoretrue} %% \newcomma...@note[1]{\marginpar{#1}} %% \makeatother %% \addtolength{\textwidth}{-5cm} %% % Variant 2: typeset notes as footnotes. We use the bigfoot package %% % to define our own footnote stack for the notes %% %% %% % The following replaces the default \footnote command by an own %% % to ensure that ordinary footnotes are always printed first %% \DeclareNewFootnote{A} %% \renewcommand{\footnote}{\footnoteA} %% %% % This defines the \footnoteNOTE command for the extra stack. %% % greyed out are printed as sans-serif, red colored footnotes %% % with captial arabic numbering %% \DeclareNewFootnote[para]{NOTE}[Alph] %% \renewcommand{\footnoteNOTE}{% %%\stepcounter{footnoteNOTE}% %%\textcolor{red}{\Footnotemark\thefootnoteNOTE} \FootnotetextNOTE \thefootnoteNOTE} %% %% % redefine the lyxgreyedout environment %% \makeatletter %% \makeenvironment{lyxgreyedout}{\coll...@body\@NOTE}{\global \...@ignoretrue} %% \newcomma...@note[1]{\footnotenote{\begin{minipage}[t]{\textwidth} {\scriptsize\sffamily{\textcolor{red}{#1}}}\end{minipage}}} %% \makeatother %% % Variant 3: typset notes with tikz as marginpars \usepackage{tikz} %% \makeatletter %% \makeenvironment{lyxgreyedout}{\coll...@body\todonote}{\global \...@ignoretrue}% %% \makeatother %% %% \newcommand{\todoNOTE}[1]{% %% \begin{tikzpicture}[remember picture, baseline=-0.75ex]% %% \node [coordinate] (inText) {};% %% \end{tikzpicture}% %% \marginpar{% %% \begin{sffamily}% %% \begin{scriptsize}% %% \begin{tikzpicture}[remember picture]% %% % \draw node[draw=Orange_4, fill=Orange_4!50, text width = 3.4cm ] (inNote) %% \draw node[draw=Gray_40, fill=Gray_10, text width = 3.4cm ] (inNote) %% {#1}; %% \end{tikzpicture}% %% \end{scriptsize}% %% \end{sffamily}% %% }% %% \begin{tikzpicture}[remember picture, overlay]% %% \draw[draw = Gray_40, thick] %% % \draw[draw = Orange_4, thick] %% ([yshift=-0.2cm] inText) %% -| ([xshift=-0.2cm] inNote.west) %% -| (inNote.west); %% \end{tikzpicture}% %% }% % Variant 4: ignore them at all -- for the final print \makeenvironment{lyxgreyedout}{}{} On 13.02.2010, at 19:51, Diego wrote: Hi, using LyX I'm trying to convert the comments into marginal notes. I tried several things but without luck. The best shot was like this: \makeatletter \...@ifundefined{comment}{}{% \renewenvironment{comment}[1]% {\begingroup\marginpar{\bgroup#1\egroup}}% {\endgroup}} \makeatother or like this: \...@ifundefined{comment}{}{% \renewenvironment{comment}% {\marginpar{}% {}}% But what I get is only the first character of the text converted. Like in the attached image. I searched a lot trying to find how to solve this but without luck. I found the explanation of what is happening here:http://theoval.cmp.uea.ac.uk/~nlct/latex/csed/solutions/fonts.html Unexpected Output Only one character is in the new font You thought you changed font over a selection of text, but only the first character has come out in the new font. You have most probably used a command instead of a declaration. The command should take the text as its argument. If you don't group the text, only the first character will be passed as the argument. What I don't know and wasn't able to find is how to group the text. Hope someone could help me :-) Many thanks. Best Regards, Diego (diegostex)
lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2
Hallo, i’m using Lyx on Mac OS X 10.6.2. Everything seems to work properly, but the image converters don’t seem to work: i’ve included some pdf images in my document (i tried with sme ps too) but Lyx doesn’t load them (it says “Error converting to loadable format”). Nevertheless, if i export to a pdf the Lyx document, i obtain the correct file with the original figures. What’s going on? Thanks a lot == Francesco Turci Bât 13 2ème étage Laboratoire des Colloides, Verres et Nanomateriaux CNRS - Université de Montpellier 2 - UMR 5587 place Eugène Bataillon - 34095 Montpellier CEDEX 5, France http://www.lcvn.univ-montp2.fr/ lab : +33(0)4 67 14 46 77 email : francesco.tu...@lcvn.univ-montp2.fr ===
Re: lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2
On Feb 16, 2010, at 8:36 AM, Francesco Turci wrote: Hallo, i’m using Lyx on Mac OS X 10.6.2. Everything seems to work properly, but the image converters don’t seem to work: i’ve included some pdf images in my document (i tried with sme ps too) but Lyx doesn’t load them (it says “Error converting to loadable format”). Nevertheless, if i export to a pdf the Lyx document, i obtain the correct file with the original figures. What’s going on? If none of the graphics formats work then you have a problem with the ImageMagick package and convert command Does the convert command work from the terminal window? Try posting some of the error messages that show up in the terminal window. If only pdf files won't preview, and you have TexLive 2009 and gs 8.70, the here is the problem and work-around from a previous thread... This seems to be a result of the bug reported here https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637 Copy the script convertDefault.py from /Applications/LyX.app/Contents/ Resources/scripts Comment out the lines if sys.argv[1][:4] == 'pdf:' and (version = 0x060206 or gm): opts = '-define pdf:use-cropbox=true ' + opts On a Mac, the script goes in /Users/username/Library/Application\ Support/LyX-1.6/scripts
spell checker problem
Hello, I have installed Lyx 1.6 in Windows XP, and everything works fine apart from check speller. I have aspell 0-50-3-3 installed and on that the English package, in C directory as suggested. Initially it was installed in Program Files too and moved it from there. I have googled it fanatically and did not get an answer. Lyx is installed in Program Files. And Lyx was installed before Aspell. I have reconfigured Lyx but still nothing. I get this message that no word lists can be found for en_US. In tools preferences , Language I have English USA which is the default. In Spellchecker, aspell library is chosen by default but it is grey. (cannot change it) I think that the proble is I cannot explain to Lyx where to get the libraries from. Lyx is really great, and I appreciate the effort you have put for an excellent open source software. Thank you in advance, Lia
Re: EPS files not displaying in PDF
Todd Salamon wrote: The convert command does work ok. I went ahead and tried convert filename.eps filename.pdf The PDF is a bit grainy and unresolved, but there is definitely an image there, whereas in the document it's an empty bounding box. I also tried opening filename.eps in Adobe Illustrator and it complained about the following fonts CMMI7: Default font substituted for missing font. and the same message for CMR7, CMSY7, CMMI10. My colleagues is running Lyx 1.5.xx, with MiKTeX 2.7, and he doesn't seem to have an issue with creating the PDF. Warning: My knowledge of font shenanigans is limited. That said, I suspect the Illustrator messages are a reflection on whatever program you used to create the EPS files. Like PDF, EPS allows you to embed fonts in the document. I have some EPS files generated by Mathematica. They use a mix of Courier (not embedded) and Mathematic-proprietary fonts (embedded). If the program displaying the EPS file can't find a font used in it, it tries to make a best-guess substitution. I know with PDF that this can sometimes produce some ugly results. I doubt it explains why you're getting an empty box when displaying from LyX, though. Is the ImageMagick convert program on your system command path (meaning you ran 'convert' without having to specify a path to it)? If not, it's likely LyX can't find it when the time comes. Assuming it is on the command path ... Try View - PDF (pdflatex) and take a peek inside the temp directory LyX is using. Tools - Preferences - Paths - Temporary directory will point you to its parent. Usually on XP it's C:\Documents and Settings\you\Local Settings\Temp\lyx_something\lyx_tmpbufsome_number\. There should be a copy of your EPS file sitting there, with the name mangled to include the absolute path to it. Alongside it should be a PDF file (the output from IM's convert) with the same mangled name. Are they both there and, if so, does the PDF version contain an image? /Paul PS: I doubt it's related to your problem, but I do recommend upgrading to the latest LyX version.
Re: EPS files not displaying in PDF
I went ahead and tried View - PDF (ps2pdf) as well as View - PDF (dvipdfm), and both of these approaches yield only a single blank page of output in the PDF. When I build via View - PDF (pdflatex) the PDF files that are created in the Lyx Temp directory only have an empty bounding box, so something is being corrupted in the conversion. When I type convert I do not have to specify the path. Though I do notice that the PATH variable has the most recent ImageMagick location listed first (6.5.9), followed by an older ImageMagick install (6.2.9). Could this cause any problems? Though I was still seeing the same error with the 6.2.9 ImageMagick version, so maybe not??? Lastly, I looked at the *.log output in the Lyx Temp directory, and the following warning message is showing up for the EPS to PDF conversions: Package pdftex.def Warning: Option `bb' does not make sense, (pdftex.def)using `viewport' instead on input line 1230. 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_10_Fig ures_slip_scale.pdf, id=164, 614.295pt x 794.97pt File: 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_1 0_Figures_slip_scale.pdf Graphic file (type pdf) use 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_10 _Figures_slip_scale.pdf I did download the latest version Lyx 1.6.5, but ended up seeing the same behavior. Though there is an issue in the installation where the installer isn't able to write a file, and I tell it to simply ignore the error and proceed. The details are earlier in this thread. This applies to version 1.5.7 that is currently installed as well as 1.6.5. Todd
Re: EPS files not displaying in PDF
Am 15.02.2010 19:30, schrieb Todd Salamon: I am running Lyx 1.5.7 on Windows XP SP2 with MiKTeX 2.5 installed. This is most probably the reason. Before you proceed fiddling around in your system to find the misconfiguration, I recommend to 1. uninstall LyX _completely_ 2. uninstall MikteX 2.5 also _completely_ (MiKTeX 2.5 is too old and thus not supported by the MiKTeX developer) 3. uninstall Imagemagick (if installed) 4. uninstall Ghostscript (if installed) 5. open an Interent connection 6. reinstall LyX 1.6.5 using the complete version of this installer: http://wiki.lyx.org/Windows/LyXWinInstaller This will install MiKTeX 2.8 and also all LaTeX-packages needed by LyX. It also installs an up-to-date image manipulation system (Ghostscript, ImageMagick, etc.). regards Uwe
Re: spell checker problem
Am 16.02.2010 16:22, schrieb lia chatzidiakou: I have installed Lyx 1.6 in Windows XP, and everything works fine apart from check speller. I have aspell 0-50-3-3 installed and on that the English package, in C directory as suggested. Initially it was installed in Program Files too and moved it from there. Ypu don't need to install Aspell manually - the LyX-installers do this for you. I suppose you are only suffering from a misconfiguration. To fix thias 1. uninstall the Aspell dictionaries 2. uninstall Asepll 3. uninstall LyX _completely_ 4. open an Internet connection 5. reinstall LyX using the small version of this installer http://wiki.lyx.org/Windows/LyXWinInstaller This will reinstall Aspell and its dictionaries and also take care of the configuration. In tools preferences , Language I have English USA which is the default. In Spellchecker, aspell library is chosen by default but it is grey. (cannot change it) This is correct, because LyX on Windows only supports Aspell as spell checker. regards Uwe
Re: Adding a text box over an image?
Am 14.02.2010 18:26, schrieb KimberlyQ: I am a new Lyx user, hoping to write a technical manual using this wonderful program. Beyond the introduction and first chapter, most of the entire manual consists of a table on every page. The table covers the full page. The table itself is the same on every page. Only the data within the table changes from page to page. I have created all the table pages and data in Ms Word. I can insert them into Lyx as a screenshot image. When you want to benefit from LaTeX's/LyX's typesetting püower you should try to create the tavbles with LyX instead of MS Word, Excel etc. The body of the manual will be one or more text boxes overlaying the table on each page. Perhaps you need longtables. Have a lookt at chapter 2 of LyX's EmbeddedObejcts manual that you find in the Help menu to see what can be done with them (and tables in general). My research as a novice Lyx user indicates that adding a text box to an image can't be done. This is not correct, you need an image float. The image description is inserted as caption. For more info, see again the EmbeddedObjects manual or the LyX UserGuide. regards Uwe
Re: problem_with_hypcap_and_figure_environment
Am 15.02.2010 19:11, schrieb Kamran SHAFQAT: while this works fine but I am having problem with hycap now because of the redefinition. I can't use hypcap after these statements it gives error TeX capacity exceeded, sorry [input stack size=5000]. and when hypcap is used before the environment definition than it doesn't work. The figure links just show the figure caption not the figure as it suppose to do. I fear that hypcap simply cannot handle this case. As stated in the hypcap-manual, hypcap is very fragile. regards Uwe
Re: EPS files not displaying in PDF
I installed Lyx 1.6.5 and MiKTeX 2.8 and this has fixed the problem. One note: the Lyx/MiKTeX install didn't work unless I uninstalled Adobe Acrobat Reader, restarted, installed Lyx/MiKTeX and then re-installed Acrobat Reader. Thanks for the suggestion Uwe. Regards, Todd
stdsections changes not reflected
There is simply too much space between sections and subsections. I moved stdsections.inc to my home directory, put it in ./lyx/layouts but changes to TopSep, BottomSep and ParSep are not recognized after reconfigure. I use lyx 1.6.5 on a slackware 12.1 system. Any suggestions are appreciated. John --
Shortcut to Insert - Note - Comment
Hi everybody, anyone knows the LFUN name of the insert comment function accessed via Insert - Note - Comment. Thanks, Mariano.
RE: Shortcut to Insert - Note - Comment
Hi everybody, anyone knows the LFUN name of the insert comment function accessed via Insert - Note - Comment. Open Help-LyX Functions and search for Comment. Vincent
Re: Convert Comment into Marginal Note
Hi Diego, I did something similar for lyxgreyedout in my dissertation. The caveat is that both., lyxgreyedout and comment are environments, whereas marginpar is a command. So actually you are looking for a technique to grab the content of an environment in a way it can be passed to a command. After hours of googling I had found the trick. The amsmath package provides a fairly magic macro called \coll...@body to perform this task. I have added the respective lines from my thesis preamble. I developed three variants to typeset the comments, but don't know if the marginpar variant ever really worked. The tikz variant was way cooler :-) Have fun, Daniel %* %** handling of notes % LyX typesets greyed out notes in an LaTeX environment lyxgreyedout. By % redefinition of this environment, we can control how notes are printed % out in the PDF. % % The \coll...@body (provided by amsmath) trick was taken from % http://groups.google.com/group/comp.text.tex/browse_thread/thread/4cc1379654f40925/2316a38e9912fe23?lnk=stq=+%5Ccollect%40body+1995+rnum=1#2316a38e9912fe23 % Basically, it can be used to pass all content of an enviroment to a command. %% % Variant 1: typeset notes as \marginpar (yet to be completed) %% \makeatletter %% \renewenvironment{lyxgreyedout}{\coll...@body\@NOTE}{\global \...@ignoretrue} %% \newcomma...@note[1]{\marginpar{#1}} %% \makeatother %% \addtolength{\textwidth}{-5cm} %% % Variant 2: typeset notes as footnotes. We use the bigfoot package %% % to define our own footnote stack for the notes %% %% %% % The following replaces the default \footnote command by an own %% % to ensure that ordinary footnotes are always printed first %% \DeclareNewFootnote{A} %% \renewcommand{\footnote}{\footnoteA} %% %% % This defines the \footnoteNOTE command for the extra stack. %% % greyed out are printed as sans-serif, red colored footnotes %% % with captial arabic numbering %% \DeclareNewFootnote[para]{NOTE}[Alph] %% \renewcommand{\footnoteNOTE}{% %%\stepcounter{footnoteNOTE}% %%\textcolor{red}{\Footnotemark\thefootnoteNOTE} \FootnotetextNOTE \thefootnoteNOTE} %% %% % redefine the lyxgreyedout environment %% \makeatletter %% \makeenvironment{lyxgreyedout}{\coll...@body\@NOTE}{\global \...@ignoretrue} %% \newcomma...@note[1]{\footnotenote{\begin{minipage}[t]{\textwidth} {\scriptsize\sffamily{\textcolor{red}{#1}}}\end{minipage}}} %% \makeatother %% % Variant 3: typset notes with tikz as marginpars \usepackage{tikz} %% \makeatletter %% \makeenvironment{lyxgreyedout}{\coll...@body\todonote}{\global \...@ignoretrue}% %% \makeatother %% %% \newcommand{\todoNOTE}[1]{% %% \begin{tikzpicture}[remember picture, baseline=-0.75ex]% %% \node [coordinate] (inText) {};% %% \end{tikzpicture}% %% \marginpar{% %% \begin{sffamily}% %% \begin{scriptsize}% %% \begin{tikzpicture}[remember picture]% %% % \draw node[draw=Orange_4, fill=Orange_4!50, text width = 3.4cm ] (inNote) %% \draw node[draw=Gray_40, fill=Gray_10, text width = 3.4cm ] (inNote) %% {#1}; %% \end{tikzpicture}% %% \end{scriptsize}% %% \end{sffamily}% %% }% %% \begin{tikzpicture}[remember picture, overlay]% %% \draw[draw = Gray_40, thick] %% % \draw[draw = Orange_4, thick] %% ([yshift=-0.2cm] inText) %% -| ([xshift=-0.2cm] inNote.west) %% -| (inNote.west); %% \end{tikzpicture}% %% }% % Variant 4: ignore them at all -- for the final print \makeenvironment{lyxgreyedout}{}{} On 13.02.2010, at 19:51, Diego wrote: Hi, using LyX I'm trying to convert the comments into marginal notes. I tried several things but without luck. The best shot was like this: \makeatletter \...@ifundefined{comment}{}{% \renewenvironment{comment}[1]% {\begingroup\marginpar{\bgroup#1\egroup}}% {\endgroup}} \makeatother or like this: \...@ifundefined{comment}{}{% \renewenvironment{comment}% {\marginpar{}% {}}% But what I get is only the first character of the text converted. Like in the attached image. I searched a lot trying to find how to solve this but without luck. I found the explanation of what is happening here:http://theoval.cmp.uea.ac.uk/~nlct/latex/csed/solutions/fonts.html Unexpected Output Only one character is in the new font You thought you changed font over a selection of text, but only the first character has come out in the new font. You have most probably used a command instead of a declaration. The command should take the text as its argument. If you don't group the text, only the first character will be passed as the argument. What I don't know and wasn't able to find is how to group the text. Hope someone could help me :-) Many thanks. Best Regards, Diego (diegostex)
lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2
Hallo, i’m using Lyx on Mac OS X 10.6.2. Everything seems to work properly, but the image converters don’t seem to work: i’ve included some pdf images in my document (i tried with sme ps too) but Lyx doesn’t load them (it says “Error converting to loadable format”). Nevertheless, if i export to a pdf the Lyx document, i obtain the correct file with the original figures. What’s going on? Thanks a lot == Francesco Turci Bât 13 2ème étage Laboratoire des Colloides, Verres et Nanomateriaux CNRS - Université de Montpellier 2 - UMR 5587 place Eugène Bataillon - 34095 Montpellier CEDEX 5, France http://www.lcvn.univ-montp2.fr/ lab : +33(0)4 67 14 46 77 email : francesco.tu...@lcvn.univ-montp2.fr ===
Re: lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2
On Feb 16, 2010, at 8:36 AM, Francesco Turci wrote: Hallo, i’m using Lyx on Mac OS X 10.6.2. Everything seems to work properly, but the image converters don’t seem to work: i’ve included some pdf images in my document (i tried with sme ps too) but Lyx doesn’t load them (it says “Error converting to loadable format”). Nevertheless, if i export to a pdf the Lyx document, i obtain the correct file with the original figures. What’s going on? If none of the graphics formats work then you have a problem with the ImageMagick package and convert command Does the convert command work from the terminal window? Try posting some of the error messages that show up in the terminal window. If only pdf files won't preview, and you have TexLive 2009 and gs 8.70, the here is the problem and work-around from a previous thread... This seems to be a result of the bug reported here https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637 Copy the script convertDefault.py from /Applications/LyX.app/Contents/ Resources/scripts Comment out the lines if sys.argv[1][:4] == 'pdf:' and (version = 0x060206 or gm): opts = '-define pdf:use-cropbox=true ' + opts On a Mac, the script goes in /Users/username/Library/Application\ Support/LyX-1.6/scripts
spell checker problem
Hello, I have installed Lyx 1.6 in Windows XP, and everything works fine apart from check speller. I have aspell 0-50-3-3 installed and on that the English package, in C directory as suggested. Initially it was installed in Program Files too and moved it from there. I have googled it fanatically and did not get an answer. Lyx is installed in Program Files. And Lyx was installed before Aspell. I have reconfigured Lyx but still nothing. I get this message that no word lists can be found for en_US. In tools preferences , Language I have English USA which is the default. In Spellchecker, aspell library is chosen by default but it is grey. (cannot change it) I think that the proble is I cannot explain to Lyx where to get the libraries from. Lyx is really great, and I appreciate the effort you have put for an excellent open source software. Thank you in advance, Lia
Re: EPS files not displaying in PDF
Todd Salamon wrote: The convert command does work ok. I went ahead and tried convert filename.eps filename.pdf The PDF is a bit grainy and unresolved, but there is definitely an image there, whereas in the document it's an empty bounding box. I also tried opening filename.eps in Adobe Illustrator and it complained about the following fonts CMMI7: Default font substituted for missing font. and the same message for CMR7, CMSY7, CMMI10. My colleagues is running Lyx 1.5.xx, with MiKTeX 2.7, and he doesn't seem to have an issue with creating the PDF. Warning: My knowledge of font shenanigans is limited. That said, I suspect the Illustrator messages are a reflection on whatever program you used to create the EPS files. Like PDF, EPS allows you to embed fonts in the document. I have some EPS files generated by Mathematica. They use a mix of Courier (not embedded) and Mathematic-proprietary fonts (embedded). If the program displaying the EPS file can't find a font used in it, it tries to make a best-guess substitution. I know with PDF that this can sometimes produce some ugly results. I doubt it explains why you're getting an empty box when displaying from LyX, though. Is the ImageMagick convert program on your system command path (meaning you ran 'convert' without having to specify a path to it)? If not, it's likely LyX can't find it when the time comes. Assuming it is on the command path ... Try View - PDF (pdflatex) and take a peek inside the temp directory LyX is using. Tools - Preferences - Paths - Temporary directory will point you to its parent. Usually on XP it's C:\Documents and Settings\you\Local Settings\Temp\lyx_something\lyx_tmpbufsome_number\. There should be a copy of your EPS file sitting there, with the name mangled to include the absolute path to it. Alongside it should be a PDF file (the output from IM's convert) with the same mangled name. Are they both there and, if so, does the PDF version contain an image? /Paul PS: I doubt it's related to your problem, but I do recommend upgrading to the latest LyX version.
Re: EPS files not displaying in PDF
I went ahead and tried View - PDF (ps2pdf) as well as View - PDF (dvipdfm), and both of these approaches yield only a single blank page of output in the PDF. When I build via View - PDF (pdflatex) the PDF files that are created in the Lyx Temp directory only have an empty bounding box, so something is being corrupted in the conversion. When I type convert I do not have to specify the path. Though I do notice that the PATH variable has the most recent ImageMagick location listed first (6.5.9), followed by an older ImageMagick install (6.2.9). Could this cause any problems? Though I was still seeing the same error with the 6.2.9 ImageMagick version, so maybe not??? Lastly, I looked at the *.log output in the Lyx Temp directory, and the following warning message is showing up for the EPS to PDF conversions: Package pdftex.def Warning: Option `bb' does not make sense, (pdftex.def)using `viewport' instead on input line 1230. 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_10_Fig ures_slip_scale.pdf, id=164, 614.295pt x 794.97pt File: 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_1 0_Figures_slip_scale.pdf Graphic file (type pdf) use 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_10 _Figures_slip_scale.pdf I did download the latest version Lyx 1.6.5, but ended up seeing the same behavior. Though there is an issue in the installation where the installer isn't able to write a file, and I tell it to simply ignore the error and proceed. The details are earlier in this thread. This applies to version 1.5.7 that is currently installed as well as 1.6.5. Todd
Re: EPS files not displaying in PDF
Am 15.02.2010 19:30, schrieb Todd Salamon: I am running Lyx 1.5.7 on Windows XP SP2 with MiKTeX 2.5 installed. This is most probably the reason. Before you proceed fiddling around in your system to find the misconfiguration, I recommend to 1. uninstall LyX _completely_ 2. uninstall MikteX 2.5 also _completely_ (MiKTeX 2.5 is too old and thus not supported by the MiKTeX developer) 3. uninstall Imagemagick (if installed) 4. uninstall Ghostscript (if installed) 5. open an Interent connection 6. reinstall LyX 1.6.5 using the complete version of this installer: http://wiki.lyx.org/Windows/LyXWinInstaller This will install MiKTeX 2.8 and also all LaTeX-packages needed by LyX. It also installs an up-to-date image manipulation system (Ghostscript, ImageMagick, etc.). regards Uwe
Re: spell checker problem
Am 16.02.2010 16:22, schrieb lia chatzidiakou: I have installed Lyx 1.6 in Windows XP, and everything works fine apart from check speller. I have aspell 0-50-3-3 installed and on that the English package, in C directory as suggested. Initially it was installed in Program Files too and moved it from there. Ypu don't need to install Aspell manually - the LyX-installers do this for you. I suppose you are only suffering from a misconfiguration. To fix thias 1. uninstall the Aspell dictionaries 2. uninstall Asepll 3. uninstall LyX _completely_ 4. open an Internet connection 5. reinstall LyX using the small version of this installer http://wiki.lyx.org/Windows/LyXWinInstaller This will reinstall Aspell and its dictionaries and also take care of the configuration. In tools preferences , Language I have English USA which is the default. In Spellchecker, aspell library is chosen by default but it is grey. (cannot change it) This is correct, because LyX on Windows only supports Aspell as spell checker. regards Uwe
Re: Adding a text box over an image?
Am 14.02.2010 18:26, schrieb KimberlyQ: I am a new Lyx user, hoping to write a technical manual using this wonderful program. Beyond the introduction and first chapter, most of the entire manual consists of a table on every page. The table covers the full page. The table itself is the same on every page. Only the data within the table changes from page to page. I have created all the table pages and data in Ms Word. I can insert them into Lyx as a screenshot image. When you want to benefit from LaTeX's/LyX's typesetting püower you should try to create the tavbles with LyX instead of MS Word, Excel etc. The body of the manual will be one or more text boxes overlaying the table on each page. Perhaps you need longtables. Have a lookt at chapter 2 of LyX's EmbeddedObejcts manual that you find in the Help menu to see what can be done with them (and tables in general). My research as a novice Lyx user indicates that adding a text box to an image can't be done. This is not correct, you need an image float. The image description is inserted as caption. For more info, see again the EmbeddedObjects manual or the LyX UserGuide. regards Uwe
Re: problem_with_hypcap_and_figure_environment
Am 15.02.2010 19:11, schrieb Kamran SHAFQAT: while this works fine but I am having problem with hycap now because of the redefinition. I can't use hypcap after these statements it gives error TeX capacity exceeded, sorry [input stack size=5000]. and when hypcap is used before the environment definition than it doesn't work. The figure links just show the figure caption not the figure as it suppose to do. I fear that hypcap simply cannot handle this case. As stated in the hypcap-manual, hypcap is very fragile. regards Uwe
Re: EPS files not displaying in PDF
I installed Lyx 1.6.5 and MiKTeX 2.8 and this has fixed the problem. One note: the Lyx/MiKTeX install didn't work unless I uninstalled Adobe Acrobat Reader, restarted, installed Lyx/MiKTeX and then re-installed Acrobat Reader. Thanks for the suggestion Uwe. Regards, Todd
stdsections changes not reflected
There is simply too much space between sections and subsections. I moved stdsections.inc to my home directory, put it in ./lyx/layouts but changes to TopSep, BottomSep and ParSep are not recognized after reconfigure. I use lyx 1.6.5 on a slackware 12.1 system. Any suggestions are appreciated. John --
Shortcut to Insert -> Note -> Comment
Hi everybody, anyone knows the LFUN name of the "insert comment" function accessed via Insert -> Note -> Comment. Thanks, Mariano.
RE: Shortcut to Insert -> Note -> Comment
>Hi everybody, anyone knows the LFUN name of the "insert comment" >function accessed via Insert -> Note -> Comment. Open Help->LyX Functions and search for "Comment". Vincent
Re: Convert "Comment" into "Marginal Note"
Hi Diego, I did something similar for "lyxgreyedout" in my dissertation. The caveat is that both., "lyxgreyedout" and "comment" are environments, whereas marginpar is a command. So actually you are looking for a technique to grab the content of an environment in a way it can be passed to a command. After hours of googling I had found the trick. The amsmath package provides a fairly magic macro called \coll...@body to perform this task. I have added the respective lines from my thesis preamble. I developed three variants to typeset the comments, but don't know if the marginpar variant ever really worked. The tikz variant was way cooler :-) Have fun, Daniel %* %** handling of notes % LyX typesets "greyed out" notes in an LaTeX environment "lyxgreyedout". By % redefinition of this environment, we can control how notes are printed % out in the PDF. % % The \coll...@body (provided by amsmath) trick was taken from % http://groups.google.com/group/comp.text.tex/browse_thread/thread/4cc1379654f40925/2316a38e9912fe23?lnk=st=+%5Ccollect%40body+1995+=1#2316a38e9912fe23 % Basically, it can be used to pass all content of an enviroment to a command. %% % Variant 1: typeset notes as \marginpar (yet to be completed) %% \makeatletter %% \renewenvironment{lyxgreyedout}{\coll...@body\@NOTE}{\global \...@ignoretrue} %% \newcomma...@note[1]{\marginpar{#1}} %% \makeatother %% \addtolength{\textwidth}{-5cm} %% % Variant 2: typeset notes as footnotes. We use the bigfoot package %% % to define our own footnote stack for the notes %% %% %% % The following replaces the default \footnote command by an own %% % to ensure that ordinary footnotes are always printed first %% \DeclareNewFootnote{A} %% \renewcommand{\footnote}{\footnoteA} %% %% % This defines the \footnoteNOTE command for the extra stack. %% % "greyed out" are printed as sans-serif, red colored footnotes %% % with captial arabic numbering %% \DeclareNewFootnote[para]{NOTE}[Alph] %% \renewcommand{\footnoteNOTE}{% %%\stepcounter{footnoteNOTE}% %%\textcolor{red}{\Footnotemark\thefootnoteNOTE} \FootnotetextNOTE \thefootnoteNOTE} %% %% % redefine the lyxgreyedout environment %% \makeatletter %% \makeenvironment{lyxgreyedout}{\coll...@body\@NOTE}{\global \...@ignoretrue} %% \newcomma...@note[1]{\footnotenote{\begin{minipage}[t]{\textwidth} {\scriptsize\sffamily{\textcolor{red}{#1}}}\end{minipage}}} %% \makeatother %% % Variant 3: typset notes with tikz as marginpars \usepackage{tikz} %% \makeatletter %% \makeenvironment{lyxgreyedout}{\coll...@body\todonote}{\global \...@ignoretrue}% %% \makeatother %% %% \newcommand{\todoNOTE}[1]{% %% \begin{tikzpicture}[remember picture, baseline=-0.75ex]% %% \node [coordinate] (inText) {};% %% \end{tikzpicture}% %% \marginpar{% %% \begin{sffamily}% %% \begin{scriptsize}% %% \begin{tikzpicture}[remember picture]% %% % \draw node[draw=Orange_4, fill=Orange_4!50, text width = 3.4cm ] (inNote) %% \draw node[draw=Gray_40, fill=Gray_10, text width = 3.4cm ] (inNote) %% {#1}; %% \end{tikzpicture}% %% \end{scriptsize}% %% \end{sffamily}% %% }% %% \begin{tikzpicture}[remember picture, overlay]% %% \draw[draw = Gray_40, thick] %% % \draw[draw = Orange_4, thick] %% ([yshift=-0.2cm] inText) %% -| ([xshift=-0.2cm] inNote.west) %% -| (inNote.west); %% \end{tikzpicture}% %% }% % Variant 4: ignore them at all -- for the final print \makeenvironment{lyxgreyedout}{}{} On 13.02.2010, at 19:51, Diego wrote: Hi, using LyX I'm trying to convert the "comments" into "marginal notes". I tried several things but without luck. The best shot was like this: \makeatletter \...@ifundefined{comment}{}{% \renewenvironment{comment}[1]% {\begingroup\marginpar{\bgroup#1\egroup}}% {\endgroup}} \makeatother or like this: \...@ifundefined{comment}{}{% \renewenvironment{comment}% {\marginpar{}% {}}% But what I get is only the first character of the text converted. Like in the attached image. I searched a lot trying to find how to solve this but without luck. I found the explanation of what is happening here:http://theoval.cmp.uea.ac.uk/~nlct/latex/csed/solutions/fonts.html Unexpected Output Only one character is in the new font You thought you changed font over a selection of text, but only the first character has come out in the new font. You have most probably used a command instead of a declaration. The command should take the text as its argument. If you don't group the text, only the first character will be passed as the argument. What I don't know and wasn't able to find is how to group the text. Hope someone could help me :-) Many thanks. Best Regards, Diego
lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2
Hallo, i’m using Lyx on Mac OS X 10.6.2. Everything seems to work properly, but the image converters don’t seem to work: i’ve included some pdf images in my document (i tried with sme ps too) but Lyx doesn’t load them (it says “Error converting to loadable format”). Nevertheless, if i export to a pdf the Lyx document, i obtain the correct file with the original figures. What’s going on? Thanks a lot == Francesco Turci Bât 13 2ème étage Laboratoire des Colloides, Verres et Nanomateriaux CNRS - Université de Montpellier 2 - UMR 5587 place Eugène Bataillon - 34095 Montpellier CEDEX 5, France http://www.lcvn.univ-montp2.fr/ lab : +33(0)4 67 14 46 77 email : francesco.tu...@lcvn.univ-montp2.fr ===
Re: lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2
On Feb 16, 2010, at 8:36 AM, Francesco Turci wrote: Hallo, i’m using Lyx on Mac OS X 10.6.2. Everything seems to work properly, but the image converters don’t seem to work: i’ve included some pdf images in my document (i tried with sme ps too) but Lyx doesn’t load them (it says “Error converting to loadable format”). Nevertheless, if i export to a pdf the Lyx document, i obtain the correct file with the original figures. What’s going on? If none of the graphics formats work then you have a problem with the ImageMagick package and convert command Does the convert command work from the terminal window? Try posting some of the error messages that show up in the terminal window. If only pdf files won't preview, and you have TexLive 2009 and gs 8.70, the here is the problem and work-around from a previous thread... This seems to be a result of the bug reported here https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637 Copy the script convertDefault.py from /Applications/LyX.app/Contents/ Resources/scripts Comment out the lines if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm): opts = '-define pdf:use-cropbox=true ' + opts On a Mac, the script goes in /Users/username/Library/Application\ Support/LyX-1.6/scripts
spell checker problem
Hello, I have installed Lyx 1.6 in Windows XP, and everything works fine apart from check speller. I have aspell 0-50-3-3 installed and on that the English package, in C directory as suggested. Initially it was installed in Program Files too and moved it from there. I have googled it fanatically and did not get an answer. Lyx is installed in Program Files. And Lyx was installed before Aspell. I have reconfigured Lyx but still nothing. I get this message that" no word lists can be found for en_US. In tools preferences , Language I have English USA which is the default. In Spellchecker, aspell library is chosen by default but it is grey. (cannot change it) I think that the proble is I cannot explain to Lyx where to get the libraries from. Lyx is really great, and I appreciate the effort you have put for an excellent open source software. Thank you in advance, Lia
Re: EPS files not displaying in PDF
Todd Salamon wrote: The convert command does work ok. I went ahead and tried convert filename.eps filename.pdf The PDF is a bit grainy and unresolved, but there is definitely an image there, whereas in the document it's an empty bounding box. I also tried opening filename.eps in Adobe Illustrator and it complained about the following fonts CMMI7: Default font substituted for missing font. and the same message for CMR7, CMSY7, CMMI10. My colleagues is running Lyx 1.5.xx, with MiKTeX 2.7, and he doesn't seem to have an issue with creating the PDF. Warning: My knowledge of font shenanigans is limited. That said, I suspect the Illustrator messages are a reflection on whatever program you used to create the EPS files. Like PDF, EPS allows you to embed fonts in the document. I have some EPS files generated by Mathematica. They use a mix of Courier (not embedded) and Mathematic-proprietary fonts (embedded). If the program displaying the EPS file can't find a font used in it, it tries to make a best-guess substitution. I know with PDF that this can sometimes produce some ugly results. I doubt it explains why you're getting an empty box when displaying from LyX, though. Is the ImageMagick convert program on your system command path (meaning you ran 'convert' without having to specify a path to it)? If not, it's likely LyX can't find it when the time comes. Assuming it is on the command path ... Try View -> PDF (pdflatex) and take a peek inside the temp directory LyX is using. Tools -> Preferences -> Paths -> Temporary directory will point you to its parent. Usually on XP it's C:\Documents and Settings\\Local Settings\Temp\lyx_\lyx_tmpbuf\. There should be a copy of your EPS file sitting there, with the name mangled to include the absolute path to it. Alongside it should be a PDF file (the output from IM's convert) with the same mangled name. Are they both there and, if so, does the PDF version contain an image? /Paul PS: I doubt it's related to your problem, but I do recommend upgrading to the latest LyX version.
Re: EPS files not displaying in PDF
I went ahead and tried "View -> PDF (ps2pdf)" as well as "View -> PDF (dvipdfm)", and both of these approaches yield only a single blank page of output in the PDF. When I build via "View -> PDF (pdflatex)" the PDF files that are created in the Lyx Temp directory only have an empty bounding box, so something is being corrupted in the conversion. When I type convert I do not have to specify the path. Though I do notice that the PATH variable has the most recent ImageMagick location listed first (6.5.9), followed by an older ImageMagick install (6.2.9). Could this cause any problems? Though I was still seeing the same error with the 6.2.9 ImageMagick version, so maybe not??? Lastly, I looked at the *.log output in the Lyx Temp directory, and the following warning message is showing up for the EPS to PDF conversions: Package pdftex.def Warning: Option `bb' does not make sense, (pdftex.def)using `viewport' instead on input line 1230. <12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_10_Fig ures_slip_scale.pdf, id=164, 614.295pt x 794.97pt> File: 12C__Documents_and_Settings_tsalamon_My_Documen___nt_Ryan_POF_PoF_09_02_1 0_Figures_slip_scale.pdf Graphic file (type pdf) I did download the latest version Lyx 1.6.5, but ended up seeing the same behavior. Though there is an issue in the installation where the installer isn't able to write a file, and I tell it to simply ignore the error and proceed. The details are earlier in this thread. This applies to version 1.5.7 that is currently installed as well as 1.6.5. Todd
Re: EPS files not displaying in PDF
Am 15.02.2010 19:30, schrieb Todd Salamon: I am running Lyx 1.5.7 on Windows XP SP2 with MiKTeX 2.5 installed. This is most probably the reason. Before you proceed fiddling around in your system to find the misconfiguration, I recommend to 1. uninstall LyX _completely_ 2. uninstall MikteX 2.5 also _completely_ (MiKTeX 2.5 is too old and thus not supported by the MiKTeX developer) 3. uninstall Imagemagick (if installed) 4. uninstall Ghostscript (if installed) 5. open an Interent connection 6. reinstall LyX 1.6.5 using the complete version of this installer: http://wiki.lyx.org/Windows/LyXWinInstaller This will install MiKTeX 2.8 and also all LaTeX-packages needed by LyX. It also installs an up-to-date image manipulation system (Ghostscript, ImageMagick, etc.). regards Uwe
Re: spell checker problem
Am 16.02.2010 16:22, schrieb lia chatzidiakou: I have installed Lyx 1.6 in Windows XP, and everything works fine apart from check speller. I have aspell 0-50-3-3 installed and on that the English package, in C directory as suggested. Initially it was installed in Program Files too and moved it from there. Ypu don't need to install Aspell manually - the LyX-installers do this for you. I suppose you are only suffering from a misconfiguration. To fix thias 1. uninstall the Aspell dictionaries 2. uninstall Asepll 3. uninstall LyX _completely_ 4. open an Internet connection 5. reinstall LyX using the small version of this installer http://wiki.lyx.org/Windows/LyXWinInstaller This will reinstall Aspell and its dictionaries and also take care of the configuration. In tools preferences , Language I have English USA which is the default. In Spellchecker, aspell library is chosen by default but it is grey. (cannot change it) This is correct, because LyX on Windows only supports Aspell as spell checker. regards Uwe
Re: Adding a text box over an image?
Am 14.02.2010 18:26, schrieb KimberlyQ: I am a new Lyx user, hoping to write a technical manual using this wonderful program. Beyond the introduction and first chapter, most of the entire manual consists of a table on every page. The table covers the full page. The table itself is the same on every page. Only the data within the table changes from page to page. I have created all the table pages and data in Ms Word. I can insert them into Lyx as a screenshot image. When you want to benefit from LaTeX's/LyX's typesetting püower you should try to create the tavbles with LyX instead of MS Word, Excel etc. The body of the manual will be one or more text boxes overlaying the table on each page. Perhaps you need longtables. Have a lookt at chapter 2 of LyX's EmbeddedObejcts manual that you find in the Help menu to see what can be done with them (and tables in general). My research as a novice Lyx user indicates that adding a text box to an image can't be done. This is not correct, you need an image float. The image description is inserted as caption. For more info, see again the EmbeddedObjects manual or the LyX UserGuide. regards Uwe
Re: problem_with_hypcap_and_figure_environment
Am 15.02.2010 19:11, schrieb Kamran SHAFQAT: while this works fine but I am having problem with hycap now because of the redefinition. I can't use hypcap after these statements it gives error TeX capacity exceeded, sorry [input stack size=5000]. and when hypcap is used before the environment definition than it doesn't work. The figure links just show the figure caption not the figure as it suppose to do. I fear that hypcap simply cannot handle this case. As stated in the hypcap-manual, hypcap is very fragile. regards Uwe
Re: EPS files not displaying in PDF
I installed Lyx 1.6.5 and MiKTeX 2.8 and this has fixed the problem. One note: the Lyx/MiKTeX install didn't work unless I uninstalled Adobe Acrobat Reader, restarted, installed Lyx/MiKTeX and then re-installed Acrobat Reader. Thanks for the suggestion Uwe. Regards, Todd
stdsections changes not reflected
There is simply too much space between sections and subsections. I moved stdsections.inc to my home directory, put it in ./lyx/layouts but changes to TopSep, BottomSep and ParSep are not recognized after reconfigure. I use lyx 1.6.5 on a slackware 12.1 system. Any suggestions are appreciated. John --