LyX DVI troubles

2003-09-20 Thread Kent Kostuk
I am returning to LyX from a one year hiatus, so pardon me if this is a 
stupid question.

I am in the process of writing a paper in LyX via Knoppix.  Everything 
works well, but I would like to continue on using a desktop PC using a 
Debian variant (Libranet).

Both machines appear to be running LyX 1.3.1.

When I take the file created on the laptop and try to view or print on 
the desktop I get an error

LaTex Error:File 'newcent.sty' not found

Even if I change the font to default, I get a similar error message.

Do I have a configuration problem?  If not, what is the source of my 
troubles?

Thanks

Kent Kostuk



Re: problem with math display

2003-09-20 Thread Nirmal Govind
I ran into the same problem again after recompiling lyx 1.3.2 with a
different Qt (the standard one with Debian unstable).. Just wanted to
confirm that I applied this patch and recompiled and the math symbols show
up fine now with the old qtrc.

nirmal

Dekel Tsur wrote:

> On Mon, Sep 08, 2003 at 10:14:31AM +0200, Johannes Simon wrote:
>> On Sunday 07 September 2003 23:54, John Levon wrote:
>> > Either way it's extremely unlikely it's a lyx problem, it's either
>> > Qt, fontconfig, or something on your system.
>> 
>> It's a Qt problem: Iteratively removing all dotfiles I found that
>> ~/.qt/qtrc
>> was causing the trouble. It contained the following
> 
> The problem is actually with changes in the way QT uses for fonts between
> QT-3.1 and QT-3.2.
> The problem is fixed in CVS. You can try the following patch for 1.3.x
> (and restore the old ~/.qt/qtrc)

-- 




Re: Pagination in book class

2003-09-20 Thread robin
Rich Shepard wrote:

[snip]

 If the book (or memoir) class had a style "Copyright" as does the
Koma-Script book format, I would not be asking all these questions.
Unfortunately, use of the latter class produces its own unintended
consequences for me writing in the U.S. If I was really clever and knew
LaTeX and LyX _very_ well, I could probably take the "Copyright" style from
Koma-Script and add it to "book". Unfortunately, I'm not that clever with
these applications. Nor can I find a LyX-class-writing-HOWTO.
Help->Customisation has a section "Decalring a new text class" which is 
a good place to start. Basically you start by importing the main class 
you want to use, and add any new paragraph environments you want, or 
alter existing ones.  So you could either start with the Book class and 
add aCopyright environment, or start with Book (Koma-script) and edit it 
to make it behave more like Book.

Robin

--
"I can say: 'Thank these bees for their honey as though they were kind people who have 
prepared it for you'; that is intelligible and describes how I should like you to conduct 
yourself. But I cannot say: 'Thank them because, look, how kind they are!'--since the next 
moment they may sting you.
- Wittgenstein
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin





Re: Pagination in book class

2003-09-20 Thread Ronald Florence
Rich Shepard <[EMAIL PROTECTED]> writes:

>   If the book (or memoir) class had a style "Copyright" as does the
> Koma-Script book format, I would not be asking all these questions.
[...]
>   Would you like to help me add this feature to the book class? I'm always
> happy to learn more.

Sounds like your publisher requires something special.  I've written
four books with LyX, all published by trade or university presses
(Random House, HarperCollins, St. Martins Press, and University of
Wisconsin Press, the latter scheduled in 2005), and never had to sweat
a "copyright page." 

If you want the copyright information on a separate page, try a new
page in \frontmatter, add some space at the top, and then

© 2003 Rich Shepard
-- 

Ronald Florence www.18james.com



Re: Pagination in book class

2003-09-20 Thread Juergen Spitzmueller
Rich Shepard wrote:
> However, with no format codes in the book (and memoir) class I get the
> copyright page information either on the bottom of the title page or on the
> top of the ToC page. As neither is appropriate I'm trying to learn how to
> set that page apart, but retain the proper pagination.

Rich,
If you send me a small example file (privately, if you like), I can show you a 
solution (memoir or standard book).

Regards,
Juergen.


Re: Pagination in book class

2003-09-20 Thread Rich Shepard
On Sat, 20 Sep 2003, Ronald Florence wrote:

> Try the \frontmatter, \mainmatter, and \endmatter ERT insertions to
> get lowercase roman and arabic page numbering where you want them.

Ronald,

  I have tried the above with no success. Perhaps not in the correct places
in my text.

> If you manually encode every detail of the formatting -- as you seem
> to be doing above and in your other recent queries -- you turn LyX and
> LaTeX into the equivalent of a PC word-processor.  LyX is cumbersome
> used that way, and it really takes takes the joy out of the whole
> WYSIWYM concept behind LyX.

  I have no desire to manually encode anything. That's why I use LyX for all
my writing that does not need to be shared as a winWord doc with regulators
or clients. One of the reasons that I adopted LyX several years ago after
attempting to learn LaTeX was that with the latter I had to learn every
aspect of formatting -- and memorize/type the codes, too. LyX hides those
details from me.

  However, with no format codes in the book (and memoir) class I get the
copyright page information either on the bottom of the title page or on the
top of the ToC page. As neither is appropriate I'm trying to learn how to
set that page apart, but retain the proper pagination.

  If the book (or memoir) class had a style "Copyright" as does the
Koma-Script book format, I would not be asking all these questions.
Unfortunately, use of the latter class produces its own unintended
consequences for me writing in the U.S. If I was really clever and knew
LaTeX and LyX _very_ well, I could probably take the "Copyright" style from
Koma-Script and add it to "book". Unfortunately, I'm not that clever with
these applications. Nor can I find a LyX-class-writing-HOWTO.

  Would you like to help me add this feature to the book class? I'm always
happy to learn more.

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Pagination in book class

2003-09-20 Thread Ronald Florence
Rich Shepard <[EMAIL PROTECTED]> writes:

> \pagestyle{empty}
> \clearpage
> %% Contents of copyright page
> \clearpage
> \pagenumbering{roman}
> \setcounter{page}{1}
> %% Table of Contents -- done by LyX
> Preface %% Un-numbered chapter
> %% preface contents
> \pagenumbering{arabic}
> Introduction %% Part # -- done by LyX
> Background %% Chapter 1 -- done by LyX
[...]
>   The page reading, "Part 1  Introduction", is numbered, 1. There is a blank
> page and the next recto page is "Chapter 1  Background" with a page number
> of 3.
> 
>   This is not what I want; at least, I don't think that's what I want. 

Try the \frontmatter, \mainmatter, and \endmatter ERT insertions to
get lowercase roman and arabic page numbering where you want them.

If you manually encode every detail of the formatting -- as you seem
to be doing above and in your other recent queries -- you turn LyX and
LaTeX into the equivalent of a PC word-processor.  LyX is cumbersome
used that way, and it really takes takes the joy out of the whole
WYSIWYM concept behind LyX.
-- 

Ronald Florence www.18james.com



Re: button tools

2003-09-20 Thread John Levon
On Sat, Sep 20, 2003 at 12:31:58PM -0400, William O. Bray wrote:

> Dear list, I wonder if it is possible to add a tool button which will open the 
> delimiter and bracket dialog directly without going through the math panel. I 

I don't think this is possible in 1.3. However, you CAN add buttons
for each type of bracket:

   Icon "math-delim ( )"

in the default.ui file in ~/.lyx/ui/ (put it there)

Note it won't be able to find an icon for you ...

> Perhaps my patience is required here; I have seen hints that version 1.4 of 
> Lyx will make steps toward breaking the rather cumbersome (opinion) math 

Some steps, yes ...

john
-- 
Khendon's Law:
If the same point is made twice by the same person, the thread is over.


Pagination in book class

2003-09-20 Thread Rich Shepard
  I've gone back to the 'book' class from the 'memoir' class because I
cannot clear a page number from the title page on the latter. Doesn't matter
to me which class definition I use as long as I understand how to remove the
little glitches. Which brings me to the reason for this message.

  Immediately after my name (as author), I have this:

\pagestyle{empty}
\clearpage
%% Contents of copyright page
\clearpage
\pagenumbering{roman}
\setcounter{page}{1}
%% Table of Contents -- done by LyX
Preface %% Un-numbered chapter
%% preface contents
\pagenumbering{arabic}
Introduction %% Part # -- done by LyX
Background %% Chapter 1 -- done by LyX

  When I view the dvi output, I see that the first page of the ToC is
marked, i, but the second page has no page number. The Preface page is
numbered, iii.

  The page reading, "Part 1  Introduction", is numbered, 1. There is a blank
page and the next recto page is "Chapter 1  Background" with a page number
of 3.

  This is not what I want; at least, I don't think that's what I want. I
thought that the second page of the ToC should be numbered "ii", the "Part"
page should have no number, and the first page of "Chapter 1" should be
numbered "1".

  I tried '\setcounter{page}{1}' just before the chapter title, and that
does reset the page number to 1. However, the "Part " page is still marked
with a "1".

  Thanks for helping me to learn.

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
 http://www.appl-ecosys.com/


button tools

2003-09-20 Thread William O. Bray
Dear list, I wonder if it is possible to add a tool button which will open the 
delimiter and bracket dialog directly without going through the math panel. I 
find that I often use this as well as the insert matrix dialog and it would 
be convenient to reach these without going through the math panel.
It is easy to add buttons for \sum or \int. 
Perhaps my patience is required here; I have seen hints that version 1.4 of 
Lyx will make steps toward breaking the rather cumbersome (opinion) math 
panel in smaller pieces.
thanks, Bill
-- 
**
William O. Bray, Professor & Chair
Department of Mathematics & Statistics
University of Maine
Orono, Maine 04469-5752
**



Re: One for the LaTeX masters

2003-09-20 Thread Herbert Voß
Herbert Voß schrieb:

[EMAIL PROTECTED]
\renewcommand{\include}[1]{%
[EMAIL PROTECTED]@warnNotFound{#1}}%
}
this is not elegant, because you have a double check for
the existence of the file, but it does what you want ...
here is the whole example, which worked for me.

Herbert



\documentclass{article}
\usepackage{verbatim}
\makeatletter
%% Print a warning encased in an fbox.
[EMAIL PROTECTED]>{}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\fbox{Could not find %
[EMAIL PROTECTED]@lyxtempfilename!}
\typeout{Could not find [EMAIL PROTECTED]
}
%% Input the file if it exists, using \input, else print a warning
[EMAIL PROTECTED]
\renewcommand{\input}[1]{%
[EMAIL PROTECTED]@warnNotFound{#1}}%
}
[EMAIL PROTECTED]
\renewcommand{\include}[1]{%
[EMAIL PROTECTED]@warnNotFound{#1}}%
}
[EMAIL PROTECTED]
\renewcommand{\verbatiminput}[1]{%
\IfFileExists{#1}{%
[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]
}
\makeatother
\begin{document}

 

\end{document}




Re: Features Request and PDF/Acrobat question

2003-09-20 Thread robin
Paul Jahshan wrote:



4. Finally, the PDF/Acrobat problem: I've read the help file on the 
poor quality of LyX to PDF output when displayed through Acrobat 
Reader and, despite my best attempts, couldn't understand how to fix 
this. Again, is there a "clear" 1-2-3 method to work around this 
rather irritating issue? (I'm using RH 9)
  


Which part 'failed'?

The part where the output is decent! in Acrobat, I get a below average 
quality, even if I zoom in.

That's probably the font part.  Try changing your font to "ae" or "pslatex".

Robin

--
"I can say: 'Thank these bees for their honey as though they were kind people who have 
prepared it for you'; that is intelligible and describes how I should like you to conduct 
yourself. But I cannot say: 'Thank them because, look, how kind they are!'--since the next 
moment they may sting you.
- Wittgenstein
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin





Re: Once more: Bibtex

2003-09-20 Thread robin
Kai Johannes Keller wrote:

Hello List,

the many postings and questions about bibtex in the last time made me
curious. So now I started to learn what it is, and I'm building my own
Bibtex-database.
But I don't like the numbers ([1] in .dvi-output) for citing an entry of
the bibtex-catalogue, I'd rather like to have something like [OLO] in
the Text to take reference to a book written by Rainer Oloff. I know
that it's possible with the "normal" Bibliography-environment, but is
there a way to do this in Bibtex, too?
You need to find (or write) a BibTeX style file that fits your purposes, 
then you can select it from the bibliography button.  You can also 
sometimes use preamble commands to modify how the style is implemented - 
Jurabib has an impressive range.  If you don't specify a style, you get 
BibeX Plain, which uses the bracketed numbers for references.

Robin

--
"I can say: 'Thank these bees for their honey as though they were kind people who have 
prepared it for you'; that is intelligible and describes how I should like you to conduct 
yourself. But I cannot say: 'Thank them because, look, how kind they are!'--since the next 
moment they may sting you.
- Wittgenstein
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin





Re: One for the LaTeX masters

2003-09-20 Thread Herbert Voß
Angus Leeming schrieb:

am I right, that it then has only to run without
errors and the tex code is not important, it is
invisible to the outside LyX world??


Sorry, but I don't understand what you are asking. If you are asking, "will 
I, the user, be able to see what latex I'm using?", then the answer is a 
definite "YES!".
No, I meant if it is important what kind of LaTeX code
you are using for your purpose: should it be an
elegant LaTeX wise code or a short code, which isn't
very nice, but does what you want, checking only
(for internal use of LyX) if a file exists or not, which
is only:
[EMAIL PROTECTED]
\renewcommand{\include}[1]{%
[EMAIL PROTECTED]@warnNotFound{#1}}%
}
this is not elegant, because you have a double check for
the existence of the file, but it does what you want ...
Herbert




Re: Defining the 'copyright' page in memoir class

2003-09-20 Thread Juergen Spitzmueller
Rich Shepard wrote:
> The title page still has a page number (!) and I haven't yet figured that
> one out.

Rich,
indeed, the memoir class uses a plain style (with pagination) for the title 
page (I don't know why).
You can change this by typing
\aliaspagestyle{title}{empty}
in preamble.

> What this has taught me is that even within LyX there's a need for a lot
> of LaTeX code embedded within the document. Now I need to learn what and
> where to place it to get the results I want rather than error boxes.

yes, you have to deal with LaTeX if you are not satisfied with the default of 
the class.

Regards,
Jürgen.


Re: Defining the 'copyright' page in memoir class

2003-09-20 Thread Rich Shepard
On Sat, 20 Sep 2003, Juergen Spitzmueller wrote:

> I do note really understand what you are asking for, but the outline structure
> of the memoir manual is as follows:
>
> \frontmatter
> \pagestyle{empty} %% no pagination
>
> 
> \cleardoublepage %% start on recto page
>
> 
> \clearpage %% start a new page (recto or verso)

Juerge,

  The above, using the '\clearpage', was what I was seeking. That moves the
following text to the next page.

  The title page still has a page number (!) and I haven't yet figured that
one out.

  What this has taught me is that even within LyX there's a need for a lot
of LaTeX code embedded within the document. Now I need to learn what and
where to place it to get the results I want rather than error boxes.

Many thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
 http://www.appl-ecosys.com/


Re: One for the LaTeX masters

2003-09-20 Thread Angus Leeming
Herbert Voß wrote:

> Angus Leeming schrieb:
> 
>> see what improvements could be made. I'm trying to get the external
>> inset to output this...
> 
> am I right, that it then has only to run without
> errors and the tex code is not important, it is
> invisible to the outside LyX world??

Sorry, but I don't understand what you are asking. If you are asking, "will 
I, the user, be able to see what latex I'm using?", then the answer is a 
definite "YES!".

First, there is the 'Export to LaTeX' route that we have at the moment.
Second, these snippets are stored in a text file, lib/external_templates. 
So I would argue that this way of doing things gives you much more 
flexibility than the current solution. No need to recompile LyX to change 
the latex. Just edit the lib/external_templates file.

See
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/external_templates?rev=1.17&content-type=text/vnd.viewcvs-markup
for the current incarnation (without the \include, \input, \verbatim 
stuff).

-- 
Angus



Re: Defining the 'copyright' page in memoir class

2003-09-20 Thread Juergen Spitzmueller
Rich Shepard wrote:
> Peter Wilson has extended the 'book' class with all sorts of nifty tweaks.
> He calls his package collection the 'memoir' class. In the first section of
> the book he describes the contents of \frontmatter{}, in which the
> copyright page (also including the publisher, CIP, ISBN and other goodies)
> is on the verso of the title page.
>
>   All well and good, but he does not present the command to set this block
> of text off and have it display and print properly.
>
>   Does anyone know how to do this?

Rich,
I do note really understand what you are asking for, but the outline structure 
of the memoir manual is as follows:

\frontmatter
\pagestyle{empty} %% no pagination


\cleardoublepage %% start on recto page


\clearpage %% start a new page (recto or verso)


\clearpage


\cleardoublepage

\pagenumbering{roman} %% pagination lower roman
\pagestyle{headings} %% running headers
\tableofcontents
\clearpage
\listoffigures
\clearpage
\listoftables

\chapter{Preface}



\mainmatter


the copyright page itself has been done with normal paragraphs and tabulars.

HTH,
Jürgen.