Supporting new document classes
was Re: How can I use a Thesis style? On Thu, 18 Nov 1999, Ben Stanley wrote: Hi Ben, > My university has a specified thesis style, and they have created a > LaTeX style file for it, called uowthesis.sty. I was wondering if there > is any way that I can use this style file in LyX? You need to create a uowthesis.layout file. This should be a relatively easy task given that: > The uowthesis.sty style is based on the report style. Provided that it's actually a style file for use with LaTeX2e and the report class (report.cls). If it's a LaTeX-2.09 style file then you're in for a bit more work -- see further below. LaTeX2e Instructions What you can try is: cp report.layout ~/.lyx/layouts/uowthesis.layout Then edit uowthesis.layout and change the line: \DeclareLaTeXClass{report} to read \DeclareLaTeXClass[report,uowthesis.sty]{report (uowthesis)} Then add: Preamble \usepackage{uowthesis} EndPreamble near the top of the file. Start LyX and select Options->reconfigure. Restart LyX and try creating a new document you should see "report (uowthesis)" as a document class option. It's likely that some of the sectioning commands and such will look different to how report works so you can fiddle around with the settings for the different sections if you wish. See further below for more discussion on this. LaTeX-2.09 Instructions === If the uowthesis.sty file is specifically for the now defunct LaTeX-2.09 you can tell this by one of two things: 1. The example file the uni provides will start with \documentstyle{uowthesis} 2. Running latex on an example file will produce a big banner warning that it is entering compatability mode. LyX only supports LaTeX2e documents. But don't give up hope yet. Where there's a will there's a way. The existing support for ReVTeX wraps the 2.09 codes for use in 2e formatted documents. We can reuse the ReVTeX wrapper for your uowthesis.sty (if it turns out to be 2.09 code). I'm already doing this in preparing support for IEICE Transactions. Okay, here's what you do: cp lyx/lib/tex/revtex.cls ~/tex/uowthesis.cls or to where ever you keep your local tex files. Now edit uowthesis.cls and do a search-and-replace on "revtex" and "uowthesis". It's likely that some of the \DeclareOption statements in the file are not relevent for your style file but we won't worry about that now. The next step is to repeat the process of creating the uowthesis.layout file given above only this time you use: \DeclareLaTeXClass{uowthesis} and shouldn't need any Preamble definitions. Run LyX and reconfigure, restart lyx and with luck you'll have a reasonably useable system that only needs fine-tuning of the display. This involves tweeking the values used by LyX for spacing, font styles and so on that are defined in the .layout files. You'll also need to check that you have all the environments available from the uowthesis.sty available in your uowthesis.layout file. If any are missing you'll need to add entries. Just copy another style that looks similar and tweek that. The easiest way to do this is with: Style MissingStyle CopyStyle SimilarStyle # whatever is different you now redefine End See the documentation in Customization for details about what each element in a .layout file does. That should be enough to get you on the road. Allan. (ARRae) P.S. I guess this should be added to Customization. We've had a few requests for something like this over the last few weeks.
How can I use a Thesis style?
Hi, My university has a specified thesis style, and they have created a LaTeX style file for it, called uowthesis.sty. I was wondering if there is any way that I can use this style file in LyX? I have been poking around the user documentation, and all I have found is how to use all the standard ones. It appears that you need custom code in LyX to support some of these styles? The uowthesis.sty style is based on the report style. Thanks for any help, Ben Stanley. PhD Student University of Wollongong
Re: Pb with bullet shapes + some questions and/or sugestions
On 17 Nov 1999, Jean-Marc Lasgouttes wrote: > > "Francois" == Francois Beaubert <[EMAIL PROTECTED]> writes: > > Francois> 1) Does anybody try to use the bullet shapes popup with the > Francois> language of the document set to frenchb? [...] > Francois> This work great with the language of the document set to > Francois> default. Any idea? > > Yes. The definition of the bullet shape should be done using > \AtBeginDocument{\renewcommand\labelitemi[0]{\(\Diamond\)}} > instead of > \renewcommand\labelitemi[0]{\(\Diamond\)} > > [In fact, to be LaTeX-friendly, it'd rather be > \AtBeginDocument{\renewcommand{\labelitemi}{\(\Diamond\)}} > but I am disgressing]. > > It should be quite easy to change, indeed. So does that mean there isn't any point in trying to support redefining bullet shapes on a per-paragraph basis instead of the current document-scope? At least not in French documents anyway or is it all due to babel? In the docs for "Itemize Bullet Selection" in Extended I gave examples of how to do per-paragraph changes including the use of the \renewcommand. You seem to be saying that this wouldn't work in a non-English language document. Allan. (ARRae)
Mixing Greek and English
Another contributor to this list asked about combining a language which uses a Roman alphabet (German or English) with another such as Greek or Hebrew. The answer (very useful for me--thanks) concerned only Hebrew; but I would also like to know how I can include phrases or sentences of Greek (classical and fully-accented) in an otherwise English document. Please speak _slowly_--Lyx and Linux newbie! -- Robert Goulding, Senior Caird Research Fellow, National Maritime Museum, Greenwich,LONDON. Phone (home): +44 171 254-8375
strange behaviour in table
Hi, I have a strange behaviour in a table like below (the corresponding lyx file is attached at the end): -- | A1-2|| A3 | |-||-| | B1 | B2 || B3 | -- If I type something in any cell, except A1-A2, for example, in B2, then delete a few characters that I just typed and repeat this operation times, the width of column 2 (B2) keeps increasing and increasing and does not shrink until I hit the TAB. I have this behaviour only with the double vertical line between columns 2 and 3. If the vertical line is single, the column 2 behaves as expected. Does anybody have a similar behaviour? Not a big deal, just a minor issue. I use LyX-1.1.2 under AIX-4.3.2. Thanks, Slava \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable multicol5 2 3 0 0 -1 -1 -1 -1 1 0 0 0 1 1 0 0 8 1 0 "" "" 8 1 1 "" "" 8 1 1 "" "" 1 8 1 0 0 0 0 "" "" 2 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" A1-2 \newline A3 \newline B1 \newline B2 \newline B3 \the_end
Re: AMS article etc
> "?" == <" <[EMAIL PROTECTED]>> writes: ?> Of course. I find it to take about as long to type as "\alpha". I ?> thought about "M-a" for alpha, etc. Or maybe "F12-a". And that for ?> every greek letter. Try maybe \bind "F12" "math-greek" >> By the way, how do you bind control chars to normal ?> chars? E.g. >> I often type C-"-" instead of "_" (which is S-"-") and ?> would >> like to bind it to the same thing. -- >> >> For math mode, you would have \bind "C-minus" "math-insert -" ?> I'm sorry, but that does not do what I want, C-- still sets ?> hyphenation points instead of producing subscripts. Maybe I'm doing ?> something wrong here? I pasted your line into cua.bind (I'm using ?> cua). I don't know, sorry. JMarc
Re: Short Caption Text in TableOfFigures ? / incrementing the page-counter explicitly
> "Martina" == Martina Schwarz van Doorn <[EMAIL PROTECTED]> writes: Martina> Hello you all ! I'm busy writing the last bits of my thesis Martina> using LyX. So far, most issues have been solved. I still have Martina> the following problems though: Martina> 1. In LaTeX I can use \caption[short]{long} to provide a Martina> short and a long form of the caption, for the contents and Martina> the text respectively. Is there an equivalent in LyX (beside Martina> LaTeX code)? No, LaTeX code is the only way currently. Note that you can mark only \caption and the brackets in LaTeX, and write the rest in normal LyX. Martina> 2. I want to add my source code in the appendix using the Martina> colour printing of a2ps, I want to be able to reference to it Martina> though. Can I use something like Martina> \setcounter{page}{\page+2}\label{main.f} Martina> \setcounter{page}{\page+2}\label{init.f} Martina> to do that ? How can I do it exactly ? You mean you want to reference something which is inside your code? You could try to split the code in several parts and insert labels in between. I'm not sure I understand what you mean, though. JMarc
Re: Installation of lyx-1.0.4
> "Cantizano" == Cantizano <[EMAIL PROTECTED]> writes: Cantizano> Hello! I am trying to install lyx-1.0.4 but I have an error Cantizano> while compiling table.C. I downloaded the patch-1.0.4 but I Cantizano> am not able to patch the file. I assume that you are not using gcc but the native compiler of your platform. Try the following patch (even if you do not know how to apply a patch, the intent should be clean enough...). JMarc Index: table.C === RCS file: /usr/local/lyx/cvsroot/lyx-1_0_x/src/table.C,v retrieving revision 1.9 diff -u -r1.9 table.C --- table.C 1999/09/23 14:13:53 1.9 +++ table.C 1999/11/17 15:17:50 @@ -1418,7 +1418,7 @@ return ret; } -const char *LyXTable::getDocBookAlign(int cell, bool isColumn=false) +const char *LyXTable::getDocBookAlign(int cell, bool isColumn) { int i; if (isColumn)
Re: install new latex package?
> "Bill" == Bill Simpson <[EMAIL PROTECTED]> writes: Bill> Thanks very much Jean-Marc, you were right! It works! BTW it Bill> might help others to have a section in "Customizing LyX" on the Bill> topic of installing a new package. (Maybe the info is somewhere Bill> else) It could be what I wrote in my last email, along with the Bill> last step supplied by you, JMarc. If you send a small lyx document fragment, I'd be glad to put it in :) JMarc
Re: LyX Reconfigure question
> "Paul" == Paul Lussier <[EMAIL PROTECTED]> writes: Paul> Hi all, I had a bizarre experience last night with LyX (1.00pre6 Paul> I think) running on RH6.0. I ran Options->Reconfigure and Paul> suddenly LyX knew about sgmltools and therefore the linuxdoc Paul> template. However, it completely lost it's memory of everything Paul> else. When I went to Layout->Document->Class, Linuxdoc was the Paul> only thing available. When I opened Help->Lyx Configuration, Paul> there was absolutely nothing known to LyX other than Linuxdoc. Paul> I tried rerunning the teTeX rehash command and the LyX Paul> ./configure command to no avail. This seems to show that LaTeX is not working. Are you able to typeset a small latex document? Of course it could be a real lyx bug, but check first your setup. JMarc
LyX Reconfigure question
Hi all, I had a bizarre experience last night with LyX (1.00pre6 I think) running on RH6.0. I ran Options->Reconfigure and suddenly LyX knew about sgmltools and therefore the linuxdoc template. However, it completely lost it's memory of everything else. When I went to Layout->Document->Class, Linuxdoc was the only thing available. When I opened Help->Lyx Configuration, there was absolutely nothing known to LyX other than Linuxdoc. I tried rerunning the teTeX rehash command and the LyX ./configure command to no avail. Has anyone had this happen to them? Did I do something wrong? teTeX and sgmltools have always been there and are still there, but not as far as LyX is concerned :( Having Linuxdoc available is nice, but I do use other Doc classes occasionally :) Is this a problem with 1.0preX, will upgrading help? Thanks, -- Seeya, Paul Doing something stupid always costs less (up front) than doing something intelligent. A conclusion is simply the place where you got tired of thinking. If you're not having fun, you're not doing it right!
Re: Pb with bullet shapes + some questions and/or sugestions
> "Francois" == Francois Beaubert <[EMAIL PROTECTED]> writes: Francois> 1) Does anybody try to use the bullet shapes popup with the Francois> language of the document set to frenchb? Francois> The popup works fine but I could not force latex to use the Francois> bullet shapes I have specified in this popup. It seem's that Francois> the package frenchb override the bullet shapes I have juste Francois> define in the document layout -> Bullet shapes option. The Francois> frenchb package use always it's default bullet shapes ( Francois> \normalfont\bfseries{--}) Francois> This work great with the language of the document set to Francois> default. Any idea? Yes. The definition of the bullet shape should be done using \AtBeginDocument{\renewcommand\labelitemi[0]{\(\Diamond\)}} instead of \renewcommand\labelitemi[0]{\(\Diamond\)} [In fact, to be LaTeX-friendly, it'd rather be \AtBeginDocument{\renewcommand{\labelitemi}{\(\Diamond\)}} but I am disgressing]. It should be quite easy to change, indeed. Francois> 2) Is their a way to have completion of word typed in the Francois> document like M- / in emacs? Nothing like that exists currently. Francois> 3) A suggestion about spelling: I think that a feature like Francois> flyspell module in emacs which underline miss-spelled word Francois> as you type it would be a great think. It would be nice indeed.
Pb with bullet shapes + some questions and/or sugestions
1) Does anybody try to use the bullet shapes popup with the language of the document set to frenchb? The popup works fine but I could not force latex to use the bullet shapes I have specified in this popup. It seem's that the package frenchb override the bullet shapes I have juste define in the document layout -> Bullet shapes option. The frenchb package use always it's default bullet shapes ( \normalfont\bfseries{--}) This work great with the language of the document set to default. Any idea? 2) Is their a way to have completion of word typed in the document like M- / in emacs? 3) A suggestion about spelling: I think that a feature like flyspell module in emacs which underline miss-spelled word as you type it would be a great think. -- """ o o +---ooO---(_)---Ooo---+ | | | François Beaubert | | Ecole des Mines de Nantes | | 4 rue Alfred Kastler BP 20722 44307 Nantes Cedex 3 France | | Telephone : (0/33)2.51.85.82.86 Telecopie : (0/33)2.51.85.82.99| | [EMAIL PROTECTED] | +-+
Arrays in mathed
Hello, Dealing with arrays in mathed leaves me often with empty cells (marked with a blue rectangle). I cundestood fron the doc that killing a row is possible, but not a column. However, I often get a uncomplete row with missing cells and empty cells, which is not killed by M-e k. Is there a workaround (other than editing the LyX file ?). lyx-1.0.4 on Sun/Solaris-2.6 Thanks -- Jean-Pierre