Re: index without letters and Nomenclature

2010-01-14 Thread stephen's mailinglist account
On Wed, Jan 13, 2010 at 1:48 PM, Enrico Guastaldi
enrico.guasta...@gmail.com wrote:
 Dear Stephen,
 Actually I cannot report a problem, because nothing happens when I click the
 button Create PDF after inserting Nomenclature entry and Nomenclature
 List.
 Should I do some procedure to report the problem, such as bug track or
 whatsoever log file?
 Thanks anyway.
 Cheers,
 Enrico.


 

 can you post something that reproduces your nomenclature problem?

 --
 Stephen



Personally to classify it as a bug I would need to be able to
replicate the problem and without a file that fails for you I can
neither replicate it, nor troubleshoot.

I presume you can make pdfs anyway before you tried adding a nomenclature.

-- 
Stephen


Re: Lyx in Fedora 12

2010-01-14 Thread Rex Dieter
Pavel Sanda wrote:

 Rex Dieter wrote:
 I will commit the new Require to rawhide (and release there). The change
 will
 be propagated to F-11 and F-12 with LyX's the next stable release 1.6.6
 as there is no need to issue an update with this single change.

 Reminds me, for posterity, I'll brainstorm on ways to make GraphicsMagick
 work here too (and possibly allow for either it or ImageMagick satisfy
 this dependency).
 
 lyx should support GraphicsMagick out of the box, the only thing i dont
 remember is whether we backported it to branch.

oh, good to know. thanks!

-- Rex




Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Helge Hafting

Liviu Andronic wrote:

Dear all
Sorry for the cross-posting, but this is at the same time posting a
solution and requesting a feature.

I've been using table floats with subfloats and normal tables, and
they work nicely. However, when the float becomes too long for the
page---because of the length of the subtables---, it will not break.
I've tried to use longtables in the subfloats, but compilation fails.
This seems to be normal behaviour for LaTeX [1].


A float supposed to never break - that is the point of having
floats in the first place. A float may float to the next page
precisely to avoid breaking. This because images/tables cannot
be broken in a useful way. (Especially images.) A float is supposed
to be a single unbreakable block, no
matter what you actually put into it.

Non-breaking is not the main effect of a float, an
image or table won't break if you put it directly in the
text without a float. But then you get bad page breaking
with large white gaps. A float floats so that these
white gaps is avoided.

The longtable is what you use when you want a table to
break across pages. You don't put it in a float, you just put the
longtable directly in the text. It will break when necessary, and 
optionally repeat header rows after the break so the continued

table will be easier to read.


So:

When you want a one-piece table, use a table inside a float.

When you want a table that can break across pages, use a longtable
without the float.

And if you want several tables so that the page can break
between them, put each table into a float of its own.

If you want two tables together without a page break between them,
put them in the same float.

With these rules, no ERT is necessary. (I.e. LyX is fine as-is.)
Are you trying to do something unusual?

I guess your ERT is there to get the captions you want? It seems
risky putting floats in between tables, because the floats
might float somewhere else and that would look wrong.



Helge Hafting



RE: floats and subfloats with longtables SOLVED

2010-01-14 Thread Rob Oakes
Hi Helge,

You make good  points, but there is a third use case that I am currently 
struggling with (and which Liviu's solution appears to address, at least in 
part).  What do you do with long tables that you don't want to disrupt the flow 
of the text?

Let me give you an example.  I am currently working on a book about writing 
with open source tools.  One of the chapters in this book is an overview of the 
different LaTeX classes and their options.  For some of the classes (like 
Memoir and Beamer), there are many different options that control the 
appearance of headers, footers and chapter headings.  In trying to describe the 
options, I've found that the most space efficient way is to create a 
long-table.  Some of these tables can stretch over two, or sometimes even three 
pages.

However, I want them to work like floats, in that the table will be started at 
the top of a new page without disrupting the flow of the other text.  The 
current long-table approach doesn't work very well in that I have to manually 
calculate the page breaks and move the environment to an appropriate place in 
the text.  This is similar to how I would need to work with Word and is very 
frustrating.

Are you aware of a method to position long tables so that they combine the best 
featrues of the float environment (e.g. semi-automatic displacement so that 
they don't disrupt the flow of the text) and the long-table environment (so 
that you can have page breaks at appropriate places)?

For me, getting the sort of sub-labeling described by Liviu is not something I 
am concerned about.  In fact, I would prefer to maintain the standard labeling 
scheme (Table ChapNum.TableNum).

Cheers,

Rob Oakes




Re: Beamer and custom enumeration

2010-01-14 Thread Paul A. Rubin

Andy Cheesman wrote:

2010/1/12 Paul A. Rubin ru...@msu.edu


Andy Cheesman wrote:


Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few
slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
   \renewcommand\theenumi{(\alph{enumi})}
   \renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy



Does the following (in your document preamble) achieve what you want?

\setbeamertemplate{enumerate item}{H\insertenumlabel}

/Paul

That method does indeed work but unfortunately its creates a global pattern

and I would like to make custom indivual lists for slides
i.e
H1, H2, H3 H4
Step I, Step II, Step III

I know this works in Beamer/LaTeX but I would prefer a native solution

Andy



Put the cursor at the start of the first item in the enumeration and 
click Insert  Short Title, which creates an inset labeled opt.  In 
that inset, put the label for the first item, including any punctuation. 
 See the (hopefully) attached example.


/Paul



enumformat.lyx
Description: application/lyx


Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Liviu Andronic
Hello

On Thu, Jan 14, 2010 at 3:01 PM, Helge Hafting helge.haft...@hist.no wrote:
 So:

 When you want a one-piece table, use a table inside a float.

 When you want a table that can break across pages, use a longtable
 without the float.

 And if you want several tables so that the page can break
 between them, put each table into a float of its own.

 If you want two tables together without a page break between them,
 put them in the same float.

 With these rules, no ERT is necessary. (I.e. LyX is fine as-is.)
 Are you trying to do something unusual?

Yes, it seems so. These days I had to deal with tables that stretched
easily over two pages, prompting the use of longtable. However,
there were too many of them, hence the need for grouping. The standard
approaches that you described no longer applied.


 I guess your ERT is there to get the captions you want? It seems

Yes.

 risky putting floats in between tables,

I don't think I'm doing this.

 because the floats
 might float somewhere else and that would look wrong.

The longtable construct is using [H] (Here definitely placement)
for the caption float, while longtable  is used for the rest of
the (sub-)tables.  And all these are wrapped in
\begin{subtables}
[..]
\end{subtables}

This allows for grouping several long-tables under one caption,
something not immediately obvious in LaTeX (or LyX). Perhaps this is
not a frequent case, but it might arise from time to time.


American Economic Association class

2010-01-14 Thread JongKS

Hi, I need to submit my article to American Economic Association, which has
its own guideline.
After a couple of days' struggling I managed to make the latex working
(pdflatex can produce pdf file of the tex file). 
However, I cannot make LyX to make pdf from it.

To provide some info. - 
 (1) they require authors to place AEA.cls in TEXINPUTS path along with  
tcilatex.tex,   multicol.sty,   setspace.sty and  harvard.sty. (all
provided)

 (2) Since this class utilize proprietary mathtime fonts, I had to map
mathtime to belleek font to make it work.
  
 (3) I created a corresponding lyx layout by modifying AMS article layout.

Now when I make pdf from the lyx file, it produces an error message as
follows:

Font T1/cmr/m/n/10=dcr10 at 10.0pt not loadable: Metric (TFM) file not
found.
 \fontencoding\encodingdefault\selectfont
  
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.


However, this does not seem to be a problem because I can export this lyx
file into tex and make pdf using pdflatex command.

Any idea?


-- 
View this message in context: 
http://n2.nabble.com/American-Economic-Association-class-tp4394278p4394278.html
Sent from the LyX - Users mailing list archive at Nabble.com.


feature that may be useful - auto word count

2010-01-14 Thread Paul Sutton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

While typing if i want to add a word count I can highlight the text i
want counted and use tools - statistics, then put the result in a margin
note manually.

what would be useful is to be able to define a block of text, say
paragraph, hold the page count in a variable, then inside a margin note
(or similar) have it auto update the word count.

perhaps have a total word count appear in the status bar too for the
whole document.  some way of monitoring things in real time.

Just thought it would be handy,  not sure how it would work i can insert
new page,  so perhaps have insert block start / end,

perhaps then at the end of the document, have a way of inserting word
count which is then a sum of all the variables, added to gethre, so
block1+block2= total word count

any ideas

Paul

- --
Paul Sutton
www.zleap.net

Ubuntu 9.10 is out : Visit www.ubuntu.com for details
The January meeting of the DCLUG will now take place on SUNDAY 10th
January, 3pm at the shoreline in Paignton.
Aged 11 - 19 then dfey may be for you,  please goto http://www.dfey.org
for more details
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktPZ/8ACgkQaggq1k2FJq0zLQCfS6VApAjhwmB1guUZjOonsfLF
owAAoIPxl1H6UfkkAworQU0uVKE6bsrD
=KYE9
-END PGP SIGNATURE-


Re: index without letters and Nomenclature

2010-01-14 Thread Guenter Milde
On 2010-01-14, stephen's mailinglist account wrote:
 On Wed, Jan 13, 2010 at 1:48 PM, Enrico Guastaldi
enrico.guasta...@gmail.com wrote:

 Actually I cannot report a problem, because nothing happens when I click the
 button Create PDF after inserting Nomenclature entry and Nomenclature
 List.

This typically means that there is a problem in the helper apps, in
many cases iconv conversion from Unicode to the encoding of the latex
source.

Open LyX from a terminal/console window and watch for error messages.
Under Linux/X11, you can also look in the file ~/.xsession-errors.

Günter



Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Liviu Andronic
Hello Rob

On Thu, Jan 14, 2010 at 3:20 PM, Rob Oakes lyx-de...@oak-tree.us wrote:
 Are you aware of a method to position long tables so that they combine the 
 best featrues of the float environment (e.g. semi-automatic displacement so 
 that they don't disrupt the flow of the text) and the long-table environment 
 (so that you can have page breaks at appropriate places)?

I am not sure if this is of help, but there is a patched version of
longtable [1]. Perhaps it implements what you need.
Liviu

[1] http://www.digitas.harvard.edu/cgi-bin/wiki/ken/LongTable


KOMA script book chapter headings

2010-01-14 Thread Richard Brown
In the koma script book documentation I (a pure newby) find these
instructions:

 With   the standard classes book and report a chapter title
consists of a line with the word “Chapter”1 followed by the chapter
number. The title itself s set left-justified on the following lines.
The same effect is obtained in KOMA-Script with the class option
chapterprefix. The default however is chapterprefix=false. These options
also affect the automatic running titles in the headers 

But I don't understand where to put this chapterprefix=true command,
which is what I assume I need to get Chapter 1 etc. I tried putting it
in the preamble via document  settings, but that didn't work.

Grateful for help

Richard




Re: KOMA script book chapter headings

2010-01-14 Thread Uwe Stöhr

Am 14.01.2010 23:48, schrieb Richard Brown:


But I don't understand where to put this chapterprefix=true command,


add this in the menu Documents-Settings-Document class to the field Custom.

regards Uwe


equation numbering in an appendix

2010-01-14 Thread E. Kaplan
I am using an article document class, and have equations in the body of 
the article and in the appendix.  I would like the equations to be 
numbered sequentially, and the numbering restarted in the appendix and 
appear as: A1, A2, etc.
How do I do that?  I tried the various suggestions on the archive, but 
none worked.  I do not really want to number all the equations by 
section, as provided in 1.6.5 by the new modules (that got the appendix 
equations to appear as .1, .2 etc.).


Thanks,
EK


Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Daniel Lohmann

Hi Rob,

a clean solution might be possible using the afterpage package.  
Basically it provides the \afterpage{something} command, which  
causes the expansion of something to be postponed until LaTeX has  
shipped out the current page. If you insert your long table this way,  
it should (theoretically) appear on the beginning of the next page  
without interrupting the flow of text on the current page.



Daniel


On 14.01.2010, at 16:20, Rob Oakes wrote:


Hi Helge,

You make good  points, but there is a third use case that I am  
currently struggling with (and which Liviu's solution appears to  
address, at least in part).  What do you do with long tables that  
you don't want to disrupt the flow of the text?


Let me give you an example.  I am currently working on a book about  
writing with open source tools.  One of the chapters in this book is  
an overview of the different LaTeX classes and their options.  For  
some of the classes (like Memoir and Beamer), there are many  
different options that control the appearance of headers, footers  
and chapter headings.  In trying to describe the options, I've found  
that the most space efficient way is to create a long-table.  Some  
of these tables can stretch over two, or sometimes even three pages.


However, I want them to work like floats, in that the table will be  
started at the top of a new page without disrupting the flow of the  
other text.  The current long-table approach doesn't work very well  
in that I have to manually calculate the page breaks and move the  
environment to an appropriate place in the text.  This is similar to  
how I would need to work with Word and is very frustrating.


Are you aware of a method to position long tables so that they  
combine the best featrues of the float environment (e.g. semi- 
automatic displacement so that they don't disrupt the flow of the  
text) and the long-table environment (so that you can have page  
breaks at appropriate places)?


For me, getting the sort of sub-labeling described by Liviu is not  
something I am concerned about.  In fact, I would prefer to maintain  
the standard labeling scheme (Table ChapNum.TableNum).


Cheers,

Rob Oakes





Re: index without letters and Nomenclature

2010-01-14 Thread stephen's mailinglist account
On Wed, Jan 13, 2010 at 1:48 PM, Enrico Guastaldi
enrico.guasta...@gmail.com wrote:
 Dear Stephen,
 Actually I cannot report a problem, because nothing happens when I click the
 button Create PDF after inserting Nomenclature entry and Nomenclature
 List.
 Should I do some procedure to report the problem, such as bug track or
 whatsoever log file?
 Thanks anyway.
 Cheers,
 Enrico.


 

 can you post something that reproduces your nomenclature problem?

 --
 Stephen



Personally to classify it as a bug I would need to be able to
replicate the problem and without a file that fails for you I can
neither replicate it, nor troubleshoot.

I presume you can make pdfs anyway before you tried adding a nomenclature.

-- 
Stephen


Re: Lyx in Fedora 12

2010-01-14 Thread Rex Dieter
Pavel Sanda wrote:

 Rex Dieter wrote:
 I will commit the new Require to rawhide (and release there). The change
 will
 be propagated to F-11 and F-12 with LyX's the next stable release 1.6.6
 as there is no need to issue an update with this single change.

 Reminds me, for posterity, I'll brainstorm on ways to make GraphicsMagick
 work here too (and possibly allow for either it or ImageMagick satisfy
 this dependency).
 
 lyx should support GraphicsMagick out of the box, the only thing i dont
 remember is whether we backported it to branch.

oh, good to know. thanks!

-- Rex




Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Helge Hafting

Liviu Andronic wrote:

Dear all
Sorry for the cross-posting, but this is at the same time posting a
solution and requesting a feature.

I've been using table floats with subfloats and normal tables, and
they work nicely. However, when the float becomes too long for the
page---because of the length of the subtables---, it will not break.
I've tried to use longtables in the subfloats, but compilation fails.
This seems to be normal behaviour for LaTeX [1].


A float supposed to never break - that is the point of having
floats in the first place. A float may float to the next page
precisely to avoid breaking. This because images/tables cannot
be broken in a useful way. (Especially images.) A float is supposed
to be a single unbreakable block, no
matter what you actually put into it.

Non-breaking is not the main effect of a float, an
image or table won't break if you put it directly in the
text without a float. But then you get bad page breaking
with large white gaps. A float floats so that these
white gaps is avoided.

The longtable is what you use when you want a table to
break across pages. You don't put it in a float, you just put the
longtable directly in the text. It will break when necessary, and 
optionally repeat header rows after the break so the continued

table will be easier to read.


So:

When you want a one-piece table, use a table inside a float.

When you want a table that can break across pages, use a longtable
without the float.

And if you want several tables so that the page can break
between them, put each table into a float of its own.

If you want two tables together without a page break between them,
put them in the same float.

With these rules, no ERT is necessary. (I.e. LyX is fine as-is.)
Are you trying to do something unusual?

I guess your ERT is there to get the captions you want? It seems
risky putting floats in between tables, because the floats
might float somewhere else and that would look wrong.



Helge Hafting



RE: floats and subfloats with longtables SOLVED

2010-01-14 Thread Rob Oakes
Hi Helge,

You make good  points, but there is a third use case that I am currently 
struggling with (and which Liviu's solution appears to address, at least in 
part).  What do you do with long tables that you don't want to disrupt the flow 
of the text?

Let me give you an example.  I am currently working on a book about writing 
with open source tools.  One of the chapters in this book is an overview of the 
different LaTeX classes and their options.  For some of the classes (like 
Memoir and Beamer), there are many different options that control the 
appearance of headers, footers and chapter headings.  In trying to describe the 
options, I've found that the most space efficient way is to create a 
long-table.  Some of these tables can stretch over two, or sometimes even three 
pages.

However, I want them to work like floats, in that the table will be started at 
the top of a new page without disrupting the flow of the other text.  The 
current long-table approach doesn't work very well in that I have to manually 
calculate the page breaks and move the environment to an appropriate place in 
the text.  This is similar to how I would need to work with Word and is very 
frustrating.

Are you aware of a method to position long tables so that they combine the best 
featrues of the float environment (e.g. semi-automatic displacement so that 
they don't disrupt the flow of the text) and the long-table environment (so 
that you can have page breaks at appropriate places)?

For me, getting the sort of sub-labeling described by Liviu is not something I 
am concerned about.  In fact, I would prefer to maintain the standard labeling 
scheme (Table ChapNum.TableNum).

Cheers,

Rob Oakes




Re: Beamer and custom enumeration

2010-01-14 Thread Paul A. Rubin

Andy Cheesman wrote:

2010/1/12 Paul A. Rubin ru...@msu.edu


Andy Cheesman wrote:


Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few
slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
   \renewcommand\theenumi{(\alph{enumi})}
   \renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy



Does the following (in your document preamble) achieve what you want?

\setbeamertemplate{enumerate item}{H\insertenumlabel}

/Paul

That method does indeed work but unfortunately its creates a global pattern

and I would like to make custom indivual lists for slides
i.e
H1, H2, H3 H4
Step I, Step II, Step III

I know this works in Beamer/LaTeX but I would prefer a native solution

Andy



Put the cursor at the start of the first item in the enumeration and 
click Insert  Short Title, which creates an inset labeled opt.  In 
that inset, put the label for the first item, including any punctuation. 
 See the (hopefully) attached example.


/Paul



enumformat.lyx
Description: application/lyx


Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Liviu Andronic
Hello

On Thu, Jan 14, 2010 at 3:01 PM, Helge Hafting helge.haft...@hist.no wrote:
 So:

 When you want a one-piece table, use a table inside a float.

 When you want a table that can break across pages, use a longtable
 without the float.

 And if you want several tables so that the page can break
 between them, put each table into a float of its own.

 If you want two tables together without a page break between them,
 put them in the same float.

 With these rules, no ERT is necessary. (I.e. LyX is fine as-is.)
 Are you trying to do something unusual?

Yes, it seems so. These days I had to deal with tables that stretched
easily over two pages, prompting the use of longtable. However,
there were too many of them, hence the need for grouping. The standard
approaches that you described no longer applied.


 I guess your ERT is there to get the captions you want? It seems

Yes.

 risky putting floats in between tables,

I don't think I'm doing this.

 because the floats
 might float somewhere else and that would look wrong.

The longtable construct is using [H] (Here definitely placement)
for the caption float, while longtable  is used for the rest of
the (sub-)tables.  And all these are wrapped in
\begin{subtables}
[..]
\end{subtables}

This allows for grouping several long-tables under one caption,
something not immediately obvious in LaTeX (or LyX). Perhaps this is
not a frequent case, but it might arise from time to time.


American Economic Association class

2010-01-14 Thread JongKS

Hi, I need to submit my article to American Economic Association, which has
its own guideline.
After a couple of days' struggling I managed to make the latex working
(pdflatex can produce pdf file of the tex file). 
However, I cannot make LyX to make pdf from it.

To provide some info. - 
 (1) they require authors to place AEA.cls in TEXINPUTS path along with  
tcilatex.tex,   multicol.sty,   setspace.sty and  harvard.sty. (all
provided)

 (2) Since this class utilize proprietary mathtime fonts, I had to map
mathtime to belleek font to make it work.
  
 (3) I created a corresponding lyx layout by modifying AMS article layout.

Now when I make pdf from the lyx file, it produces an error message as
follows:

Font T1/cmr/m/n/10=dcr10 at 10.0pt not loadable: Metric (TFM) file not
found.
 \fontencoding\encodingdefault\selectfont
  
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.


However, this does not seem to be a problem because I can export this lyx
file into tex and make pdf using pdflatex command.

Any idea?


-- 
View this message in context: 
http://n2.nabble.com/American-Economic-Association-class-tp4394278p4394278.html
Sent from the LyX - Users mailing list archive at Nabble.com.


feature that may be useful - auto word count

2010-01-14 Thread Paul Sutton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

While typing if i want to add a word count I can highlight the text i
want counted and use tools - statistics, then put the result in a margin
note manually.

what would be useful is to be able to define a block of text, say
paragraph, hold the page count in a variable, then inside a margin note
(or similar) have it auto update the word count.

perhaps have a total word count appear in the status bar too for the
whole document.  some way of monitoring things in real time.

Just thought it would be handy,  not sure how it would work i can insert
new page,  so perhaps have insert block start / end,

perhaps then at the end of the document, have a way of inserting word
count which is then a sum of all the variables, added to gethre, so
block1+block2= total word count

any ideas

Paul

- --
Paul Sutton
www.zleap.net

Ubuntu 9.10 is out : Visit www.ubuntu.com for details
The January meeting of the DCLUG will now take place on SUNDAY 10th
January, 3pm at the shoreline in Paignton.
Aged 11 - 19 then dfey may be for you,  please goto http://www.dfey.org
for more details
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktPZ/8ACgkQaggq1k2FJq0zLQCfS6VApAjhwmB1guUZjOonsfLF
owAAoIPxl1H6UfkkAworQU0uVKE6bsrD
=KYE9
-END PGP SIGNATURE-


Re: index without letters and Nomenclature

2010-01-14 Thread Guenter Milde
On 2010-01-14, stephen's mailinglist account wrote:
 On Wed, Jan 13, 2010 at 1:48 PM, Enrico Guastaldi
enrico.guasta...@gmail.com wrote:

 Actually I cannot report a problem, because nothing happens when I click the
 button Create PDF after inserting Nomenclature entry and Nomenclature
 List.

This typically means that there is a problem in the helper apps, in
many cases iconv conversion from Unicode to the encoding of the latex
source.

Open LyX from a terminal/console window and watch for error messages.
Under Linux/X11, you can also look in the file ~/.xsession-errors.

Günter



Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Liviu Andronic
Hello Rob

On Thu, Jan 14, 2010 at 3:20 PM, Rob Oakes lyx-de...@oak-tree.us wrote:
 Are you aware of a method to position long tables so that they combine the 
 best featrues of the float environment (e.g. semi-automatic displacement so 
 that they don't disrupt the flow of the text) and the long-table environment 
 (so that you can have page breaks at appropriate places)?

I am not sure if this is of help, but there is a patched version of
longtable [1]. Perhaps it implements what you need.
Liviu

[1] http://www.digitas.harvard.edu/cgi-bin/wiki/ken/LongTable


KOMA script book chapter headings

2010-01-14 Thread Richard Brown
In the koma script book documentation I (a pure newby) find these
instructions:

 With   the standard classes book and report a chapter title
consists of a line with the word “Chapter”1 followed by the chapter
number. The title itself s set left-justified on the following lines.
The same effect is obtained in KOMA-Script with the class option
chapterprefix. The default however is chapterprefix=false. These options
also affect the automatic running titles in the headers 

But I don't understand where to put this chapterprefix=true command,
which is what I assume I need to get Chapter 1 etc. I tried putting it
in the preamble via document  settings, but that didn't work.

Grateful for help

Richard




Re: KOMA script book chapter headings

2010-01-14 Thread Uwe Stöhr

Am 14.01.2010 23:48, schrieb Richard Brown:


But I don't understand where to put this chapterprefix=true command,


add this in the menu Documents-Settings-Document class to the field Custom.

regards Uwe


equation numbering in an appendix

2010-01-14 Thread E. Kaplan
I am using an article document class, and have equations in the body of 
the article and in the appendix.  I would like the equations to be 
numbered sequentially, and the numbering restarted in the appendix and 
appear as: A1, A2, etc.
How do I do that?  I tried the various suggestions on the archive, but 
none worked.  I do not really want to number all the equations by 
section, as provided in 1.6.5 by the new modules (that got the appendix 
equations to appear as .1, .2 etc.).


Thanks,
EK


Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Daniel Lohmann

Hi Rob,

a clean solution might be possible using the afterpage package.  
Basically it provides the \afterpage{something} command, which  
causes the expansion of something to be postponed until LaTeX has  
shipped out the current page. If you insert your long table this way,  
it should (theoretically) appear on the beginning of the next page  
without interrupting the flow of text on the current page.



Daniel


On 14.01.2010, at 16:20, Rob Oakes wrote:


Hi Helge,

You make good  points, but there is a third use case that I am  
currently struggling with (and which Liviu's solution appears to  
address, at least in part).  What do you do with long tables that  
you don't want to disrupt the flow of the text?


Let me give you an example.  I am currently working on a book about  
writing with open source tools.  One of the chapters in this book is  
an overview of the different LaTeX classes and their options.  For  
some of the classes (like Memoir and Beamer), there are many  
different options that control the appearance of headers, footers  
and chapter headings.  In trying to describe the options, I've found  
that the most space efficient way is to create a long-table.  Some  
of these tables can stretch over two, or sometimes even three pages.


However, I want them to work like floats, in that the table will be  
started at the top of a new page without disrupting the flow of the  
other text.  The current long-table approach doesn't work very well  
in that I have to manually calculate the page breaks and move the  
environment to an appropriate place in the text.  This is similar to  
how I would need to work with Word and is very frustrating.


Are you aware of a method to position long tables so that they  
combine the best featrues of the float environment (e.g. semi- 
automatic displacement so that they don't disrupt the flow of the  
text) and the long-table environment (so that you can have page  
breaks at appropriate places)?


For me, getting the sort of sub-labeling described by Liviu is not  
something I am concerned about.  In fact, I would prefer to maintain  
the standard labeling scheme (Table ChapNum.TableNum).


Cheers,

Rob Oakes





Re: index without letters and Nomenclature

2010-01-14 Thread stephen's mailinglist account
On Wed, Jan 13, 2010 at 1:48 PM, Enrico Guastaldi
 wrote:
> Dear Stephen,
> Actually I cannot report a problem, because nothing happens when I click the
> button "Create PDF" after inserting Nomenclature entry and Nomenclature
> List.
> Should I do some procedure to report the problem, such as bug track or
> whatsoever log file?
> Thanks anyway.
> Cheers,
> Enrico.


>> >
>>
>> can you post something that reproduces your nomenclature problem?
>>
>> --
>> Stephen
>
>

Personally to classify it as a bug I would need to be able to
replicate the problem and without a file that fails for you I can
neither replicate it, nor troubleshoot.

I presume you can make pdfs anyway before you tried adding a nomenclature.

-- 
Stephen


Re: Lyx in Fedora 12

2010-01-14 Thread Rex Dieter
Pavel Sanda wrote:

> Rex Dieter wrote:
>>> I will commit the new Require to rawhide (and release there). The change
>>> will
>>> be propagated to F-11 and F-12 with LyX's the next stable release 1.6.6
>>> as there is no need to issue an update with this single change.
>>
>> Reminds me, for posterity, I'll brainstorm on ways to make GraphicsMagick
>> work here too (and possibly allow for either it or ImageMagick satisfy
>> this dependency).
> 
> lyx should support GraphicsMagick out of the box, the only thing i dont
> remember is whether we backported it to branch.

oh, good to know. thanks!

-- Rex




Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Helge Hafting

Liviu Andronic wrote:

Dear all
Sorry for the cross-posting, but this is at the same time posting a
solution and requesting a feature.

I've been using table floats with subfloats and normal tables, and
they work nicely. However, when the float becomes too long for the
page---because of the length of the subtables---, it will not break.
I've tried to use longtables in the subfloats, but compilation fails.
This seems to be normal behaviour for LaTeX [1].


A float supposed to never break - that is the point of having
floats in the first place. A float may float to the next page
precisely to avoid breaking. This because images/tables cannot
be broken in a useful way. (Especially images.) A float is supposed
to be a single unbreakable block, no
matter what you actually put into it.

Non-breaking is not the main effect of a float, an
image or table won't break if you put it directly in the
text without a float. But then you get bad page breaking
with large white gaps. A float "floats" so that these
white gaps is avoided.

The longtable is what you use when you want a table to
break across pages. You don't put it in a float, you just put the
longtable directly in the text. It will break when necessary, and 
optionally repeat header rows after the break so the continued

table will be easier to read.


So:

When you want a one-piece table, use a table inside a float.

When you want a table that can break across pages, use a longtable
without the float.

And if you want several tables so that the page can break
between them, put each table into a float of its own.

If you want two tables together without a page break between them,
put them in the same float.

With these rules, no ERT is necessary. (I.e. LyX is fine as-is.)
Are you trying to do something unusual?

I guess your ERT is there to get the captions you want? It seems
risky putting floats in between tables, because the floats
might float somewhere else and that would look wrong.



Helge Hafting



RE: floats and subfloats with longtables SOLVED

2010-01-14 Thread Rob Oakes
Hi Helge,

You make good  points, but there is a third use case that I am currently 
struggling with (and which Liviu's solution appears to address, at least in 
part).  What do you do with long tables that you don't want to disrupt the flow 
of the text?

Let me give you an example.  I am currently working on a book about writing 
with open source tools.  One of the chapters in this book is an overview of the 
different LaTeX classes and their options.  For some of the classes (like 
Memoir and Beamer), there are many different options that control the 
appearance of headers, footers and chapter headings.  In trying to describe the 
options, I've found that the most space efficient way is to create a 
long-table.  Some of these tables can stretch over two, or sometimes even three 
pages.

However, I want them to work like floats, in that the table will be started at 
the top of a new page without disrupting the flow of the other text.  The 
current long-table approach doesn't work very well in that I have to manually 
calculate the page breaks and move the environment to an appropriate place in 
the text.  This is similar to how I would need to work with Word and is very 
frustrating.

Are you aware of a method to position long tables so that they combine the best 
featrues of the float environment (e.g. semi-automatic displacement so that 
they don't disrupt the flow of the text) and the long-table environment (so 
that you can have page breaks at appropriate places)?

For me, getting the sort of sub-labeling described by Liviu is not something I 
am concerned about.  In fact, I would prefer to maintain the standard labeling 
scheme (Table ChapNum.TableNum).

Cheers,

Rob Oakes




Re: Beamer and custom enumeration

2010-01-14 Thread Paul A. Rubin

Andy Cheesman wrote:

2010/1/12 Paul A. Rubin 


Andy Cheesman wrote:


Dear People

I'm trying to create custom enumeration using Beamer and Lyx on a few
slides
I would like some like the example below as well as other options.
H1
H2
H3

However, all the online references suggest something like
\renewcommand{\theenumi}{\alph{enumi} or

\bgroup
   \renewcommand\theenumi{(\alph{enumi})}
   \renewcommand\labelenumi{\theenumi}

 these Lyx errores with theenumi, \labelenumi being undefined

What am I missing?

Andy



Does the following (in your document preamble) achieve what you want?

\setbeamertemplate{enumerate item}{H\insertenumlabel}

/Paul

That method does indeed work but unfortunately its creates a global pattern

and I would like to make custom indivual lists for slides
i.e
H1, H2, H3 H4
Step I, Step II, Step III

I know this works in Beamer/LaTeX but I would prefer a native solution

Andy



Put the cursor at the start of the first item in the enumeration and 
click Insert > Short Title, which creates an inset labeled "opt".  In 
that inset, put the label for the first item, including any punctuation. 
 See the (hopefully) attached example.


/Paul



enumformat.lyx
Description: application/lyx


Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Liviu Andronic
Hello

On Thu, Jan 14, 2010 at 3:01 PM, Helge Hafting  wrote:
> So:
>
> When you want a one-piece table, use a table inside a float.
>
> When you want a table that can break across pages, use a longtable
> without the float.
>
> And if you want several tables so that the page can break
> between them, put each table into a float of its own.
>
> If you want two tables together without a page break between them,
> put them in the same float.
>
> With these rules, no ERT is necessary. (I.e. LyX is fine as-is.)
> Are you trying to do something unusual?
>
Yes, it seems so. These days I had to deal with tables that stretched
easily over two pages, prompting the use of "longtable". However,
there were too many of them, hence the need for grouping. The standard
approaches that you described no longer applied.


> I guess your ERT is there to get the captions you want? It seems
>
Yes.

> risky putting floats in between tables,
>
I don't think I'm doing this.

> because the floats
> might float somewhere else and that would look wrong.
>
The "longtable" construct is using [H] ("Here definitely" placement)
for the "caption float", while "longtable"  is used for the rest of
the (sub-)tables.  And all these are wrapped in
\begin{subtables}
[..]
\end{subtables}

This allows for grouping several long-tables under one caption,
something not immediately obvious in LaTeX (or LyX). Perhaps this is
not a frequent case, but it might arise from time to time.


American Economic Association class

2010-01-14 Thread JongKS

Hi, I need to submit my article to American Economic Association, which has
its own guideline.
After a couple of days' struggling I managed to make the latex working
(pdflatex can produce pdf file of the tex file). 
However, I cannot make LyX to make pdf from it.

To provide some info. - 
 (1) they require authors to place AEA.cls in TEXINPUTS path along with  
tcilatex.tex,   multicol.sty,   setspace.sty and  harvard.sty. (all
provided)

 (2) Since this class utilize proprietary mathtime fonts, I had to map
mathtime to belleek font to make it work.
  
 (3) I created a corresponding lyx layout by modifying AMS article layout.

Now when I make pdf from the lyx file, it produces an error message as
follows:

Font T1/cmr/m/n/10=dcr10 at 10.0pt not loadable: Metric (TFM) file not
found.
 \fontencoding\encodingdefault\selectfont
  
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font='.


However, this does not seem to be a problem because I can export this lyx
file into tex and make pdf using pdflatex command.

Any idea?


-- 
View this message in context: 
http://n2.nabble.com/American-Economic-Association-class-tp4394278p4394278.html
Sent from the LyX - Users mailing list archive at Nabble.com.


feature that may be useful - auto word count

2010-01-14 Thread Paul Sutton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

While typing if i want to add a word count I can highlight the text i
want counted and use tools - statistics, then put the result in a margin
note manually.

what would be useful is to be able to define a block of text, say
paragraph, hold the page count in a variable, then inside a margin note
(or similar) have it auto update the word count.

perhaps have a total word count appear in the status bar too for the
whole document.  some way of monitoring things in real time.

Just thought it would be handy,  not sure how it would work i can insert
new page,  so perhaps have insert block start / end,

perhaps then at the end of the document, have a way of inserting word
count which is then a sum of all the variables, added to gethre, so
block1+block2= total word count

any ideas

Paul

- --
Paul Sutton
www.zleap.net

Ubuntu 9.10 is out : Visit www.ubuntu.com for details
The January meeting of the DCLUG will now take place on SUNDAY 10th
January, 3pm at the shoreline in Paignton.
Aged 11 - 19 then dfey may be for you,  please goto http://www.dfey.org
for more details
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktPZ/8ACgkQaggq1k2FJq0zLQCfS6VApAjhwmB1guUZjOonsfLF
owAAoIPxl1H6UfkkAworQU0uVKE6bsrD
=KYE9
-END PGP SIGNATURE-


Re: index without letters and Nomenclature

2010-01-14 Thread Guenter Milde
On 2010-01-14, stephen's mailinglist account wrote:
> On Wed, Jan 13, 2010 at 1:48 PM, Enrico Guastaldi
> wrote:

>> Actually I cannot report a problem, because nothing happens when I click the
>> button "Create PDF" after inserting Nomenclature entry and Nomenclature
>> List.

This typically means that there is a problem in the helper apps, in
many cases iconv conversion from Unicode to the encoding of the latex
source.

Open LyX from a terminal/console window and watch for error messages.
Under Linux/X11, you can also look in the file ~/.xsession-errors.

Günter



Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Liviu Andronic
Hello Rob

On Thu, Jan 14, 2010 at 3:20 PM, Rob Oakes  wrote:
> Are you aware of a method to position long tables so that they combine the 
> best featrues of the float environment (e.g. semi-automatic displacement so 
> that they don't disrupt the flow of the text) and the long-table environment 
> (so that you can have page breaks at appropriate places)?
>
I am not sure if this is of help, but there is a patched version of
longtable [1]. Perhaps it implements what you need.
Liviu

[1] http://www.digitas.harvard.edu/cgi-bin/wiki/ken/LongTable


KOMA script book chapter headings

2010-01-14 Thread Richard Brown
In the koma script book documentation I (a pure newby) find these
instructions:

 With   the standard classes book and report a chapter title
consists of a line with the word “Chapter”1 followed by the chapter
number. The title itself s set left-justified on the following lines.
The same effect is obtained in KOMA-Script with the class option
chapterprefix. The default however is chapterprefix=false. These options
also affect the automatic running titles in the headers 

But I don't understand where to put this chapterprefix=true command,
which is what I assume I need to get "Chapter 1" etc. I tried putting it
in the preamble via document < settings, but that didn't work.

Grateful for help

Richard




Re: KOMA script book chapter headings

2010-01-14 Thread Uwe Stöhr

Am 14.01.2010 23:48, schrieb Richard Brown:


But I don't understand where to put this chapterprefix=true command,


add this in the menu Documents->Settings->Document class to the field "Custom".

regards Uwe


equation numbering in an appendix

2010-01-14 Thread E. Kaplan
I am using an article document class, and have equations in the body of 
the article and in the appendix.  I would like the equations to be 
numbered sequentially, and the numbering restarted in the appendix and 
appear as: A1, A2, etc.
How do I do that?  I tried the various suggestions on the archive, but 
none worked.  I do not really want to number all the equations by 
section, as provided in 1.6.5 by the new modules (that got the appendix 
equations to appear as .1, .2 etc.).


Thanks,
EK


Re: floats and subfloats with longtables SOLVED

2010-01-14 Thread Daniel Lohmann

Hi Rob,

a clean solution might be possible using the afterpage package.  
Basically it provides the \afterpage{} command, which  
causes the expansion of  to be postponed until LaTeX has  
shipped out the current page. If you insert your long table this way,  
it should (theoretically) appear on the beginning of the next page  
without interrupting the flow of text on the current page.



Daniel


On 14.01.2010, at 16:20, Rob Oakes wrote:


Hi Helge,

You make good  points, but there is a third use case that I am  
currently struggling with (and which Liviu's solution appears to  
address, at least in part).  What do you do with long tables that  
you don't want to disrupt the flow of the text?


Let me give you an example.  I am currently working on a book about  
writing with open source tools.  One of the chapters in this book is  
an overview of the different LaTeX classes and their options.  For  
some of the classes (like Memoir and Beamer), there are many  
different options that control the appearance of headers, footers  
and chapter headings.  In trying to describe the options, I've found  
that the most space efficient way is to create a long-table.  Some  
of these tables can stretch over two, or sometimes even three pages.


However, I want them to work like floats, in that the table will be  
started at the top of a new page without disrupting the flow of the  
other text.  The current long-table approach doesn't work very well  
in that I have to manually calculate the page breaks and move the  
environment to an appropriate place in the text.  This is similar to  
how I would need to work with Word and is very frustrating.


Are you aware of a method to position long tables so that they  
combine the best featrues of the float environment (e.g. semi- 
automatic displacement so that they don't disrupt the flow of the  
text) and the long-table environment (so that you can have page  
breaks at appropriate places)?


For me, getting the sort of sub-labeling described by Liviu is not  
something I am concerned about.  In fact, I would prefer to maintain  
the standard labeling scheme (Table ChapNum.TableNum).


Cheers,

Rob Oakes