On Thursday 06 March 2008 08:42, TriKri wrote:
> Hello!
>
> I am writing my physics report using LyX. I write the text in word and then
> I import it into LyX. I like LyX since it is so strict and fixes much
> problem thanks of that, but it also creates some problem, if you don't know
> how to do it correctly of course.
>
> Since I'm writing a report, the top level branches in the document are
> chapters. But it shows like "Chapter 1", then a new line, the
> "Introduction" (say my first chapter is intro). Instead I want it to be "1
> Introduction". 

You might need to do a \renewenvironment{} on the \chapter environment, within 
your layout file. Search your book.cls file (mine's 
in /usr/share/texmf/tex/latex/base/) for chapter, and you'll see definitions 
of \chapter, [EMAIL PROTECTED], and \makechapterhead etc. You need to redefine 
it not 
to print "Chapter", which I believe is the command \thechapter, and get rid 
of the vertical space skipped.

Remember, you do not change the code 
in /usr/share/texmf/tex/latex/base/book.cls, you do it with \renewenvironment 
and \renewcommand commands within your layout file.

Obviously, if you're not using the book document class, do this for whatever 
document class you're using.


> And a section, "1.1 The first section", etc. How do I fix 
> that?

Similar method.

>
> My next question is about the page numbers. At the title page and at the
> abstract page there is no page numbers. On the content page on the other
> hand there is, and it is 2. 2? Why? Then the first chapter comes and it has
> page number 1 as it should. ^^ Why is there a 2 as page number at the
> content page where there should really be no page number and how do I
> change/fix it? The first page number should be where chapter 1 starts.

See my answer to your next question.
>
> My third question is about formatting the text. On the title page, I write
> the title, the author (which is my name), then I also want to write the
> name of my university, its location and finally the date of today. All this
> is going to be on separate rows. I can only find title, author, and date in
> the scroll down bar, but not the rest. How do I enter those two? As
> standard text? In that case I also haven't found any way to center the
> text.  I would also like to be able to format the text more. Running text
> for example, is it even possible to center it? Or to make it bigger or with
> another font? Can I make custom text styles? How do I choose if the
> paragraphs are going to be justified or not, or whether a new paragraph is
> going to be marked by indenting the first line or making an empty line
> before it?

It's my fevent belief that the frontmatter of any book should be cobbled 
together with custom environments and ERT, because the frontmatter is not 
meant to be uniform throughout, it is not meant to be uniform across books, 
and it IS meant to be fine tuned to be just how you want it. Trying to 
wrangle a document class to do what you want in the frontmatter is extremely 
difficult.

If you simply build your frontmatter with ERT and custom environments, getting 
it exactly like you want will be easy. Doing this also gives you complete 
control over page numbering within the frontmatter.

>
> Then I also have a question about the chapter linking in the generated pdf
> file. Is it possible to make the chapters in the table of content link to
> the places in the document where the chapters are located? This is not as
> important though, just a cool feature! B-)

I think that automatically happens if you do this:

lyx -e pdf lyxfilename.lyx

SteveT

Steve Litt
Books written in LyX:
        Troubleshooting Techniques of the Successful Technologist
        Twenty Eight Tales of Troubleshooting
        Troubleshooting: Just the Facts

Reply via email to