Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Liviu Andronic wrote:
 Do you think LyX could handle this in a friendlier manner?

Yes. In this case, the problem is on the package's side. TotCount does not use 
proper \PackageWarning to inform about necessary reruns, so the message does 
not reach LyX.

Try the attached modified version, which does use \PackageWarning instead of 
\message. If it works, please inform the package author and ask him to fix the 
issue.

Jürgen
%%
%% This is file `totcount.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% totcount.dtx  (with options: `sty')
%% 
%% The TotCount package, version 1.0, 2009/04/14
%% 
%% Copyright (c) [2009] Vasileios Koutavas (vasileios.kouta...@cs.tcd.ie)
%% 
%% This program may be re-distributed and/or modified under the terms of the
%% LaTeX Project Public License version 1.3c, or any later version.
%% The latest version of this license is in
%%CTAN:macros/latex/base/lppl.txt
%% 
\def\totcfileversion{1.1}
\def\totcfiledate{2009/07/09}
\def\totcdocdate{9 Jul 2009}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{totcount}
  [\totcfiledate \space v\totcfileversion \space package for getting%
   the total value of LaTeX counters]
%%
%%   Import of the \xpackage{keyval} package \cite{keyval}:
\RequirePackage{keyval}
%%
%%   Creates a new counter and registers it as a total counter. This is the
%%   top-level dispatch of the macro, depending on whether there is an optional
%%   argument or not.
\def\newtotcounter{%
  \@ifnextchar[\newtotcounter@newaux\newtotcounter@mainaux}
%%
%%   This is the version of the |\newtotcounter| macro that uses a separate
%%   auxiliary file. It first creates the counter (second argument) and then
%%   calls the macro |\regtotcounter|.
\def\newtotcounter@newaux[#1]#2{%
  \newcounter{#2}%
  \regtotcounter[#1]{#2}%
}
%%
%%   This is the version of the |\newtotcounter| macro that uses the main
%%   auxiliary file.  It first creates the counter (argument) and then calls
%%   the macro |\regtotcounter|.
\def\newtotcounter@mainaux#1{%
  \newcounter{#1}%
%% Register the counter:
  \regtotcounter{#1}%
}
%%
%%   Registers a counter as a total counter. This is the top-level dispatch of
%%   the macro, depending on whether there is an optional argument or not.
\def\regtotcounter{%
  \@ifnextchar[\regtotcounter@newaux\regtotcounter@mainaux}
%%
%%   The following is the definition of the |auxfile| key for specifying an
%%   alternative auxiliary file when calling the macro |\regtotcounter| (see
%%   \cite{keyval}).
\define@key{totcounter}{auxfile}{\def\this@auxfile{#1}}
%%
%%   This is the version of the |\regtotcounter| macro that uses a separate
%%   auxiliary file. The auxiliary file is passed as a first argument in the
%%   form of a key--value pair |[auxfile=|\meta{file}|]|, and the counter to be
%%   registered is passed as the second argument.
%%   \begin{macrocode}
\def\regtotcounter@newaux[#1]#2{%
  \setkeys{totcounter}{#1}%
%% Try to load the contents of the file:
  \InputIfFileExists{\this@auxfile}{}{}%
%% Make sure that the auxiliary file is open; \LaTeX\ will close it at the end:
  \expandafter\ifx\csname \this@auxfile @open\endcsname\relax%
\expandafter\gdef\csname \this@auxfile @open\endcsname{}%
\expandafter\newwrite\csname \this@auxfile @stream\endcsname%
\immediate\expandafter\openout%
  \csname \this@auxfile @stream\endcsname=\this@auxfile%
  \fi%
%% Create a new counter holding the total number of the actual counter:
  \expandafter\ifx\csname c@#2@totc\endcsname\relax%
  \newcounter{#2@totc}%
  \setcounter{#2@totc}{-1}%
  \fi%
%% At the end of the document write code in the auxiliary file to update the
%% total counter with the value of the actual counter:
  \AtEndDocument{%
 \def\sp{ }%
 \immediate\expandafter\write%
 \csname \this@auxfile @stream\endcsname{%
   \string\expandafter\string\ifx%
 \string\csname\sp c@#2@totc\string\endcsname\string\relax%
   \string\newcounter{#2@totc}%
   \string\fi%
   \string\setcounter{#2@totc}{\number\value{#2}}%
 }%
  }%
}
%%
%%   This is the version of the |\regtotcounter| macro that uses the main
%%   auxiliary file. The counter to be registered is passed as the second
%%   argument.
\def\regtotcounter@mainaux#1{%
%% Create a new counter holding the total number of the actual counter:
  \expandafter\ifx\csname c@#1@totc\endcsname\relax%
  \newcounter{#1@totc}%
  \setcounter{#1@totc}{-1}%
  \fi%
%% At the end of the document write code in the auxiliary file to update the
%% total counter with the value of the actual counter:
  \AtEndDocument{%
\def\sp{ }%
\immediate\write\@mainaux{%
  \string\expandafter\string\ifx%
\string\csname\sp c@#1@totc\string\endcsname\string\relax%
  \string\newcounter{\string #1@totc}%
  \string\fi%
  \string\setcounter{\string #1@totc}{\number\value{#1}}%
}%
  }%
}
%%
%%   Prints the total value of a registered total counter that is passed as
%%   

Re: how to update aux file in LyX?

2011-01-23 Thread Liviu Andronic
On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Liviu Andronic wrote:
 Do you think LyX could handle this in a friendlier manner?

 Yes. In this case, the problem is on the package's side. TotCount does not use
 proper \PackageWarning to inform about necessary reruns, so the message does
 not reach LyX.

 Try the attached modified version, which does use \PackageWarning instead of
 \message.

Very nice, thanks! Now LyX automatically detects the need for a second
re-run and immediately generates the correct PDF output.


 If it works, please inform the package author and ask him to fix the
 issue.

Will surely do so. Cheers
Liviu


Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
 Hm, there doesn't seem to be a rerun request in the log file. Could you 
 provide a small example file?

I've had a quick look at revnum.sty, and it does not seem to issue any rerun 
message; so it's hard for LyX to determine whether a rerun is requested.

Did you check out the etaremune package already?
http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

This seems to provide the same functionality, but seem to be better written in 
general. According to the sources, a rerun request is issued if necessary, so 
LyX should update the aux file with this package.

If you rely on revnum, I guess you will have to ask its author to implement 
proper wanings.

Jürgen


Re: how to update aux file in LyX?

2011-01-23 Thread Paul A . Rubin
Jürgen Spitzmüller spitz at lyx.org writes:

 I've had a quick look at revnum.sty, and it does not seem to issue any rerun
 message; so it's hard for LyX to determine whether a rerun is requested.
 

Would it be worth including a checkbox somewhere in Document  Settings to
allow the user to specify an extra pass of latex (or pdflatex, or whatever)
should be done?  It seems undesirable to in essence preclude the use of some
LaTeX packages.

/Paul



Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
  I've had a quick look at revnum.sty, and it does not seem to issue any
  rerun message; so it's hard for LyX to determine whether a rerun is
  requested.
 
  
 
 Would it be worth including a checkbox somewhere in Document  Settings to
 allow the user to specify an extra pass of latex (or pdflatex, or whatever)
 should be done?  It seems undesirable to in essence preclude the use of
 some LaTeX packages.

This would not help very much I think. Some packages need extra bibtex runs, 
extra makeindex runs and more than one extra latex run. We do the best that we 
can, but the two packages in question here do not. And it's really not hard to 
fix it at the right end, i.e. in the packages.

Jürgen


Summation

2011-01-23 Thread Charles Reichert
Hello, I have a little bit of a problem.  I can easily insert a summation
sign; however, how do I insert the upper and lower limits (above and below)
the summation symbol?  I found the frame area, but it seems I can only
insert either the top, or the bottom; not both?
thanks
Charles


Re: Please confirm your message

2011-01-23 Thread Dr Eberhard W Lisse
You have my full support.

I just replied, without looking too much at the header and then
just replied to confirm.

Maybe the newsgroup maintainer should block these messages...

el

On 1/23/11 7:54 AM, Steve Litt wrote:
 Rude!
 
 I vote that anyone subscribing to the LyX list with one of those silly 
 handshake thingies be de-listed and forever banned.
 
 SteveT
 
 On Sunday 23 January 2011 00:17:06 Dr Eberhard W Lisse wrote:
 On 1/23/11 7:15 AM, lyx-users@lists.lyx.org wrote:
 This message was created automatically by mail delivery software (TMDA).

 Your message attached below is being held because the address
 e...@lisse.na has not been verified.

 To release your message for delivery, please send an empty message
 to the following address, or use your mailer's Reply feature.

lyx-users-confirm-1295759758.19724.fbc...@lists.lyx.org

 This confirmation verifies that your message is legitimate and not
 junk-mail. You should only have to confirm your address once.

 If you do not respond to this confirmation request within 14 days,
 your message will not be delivered.
 




Re: Please confirm your message

2011-01-23 Thread Vincent van Ravesteijn

 Op 23-1-2011 19:45, Dr Eberhard W Lisse schreef:

You have my full support.

I just replied, without looking too much at the header and then
just replied to confirm.

Maybe the newsgroup maintainer should block these messages...

el


Thanks for helping out other users anyway.

Vincent



Re: Please confirm your message

2011-01-23 Thread Dr Eberhard W Lisse
Pleasure.

LyX is such an important piece of software for me since many years
so that those very few opportunities I get to contribute, I try :-)-O

el

On 1/23/11 9:04 PM, Vincent van Ravesteijn wrote:
  Op 23-1-2011 19:45, Dr Eberhard W Lisse schreef:
 You have my full support.

 I just replied, without looking too much at the header and then
 just replied to confirm.

 Maybe the newsgroup maintainer should block these messages...

 el
 
 Thanks for helping out other users anyway.
 
 Vincent

-- 
Dr. Eberhard W. Lisse  \/  Obstetrician  Gynaecologist
e...@lisse.na/ * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 \ / Please do NOT email to this address
Bachbrecht, Namibia ;/  if it is DNS related in ANY way


Re: Thoughts on Multiple Document Formats

2011-01-23 Thread Guenter Milde
On 2011-01-21, Tim Wescott wrote:

...

 ..., why shouldn't I set 
 things up so that I end up with two sets of documents -- one for this 
 big desktop universal eBook reader that I'm typing at, and another for 
 little eBook readers.  Particularly if I can find one eBook format 
 that'll at least be suitable for a number of readers.

 But -- how do I do this? 

From LyX, export to either PDF or XHTML (LyX 2 will have built-in HTML
export, eLyXer is a Python lyx-to-xhtml converter).

Generating e-Book formats from XHTML is far better supported than from
PDF or LaTeX. Actually, ePub is just wrapped and zipped XHTML which
can be generated with a script from the XHTML + graphics files.


Günter



KOMA-Script2 Letter: EndLetter Environment

2011-01-23 Thread Rich Shepard

  I see that the EndLetter environment was added by Juergen a couple of
years ago, but I'm not sure when it needs to be used. The reason I ask is
that I'm sending a client a letter proposal and I want to attach two other
.lyx files after the signature/close of the main letter. Yes, I can probably
add them as separate pdf pages using pdftk, but I'd like to have it all as a
single file within LyX if possible.

  If there is a way to add attachments to a KOMA-Script2 letter, please
point me to the documentation on how to do this.

Thanks in advance,

Rich


Re: how to update aux file in LyX?

2011-01-23 Thread Gwen Barnes

 I've had a quick look at revnum.sty, and it does not seem to issue any
 rerun
 message; so it's hard for LyX to determine whether a rerun is requested.

 Did you check out the etaremune package already?
 http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

 This seems to provide the same functionality, but seem to be better written
 in
 general. According to the sources, a rerun request is issued if necessary,
 so
 LyX should update the aux file with this package.


I hadn't seen etaremune, but it looks just fine, definitely better if it
will work with lyx.  I have tried to incorporate it in lyx.  LyX output
gives me a pdf with the numbers increasing, like normal enumerate, and like
I get if I only run pdflatex once on the tex file.  When I run pdflatex from
the command line twice I correctly get the reversed numbers.

This looks like the relevant line from the latex log file, telling latex it
needs to rerun:

LaTeX Warning: Etaremune labels have changed.
   Rerun to get them right.

My module file looks like this:

#\DeclareLyXModule[etaremune.sty]{Etaremune}
#DescriptionBegin
#This package implements the etaremune environment which is similar
#to the enumerate environment, except that labels are decreasing
#instead of increasing. This package provides an alternative to the
#revnum package which uses a lot of counters. The style of lists
#can be controlled locally and globally. See for more information
#the pdf documentation of this package.
#DescriptionEnd
# Author: Gwen Barnes g...@barnesos.net, 2011-01-15

Format 11

AddToPreamble
\usepackage{etaremune}  % customizable list environments
EndPreamble

Style Etaremune
CopyStyle   Enumerate
LatexType   Item_Environment
LatexName   etaremune
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color   blue
EndFont

End

-Gwen


Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Liviu Andronic wrote:
 Do you think LyX could handle this in a friendlier manner?

Yes. In this case, the problem is on the package's side. TotCount does not use 
proper \PackageWarning to inform about necessary reruns, so the message does 
not reach LyX.

Try the attached modified version, which does use \PackageWarning instead of 
\message. If it works, please inform the package author and ask him to fix the 
issue.

Jürgen
%%
%% This is file `totcount.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% totcount.dtx  (with options: `sty')
%% 
%% The TotCount package, version 1.0, 2009/04/14
%% 
%% Copyright (c) [2009] Vasileios Koutavas (vasileios.kouta...@cs.tcd.ie)
%% 
%% This program may be re-distributed and/or modified under the terms of the
%% LaTeX Project Public License version 1.3c, or any later version.
%% The latest version of this license is in
%%CTAN:macros/latex/base/lppl.txt
%% 
\def\totcfileversion{1.1}
\def\totcfiledate{2009/07/09}
\def\totcdocdate{9 Jul 2009}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{totcount}
  [\totcfiledate \space v\totcfileversion \space package for getting%
   the total value of LaTeX counters]
%%
%%   Import of the \xpackage{keyval} package \cite{keyval}:
\RequirePackage{keyval}
%%
%%   Creates a new counter and registers it as a total counter. This is the
%%   top-level dispatch of the macro, depending on whether there is an optional
%%   argument or not.
\def\newtotcounter{%
  \@ifnextchar[\newtotcounter@newaux\newtotcounter@mainaux}
%%
%%   This is the version of the |\newtotcounter| macro that uses a separate
%%   auxiliary file. It first creates the counter (second argument) and then
%%   calls the macro |\regtotcounter|.
\def\newtotcounter@newaux[#1]#2{%
  \newcounter{#2}%
  \regtotcounter[#1]{#2}%
}
%%
%%   This is the version of the |\newtotcounter| macro that uses the main
%%   auxiliary file.  It first creates the counter (argument) and then calls
%%   the macro |\regtotcounter|.
\def\newtotcounter@mainaux#1{%
  \newcounter{#1}%
%% Register the counter:
  \regtotcounter{#1}%
}
%%
%%   Registers a counter as a total counter. This is the top-level dispatch of
%%   the macro, depending on whether there is an optional argument or not.
\def\regtotcounter{%
  \@ifnextchar[\regtotcounter@newaux\regtotcounter@mainaux}
%%
%%   The following is the definition of the |auxfile| key for specifying an
%%   alternative auxiliary file when calling the macro |\regtotcounter| (see
%%   \cite{keyval}).
\define@key{totcounter}{auxfile}{\def\this@auxfile{#1}}
%%
%%   This is the version of the |\regtotcounter| macro that uses a separate
%%   auxiliary file. The auxiliary file is passed as a first argument in the
%%   form of a key--value pair |[auxfile=|\meta{file}|]|, and the counter to be
%%   registered is passed as the second argument.
%%   \begin{macrocode}
\def\regtotcounter@newaux[#1]#2{%
  \setkeys{totcounter}{#1}%
%% Try to load the contents of the file:
  \InputIfFileExists{\this@auxfile}{}{}%
%% Make sure that the auxiliary file is open; \LaTeX\ will close it at the end:
  \expandafter\ifx\csname \this@auxfile @open\endcsname\relax%
\expandafter\gdef\csname \this@auxfile @open\endcsname{}%
\expandafter\newwrite\csname \this@auxfile @stream\endcsname%
\immediate\expandafter\openout%
  \csname \this@auxfile @stream\endcsname=\this@auxfile%
  \fi%
%% Create a new counter holding the total number of the actual counter:
  \expandafter\ifx\csname c@#2@totc\endcsname\relax%
  \newcounter{#2@totc}%
  \setcounter{#2@totc}{-1}%
  \fi%
%% At the end of the document write code in the auxiliary file to update the
%% total counter with the value of the actual counter:
  \AtEndDocument{%
 \def\sp{ }%
 \immediate\expandafter\write%
 \csname \this@auxfile @stream\endcsname{%
   \string\expandafter\string\ifx%
 \string\csname\sp c@#2@totc\string\endcsname\string\relax%
   \string\newcounter{#2@totc}%
   \string\fi%
   \string\setcounter{#2@totc}{\number\value{#2}}%
 }%
  }%
}
%%
%%   This is the version of the |\regtotcounter| macro that uses the main
%%   auxiliary file. The counter to be registered is passed as the second
%%   argument.
\def\regtotcounter@mainaux#1{%
%% Create a new counter holding the total number of the actual counter:
  \expandafter\ifx\csname c@#1@totc\endcsname\relax%
  \newcounter{#1@totc}%
  \setcounter{#1@totc}{-1}%
  \fi%
%% At the end of the document write code in the auxiliary file to update the
%% total counter with the value of the actual counter:
  \AtEndDocument{%
\def\sp{ }%
\immediate\write\@mainaux{%
  \string\expandafter\string\ifx%
\string\csname\sp c@#1@totc\string\endcsname\string\relax%
  \string\newcounter{\string #1@totc}%
  \string\fi%
  \string\setcounter{\string #1@totc}{\number\value{#1}}%
}%
  }%
}
%%
%%   Prints the total value of a registered total counter that is passed as
%%   

Re: how to update aux file in LyX?

2011-01-23 Thread Liviu Andronic
On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Liviu Andronic wrote:
 Do you think LyX could handle this in a friendlier manner?

 Yes. In this case, the problem is on the package's side. TotCount does not use
 proper \PackageWarning to inform about necessary reruns, so the message does
 not reach LyX.

 Try the attached modified version, which does use \PackageWarning instead of
 \message.

Very nice, thanks! Now LyX automatically detects the need for a second
re-run and immediately generates the correct PDF output.


 If it works, please inform the package author and ask him to fix the
 issue.

Will surely do so. Cheers
Liviu


Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
 Hm, there doesn't seem to be a rerun request in the log file. Could you 
 provide a small example file?

I've had a quick look at revnum.sty, and it does not seem to issue any rerun 
message; so it's hard for LyX to determine whether a rerun is requested.

Did you check out the etaremune package already?
http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

This seems to provide the same functionality, but seem to be better written in 
general. According to the sources, a rerun request is issued if necessary, so 
LyX should update the aux file with this package.

If you rely on revnum, I guess you will have to ask its author to implement 
proper wanings.

Jürgen


Re: how to update aux file in LyX?

2011-01-23 Thread Paul A . Rubin
Jürgen Spitzmüller spitz at lyx.org writes:

 I've had a quick look at revnum.sty, and it does not seem to issue any rerun
 message; so it's hard for LyX to determine whether a rerun is requested.
 

Would it be worth including a checkbox somewhere in Document  Settings to
allow the user to specify an extra pass of latex (or pdflatex, or whatever)
should be done?  It seems undesirable to in essence preclude the use of some
LaTeX packages.

/Paul



Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
  I've had a quick look at revnum.sty, and it does not seem to issue any
  rerun message; so it's hard for LyX to determine whether a rerun is
  requested.
 
  
 
 Would it be worth including a checkbox somewhere in Document  Settings to
 allow the user to specify an extra pass of latex (or pdflatex, or whatever)
 should be done?  It seems undesirable to in essence preclude the use of
 some LaTeX packages.

This would not help very much I think. Some packages need extra bibtex runs, 
extra makeindex runs and more than one extra latex run. We do the best that we 
can, but the two packages in question here do not. And it's really not hard to 
fix it at the right end, i.e. in the packages.

Jürgen


Summation

2011-01-23 Thread Charles Reichert
Hello, I have a little bit of a problem.  I can easily insert a summation
sign; however, how do I insert the upper and lower limits (above and below)
the summation symbol?  I found the frame area, but it seems I can only
insert either the top, or the bottom; not both?
thanks
Charles


Re: Please confirm your message

2011-01-23 Thread Dr Eberhard W Lisse
You have my full support.

I just replied, without looking too much at the header and then
just replied to confirm.

Maybe the newsgroup maintainer should block these messages...

el

On 1/23/11 7:54 AM, Steve Litt wrote:
 Rude!
 
 I vote that anyone subscribing to the LyX list with one of those silly 
 handshake thingies be de-listed and forever banned.
 
 SteveT
 
 On Sunday 23 January 2011 00:17:06 Dr Eberhard W Lisse wrote:
 On 1/23/11 7:15 AM, lyx-users@lists.lyx.org wrote:
 This message was created automatically by mail delivery software (TMDA).

 Your message attached below is being held because the address
 e...@lisse.na has not been verified.

 To release your message for delivery, please send an empty message
 to the following address, or use your mailer's Reply feature.

lyx-users-confirm-1295759758.19724.fbc...@lists.lyx.org

 This confirmation verifies that your message is legitimate and not
 junk-mail. You should only have to confirm your address once.

 If you do not respond to this confirmation request within 14 days,
 your message will not be delivered.
 




Re: Please confirm your message

2011-01-23 Thread Vincent van Ravesteijn

 Op 23-1-2011 19:45, Dr Eberhard W Lisse schreef:

You have my full support.

I just replied, without looking too much at the header and then
just replied to confirm.

Maybe the newsgroup maintainer should block these messages...

el


Thanks for helping out other users anyway.

Vincent



Re: Please confirm your message

2011-01-23 Thread Dr Eberhard W Lisse
Pleasure.

LyX is such an important piece of software for me since many years
so that those very few opportunities I get to contribute, I try :-)-O

el

On 1/23/11 9:04 PM, Vincent van Ravesteijn wrote:
  Op 23-1-2011 19:45, Dr Eberhard W Lisse schreef:
 You have my full support.

 I just replied, without looking too much at the header and then
 just replied to confirm.

 Maybe the newsgroup maintainer should block these messages...

 el
 
 Thanks for helping out other users anyway.
 
 Vincent

-- 
Dr. Eberhard W. Lisse  \/  Obstetrician  Gynaecologist
e...@lisse.na/ * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 \ / Please do NOT email to this address
Bachbrecht, Namibia ;/  if it is DNS related in ANY way


Re: Thoughts on Multiple Document Formats

2011-01-23 Thread Guenter Milde
On 2011-01-21, Tim Wescott wrote:

...

 ..., why shouldn't I set 
 things up so that I end up with two sets of documents -- one for this 
 big desktop universal eBook reader that I'm typing at, and another for 
 little eBook readers.  Particularly if I can find one eBook format 
 that'll at least be suitable for a number of readers.

 But -- how do I do this? 

From LyX, export to either PDF or XHTML (LyX 2 will have built-in HTML
export, eLyXer is a Python lyx-to-xhtml converter).

Generating e-Book formats from XHTML is far better supported than from
PDF or LaTeX. Actually, ePub is just wrapped and zipped XHTML which
can be generated with a script from the XHTML + graphics files.


Günter



KOMA-Script2 Letter: EndLetter Environment

2011-01-23 Thread Rich Shepard

  I see that the EndLetter environment was added by Juergen a couple of
years ago, but I'm not sure when it needs to be used. The reason I ask is
that I'm sending a client a letter proposal and I want to attach two other
.lyx files after the signature/close of the main letter. Yes, I can probably
add them as separate pdf pages using pdftk, but I'd like to have it all as a
single file within LyX if possible.

  If there is a way to add attachments to a KOMA-Script2 letter, please
point me to the documentation on how to do this.

Thanks in advance,

Rich


Re: how to update aux file in LyX?

2011-01-23 Thread Gwen Barnes

 I've had a quick look at revnum.sty, and it does not seem to issue any
 rerun
 message; so it's hard for LyX to determine whether a rerun is requested.

 Did you check out the etaremune package already?
 http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

 This seems to provide the same functionality, but seem to be better written
 in
 general. According to the sources, a rerun request is issued if necessary,
 so
 LyX should update the aux file with this package.


I hadn't seen etaremune, but it looks just fine, definitely better if it
will work with lyx.  I have tried to incorporate it in lyx.  LyX output
gives me a pdf with the numbers increasing, like normal enumerate, and like
I get if I only run pdflatex once on the tex file.  When I run pdflatex from
the command line twice I correctly get the reversed numbers.

This looks like the relevant line from the latex log file, telling latex it
needs to rerun:

LaTeX Warning: Etaremune labels have changed.
   Rerun to get them right.

My module file looks like this:

#\DeclareLyXModule[etaremune.sty]{Etaremune}
#DescriptionBegin
#This package implements the etaremune environment which is similar
#to the enumerate environment, except that labels are decreasing
#instead of increasing. This package provides an alternative to the
#revnum package which uses a lot of counters. The style of lists
#can be controlled locally and globally. See for more information
#the pdf documentation of this package.
#DescriptionEnd
# Author: Gwen Barnes g...@barnesos.net, 2011-01-15

Format 11

AddToPreamble
\usepackage{etaremune}  % customizable list environments
EndPreamble

Style Etaremune
CopyStyle   Enumerate
LatexType   Item_Environment
LatexName   etaremune
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color   blue
EndFont

End

-Gwen


Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Liviu Andronic wrote:
> Do you think LyX could handle this in a friendlier manner?

Yes. In this case, the problem is on the package's side. TotCount does not use 
proper \PackageWarning to inform about necessary reruns, so the message does 
not reach LyX.

Try the attached modified version, which does use \PackageWarning instead of 
\message. If it works, please inform the package author and ask him to fix the 
issue.

Jürgen
%%
%% This is file `totcount.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% totcount.dtx  (with options: `sty')
%% 
%% The TotCount package, version 1.0, 2009/04/14
%% 
%% Copyright (c) [2009] Vasileios Koutavas (vasileios.kouta...@cs.tcd.ie)
%% 
%% This program may be re-distributed and/or modified under the terms of the
%% LaTeX Project Public License version 1.3c, or any later version.
%% The latest version of this license is in
%%CTAN:macros/latex/base/lppl.txt
%% 
\def\totcfileversion{1.1}
\def\totcfiledate{2009/07/09}
\def\totcdocdate{9 Jul 2009}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{totcount}
  [\totcfiledate \space v\totcfileversion \space package for getting%
   the total value of LaTeX counters]
%%
%%   Import of the \xpackage{keyval} package \cite{keyval}:
\RequirePackage{keyval}
%%
%%   Creates a new counter and registers it as a total counter. This is the
%%   top-level dispatch of the macro, depending on whether there is an optional
%%   argument or not.
\def\newtotcounter{%
  \@ifnextchar[\newtotcounter@newaux\newtotcounter@mainaux}
%%
%%   This is the version of the |\newtotcounter| macro that uses a separate
%%   auxiliary file. It first creates the counter (second argument) and then
%%   calls the macro |\regtotcounter|.
\def\newtotcounter@newaux[#1]#2{%
  \newcounter{#2}%
  \regtotcounter[#1]{#2}%
}
%%
%%   This is the version of the |\newtotcounter| macro that uses the main
%%   auxiliary file.  It first creates the counter (argument) and then calls
%%   the macro |\regtotcounter|.
\def\newtotcounter@mainaux#1{%
  \newcounter{#1}%
%% Register the counter:
  \regtotcounter{#1}%
}
%%
%%   Registers a counter as a total counter. This is the top-level dispatch of
%%   the macro, depending on whether there is an optional argument or not.
\def\regtotcounter{%
  \@ifnextchar[\regtotcounter@newaux\regtotcounter@mainaux}
%%
%%   The following is the definition of the |auxfile| key for specifying an
%%   alternative auxiliary file when calling the macro |\regtotcounter| (see
%%   \cite{keyval}).
\define@key{totcounter}{auxfile}{\def\this@auxfile{#1}}
%%
%%   This is the version of the |\regtotcounter| macro that uses a separate
%%   auxiliary file. The auxiliary file is passed as a first argument in the
%%   form of a key--value pair |[auxfile=|\meta{file}|]|, and the counter to be
%%   registered is passed as the second argument.
%%   \begin{macrocode}
\def\regtotcounter@newaux[#1]#2{%
  \setkeys{totcounter}{#1}%
%% Try to load the contents of the file:
  \InputIfFileExists{\this@auxfile}{}{}%
%% Make sure that the auxiliary file is open; \LaTeX\ will close it at the end:
  \expandafter\ifx\csname \this@auxfile @open\endcsname\relax%
\expandafter\gdef\csname \this@auxfile @open\endcsname{}%
\expandafter\newwrite\csname \this@auxfile @stream\endcsname%
\immediate\expandafter\openout%
  \csname \this@auxfile @stream\endcsname=\this@auxfile%
  \fi%
%% Create a new counter holding the total number of the actual counter:
  \expandafter\ifx\csname c@#2@totc\endcsname\relax%
  \newcounter{#2@totc}%
  \setcounter{#2@totc}{-1}%
  \fi%
%% At the end of the document write code in the auxiliary file to update the
%% total counter with the value of the actual counter:
  \AtEndDocument{%
 \def\sp{ }%
 \immediate\expandafter\write%
 \csname \this@auxfile @stream\endcsname{%
   \string\expandafter\string\ifx%
 \string\csname\sp c@#2@totc\string\endcsname\string\relax%
   \string\newcounter{#2@totc}%
   \string\fi%
   \string\setcounter{#2@totc}{\number\value{#2}}%
 }%
  }%
}
%%
%%   This is the version of the |\regtotcounter| macro that uses the main
%%   auxiliary file. The counter to be registered is passed as the second
%%   argument.
\def\regtotcounter@mainaux#1{%
%% Create a new counter holding the total number of the actual counter:
  \expandafter\ifx\csname c@#1@totc\endcsname\relax%
  \newcounter{#1@totc}%
  \setcounter{#1@totc}{-1}%
  \fi%
%% At the end of the document write code in the auxiliary file to update the
%% total counter with the value of the actual counter:
  \AtEndDocument{%
\def\sp{ }%
\immediate\write\@mainaux{%
  \string\expandafter\string\ifx%
\string\csname\sp c@#1@totc\string\endcsname\string\relax%
  \string\newcounter{\string #1@totc}%
  \string\fi%
  \string\setcounter{\string #1@totc}{\number\value{#1}}%
}%
  }%
}
%%
%%   Prints the total value of a registered total counter that is passed as
%%   

Re: how to update aux file in LyX?

2011-01-23 Thread Liviu Andronic
On Sun, Jan 23, 2011 at 11:14 AM, Jürgen Spitzmüller  wrote:
> Liviu Andronic wrote:
>> Do you think LyX could handle this in a friendlier manner?
>
> Yes. In this case, the problem is on the package's side. TotCount does not use
> proper \PackageWarning to inform about necessary reruns, so the message does
> not reach LyX.
>
> Try the attached modified version, which does use \PackageWarning instead of
> \message.
>
Very nice, thanks! Now LyX automatically detects the need for a second
re-run and immediately generates the correct PDF output.


> If it works, please inform the package author and ask him to fix the
> issue.
>
Will surely do so. Cheers
Liviu


Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
> Hm, there doesn't seem to be a rerun request in the log file. Could you 
> provide a small example file?

I've had a quick look at revnum.sty, and it does not seem to issue any rerun 
message; so it's hard for LyX to determine whether a rerun is requested.

Did you check out the etaremune package already?
http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty

This seems to provide the same functionality, but seem to be better written in 
general. According to the sources, a rerun request is issued if necessary, so 
LyX should update the aux file with this package.

If you rely on revnum, I guess you will have to ask its author to implement 
proper wanings.

Jürgen


Re: how to update aux file in LyX?

2011-01-23 Thread Paul A . Rubin
Jürgen Spitzmüller  lyx.org> writes:
>
> I've had a quick look at revnum.sty, and it does not seem to issue any rerun
> message; so it's hard for LyX to determine whether a rerun is requested.
> 

Would it be worth including a checkbox somewhere in Document > Settings to
allow the user to specify an extra pass of latex (or pdflatex, or whatever)
should be done?  It seems undesirable to in essence preclude the use of some
LaTeX packages.

/Paul



Re: how to update aux file in LyX?

2011-01-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
> > I've had a quick look at revnum.sty, and it does not seem to issue any
> > rerun message; so it's hard for LyX to determine whether a rerun is
> > requested.
> >
> > 
> 
> Would it be worth including a checkbox somewhere in Document > Settings to
> allow the user to specify an extra pass of latex (or pdflatex, or whatever)
> should be done?  It seems undesirable to in essence preclude the use of
> some LaTeX packages.

This would not help very much I think. Some packages need extra bibtex runs, 
extra makeindex runs and more than one extra latex run. We do the best that we 
can, but the two packages in question here do not. And it's really not hard to 
fix it at the right end, i.e. in the packages.

Jürgen


Summation

2011-01-23 Thread Charles Reichert
Hello, I have a little bit of a problem.  I can easily insert a summation
sign; however, how do I insert the upper and lower limits (above and below)
the summation symbol?  I found the "frame" area, but it seems I can only
insert either the top, or the bottom; not both?
thanks
Charles


Re: Please confirm your message

2011-01-23 Thread Dr Eberhard W Lisse
You have my full support.

I just replied, without looking too much at the header and then
just replied to confirm.

Maybe the newsgroup maintainer should block these messages...

el

On 1/23/11 7:54 AM, Steve Litt wrote:
> Rude!
> 
> I vote that anyone subscribing to the LyX list with one of those silly 
> handshake thingies be de-listed and forever banned.
> 
> SteveT
> 
> On Sunday 23 January 2011 00:17:06 Dr Eberhard W Lisse wrote:
>> On 1/23/11 7:15 AM, lyx-users@lists.lyx.org wrote:
>>> This message was created automatically by mail delivery software (TMDA).
>>>
>>> Your message attached below is being held because the address
>>>  has not been verified.
>>>
>>> To release your message for delivery, please send an empty message
>>> to the following address, or use your mailer's "Reply" feature.
>>>
>>>lyx-users-confirm-1295759758.19724.fbc...@lists.lyx.org
>>>
>>> This confirmation verifies that your message is legitimate and not
>>> junk-mail. You should only have to confirm your address once.
>>>
>>> If you do not respond to this confirmation request within 14 days,
>>> your message will not be delivered.
> 




Re: Please confirm your message

2011-01-23 Thread Vincent van Ravesteijn

 Op 23-1-2011 19:45, Dr Eberhard W Lisse schreef:

You have my full support.

I just replied, without looking too much at the header and then
just replied to confirm.

Maybe the newsgroup maintainer should block these messages...

el


Thanks for helping out other users anyway.

Vincent



Re: Please confirm your message

2011-01-23 Thread Dr Eberhard W Lisse
Pleasure.

LyX is such an important piece of software for me since many years
so that those very few opportunities I get to contribute, I try :-)-O

el

On 1/23/11 9:04 PM, Vincent van Ravesteijn wrote:
>  Op 23-1-2011 19:45, Dr Eberhard W Lisse schreef:
>> You have my full support.
>>
>> I just replied, without looking too much at the header and then
>> just replied to confirm.
>>
>> Maybe the newsgroup maintainer should block these messages...
>>
>> el
> 
> Thanks for helping out other users anyway.
> 
> Vincent

-- 
Dr. Eberhard W. Lisse  \/  Obstetrician & Gynaecologist
e...@lisse.na/ * | Telephone: +264 81 124 6733 (cell)
PO Box 8421 \ / Please do NOT email to this address
Bachbrecht, Namibia ;/  if it is DNS related in ANY way


Re: Thoughts on Multiple Document Formats

2011-01-23 Thread Guenter Milde
On 2011-01-21, Tim Wescott wrote:

...

> ..., why shouldn't I set 
> things up so that I end up with two sets of documents -- one for this 
> big desktop "universal eBook reader" that I'm typing at, and another for 
> little eBook readers.  Particularly if I can find one eBook format 
> that'll at least be suitable for a number of readers.

> But -- how do I do this? 

>From LyX, export to either PDF or XHTML (LyX 2 will have built-in HTML
export, eLyXer is a Python lyx-to-xhtml converter).

Generating e-Book formats from XHTML is far better supported than from
PDF or LaTeX. Actually, ePub is just "wrapped and zipped XHTML" which
can be generated with a script from the XHTML + graphics files.


Günter



KOMA-Script2 Letter: EndLetter Environment

2011-01-23 Thread Rich Shepard

  I see that the EndLetter environment was added by Juergen a couple of
years ago, but I'm not sure when it needs to be used. The reason I ask is
that I'm sending a client a letter proposal and I want to attach two other
.lyx files after the signature/close of the main letter. Yes, I can probably
add them as separate pdf pages using pdftk, but I'd like to have it all as a
single file within LyX if possible.

  If there is a way to add attachments to a KOMA-Script2 letter, please
point me to the documentation on how to do this.

Thanks in advance,

Rich


Re: how to update aux file in LyX?

2011-01-23 Thread Gwen Barnes
>
> I've had a quick look at revnum.sty, and it does not seem to issue any
> rerun
> message; so it's hard for LyX to determine whether a rerun is requested.
>
> Did you check out the etaremune package already?
> http://ctan.larsko.net/macros/latex/contrib/etaremune/etaremune.sty
>
> This seems to provide the same functionality, but seem to be better written
> in
> general. According to the sources, a rerun request is issued if necessary,
> so
> LyX should update the aux file with this package.
>

I hadn't seen etaremune, but it looks just fine, definitely better if it
will work with lyx.  I have tried to incorporate it in lyx.  LyX output
gives me a pdf with the numbers increasing, like normal enumerate, and like
I get if I only run pdflatex once on the tex file.  When I run pdflatex from
the command line twice I correctly get the reversed numbers.

This looks like the relevant line from the latex log file, telling latex it
needs to rerun:

LaTeX Warning: Etaremune labels have changed.
   Rerun to get them right.

My module file looks like this:

#\DeclareLyXModule[etaremune.sty]{Etaremune}
#DescriptionBegin
#This package implements the etaremune environment which is similar
#to the enumerate environment, except that labels are decreasing
#instead of increasing. This package provides an alternative to the
#revnum package which uses a lot of counters. The style of lists
#can be controlled locally and globally. See for more information
#the pdf documentation of this package.
#DescriptionEnd
# Author: Gwen Barnes , 2011-01-15

Format 11

AddToPreamble
\usepackage{etaremune}  % customizable list environments
EndPreamble

Style Etaremune
CopyStyle   Enumerate
LatexType   Item_Environment
LatexName   etaremune
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color   blue
EndFont

End

-Gwen