Re: Forcing the floats position
On 2010-06-27, Petr A. Ossipov wrote: Hey I've got a problem with lyx placing my floats. I now have a subsection, and soon after it a float with image (and also a float with listing). However, after rendering, it places the image before this section, which is undesired. Is there a way to tell lyx that a float must be not before this subsection's title? flafter is a LaTeX package that ensures that all floats never appear before the place where they are defined in the LaTeX (or LyX) source. In the LaTeX preamble, add \usepackage{flafter} Günter
Re: Forcing the floats position
Thanks! Guenter Milde wrote: On 2010-06-27, Petr A. Ossipov wrote: Hey I've got a problem with lyx placing my floats. I now have a subsection, and soon after it a float with image (and also a float with listing). However, after rendering, it places the image before this section, which is undesired. Is there a way to tell lyx that a float must be not before this subsection's title? flafter is a LaTeX package that ensures that all floats never appear before the place where they are defined in the LaTeX (or LyX) source. In the LaTeX preamble, add \usepackage{flafter} Günter
Re: Layout file command to remove a default preamble line
On 2010-06-27, Liviu Andronic wrote: On Sun, Jun 27, 2010 at 3:11 AM, KYokota yokot...@gmail.com wrote: Are there any ways to remove this preamble? I appreciate very much if anyone could give me any instructions or hints. In 2.0 you can specify custom encoding in Document Fonts LaTeX font encoding. Not sure this helps in your case, though. In 1.6 (and older), you can globally set the font encoding (ToolsSettings ...). Try with OT1 instead of T1. Günter
Re: Choice of color package
On 24. juni 2010 18:56, Artimess wrote: Hi all, I am beginning a large document that will have extensive use of colors. Between color and xcolor which one is better positioned for such a document. I do appreciate your feedback and many thanks in advance, You need to tell more about what you want to do. LyX has some color support already, maybe you won't need to do anything. * Colored text is already supported. Mark text, then use Edit-Text Style-Customized, Then select the color you want in the dialog box. * Colored images is already supported. Insert-Graphics * Colored tables can be done, see Help-Embedded Objects. Helge Hafting
Re: Layout file command to remove a default preamble line
Liviu and Guenter, Thank you very much for the information. It helps a lot. In 2.0 you can specify custom encoding in Document Fonts LaTeX font encoding. Not sure this helps in your case, though. I see. 2.0 users can manually control the fontenc line after version 2.0 from inside LyX, so I only need to give them an instruction to do so. In 1.6 (and older), you can globally set the font encoding (ToolsSettings ...). Try with OT1 instead of T1. By changing from T1 to OT1, the font problem I faced disappeared so users can at least work on LyX. However, it seems the publisher requires the fontenc line to be completely removed if the users don't use the proprietary mathtime package (the publisher doesn't use LaTeX to typeset). So, I'm going to ask pre-2.0 users to edit exported LaTeX file with external editors before they submit the manuscripts. Thank you again for your help! Koji
Re: Layout file command to remove a default preamble line
2010/6/28 KYokota: Liviu and Guenter, Thank you very much for the information. It helps a lot. In 2.0 you can specify custom encoding in Document Fonts LaTeX font encoding. Not sure this helps in your case, though. I see. 2.0 users can manually control the fontenc line after version 2.0 from inside LyX, so I only need to give them an instruction to do so. Nonetheless, we should suport provides fontenc in the layout file. Actually, this is trivial to implement. Please file an enhancement request. In 1.6 (and older), you can globally set the font encoding (ToolsSettings ...). Try with OT1 instead of T1. By changing from T1 to OT1, the font problem I faced disappeared so users can at least work on LyX. However, it seems the publisher requires the fontenc line to be completely removed if the users don't use the proprietary mathtime package (the publisher doesn't use LaTeX to typeset). The trick with 1.6 is to enter the string default instead of T1 or OT1 into the preferences' fontenc widget. Jürgen Thank you again for your help! Koji
Re: hyperlink display
To all it may concern not reading Trac - I've just added following comment: I would like to enhance this idea with an option to display an small icon before the text, like WikiMedia does on its pages. This method my apply to all other small insets, like footnote, label, etc. Icons may contain tooltips explaining what kind of inset is that, even short explanation may be useful. Certainly I understand that displaying such images in LyX text control may be harder to implement that current mechanism basing on descriptive texts. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl 2010/6/25 Jose Quesada ques...@gmail.com: I've added an enhancement request: http://www.lyx.org/trac/ticket/6788 Best, -Jose Jose Quesada, PhD. Max Planck Institute, Center for Adaptive Behavior and Cognition, Berlin http://www.josequesada.name/ http://twitter.com/Quesada On Fri, Jun 25, 2010 at 10:05 AM, Guenter Milde mi...@users.berlios.de wrote: On 2010-06-24, Vincent van Ravesteijn wrote: Hi, The current hyperlink display (at least in the doc classes I've tried) is as follows: [hyperlink: text limited in width] Would it be possible to have a more conventional display, eg not having the word hyperlink preceeding the text, not having the limited width, and say having it format as underscored blue text? I mean the lyx preview, not the resulting pdf. Yes, it's possible, but someone has to implement it and make it such that everyone likes it. I'd like to use some Unicodechar instead of a full word for references, labels and hyperlinks. As there is no one size fits all solution, please make tags configurable. BTW: there is a workaround for users of LyX in a non-english language: configure the translation of these tag names. Günter
Re: hyperlink display
On 2010-06-28, Manveru wrote: To all it may concern not reading Trac - I've just added following comment: I would like to enhance this idea with an option to display an small icon before the text, like WikiMedia does on its pages. This method my apply to all other small insets, like footnote, label, etc. Icons may contain tooltips explaining what kind of inset is that, even short explanation may be useful. Certainly I understand that displaying such images in LyX text control may be harder to implement that current mechanism basing on descriptive texts. With good Screen font, the simple option is to choose from the rich set of Unicode symbols. Günter
No Mouse scrolling in LyX 2.0 - Mac?
I just discovered that mouse scrolling does not work in 2.0 alpha 4 on Mac. Can anyone else confirm? James
Re: spacing between sections changes in my dissertation
Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck rgh...@comcast.net wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in \makeatletter at the beginning and \makeatother at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the level in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls rubber lengths and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck rgh...@comcast.net wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh
Re: spacing between sections changes in my dissertation
Now LyX is making my spacing inconsistent in places (making it single instead of double) to keep my section spacing consistent. Is there a way I can fix that too? thanks, Mike On Mon, Jun 28, 2010 at 8:26 PM, Mike Martell martell.m...@american.eduwrote: Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck rgh...@comcast.net wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in \makeatletter at the beginning and \makeatother at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the level in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls rubber lengths and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck rgh...@comcast.net wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh
Re: spacing between sections changes in my dissertation
On 06/28/2010 10:45 PM, Mike Martell wrote: Now LyX is making my spacing inconsistent in places (making it single instead of double) to keep my section spacing consistent. Is there a way I can fix that too? Probably, though I don't know how. That said, LaTeX is neither designed nor intended for this kind of fine-grained control over spacing. Probably, the effects you are seeing have to do with float placement. Are you trying to force floats to appear in specific places? If so, then this can cause all kinds of problems. rh thanks, Mike On Mon, Jun 28, 2010 at 8:26 PM, Mike Martell martell.m...@american.edu mailto:martell.m...@american.edu wrote: Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck rgh...@comcast.net mailto:rgh...@comcast.net wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in \makeatletter at the beginning and \makeatother at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the level in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls rubber lengths and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck rgh...@comcast.net mailto:rgh...@comcast.net wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh
Re: Forcing the floats position
On 2010-06-27, Petr A. Ossipov wrote: Hey I've got a problem with lyx placing my floats. I now have a subsection, and soon after it a float with image (and also a float with listing). However, after rendering, it places the image before this section, which is undesired. Is there a way to tell lyx that a float must be not before this subsection's title? flafter is a LaTeX package that ensures that all floats never appear before the place where they are defined in the LaTeX (or LyX) source. In the LaTeX preamble, add \usepackage{flafter} Günter
Re: Forcing the floats position
Thanks! Guenter Milde wrote: On 2010-06-27, Petr A. Ossipov wrote: Hey I've got a problem with lyx placing my floats. I now have a subsection, and soon after it a float with image (and also a float with listing). However, after rendering, it places the image before this section, which is undesired. Is there a way to tell lyx that a float must be not before this subsection's title? flafter is a LaTeX package that ensures that all floats never appear before the place where they are defined in the LaTeX (or LyX) source. In the LaTeX preamble, add \usepackage{flafter} Günter
Re: Layout file command to remove a default preamble line
On 2010-06-27, Liviu Andronic wrote: On Sun, Jun 27, 2010 at 3:11 AM, KYokota yokot...@gmail.com wrote: Are there any ways to remove this preamble? I appreciate very much if anyone could give me any instructions or hints. In 2.0 you can specify custom encoding in Document Fonts LaTeX font encoding. Not sure this helps in your case, though. In 1.6 (and older), you can globally set the font encoding (ToolsSettings ...). Try with OT1 instead of T1. Günter
Re: Choice of color package
On 24. juni 2010 18:56, Artimess wrote: Hi all, I am beginning a large document that will have extensive use of colors. Between color and xcolor which one is better positioned for such a document. I do appreciate your feedback and many thanks in advance, You need to tell more about what you want to do. LyX has some color support already, maybe you won't need to do anything. * Colored text is already supported. Mark text, then use Edit-Text Style-Customized, Then select the color you want in the dialog box. * Colored images is already supported. Insert-Graphics * Colored tables can be done, see Help-Embedded Objects. Helge Hafting
Re: Layout file command to remove a default preamble line
Liviu and Guenter, Thank you very much for the information. It helps a lot. In 2.0 you can specify custom encoding in Document Fonts LaTeX font encoding. Not sure this helps in your case, though. I see. 2.0 users can manually control the fontenc line after version 2.0 from inside LyX, so I only need to give them an instruction to do so. In 1.6 (and older), you can globally set the font encoding (ToolsSettings ...). Try with OT1 instead of T1. By changing from T1 to OT1, the font problem I faced disappeared so users can at least work on LyX. However, it seems the publisher requires the fontenc line to be completely removed if the users don't use the proprietary mathtime package (the publisher doesn't use LaTeX to typeset). So, I'm going to ask pre-2.0 users to edit exported LaTeX file with external editors before they submit the manuscripts. Thank you again for your help! Koji
Re: Layout file command to remove a default preamble line
2010/6/28 KYokota: Liviu and Guenter, Thank you very much for the information. It helps a lot. In 2.0 you can specify custom encoding in Document Fonts LaTeX font encoding. Not sure this helps in your case, though. I see. 2.0 users can manually control the fontenc line after version 2.0 from inside LyX, so I only need to give them an instruction to do so. Nonetheless, we should suport provides fontenc in the layout file. Actually, this is trivial to implement. Please file an enhancement request. In 1.6 (and older), you can globally set the font encoding (ToolsSettings ...). Try with OT1 instead of T1. By changing from T1 to OT1, the font problem I faced disappeared so users can at least work on LyX. However, it seems the publisher requires the fontenc line to be completely removed if the users don't use the proprietary mathtime package (the publisher doesn't use LaTeX to typeset). The trick with 1.6 is to enter the string default instead of T1 or OT1 into the preferences' fontenc widget. Jürgen Thank you again for your help! Koji
Re: hyperlink display
To all it may concern not reading Trac - I've just added following comment: I would like to enhance this idea with an option to display an small icon before the text, like WikiMedia does on its pages. This method my apply to all other small insets, like footnote, label, etc. Icons may contain tooltips explaining what kind of inset is that, even short explanation may be useful. Certainly I understand that displaying such images in LyX text control may be harder to implement that current mechanism basing on descriptive texts. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl 2010/6/25 Jose Quesada ques...@gmail.com: I've added an enhancement request: http://www.lyx.org/trac/ticket/6788 Best, -Jose Jose Quesada, PhD. Max Planck Institute, Center for Adaptive Behavior and Cognition, Berlin http://www.josequesada.name/ http://twitter.com/Quesada On Fri, Jun 25, 2010 at 10:05 AM, Guenter Milde mi...@users.berlios.de wrote: On 2010-06-24, Vincent van Ravesteijn wrote: Hi, The current hyperlink display (at least in the doc classes I've tried) is as follows: [hyperlink: text limited in width] Would it be possible to have a more conventional display, eg not having the word hyperlink preceeding the text, not having the limited width, and say having it format as underscored blue text? I mean the lyx preview, not the resulting pdf. Yes, it's possible, but someone has to implement it and make it such that everyone likes it. I'd like to use some Unicodechar instead of a full word for references, labels and hyperlinks. As there is no one size fits all solution, please make tags configurable. BTW: there is a workaround for users of LyX in a non-english language: configure the translation of these tag names. Günter
Re: hyperlink display
On 2010-06-28, Manveru wrote: To all it may concern not reading Trac - I've just added following comment: I would like to enhance this idea with an option to display an small icon before the text, like WikiMedia does on its pages. This method my apply to all other small insets, like footnote, label, etc. Icons may contain tooltips explaining what kind of inset is that, even short explanation may be useful. Certainly I understand that displaying such images in LyX text control may be harder to implement that current mechanism basing on descriptive texts. With good Screen font, the simple option is to choose from the rich set of Unicode symbols. Günter
No Mouse scrolling in LyX 2.0 - Mac?
I just discovered that mouse scrolling does not work in 2.0 alpha 4 on Mac. Can anyone else confirm? James
Re: spacing between sections changes in my dissertation
Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck rgh...@comcast.net wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in \makeatletter at the beginning and \makeatother at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the level in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls rubber lengths and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck rgh...@comcast.net wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh
Re: spacing between sections changes in my dissertation
Now LyX is making my spacing inconsistent in places (making it single instead of double) to keep my section spacing consistent. Is there a way I can fix that too? thanks, Mike On Mon, Jun 28, 2010 at 8:26 PM, Mike Martell martell.m...@american.eduwrote: Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck rgh...@comcast.net wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in \makeatletter at the beginning and \makeatother at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the level in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls rubber lengths and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck rgh...@comcast.net wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh
Re: spacing between sections changes in my dissertation
On 06/28/2010 10:45 PM, Mike Martell wrote: Now LyX is making my spacing inconsistent in places (making it single instead of double) to keep my section spacing consistent. Is there a way I can fix that too? Probably, though I don't know how. That said, LaTeX is neither designed nor intended for this kind of fine-grained control over spacing. Probably, the effects you are seeing have to do with float placement. Are you trying to force floats to appear in specific places? If so, then this can cause all kinds of problems. rh thanks, Mike On Mon, Jun 28, 2010 at 8:26 PM, Mike Martell martell.m...@american.edu mailto:martell.m...@american.edu wrote: Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck rgh...@comcast.net mailto:rgh...@comcast.net wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in \makeatletter at the beginning and \makeatother at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the level in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls rubber lengths and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck rgh...@comcast.net mailto:rgh...@comcast.net wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh
Re: Forcing the floats position
On 2010-06-27, Petr A. Ossipov wrote: > Hey > I've got a problem with lyx placing my floats. I now have a subsection, > and soon after it a float with image (and also a float with listing). > However, after rendering, it places the image before this section, which > is undesired. Is there a way to tell lyx that a float must be not before > this subsection's title? flafter is a LaTeX package that ensures that all floats never appear before the place where they are defined in the LaTeX (or LyX) source. In the LaTeX preamble, add \usepackage{flafter} Günter
Re: Forcing the floats position
Thanks! Guenter Milde wrote: On 2010-06-27, Petr A. Ossipov wrote: Hey I've got a problem with lyx placing my floats. I now have a subsection, and soon after it a float with image (and also a float with listing). However, after rendering, it places the image before this section, which is undesired. Is there a way to tell lyx that a float must be not before this subsection's title? flafter is a LaTeX package that ensures that all floats never appear before the place where they are defined in the LaTeX (or LyX) source. In the LaTeX preamble, add \usepackage{flafter} Günter
Re: Layout file command to remove a default preamble line
On 2010-06-27, Liviu Andronic wrote: > On Sun, Jun 27, 2010 at 3:11 AM, KYokotawrote: >> Are there any ways to remove this preamble? I appreciate very much if >> anyone could give me any instructions or hints. > In 2.0 you can specify custom encoding in Document > Fonts > LaTeX > font encoding. Not sure this helps in your case, though. In 1.6 (and older), you can globally set the font encoding (Tools>Settings ...). Try with OT1 instead of T1. Günter
Re: Choice of color package
On 24. juni 2010 18:56, Artimess wrote: Hi all, I am beginning a large document that will have extensive use of colors. Between color and xcolor which one is better positioned for such a document. I do appreciate your feedback and many thanks in advance, You need to tell more about what you want to do. LyX has some color support already, maybe you won't need to do anything. * Colored text is already supported. Mark text, then use Edit->Text Style->Customized, Then select the color you want in the dialog box. * Colored images is already supported. Insert->Graphics * Colored tables can be done, see Help->Embedded Objects. Helge Hafting
Re: Layout file command to remove a default preamble line
Liviu and Guenter, Thank you very much for the information. It helps a lot. >> In 2.0 you can specify custom encoding in Document > Fonts > LaTeX >> font encoding. Not sure this helps in your case, though. I see. 2.0 users can manually control the fontenc line after version 2.0 from inside LyX, so I only need to give them an instruction to do so. > In 1.6 (and older), you can globally set the font encoding > (Tools>Settings ...). Try with OT1 instead of T1. By changing from T1 to OT1, the font problem I faced disappeared so users can at least work on LyX. However, it seems the publisher requires the fontenc line to be completely removed if the users don't use the proprietary mathtime package (the publisher doesn't use LaTeX to typeset). So, I'm going to ask pre-2.0 users to edit exported LaTeX file with external editors before they submit the manuscripts. Thank you again for your help! Koji
Re: Layout file command to remove a default preamble line
2010/6/28 KYokota: > Liviu and Guenter, > > Thank you very much for the information. It helps a lot. > >>> In 2.0 you can specify custom encoding in Document > Fonts > LaTeX >>> font encoding. Not sure this helps in your case, though. > > I see. 2.0 users can manually control the fontenc line after version > 2.0 from inside LyX, so I only need to give them an instruction to do > so. Nonetheless, we should suport "provides fontenc" in the layout file. Actually, this is trivial to implement. Please file an enhancement request. >> In 1.6 (and older), you can globally set the font encoding >> (Tools>Settings ...). Try with OT1 instead of T1. > > By changing from T1 to OT1, the font problem I faced disappeared so > users can at least work on LyX. However, it seems the publisher > requires the fontenc line to be completely removed if the users don't > use the proprietary mathtime package (the publisher doesn't use LaTeX > to typeset). The trick with 1.6 is to enter the string "default" instead of T1 or OT1 into the preferences' fontenc widget. Jürgen > Thank you again for your help! > > Koji >
Re: hyperlink display
To all it may concern not reading Trac - I've just added following comment: I would like to enhance this idea with an option to display an small icon before the text, like WikiMedia does on its pages. This method my apply to all other small insets, like footnote, label, etc. Icons may contain tooltips explaining what kind of inset is that, even short explanation may be useful. Certainly I understand that displaying such images in LyX text control may be harder to implement that current mechanism basing on descriptive texts. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl 2010/6/25 Jose Quesada: > I've added an enhancement request: > http://www.lyx.org/trac/ticket/6788 > Best, > -Jose > > Jose Quesada, PhD. > Max Planck Institute, > Center for Adaptive Behavior and Cognition, > Berlin > http://www.josequesada.name/ > http://twitter.com/Quesada > > > On Fri, Jun 25, 2010 at 10:05 AM, Guenter Milde > wrote: >> >> On 2010-06-24, Vincent van Ravesteijn wrote: >> >> Hi, >> >> The current hyperlink display (at least in the doc classes I've tried) >> >> is as >> >> follows: >> >> [hyperlink: text limited in width] >> >> Would it be possible to have a more conventional display, eg not having >> >> the >> >> word hyperlink preceeding the text, not having the limited width, and >> >> say >> >> having it format as underscored blue text? I mean the lyx preview, not >> >> the >> >> resulting pdf. >> >> > Yes, it's possible, but someone has to implement it and make it such >> > that everyone likes it. >> >> I'd like to use some Unicodechar instead of a full word for references, >> labels and hyperlinks. >> >> As there is no "one size fits all" solution, please make "tags" >> configurable. >> >> BTW: there is a workaround for users of LyX in a non-english language: >> configure the translation of these "tag names". >> >> Günter >> > >
Re: hyperlink display
On 2010-06-28, Manveru wrote: > To all it may concern not reading Trac - I've just added following comment: > I would like to enhance this idea with an option to display an small > icon before the text, like WikiMedia does on its pages. > This method my apply to all other small insets, like footnote, label, > etc. Icons may contain tooltips explaining what kind of inset is that, > even short explanation may be useful. > Certainly I understand that displaying such images in LyX text control > may be harder to implement that current mechanism basing on > descriptive texts. With good Screen font, the simple option is to choose from the rich set of Unicode symbols. Günter
No Mouse scrolling in LyX 2.0 - Mac?
I just discovered that mouse scrolling does not work in 2.0 alpha 4 on Mac. Can anyone else confirm? James
Re: spacing between sections changes in my dissertation
Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heckwrote: > On 6/24/10 10:37 PM, Mike Martell wrote: > > Do I place this at the top of the document? The spacing in the document > doesn't change. I tried at the top and in one of the sections whose spacing > was inconsistent. > > It has to go in the LaTeX preamble. You also have to wrap it in > "\makeatletter" at the beginning and "\makeatother" at the end. > > The specific command I suggested won't do what you want. You'll have to > adjust the spacing and the font commands that format the heading. But you > should actually be able to get those values from the class file. That is, if > you have using thesis.cls, then in that file somewhere you will find > something like: > > > \newcommand\sectio...@startsection {section}{1}...@}% >{-3.5ex \...@plus -1ex \...@minus -.2ex}% >{2.3ex \...@plus.2ex}% >{\normalfont\Large\bfseries}} > > (This is taken from article.cls.) The six arguments to \...@startsection > (i) set the name of the division (section) > (ii) set the "level" in the hierarchy of divisions (so chapter is 0) > (iii) set the indent for headings (zero, in this case, using the macro > \z@) > (iv) set the space above the heading > (v) set the space below the heading > (vi) declare any commands that should be used to set the heading; in > this case, it is large and bold > As for (iv) and (v), these are what LaTeX calls "rubber lengths" and the > second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if > necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, > optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the > minus is a hack that means: suppress the indentation of the first paragraph > following this heading. So that is why the spacing can be inconsistent: > LaTeX is being told it can alter the spacing before a section heading by > almost a third. > > What I did was just copy and paste this command, making it a \renewcommnd, > and then remove the rubber bits. You can do the same. > > Btw, if this doesn't solve the problem, then the issue probably has to do > with float placement. But we can come back to that. > > Richard > > > > > On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck wrote: > >> On 06/24/2010 09:22 PM, Mike Martell wrote: >> >>> Hi: >>> I'm trying to finish formatting my dissertation to submit to the library. >>> I'm using a thesis class. My output has the spacing between text and >>> sections, and text and subjections, to vary throughout the dissertation. I >>> need the spacing to be consistent. After searching the list archive and >>> some tutorials, I tried inserting \raggedbottom to the top of my diss, but >>> this does not fix the problem. >>> >>> Is there a way to fix this? >>> >>> This is normal. LaTeX varies the spacing as the needs of page breaking >> require, just as is done in books and articles. If you need it to be >> constant, then do something along the lines of: >>\renewcommand\sectio...@startsection{section}{1}{\z@}% >>{-3.5ex}{2ex}% >>{\normlfont\Large\bfseries}% >> The semantics of the \...@startsection command are explained here: >>http://help-csli.stanford.edu/tex/latex-sections.shtml >> and elsewhere. >> >> rh >> >> > > >
Re: spacing between sections changes in my dissertation
Now LyX is making my spacing inconsistent in places (making it single instead of double) to keep my section spacing consistent. Is there a way I can fix that too? thanks, Mike On Mon, Jun 28, 2010 at 8:26 PM, Mike Martellwrote: > Thanks, Richard. This worked and now my spacing is consistent. Thanks so > much! > Mike > > > On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck wrote: > >> On 6/24/10 10:37 PM, Mike Martell wrote: >> >> Do I place this at the top of the document? The spacing in the document >> doesn't change. I tried at the top and in one of the sections whose spacing >> was inconsistent. >> >> It has to go in the LaTeX preamble. You also have to wrap it in >> "\makeatletter" at the beginning and "\makeatother" at the end. >> >> The specific command I suggested won't do what you want. You'll have to >> adjust the spacing and the font commands that format the heading. But you >> should actually be able to get those values from the class file. That is, if >> you have using thesis.cls, then in that file somewhere you will find >> something like: >> >> >> \newcommand\sectio...@startsection {section}{1}...@}% >>{-3.5ex \...@plus -1ex \...@minus -.2ex}% >>{2.3ex \...@plus.2ex}% >>{\normalfont\Large\bfseries}} >> >> (This is taken from article.cls.) The six arguments to \...@startsection >> (i) set the name of the division (section) >> (ii) set the "level" in the hierarchy of divisions (so chapter is 0) >> (iii) set the indent for headings (zero, in this case, using the macro >> \z@) >> (iv) set the space above the heading >> (v) set the space below the heading >> (vi) declare any commands that should be used to set the heading; in >> this case, it is large and bold >> As for (iv) and (v), these are what LaTeX calls "rubber lengths" and the >> second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if >> necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, >> optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the >> minus is a hack that means: suppress the indentation of the first paragraph >> following this heading. So that is why the spacing can be inconsistent: >> LaTeX is being told it can alter the spacing before a section heading by >> almost a third. >> >> What I did was just copy and paste this command, making it a \renewcommnd, >> and then remove the rubber bits. You can do the same. >> >> Btw, if this doesn't solve the problem, then the issue probably has to do >> with float placement. But we can come back to that. >> >> Richard >> >> >> >> >> On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck wrote: >> >>> On 06/24/2010 09:22 PM, Mike Martell wrote: >>> Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page >>> breaking require, just as is done in books and articles. If you need it to >>> be constant, then do something along the lines of: >>>\renewcommand\sectio...@startsection{section}{1}{\z@}% >>>{-3.5ex}{2ex}% >>>{\normlfont\Large\bfseries}% >>> The semantics of the \...@startsection command are explained here: >>>http://help-csli.stanford.edu/tex/latex-sections.shtml >>> and elsewhere. >>> >>> rh >>> >>> >> >> >> >
Re: spacing between sections changes in my dissertation
On 06/28/2010 10:45 PM, Mike Martell wrote: Now LyX is making my spacing inconsistent in places (making it single instead of double) to keep my section spacing consistent. Is there a way I can fix that too? Probably, though I don't know how. That said, LaTeX is neither designed nor intended for this kind of fine-grained control over spacing. Probably, the effects you are seeing have to do with float placement. Are you trying to force floats to appear in specific places? If so, then this can cause all kinds of problems. rh thanks, Mike On Mon, Jun 28, 2010 at 8:26 PM, Mike Martell> wrote: Thanks, Richard. This worked and now my spacing is consistent. Thanks so much! Mike On Fri, Jun 25, 2010 at 9:01 AM, Richard Heck > wrote: On 6/24/10 10:37 PM, Mike Martell wrote: Do I place this at the top of the document? The spacing in the document doesn't change. I tried at the top and in one of the sections whose spacing was inconsistent. It has to go in the LaTeX preamble. You also have to wrap it in "\makeatletter" at the beginning and "\makeatother" at the end. The specific command I suggested won't do what you want. You'll have to adjust the spacing and the font commands that format the heading. But you should actually be able to get those values from the class file. That is, if you have using thesis.cls, then in that file somewhere you will find something like: \newcommand\sectio...@startsection {section}{1}...@}% {-3.5ex \...@plus -1ex \...@minus -.2ex}% {2.3ex \...@plus.2ex}% {\normalfont\Large\bfseries}} (This is taken from article.cls.) The six arguments to \...@startsection (i) set the name of the division (section) (ii) set the "level" in the hierarchy of divisions (so chapter is 0) (iii) set the indent for headings (zero, in this case, using the macro \z@) (iv) set the space above the heading (v) set the space below the heading (vi) declare any commands that should be used to set the heading; in this case, it is large and bold As for (iv) and (v), these are what LaTeX calls "rubber lengths" and the second means: Add 2.3 exes of space, and optionally add up to 0.2 exes, if necessary to fix page breaks, etc. The former means: Add 3.5 exes of space, optionally adding up to 1 ex and optionally subtracting up to 0.2exes; the minus is a hack that means: suppress the indentation of the first paragraph following this heading. So that is why the spacing can be inconsistent: LaTeX is being told it can alter the spacing before a section heading by almost a third. What I did was just copy and paste this command, making it a \renewcommnd, and then remove the rubber bits. You can do the same. Btw, if this doesn't solve the problem, then the issue probably has to do with float placement. But we can come back to that. Richard On Thu, Jun 24, 2010 at 9:57 PM, Richard Heck > wrote: On 06/24/2010 09:22 PM, Mike Martell wrote: Hi: I'm trying to finish formatting my dissertation to submit to the library. I'm using a thesis class. My output has the spacing between text and sections, and text and subjections, to vary throughout the dissertation. I need the spacing to be consistent. After searching the list archive and some tutorials, I tried inserting \raggedbottom to the top of my diss, but this does not fix the problem. Is there a way to fix this? This is normal. LaTeX varies the spacing as the needs of page breaking require, just as is done in books and articles. If you need it to be constant, then do something along the lines of: \renewcommand\sectio...@startsection{section}{1}{\z@}% {-3.5ex}{2ex}% {\normlfont\Large\bfseries}% The semantics of the \...@startsection command are explained here: http://help-csli.stanford.edu/tex/latex-sections.shtml and elsewhere. rh