Re: KOMA report and localisation problem.

2012-04-05 Thread Guenter Milde
On 2012-04-04, Richard Heck wrote:
 On 04/03/2012 09:55 PM, Hannu Vuolasaho wrote:
 Hi!

 I'm writing KOMA report class document and it behaves weird. In Lyx I
 have Part N and in pdf I get part in Finnish as expected. This is
 acceptable even I was curious if it would translate. 

Localization of section names etc. in LyX and LaTeX are independent.
(LaTeX handles this via the babel package, LyX via the Layouts and its own
*.po files.)
You may file a LyX bug for the non-working Finnish Part.

 Now I have source code listing. The caption of source listing says in
 Finnish that it is listing (Listaus 1.2:) in Lyx. In pdf I get caption
 (Listing 1.2:) in English . It's translated wrong direction. It can be
 anything in lyx when I'm editing, but in output it should be correct.

There can be many reasons:

Document language, language argument not in the documentclass arguments
but only as babel argument, missing finnish translation (Listing is not
a standard label but added by the listings package), ...

 Is this easily fixable and where should I fix it?
 Document-preferences and listings has some options so it would be my
 guess but I have no idea how Lyx' localisation works. I just use it
 and get desirable output usually.

 The PDF side of localization isn't handled by LyX but by LaTeX. Someone 
 else might know how to get it to translate. But you could also ask on 
 comp.text.tex.

As this is a LaTeX issue, you might get help in the listings package
documentation.

You can also post a minimal example (simplest possible LyX-file with the
problem) so others can have a look.

Günter



Re: lyxhtml and calibre and mobi and epub

2012-04-05 Thread Guenter Milde
On 2012-04-03, Richard Heck wrote:
 On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:
 On Tue, 3 Apr 2012, Richard Heck wrote:

 I made that change. And the new xhtml displayed as:

1
 -
3

 (long vertical vinculum)

 Fractions in HTML are not an easy thing to do, I'm afraid.

eLyXer does a good job in translating Math to CSS-styled HTML. Maybe the
native exporter can learn/borrow from it.

Günter



Re: Strange problem with the LilyPond module

2012-04-05 Thread Tao Cumplido
Tao Cumplido taocumplido at gmx.net writes:


  You may also add the command option --loglevel=DEBUG to the 
  lilypond-book converter.
 
 Where would I do that?

Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa



Re: Strange problem with the LilyPond module

2012-04-05 Thread Julien Rioux

On 05/04/2012 5:52 AM, Tao Cumplido wrote:

Tao Cumplidotaocumplidoat  gmx.net  writes:



You may also add the command option --loglevel=DEBUG to the
lilypond-book converter.


Where would I do that?


Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa




So lilypond-book complains that a -systems.count file is missing. This 
is either a bug in lilypond (it should generate the -systems.count file 
always) or in lilypond-book (it should know that -systems.count files 
are not always generated). In any case in should probably be 
investigated with the smallest possible example and reported to the 
lilypond project.


In the meantime you may try to get around the bug by adding the 
command-line option --skip-lily-check to the lilypond-book converter.


Cheers,
Julien



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 02:42 AM, Guenter Milde wrote:

On 2012-04-04, Richard Heck wrote:

On 04/03/2012 09:55 PM, Hannu Vuolasaho wrote:

Hi!
I'm writing KOMA report class document and it behaves weird. In Lyx I
have Part N and in pdf I get part in Finnish as expected. This is
acceptable even I was curious if it would translate.

Localization of section names etc. in LyX and LaTeX are independent.
(LaTeX handles this via the babel package, LyX via the Layouts and its own
*.po files.) You may file a LyX bug for the non-working Finnish Part.


I wonder what's wrong there:

#: lib/layouts/article.layout:19 lib/layouts/beamer.layout:107
#: lib/layouts/beamer.layout:122 lib/layouts/memoir.layout:52
#: lib/layouts/mwart.layout:24 lib/layouts/paper.layout:46
#: lib/layouts/scrartcl.layout:21 lib/layouts/svmult.layout:102
#: lib/layouts/tufte-handout.layout:22 lib/layouts/agu_stdsections.inc:12
#: lib/layouts/db_stdsections.inc:12 lib/layouts/numreport.inc:6
#: lib/layouts/scrclass.inc:51 lib/layouts/stdsections.inc:12
#: lib/layouts/svcommon.inc:107
msgid Part
msgstr Osa

Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-05 Thread Richard Heck

On 04/05/2012 02:45 AM, Guenter Milde wrote:

On 2012-04-03, Richard Heck wrote:

On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:
I made that change. And the new xhtml displayed as:
1
-
3
(long vertical vinculum)

Fractions in HTML are not an easy thing to do, I'm afraid.

eLyXer does a good job in translating Math to CSS-styled HTML. Maybe the
native exporter can learn/borrow from it.


It did. But there are real limits to how well HTML can do here.

Richard



Re: circular letter

2012-04-05 Thread Richard Heck

On 04/04/2012 02:25 AM, Jörg Kühne wrote:

Dear List

Is it possible to write (with Lyx) a circular letter with an arbitrary letter 
pattern?

I'm sure this can be done with pstricks or tikz, but I don't use them 
myself.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 08:44 AM, Hannu Vuolasaho wrote:

OK. Here is simplest translation sample. Shows both problems.

Lyx file, pdf and screenshot of Lyx. The version of Lyx is 2.0.3

Well, that's a mystery. I see the problem here, too, on the LyX side. 
The translations seem to be there, though, in the po file. Please file a 
bug about this, and I'll try to get it sorted out.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 08:44 AM, Hannu Vuolasaho wrote:

OK. Here is simplest translation sample. Shows both problems.

Lyx file, pdf and screenshot of Lyx. The version of Lyx is 2.0.3


Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid Part \\Roman{part}
msgstr \\Roman{part}

Note how the translation is marked fuzzy. Perhaps we're not using it, 
then. The same is true of Chapter, Section, etc, which also seem not to 
be translated, when used with a counter.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Jean-Marc Lasgouttes

Le 05/04/2012 14:59, Richard Heck a écrit :

Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid Part \\Roman{part}
msgstr \\Roman{part}


This is what I was about to answer.


Note how the translation is marked fuzzy. Perhaps we're not using it,
then. The same is true of Chapter, Section, etc, which also seem not to
be translated, when used with a counter.


Indeed, fuzzy entries are not used.

JMarc


Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 09:03 AM, Jean-Marc Lasgouttes wrote:

Le 05/04/2012 14:59, Richard Heck a écrit :

Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid Part \\Roman{part}
msgstr \\Roman{part}


This is what I was about to answer.


Note how the translation is marked fuzzy. Perhaps we're not using it,
then. The same is true of Chapter, Section, etc, which also seem not to
be translated, when used with a counter.


Indeed, fuzzy entries are not used.

It's odd they're marked that way, though, since the same translations 
are used for the non-counter versions. Perhaps just an oversight.


Richard



RE: KOMA report and localisation problem.

2012-04-05 Thread Hannu Vuolasaho

Hi!

I added ticket.
http://www.lyx.org/trac/ticket/8115

Next starts to be more Latex question.

I tried to understand how babel works but I couldn't set up preamble so that 
lstlistname or listname changes. Are there any tricks? I wouldn't want to 
override systemfiles to get what I want since changes would be over written on 
update.

In Lyx the listing is defined as 



p, li { white-space: pre-wrap; }

begin{lstlisting}[caption={Caption for listing}]
This is sample listing
\end{lstlisting}

An in 
/usr/share/texmf-dist/tex/latex/listings/listings.sty\lst@UserCommand\lstlistingname{Listing}
Now. If I'm correct \lstlistingname always generates word Listing. Is there any 
way to override that so it generates Listaus, except writing the system wide 
file?

Best regards,
Hannu Vuolasaho


  

RE: KOMA report and localisation problem.

2012-04-05 Thread Hannu Vuolasaho

Just to inform a bit ERT magic  \renewcommand{\lstlistingname}{Listaus} before 
any listing does what I want it to do.

For now all my problems are solved. Thanks everyone.

best regards,
Hannu Vuolasaho

  

Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 12:24 PM, Hannu Vuolasaho wrote:

An in 
/usr/share/texmf-dist/tex/latex/listings/listings.sty\lst@UserCommand\lstlistingname{Listing}
Now. If I'm correct \lstlistingname always generates word Listing. Is there any way to 
override that so it generates Listaus, except writing the system wide file?


In your preamble:

\lst@UserCommand\lstlistingname{Finnish Word for Listing}

Richard



Re: Incomplete Document from Letter Template

2012-04-05 Thread Richard Heck

On 04/05/2012 10:55 AM, Caterpillar wrote:

Hello, I started using Lyx 2 months ago, so I am a new user compared to
you :-)
I am having some troubles with any template of letter kind.
I opened a topic here, but I don't get answers by some days, and I need
to fix this problem as soon as possible
http://latex-community.org/forum/viewtopic.php?f=19t=19307

The problem is:
If I write a complete letter using any letter template (filling name,
address, subject, ecc.) and then I click on show document, I obtain only
a poor document with only the main body.


Please attach a LyX file that causes this problem.

Richard



Re: Incomplete Document from Letter Template

2012-04-05 Thread Caterpillar
Il 05/04/2012 19:22, Richard Heck ha scritto:
 On 04/05/2012 10:55 AM, Caterpillar wrote:
 Hello, I started using Lyx 2 months ago, so I am a new user compared to
 you :-)
 I am having some troubles with any template of letter kind.
 I opened a topic here, but I don't get answers by some days, and I need
 to fix this problem as soon as possible
 http://latex-community.org/forum/viewtopic.php?f=19t=19307

 The problem is:
 If I write a complete letter using any letter template (filling name,
 address, subject, ecc.) and then I click on show document, I obtain only
 a poor document with only the main body.

 Please attach a LyX file that causes this problem.

 Richard


Here is an example


lyx letter.lyx
Description: application/lyx


lyx_letter.pdf
Description: Adobe PDF document


Re: Incomplete Document from Letter Template

2012-04-05 Thread Les Denham
On Thu, 05 Apr 2012 19:27:01 +0200
Caterpillar caterpilla...@gmail.com wrote:

 Il 05/04/2012 19:22, Richard Heck ha scritto:
  On 04/05/2012 10:55 AM, Caterpillar wrote:
  Hello, I started using Lyx 2 months ago, so I am a new user
  compared to you :-)
  I am having some troubles with any template of letter kind.
  I opened a topic here, but I don't get answers by some days, and I
  need to fix this problem as soon as possible
  http://latex-community.org/forum/viewtopic.php?f=19t=19307
 
  The problem is:
  If I write a complete letter using any letter template (filling
  name, address, subject, ecc.) and then I click on show document, I
  obtain only a poor document with only the main body.
 
  Please attach a LyX file that causes this problem.
 
  Richard
 
 
 Here is an example

You need to have Opening style. See Help-Additional Features 6.14.3

Les


LyX as a presentation tool

2012-04-05 Thread Ronen Abravanel
Hello,

I've been using LyX for writing notes and papers for the last ~8 years, and
lately I started using lyx in a new form, that might be of an interest to
others: As a presentation tool.

The general idea is simple: As I teach (modern physics for EE students),
instead of writing on a white-board with my awful handwrite, I just type
the lesson into a computer connected into a projector. Both text and math.
I stand in front of the class, talking to them, looking at them, and type.
Occasionally I leave my laptop and draw something on the board, or do some
demonstration, For illustrations, I'm either insert them into the document
(god bless inset-insert graphics and the minibuffer), or, if the figures
are simple, and I find that it may be instructive to draw them gradually, I
draw on the board.  If I wont to remind the students something from earlier
part of the class, I split the display into Left\Right half, and scroll one
of them up while continue working on the other half.

This methods have many advantages

Over handwriting on the board:
* The main one, the the one lead me to do it: Not forcing the student dose
not have to read my bad handwrite, and I don't spend much time on writing
neatly.
* I'm always facing the class -- I'm not turn my back to them as I write
(only look little bit down, at my screen), so I can see them, and they can
see my face and hear me better.
* When I have complex illustration, I can just add it to the document..

And over pre-made slides:
* Saves time -- I do not have to typeset slides in advance (Also:
Beamer+Hebrew+LyX is a disaster, so it would force me to turn into OO\MS PP
or something like that, which is almost as bad)
* Dynamic -- I can write notes and skip\add steps and lines during the
class.
* Slow -- Doing math on slides is bad. Most of the time, the slides are too
crowded to understand, and fill-up at once, and not character by character
as one would like on the board. When I'm typing with the class, I'm keeping
on slow paste, so the can understand the math and follow by it.

But also some disadvantages:
* My screen is about 1/4 the size of the whiteboard, and LyX is rather
lossy in screen-space. So, instead of just pointing into other parts of the
board, I have to split\scroll.
* The class's screen reaches to low, So, in order to let the students see
the all screen, I switch into fullscreen mode, and then add toolbars from
below in order to push the effective screen upwards.
* When writing in lyx, one always writes on the bottom part of the screen.
There is no good way  (after writing more then screen-full of text) to
start from top, add lines from beneath and then shift to a new screen
when I fill it.
* It's rather ugly when I write \latexCommand in red, and just when I'm
finish its render into symbol.

Few points one can improve (mostly theoretical. some will demand big many
expanse from my university, and some are Itches I should scratch when I'll
have time to code)
* Create half-slide-mode in lyx: Copy one document into another, character
by character, When I'm pressing a single key. It will require preparation
(but anyhow, I prepared the lesson in advance as a lyx document... I don't
remember all by heart , and anyway, it's still a lot easier then creating
lyx\beamer slides), but it will save effort and mistakes during the class ,
while still enable grate flexibility.
* I wish I had 2 VGA output and 2 projectors, and LyX would switch from the
end of one screen into the top of a new-clean-page at the other screen
whenever I fill out the 1st. That would be just perfect :-P.
* I should get something higher then the teacher's table to put my laptop
on. For now, I have to bend over it, and my back is not happy.

Anyway, I'm doing it for a month now,  3 hours a week, and the  experience
for both me and my students is positive. If you have to teach stuff and
don't wont to write on a board, you may consider using lyx. it's fun!

- Ronen.


Presentation tip: was LyX as a presentation tool

2012-04-05 Thread Steve Litt
On Thu, 5 Apr 2012 21:56:43 +0300
Ronen Abravanel ron...@gmail.com wrote:

 Hello,
 
 I've been using LyX for writing notes and papers for the last ~8
 years, and lately I started using lyx in a new form, that might be of
 an interest to others: As a presentation tool.

Hi Ronen,

I can't help you with your LyX questions because I know little about
the LyX authoring environment, but I can give you one tip that's helped
me a heck of a lot.

When presenting, I use one of those wireless optical mice they sell for
between $10 and $20. I make sure the mouse is:

1) 1000dpi and
2) Can be used up to 30 meters away.
3) Has a scroll wheel between the left and right mouse buttons

Then I can use the mouse normally while I'm at the computer, but can
walk around the audience using the left and right mouse button to
advance or go back a slide (I use Evince with a PDF presentation, so
this works). Also, I can use the scroll wheel to quickly advance or go
backward.

I'm not sure how well this would adapt to LyX as the presentation
medium, but it's worth a try.

HTH

SteveT


Re: circular letter

2012-04-05 Thread John O'Gorman
:
 On 04/04/2012 02:25 AM, Jörg Kühne wrote:
 Dear List

 Is it possible to write (with Lyx) a circular letter with an
 arbitrary letter pattern?
I have written perl programs which allow mail merge in insurance
companies for things such as renewal notices, price quotation, etc.
The main idea is that the user creates a normal LyX letter template
(using the article class - we found the letter classes were not suited
to NZ conventions). Where details particular to a client were to be
inserted, you put perl expressions e.g. ${title}  ${firstname}
${lastname} etc.

A database program runs an SQL query and, for each row returned, builds
list of perl assignments
e.g.
${firstname}=John;
${lastname}=Smith;
...
and writes these to a file with a .rec suffix
Then the lyxmerge program loops through the .rec file, effectively
assigning the database values for each client then reads the template
and writes to an output file. Works beautifully giving the usual superb
typesetting.

Perl is most suitable for this because of its weird notion of using
distinctive  syntax for variables. More pleasant languages like Python
do not.

When I wrote this many years ago, I also took the trouble to create
scripts to insert tables of data  into the template. This involved using
some supplied perl library scripts which came with LyX.
The LyX developers now use python for this sort of thing and I haven't
kept my scripts up to date with current LyX versions.

If you want more detail, I'll happily pass on the scripts to those who
want them.

John O'Gorman







Re: Incomplete Document from Letter Template

2012-04-05 Thread Caterpillar
Il 05/04/2012 20:19, Les Denham ha scritto:
 On Thu, 05 Apr 2012 19:27:01 +0200
 Caterpillar caterpilla...@gmail.com wrote:

 Il 05/04/2012 19:22, Richard Heck ha scritto:
 On 04/05/2012 10:55 AM, Caterpillar wrote:
 Hello, I started using Lyx 2 months ago, so I am a new user
 compared to you :-)
 I am having some troubles with any template of letter kind.
 I opened a topic here, but I don't get answers by some days, and I
 need to fix this problem as soon as possible
 http://latex-community.org/forum/viewtopic.php?f=19t=19307

 The problem is:
 If I write a complete letter using any letter template (filling
 name, address, subject, ecc.) and then I click on show document, I
 obtain only a poor document with only the main body.

 Please attach a LyX file that causes this problem.

 Richard


 Here is an example
 You need to have Opening style. See Help-Additional Features 6.14.3

 Les


I tried also on a windows virtual machine in which Lyx uses miktex and
the result is the same. Even with windows the problem solution is the same?



Re: LyX as a presentation tool

2012-04-05 Thread Thomas Coffee
Hi Ronen,

Very interesting ideas --- thanks for sharing. It occurs to me you could
get a good start to the 2-projector solution you describe by telling your
monitor setup that the screens are above  below, then stretching your LyX
window vertically across the two. Then when you reach the end of the
right screen, its contents would be scrolled onto the left screen.

On the topic of class presentations using LyX, I thought I'd also share my
current experience.

Since the equations I deal with in my current teaching are too cumbersome
to type in real time (even with LyX), I have been using beamer to generate
projector slides. However, I really wanted fine-grained control of display
to support the kind of interactive development of the material in class
that one can achieve with a blackboard.

I discovered that (with a little ugliness) it is possible to use some of
beamer's more complex visibility constructs (e.g., \only and \onslide)
inside math mode, in ways that are not obvious from the beamer
documentation. I've attached an excerpt from one of my lectures to
illustrate what I mean. This kind of control lets you replicate many
aspects of dynamically writing and erasing on the blackboard; and in fact,
I have found the process of constructing these sequences a valuable tool in
thinking about how to arrange and develop the material in class. (For
drawings or additional clarifications, I still use the blackboards adjacent
to the projector screen, but there usually few enough of these that I don't
need to erase anything.)

With fine-grained animation, the lecture presentations end up being
hundreds of PDF pages, but I have had no problems with this because:

* to generate a print version with no animations, I need only add handout
under Document  Settings  Document Class  Class options  Custom

* the presentation PDF compresses to nearly the same size as the handout PDF

* going forward and backward during presentation can be done very quickly
(at least, in the evince document viewer) by simply holding down the Page
Up or Page Down key, or using beamer's automatically inserted hyperlinks.

As Ronen described, I find the freedom of not writing and erasing on the
blackboard greatly improves my ability to face the class and devote
attention to leading the presentation and discussion of the material. For a
small class, I actually stay seated most of the time to improve the
ergonomics.

In terms of LyX development, certainly the ability to insert arbitrary ERT
in math mode would ease this approach, though this is clearly true for many
other things as well, and macros always provide a workaround. Further
beamer integration generally could be nice, but none of this is really
holding me up.

The only idea I've thought about implementing near-term is a setup I saw
described somewhere that allows the presenter to have two separate document
viewers (one on the laptop, one on the projector) both operating in
presentation mode simultaneously, that both advance with a key press. This
is not LyX-specific, and would allow the presenter to either (a) play a
copy of the presentation ahead on the laptop to see what's coming next,
or (b) use the notes features of beamer or other packages (or use a
lecture notes file) to guide verbal delivery.

I'd be interested to hear what other instructors have come up with.

- Thomas


On Thu, Apr 5, 2012 at 2:56 PM, Ronen Abravanel ron...@gmail.com wrote:

 Hello,

 I've been using LyX for writing notes and papers for the last ~8 years,
 and lately I started using lyx in a new form, that might be of an interest
 to others: As a presentation tool.

 The general idea is simple: As I teach (modern physics for EE students),
 instead of writing on a white-board with my awful handwrite, I just type
 the lesson into a computer connected into a projector. Both text and math.
 I stand in front of the class, talking to them, looking at them, and type.
 Occasionally I leave my laptop and draw something on the board, or do some
 demonstration, For illustrations, I'm either insert them into the document
 (god bless inset-insert graphics and the minibuffer), or, if the figures
 are simple, and I find that it may be instructive to draw them gradually, I
 draw on the board.  If I wont to remind the students something from earlier
 part of the class, I split the display into Left\Right half, and scroll one
 of them up while continue working on the other half.

 This methods have many advantages

 Over handwriting on the board:
 * The main one, the the one lead me to do it: Not forcing the student dose
 not have to read my bad handwrite, and I don't spend much time on writing
 neatly.
 * I'm always facing the class -- I'm not turn my back to them as I write
 (only look little bit down, at my screen), so I can see them, and they can
 see my face and hear me better.
 * When I have complex illustration, I can just add it to the document..

 And over pre-made slides:
 * Saves time -- I do not have to typeset 

footer on all pages

2012-04-05 Thread Marco Beishuizen

Hi,

How do I create a footer on every page of my document? I'm using the 
book document class and have a \rfoot{xxx} in my preamble, but the 
footer is only displayed on the first page.


Regards,

Marco
--
And ever has it been known that
love knows not its own depth until the hour of separation.
-- Kahlil Gibran


Re: LyX as a presentation tool

2012-04-05 Thread menoncin

I sometimes use LyX as a presentation tool myself.

To what has already been written, I add that for showing how a graph  
is created step by step I use JPicEdt

http://jpicedt.sourceforge.net/site/index.php?language=en
which is a WONDERFUL software by itself but whose LaTeX code can be  
copied in LyX (in an ERT cell) and shown through the preview tool.


Francesco


Thomas Coffee thomasmcof...@gmail.com ha scritto:


Hi Ronen,

Very interesting ideas --- thanks for sharing. It occurs to me you could
get a good start to the 2-projector solution you describe by telling your
monitor setup that the screens are above  below, then stretching your LyX
window vertically across the two. Then when you reach the end of the
right screen, its contents would be scrolled onto the left screen.

On the topic of class presentations using LyX, I thought I'd also share my
current experience.

Since the equations I deal with in my current teaching are too cumbersome
to type in real time (even with LyX), I have been using beamer to generate
projector slides. However, I really wanted fine-grained control of display
to support the kind of interactive development of the material in class
that one can achieve with a blackboard.

I discovered that (with a little ugliness) it is possible to use some of
beamer's more complex visibility constructs (e.g., \only and \onslide)
inside math mode, in ways that are not obvious from the beamer
documentation. I've attached an excerpt from one of my lectures to
illustrate what I mean. This kind of control lets you replicate many
aspects of dynamically writing and erasing on the blackboard; and in fact,
I have found the process of constructing these sequences a valuable tool in
thinking about how to arrange and develop the material in class. (For
drawings or additional clarifications, I still use the blackboards adjacent
to the projector screen, but there usually few enough of these that I don't
need to erase anything.)

With fine-grained animation, the lecture presentations end up being
hundreds of PDF pages, but I have had no problems with this because:

* to generate a print version with no animations, I need only add handout
under Document  Settings  Document Class  Class options  Custom

* the presentation PDF compresses to nearly the same size as the handout PDF

* going forward and backward during presentation can be done very quickly
(at least, in the evince document viewer) by simply holding down the Page
Up or Page Down key, or using beamer's automatically inserted hyperlinks.

As Ronen described, I find the freedom of not writing and erasing on the
blackboard greatly improves my ability to face the class and devote
attention to leading the presentation and discussion of the material. For a
small class, I actually stay seated most of the time to improve the
ergonomics.

In terms of LyX development, certainly the ability to insert arbitrary ERT
in math mode would ease this approach, though this is clearly true for many
other things as well, and macros always provide a workaround. Further
beamer integration generally could be nice, but none of this is really
holding me up.

The only idea I've thought about implementing near-term is a setup I saw
described somewhere that allows the presenter to have two separate document
viewers (one on the laptop, one on the projector) both operating in
presentation mode simultaneously, that both advance with a key press. This
is not LyX-specific, and would allow the presenter to either (a) play a
copy of the presentation ahead on the laptop to see what's coming next,
or (b) use the notes features of beamer or other packages (or use a
lecture notes file) to guide verbal delivery.

I'd be interested to hear what other instructors have come up with.

- Thomas


On Thu, Apr 5, 2012 at 2:56 PM, Ronen Abravanel ron...@gmail.com wrote:


Hello,

I've been using LyX for writing notes and papers for the last ~8 years,
and lately I started using lyx in a new form, that might be of an interest
to others: As a presentation tool.

The general idea is simple: As I teach (modern physics for EE students),
instead of writing on a white-board with my awful handwrite, I just type
the lesson into a computer connected into a projector. Both text and math.
I stand in front of the class, talking to them, looking at them, and type.
Occasionally I leave my laptop and draw something on the board, or do some
demonstration, For illustrations, I'm either insert them into the document
(god bless inset-insert graphics and the minibuffer), or, if the figures
are simple, and I find that it may be instructive to draw them gradually, I
draw on the board.  If I wont to remind the students something from earlier
part of the class, I split the display into Left\Right half, and scroll one
of them up while continue working on the other half.

This methods have many advantages

Over handwriting on the board:
* The main one, the the one lead me to do it: Not forcing the student dose
not have 

Re: KOMA report and localisation problem.

2012-04-05 Thread Pavel Sanda
Hannu Vuolasaho wrote:
 
 Hi!
 
 I added ticket.
 http://www.lyx.org/trac/ticket/8115

Hi! :)
There is worse problem with Finnish - we were not able to contact 
any native speaker to review translation of some environments which are
used in TeX output (i.e. PDF output), not just on screen.

Please would you find some time to check and correct the translations, section 
Translation fi in:
http://git.lyx.org/?p=lyx.git;a=blob;f=lib/layouttranslations;h=1fb2912115;hb=HEAD

See this mail for more info:
http://comments.gmane.org/gmane.editors.lyx.general/68831

Most things seems to be already translated, so I think its more question of 
checking.
Testing is quite comfortable if you open localization_test.lyx in examples 
directory
of you LyX installation.

Your help would be appreciated!
Pavel


Re: KOMA report and localisation problem.

2012-04-05 Thread Pavel Sanda
Hannu Vuolasaho wrote:
 
 Hi!
 
 I'm writing KOMA report class document and it behaves weird. In Lyx I have
 Part N and in pdf I get part in Finnish as expected. This is acceptable even
 I was curious if it would translate.  Now I have source code listing. The
 caption of source listing says in Finnish that it is listing (Listaus 1.2:) 
 in Lyx. In pdf I get caption (Listing 1.2:) in English . It's translated
 wrong direction. It can be anything in lyx when I'm editing, but in output it
 should be correct.

Georg,

would it be easy to add Listing into the layouttranslation machinery we
automatically use on the LyX side?

Pavel


What's the best Beamer mailing list?

2012-04-05 Thread Steve Litt
Hi all,

As you know I use Vim for Beamer authoring instead of LyX. Is there a
good mailing list that specializes in Beamer?

Thanks

SteveT


Re: LyX as a presentation tool

2012-04-05 Thread Liviu Andronic
On Thu, Apr 5, 2012 at 8:56 PM, Ronen Abravanel ron...@gmail.com wrote:
 * Slow -- Doing math on slides is bad. Most of the time, the slides are too
 crowded to understand, and fill-up at once, and not character by character
 as one would like on the board. When I'm typing with the class, I'm keeping
 on slow paste, so the can understand the math and follow by it.

Hmm, is there a Beamer command that would force the slides to always
display math sequentially, line-by-line? I guess this is SF, but what
about word-by-word?

Liviu


Re: KOMA report and localisation problem.

2012-04-05 Thread Guenter Milde
On 2012-04-04, Richard Heck wrote:
 On 04/03/2012 09:55 PM, Hannu Vuolasaho wrote:
 Hi!

 I'm writing KOMA report class document and it behaves weird. In Lyx I
 have Part N and in pdf I get part in Finnish as expected. This is
 acceptable even I was curious if it would translate. 

Localization of section names etc. in LyX and LaTeX are independent.
(LaTeX handles this via the babel package, LyX via the Layouts and its own
*.po files.)
You may file a LyX bug for the non-working Finnish Part.

 Now I have source code listing. The caption of source listing says in
 Finnish that it is listing (Listaus 1.2:) in Lyx. In pdf I get caption
 (Listing 1.2:) in English . It's translated wrong direction. It can be
 anything in lyx when I'm editing, but in output it should be correct.

There can be many reasons:

Document language, language argument not in the documentclass arguments
but only as babel argument, missing finnish translation (Listing is not
a standard label but added by the listings package), ...

 Is this easily fixable and where should I fix it?
 Document-preferences and listings has some options so it would be my
 guess but I have no idea how Lyx' localisation works. I just use it
 and get desirable output usually.

 The PDF side of localization isn't handled by LyX but by LaTeX. Someone 
 else might know how to get it to translate. But you could also ask on 
 comp.text.tex.

As this is a LaTeX issue, you might get help in the listings package
documentation.

You can also post a minimal example (simplest possible LyX-file with the
problem) so others can have a look.

Günter



Re: lyxhtml and calibre and mobi and epub

2012-04-05 Thread Guenter Milde
On 2012-04-03, Richard Heck wrote:
 On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:
 On Tue, 3 Apr 2012, Richard Heck wrote:

 I made that change. And the new xhtml displayed as:

1
 -
3

 (long vertical vinculum)

 Fractions in HTML are not an easy thing to do, I'm afraid.

eLyXer does a good job in translating Math to CSS-styled HTML. Maybe the
native exporter can learn/borrow from it.

Günter



Re: Strange problem with the LilyPond module

2012-04-05 Thread Tao Cumplido
Tao Cumplido taocumplido at gmx.net writes:


  You may also add the command option --loglevel=DEBUG to the 
  lilypond-book converter.
 
 Where would I do that?

Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa



Re: Strange problem with the LilyPond module

2012-04-05 Thread Julien Rioux

On 05/04/2012 5:52 AM, Tao Cumplido wrote:

Tao Cumplidotaocumplidoat  gmx.net  writes:



You may also add the command option --loglevel=DEBUG to the
lilypond-book converter.


Where would I do that?


Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa




So lilypond-book complains that a -systems.count file is missing. This 
is either a bug in lilypond (it should generate the -systems.count file 
always) or in lilypond-book (it should know that -systems.count files 
are not always generated). In any case in should probably be 
investigated with the smallest possible example and reported to the 
lilypond project.


In the meantime you may try to get around the bug by adding the 
command-line option --skip-lily-check to the lilypond-book converter.


Cheers,
Julien



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 02:42 AM, Guenter Milde wrote:

On 2012-04-04, Richard Heck wrote:

On 04/03/2012 09:55 PM, Hannu Vuolasaho wrote:

Hi!
I'm writing KOMA report class document and it behaves weird. In Lyx I
have Part N and in pdf I get part in Finnish as expected. This is
acceptable even I was curious if it would translate.

Localization of section names etc. in LyX and LaTeX are independent.
(LaTeX handles this via the babel package, LyX via the Layouts and its own
*.po files.) You may file a LyX bug for the non-working Finnish Part.


I wonder what's wrong there:

#: lib/layouts/article.layout:19 lib/layouts/beamer.layout:107
#: lib/layouts/beamer.layout:122 lib/layouts/memoir.layout:52
#: lib/layouts/mwart.layout:24 lib/layouts/paper.layout:46
#: lib/layouts/scrartcl.layout:21 lib/layouts/svmult.layout:102
#: lib/layouts/tufte-handout.layout:22 lib/layouts/agu_stdsections.inc:12
#: lib/layouts/db_stdsections.inc:12 lib/layouts/numreport.inc:6
#: lib/layouts/scrclass.inc:51 lib/layouts/stdsections.inc:12
#: lib/layouts/svcommon.inc:107
msgid Part
msgstr Osa

Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-05 Thread Richard Heck

On 04/05/2012 02:45 AM, Guenter Milde wrote:

On 2012-04-03, Richard Heck wrote:

On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:
I made that change. And the new xhtml displayed as:
1
-
3
(long vertical vinculum)

Fractions in HTML are not an easy thing to do, I'm afraid.

eLyXer does a good job in translating Math to CSS-styled HTML. Maybe the
native exporter can learn/borrow from it.


It did. But there are real limits to how well HTML can do here.

Richard



Re: circular letter

2012-04-05 Thread Richard Heck

On 04/04/2012 02:25 AM, Jörg Kühne wrote:

Dear List

Is it possible to write (with Lyx) a circular letter with an arbitrary letter 
pattern?

I'm sure this can be done with pstricks or tikz, but I don't use them 
myself.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 08:44 AM, Hannu Vuolasaho wrote:

OK. Here is simplest translation sample. Shows both problems.

Lyx file, pdf and screenshot of Lyx. The version of Lyx is 2.0.3

Well, that's a mystery. I see the problem here, too, on the LyX side. 
The translations seem to be there, though, in the po file. Please file a 
bug about this, and I'll try to get it sorted out.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 08:44 AM, Hannu Vuolasaho wrote:

OK. Here is simplest translation sample. Shows both problems.

Lyx file, pdf and screenshot of Lyx. The version of Lyx is 2.0.3


Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid Part \\Roman{part}
msgstr \\Roman{part}

Note how the translation is marked fuzzy. Perhaps we're not using it, 
then. The same is true of Chapter, Section, etc, which also seem not to 
be translated, when used with a counter.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Jean-Marc Lasgouttes

Le 05/04/2012 14:59, Richard Heck a écrit :

Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid Part \\Roman{part}
msgstr \\Roman{part}


This is what I was about to answer.


Note how the translation is marked fuzzy. Perhaps we're not using it,
then. The same is true of Chapter, Section, etc, which also seem not to
be translated, when used with a counter.


Indeed, fuzzy entries are not used.

JMarc


Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 09:03 AM, Jean-Marc Lasgouttes wrote:

Le 05/04/2012 14:59, Richard Heck a écrit :

Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid Part \\Roman{part}
msgstr \\Roman{part}


This is what I was about to answer.


Note how the translation is marked fuzzy. Perhaps we're not using it,
then. The same is true of Chapter, Section, etc, which also seem not to
be translated, when used with a counter.


Indeed, fuzzy entries are not used.

It's odd they're marked that way, though, since the same translations 
are used for the non-counter versions. Perhaps just an oversight.


Richard



RE: KOMA report and localisation problem.

2012-04-05 Thread Hannu Vuolasaho

Hi!

I added ticket.
http://www.lyx.org/trac/ticket/8115

Next starts to be more Latex question.

I tried to understand how babel works but I couldn't set up preamble so that 
lstlistname or listname changes. Are there any tricks? I wouldn't want to 
override systemfiles to get what I want since changes would be over written on 
update.

In Lyx the listing is defined as 



p, li { white-space: pre-wrap; }

begin{lstlisting}[caption={Caption for listing}]
This is sample listing
\end{lstlisting}

An in 
/usr/share/texmf-dist/tex/latex/listings/listings.sty\lst@UserCommand\lstlistingname{Listing}
Now. If I'm correct \lstlistingname always generates word Listing. Is there any 
way to override that so it generates Listaus, except writing the system wide 
file?

Best regards,
Hannu Vuolasaho


  

RE: KOMA report and localisation problem.

2012-04-05 Thread Hannu Vuolasaho

Just to inform a bit ERT magic  \renewcommand{\lstlistingname}{Listaus} before 
any listing does what I want it to do.

For now all my problems are solved. Thanks everyone.

best regards,
Hannu Vuolasaho

  

Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 12:24 PM, Hannu Vuolasaho wrote:

An in 
/usr/share/texmf-dist/tex/latex/listings/listings.sty\lst@UserCommand\lstlistingname{Listing}
Now. If I'm correct \lstlistingname always generates word Listing. Is there any way to 
override that so it generates Listaus, except writing the system wide file?


In your preamble:

\lst@UserCommand\lstlistingname{Finnish Word for Listing}

Richard



Re: Incomplete Document from Letter Template

2012-04-05 Thread Richard Heck

On 04/05/2012 10:55 AM, Caterpillar wrote:

Hello, I started using Lyx 2 months ago, so I am a new user compared to
you :-)
I am having some troubles with any template of letter kind.
I opened a topic here, but I don't get answers by some days, and I need
to fix this problem as soon as possible
http://latex-community.org/forum/viewtopic.php?f=19t=19307

The problem is:
If I write a complete letter using any letter template (filling name,
address, subject, ecc.) and then I click on show document, I obtain only
a poor document with only the main body.


Please attach a LyX file that causes this problem.

Richard



Re: Incomplete Document from Letter Template

2012-04-05 Thread Caterpillar
Il 05/04/2012 19:22, Richard Heck ha scritto:
 On 04/05/2012 10:55 AM, Caterpillar wrote:
 Hello, I started using Lyx 2 months ago, so I am a new user compared to
 you :-)
 I am having some troubles with any template of letter kind.
 I opened a topic here, but I don't get answers by some days, and I need
 to fix this problem as soon as possible
 http://latex-community.org/forum/viewtopic.php?f=19t=19307

 The problem is:
 If I write a complete letter using any letter template (filling name,
 address, subject, ecc.) and then I click on show document, I obtain only
 a poor document with only the main body.

 Please attach a LyX file that causes this problem.

 Richard


Here is an example


lyx letter.lyx
Description: application/lyx


lyx_letter.pdf
Description: Adobe PDF document


Re: Incomplete Document from Letter Template

2012-04-05 Thread Les Denham
On Thu, 05 Apr 2012 19:27:01 +0200
Caterpillar caterpilla...@gmail.com wrote:

 Il 05/04/2012 19:22, Richard Heck ha scritto:
  On 04/05/2012 10:55 AM, Caterpillar wrote:
  Hello, I started using Lyx 2 months ago, so I am a new user
  compared to you :-)
  I am having some troubles with any template of letter kind.
  I opened a topic here, but I don't get answers by some days, and I
  need to fix this problem as soon as possible
  http://latex-community.org/forum/viewtopic.php?f=19t=19307
 
  The problem is:
  If I write a complete letter using any letter template (filling
  name, address, subject, ecc.) and then I click on show document, I
  obtain only a poor document with only the main body.
 
  Please attach a LyX file that causes this problem.
 
  Richard
 
 
 Here is an example

You need to have Opening style. See Help-Additional Features 6.14.3

Les


LyX as a presentation tool

2012-04-05 Thread Ronen Abravanel
Hello,

I've been using LyX for writing notes and papers for the last ~8 years, and
lately I started using lyx in a new form, that might be of an interest to
others: As a presentation tool.

The general idea is simple: As I teach (modern physics for EE students),
instead of writing on a white-board with my awful handwrite, I just type
the lesson into a computer connected into a projector. Both text and math.
I stand in front of the class, talking to them, looking at them, and type.
Occasionally I leave my laptop and draw something on the board, or do some
demonstration, For illustrations, I'm either insert them into the document
(god bless inset-insert graphics and the minibuffer), or, if the figures
are simple, and I find that it may be instructive to draw them gradually, I
draw on the board.  If I wont to remind the students something from earlier
part of the class, I split the display into Left\Right half, and scroll one
of them up while continue working on the other half.

This methods have many advantages

Over handwriting on the board:
* The main one, the the one lead me to do it: Not forcing the student dose
not have to read my bad handwrite, and I don't spend much time on writing
neatly.
* I'm always facing the class -- I'm not turn my back to them as I write
(only look little bit down, at my screen), so I can see them, and they can
see my face and hear me better.
* When I have complex illustration, I can just add it to the document..

And over pre-made slides:
* Saves time -- I do not have to typeset slides in advance (Also:
Beamer+Hebrew+LyX is a disaster, so it would force me to turn into OO\MS PP
or something like that, which is almost as bad)
* Dynamic -- I can write notes and skip\add steps and lines during the
class.
* Slow -- Doing math on slides is bad. Most of the time, the slides are too
crowded to understand, and fill-up at once, and not character by character
as one would like on the board. When I'm typing with the class, I'm keeping
on slow paste, so the can understand the math and follow by it.

But also some disadvantages:
* My screen is about 1/4 the size of the whiteboard, and LyX is rather
lossy in screen-space. So, instead of just pointing into other parts of the
board, I have to split\scroll.
* The class's screen reaches to low, So, in order to let the students see
the all screen, I switch into fullscreen mode, and then add toolbars from
below in order to push the effective screen upwards.
* When writing in lyx, one always writes on the bottom part of the screen.
There is no good way  (after writing more then screen-full of text) to
start from top, add lines from beneath and then shift to a new screen
when I fill it.
* It's rather ugly when I write \latexCommand in red, and just when I'm
finish its render into symbol.

Few points one can improve (mostly theoretical. some will demand big many
expanse from my university, and some are Itches I should scratch when I'll
have time to code)
* Create half-slide-mode in lyx: Copy one document into another, character
by character, When I'm pressing a single key. It will require preparation
(but anyhow, I prepared the lesson in advance as a lyx document... I don't
remember all by heart , and anyway, it's still a lot easier then creating
lyx\beamer slides), but it will save effort and mistakes during the class ,
while still enable grate flexibility.
* I wish I had 2 VGA output and 2 projectors, and LyX would switch from the
end of one screen into the top of a new-clean-page at the other screen
whenever I fill out the 1st. That would be just perfect :-P.
* I should get something higher then the teacher's table to put my laptop
on. For now, I have to bend over it, and my back is not happy.

Anyway, I'm doing it for a month now,  3 hours a week, and the  experience
for both me and my students is positive. If you have to teach stuff and
don't wont to write on a board, you may consider using lyx. it's fun!

- Ronen.


Presentation tip: was LyX as a presentation tool

2012-04-05 Thread Steve Litt
On Thu, 5 Apr 2012 21:56:43 +0300
Ronen Abravanel ron...@gmail.com wrote:

 Hello,
 
 I've been using LyX for writing notes and papers for the last ~8
 years, and lately I started using lyx in a new form, that might be of
 an interest to others: As a presentation tool.

Hi Ronen,

I can't help you with your LyX questions because I know little about
the LyX authoring environment, but I can give you one tip that's helped
me a heck of a lot.

When presenting, I use one of those wireless optical mice they sell for
between $10 and $20. I make sure the mouse is:

1) 1000dpi and
2) Can be used up to 30 meters away.
3) Has a scroll wheel between the left and right mouse buttons

Then I can use the mouse normally while I'm at the computer, but can
walk around the audience using the left and right mouse button to
advance or go back a slide (I use Evince with a PDF presentation, so
this works). Also, I can use the scroll wheel to quickly advance or go
backward.

I'm not sure how well this would adapt to LyX as the presentation
medium, but it's worth a try.

HTH

SteveT


Re: circular letter

2012-04-05 Thread John O'Gorman
:
 On 04/04/2012 02:25 AM, Jörg Kühne wrote:
 Dear List

 Is it possible to write (with Lyx) a circular letter with an
 arbitrary letter pattern?
I have written perl programs which allow mail merge in insurance
companies for things such as renewal notices, price quotation, etc.
The main idea is that the user creates a normal LyX letter template
(using the article class - we found the letter classes were not suited
to NZ conventions). Where details particular to a client were to be
inserted, you put perl expressions e.g. ${title}  ${firstname}
${lastname} etc.

A database program runs an SQL query and, for each row returned, builds
list of perl assignments
e.g.
${firstname}=John;
${lastname}=Smith;
...
and writes these to a file with a .rec suffix
Then the lyxmerge program loops through the .rec file, effectively
assigning the database values for each client then reads the template
and writes to an output file. Works beautifully giving the usual superb
typesetting.

Perl is most suitable for this because of its weird notion of using
distinctive  syntax for variables. More pleasant languages like Python
do not.

When I wrote this many years ago, I also took the trouble to create
scripts to insert tables of data  into the template. This involved using
some supplied perl library scripts which came with LyX.
The LyX developers now use python for this sort of thing and I haven't
kept my scripts up to date with current LyX versions.

If you want more detail, I'll happily pass on the scripts to those who
want them.

John O'Gorman







Re: Incomplete Document from Letter Template

2012-04-05 Thread Caterpillar
Il 05/04/2012 20:19, Les Denham ha scritto:
 On Thu, 05 Apr 2012 19:27:01 +0200
 Caterpillar caterpilla...@gmail.com wrote:

 Il 05/04/2012 19:22, Richard Heck ha scritto:
 On 04/05/2012 10:55 AM, Caterpillar wrote:
 Hello, I started using Lyx 2 months ago, so I am a new user
 compared to you :-)
 I am having some troubles with any template of letter kind.
 I opened a topic here, but I don't get answers by some days, and I
 need to fix this problem as soon as possible
 http://latex-community.org/forum/viewtopic.php?f=19t=19307

 The problem is:
 If I write a complete letter using any letter template (filling
 name, address, subject, ecc.) and then I click on show document, I
 obtain only a poor document with only the main body.

 Please attach a LyX file that causes this problem.

 Richard


 Here is an example
 You need to have Opening style. See Help-Additional Features 6.14.3

 Les


I tried also on a windows virtual machine in which Lyx uses miktex and
the result is the same. Even with windows the problem solution is the same?



Re: LyX as a presentation tool

2012-04-05 Thread Thomas Coffee
Hi Ronen,

Very interesting ideas --- thanks for sharing. It occurs to me you could
get a good start to the 2-projector solution you describe by telling your
monitor setup that the screens are above  below, then stretching your LyX
window vertically across the two. Then when you reach the end of the
right screen, its contents would be scrolled onto the left screen.

On the topic of class presentations using LyX, I thought I'd also share my
current experience.

Since the equations I deal with in my current teaching are too cumbersome
to type in real time (even with LyX), I have been using beamer to generate
projector slides. However, I really wanted fine-grained control of display
to support the kind of interactive development of the material in class
that one can achieve with a blackboard.

I discovered that (with a little ugliness) it is possible to use some of
beamer's more complex visibility constructs (e.g., \only and \onslide)
inside math mode, in ways that are not obvious from the beamer
documentation. I've attached an excerpt from one of my lectures to
illustrate what I mean. This kind of control lets you replicate many
aspects of dynamically writing and erasing on the blackboard; and in fact,
I have found the process of constructing these sequences a valuable tool in
thinking about how to arrange and develop the material in class. (For
drawings or additional clarifications, I still use the blackboards adjacent
to the projector screen, but there usually few enough of these that I don't
need to erase anything.)

With fine-grained animation, the lecture presentations end up being
hundreds of PDF pages, but I have had no problems with this because:

* to generate a print version with no animations, I need only add handout
under Document  Settings  Document Class  Class options  Custom

* the presentation PDF compresses to nearly the same size as the handout PDF

* going forward and backward during presentation can be done very quickly
(at least, in the evince document viewer) by simply holding down the Page
Up or Page Down key, or using beamer's automatically inserted hyperlinks.

As Ronen described, I find the freedom of not writing and erasing on the
blackboard greatly improves my ability to face the class and devote
attention to leading the presentation and discussion of the material. For a
small class, I actually stay seated most of the time to improve the
ergonomics.

In terms of LyX development, certainly the ability to insert arbitrary ERT
in math mode would ease this approach, though this is clearly true for many
other things as well, and macros always provide a workaround. Further
beamer integration generally could be nice, but none of this is really
holding me up.

The only idea I've thought about implementing near-term is a setup I saw
described somewhere that allows the presenter to have two separate document
viewers (one on the laptop, one on the projector) both operating in
presentation mode simultaneously, that both advance with a key press. This
is not LyX-specific, and would allow the presenter to either (a) play a
copy of the presentation ahead on the laptop to see what's coming next,
or (b) use the notes features of beamer or other packages (or use a
lecture notes file) to guide verbal delivery.

I'd be interested to hear what other instructors have come up with.

- Thomas


On Thu, Apr 5, 2012 at 2:56 PM, Ronen Abravanel ron...@gmail.com wrote:

 Hello,

 I've been using LyX for writing notes and papers for the last ~8 years,
 and lately I started using lyx in a new form, that might be of an interest
 to others: As a presentation tool.

 The general idea is simple: As I teach (modern physics for EE students),
 instead of writing on a white-board with my awful handwrite, I just type
 the lesson into a computer connected into a projector. Both text and math.
 I stand in front of the class, talking to them, looking at them, and type.
 Occasionally I leave my laptop and draw something on the board, or do some
 demonstration, For illustrations, I'm either insert them into the document
 (god bless inset-insert graphics and the minibuffer), or, if the figures
 are simple, and I find that it may be instructive to draw them gradually, I
 draw on the board.  If I wont to remind the students something from earlier
 part of the class, I split the display into Left\Right half, and scroll one
 of them up while continue working on the other half.

 This methods have many advantages

 Over handwriting on the board:
 * The main one, the the one lead me to do it: Not forcing the student dose
 not have to read my bad handwrite, and I don't spend much time on writing
 neatly.
 * I'm always facing the class -- I'm not turn my back to them as I write
 (only look little bit down, at my screen), so I can see them, and they can
 see my face and hear me better.
 * When I have complex illustration, I can just add it to the document..

 And over pre-made slides:
 * Saves time -- I do not have to typeset 

footer on all pages

2012-04-05 Thread Marco Beishuizen

Hi,

How do I create a footer on every page of my document? I'm using the 
book document class and have a \rfoot{xxx} in my preamble, but the 
footer is only displayed on the first page.


Regards,

Marco
--
And ever has it been known that
love knows not its own depth until the hour of separation.
-- Kahlil Gibran


Re: LyX as a presentation tool

2012-04-05 Thread menoncin

I sometimes use LyX as a presentation tool myself.

To what has already been written, I add that for showing how a graph  
is created step by step I use JPicEdt

http://jpicedt.sourceforge.net/site/index.php?language=en
which is a WONDERFUL software by itself but whose LaTeX code can be  
copied in LyX (in an ERT cell) and shown through the preview tool.


Francesco


Thomas Coffee thomasmcof...@gmail.com ha scritto:


Hi Ronen,

Very interesting ideas --- thanks for sharing. It occurs to me you could
get a good start to the 2-projector solution you describe by telling your
monitor setup that the screens are above  below, then stretching your LyX
window vertically across the two. Then when you reach the end of the
right screen, its contents would be scrolled onto the left screen.

On the topic of class presentations using LyX, I thought I'd also share my
current experience.

Since the equations I deal with in my current teaching are too cumbersome
to type in real time (even with LyX), I have been using beamer to generate
projector slides. However, I really wanted fine-grained control of display
to support the kind of interactive development of the material in class
that one can achieve with a blackboard.

I discovered that (with a little ugliness) it is possible to use some of
beamer's more complex visibility constructs (e.g., \only and \onslide)
inside math mode, in ways that are not obvious from the beamer
documentation. I've attached an excerpt from one of my lectures to
illustrate what I mean. This kind of control lets you replicate many
aspects of dynamically writing and erasing on the blackboard; and in fact,
I have found the process of constructing these sequences a valuable tool in
thinking about how to arrange and develop the material in class. (For
drawings or additional clarifications, I still use the blackboards adjacent
to the projector screen, but there usually few enough of these that I don't
need to erase anything.)

With fine-grained animation, the lecture presentations end up being
hundreds of PDF pages, but I have had no problems with this because:

* to generate a print version with no animations, I need only add handout
under Document  Settings  Document Class  Class options  Custom

* the presentation PDF compresses to nearly the same size as the handout PDF

* going forward and backward during presentation can be done very quickly
(at least, in the evince document viewer) by simply holding down the Page
Up or Page Down key, or using beamer's automatically inserted hyperlinks.

As Ronen described, I find the freedom of not writing and erasing on the
blackboard greatly improves my ability to face the class and devote
attention to leading the presentation and discussion of the material. For a
small class, I actually stay seated most of the time to improve the
ergonomics.

In terms of LyX development, certainly the ability to insert arbitrary ERT
in math mode would ease this approach, though this is clearly true for many
other things as well, and macros always provide a workaround. Further
beamer integration generally could be nice, but none of this is really
holding me up.

The only idea I've thought about implementing near-term is a setup I saw
described somewhere that allows the presenter to have two separate document
viewers (one on the laptop, one on the projector) both operating in
presentation mode simultaneously, that both advance with a key press. This
is not LyX-specific, and would allow the presenter to either (a) play a
copy of the presentation ahead on the laptop to see what's coming next,
or (b) use the notes features of beamer or other packages (or use a
lecture notes file) to guide verbal delivery.

I'd be interested to hear what other instructors have come up with.

- Thomas


On Thu, Apr 5, 2012 at 2:56 PM, Ronen Abravanel ron...@gmail.com wrote:


Hello,

I've been using LyX for writing notes and papers for the last ~8 years,
and lately I started using lyx in a new form, that might be of an interest
to others: As a presentation tool.

The general idea is simple: As I teach (modern physics for EE students),
instead of writing on a white-board with my awful handwrite, I just type
the lesson into a computer connected into a projector. Both text and math.
I stand in front of the class, talking to them, looking at them, and type.
Occasionally I leave my laptop and draw something on the board, or do some
demonstration, For illustrations, I'm either insert them into the document
(god bless inset-insert graphics and the minibuffer), or, if the figures
are simple, and I find that it may be instructive to draw them gradually, I
draw on the board.  If I wont to remind the students something from earlier
part of the class, I split the display into Left\Right half, and scroll one
of them up while continue working on the other half.

This methods have many advantages

Over handwriting on the board:
* The main one, the the one lead me to do it: Not forcing the student dose
not have 

Re: KOMA report and localisation problem.

2012-04-05 Thread Pavel Sanda
Hannu Vuolasaho wrote:
 
 Hi!
 
 I added ticket.
 http://www.lyx.org/trac/ticket/8115

Hi! :)
There is worse problem with Finnish - we were not able to contact 
any native speaker to review translation of some environments which are
used in TeX output (i.e. PDF output), not just on screen.

Please would you find some time to check and correct the translations, section 
Translation fi in:
http://git.lyx.org/?p=lyx.git;a=blob;f=lib/layouttranslations;h=1fb2912115;hb=HEAD

See this mail for more info:
http://comments.gmane.org/gmane.editors.lyx.general/68831

Most things seems to be already translated, so I think its more question of 
checking.
Testing is quite comfortable if you open localization_test.lyx in examples 
directory
of you LyX installation.

Your help would be appreciated!
Pavel


Re: KOMA report and localisation problem.

2012-04-05 Thread Pavel Sanda
Hannu Vuolasaho wrote:
 
 Hi!
 
 I'm writing KOMA report class document and it behaves weird. In Lyx I have
 Part N and in pdf I get part in Finnish as expected. This is acceptable even
 I was curious if it would translate.  Now I have source code listing. The
 caption of source listing says in Finnish that it is listing (Listaus 1.2:) 
 in Lyx. In pdf I get caption (Listing 1.2:) in English . It's translated
 wrong direction. It can be anything in lyx when I'm editing, but in output it
 should be correct.

Georg,

would it be easy to add Listing into the layouttranslation machinery we
automatically use on the LyX side?

Pavel


What's the best Beamer mailing list?

2012-04-05 Thread Steve Litt
Hi all,

As you know I use Vim for Beamer authoring instead of LyX. Is there a
good mailing list that specializes in Beamer?

Thanks

SteveT


Re: LyX as a presentation tool

2012-04-05 Thread Liviu Andronic
On Thu, Apr 5, 2012 at 8:56 PM, Ronen Abravanel ron...@gmail.com wrote:
 * Slow -- Doing math on slides is bad. Most of the time, the slides are too
 crowded to understand, and fill-up at once, and not character by character
 as one would like on the board. When I'm typing with the class, I'm keeping
 on slow paste, so the can understand the math and follow by it.

Hmm, is there a Beamer command that would force the slides to always
display math sequentially, line-by-line? I guess this is SF, but what
about word-by-word?

Liviu


Re: KOMA report and localisation problem.

2012-04-05 Thread Guenter Milde
On 2012-04-04, Richard Heck wrote:
> On 04/03/2012 09:55 PM, Hannu Vuolasaho wrote:
>> Hi!

>> I'm writing KOMA report class document and it behaves weird. In Lyx I
>> have Part N and in pdf I get part in Finnish as expected. This is
>> acceptable even I was curious if it would translate. 

Localization of section names etc. in LyX and LaTeX are independent.
(LaTeX handles this via the babel package, LyX via the Layouts and its own
*.po files.)
You may file a LyX bug for the non-working Finnish "Part".

>> Now I have source code listing. The caption of source listing says in
>> Finnish that it is listing (Listaus 1.2:) in Lyx. In pdf I get caption
>> (Listing 1.2:) in English . It's translated wrong direction. It can be
>> anything in lyx when I'm editing, but in output it should be correct.

There can be many reasons:

Document language, language argument not in the documentclass arguments
but only as babel argument, missing finnish translation ("Listing" is not
a standard label but added by the "listings" package), ...

>> Is this easily fixable and where should I fix it?
>> Document->preferences and listings has some options so it would be my
>> guess but I have no idea how Lyx' localisation works. I just use it
>> and get desirable output usually.

> The PDF side of localization isn't handled by LyX but by LaTeX. Someone 
> else might know how to get it to translate. But you could also ask on 
> comp.text.tex.

As this is a LaTeX issue, you might get help in the listings package
documentation.

You can also post a minimal example (simplest possible LyX-file with the
problem) so others can have a look.

Günter



Re: lyxhtml and calibre and mobi and epub

2012-04-05 Thread Guenter Milde
On 2012-04-03, Richard Heck wrote:
> On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:
>> On Tue, 3 Apr 2012, Richard Heck wrote:

>> I made that change. And the new xhtml displayed as:

>>1
>> -
>>3

>> (long vertical vinculum)

> Fractions in HTML are not an easy thing to do, I'm afraid.

eLyXer does a good job in translating Math to CSS-styled HTML. Maybe the
native exporter can learn/borrow from it.

Günter



Re: Strange problem with the LilyPond module

2012-04-05 Thread Tao Cumplido
Tao Cumplido  gmx.net> writes:


> > You may also add the command option "--loglevel=DEBUG" to the 
> > lilypond-book converter.
> 
> Where would I do that?

Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa



Re: Strange problem with the LilyPond module

2012-04-05 Thread Julien Rioux

On 05/04/2012 5:52 AM, Tao Cumplido wrote:

Tao Cumplido  writes:



You may also add the command option "--loglevel=DEBUG" to the
lilypond-book converter.


Where would I do that?


Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa




So lilypond-book complains that a -systems.count file is missing. This 
is either a bug in lilypond (it should generate the -systems.count file 
always) or in lilypond-book (it should know that -systems.count files 
are not always generated). In any case in should probably be 
investigated with the smallest possible example and reported to the 
lilypond project.


In the meantime you may try to get around the bug by adding the 
command-line option "--skip-lily-check" to the lilypond-book converter.


Cheers,
Julien



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 02:42 AM, Guenter Milde wrote:

On 2012-04-04, Richard Heck wrote:

On 04/03/2012 09:55 PM, Hannu Vuolasaho wrote:

Hi!
I'm writing KOMA report class document and it behaves weird. In Lyx I
have Part N and in pdf I get part in Finnish as expected. This is
acceptable even I was curious if it would translate.

Localization of section names etc. in LyX and LaTeX are independent.
(LaTeX handles this via the babel package, LyX via the Layouts and its own
*.po files.) You may file a LyX bug for the non-working Finnish "Part".


I wonder what's wrong there:

#: lib/layouts/article.layout:19 lib/layouts/beamer.layout:107
#: lib/layouts/beamer.layout:122 lib/layouts/memoir.layout:52
#: lib/layouts/mwart.layout:24 lib/layouts/paper.layout:46
#: lib/layouts/scrartcl.layout:21 lib/layouts/svmult.layout:102
#: lib/layouts/tufte-handout.layout:22 lib/layouts/agu_stdsections.inc:12
#: lib/layouts/db_stdsections.inc:12 lib/layouts/numreport.inc:6
#: lib/layouts/scrclass.inc:51 lib/layouts/stdsections.inc:12
#: lib/layouts/svcommon.inc:107
msgid "Part"
msgstr "Osa"

Richard



Re: lyxhtml and calibre and mobi and epub

2012-04-05 Thread Richard Heck

On 04/05/2012 02:45 AM, Guenter Milde wrote:

On 2012-04-03, Richard Heck wrote:

On 04/03/2012 01:34 PM, Jeremy C. Reed wrote:

On Tue, 3 Apr 2012, Richard Heck wrote:
I made that change. And the new xhtml displayed as:
1
-
3
(long vertical vinculum)

Fractions in HTML are not an easy thing to do, I'm afraid.

eLyXer does a good job in translating Math to CSS-styled HTML. Maybe the
native exporter can learn/borrow from it.


It did. But there are real limits to how well HTML can do here.

Richard



Re: circular letter

2012-04-05 Thread Richard Heck

On 04/04/2012 02:25 AM, "Jörg Kühne" wrote:

Dear List

Is it possible to write (with Lyx) a circular letter with an arbitrary letter 
pattern?

I'm sure this can be done with pstricks or tikz, but I don't use them 
myself.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 08:44 AM, Hannu Vuolasaho wrote:

OK. Here is simplest translation sample. Shows both problems.

Lyx file, pdf and screenshot of Lyx. The version of Lyx is 2.0.3

Well, that's a mystery. I see the problem here, too, on the LyX side. 
The translations seem to be there, though, in the po file. Please file a 
bug about this, and I'll try to get it sorted out.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 08:44 AM, Hannu Vuolasaho wrote:

OK. Here is simplest translation sample. Shows both problems.

Lyx file, pdf and screenshot of Lyx. The version of Lyx is 2.0.3


Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid "Part \\Roman{part}"
msgstr "\\Roman{part}"

Note how the translation is marked "fuzzy". Perhaps we're not using it, 
then. The same is true of Chapter, Section, etc, which also seem not to 
be translated, when used with a counter.


Richard



Re: KOMA report and localisation problem.

2012-04-05 Thread Jean-Marc Lasgouttes

Le 05/04/2012 14:59, Richard Heck a écrit :

Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid "Part \\Roman{part}"
msgstr "\\Roman{part}"


This is what I was about to answer.


Note how the translation is marked "fuzzy". Perhaps we're not using it,
then. The same is true of Chapter, Section, etc, which also seem not to
be translated, when used with a counter.


Indeed, fuzzy entries are not used.

JMarc


Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 09:03 AM, Jean-Marc Lasgouttes wrote:

Le 05/04/2012 14:59, Richard Heck a écrit :

Maybe this is the problem:

#: lib/layouts/stdcounters.inc:10
#, fuzzy
msgid "Part \\Roman{part}"
msgstr "\\Roman{part}"


This is what I was about to answer.


Note how the translation is marked "fuzzy". Perhaps we're not using it,
then. The same is true of Chapter, Section, etc, which also seem not to
be translated, when used with a counter.


Indeed, fuzzy entries are not used.

It's odd they're marked that way, though, since the same translations 
are used for the non-counter versions. Perhaps just an oversight.


Richard



RE: KOMA report and localisation problem.

2012-04-05 Thread Hannu Vuolasaho

Hi!

I added ticket.
http://www.lyx.org/trac/ticket/8115

Next starts to be more Latex question.

I tried to understand how babel works but I couldn't set up preamble so that 
lstlistname or listname changes. Are there any tricks? I wouldn't want to 
override systemfiles to get what I want since changes would be over written on 
update.

In Lyx the listing is defined as 



p, li { white-space: pre-wrap; }

begin{lstlisting}[caption={Caption for listing}]
This is sample listing
\end{lstlisting}

An in 
/usr/share/texmf-dist/tex/latex/listings/listings.sty\lst@UserCommand\lstlistingname{Listing}
Now. If I'm correct \lstlistingname always generates word Listing. Is there any 
way to override that so it generates "Listaus", except writing the system wide 
file?

Best regards,
Hannu Vuolasaho


  

RE: KOMA report and localisation problem.

2012-04-05 Thread Hannu Vuolasaho

Just to inform a bit ERT magic  \renewcommand{\lstlistingname}{Listaus} before 
any listing does what I want it to do.

For now all my problems are solved. Thanks everyone.

best regards,
Hannu Vuolasaho

  

Re: KOMA report and localisation problem.

2012-04-05 Thread Richard Heck

On 04/05/2012 12:24 PM, Hannu Vuolasaho wrote:

An in 
/usr/share/texmf-dist/tex/latex/listings/listings.sty\lst@UserCommand\lstlistingname{Listing}
Now. If I'm correct \lstlistingname always generates word Listing. Is there any way to 
override that so it generates "Listaus", except writing the system wide file?


In your preamble:

\lst@UserCommand\lstlistingname{Finnish Word for Listing}

Richard



Re: Incomplete Document from Letter Template

2012-04-05 Thread Richard Heck

On 04/05/2012 10:55 AM, Caterpillar wrote:

Hello, I started using Lyx 2 months ago, so I am a new user compared to
you :-)
I am having some troubles with any template of letter kind.
I opened a topic here, but I don't get answers by some days, and I need
to fix this problem as soon as possible
http://latex-community.org/forum/viewtopic.php?f=19=19307

The problem is:
If I write a complete letter using any letter template (filling name,
address, subject, ecc.) and then I click on show document, I obtain only
a poor document with only the main body.


Please attach a LyX file that causes this problem.

Richard



Re: Incomplete Document from Letter Template

2012-04-05 Thread Caterpillar
Il 05/04/2012 19:22, Richard Heck ha scritto:
> On 04/05/2012 10:55 AM, Caterpillar wrote:
>> Hello, I started using Lyx 2 months ago, so I am a new user compared to
>> you :-)
>> I am having some troubles with any template of letter kind.
>> I opened a topic here, but I don't get answers by some days, and I need
>> to fix this problem as soon as possible
>> http://latex-community.org/forum/viewtopic.php?f=19=19307
>>
>> The problem is:
>> If I write a complete letter using any letter template (filling name,
>> address, subject, ecc.) and then I click on show document, I obtain only
>> a poor document with only the main body.
>>
> Please attach a LyX file that causes this problem.
>
> Richard
>
>
Here is an example


lyx letter.lyx
Description: application/lyx


lyx_letter.pdf
Description: Adobe PDF document


Re: Incomplete Document from Letter Template

2012-04-05 Thread Les Denham
On Thu, 05 Apr 2012 19:27:01 +0200
Caterpillar  wrote:

> Il 05/04/2012 19:22, Richard Heck ha scritto:
> > On 04/05/2012 10:55 AM, Caterpillar wrote:
> >> Hello, I started using Lyx 2 months ago, so I am a new user
> >> compared to you :-)
> >> I am having some troubles with any template of letter kind.
> >> I opened a topic here, but I don't get answers by some days, and I
> >> need to fix this problem as soon as possible
> >> http://latex-community.org/forum/viewtopic.php?f=19=19307
> >>
> >> The problem is:
> >> If I write a complete letter using any letter template (filling
> >> name, address, subject, ecc.) and then I click on show document, I
> >> obtain only a poor document with only the main body.
> >>
> > Please attach a LyX file that causes this problem.
> >
> > Richard
> >
> >
> Here is an example

You need to have Opening style. See Help->Additional Features 6.14.3

Les


LyX as a presentation tool

2012-04-05 Thread Ronen Abravanel
Hello,

I've been using LyX for writing notes and papers for the last ~8 years, and
lately I started using lyx in a new form, that might be of an interest to
others: As a presentation tool.

The general idea is simple: As I teach (modern physics for EE students),
instead of writing on a white-board with my awful handwrite, I just type
the lesson into a computer connected into a projector. Both text and math.
I stand in front of the class, talking to them, looking at them, and type.
Occasionally I leave my laptop and draw something on the board, or do some
demonstration, For illustrations, I'm either insert them into the document
(god bless inset-insert graphics and the minibuffer), or, if the figures
are simple, and I find that it may be instructive to draw them gradually, I
draw on the board.  If I wont to remind the students something from earlier
part of the class, I split the display into Left\Right half, and scroll one
of them up while continue working on the other half.

This methods have many advantages

Over handwriting on the board:
* The main one, the the one lead me to do it: Not forcing the student dose
not have to read my bad handwrite, and I don't spend much time on writing
neatly.
* I'm always facing the class -- I'm not turn my back to them as I write
(only look little bit down, at my screen), so I can see them, and they can
see my face and hear me better.
* When I have complex illustration, I can just add it to the document..

And over pre-made slides:
* Saves time -- I do not have to typeset slides in advance (Also:
Beamer+Hebrew+LyX is a disaster, so it would force me to turn into OO\MS PP
or something like that, which is almost as bad)
* Dynamic -- I can write notes and skip\add steps and lines during the
class.
* Slow -- Doing math on slides is bad. Most of the time, the slides are too
crowded to understand, and fill-up at once, and not character by character
as one would like on the board. When I'm typing with the class, I'm keeping
on slow paste, so the can understand the math and follow by it.

But also some disadvantages:
* My screen is about 1/4 the size of the whiteboard, and LyX is rather
lossy in screen-space. So, instead of just pointing into other parts of the
board, I have to split\scroll.
* The class's screen reaches to low, So, in order to let the students see
the all screen, I switch into fullscreen mode, and then add toolbars from
below in order to push the effective screen upwards.
* When writing in lyx, one always writes on the bottom part of the screen.
There is no good way  (after writing more then screen-full of text) to
start from top, add lines from beneath and then shift to a "new" screen
when I fill it.
* It's rather ugly when I write \latexCommand in red, and just when I'm
finish its render into symbol.

Few points one can improve (mostly theoretical. some will demand big many
expanse from my university, and some are "Itches I should scratch when I'll
have time to code")
* Create half-slide-mode in lyx: Copy one document into another, character
by character, When I'm pressing a single key. It will require preparation
(but anyhow, I prepared the lesson in advance as a lyx document... I don't
remember all by heart , and anyway, it's still a lot easier then creating
lyx\beamer slides), but it will save effort and mistakes during the class ,
while still enable grate flexibility.
* I wish I had 2 VGA output and 2 projectors, and LyX would switch from the
end of one screen into the top of a new-clean-page at the other screen
whenever I fill out the 1st. That would be just perfect :-P.
* I should get something higher then the teacher's table to put my laptop
on. For now, I have to bend over it, and my back is not happy.

Anyway, I'm doing it for a month now,  3 hours a week, and the  experience
for both me and my students is positive. If you have to teach stuff and
don't wont to write on a board, you may consider using lyx. it's fun!

- Ronen.


Presentation tip: was LyX as a presentation tool

2012-04-05 Thread Steve Litt
On Thu, 5 Apr 2012 21:56:43 +0300
Ronen Abravanel  wrote:

> Hello,
> 
> I've been using LyX for writing notes and papers for the last ~8
> years, and lately I started using lyx in a new form, that might be of
> an interest to others: As a presentation tool.

Hi Ronen,

I can't help you with your LyX questions because I know little about
the LyX authoring environment, but I can give you one tip that's helped
me a heck of a lot.

When presenting, I use one of those wireless optical mice they sell for
between $10 and $20. I make sure the mouse is:

1) 1000dpi and
2) Can be used up to 30 meters away.
3) Has a scroll wheel between the left and right mouse buttons

Then I can use the mouse normally while I'm at the computer, but can
walk around the audience using the left and right mouse button to
advance or go back a slide (I use Evince with a PDF presentation, so
this works). Also, I can use the scroll wheel to quickly advance or go
backward.

I'm not sure how well this would adapt to LyX as the presentation
medium, but it's worth a try.

HTH

SteveT


Re: circular letter

2012-04-05 Thread John O'Gorman
:
> On 04/04/2012 02:25 AM, "Jörg Kühne" wrote:
>> Dear List
>>
>> Is it possible to write (with Lyx) a circular letter with an
>> arbitrary letter pattern?
I have written perl programs which allow mail merge in insurance
companies for things such as renewal notices, price quotation, etc.
The main idea is that the user creates a normal LyX letter template
(using the article class - we found the letter classes were not suited
to NZ conventions). Where details particular to a client were to be
inserted, you put perl expressions e.g. ${title}  ${firstname}
${lastname} etc.

A database program runs an SQL query and, for each row returned, builds
list of perl assignments
e.g.
${firstname}="John";
${lastname}="Smith";
...
and writes these to a file with a .rec suffix
Then the lyxmerge program loops through the .rec file, effectively
assigning the database values for each client then reads the template
and writes to an output file. Works beautifully giving the usual superb
typesetting.

Perl is most suitable for this because of its weird notion of using
distinctive  syntax for variables. More pleasant languages like Python
do not.

When I wrote this many years ago, I also took the trouble to create
scripts to insert tables of data  into the template. This involved using
some supplied perl library scripts which came with LyX.
The LyX developers now use python for this sort of thing and I haven't
kept my scripts up to date with current LyX versions.

If you want more detail, I'll happily pass on the scripts to those who
want them.

John O'Gorman







Re: Incomplete Document from Letter Template

2012-04-05 Thread Caterpillar
Il 05/04/2012 20:19, Les Denham ha scritto:
> On Thu, 05 Apr 2012 19:27:01 +0200
> Caterpillar  wrote:
>
>> Il 05/04/2012 19:22, Richard Heck ha scritto:
>>> On 04/05/2012 10:55 AM, Caterpillar wrote:
 Hello, I started using Lyx 2 months ago, so I am a new user
 compared to you :-)
 I am having some troubles with any template of letter kind.
 I opened a topic here, but I don't get answers by some days, and I
 need to fix this problem as soon as possible
 http://latex-community.org/forum/viewtopic.php?f=19=19307

 The problem is:
 If I write a complete letter using any letter template (filling
 name, address, subject, ecc.) and then I click on show document, I
 obtain only a poor document with only the main body.

>>> Please attach a LyX file that causes this problem.
>>>
>>> Richard
>>>
>>>
>> Here is an example
> You need to have Opening style. See Help->Additional Features 6.14.3
>
> Les
>

I tried also on a windows virtual machine in which Lyx uses miktex and
the result is the same. Even with windows the problem solution is the same?



Re: LyX as a presentation tool

2012-04-05 Thread Thomas Coffee
Hi Ronen,

Very interesting ideas --- thanks for sharing. It occurs to me you could
get a good start to the 2-projector solution you describe by telling your
monitor setup that the screens are above & below, then stretching your LyX
window vertically "across" the two. Then when you reach the end of the
"right" screen, its contents would be scrolled onto the "left" screen.

On the topic of class presentations using LyX, I thought I'd also share my
current experience.

Since the equations I deal with in my current teaching are too cumbersome
to type in real time (even with LyX), I have been using beamer to generate
projector slides. However, I really wanted fine-grained control of display
to support the kind of interactive development of the material in class
that one can achieve with a blackboard.

I discovered that (with a little ugliness) it is possible to use some of
beamer's more complex visibility constructs (e.g., \only and \onslide)
inside math mode, in ways that are not obvious from the beamer
documentation. I've attached an excerpt from one of my lectures to
illustrate what I mean. This kind of control lets you replicate many
aspects of dynamically writing and erasing on the blackboard; and in fact,
I have found the process of constructing these sequences a valuable tool in
thinking about how to arrange and develop the material in class. (For
drawings or additional clarifications, I still use the blackboards adjacent
to the projector screen, but there usually few enough of these that I don't
need to erase anything.)

With fine-grained animation, the lecture presentations end up being
hundreds of PDF pages, but I have had no problems with this because:

* to generate a print version with no animations, I need only add "handout"
under Document >> Settings >> Document Class >> Class options >> Custom

* the presentation PDF compresses to nearly the same size as the handout PDF

* going forward and backward during presentation can be done very quickly
(at least, in the evince document viewer) by simply holding down the Page
Up or Page Down key, or using beamer's automatically inserted hyperlinks.

As Ronen described, I find the freedom of not writing and erasing on the
blackboard greatly improves my ability to face the class and devote
attention to leading the presentation and discussion of the material. For a
small class, I actually stay seated most of the time to improve the
ergonomics.

In terms of LyX development, certainly the ability to insert arbitrary ERT
in math mode would ease this approach, though this is clearly true for many
other things as well, and macros always provide a workaround. Further
beamer integration generally could be nice, but none of this is really
holding me up.

The only idea I've thought about implementing near-term is a setup I saw
described somewhere that allows the presenter to have two separate document
viewers (one on the laptop, one on the projector) both operating in
presentation mode simultaneously, that both advance with a key press. This
is not LyX-specific, and would allow the presenter to either (a) play a
copy of the presentation "ahead" on the laptop to see what's coming next,
or (b) use the "notes" features of beamer or other packages (or use a
lecture notes file) to guide verbal delivery.

I'd be interested to hear what other instructors have come up with.

- Thomas


On Thu, Apr 5, 2012 at 2:56 PM, Ronen Abravanel  wrote:

> Hello,
>
> I've been using LyX for writing notes and papers for the last ~8 years,
> and lately I started using lyx in a new form, that might be of an interest
> to others: As a presentation tool.
>
> The general idea is simple: As I teach (modern physics for EE students),
> instead of writing on a white-board with my awful handwrite, I just type
> the lesson into a computer connected into a projector. Both text and math.
> I stand in front of the class, talking to them, looking at them, and type.
> Occasionally I leave my laptop and draw something on the board, or do some
> demonstration, For illustrations, I'm either insert them into the document
> (god bless inset-insert graphics and the minibuffer), or, if the figures
> are simple, and I find that it may be instructive to draw them gradually, I
> draw on the board.  If I wont to remind the students something from earlier
> part of the class, I split the display into Left\Right half, and scroll one
> of them up while continue working on the other half.
>
> This methods have many advantages
>
> Over handwriting on the board:
> * The main one, the the one lead me to do it: Not forcing the student dose
> not have to read my bad handwrite, and I don't spend much time on writing
> neatly.
> * I'm always facing the class -- I'm not turn my back to them as I write
> (only look little bit down, at my screen), so I can see them, and they can
> see my face and hear me better.
> * When I have complex illustration, I can just add it to the document..
>
> And over pre-made 

footer on all pages

2012-04-05 Thread Marco Beishuizen

Hi,

How do I create a footer on every page of my document? I'm using the 
"book" document class and have a "\rfoot{xxx}" in my preamble, but the 
footer is only displayed on the first page.


Regards,

Marco
--
And ever has it been known that
love knows not its own depth until the hour of separation.
-- Kahlil Gibran


Re: LyX as a presentation tool

2012-04-05 Thread menoncin

I sometimes use LyX as a presentation tool myself.

To what has already been written, I add that for showing how a graph  
is created step by step I use JPicEdt

http://jpicedt.sourceforge.net/site/index.php?language=en
which is a WONDERFUL software by itself but whose LaTeX code can be  
copied in LyX (in an ERT cell) and shown through the preview tool.


Francesco


Thomas Coffee  ha scritto:


Hi Ronen,

Very interesting ideas --- thanks for sharing. It occurs to me you could
get a good start to the 2-projector solution you describe by telling your
monitor setup that the screens are above & below, then stretching your LyX
window vertically "across" the two. Then when you reach the end of the
"right" screen, its contents would be scrolled onto the "left" screen.

On the topic of class presentations using LyX, I thought I'd also share my
current experience.

Since the equations I deal with in my current teaching are too cumbersome
to type in real time (even with LyX), I have been using beamer to generate
projector slides. However, I really wanted fine-grained control of display
to support the kind of interactive development of the material in class
that one can achieve with a blackboard.

I discovered that (with a little ugliness) it is possible to use some of
beamer's more complex visibility constructs (e.g., \only and \onslide)
inside math mode, in ways that are not obvious from the beamer
documentation. I've attached an excerpt from one of my lectures to
illustrate what I mean. This kind of control lets you replicate many
aspects of dynamically writing and erasing on the blackboard; and in fact,
I have found the process of constructing these sequences a valuable tool in
thinking about how to arrange and develop the material in class. (For
drawings or additional clarifications, I still use the blackboards adjacent
to the projector screen, but there usually few enough of these that I don't
need to erase anything.)

With fine-grained animation, the lecture presentations end up being
hundreds of PDF pages, but I have had no problems with this because:

* to generate a print version with no animations, I need only add "handout"
under Document >> Settings >> Document Class >> Class options >> Custom

* the presentation PDF compresses to nearly the same size as the handout PDF

* going forward and backward during presentation can be done very quickly
(at least, in the evince document viewer) by simply holding down the Page
Up or Page Down key, or using beamer's automatically inserted hyperlinks.

As Ronen described, I find the freedom of not writing and erasing on the
blackboard greatly improves my ability to face the class and devote
attention to leading the presentation and discussion of the material. For a
small class, I actually stay seated most of the time to improve the
ergonomics.

In terms of LyX development, certainly the ability to insert arbitrary ERT
in math mode would ease this approach, though this is clearly true for many
other things as well, and macros always provide a workaround. Further
beamer integration generally could be nice, but none of this is really
holding me up.

The only idea I've thought about implementing near-term is a setup I saw
described somewhere that allows the presenter to have two separate document
viewers (one on the laptop, one on the projector) both operating in
presentation mode simultaneously, that both advance with a key press. This
is not LyX-specific, and would allow the presenter to either (a) play a
copy of the presentation "ahead" on the laptop to see what's coming next,
or (b) use the "notes" features of beamer or other packages (or use a
lecture notes file) to guide verbal delivery.

I'd be interested to hear what other instructors have come up with.

- Thomas


On Thu, Apr 5, 2012 at 2:56 PM, Ronen Abravanel  wrote:


Hello,

I've been using LyX for writing notes and papers for the last ~8 years,
and lately I started using lyx in a new form, that might be of an interest
to others: As a presentation tool.

The general idea is simple: As I teach (modern physics for EE students),
instead of writing on a white-board with my awful handwrite, I just type
the lesson into a computer connected into a projector. Both text and math.
I stand in front of the class, talking to them, looking at them, and type.
Occasionally I leave my laptop and draw something on the board, or do some
demonstration, For illustrations, I'm either insert them into the document
(god bless inset-insert graphics and the minibuffer), or, if the figures
are simple, and I find that it may be instructive to draw them gradually, I
draw on the board.  If I wont to remind the students something from earlier
part of the class, I split the display into Left\Right half, and scroll one
of them up while continue working on the other half.

This methods have many advantages

Over handwriting on the board:
* The main one, the the one lead me to do it: Not forcing 

Re: KOMA report and localisation problem.

2012-04-05 Thread Pavel Sanda
Hannu Vuolasaho wrote:
> 
> Hi!
> 
> I added ticket.
> http://www.lyx.org/trac/ticket/8115

Hi! :)
There is worse problem with Finnish - we were not able to contact 
any native speaker to review translation of some environments which are
used in TeX output (i.e. PDF output), not just on screen.

Please would you find some time to check and correct the translations, section 
"Translation fi" in:
http://git.lyx.org/?p=lyx.git;a=blob;f=lib/layouttranslations;h=1fb2912115;hb=HEAD

See this mail for more info:
http://comments.gmane.org/gmane.editors.lyx.general/68831

Most things seems to be already translated, so I think its more question of 
checking.
Testing is quite comfortable if you open localization_test.lyx in examples 
directory
of you LyX installation.

Your help would be appreciated!
Pavel


Re: KOMA report and localisation problem.

2012-04-05 Thread Pavel Sanda
Hannu Vuolasaho wrote:
> 
> Hi!
> 
> I'm writing KOMA report class document and it behaves weird. In Lyx I have
> Part N and in pdf I get part in Finnish as expected. This is acceptable even
> I was curious if it would translate.  Now I have source code listing. The
> caption of source listing says in Finnish that it is listing (Listaus 1.2:) 
> in Lyx. In pdf I get caption (Listing 1.2:) in English . It's translated
> wrong direction. It can be anything in lyx when I'm editing, but in output it
> should be correct.

Georg,

would it be easy to add Listing into the layouttranslation machinery we
automatically use on the LyX side?

Pavel


What's the best Beamer mailing list?

2012-04-05 Thread Steve Litt
Hi all,

As you know I use Vim for Beamer authoring instead of LyX. Is there a
good mailing list that specializes in Beamer?

Thanks

SteveT


Re: LyX as a presentation tool

2012-04-05 Thread Liviu Andronic
On Thu, Apr 5, 2012 at 8:56 PM, Ronen Abravanel  wrote:
> * Slow -- Doing math on slides is bad. Most of the time, the slides are too
> crowded to understand, and fill-up at once, and not character by character
> as one would like on the board. When I'm typing with the class, I'm keeping
> on slow paste, so the can understand the math and follow by it.
>
Hmm, is there a Beamer command that would force the slides to always
display math sequentially, line-by-line? I guess this is SF, but what
about word-by-word?

Liviu