Re: Question About Custom Layouts and Styles
On 2009-11-03, Rob Oakes wrote: > Counter subsection > LabelString "\Alph{section}.\{subsection}" > End > Since this is one of those "Write it down or forget it" type of things, > I also put together a blog post that describes the whole process. ... > If interested, you can find it at: > http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih Could you also post the gist of the article and a link to the wiki (http://wiki.lyx.org)? This way it might get the desired attention more easily and permanently. Günter
Re: Question About Custom Layouts and Styles
> Since this is one of those "Write it down or forget it" type of things, > I also put together a blog post that describes the whole process. > Granted, most of it is just stolen out of the LyX documentation, but I > find it handy to put together these types of cheat sheets for myself. > > If interested, you can find it at: > > http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih > > The article includes links to download the files. > Dear Rob The article is really interesting and useful. I am at the moment preparing a guideline for my colleagues how to use LyX for writing scientific books and reports. I would like to refer your link as one of the references. Your permission is highly appreciated. Regards -- Waluyo Adi Siswanto, PhD Dept. Engineering Mechanics Univ. Tun Hussein Onn Malaysia (UTHM) http://www.uthm.edu.my
Re: Question About Custom Layouts and Styles
Dear Richard and other LyX Users, Thank you very much for the recommendation, it worked perfectly. The final formatting worked out to be: Counter subsection LabelString "\Alph{section}.\{subsection}" End Since this is one of those "Write it down or forget it" type of things, I also put together a blog post that describes the whole process. Granted, most of it is just stolen out of the LyX documentation, but I find it handy to put together these types of cheat sheets for myself. If interested, you can find it at: http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih The article includes links to download the files. Cheers, Rob
Re: Question About Custom Layouts and Styles
On 10/30/2009 02:17 PM, Rob Oakes wrote: Dear Richard and other LyX Users, I managed to solve a few of the formatting problems. To change the section labels from numbers to letters, I added the following to the nih.cls file: \def\thesection{\Alph{section}} That solved the output problem. Now I am trying to get the labels for section, subsection, and subsubsection to match the LaTeX output. I've been able to figure it out for section: Style Section LabelType Counter LabelCounter section LabelString "\Alph{section}" End But I've been stumped on how to do the same thing for subsection and subsubsection. This still show 1.1 and 1.1.1 respectively, but only in LyX. The LaTeX output is correct. Did you try just doing the same thing, more or less, in the Subsection and Subsubsection styles? You can also do this in the counter block, e.g.: Counter subsection LabelString "\Alph{section}.\alph{subsection}" End I think this may also work: Counter subsection LabelString "\thesection.\alph{subsection}" End Like LaTeX. rh
Re: Question About Custom Layouts and Styles
Dear Richard and other LyX Users, I managed to solve a few of the formatting problems. To change the section labels from numbers to letters, I added the following to the nih.cls file: \def\thesection{\Alph{section}} That solved the output problem. Now I am trying to get the labels for section, subsection, and subsubsection to match the LaTeX output. I've been able to figure it out for section: Style Section LabelType Counter LabelCounter section LabelString "\Alph{section}" End But I've been stumped on how to do the same thing for subsection and subsubsection. This still show 1.1 and 1.1.1 respectively, but only in LyX. The LaTeX output is correct. Cheers, Rob
Re: Question About Custom Layouts and Styles
On 10/30/2009 10:52 AM, Rob Oakes wrote: Dear LyX Users, I have a quick question about custom layouts. I've been in the process of creating a custom layout file for the NIH grant LaTeX class (http://www.cs.duke.edu/brd/NIH/tips/). By following the instructions in the LyX documentation and modifying the existing article.layout, I've been able to get most everything to work. With one exception. To be compliant with the NIH style guide (if it can be called that), I need for sections to be labeled with letters rather than numbers. For example, it should be: A Overview B Background C Methods D Specific Methods etc. Right now it's labeled with numbers: 1 Overview 2 Background 3 Methods 4 Specific Methods etc. This problem doesn't appear when generating a document from stock LaTeX or from Kile (which I suppose is stock LaTeX); only from LyX. I'm not sure what is causing it or how to fix it. In order to make it easier to edit certain properties, I've moved a few things around. The original .cls file included information about custom headers and footers, which I've removed and placed in a .lyx document I intend to use as a template. But there was no code specific to section numbering. All files are being generated off of the modified LaTeX cls file, so I don't think that is where the problem is. Does anyone have any ideas on how I can tell LyX/LaTeX to use letters rather than numbers for section numbering? I'd need to see the layout file and a simple document that illustrated the problem. There are too many things that could have gone wrong. Richard
Question About Custom Layouts and Styles
Dear LyX Users, I have a quick question about custom layouts. I've been in the process of creating a custom layout file for the NIH grant LaTeX class (http://www.cs.duke.edu/brd/NIH/tips/). By following the instructions in the LyX documentation and modifying the existing article.layout, I've been able to get most everything to work. With one exception. To be compliant with the NIH style guide (if it can be called that), I need for sections to be labeled with letters rather than numbers. For example, it should be: A Overview B Background C Methods D Specific Methods etc. Right now it's labeled with numbers: 1 Overview 2 Background 3 Methods 4 Specific Methods etc. This problem doesn't appear when generating a document from stock LaTeX or from Kile (which I suppose is stock LaTeX); only from LyX. I'm not sure what is causing it or how to fix it. In order to make it easier to edit certain properties, I've moved a few things around. The original .cls file included information about custom headers and footers, which I've removed and placed in a .lyx document I intend to use as a template. But there was no code specific to section numbering. All files are being generated off of the modified LaTeX cls file, so I don't think that is where the problem is. Does anyone have any ideas on how I can tell LyX/LaTeX to use letters rather than numbers for section numbering? Cheers, Rob Oakes