Re: Problem with Hebrew Lyx - Reply

2007-09-21 Thread Dov Feldstern

Gideon Livshits wrote:

Hello!

Firstly, I would like to thank you for your quick response to my 
problem. It means a lot!


You're welcome. In general, you'll find people on the lyx mailing lists 
to be very responsive and helpful :) .


(BTW, I'm CC-ing the mailing lists, so that this gets into the mailing 
lists archives, and may prove useful to other users. For those other 
users: this is correspondence regarding 
http://bugzilla.lyx.org/show_bug.cgi?id=4228)




I sent an example file to the following address: [EMAIL PROTECTED]

I attach it again here.



The file you sent works for me --- so my guess is that it's a latex 
configuration issue. See below...


Soon after posting the bug, I realized that I should have kept the 
encoding default, which I did (as you mentioned). This changed the list 
of errors - from about 8 to only one, in which it complained it was 
lacking the jerus10 font, and therefore would produce neither dvi nor 
postscript.


To clarify, I am giving you all the relevant details:
Under Document Settings I have made the following changes (to 
accommodate Hebrew):

Document Class: article (Hebrew)
Postscript driver: Dvips (tried this because I saw the others weren't 
working - it too doesn't work)

Fonts: Changed nothing (kept defaults)
The same goes for everything else, I only changed the language to 
Hebrew. I *kept* the original tick under Use language's default encoding.


Under Preferences the only change I made was to select Hebrew as the 
default language instead of Hebrew (which I think is wrong anyway, since 
it apparently applies to the language of interface, which I want to stay 
in English). 


(Hmm..., I think the user interface also has to do with locale settings 
--- you should be able to change the default document language without 
changing the UI, maybe by playing around with those. If you're compiling 
from source, you can use the --disable-nls option when configuring, and 
then the UI will certainly not change... But this has nothing to do with 
the main problem we're discussing.)


So here it is:

User interface file: default
Bind file: mac
Default Language: Hebrew.


(also as an aside: some additional LyX setup which you might want to 
perform is to use keymaps --- these allow you to use Hebrew without 
having to switch languages at the keyboard level; and then also to have 
some keybindings for switching languages. See Dekel's instructions at 
http://www.cs.bgu.ac.il/~dekelts/lyx/instructions2.html, though you'll 
have to play around with it to see which parts you want and which you 
don't, they may not be up to date; and see 
http://permalink.gmane.org/gmane.editors.lyx.devel/88941 for key 
bindings files --- I would use these instead of the ones Dekel mentions.)


My Latex distribution is LiveTex 2007. You mention ivritex - I don't 
know what this is, and I don't have it installed (at least I think I 
don't). Would this fix everything? Do you know where I could get it?


ivritex (http://ivritex.sf.net) is the name of the project for adding 
Hebrew support to babel. It used to be a standalone package, but has 
been incorporated into the latest versions of babel, so if you have 
babel 3.8 then it already includes hebrew support built-in. However, you 
may still need other support packages (fonts, etc.).


I'm using TeXLive 2007 (I assume this is the same as LiveTeX?), though 
I'm on Linux/debian. This already uses babel 3.8, so there's no need for 
installing ivritex separately. There's a debian package called 
texlive-lang-hebrew, which provides a latex package called cjhebrew 
which provides the additional support needed. Try and see if you have 
some similar package that you could install.


Another option is to use the culmus fonts. For that, I think that you'll 
have to download the culmus fonts (http://culmus.sourceforge.net/, 
chances are it's also bundled for your OS), as well as install (from 
source) culmus-latex, which is an in-development part of ivritex for 
supporting the culmus fonts 
(http://sourceforge.net/project/showfiles.php?group_id=33341). Just 
installing that package may be enough.


In either case, I think one or both of the two options mentioned above 
is what will solve your issue (again, let us know either way). If you 
still need more help with correctly setting up Hebrew with LaTeX, you 
should also check out the ivritex mailing list.




Thanks a lot for all your help,

Gideon

P. S. Please tell me if I missed something or if you need more information.



Good luck, Gmar Hatima Tova!
Dov


A question on latex/bibtex

2007-09-21 Thread Nicolás

Hi!

I have just read a paper containing an interesting feature. Each citation in 
the bibliography section contains a list of links to the
pages where such citation appears. For example, if citation [1] appears in 
pages 5 and 7, in the bibliography section we have:

[1] Me and you, The book of our lives, in Kindly Publication, 2007 5 7

Does someone know how to achieve that?

Thanks,
Nicolás





Portuguese hyphenation?

2007-09-21 Thread Roberto Gorjão

Hello,

This probably is really a newbie question but there it goes: how do I 
set the Portuguese hyphenation on?


I've already set up the Portuguese language (with an utf8 encoding, 
because of BibTeX) on the document settings dialogue, but words are 
still getting broken in the wrong places.


Thanks for your help!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Latex-problem: Pagenumbering in combination with two-sided document

2007-09-21 Thread Helge Hafting

Christian Richter wrote:

Hello,
I do not have a LYX - but a LATEX-problem. I hope somebody wants to
help me anyways.

Ok, I am writing my thesis as a two sided document (Komo-script book).
The appendix has roman pagenumbering. The problem is that the last
page before the appendix is a right page (odd page number). So that
the first side of the appendix should be a right page (even number).
  

An appendix is a chapter of its own. Any two-sided
layout will start a chapter on a odd page, no matter what.
Starting a chapter (appendix or other chapter) on an even
page is usually considered ugly and bad typography - you'll
have a hard time finding any published book printed like that.

Because of the pagenumbering the first page of the appendix is a left
page (page number=1). How can I change it so that this page has the
page number 1 but is a right page?
  

Consider carefully if you really want this - it will probably only
look odd to the serious reader. Now, you can of course
use a single-sided layout and print double-sided anyway.
You will then get your appendix on a even page, and you
can of course reset the page counter to 1 anywhere you want to,
even on that even page. There surely are people that will
consider such a layout messed-up, and that cannot be good for
your thesis?

I do not want to use /cleadoublepage before the appendix because I can
not have any more pages.
  

Why not? If they count pages, well surely they won't
count a blank one? Or offer to pay for the wasted page,
if they really worry about that?

Helge Hafting


Re: Portuguese hyphenation?

2007-09-21 Thread Roberto Gorjão
Ok, I got it! MiKTeX was not properly set up and it was having problems 
in updating its format files.


Thank you!

Roberto

---
Roberto Gorjão wrote:

Hello,

This probably is really a newbie question but there it goes: how do I 
set the Portuguese hyphenation on?


I've already set up the Portuguese language (with an utf8 encoding, 
because of BibTeX) on the document settings dialogue, but words are 
still getting broken in the wrong places.


Thanks for your help!

Roberto



--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: A question on latex/bibtex

2007-09-21 Thread Bennett Helm

On Sep 21, 2007, at 9:40 AM, Nicolás wrote:


Hi!

I have just read a paper containing an interesting feature. Each  
citation in the bibliography section contains a list of links to the
pages where such citation appears. For example, if citation [1]  
appears in pages 5 and 7, in the bibliography section we have:


[1] Me and you, The book of our lives, in Kindly Publication,  
2007 5 7


Does someone know how to achieve that?


Use hyperref, specifying pagebackref as an option.

E.g., include in your preamble: \usepackage[pagebackref]{hyperref}

For the hyperref manual, see:

ftp://ctan.tug.org/tex-archive/macros/latex/contrib/hyperref/doc/ 
manual.html


Bennett

Re: Latex-problem: Pagenumbering in combination with two-sided document

2007-09-21 Thread Richard Heck

Helge Hafting wrote:

An appendix is a chapter of its own. Any two-sided
layout will start a chapter on a odd page, no matter what.
Starting a chapter (appendix or other chapter) on an even
page is usually considered ugly and bad typography - you'll
have a hard time finding any published book printed like that.

I do wish that were true. Unfortunately, it's becoming more and more common.

Richard


Document Encoding

2007-09-21 Thread Ken
Hi.  I am getting the error message:
Some characters of your document are probably not representable in
the chosen encoding.
Changing the document encoding to utf8 could help.

My document is in English without any intentional special characters
and I usually don't have this issue.  However I have cut and pasted a
lot of material into this document which may have the offending
characters (or coming in via the BibTex/bibliography).

Is there an easy way to find out where these problem characters are
(line numbers) because I am having a hard time finding them.

Thanks in advance for any suggestions.
Ken


Re: Portuguese hyphenation?

2007-09-21 Thread José Matos
On Friday 21 September 2007 14:48:08 Roberto Gorjão wrote:
 Hello,

 This probably is really a newbie question but there it goes: how do I
 set the Portuguese hyphenation on?

 I've already set up the Portuguese language (with an utf8 encoding,
 because of BibTeX) on the document settings dialogue, but words are
 still getting broken in the wrong places.

 Thanks for your help!

 Roberto

It depends on the latex distribution you are using.
In older distribution not all patterns of language hyphenation were used due 
to the memory layout of tex.
That meant that portuguese was not one of the used by default languages. :-)

For modern distributions that should not be a problem.

To see this I have created a tex file with a single line:
\relax

This is what latex was to say about it:

$ latex teste.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
entering extended mode
(./teste.tex
LaTeX2e 2005/12/01
Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, 
noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, 
ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, 
finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, 
ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, 
por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
)

-- 
José Abílio


Re: Document Encoding

2007-09-21 Thread Uwe Stöhr

Ken schrieb:

Hi.  I am getting the error message:
Some characters of your document are probably not representable in
the chosen encoding.
Changing the document encoding to utf8 could help.

Is there an easy way to find out where these problem characters are
(line numbers) because I am having a hard time finding them.


Start LyX from a console and open the document. When the error message appears, you can see in the 
console what characters are problematic.
Alternatively you delete chapter by chapter until the error message do no longer appear. Then you 
know where the problematic character is located. When you found the character, please report this to 
the list, maybe I forgot it in our unicode handling.


regards Uwe


AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I would 
put to a vote.


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me 
why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that 
last one).


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The 
oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is followed 
by the second case overall, it's Case 2).


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into the 
fold.  Please let me know through the list and/or by direct e-mail if 
you have strong preferences to the contrary.  Also, this is your chance 
to argue for different numbering of other environments (or different 
labeling, different text style, whatever -- within reason).


Cheers,
Paul



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I 
would put to a vote.
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has to 
be defined in the layout file because there's presently no easy way to 
pull anything else in. In 1.6, on the other hand, we'll have (we do 
have, in svn) what I call layout modules that allow you to customize 
your layout by pulling in optional stuff. (There's stuff in 
DocumentSettings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the drop 
box would be less crowded. Of course, for 1.5, this isn't an issue.


Richard


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask 
me why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added 
that last one).


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  
The oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is 
followed by the second case overall, it's Case 2).


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into 
the fold.  Please let me know through the list and/or by direct e-mail 
if you have strong preferences to the contrary.  Also, this is your 
chance to argue for different numbering of other environments (or 
different labeling, different text style, whatever -- within reason).


Cheers,
Paul




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Richard Heck wrote:
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has to 
be defined in the layout file because there's presently no easy way to 
pull anything else in. In 1.6, on the other hand, we'll have (we do 
have, in svn) what I call layout modules that allow you to customize 
your layout by pulling in optional stuff. (There's stuff in 
DocumentSettings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the drop 
box would be less crowded. Of course, for 1.5, this isn't an issue.




Will the users be able to perform this customization from DocSettings 
and save the modified layouts, or will they have to edit the layouts 
themselves?  (Or will some luckless soul have to revisit what I'm doing 
now?)  If it's one size fits all, deciding what goes into each module 
will be NP-hard.


/Paul



Re: AMS users: vote your preferences!

2007-09-21 Thread Rudi Gaelzer
I know this is far from the subject of the vote, but any chance to implement 
the subequations environment into the layout?  Or this is something that 
needs a deeper programing?

On Friday 21 September 2007 16:17, Paul A. Rubin wrote:
 Hi all,

 I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts,
 and there are a few oddities that need to be reconciled.  Mostly I'm
 making choices capriciously :-), but this is something I thought I would
 put to a vote.

 The following numbered environments exist in all but amsart-plain:

 Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion;
 Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise;
 Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me
 why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that
 last one).

 In the standard AMS layout, all these but one are numbered within
 sections, consecutively using a single counter (so that, for instance,
 if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The
 oddball is Case, which is not numbered by section, and has its own
 counter separate from the other items (so that if Lemma 3.13 is followed
 by the second case overall, it's Case 2).

 I don't know why Case should be treated differently from everything
 else, so in the absence of votes to the contrary I'll merge it into the
 fold.  Please let me know through the list and/or by direct e-mail if
 you have strong preferences to the contrary.  Also, this is your chance
 to argue for different numbering of other environments (or different
 labeling, different text style, whatever -- within reason).

 Cheers,
 Paul

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered Linux User # 153741


Continuous section numbers

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Conditional printing and formatting

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document that contains different printing options for
certain paragraphs. 

For example, let's say I have a series of questions and answers, I want to
produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Richard Heck wrote:
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has 
to be defined in the layout file because there's presently no easy 
way to pull anything else in. In 1.6, on the other hand, we'll have 
(we do have, in svn) what I call layout modules that allow you to 
customize your layout by pulling in optional stuff. (There's stuff in 
DocumentSettings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the 
drop box would be less crowded. Of course, for 1.5, this isn't an issue.


Will the users be able to perform this customization from DocSettings 
and save the modified layouts, or will they have to edit the layouts 
themselves?  (Or will some luckless soul have to revisit what I'm 
doing now?)  If it's one size fits all, deciding what goes into each 
module will be NP-hard.
Users can load whatever modules they want. So you could, e.g., have a 
stripped-down version that loaded theorem, lemma, etc, but left case, 
example, etc, to a module. Loading modules is easy, so it's not a 
problem for anyone to get the extra stuff. The modules themselves are 
just layout files.


Here's an example of why this is cool. Suppose you're using article.cls, 
but you want theorem environments. What do you have to do now? Edit 
article.layout and probably save it as article-with-theorems.layout, and 
then if you change your mind and want to use scrartcl.cls, you have to 
edit scrartcl.layout, etc, etc. In 1.6, you load one of the Theorems 
modules, and if you change your mind, it stays loaded. Or again: Suppose 
you have some charstyles you like, so you save them in charstyles.inc 
and include that in article.layout. Now you want to write a book, so you 
have to edit book.layout, and if you change your mind about the document 
class, you have no option but mass murder. In 1.6, you save your 
charstyles to charstyles.module (and reconfigure!), then load the module 
and live peacefully for the rest of your life.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Rudi Gaelzer wrote:
I know this is far from the subject of the vote, but any chance to implement 
the subequations environment into the layout?  Or this is something that 
needs a deeper programing?




My guess is that it would require modifying the source code that handles 
math insets -- but an actual developer could give a definitive answer.


/Paul



Re: Conditional printing and formatting

2007-09-21 Thread Paul A. Rubin

Laurent Duperval wrote:

Hi,

I want to create a document that contains different printing options for
certain paragraphs. 


For example, let's say I have a series of questions and answers, I want to
produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?

L




Branches handles most if not all of this.  See section 6.4 of the User 
Guide.  You can put questions in the main document, answers in a branch, 
and include or exclude the branch.  I'm not sure about point 3.


/Paul



Re: Continuous section numbers

2007-09-21 Thread Richard Heck

Laurent Duperval wrote:

Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?
  
Certainly, but you may need to edit the LaTeX class file to get it to 
work. That said, you might just be able to use the remreset package, 
which you can find (as usual) at ctan.org. Try in the preamble:

   \makeatletter
   [EMAIL PROTECTED]
   \makeatother
To get LyX to behave as you want, you'll have to edit the layout files.

Richard



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Conditional printing and formatting

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Laurent Duperval wrote:

Hi,

I want to create a document that contains different printing options for
certain paragraphs.
For example, let's say I have a series of questions and answers, I 
want to

produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?
Branches handles most if not all of this.  See section 6.4 of the User 
Guide.  You can put questions in the main document, answers in a 
branch, and include or exclude the branch.  I'm not sure about point 3.
On (3), the easiest thing to do would be to define some environment in 
which the questions live, and do something conditional. Exactly how 
depends upon exactly what you want to do.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Rudi Gaelzer wrote:
I know this is far from the subject of the vote, but any chance to 
implement the subequations environment into the layout?  Or this is 
something that needs a deeper programing?


My guess is that it would require modifying the source code that 
handles math insets -- but an actual developer could give a definitive 
answer.
There might already be an enhancement request about this. But yes, I'm 
pretty sure this is deep code.


Richard


--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Continuous section numbers

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 19:04:02 -0400, Richard Heck wrote:

 Laurent Duperval wrote:
 Hi,

 I want to create a document where I have multiple chapters, but I want
 \section numbers to continue. I.e. something that looks like this:

 Is this possible?
   
 Certainly, but you may need to edit the LaTeX class file to get it to 
 work. That said, you might just be able to use the remreset package, 
 which you can find (as usual) at ctan.org. Try in the preamble:
 \makeatletter
 [EMAIL PROTECTED]
 \makeatother
 To get LyX to behave as you want, you'll have to edit the layout files.
 

Hmmm... Ok, once I have all my stuff ready I'll look at that.

Thanks!

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Conditional printing and formatting

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 18:34:00 -0400, Paul A. Rubin wrote:
 Branches handles most if not all of this.  See section 6.4 of the User 
 Guide.  You can put questions in the main document, answers in a branch, 
 and include or exclude the branch.  I'm not sure about point 3.
 

Thanks, I'll take a look at that to see how to set it up correctly.

Thanks!

L



-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



jump to next column

2007-09-21 Thread Jeremy C. Reed
I have a two column document. It is my wife's recipe book with over 100 
recipes.

At first it was one column but recipes wrapped to different pages. By 
using 2-column document I can get them on one page.

Is there a lyx or latex command for jumping to the next column whether it 
is on same page or next page?

I can use \newpage between recipes, but that wastes space for short 
recipes.

  Jeremy C. Reed


Re: jump to next column

2007-09-21 Thread Richard Heck

Jeremy C. Reed wrote:
I have a two column document. It is my wife's recipe book with over 100 
recipes.


At first it was one column but recipes wrapped to different pages. By 
using 2-column document I can get them on one page.


Is there a lyx or latex command for jumping to the next column whether it 
is on same page or next page?


I can use \newpage between recipes, but that wastes space for short 
recipes.
  

The Guide to LaTeX sayeth:
If the document class option twocolumn has been selected..., then the 
two commands \pagebreak and \newpage end the current column and begin a 
new one On the other hand, \clearpage and 
\cleardoublepage...terminate the current page

May it be blessed to our understanding.

Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread David L. Johnson

Paul A. Rubin wrote:

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I would 
put to a vote.


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me 
why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that 
last one).


I don't think I am to blame for Summary, maybe Jean-Marc.  He modified 
thexse enviromnents a lot from my original hack.


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The 
oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is followed 
by the second case overall, it's Case 2).


I am trying to remember why I did that.  I do remember that that was a 
special case for some reason.  I have been trying to read through the 
documentation of the amslatex package to find that, but I have changed 
computers since then, and don't seem to have the documentation of this. 
 But you are right, it is an oddball thing.


But cases is an oddball thing.  You use this in the midst of a proof. 
Case 1, case 2, etc.  You know, like:


Case 1;  x0
blah

Case 2;  x 0
blah, blah

Case 3:  x=0
Trivial.

So having cases have the same numbering as theorem environments is 
wrong.  It would be better to reset the numbering automatically after 
each proof environment.  What I do in practice is to reset the numbering 
when needed -- although I don't recall how I did that now.  Maybe a 
simple \setcounter{cases}{0} would work...??


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into the 
fold.  


I really don't think that is right.  Cases isn't really a theorem 
environment, although it is treated like one in latex.


There was a glitch in recent versions of lyx that did not reset the 
secondary number from section to section, so if you had 4 theorems in 
section 1, the first theorem in section 2 would appear on-screen as 
theorem (2.5).  It did not print that way, though.  Someone sent me 
layout files that fixed that (maybe you?), but in any event those 
changes should be incorporated.


--

David L. Johnson

Become MicroSoft-free forever.  Ask me how.


Re: jump to next column

2007-09-21 Thread Jeremy C. Reed
On Fri, 21 Sep 2007, Richard Heck wrote:

  Is there a lyx or latex command for jumping to the next column whether it is
  on same page or next page?
  
  I can use \newpage between recipes, but that wastes space for short recipes.

 The Guide to LaTeX sayeth:
 If the document class option twocolumn has been selected..., then the two
 commands \pagebreak and \newpage end the current column and begin a new
 one On the other hand, \clearpage and \cleardoublepage...terminate the
 current page
 May it be blessed to our understanding.

Thanks! I just realized that when I viewed it! I should have waited a few 
minutes before posting.


Re: Problem with Hebrew Lyx - Reply

2007-09-21 Thread Dov Feldstern

Gideon Livshits wrote:

Hello!

Firstly, I would like to thank you for your quick response to my 
problem. It means a lot!


You're welcome. In general, you'll find people on the lyx mailing lists 
to be very responsive and helpful :) .


(BTW, I'm CC-ing the mailing lists, so that this gets into the mailing 
lists archives, and may prove useful to other users. For those other 
users: this is correspondence regarding 
http://bugzilla.lyx.org/show_bug.cgi?id=4228)




I sent an example file to the following address: [EMAIL PROTECTED]

I attach it again here.



The file you sent works for me --- so my guess is that it's a latex 
configuration issue. See below...


Soon after posting the bug, I realized that I should have kept the 
encoding default, which I did (as you mentioned). This changed the list 
of errors - from about 8 to only one, in which it complained it was 
lacking the jerus10 font, and therefore would produce neither dvi nor 
postscript.


To clarify, I am giving you all the relevant details:
Under Document Settings I have made the following changes (to 
accommodate Hebrew):

Document Class: article (Hebrew)
Postscript driver: Dvips (tried this because I saw the others weren't 
working - it too doesn't work)

Fonts: Changed nothing (kept defaults)
The same goes for everything else, I only changed the language to 
Hebrew. I *kept* the original tick under Use language's default encoding.


Under Preferences the only change I made was to select Hebrew as the 
default language instead of Hebrew (which I think is wrong anyway, since 
it apparently applies to the language of interface, which I want to stay 
in English). 


(Hmm..., I think the user interface also has to do with locale settings 
--- you should be able to change the default document language without 
changing the UI, maybe by playing around with those. If you're compiling 
from source, you can use the --disable-nls option when configuring, and 
then the UI will certainly not change... But this has nothing to do with 
the main problem we're discussing.)


So here it is:

User interface file: default
Bind file: mac
Default Language: Hebrew.


(also as an aside: some additional LyX setup which you might want to 
perform is to use keymaps --- these allow you to use Hebrew without 
having to switch languages at the keyboard level; and then also to have 
some keybindings for switching languages. See Dekel's instructions at 
http://www.cs.bgu.ac.il/~dekelts/lyx/instructions2.html, though you'll 
have to play around with it to see which parts you want and which you 
don't, they may not be up to date; and see 
http://permalink.gmane.org/gmane.editors.lyx.devel/88941 for key 
bindings files --- I would use these instead of the ones Dekel mentions.)


My Latex distribution is LiveTex 2007. You mention ivritex - I don't 
know what this is, and I don't have it installed (at least I think I 
don't). Would this fix everything? Do you know where I could get it?


ivritex (http://ivritex.sf.net) is the name of the project for adding 
Hebrew support to babel. It used to be a standalone package, but has 
been incorporated into the latest versions of babel, so if you have 
babel 3.8 then it already includes hebrew support built-in. However, you 
may still need other support packages (fonts, etc.).


I'm using TeXLive 2007 (I assume this is the same as LiveTeX?), though 
I'm on Linux/debian. This already uses babel 3.8, so there's no need for 
installing ivritex separately. There's a debian package called 
texlive-lang-hebrew, which provides a latex package called cjhebrew 
which provides the additional support needed. Try and see if you have 
some similar package that you could install.


Another option is to use the culmus fonts. For that, I think that you'll 
have to download the culmus fonts (http://culmus.sourceforge.net/, 
chances are it's also bundled for your OS), as well as install (from 
source) culmus-latex, which is an in-development part of ivritex for 
supporting the culmus fonts 
(http://sourceforge.net/project/showfiles.php?group_id=33341). Just 
installing that package may be enough.


In either case, I think one or both of the two options mentioned above 
is what will solve your issue (again, let us know either way). If you 
still need more help with correctly setting up Hebrew with LaTeX, you 
should also check out the ivritex mailing list.




Thanks a lot for all your help,

Gideon

P. S. Please tell me if I missed something or if you need more information.



Good luck, Gmar Hatima Tova!
Dov


A question on latex/bibtex

2007-09-21 Thread Nicolás

Hi!

I have just read a paper containing an interesting feature. Each citation in 
the bibliography section contains a list of links to the
pages where such citation appears. For example, if citation [1] appears in 
pages 5 and 7, in the bibliography section we have:

[1] Me and you, The book of our lives, in Kindly Publication, 2007 5 7

Does someone know how to achieve that?

Thanks,
Nicolás





Portuguese hyphenation?

2007-09-21 Thread Roberto Gorjão

Hello,

This probably is really a newbie question but there it goes: how do I 
set the Portuguese hyphenation on?


I've already set up the Portuguese language (with an utf8 encoding, 
because of BibTeX) on the document settings dialogue, but words are 
still getting broken in the wrong places.


Thanks for your help!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Latex-problem: Pagenumbering in combination with two-sided document

2007-09-21 Thread Helge Hafting

Christian Richter wrote:

Hello,
I do not have a LYX - but a LATEX-problem. I hope somebody wants to
help me anyways.

Ok, I am writing my thesis as a two sided document (Komo-script book).
The appendix has roman pagenumbering. The problem is that the last
page before the appendix is a right page (odd page number). So that
the first side of the appendix should be a right page (even number).
  

An appendix is a chapter of its own. Any two-sided
layout will start a chapter on a odd page, no matter what.
Starting a chapter (appendix or other chapter) on an even
page is usually considered ugly and bad typography - you'll
have a hard time finding any published book printed like that.

Because of the pagenumbering the first page of the appendix is a left
page (page number=1). How can I change it so that this page has the
page number 1 but is a right page?
  

Consider carefully if you really want this - it will probably only
look odd to the serious reader. Now, you can of course
use a single-sided layout and print double-sided anyway.
You will then get your appendix on a even page, and you
can of course reset the page counter to 1 anywhere you want to,
even on that even page. There surely are people that will
consider such a layout messed-up, and that cannot be good for
your thesis?

I do not want to use /cleadoublepage before the appendix because I can
not have any more pages.
  

Why not? If they count pages, well surely they won't
count a blank one? Or offer to pay for the wasted page,
if they really worry about that?

Helge Hafting


Re: Portuguese hyphenation?

2007-09-21 Thread Roberto Gorjão
Ok, I got it! MiKTeX was not properly set up and it was having problems 
in updating its format files.


Thank you!

Roberto

---
Roberto Gorjão wrote:

Hello,

This probably is really a newbie question but there it goes: how do I 
set the Portuguese hyphenation on?


I've already set up the Portuguese language (with an utf8 encoding, 
because of BibTeX) on the document settings dialogue, but words are 
still getting broken in the wrong places.


Thanks for your help!

Roberto



--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: A question on latex/bibtex

2007-09-21 Thread Bennett Helm

On Sep 21, 2007, at 9:40 AM, Nicolás wrote:


Hi!

I have just read a paper containing an interesting feature. Each  
citation in the bibliography section contains a list of links to the
pages where such citation appears. For example, if citation [1]  
appears in pages 5 and 7, in the bibliography section we have:


[1] Me and you, The book of our lives, in Kindly Publication,  
2007 5 7


Does someone know how to achieve that?


Use hyperref, specifying pagebackref as an option.

E.g., include in your preamble: \usepackage[pagebackref]{hyperref}

For the hyperref manual, see:

ftp://ctan.tug.org/tex-archive/macros/latex/contrib/hyperref/doc/ 
manual.html


Bennett

Re: Latex-problem: Pagenumbering in combination with two-sided document

2007-09-21 Thread Richard Heck

Helge Hafting wrote:

An appendix is a chapter of its own. Any two-sided
layout will start a chapter on a odd page, no matter what.
Starting a chapter (appendix or other chapter) on an even
page is usually considered ugly and bad typography - you'll
have a hard time finding any published book printed like that.

I do wish that were true. Unfortunately, it's becoming more and more common.

Richard


Document Encoding

2007-09-21 Thread Ken
Hi.  I am getting the error message:
Some characters of your document are probably not representable in
the chosen encoding.
Changing the document encoding to utf8 could help.

My document is in English without any intentional special characters
and I usually don't have this issue.  However I have cut and pasted a
lot of material into this document which may have the offending
characters (or coming in via the BibTex/bibliography).

Is there an easy way to find out where these problem characters are
(line numbers) because I am having a hard time finding them.

Thanks in advance for any suggestions.
Ken


Re: Portuguese hyphenation?

2007-09-21 Thread José Matos
On Friday 21 September 2007 14:48:08 Roberto Gorjão wrote:
 Hello,

 This probably is really a newbie question but there it goes: how do I
 set the Portuguese hyphenation on?

 I've already set up the Portuguese language (with an utf8 encoding,
 because of BibTeX) on the document settings dialogue, but words are
 still getting broken in the wrong places.

 Thanks for your help!

 Roberto

It depends on the latex distribution you are using.
In older distribution not all patterns of language hyphenation were used due 
to the memory layout of tex.
That meant that portuguese was not one of the used by default languages. :-)

For modern distributions that should not be a problem.

To see this I have created a tex file with a single line:
\relax

This is what latex was to say about it:

$ latex teste.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
entering extended mode
(./teste.tex
LaTeX2e 2005/12/01
Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, 
noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, 
ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, 
finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, 
ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, 
por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
)

-- 
José Abílio


Re: Document Encoding

2007-09-21 Thread Uwe Stöhr

Ken schrieb:

Hi.  I am getting the error message:
Some characters of your document are probably not representable in
the chosen encoding.
Changing the document encoding to utf8 could help.

Is there an easy way to find out where these problem characters are
(line numbers) because I am having a hard time finding them.


Start LyX from a console and open the document. When the error message appears, you can see in the 
console what characters are problematic.
Alternatively you delete chapter by chapter until the error message do no longer appear. Then you 
know where the problematic character is located. When you found the character, please report this to 
the list, maybe I forgot it in our unicode handling.


regards Uwe


AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I would 
put to a vote.


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me 
why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that 
last one).


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The 
oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is followed 
by the second case overall, it's Case 2).


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into the 
fold.  Please let me know through the list and/or by direct e-mail if 
you have strong preferences to the contrary.  Also, this is your chance 
to argue for different numbering of other environments (or different 
labeling, different text style, whatever -- within reason).


Cheers,
Paul



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I 
would put to a vote.
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has to 
be defined in the layout file because there's presently no easy way to 
pull anything else in. In 1.6, on the other hand, we'll have (we do 
have, in svn) what I call layout modules that allow you to customize 
your layout by pulling in optional stuff. (There's stuff in 
DocumentSettings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the drop 
box would be less crowded. Of course, for 1.5, this isn't an issue.


Richard


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask 
me why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added 
that last one).


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  
The oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is 
followed by the second case overall, it's Case 2).


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into 
the fold.  Please let me know through the list and/or by direct e-mail 
if you have strong preferences to the contrary.  Also, this is your 
chance to argue for different numbering of other environments (or 
different labeling, different text style, whatever -- within reason).


Cheers,
Paul




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Richard Heck wrote:
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has to 
be defined in the layout file because there's presently no easy way to 
pull anything else in. In 1.6, on the other hand, we'll have (we do 
have, in svn) what I call layout modules that allow you to customize 
your layout by pulling in optional stuff. (There's stuff in 
DocumentSettings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the drop 
box would be less crowded. Of course, for 1.5, this isn't an issue.




Will the users be able to perform this customization from DocSettings 
and save the modified layouts, or will they have to edit the layouts 
themselves?  (Or will some luckless soul have to revisit what I'm doing 
now?)  If it's one size fits all, deciding what goes into each module 
will be NP-hard.


/Paul



Re: AMS users: vote your preferences!

2007-09-21 Thread Rudi Gaelzer
I know this is far from the subject of the vote, but any chance to implement 
the subequations environment into the layout?  Or this is something that 
needs a deeper programing?

On Friday 21 September 2007 16:17, Paul A. Rubin wrote:
 Hi all,

 I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts,
 and there are a few oddities that need to be reconciled.  Mostly I'm
 making choices capriciously :-), but this is something I thought I would
 put to a vote.

 The following numbered environments exist in all but amsart-plain:

 Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion;
 Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise;
 Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me
 why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that
 last one).

 In the standard AMS layout, all these but one are numbered within
 sections, consecutively using a single counter (so that, for instance,
 if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The
 oddball is Case, which is not numbered by section, and has its own
 counter separate from the other items (so that if Lemma 3.13 is followed
 by the second case overall, it's Case 2).

 I don't know why Case should be treated differently from everything
 else, so in the absence of votes to the contrary I'll merge it into the
 fold.  Please let me know through the list and/or by direct e-mail if
 you have strong preferences to the contrary.  Also, this is your chance
 to argue for different numbering of other environments (or different
 labeling, different text style, whatever -- within reason).

 Cheers,
 Paul

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered Linux User # 153741


Continuous section numbers

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Conditional printing and formatting

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document that contains different printing options for
certain paragraphs. 

For example, let's say I have a series of questions and answers, I want to
produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Richard Heck wrote:
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has 
to be defined in the layout file because there's presently no easy 
way to pull anything else in. In 1.6, on the other hand, we'll have 
(we do have, in svn) what I call layout modules that allow you to 
customize your layout by pulling in optional stuff. (There's stuff in 
DocumentSettings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the 
drop box would be less crowded. Of course, for 1.5, this isn't an issue.


Will the users be able to perform this customization from DocSettings 
and save the modified layouts, or will they have to edit the layouts 
themselves?  (Or will some luckless soul have to revisit what I'm 
doing now?)  If it's one size fits all, deciding what goes into each 
module will be NP-hard.
Users can load whatever modules they want. So you could, e.g., have a 
stripped-down version that loaded theorem, lemma, etc, but left case, 
example, etc, to a module. Loading modules is easy, so it's not a 
problem for anyone to get the extra stuff. The modules themselves are 
just layout files.


Here's an example of why this is cool. Suppose you're using article.cls, 
but you want theorem environments. What do you have to do now? Edit 
article.layout and probably save it as article-with-theorems.layout, and 
then if you change your mind and want to use scrartcl.cls, you have to 
edit scrartcl.layout, etc, etc. In 1.6, you load one of the Theorems 
modules, and if you change your mind, it stays loaded. Or again: Suppose 
you have some charstyles you like, so you save them in charstyles.inc 
and include that in article.layout. Now you want to write a book, so you 
have to edit book.layout, and if you change your mind about the document 
class, you have no option but mass murder. In 1.6, you save your 
charstyles to charstyles.module (and reconfigure!), then load the module 
and live peacefully for the rest of your life.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Rudi Gaelzer wrote:
I know this is far from the subject of the vote, but any chance to implement 
the subequations environment into the layout?  Or this is something that 
needs a deeper programing?




My guess is that it would require modifying the source code that handles 
math insets -- but an actual developer could give a definitive answer.


/Paul



Re: Conditional printing and formatting

2007-09-21 Thread Paul A. Rubin

Laurent Duperval wrote:

Hi,

I want to create a document that contains different printing options for
certain paragraphs. 


For example, let's say I have a series of questions and answers, I want to
produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?

L




Branches handles most if not all of this.  See section 6.4 of the User 
Guide.  You can put questions in the main document, answers in a branch, 
and include or exclude the branch.  I'm not sure about point 3.


/Paul



Re: Continuous section numbers

2007-09-21 Thread Richard Heck

Laurent Duperval wrote:

Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?
  
Certainly, but you may need to edit the LaTeX class file to get it to 
work. That said, you might just be able to use the remreset package, 
which you can find (as usual) at ctan.org. Try in the preamble:

   \makeatletter
   [EMAIL PROTECTED]
   \makeatother
To get LyX to behave as you want, you'll have to edit the layout files.

Richard



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Conditional printing and formatting

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Laurent Duperval wrote:

Hi,

I want to create a document that contains different printing options for
certain paragraphs.
For example, let's say I have a series of questions and answers, I 
want to

produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?
Branches handles most if not all of this.  See section 6.4 of the User 
Guide.  You can put questions in the main document, answers in a 
branch, and include or exclude the branch.  I'm not sure about point 3.
On (3), the easiest thing to do would be to define some environment in 
which the questions live, and do something conditional. Exactly how 
depends upon exactly what you want to do.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Rudi Gaelzer wrote:
I know this is far from the subject of the vote, but any chance to 
implement the subequations environment into the layout?  Or this is 
something that needs a deeper programing?


My guess is that it would require modifying the source code that 
handles math insets -- but an actual developer could give a definitive 
answer.
There might already be an enhancement request about this. But yes, I'm 
pretty sure this is deep code.


Richard


--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Continuous section numbers

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 19:04:02 -0400, Richard Heck wrote:

 Laurent Duperval wrote:
 Hi,

 I want to create a document where I have multiple chapters, but I want
 \section numbers to continue. I.e. something that looks like this:

 Is this possible?
   
 Certainly, but you may need to edit the LaTeX class file to get it to 
 work. That said, you might just be able to use the remreset package, 
 which you can find (as usual) at ctan.org. Try in the preamble:
 \makeatletter
 [EMAIL PROTECTED]
 \makeatother
 To get LyX to behave as you want, you'll have to edit the layout files.
 

Hmmm... Ok, once I have all my stuff ready I'll look at that.

Thanks!

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Conditional printing and formatting

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 18:34:00 -0400, Paul A. Rubin wrote:
 Branches handles most if not all of this.  See section 6.4 of the User 
 Guide.  You can put questions in the main document, answers in a branch, 
 and include or exclude the branch.  I'm not sure about point 3.
 

Thanks, I'll take a look at that to see how to set it up correctly.

Thanks!

L



-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



jump to next column

2007-09-21 Thread Jeremy C. Reed
I have a two column document. It is my wife's recipe book with over 100 
recipes.

At first it was one column but recipes wrapped to different pages. By 
using 2-column document I can get them on one page.

Is there a lyx or latex command for jumping to the next column whether it 
is on same page or next page?

I can use \newpage between recipes, but that wastes space for short 
recipes.

  Jeremy C. Reed


Re: jump to next column

2007-09-21 Thread Richard Heck

Jeremy C. Reed wrote:
I have a two column document. It is my wife's recipe book with over 100 
recipes.


At first it was one column but recipes wrapped to different pages. By 
using 2-column document I can get them on one page.


Is there a lyx or latex command for jumping to the next column whether it 
is on same page or next page?


I can use \newpage between recipes, but that wastes space for short 
recipes.
  

The Guide to LaTeX sayeth:
If the document class option twocolumn has been selected..., then the 
two commands \pagebreak and \newpage end the current column and begin a 
new one On the other hand, \clearpage and 
\cleardoublepage...terminate the current page

May it be blessed to our understanding.

Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread David L. Johnson

Paul A. Rubin wrote:

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I would 
put to a vote.


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me 
why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that 
last one).


I don't think I am to blame for Summary, maybe Jean-Marc.  He modified 
thexse enviromnents a lot from my original hack.


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The 
oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is followed 
by the second case overall, it's Case 2).


I am trying to remember why I did that.  I do remember that that was a 
special case for some reason.  I have been trying to read through the 
documentation of the amslatex package to find that, but I have changed 
computers since then, and don't seem to have the documentation of this. 
 But you are right, it is an oddball thing.


But cases is an oddball thing.  You use this in the midst of a proof. 
Case 1, case 2, etc.  You know, like:


Case 1;  x0
blah

Case 2;  x 0
blah, blah

Case 3:  x=0
Trivial.

So having cases have the same numbering as theorem environments is 
wrong.  It would be better to reset the numbering automatically after 
each proof environment.  What I do in practice is to reset the numbering 
when needed -- although I don't recall how I did that now.  Maybe a 
simple \setcounter{cases}{0} would work...??


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into the 
fold.  


I really don't think that is right.  Cases isn't really a theorem 
environment, although it is treated like one in latex.


There was a glitch in recent versions of lyx that did not reset the 
secondary number from section to section, so if you had 4 theorems in 
section 1, the first theorem in section 2 would appear on-screen as 
theorem (2.5).  It did not print that way, though.  Someone sent me 
layout files that fixed that (maybe you?), but in any event those 
changes should be incorporated.


--

David L. Johnson

Become MicroSoft-free forever.  Ask me how.


Re: jump to next column

2007-09-21 Thread Jeremy C. Reed
On Fri, 21 Sep 2007, Richard Heck wrote:

  Is there a lyx or latex command for jumping to the next column whether it is
  on same page or next page?
  
  I can use \newpage between recipes, but that wastes space for short recipes.

 The Guide to LaTeX sayeth:
 If the document class option twocolumn has been selected..., then the two
 commands \pagebreak and \newpage end the current column and begin a new
 one On the other hand, \clearpage and \cleardoublepage...terminate the
 current page
 May it be blessed to our understanding.

Thanks! I just realized that when I viewed it! I should have waited a few 
minutes before posting.


Re: Problem with Hebrew Lyx - Reply

2007-09-21 Thread Dov Feldstern

Gideon Livshits wrote:

Hello!

Firstly, I would like to thank you for your quick response to my 
problem. It means a lot!


You're welcome. In general, you'll find people on the lyx mailing lists 
to be very responsive and helpful :) .


(BTW, I'm CC-ing the mailing lists, so that this gets into the mailing 
lists archives, and may prove useful to other users. For those other 
users: this is correspondence regarding 
http://bugzilla.lyx.org/show_bug.cgi?id=4228)




I sent an example file to the following address: [EMAIL PROTECTED]

I attach it again here.



The file you sent works for me --- so my guess is that it's a latex 
configuration issue. See below...


Soon after posting the bug, I realized that I should have kept the 
encoding default, which I did (as you mentioned). This changed the list 
of errors - from about 8 to only one, in which it complained it was 
lacking the jerus10 font, and therefore would produce neither dvi nor 
postscript.


To clarify, I am giving you all the relevant details:
Under Document Settings I have made the following changes (to 
accommodate Hebrew):

Document Class: article (Hebrew)
Postscript driver: Dvips (tried this because I saw the others weren't 
working - it too doesn't work)

Fonts: Changed nothing (kept defaults)
The same goes for everything else, I only changed the language to 
Hebrew. I *kept* the original tick under "Use language's default encoding".


Under Preferences the only change I made was to select Hebrew as the 
default language instead of Hebrew (which I think is wrong anyway, since 
it apparently applies to the language of interface, which I want to stay 
in English). 


(Hmm..., I think the user interface also has to do with locale settings 
--- you should be able to change the default document language without 
changing the UI, maybe by playing around with those. If you're compiling 
from source, you can use the --disable-nls option when configuring, and 
then the UI will certainly not change... But this has nothing to do with 
the main problem we're discussing.)


So here it is:

User interface file: default
Bind file: mac
Default Language: Hebrew.


(also as an aside: some additional LyX setup which you might want to 
perform is to use keymaps --- these allow you to use Hebrew without 
having to switch languages at the keyboard level; and then also to have 
some keybindings for switching languages. See Dekel's instructions at 
http://www.cs.bgu.ac.il/~dekelts/lyx/instructions2.html, though you'll 
have to play around with it to see which parts you want and which you 
don't, they may not be up to date; and see 
http://permalink.gmane.org/gmane.editors.lyx.devel/88941 for key 
bindings files --- I would use these instead of the ones Dekel mentions.)


My Latex distribution is LiveTex 2007. You mention ivritex - I don't 
know what this is, and I don't have it installed (at least I think I 
don't). Would this fix everything? Do you know where I could get it?


ivritex (http://ivritex.sf.net) is the name of the project for adding 
Hebrew support to babel. It used to be a standalone package, but has 
been incorporated into the latest versions of babel, so if you have 
babel 3.8 then it already includes hebrew support built-in. However, you 
may still need other support packages (fonts, etc.).


I'm using TeXLive 2007 (I assume this is the same as LiveTeX?), though 
I'm on Linux/debian. This already uses babel 3.8, so there's no need for 
installing ivritex separately. There's a debian package called 
texlive-lang-hebrew, which provides a latex package called cjhebrew 
which provides the additional support needed. Try and see if you have 
some similar package that you could install.


Another option is to use the culmus fonts. For that, I think that you'll 
have to download the culmus fonts (http://culmus.sourceforge.net/, 
chances are it's also bundled for your OS), as well as install (from 
source) culmus-latex, which is an in-development part of ivritex for 
supporting the culmus fonts 
(http://sourceforge.net/project/showfiles.php?group_id=33341). Just 
installing that package may be enough.


In either case, I think one or both of the two options mentioned above 
is what will solve your issue (again, let us know either way). If you 
still need more help with correctly setting up Hebrew with LaTeX, you 
should also check out the ivritex mailing list.




Thanks a lot for all your help,

Gideon

P. S. Please tell me if I missed something or if you need more information.



Good luck, Gmar Hatima Tova!
Dov


A question on latex/bibtex

2007-09-21 Thread Nicolás

Hi!

I have just read a paper containing an interesting feature. Each citation in 
the bibliography section contains a list of links to the
pages where such citation appears. For example, if citation [1] appears in 
pages 5 and 7, in the bibliography section we have:

[1] Me and you, "The book of our lives", in Kindly Publication, 2007 5 7

Does someone know how to achieve that?

Thanks,
Nicolás





Portuguese hyphenation?

2007-09-21 Thread Roberto Gorjão

Hello,

This probably is really a newbie question but there it goes: how do I 
set the Portuguese hyphenation on?


I've already set up the Portuguese language (with an utf8 encoding, 
because of BibTeX) on the document settings dialogue, but words are 
still getting broken in the wrong places.


Thanks for your help!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Latex-problem: Pagenumbering in combination with two-sided document

2007-09-21 Thread Helge Hafting

Christian Richter wrote:

Hello,
I do not have a LYX - but a LATEX-problem. I hope somebody wants to
help me anyways.

Ok, I am writing my thesis as a two sided document (Komo-script book).
The appendix has roman pagenumbering. The problem is that the last
page before the appendix is a right page (odd page number). So that
the first side of the appendix should be a right page (even number).
  

An appendix is a chapter of its own. Any two-sided
layout will start a chapter on a odd page, no matter what.
Starting a chapter (appendix or other chapter) on an even
page is usually considered ugly and bad typography - you'll
have a hard time finding any published book printed like that.

Because of the pagenumbering the first page of the appendix is a left
page (page number=1). How can I change it so that this page has the
page number 1 but is a right page?
  

Consider carefully if you really want this - it will probably only
look odd to the serious reader. Now, you can of course
use a single-sided layout and print double-sided anyway.
You will then get your appendix on a even page, and you
can of course reset the page counter to 1 anywhere you want to,
even on that even page. There surely are people that will
consider such a layout messed-up, and that cannot be good for
your thesis?

I do not want to use /cleadoublepage before the appendix because I can
not have any more pages.
  

Why not? If they count pages, well surely they won't
count a blank one? Or offer to pay for the wasted page,
if they really worry about that?

Helge Hafting


Re: Portuguese hyphenation?

2007-09-21 Thread Roberto Gorjão
Ok, I got it! MiKTeX was not properly set up and it was having problems 
in updating its format files.


Thank you!

Roberto

---
Roberto Gorjão wrote:

Hello,

This probably is really a newbie question but there it goes: how do I 
set the Portuguese hyphenation on?


I've already set up the Portuguese language (with an utf8 encoding, 
because of BibTeX) on the document settings dialogue, but words are 
still getting broken in the wrong places.


Thanks for your help!

Roberto



--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: A question on latex/bibtex

2007-09-21 Thread Bennett Helm

On Sep 21, 2007, at 9:40 AM, Nicolás wrote:


Hi!

I have just read a paper containing an interesting feature. Each  
citation in the bibliography section contains a list of links to the
pages where such citation appears. For example, if citation [1]  
appears in pages 5 and 7, in the bibliography section we have:


[1] Me and you, "The book of our lives", in Kindly Publication,  
2007 5 7


Does someone know how to achieve that?


Use hyperref, specifying "pagebackref" as an option.

E.g., include in your preamble: \usepackage[pagebackref]{hyperref}

For the hyperref manual, see:




Bennett

Re: Latex-problem: Pagenumbering in combination with two-sided document

2007-09-21 Thread Richard Heck

Helge Hafting wrote:

An appendix is a chapter of its own. Any two-sided
layout will start a chapter on a odd page, no matter what.
Starting a chapter (appendix or other chapter) on an even
page is usually considered ugly and bad typography - you'll
have a hard time finding any published book printed like that.

I do wish that were true. Unfortunately, it's becoming more and more common.

Richard


Document Encoding

2007-09-21 Thread Ken
Hi.  I am getting the error message:
"Some characters of your document are probably not representable in
the chosen encoding.
Changing the document encoding to utf8 could help."

My document is in English without any intentional special characters
and I usually don't have this issue.  However I have cut and pasted a
lot of material into this document which may have the offending
characters (or coming in via the BibTex/bibliography).

Is there an easy way to find out where these problem characters are
(line numbers) because I am having a hard time finding them.

Thanks in advance for any suggestions.
Ken


Re: Portuguese hyphenation?

2007-09-21 Thread José Matos
On Friday 21 September 2007 14:48:08 Roberto Gorjão wrote:
> Hello,
>
> This probably is really a newbie question but there it goes: how do I
> set the Portuguese hyphenation on?
>
> I've already set up the Portuguese language (with an utf8 encoding,
> because of BibTeX) on the document settings dialogue, but words are
> still getting broken in the wrong places.
>
> Thanks for your help!
>
> Roberto

It depends on the latex distribution you are using.
In older distribution not all patterns of language hyphenation were used due 
to the memory layout of tex.
That meant that portuguese was not one of the used by default languages. :-)

For modern distributions that should not be a problem.

To see this I have created a tex file with a single line:
\relax

This is what latex was to say about it:

$ latex teste.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./teste.tex
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang, 
noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, 
ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, 
finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, 
ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, 
por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
)

-- 
José Abílio


Re: Document Encoding

2007-09-21 Thread Uwe Stöhr

Ken schrieb:

Hi.  I am getting the error message:
"Some characters of your document are probably not representable in
the chosen encoding.
Changing the document encoding to utf8 could help."

Is there an easy way to find out where these problem characters are
(line numbers) because I am having a hard time finding them.


Start LyX from a console and open the document. When the error message appears, you can see in the 
console what characters are problematic.
Alternatively you delete chapter by chapter until the error message do no longer appear. Then you 
know where the problematic character is located. When you found the character, please report this to 
the list, maybe I forgot it in our unicode handling.


regards Uwe


AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I would 
put to a vote.


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me 
why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that 
last one).


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The 
oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is followed 
by the second case overall, it's Case 2).


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into the 
fold.  Please let me know through the list and/or by direct e-mail if 
you have strong preferences to the contrary.  Also, this is your chance 
to argue for different numbering of other environments (or different 
labeling, different text style, whatever -- within reason).


Cheers,
Paul



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I 
would put to a vote.
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has to 
be defined in the layout file because there's presently no easy way to 
pull anything else in. In 1.6, on the other hand, we'll have (we do 
have, in svn) what I call layout "modules" that allow you to customize 
your layout by pulling in optional stuff. (There's stuff in 
Document>Settings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the drop 
box would be less crowded. Of course, for 1.5, this isn't an issue.


Richard


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask 
me why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added 
that last one).


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  
The oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is 
followed by the second case overall, it's Case 2).


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into 
the fold.  Please let me know through the list and/or by direct e-mail 
if you have strong preferences to the contrary.  Also, this is your 
chance to argue for different numbering of other environments (or 
different labeling, different text style, whatever -- within reason).


Cheers,
Paul




--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Richard Heck wrote:
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has to 
be defined in the layout file because there's presently no easy way to 
pull anything else in. In 1.6, on the other hand, we'll have (we do 
have, in svn) what I call layout "modules" that allow you to customize 
your layout by pulling in optional stuff. (There's stuff in 
Document>Settings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the drop 
box would be less crowded. Of course, for 1.5, this isn't an issue.




Will the users be able to perform this customization from Doc>Settings 
and save the modified layouts, or will they have to edit the layouts 
themselves?  (Or will some luckless soul have to revisit what I'm doing 
now?)  If it's one size fits all, deciding what goes into each module 
will be NP-hard.


/Paul



Re: AMS users: vote your preferences!

2007-09-21 Thread Rudi Gaelzer
I know this is far from the subject of the vote, but any chance to implement 
the subequations environment into the layout?  Or this is something that 
needs a deeper programing?

On Friday 21 September 2007 16:17, Paul A. Rubin wrote:
> Hi all,
>
> I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts,
> and there are a few oddities that need to be reconciled.  Mostly I'm
> making choices capriciously :-), but this is something I thought I would
> put to a vote.
>
> The following numbered environments exist in all but amsart-plain:
>
> Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion;
> Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise;
> Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me
> why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that
> last one).
>
> In the standard AMS layout, all these but one are numbered within
> sections, consecutively using a single counter (so that, for instance,
> if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The
> oddball is Case, which is not numbered by section, and has its own
> counter separate from the other items (so that if Lemma 3.13 is followed
> by the second case overall, it's Case 2).
>
> I don't know why Case should be treated differently from everything
> else, so in the absence of votes to the contrary I'll merge it into the
> fold.  Please let me know through the list and/or by direct e-mail if
> you have strong preferences to the contrary.  Also, this is your chance
> to argue for different numbering of other environments (or different
> labeling, different text style, whatever -- within reason).
>
> Cheers,
> Paul

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered Linux User # 153741


Continuous section numbers

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Conditional printing and formatting

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document that contains different printing options for
certain paragraphs. 

For example, let's say I have a series of questions and answers, I want to
produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Richard Heck wrote:
On a slightly different note, at least in 1.6, it will be possible to 
simplify some of this. Dang near everything you could ever want has 
to be defined in the layout file because there's presently no easy 
way to pull anything else in. In 1.6, on the other hand, we'll have 
(we do have, in svn) what I call layout "modules" that allow you to 
customize your layout by pulling in optional stuff. (There's stuff in 
Document>Settings that allows you to do this.) So, if it seemed wise, 
some of the less crucial stuff could be pulled out into a module, and 
then people who needed it could include it, so that by default the 
drop box would be less crowded. Of course, for 1.5, this isn't an issue.


Will the users be able to perform this customization from Doc>Settings 
and save the modified layouts, or will they have to edit the layouts 
themselves?  (Or will some luckless soul have to revisit what I'm 
doing now?)  If it's one size fits all, deciding what goes into each 
module will be NP-hard.
Users can load whatever modules they want. So you could, e.g., have a 
stripped-down version that loaded theorem, lemma, etc, but left case, 
example, etc, to a module. Loading modules is easy, so it's not a 
problem for anyone to get the extra stuff. The modules themselves are 
just layout files.


Here's an example of why this is cool. Suppose you're using article.cls, 
but you want theorem environments. What do you have to do now? Edit 
article.layout and probably save it as article-with-theorems.layout, and 
then if you change your mind and want to use scrartcl.cls, you have to 
edit scrartcl.layout, etc, etc. In 1.6, you load one of the Theorems 
modules, and if you change your mind, it stays loaded. Or again: Suppose 
you have some charstyles you like, so you save them in charstyles.inc 
and include that in article.layout. Now you want to write a book, so you 
have to edit book.layout, and if you change your mind about the document 
class, you have no option but mass murder. In 1.6, you save your 
charstyles to charstyles.module (and reconfigure!), then load the module 
and live peacefully for the rest of your life.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Paul A. Rubin

Rudi Gaelzer wrote:
I know this is far from the subject of the vote, but any chance to implement 
the subequations environment into the layout?  Or this is something that 
needs a deeper programing?




My guess is that it would require modifying the source code that handles 
math insets -- but an actual developer could give a definitive answer.


/Paul



Re: Conditional printing and formatting

2007-09-21 Thread Paul A. Rubin

Laurent Duperval wrote:

Hi,

I want to create a document that contains different printing options for
certain paragraphs. 


For example, let's say I have a series of questions and answers, I want to
produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?

L




Branches handles most if not all of this.  See section 6.4 of the User 
Guide.  You can put questions in the main document, answers in a branch, 
and include or exclude the branch.  I'm not sure about point 3.


/Paul



Re: Continuous section numbers

2007-09-21 Thread Richard Heck

Laurent Duperval wrote:

Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?
  
Certainly, but you may need to edit the LaTeX class file to get it to 
work. That said, you might just be able to use the remreset package, 
which you can find (as usual) at ctan.org. Try in the preamble:

   \makeatletter
   [EMAIL PROTECTED]
   \makeatother
To get LyX to behave as you want, you'll have to edit the layout files.

Richard



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Conditional printing and formatting

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Laurent Duperval wrote:

Hi,

I want to create a document that contains different printing options for
certain paragraphs.
For example, let's say I have a series of questions and answers, I 
want to

produce three types of output:

1. A question followed by the answer.
2. Only show the questions.
3. Only show the questions but as \sections or \subsections, not sure
which yet.

Is this feasible?
Branches handles most if not all of this.  See section 6.4 of the User 
Guide.  You can put questions in the main document, answers in a 
branch, and include or exclude the branch.  I'm not sure about point 3.
On (3), the easiest thing to do would be to define some environment in 
which the questions live, and do something conditional. Exactly how 
depends upon exactly what you want to do.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread Richard Heck

Paul A. Rubin wrote:

Rudi Gaelzer wrote:
I know this is far from the subject of the vote, but any chance to 
implement the subequations environment into the layout?  Or this is 
something that needs a deeper programing?


My guess is that it would require modifying the source code that 
handles math insets -- but an actual developer could give a definitive 
answer.
There might already be an enhancement request about this. But yes, I'm 
pretty sure this is deep code.


Richard


--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Continuous section numbers

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 19:04:02 -0400, Richard Heck wrote:

> Laurent Duperval wrote:
>> Hi,
>>
>> I want to create a document where I have multiple chapters, but I want
>> \section numbers to continue. I.e. something that looks like this:

>> Is this possible?
>>   
> Certainly, but you may need to edit the LaTeX class file to get it to 
> work. That said, you might just be able to use the remreset package, 
> which you can find (as usual) at ctan.org. Try in the preamble:
> \makeatletter
> [EMAIL PROTECTED]
> \makeatother
> To get LyX to behave as you want, you'll have to edit the layout files.
> 

Hmmm... Ok, once I have all my stuff ready I'll look at that.

Thanks!

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Conditional printing and formatting

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 18:34:00 -0400, Paul A. Rubin wrote:
> Branches handles most if not all of this.  See section 6.4 of the User 
> Guide.  You can put questions in the main document, answers in a branch, 
> and include or exclude the branch.  I'm not sure about point 3.
> 

Thanks, I'll take a look at that to see how to set it up correctly.

Thanks!

L



-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



jump to next column

2007-09-21 Thread Jeremy C. Reed
I have a two column document. It is my wife's recipe book with over 100 
recipes.

At first it was one column but recipes wrapped to different pages. By 
using 2-column document I can get them on one page.

Is there a lyx or latex command for jumping to the next column whether it 
is on same page or next page?

I can use \newpage between recipes, but that wastes space for short 
recipes.

  Jeremy C. Reed


Re: jump to next column

2007-09-21 Thread Richard Heck

Jeremy C. Reed wrote:
I have a two column document. It is my wife's recipe book with over 100 
recipes.


At first it was one column but recipes wrapped to different pages. By 
using 2-column document I can get them on one page.


Is there a lyx or latex command for jumping to the next column whether it 
is on same page or next page?


I can use \newpage between recipes, but that wastes space for short 
recipes.
  

The "Guide to LaTeX" sayeth:
If the document class option twocolumn has been selected..., then the 
two commands \pagebreak and \newpage end the current column and begin a 
new one On the other hand, \clearpage and 
\cleardoublepage...terminate the current page

May it be blessed to our understanding.

Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: AMS users: vote your preferences!

2007-09-21 Thread David L. Johnson

Paul A. Rubin wrote:

Hi all,

I'm revising the amsart, amsart-plain, amsart-seq and amsbook layouts, 
and there are a few oddities that need to be reconciled.  Mostly I'm 
making choices capriciously :-), but this is something I thought I would 
put to a vote.


The following numbered environments exist in all but amsart-plain:

Theorem; Corollary; Lemma; Proposition; Conjecture; Criterion; 
Algorithm; Axiom; Definition; Example; Condition; Problem; Exercise; 
Remark; Note; Notation; Claim; Summary (yes it's numbered, don't ask me 
why); Acknowledgement; Case; Conclusion; Fact; Assumption (I added that 
last one).


I don't think I am to blame for Summary, maybe Jean-Marc.  He modified 
thexse enviromnents a lot from my original hack.


In the standard AMS layout, all these but one are numbered within 
sections, consecutively using a single counter (so that, for instance, 
if a lemma appears in section 3 after theorem 12, it's Lemma 3.13).  The 
oddball is Case, which is not numbered by section, and has its own 
counter separate from the other items (so that if Lemma 3.13 is followed 
by the second case overall, it's Case 2).


I am trying to remember why I did that.  I do remember that that was a 
"special case" for some reason.  I have been trying to read through the 
documentation of the amslatex package to find that, but I have changed 
computers since then, and don't seem to have the documentation of this. 
 But you are right, it is an oddball thing.


But cases is an oddball thing.  You use this in the midst of a proof. 
Case 1, case 2, etc.  You know, like:


Case 1;  x>0
blah

Case 2;  x< 0
blah, blah

Case 3:  x=0
Trivial.

So having cases have the same numbering as theorem environments is 
wrong.  It would be better to reset the numbering automatically after 
each proof environment.  What I do in practice is to reset the numbering 
when needed -- although I don't recall how I did that now.  Maybe a 
simple \setcounter{cases}{0} would work...??


I don't know why Case should be treated differently from everything 
else, so in the absence of votes to the contrary I'll merge it into the 
fold.  


I really don't think that is right.  Cases isn't really a theorem 
environment, although it is treated like one in latex.


There was a glitch in recent versions of lyx that did not reset the 
secondary number from section to section, so if you had 4 theorems in 
section 1, the first theorem in section 2 would appear on-screen as 
theorem (2.5).  It did not print that way, though.  Someone sent me 
layout files that fixed that (maybe you?), but in any event those 
changes should be incorporated.


--

David L. Johnson

Become MicroSoft-free forever.  Ask me how.


Re: jump to next column

2007-09-21 Thread Jeremy C. Reed
On Fri, 21 Sep 2007, Richard Heck wrote:

> > Is there a lyx or latex command for jumping to the next column whether it is
> > on same page or next page?
> > 
> > I can use \newpage between recipes, but that wastes space for short recipes.
> >   
> The "Guide to LaTeX" sayeth:
> If the document class option twocolumn has been selected..., then the two
> commands \pagebreak and \newpage end the current column and begin a new
> one On the other hand, \clearpage and \cleardoublepage...terminate the
> current page
> May it be blessed to our understanding.

Thanks! I just realized that when I viewed it! I should have waited a few 
minutes before posting.