Re: LaTeX - LyX and \newcommand

2010-09-01 Thread Torquil Macdonald Sørensen

On 01/09/10 01:47, Uwe Stöhr wrote:

Am 31.08.2010 20:35, schrieb Torquil Macdonald Sørensen:


Let me try to explain better what I meant. I don't want those grey
boxes of tex code for each
instance where a user-defined command is executed in the latex
document. I want my LyX file to look
as if I had written everything in LyX without use of any \newcommand.
The following LaTeX file captures the essence of the file I just had
the misfortune to work with:

\newcommand{\bea}{\begin{equation}}
\newcommand{\eea}{\end{equation}}
\begin{document}
\bea
\int f(x) dx = 0
\eea


Thanks, now I understand what you meant.

Such a feature is indeed very useful when collaborating with plain TeX
users. I propose to create a new Wiki page describing your method and
attaching there your python script.
Create a new Wiki page in this Wiki space:
http://wiki.lyx.org/LaTeX/LaTeX
(To upload files, like your script you need a password. if you need
this, mail me and I'll send it to you privately.)

thanks in advance and best regards
Uwe


The wiki page has now been created. Feel free anyone to improve it 
(title/description/script/example/formatting etc.)


Ref:
http://wiki.lyx.org/LaTeX/ExpandNewcommands
Linked from this page:
http://wiki.lyx.org/LaTeX/LaTeX


Re: Lyxcode too deeply nested

2010-09-01 Thread Uwe Stöhr

Am 26.08.2010 15:25, schrieb chrima.hercou:


Thank you for this great software.
I'm in trouble when I try to produce a code with the lyxcode style. I use 7 
levels of indentation and I got this when I try to produce a pdf :


This is a LaTeX limitation. The maximal nesting level is limited to 6 
(general) or 4 (of same type), see:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=toodeep

regards Uwe


Figure x: defaults set up

2010-09-01 Thread Graham Smith
This has got to be simple, but how do I change the figure/table 
defaults, so I get Figure x. rather than Figure x:  i.e. a full stop 
rather than a colon.


This is with article class if that makes a difference.

Thanks,

Graham


Re: LyX and Lilypond

2010-09-01 Thread Etienne Snyman
Dear friendly LyX-users...

@Julien:
On Tue, 2010-08-31 at 16:11 -0400, Julien Rioux wrote: 
 These are default (I checked for LyX 1.6.5 specifically), but you do 
 need a recent version of lilypond installed, as mentioned by the 
 previous useful message. Once installed, select Tools  Reconfigure from 
 LyX's menus, and the lilypond converter should get configured 
 automatically. Do restart LyX after reconfiguration.

Thanks, Julien! You seem to be the general LyX expert for me! That
worked perfectly, although the output is less than desired. At the
moment, it inserts another page with only the single bar of Lilypond
notation on it. Perhaps it would be better if a .png would be inserted,
rather like the OpenOffice.org Lilypond plugin, which compiles the
Lilypond code into a small image which is inserted into the document, or
at least it did last time I used it about a year ago.

Perhaps something like this is possible, but I don't know about it?


@Torquil:
On Tue, 2010-08-31 at 20:50 +0200, Torquil Macdonald Sørensen wrote:
 On 31/08/10 20:03, Etienne Snyman wrote:
  On Tue, 2010-08-31 at 19:08 +0200, Torquil Macdonald Sørensen wrote:
  Do you want to write Lilypond code directly in LyX, and have LyX 
  automatically
  run the necessary 'lilypond-book' script in order to generate LaTeX code 
  that
  can be compiled to PDF?
 
  That would actually be a great addition. How complicated do you think
  that would be?
 
 I have no idea :-) You'de have to hope for an answer from one of the LyX 
 experts.

Do you think it would be possible to have a plugin? erhaps a window in
which you can write the Lilypond code and then a Lilypond snippet is
automatically inserted? I know Julien Rioux wrote something similar for
the development version of LyX 2, but I don't know what it's like.


Thanks to everyone, you guys really are the best.

Etienne



Re: Can't sync LyX with Skim

2010-09-01 Thread Nat Jacobs
Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
preferences, so that's probably not the problem. (Just in case, I tried
putting LyX back into /Applications, but that didn't seem to do anything.

Okay, I ran the debugging program, and when I hit the key combo in Skim,
nothing registers. There's no message at all.

(I'm not using xdvi. It's not available for Mac. There's a Mac version,
but it costs money to register it, and I've already got Skim, and blah
blah blah.
I have looked at the manuals, but to no avail.)
-N


Re: Figure x: defaults set up

2010-09-01 Thread Paul Rubin
Graham Smith graham.smith at myotis.co.uk writes:

 
 This has got to be simple, but how do I change the figure/table 
 defaults, so I get Figure x. rather than Figure x:  i.e. a full stop 
 rather than a colon.
 
 This is with article class if that makes a difference.
 
In the preamble:

\usepackage{caption}
\captionsetup[figure]{labelsep=period}

/Paul



Re: Figure x: defaults set up

2010-09-01 Thread Graham Smith

Paul,


In the preamble:

\usepackage{caption}
\captionsetup[figure]{labelsep=period}


Many thanks, exactly what I needed.

Graham



Re: Can't sync LyX with Skim

2010-09-01 Thread Stephan Witt
Am 01.09.2010 um 20:25 schrieb Nat Jacobs:

 Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
 preferences, so that's probably not the problem. (Just in case, I tried
 putting LyX back into /Applications, but that didn't seem to do anything.
 
 Okay, I ran the debugging program, and when I hit the key combo in Skim,
 nothing registers. There's no message at all.

Please, can you mention the exact versions of LyX and Skim?

Stephan


Re: Can't compile files with .eps figures

2010-09-01 Thread Paul Rubin
Maybe Ghostscript is hosed on the new machine?  (The epstopdf script uses
Ghostscript to do the transformation.)  The first thing to do is verify that
Ghostscript is installed.  Assuming it is, try running the conversion command
on one of your EPS images in a terminal and see if it produces a helpful error
message.

/Paul




eLyXer 1.0.1 released

2010-09-01 Thread Alex Fernandez
Hi all,

Version 1.0.1 of eLyXer (the LyX to HTML converter) has been released.
This incremental version features basic support for change tracking;
better BibTeX parsing; and support for sizes in spaces, table columns
and boxes.

Changes include:
---
- BibTeX: more robust parsing, specifically: correctly parse entries
separated by commas. Support all TeX commands already available in
math formulae.
- Support for \textasciitilde: ~, \textasciicircum: ^ and a few other
\text… symbols. Also, \textrm, \textsf and \textnormal should be
working now in equations: a + roman + sans-serif + normal + b.
- Improved support for custom horizontal and vertical spaces; absolute
measures can now be used.
- Support for sizes in table columns, figures and boxes.
- Solved bug in --nofooter which required a dummy argument (thanks, Yan!).
- Corrected box styling: div class=Frameless is now indeed
frameless, while div class=Framed no longer has a double border.
- Solved bug in text handling which separated consecutive centered
lines with a space.
- Basic support for LyX change tracking.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

If the new version has not hit your favorite mirror yet:
 http://download.savannah.gnu.org/releases-noredirect/elyxer/

Thanks for your time,

Alex Fernández.


Re: Can't sync LyX with Skim

2010-09-01 Thread Nat Jacobs

Ugh, I can't believe I forgot that. Yeah, my LyX is 1.6.7
and my Skim is 1.3.8 (56) (apparently).
I _think_ those are up to date.

Nat



 Am 01.09.2010 um 20:25 schrieb Nat Jacobs:

 Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
 preferences, so that's probably not the problem. (Just in case, I tried
 putting LyX back into /Applications, but that didn't seem to do
 anything.

 Okay, I ran the debugging program, and when I hit the key combo in Skim,
 nothing registers. There's no message at all.

 Please, can you mention the exact versions of LyX and Skim?

 Stephan




Re: LaTeX - LyX and \newcommand

2010-09-01 Thread Torquil Macdonald Sørensen

On 01/09/10 01:47, Uwe Stöhr wrote:

Am 31.08.2010 20:35, schrieb Torquil Macdonald Sørensen:


Let me try to explain better what I meant. I don't want those grey
boxes of tex code for each
instance where a user-defined command is executed in the latex
document. I want my LyX file to look
as if I had written everything in LyX without use of any \newcommand.
The following LaTeX file captures the essence of the file I just had
the misfortune to work with:

\newcommand{\bea}{\begin{equation}}
\newcommand{\eea}{\end{equation}}
\begin{document}
\bea
\int f(x) dx = 0
\eea


Thanks, now I understand what you meant.

Such a feature is indeed very useful when collaborating with plain TeX
users. I propose to create a new Wiki page describing your method and
attaching there your python script.
Create a new Wiki page in this Wiki space:
http://wiki.lyx.org/LaTeX/LaTeX
(To upload files, like your script you need a password. if you need
this, mail me and I'll send it to you privately.)

thanks in advance and best regards
Uwe


The wiki page has now been created. Feel free anyone to improve it 
(title/description/script/example/formatting etc.)


Ref:
http://wiki.lyx.org/LaTeX/ExpandNewcommands
Linked from this page:
http://wiki.lyx.org/LaTeX/LaTeX


Re: Lyxcode too deeply nested

2010-09-01 Thread Uwe Stöhr

Am 26.08.2010 15:25, schrieb chrima.hercou:


Thank you for this great software.
I'm in trouble when I try to produce a code with the lyxcode style. I use 7 
levels of indentation and I got this when I try to produce a pdf :


This is a LaTeX limitation. The maximal nesting level is limited to 6 
(general) or 4 (of same type), see:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=toodeep

regards Uwe


Figure x: defaults set up

2010-09-01 Thread Graham Smith
This has got to be simple, but how do I change the figure/table 
defaults, so I get Figure x. rather than Figure x:  i.e. a full stop 
rather than a colon.


This is with article class if that makes a difference.

Thanks,

Graham


Re: LyX and Lilypond

2010-09-01 Thread Etienne Snyman
Dear friendly LyX-users...

@Julien:
On Tue, 2010-08-31 at 16:11 -0400, Julien Rioux wrote: 
 These are default (I checked for LyX 1.6.5 specifically), but you do 
 need a recent version of lilypond installed, as mentioned by the 
 previous useful message. Once installed, select Tools  Reconfigure from 
 LyX's menus, and the lilypond converter should get configured 
 automatically. Do restart LyX after reconfiguration.

Thanks, Julien! You seem to be the general LyX expert for me! That
worked perfectly, although the output is less than desired. At the
moment, it inserts another page with only the single bar of Lilypond
notation on it. Perhaps it would be better if a .png would be inserted,
rather like the OpenOffice.org Lilypond plugin, which compiles the
Lilypond code into a small image which is inserted into the document, or
at least it did last time I used it about a year ago.

Perhaps something like this is possible, but I don't know about it?


@Torquil:
On Tue, 2010-08-31 at 20:50 +0200, Torquil Macdonald Sørensen wrote:
 On 31/08/10 20:03, Etienne Snyman wrote:
  On Tue, 2010-08-31 at 19:08 +0200, Torquil Macdonald Sørensen wrote:
  Do you want to write Lilypond code directly in LyX, and have LyX 
  automatically
  run the necessary 'lilypond-book' script in order to generate LaTeX code 
  that
  can be compiled to PDF?
 
  That would actually be a great addition. How complicated do you think
  that would be?
 
 I have no idea :-) You'de have to hope for an answer from one of the LyX 
 experts.

Do you think it would be possible to have a plugin? erhaps a window in
which you can write the Lilypond code and then a Lilypond snippet is
automatically inserted? I know Julien Rioux wrote something similar for
the development version of LyX 2, but I don't know what it's like.


Thanks to everyone, you guys really are the best.

Etienne



Re: Can't sync LyX with Skim

2010-09-01 Thread Nat Jacobs
Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
preferences, so that's probably not the problem. (Just in case, I tried
putting LyX back into /Applications, but that didn't seem to do anything.

Okay, I ran the debugging program, and when I hit the key combo in Skim,
nothing registers. There's no message at all.

(I'm not using xdvi. It's not available for Mac. There's a Mac version,
but it costs money to register it, and I've already got Skim, and blah
blah blah.
I have looked at the manuals, but to no avail.)
-N


Re: Figure x: defaults set up

2010-09-01 Thread Paul Rubin
Graham Smith graham.smith at myotis.co.uk writes:

 
 This has got to be simple, but how do I change the figure/table 
 defaults, so I get Figure x. rather than Figure x:  i.e. a full stop 
 rather than a colon.
 
 This is with article class if that makes a difference.
 
In the preamble:

\usepackage{caption}
\captionsetup[figure]{labelsep=period}

/Paul



Re: Figure x: defaults set up

2010-09-01 Thread Graham Smith

Paul,


In the preamble:

\usepackage{caption}
\captionsetup[figure]{labelsep=period}


Many thanks, exactly what I needed.

Graham



Re: Can't sync LyX with Skim

2010-09-01 Thread Stephan Witt
Am 01.09.2010 um 20:25 schrieb Nat Jacobs:

 Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
 preferences, so that's probably not the problem. (Just in case, I tried
 putting LyX back into /Applications, but that didn't seem to do anything.
 
 Okay, I ran the debugging program, and when I hit the key combo in Skim,
 nothing registers. There's no message at all.

Please, can you mention the exact versions of LyX and Skim?

Stephan


Re: Can't compile files with .eps figures

2010-09-01 Thread Paul Rubin
Maybe Ghostscript is hosed on the new machine?  (The epstopdf script uses
Ghostscript to do the transformation.)  The first thing to do is verify that
Ghostscript is installed.  Assuming it is, try running the conversion command
on one of your EPS images in a terminal and see if it produces a helpful error
message.

/Paul




eLyXer 1.0.1 released

2010-09-01 Thread Alex Fernandez
Hi all,

Version 1.0.1 of eLyXer (the LyX to HTML converter) has been released.
This incremental version features basic support for change tracking;
better BibTeX parsing; and support for sizes in spaces, table columns
and boxes.

Changes include:
---
- BibTeX: more robust parsing, specifically: correctly parse entries
separated by commas. Support all TeX commands already available in
math formulae.
- Support for \textasciitilde: ~, \textasciicircum: ^ and a few other
\text… symbols. Also, \textrm, \textsf and \textnormal should be
working now in equations: a + roman + sans-serif + normal + b.
- Improved support for custom horizontal and vertical spaces; absolute
measures can now be used.
- Support for sizes in table columns, figures and boxes.
- Solved bug in --nofooter which required a dummy argument (thanks, Yan!).
- Corrected box styling: div class=Frameless is now indeed
frameless, while div class=Framed no longer has a double border.
- Solved bug in text handling which separated consecutive centered
lines with a space.
- Basic support for LyX change tracking.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

If the new version has not hit your favorite mirror yet:
 http://download.savannah.gnu.org/releases-noredirect/elyxer/

Thanks for your time,

Alex Fernández.


Re: Can't sync LyX with Skim

2010-09-01 Thread Nat Jacobs

Ugh, I can't believe I forgot that. Yeah, my LyX is 1.6.7
and my Skim is 1.3.8 (56) (apparently).
I _think_ those are up to date.

Nat



 Am 01.09.2010 um 20:25 schrieb Nat Jacobs:

 Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
 preferences, so that's probably not the problem. (Just in case, I tried
 putting LyX back into /Applications, but that didn't seem to do
 anything.

 Okay, I ran the debugging program, and when I hit the key combo in Skim,
 nothing registers. There's no message at all.

 Please, can you mention the exact versions of LyX and Skim?

 Stephan




Re: LaTeX -> LyX and \newcommand

2010-09-01 Thread Torquil Macdonald Sørensen

On 01/09/10 01:47, Uwe Stöhr wrote:

Am 31.08.2010 20:35, schrieb Torquil Macdonald Sørensen:


Let me try to explain better what I meant. I don't want those grey
boxes of tex code for each
instance where a user-defined command is executed in the latex
document. I want my LyX file to look
as if I had written everything in LyX without use of any \newcommand.
The following LaTeX file captures the essence of the file I just had
the misfortune to work with:

\newcommand{\bea}{\begin{equation}}
\newcommand{\eea}{\end{equation}}
\begin{document}
\bea
\int f(x) dx = 0
\eea


Thanks, now I understand what you meant.

Such a feature is indeed very useful when collaborating with plain TeX
users. I propose to create a new Wiki page describing your method and
attaching there your python script.
Create a new Wiki page in this Wiki space:
http://wiki.lyx.org/LaTeX/LaTeX
(To upload files, like your script you need a password. if you need
this, mail me and I'll send it to you privately.)

thanks in advance and best regards
Uwe


The wiki page has now been created. Feel free anyone to improve it 
(title/description/script/example/formatting etc.)


Ref:
http://wiki.lyx.org/LaTeX/ExpandNewcommands
Linked from this page:
http://wiki.lyx.org/LaTeX/LaTeX


Re: Lyxcode too deeply nested

2010-09-01 Thread Uwe Stöhr

Am 26.08.2010 15:25, schrieb chrima.hercou:


Thank you for this great software.
I'm in trouble when I try to produce a code with the lyxcode style. I use 7 
levels of indentation and I got this when I try to produce a pdf :


This is a LaTeX limitation. The maximal nesting level is limited to 6 
(general) or 4 (of same type), see:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=toodeep

regards Uwe


Figure x: defaults set up

2010-09-01 Thread Graham Smith
This has got to be simple, but how do I change the figure/table 
defaults, so I get "Figure x." rather than "Figure x:"  i.e. a full stop 
rather than a colon.


This is with article class if that makes a difference.

Thanks,

Graham


Re: LyX and Lilypond

2010-09-01 Thread Etienne Snyman
Dear friendly LyX-users...

@Julien:
On Tue, 2010-08-31 at 16:11 -0400, Julien Rioux wrote: 
> These are default (I checked for LyX 1.6.5 specifically), but you do 
> need a recent version of lilypond installed, as mentioned by the 
> previous useful message. Once installed, select Tools > Reconfigure from 
> LyX's menus, and the lilypond converter should get configured 
> automatically. Do restart LyX after reconfiguration.

Thanks, Julien! You seem to be the general LyX expert for me! That
worked perfectly, although the output is less than desired. At the
moment, it inserts another page with only the single bar of Lilypond
notation on it. Perhaps it would be better if a .png would be inserted,
rather like the OpenOffice.org Lilypond plugin, which compiles the
Lilypond code into a small image which is inserted into the document, or
at least it did last time I used it about a year ago.

Perhaps something like this is possible, but I don't know about it?


@Torquil:
On Tue, 2010-08-31 at 20:50 +0200, Torquil Macdonald Sørensen wrote:
> On 31/08/10 20:03, Etienne Snyman wrote:
> > On Tue, 2010-08-31 at 19:08 +0200, Torquil Macdonald Sørensen wrote:
> >> Do you want to write Lilypond code directly in LyX, and have LyX 
> >> automatically
> >> run the necessary 'lilypond-book' script in order to generate LaTeX code 
> >> that
> >> can be compiled to PDF?
> >
> > That would actually be a great addition. How complicated do you think
> > that would be?
> 
> I have no idea :-) You'de have to hope for an answer from one of the LyX 
> experts.

Do you think it would be possible to have a plugin? erhaps a window in
which you can write the Lilypond code and then a Lilypond snippet is
automatically inserted? I know Julien Rioux wrote something similar for
the development version of LyX 2, but I don't know what it's like.


Thanks to everyone, you guys really are the best.

Etienne



Re: Can't sync LyX with Skim

2010-09-01 Thread Nat Jacobs
Thanks for the great instructions.
 I put LyX in my TeX folder, but I customized the path in Skim
preferences, so that's probably not the problem. (Just in case, I tried
putting LyX back into /Applications, but that didn't seem to do anything.

Okay, I ran the debugging program, and when I hit the key combo in Skim,
nothing registers. There's no message at all.

(I'm not using xdvi. It's not available for Mac. There's a Mac version,
but it costs money to register it, and I've already got Skim, and blah
blah blah.
I have looked at the manuals, but to no avail.)
-N


Re: Figure x: defaults set up

2010-09-01 Thread Paul Rubin
Graham Smith  myotis.co.uk> writes:

> 
> This has got to be simple, but how do I change the figure/table 
> defaults, so I get "Figure x." rather than "Figure x:"  i.e. a full stop 
> rather than a colon.
> 
> This is with article class if that makes a difference.
> 
In the preamble:

\usepackage{caption}
\captionsetup[figure]{labelsep=period}

/Paul



Re: Figure x: defaults set up

2010-09-01 Thread Graham Smith

Paul,


In the preamble:

\usepackage{caption}
\captionsetup[figure]{labelsep=period}


Many thanks, exactly what I needed.

Graham



Re: Can't sync LyX with Skim

2010-09-01 Thread Stephan Witt
Am 01.09.2010 um 20:25 schrieb Nat Jacobs:

> Thanks for the great instructions.
> I put LyX in my TeX folder, but I customized the path in Skim
> preferences, so that's probably not the problem. (Just in case, I tried
> putting LyX back into /Applications, but that didn't seem to do anything.
> 
> Okay, I ran the debugging program, and when I hit the key combo in Skim,
> nothing registers. There's no message at all.

Please, can you mention the exact versions of LyX and Skim?

Stephan


Re: Can't compile files with .eps figures

2010-09-01 Thread Paul Rubin
Maybe Ghostscript is hosed on the new machine?  (The epstopdf script uses
Ghostscript to do the transformation.)  The first thing to do is verify that
Ghostscript is installed.  Assuming it is, try running the conversion command
on one of your EPS images in a terminal and see if it produces a helpful error
message.

/Paul




eLyXer 1.0.1 released

2010-09-01 Thread Alex Fernandez
Hi all,

Version 1.0.1 of eLyXer (the LyX to HTML converter) has been released.
This incremental version features basic support for change tracking;
better BibTeX parsing; and support for sizes in spaces, table columns
and boxes.

Changes include:
---
- BibTeX: more robust parsing, specifically: correctly parse entries
separated by commas. Support all TeX commands already available in
math formulae.
- Support for \textasciitilde: ~, \textasciicircum: ^ and a few other
\text… symbols. Also, \textrm, \textsf and \textnormal should be
working now in equations: a + roman + sans-serif + normal + b.
- Improved support for custom horizontal and vertical spaces; absolute
measures can now be used.
- Support for sizes in table columns, figures and boxes.
- Solved bug in --nofooter which required a dummy argument (thanks, Yan!).
- Corrected box styling:  is now indeed
frameless, while  no longer has a double border.
- Solved bug in text handling which separated consecutive centered
lines with a space.
- Basic support for LyX change tracking.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

If the new version has not hit your favorite mirror yet:
 http://download.savannah.gnu.org/releases-noredirect/elyxer/

Thanks for your time,

Alex Fernández.


Re: Can't sync LyX with Skim

2010-09-01 Thread Nat Jacobs

Ugh, I can't believe I forgot that. Yeah, my LyX is 1.6.7
and my Skim is 1.3.8 (56) (apparently).
I _think_ those are up to date.

Nat



> Am 01.09.2010 um 20:25 schrieb Nat Jacobs:
>
>> Thanks for the great instructions.
>> I put LyX in my TeX folder, but I customized the path in Skim
>> preferences, so that's probably not the problem. (Just in case, I tried
>> putting LyX back into /Applications, but that didn't seem to do
>> anything.
>>
>> Okay, I ran the debugging program, and when I hit the key combo in Skim,
>> nothing registers. There's no message at all.
>
> Please, can you mention the exact versions of LyX and Skim?
>
> Stephan
>