Re: A shell for launching figure editor under Mac OS
Le 26 mai 07 à 18:07, Mael Hilléreau a écrit : I finally wrote a small Applescript (see attached file) that allows to convert Omnigraffle files to PDF, PNG... directly from the command line. In order to use it, go to LyX preferences, add an OmniGraffle file format (just type auto for the editor), and then add converters. By now, I successfully added converters from OmniGraffle to PNG, EPS and PDF. Here are the commands I used: OmniGraffle - PDF (ps2pdf) Converter: osascript replace/with/path/to/og-export.scpt `pwd`/$ $i `pwd`/$$o pdf OmniGraffle - EPS Converter: osascript replace/with/path/to/og-export.scpt `pwd`/$ $i `pwd`/$$o eps OmniGraffle - PNG Converter: osascript replace/with/path/to/og-export.scpt $$i $$o png To developers: the `pwd` command is used only with PDF and EPS because $$i and $$o are not substituted in the same way (absolute path for PNG and only file name for PDF and EPS). I suspect that this difference corresponds to vector and non vector graphics formats. Why such a distinction? Note that I've just put a new version of og-convert.scpt on the LyX wiki. This new version eliminates a bug occurring when the '.graffle' file extension wasn't displayed in the Finder. I put the script as code listing (see http://wiki.lyx.org/Mac/ Mac#toc6). It would be more convenient to give it as a file named og- export.scpt. Could anyone give me the upload password? Thanks in advance, Mael. -- Mael Hilléreau http://mael.hillereau.free.fr
Re: Table - cell vertical alignment
In a recent message [EMAIL PROTECTED], Paul A. Rubin [EMAIL PROTECTED] wrote. [...] You have to set middle alignment in the fixed-width column. [...] I sometimes find it useful to format tables using the spaces you get by pressing Alt-255. See the attached. Regards, N. -- Nick Hopton and Anne Hopton Caversham, Reading, England [EMAIL PROTECTED] #LyX 1.5.0beta3 created this file. For more info see http://www.lyx.org/ \lyxformat 271 \begin_document \begin_header \textclass article \language italian \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author Nick Hopton \author FMenoncin \end_header \begin_body \begin_layout Standard \begin_inset Tabular lyxtabular version=3 rows=2 columns=2 features column alignment=left valignment=top leftline=true width=2cm column alignment=center valignment=top leftline=true rightline=true width=2cm row topline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \begin_layout Standard \emph on Proposition \end_layout \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard \emph on True or false \end_layout \end_inset /cell /row row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \begin_layout Standard  \end_layout \begin_layout Standard When John snores Janet hallucinates \end_layout \begin_layout Standard  \end_layout \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard  \end_layout \begin_layout Standard  \end_layout \begin_layout Standard TRUE \end_layout \end_inset /cell /row /lyxtabular \end_inset \end_layout \end_body \end_document
No indentation with LyX-Code
Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul
Re: No indentation with LyX-Code
document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Write it as standard text, select textstyle type writer in the menu. That will do the trick.
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul
multiple languages and the order of document-options
Hi, I've a document with dutch as the main language and also a little bit of greek. I've chosen dutch as the main language in the DocumentsSettingsLanguage panel and mentioned greek as an option in the DocumentsSettindsDocument ClassOptions field. Apparently LyX exports this as: \documentclass[... ,dutch,... greek]{book} (in other words the extra options are placed after the main language option). However babel wants the first/main language as the last (language) option. Is there a way to get this right? Regards, Patrick De Visschere
Re: No indentation with LyX-Code
Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space Thanks, Gunnar. It works fine! Paul
Booktabs question: how to set the width of the last column and still use \bottomrule
Hi, I'm stuck again with a booktabs problem: When I set the width of the last column of a table in the LyX Table Settings dialogue, the booktabs command \\\bottomrule% produces an error. Whatever the value, the error message shows up. I've included an example file. I have no idea what to do about this and would be grateful for a solution. Neither the booktabs manual nor the LyX manuals seem to comment on this. Many thanks, -- Christian booktab.lyx Description: application/lyx
Save icon gray after updating an index
Hi all, This is a small thing, but I consider it a bug. If, after saving, I change ERT or an index entry, and nothing else, the save icon (the little floppy) remains grayed out. File-save is not grayed out. I believe this also happens when you change document-settings or maybe document-settings-preamble. Although this is minor and a lot of software suffers from similar stuff (you can just put in a space to enable the icon), it might be something to consider fixing. I'm using LyX 1.4.2. My apologies if it's already been fixed in 1.5.x SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: No indentation with LyX-Code
On Sunday 27 May 2007 13:54, Paul Smith wrote: On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul The other problem is that it's not very WYSIWYM. I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should force the left margin 1/2 inch to the left of where it would normally be. Like I said, I never tested it, so you'll for sure have to experiment with it, but something like this should do what you need. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Setting background color
I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx
Re: Booktabs question: how to set the width of the last column and still use \bottomrule
Christian Liesen schrieb: When I set the width of the last column of a table in the LyX Table Settings dialogue, the booktabs command \\\bottomrule% produces an error. Whatever the value, the error message shows up. I've included an example file. The problem is that the patch for bug 3736 is wrong. The last columm may not have % characters. Attached is a fixed version. I was sure I had my reason why I put the new line to a separate table row in the EmbeddedObjects manual. regarsd Uwe booktab.lyx Description: application/lyx
Re: No indentation with LyX-Code
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. /Paul # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich [EMAIL PROTECTED] # Transposed by Pascal André [EMAIL PROTECTED] # Heavily modifed and enhanced by several developers. # This file contains some special LyX environments that are used by # all environment classes. Some of these are a bit peculiar and might # be removed later. Format 2 Style LyX-Code MarginStatic LatexType Environment LatexName lyxcode NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode} {\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style LyX-Code* MarginStatic LatexType Environment LatexName lyxcode* NextNoIndent 1 TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode*} {\begin{list}{}{ \setlength{\rightmargin}{0pt} \setlength{\leftmargin}{0pt} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style Address MarginStatic LatexType Command LatexName lyxaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } EndPreamble End Style Right_Address MarginRight_Address_Box LatexType Command LatexName lyxrightaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Left Preamble \newcommand{\lyxrightaddress}[1]{ \par {\raggedleft \begin{tabular}{l}\ignorespaces #1 \end{tabular} \vspace{1.4em} \par} } EndPreamble End
Re: Save icon gray after updating an index
Steve Litt wrote: Hi all, This is a small thing, but I consider it a bug. If, after saving, I change ERT or an index entry, and nothing else, the save icon (the little floppy) remains grayed out. File-save is not grayed out. I believe this also happens when you change document-settings or maybe document-settings-preamble. Although this is minor and a lot of software suffers from similar stuff (you can just put in a space to enable the icon), it might be something to consider fixing. I'm using LyX 1.4.2. My apologies if it's already been fixed in 1.5.x Seems to have been fixed in 1.4.4. /Paul
Re: Setting background color
On Sunday 27 May 2007 16:46, Micha Feigin wrote: I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx This doesn't answer your question, but why would you use LyX to make a 1 page poster that needs no styles or other through and through consistancy? Why wouldn't you use Gimp? SteveT
Re: Setting background color
On Sun, 27 May 2007 17:55:56 -0400 Steve Litt [EMAIL PROTECTED] wrote: On Sunday 27 May 2007 16:46, Micha Feigin wrote: I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx This doesn't answer your question, but why would you use LyX to make a 1 page poster that needs no styles or other through and through consistancy? Why wouldn't you use Gimp? First of all, gimp isn't the right solution, it's geared towards bitmaped images. The right tools (other than latex) either ooimpress (although it is more of a presentation tool) or more appropriate, scribus. The problem is that the poster contains mostly math and there is nothing outside of latex that handles math properly. Plus, the original paper was written in latex (and imported into lyx) so this way I can simply copy the text/equations. SteveT
Best document class for a math book?
Hi all, My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Best document class for a math book?
Steve Litt schrieb: My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? book (AMS) regards Uwe
Re: Best document class for a math book?
Steve Litt wrote: Hi all, My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? Try amsbook. -- David L. Johnson
Re: A shell for launching figure editor under Mac OS
Le 26 mai 07 à 18:07, Mael Hilléreau a écrit : I finally wrote a small Applescript (see attached file) that allows to convert Omnigraffle files to PDF, PNG... directly from the command line. In order to use it, go to LyX preferences, add an OmniGraffle file format (just type auto for the editor), and then add converters. By now, I successfully added converters from OmniGraffle to PNG, EPS and PDF. Here are the commands I used: OmniGraffle - PDF (ps2pdf) Converter: osascript replace/with/path/to/og-export.scpt `pwd`/$ $i `pwd`/$$o pdf OmniGraffle - EPS Converter: osascript replace/with/path/to/og-export.scpt `pwd`/$ $i `pwd`/$$o eps OmniGraffle - PNG Converter: osascript replace/with/path/to/og-export.scpt $$i $$o png To developers: the `pwd` command is used only with PDF and EPS because $$i and $$o are not substituted in the same way (absolute path for PNG and only file name for PDF and EPS). I suspect that this difference corresponds to vector and non vector graphics formats. Why such a distinction? Note that I've just put a new version of og-convert.scpt on the LyX wiki. This new version eliminates a bug occurring when the '.graffle' file extension wasn't displayed in the Finder. I put the script as code listing (see http://wiki.lyx.org/Mac/ Mac#toc6). It would be more convenient to give it as a file named og- export.scpt. Could anyone give me the upload password? Thanks in advance, Mael. -- Mael Hilléreau http://mael.hillereau.free.fr
Re: Table - cell vertical alignment
In a recent message [EMAIL PROTECTED], Paul A. Rubin [EMAIL PROTECTED] wrote. [...] You have to set middle alignment in the fixed-width column. [...] I sometimes find it useful to format tables using the spaces you get by pressing Alt-255. See the attached. Regards, N. -- Nick Hopton and Anne Hopton Caversham, Reading, England [EMAIL PROTECTED] #LyX 1.5.0beta3 created this file. For more info see http://www.lyx.org/ \lyxformat 271 \begin_document \begin_header \textclass article \language italian \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author Nick Hopton \author FMenoncin \end_header \begin_body \begin_layout Standard \begin_inset Tabular lyxtabular version=3 rows=2 columns=2 features column alignment=left valignment=top leftline=true width=2cm column alignment=center valignment=top leftline=true rightline=true width=2cm row topline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \begin_layout Standard \emph on Proposition \end_layout \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard \emph on True or false \end_layout \end_inset /cell /row row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \begin_layout Standard  \end_layout \begin_layout Standard When John snores Janet hallucinates \end_layout \begin_layout Standard  \end_layout \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \begin_layout Standard  \end_layout \begin_layout Standard  \end_layout \begin_layout Standard TRUE \end_layout \end_inset /cell /row /lyxtabular \end_inset \end_layout \end_body \end_document
No indentation with LyX-Code
Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul
Re: No indentation with LyX-Code
document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Write it as standard text, select textstyle type writer in the menu. That will do the trick.
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul
multiple languages and the order of document-options
Hi, I've a document with dutch as the main language and also a little bit of greek. I've chosen dutch as the main language in the DocumentsSettingsLanguage panel and mentioned greek as an option in the DocumentsSettindsDocument ClassOptions field. Apparently LyX exports this as: \documentclass[... ,dutch,... greek]{book} (in other words the extra options are placed after the main language option). However babel wants the first/main language as the last (language) option. Is there a way to get this right? Regards, Patrick De Visschere
Re: No indentation with LyX-Code
Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Can be solved with hard spaces CTRL + space Thanks, Gunnar. It works fine! Paul
Booktabs question: how to set the width of the last column and still use \bottomrule
Hi, I'm stuck again with a booktabs problem: When I set the width of the last column of a table in the LyX Table Settings dialogue, the booktabs command \\\bottomrule% produces an error. Whatever the value, the error message shows up. I've included an example file. I have no idea what to do about this and would be grateful for a solution. Neither the booktabs manual nor the LyX manuals seem to comment on this. Many thanks, -- Christian booktab.lyx Description: application/lyx
Save icon gray after updating an index
Hi all, This is a small thing, but I consider it a bug. If, after saving, I change ERT or an index entry, and nothing else, the save icon (the little floppy) remains grayed out. File-save is not grayed out. I believe this also happens when you change document-settings or maybe document-settings-preamble. Although this is minor and a lot of software suffers from similar stuff (you can just put in a space to enable the icon), it might be something to consider fixing. I'm using LyX 1.4.2. My apologies if it's already been fixed in 1.5.x SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: No indentation with LyX-Code
On Sunday 27 May 2007 13:54, Paul Smith wrote: On 5/27/07, Gunnar Lindholm [EMAIL PROTECTED] wrote: document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Write it as standard text, select textstyle type writer in the menu. That will do the trick. Thanks, Gunnar, but with type writer text, one cannot insert spaces in the beginning of lines. Paul The other problem is that it's not very WYSIWYM. I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should force the left margin 1/2 inch to the left of where it would normally be. Like I said, I never tested it, so you'll for sure have to experiment with it, but something like this should do what you need. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Setting background color
I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx
Re: Booktabs question: how to set the width of the last column and still use \bottomrule
Christian Liesen schrieb: When I set the width of the last column of a table in the LyX Table Settings dialogue, the booktabs command \\\bottomrule% produces an error. Whatever the value, the error message shows up. I've included an example file. The problem is that the patch for bug 3736 is wrong. The last columm may not have % characters. Attached is a fixed version. I was sure I had my reason why I put the new line to a separate table row in the EmbeddedObjects manual. regarsd Uwe booktab.lyx Description: application/lyx
Re: No indentation with LyX-Code
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. /Paul # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich [EMAIL PROTECTED] # Transposed by Pascal André [EMAIL PROTECTED] # Heavily modifed and enhanced by several developers. # This file contains some special LyX environments that are used by # all environment classes. Some of these are a bit peculiar and might # be removed later. Format 2 Style LyX-Code MarginStatic LatexType Environment LatexName lyxcode NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode} {\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style LyX-Code* MarginStatic LatexType Environment LatexName lyxcode* NextNoIndent 1 TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode*} {\begin{list}{}{ \setlength{\rightmargin}{0pt} \setlength{\leftmargin}{0pt} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style Address MarginStatic LatexType Command LatexName lyxaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } EndPreamble End Style Right_Address MarginRight_Address_Box LatexType Command LatexName lyxrightaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Left Preamble \newcommand{\lyxrightaddress}[1]{ \par {\raggedleft \begin{tabular}{l}\ignorespaces #1 \end{tabular} \vspace{1.4em} \par} } EndPreamble End
Re: Save icon gray after updating an index
Steve Litt wrote: Hi all, This is a small thing, but I consider it a bug. If, after saving, I change ERT or an index entry, and nothing else, the save icon (the little floppy) remains grayed out. File-save is not grayed out. I believe this also happens when you change document-settings or maybe document-settings-preamble. Although this is minor and a lot of software suffers from similar stuff (you can just put in a space to enable the icon), it might be something to consider fixing. I'm using LyX 1.4.2. My apologies if it's already been fixed in 1.5.x Seems to have been fixed in 1.4.4. /Paul
Re: Setting background color
On Sunday 27 May 2007 16:46, Micha Feigin wrote: I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx This doesn't answer your question, but why would you use LyX to make a 1 page poster that needs no styles or other through and through consistancy? Why wouldn't you use Gimp? SteveT
Re: Setting background color
On Sun, 27 May 2007 17:55:56 -0400 Steve Litt [EMAIL PROTECTED] wrote: On Sunday 27 May 2007 16:46, Micha Feigin wrote: I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx This doesn't answer your question, but why would you use LyX to make a 1 page poster that needs no styles or other through and through consistancy? Why wouldn't you use Gimp? First of all, gimp isn't the right solution, it's geared towards bitmaped images. The right tools (other than latex) either ooimpress (although it is more of a presentation tool) or more appropriate, scribus. The problem is that the poster contains mostly math and there is nothing outside of latex that handles math properly. Plus, the original paper was written in latex (and imported into lyx) so this way I can simply copy the text/equations. SteveT
Best document class for a math book?
Hi all, My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Best document class for a math book?
Steve Litt schrieb: My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? book (AMS) regards Uwe
Re: Best document class for a math book?
Steve Litt wrote: Hi all, My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? Try amsbook. -- David L. Johnson
Re: A shell for launching figure editor under Mac OS
Le 26 mai 07 à 18:07, Mael Hilléreau a écrit : I finally wrote a small Applescript (see attached file) that allows to convert Omnigraffle files to PDF, PNG... directly from the command line. In order to use it, go to LyX preferences, add an OmniGraffle file format (just type "auto" for the editor), and then add converters. By now, I successfully added converters from OmniGraffle to PNG, EPS and PDF. Here are the commands I used: OmniGraffle -> PDF (ps2pdf) Converter: osascript replace/with/path/to/og-export.scpt `pwd`/$ $i `pwd`/$$o pdf OmniGraffle -> EPS Converter: osascript replace/with/path/to/og-export.scpt `pwd`/$ $i `pwd`/$$o eps OmniGraffle -> PNG Converter: osascript replace/with/path/to/og-export.scpt $$i $$o png To developers: the `pwd` command is used only with PDF and EPS because $$i and $$o are not substituted in the same way (absolute path for PNG and only file name for PDF and EPS). I suspect that this difference corresponds to vector and non vector graphics formats. Why such a distinction? Note that I've just put a new version of "og-convert.scpt" on the LyX wiki. This new version eliminates a bug occurring when the '.graffle' file extension wasn't displayed in the Finder. I put the script as code listing (see http://wiki.lyx.org/Mac/ Mac#toc6). It would be more convenient to give it as a file named "og- export.scpt". Could anyone give me the upload password? Thanks in advance, Mael. -- Mael Hilléreau http://mael.hillereau.free.fr
Re: Table - cell vertical alignment
In a recent message <[EMAIL PROTECTED]>, Paul A. Rubin <[EMAIL PROTECTED]> wrote. [...] You have to set middle alignment in the fixed-width column. [...] I sometimes find it useful to format tables using the spaces you get by pressing Alt-255. See the attached. Regards, N. -- Nick Hopton and Anne Hopton Caversham, Reading, England <[EMAIL PROTECTED]> #LyX 1.5.0beta3 created this file. For more info see http://www.lyx.org/ \lyxformat 271 \begin_document \begin_header \textclass article \language italian \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author "Nick Hopton" \author "FMenoncin" \end_header \begin_body \begin_layout Standard \begin_inset Tabular \begin_inset Text \begin_layout Standard \emph on Proposition \end_layout \end_inset \begin_inset Text \begin_layout Standard \emph on True or false \end_layout \end_inset \begin_inset Text \begin_layout Standard  \end_layout \begin_layout Standard When John snores Janet hallucinates \end_layout \begin_layout Standard  \end_layout \end_inset \begin_inset Text \begin_layout Standard  \end_layout \begin_layout Standard  \end_layout \begin_layout Standard TRUE \end_layout \end_inset \end_inset \end_layout \end_body \end_document
No indentation with LyX-Code
Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul
Re: No indentation with LyX-Code
> document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am using LyX 1.4.4.) > > Thanks in advance, > > Paul Write it as standard text, select textstyle "type writer" in the menu. That will do the trick.
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am using LyX 1.4.4.) > Write it as standard text, select textstyle "type writer" in the menu. That will do the trick. Thanks, Gunnar, but with "type writer" text, one cannot insert spaces in the beginning of lines. Paul
multiple languages and the order of document-options
Hi, I've a document with "dutch" as the main language and also a little bit of "greek". I've chosen "dutch" as the main language in the Documents>Settings>Language panel and mentioned "greek" as an option in the Documents>Settinds>Document Class>Options field. Apparently LyX exports this as: \documentclass[... ,dutch,... greek]{book} (in other words the extra options are placed after the main language option). However babel wants the first/main language as the last (language) option. Is there a way to get this right? Regards, Patrick De Visschere
Re: No indentation with LyX-Code
> Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. Can be solved with "hard spaces" CTRL + space
Re: No indentation with LyX-Code
On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. Can be solved with "hard spaces" CTRL + space Thanks, Gunnar. It works fine! Paul
Booktabs question: how to set the width of the last column and still use \bottomrule
Hi, I'm stuck again with a booktabs problem: When I set the width of the last column of a table in the LyX Table Settings dialogue, the booktabs command "\\\bottomrule%" produces an error. Whatever the value, the error message shows up. I've included an example file. I have no idea what to do about this and would be grateful for a solution. Neither the booktabs manual nor the LyX manuals seem to comment on this. Many thanks, -- Christian booktab.lyx Description: application/lyx
Save icon gray after updating an index
Hi all, This is a small thing, but I consider it a bug. If, after saving, I change ERT or an index entry, and nothing else, the save icon (the little floppy) remains grayed out. File->save is not grayed out. I believe this also happens when you change document->settings or maybe document->settings->preamble. Although this is minor and a lot of software suffers from similar stuff (you can just put in a space to enable the icon), it might be something to consider fixing. I'm using LyX 1.4.2. My apologies if it's already been fixed in 1.5.x SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: No indentation with LyX-Code
On Sunday 27 May 2007 13:54, Paul Smith wrote: > On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > > > document. Unfortunately, I cannot get the code of the procedure NOT > > > indented, even after having set the paragraph not indented. Any ideas? > > > (I am using LyX 1.4.4.) > > > > Write it as standard text, select textstyle "type writer" in the menu. > > That will do the trick. > > Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. > > Paul The other problem is that it's not very "WYSIWYM". I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should force the left margin 1/2 inch to the left of where it would normally be. Like I said, I never tested it, so you'll for sure have to experiment with it, but something like this should do what you need. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Setting background color
I'm trying to prepare a poster with lyx and I was wondering if its possible to setup the background color for the poster (I think I used to do it somehow with color and texpower using the \backgroundstyle command but it doesn't work for me at the moment for some reason) Thankx
Re: Booktabs question: how to set the width of the last column and still use \bottomrule
Christian Liesen schrieb: When I set the width of the last column of a table in the LyX Table Settings dialogue, the booktabs command "\\\bottomrule%" produces an error. Whatever the value, the error message shows up. I've included an example file. The problem is that the patch for bug 3736 is wrong. The last columm may not have "%" characters. Attached is a fixed version. I was sure I had my reason why I put the new line to a separate table row in the EmbeddedObjects manual. regarsd Uwe booktab.lyx Description: application/lyx
Re: No indentation with LyX-Code
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try parking the attached hacked version of lyxmacros.inc in the layouts folder under your home directory (not the one under the LyX root, don't want to lose the original Just In Case). It defines an additional environment (LyX-Code*) that doesn't indent on either side. The original LyX-Code environment remains intact. /Paul # Standard textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich <[EMAIL PROTECTED]> # Transposed by Pascal André <[EMAIL PROTECTED]> # Heavily modifed and enhanced by several developers. # This file contains some special LyX environments that are used by # all environment classes. Some of these are a bit peculiar and might # be removed later. Format 2 Style LyX-Code MarginStatic LatexType Environment LatexName lyxcode NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode} {\begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style LyX-Code* MarginStatic LatexType Environment LatexName lyxcode* NextNoIndent 1 TopSep0.5 BottomSep 0.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label FreeSpacing 1 Preamble \newenvironment{lyxcode*} {\begin{list}{}{ \setlength{\rightmargin}{0pt} \setlength{\leftmargin}{0pt} \setlength{\listparindent}{0pt}% needed for AMS classes \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list}} EndPreamble Font Family Typewriter EndFont End Style Address MarginStatic LatexType Command LatexName lyxaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } EndPreamble End Style Right_Address MarginRight_Address_Box LatexType Command LatexName lyxrightaddress ParSkip 0.4 BottomSep 1.5 ParSep1.5 Align Left AlignPossible Left Preamble \newcommand{\lyxrightaddress}[1]{ \par {\raggedleft \begin{tabular}{l}\ignorespaces #1 \end{tabular} \vspace{1.4em} \par} } EndPreamble End
Re: Save icon gray after updating an index
Steve Litt wrote: Hi all, This is a small thing, but I consider it a bug. If, after saving, I change ERT or an index entry, and nothing else, the save icon (the little floppy) remains grayed out. File->save is not grayed out. I believe this also happens when you change document->settings or maybe document->settings->preamble. Although this is minor and a lot of software suffers from similar stuff (you can just put in a space to enable the icon), it might be something to consider fixing. I'm using LyX 1.4.2. My apologies if it's already been fixed in 1.5.x Seems to have been fixed in 1.4.4. /Paul
Re: Setting background color
On Sunday 27 May 2007 16:46, Micha Feigin wrote: > I'm trying to prepare a poster with lyx and I was wondering if its possible > to setup the background color for the poster (I think I used to do it > somehow with color and texpower using the \backgroundstyle command but it > doesn't work for me at the moment for some reason) > > Thankx This doesn't answer your question, but why would you use LyX to make a 1 page poster that needs no styles or other through and through consistancy? Why wouldn't you use Gimp? SteveT
Re: Setting background color
On Sun, 27 May 2007 17:55:56 -0400 Steve Litt <[EMAIL PROTECTED]> wrote: > On Sunday 27 May 2007 16:46, Micha Feigin wrote: > > I'm trying to prepare a poster with lyx and I was wondering if its possible > > to setup the background color for the poster (I think I used to do it > > somehow with color and texpower using the \backgroundstyle command but it > > doesn't work for me at the moment for some reason) > > > > Thankx > > This doesn't answer your question, but why would you use LyX to make a 1 page > poster that needs no styles or other through and through consistancy? Why > wouldn't you use Gimp? > First of all, gimp isn't the right solution, it's geared towards bitmaped images. The "right" tools (other than latex) either ooimpress (although it is more of a presentation tool) or more appropriate, scribus. The problem is that the poster contains mostly math and there is nothing outside of latex that handles math properly. Plus, the original paper was written in latex (and imported into lyx) so this way I can simply copy the text/equations. > SteveT >
Best document class for a math book?
Hi all, My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Best document class for a math book?
Steve Litt schrieb: My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? book (AMS) regards Uwe
Re: Best document class for a math book?
Steve Litt wrote: Hi all, My next book will be a math book. I assume there are better document classes to use for this than the book document class. What are some document classes that are good for math books? Try amsbook. -- David L. Johnson