Re: changing font doesn't work for documents

2007-10-10 Thread Juergen Spitzmueller
Zhang Weiwu wrote:

 If I follow the User's Guide, go to Document - Setting, and
 change font to helvet, and Save, and view the output in postscript
 (Ctrl+t), the document is the same (still use a san-serif font). Then I
 go to Document - Setting to check again, and discovered font
 setting is still default. It was as if the setting I made was ignored.

Which version of LyX? In 1.5.x, you have to change the default family
to sans serif. In earlier versions, you have to add the line
\renewcommand{\familydefault}{\sfdefault}
to the preamble.

HTH,
Jürgen



Re: Recipe collection

2007-10-10 Thread Gour
On Tue, 09 Oct 2007 14:01:59 +0200
Hellmut Weber [EMAIL PROTECTED] wrote:

 Hi all,
 I would like to put my collection of recipes in a nice layout.

I got similar task here - to produce cookbook :-)

 Does anybody have ideas in this direction?

Found template  layout based on recipe.cls and added to wiki - see

http://wiki.lyx.org/Layouts/Recipebook

Tried with lyx-1.5.2 and it works...


Sincerely,
Gour


signature.asc
Description: PGP signature


Re: changing font doesn't work for documents

2007-10-10 Thread Zhang Weiwu
Juergen Spitzmueller wrote:
 Zhang Weiwu wrote:

   
 If I follow the User's Guide, go to Document - Setting, and
 change font to helvet, and Save, and view the output in postscript
 (Ctrl+t), the document is the same (still use a san-serif font). Then I
 go to Document - Setting to check again, and discovered font
 setting is still default. It was as if the setting I made was ignored.
 

 Which version of LyX? In 1.5.x, you have to change the default family
 to sans serif. In earlier versions, you have to add the line
 \renewcommand{\familydefault}{\sfdefault}
 to the preamble.
   

Thank you for prompt answer. I am using 1.4.3 and I have used the second
solution (preamble) and it works!


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Rainer M. Krug

Jean-Marc Lasgouttes wrote:

Wolfgang Siebeck [EMAIL PROTECTED] writes:


mangkhon:~ $ lyx
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
boost::filesystem::path_traits '
  what():  boost::filesystem::exists
Abgebrochen -- (Aborted)


This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc
I had a similar problem: My document contained references (external 
bibtex file) and when I wanted to use it on a different machine and the 
folder was not there, LyX crashed. This was Lyx 1.4 something. Maybe 
something similar?




--
NEW EMAIL ADDRESS AND ADDRESS:

[EMAIL PROTECTED]

[EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:+27 - (0)21 650 5776 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 650 2440 (w)
Cell:   +27 - (0)83 9479 042

Skype:  RMkrug

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Rainer M. Krug

Jean-Marc Lasgouttes wrote:

Wolfgang Siebeck [EMAIL PROTECTED] writes:


mangkhon:~ $ lyx
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
boost::filesystem::path_traits '
  what():  boost::filesystem::exists
Abgebrochen -- (Aborted)


This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc
I had a similar problem: My document contained references (external 
bibtex file) and when I wanted to use it on a different machine and the 
folder was not there, LyX crashed. This was Lyx 1.4 something. Maybe 
something similar?




--
NEW EMAIL ADDRESS AND ADDRESS:

[EMAIL PROTECTED]

[EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:+27 - (0)21 650 5776 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 650 2440 (w)
Cell:   +27 - (0)83 9479 042

Skype:  RMkrug

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Wolfgang Siebeck [EMAIL PROTECTED] writes:

 mangkhon:~ $ lyx
 terminate called after throwing an instance of
 'boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
 boost::filesystem::path_traits '
   what():  boost::filesystem::exists
 Abgebrochen -- (Aborted)

This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Rainer M. Krug [EMAIL PROTECTED] writes:

 I had a similar problem: My document contained references (external
 bibtex file) and when I wanted to use it on a different machine and
 the folder was not there, LyX crashed. This was Lyx 1.4 something.
 Maybe something similar?

Probably.

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Wolfgang Siebeck
Jean-Marc Lasgouttes schrieb:
 It seems that when some files are not readable, lyx crashes. This is
 wrong of course. Could you try to run LyX under strace
   strace lyx
 and post the last few lines of output? This should give s the name of
 the file/directory that caused a problem, and therefore a hint about
 what to do.

Well said! I did the strace and part of the result was:

==quote==
getcwd(/home/siebeck, 256)= 14
stat64(/home/siebeck/lyx, 0xbfc34e10) = -1 ENOENT (No such file or
directory)
stat64(/usr/lib/qt-3.3/bin/lyx, 0xbfc34e10) = -1 ENOENT (No such file
or directory)
stat64(/usr/lib/kde3/bin/lyx, 0xbfc34e10) = -1 EACCES (Permission denied)
futex(0x44beae8, FUTEX_WAKE, 2147483647) = 0
write(2, terminate called after throwing ..., 48terminate called after
throwing an instance of ') = 48
write(2, boost::filesystem::basic_filesys...,
118boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
boost::filesystem::path_traits ) = 118
write(2, \'\n, 2'
) = 2
write(2,   what():  , 11  what():  ) = 11
write(2, boost::filesystem::exists, 25boost::filesystem::exists) = 25
write(2, \n, 1
)   = 1
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(12119, 12119, SIGABRT)   = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
==unquote==

So what I did was to create a directory ~/lyx and then I started lyx
again. Wow! Lyx started, created a directory ~/.lyx, checked for all the
helper programs, document classes, packages and whatever and was up and
running! The funny (or strange) part is:

1. there is no directory ~root/lyx
2. under Kubuntu, there is no directory ~/lyx for non-root user

Many thanks for the hint to Jean-Marc!

Greetings from Phuket, Thailand

Wolfgang

-- 
Fempf Halbe sen so viel wia a Schnitzel,
ond dann hosch emmr no nix dronga.


Re: [announce] LyXWinInstaller (with Update installer) for LyX 1.5.2

2007-10-10 Thread Nick and Anne Hopton

Uwe Stöhr wrote:

I uploaded the new version 3.20 of the LyXWinInstaller. This version 
also offers an update installer. With this you can easily your LyX 1.5.1 
to LyX 1.5.2 without uninstalling LyX 1.5.1 before installing LyX 1.5.2. 
Only log in as adminstrator on your PC and execute the update installer. 
Check it out!


I've checked it out using the 'small' version and everything so far is 
good. Testing it on a fairly large document, I notice that the compile 
time is much reduced when compared with Version 1.5.1. Which I didn't 
expect.


Thanks for all of the hard work.

Regards,
Nick.

--
Nick and Anne Hopton, Caversham, Reading, England.


Re: [Announce] LyX 1.5.2 is released

2007-10-10 Thread Jean-Marc Lasgouttes
Bennett Helm [EMAIL PROTECTED] writes:

 By the way, could this have anything to do with localisation? My
 LyX GUI is in German all of a sudden ... I liked it better in
 English :-).

 This is the result of a bug fix: LyX now uses the Mac standard
 interface language for its menus and dialogs. I don't know if there's
 a way of using an alternative interface language. (Jean-Marc?)

I guess the way of setting an alternative interface is to change
Environment.plist, like the wiki used to say before 1.5.2. 

JMarc


Re: [Announce] LyX 1.5.2 is released

2007-10-10 Thread Jean-Marc Lasgouttes
Francesco Menoncin [EMAIL PROTECTED] writes:

 I work on Windows XP and LyX 1.5.2 gave me problems with fonts. It was
 not able to load fonts and the DVI had almost all characters missing.

To load font in latex output or on screen? 

JMarc


Re: Compile problem with LyX 1.4.5.1 on SPARC/Solaris9

2007-10-10 Thread Jean-Marc Lasgouttes
Volker Knierim [EMAIL PROTECTED] writes:
 Hi Jean-Marc,

 thanks for the quick answer. I also would prefer to install the 1.5.X
 version of LyX, but this would require to compile qt4 on my machine
 first. Maybe this would fail also and I would have to solve this
 problem, too :-(

You can ask for help for building qt4. The people who decided the
change to qt4 (I wanted to keep qt3 too) said they would be glad to
help. Don't be shy!

 I attached the config.log file you requested.

The problem is here (it is not related to environment setting
functions per se):

configure:24744: checking for jpeg_read_header in -ljpeg
configure:24779: /opt/SUNWspro/bin/cc -o conftest -O2   -I/usr/openwin/include  
conftest.c -ljpeg  -lforms -lXpm  -lSM -lICE -lc -lm   -L/usr/openwin/lib 
-R/usr/openwin/lib -lX11 -lsocket  -lnsl 5
cc: Warning: option -2 passed to ld
conftest.c, line 45: warning: statement not reached
/usr/ccs/bin/ld: illegal option -- 2
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
[-64]   enforce a 64-bit link-edit
[-a]create an absolute file
...


It seems that autoconf thinks that your compiler is really gcc. I
really do not know why. Do you manage to compile other programs?

I suspect this is a solaris problem... Enrico?

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Wolfgang Siebeck [EMAIL PROTECTED] writes:

 Well said! I did the strace and part of the result was:
 So what I did was to create a directory ~/lyx and then I started lyx
 again. Wow! Lyx started, created a directory ~/.lyx, checked for all the
 helper programs, document classes, packages and whatever and was up and
 running! The funny (or strange) part is:

 1. there is no directory ~root/lyx
 2. under Kubuntu, there is no directory ~/lyx for non-root user

I think the culprit was actually:

 stat64(/usr/lib/kde3/bin/lyx, 0xbfc34e10) = -1 EACCES (Permission denied)

JMarc


embedded math formule

2007-10-10 Thread Robert Poser
Hej,

using the embedded math formule in LyX with koma-report class does not work
for me. in the editor it looks fine, but in the pdf output it leads to wrong
expressions. is it a question of the font (lmodern) or where could the error
be?

thanks a lot,
Rob


declare destination directory for converted files

2007-10-10 Thread Andreas Lagemann
Hello all,
I'm trying to customize the conversion to html via the tools-preferences 
dialog but
I can't seem to find anything about how to control where the output is written 
to
(especially which directory it is written to). I recognize the variables $$i 
and $$o
but they only seem to refer to the filenames without their absolute or relative 
path.
The effect is that if I call my own bash script from within LyX I get all 
resulting
files written into the tmp directory.

So my question is, is there a way to refer to
the directory where the current lyx file resides from within LyX? If so, how is 
it done?

I didn't find anything regarding that topic in the docs nor in the list 
archives. If I
overlooked something I apologize and kindly ask you to provide a link to the 
answer I did
not find.

Also if you see another solution for my problem (i.e. directing output to the 
current working
directory) please feel free to tell me how you would do it.

Thanks in advance and best regards,

Andreas Lagemann



making a table with columns starting at different places

2007-10-10 Thread Jeremy C. Reed
See the 3.2KB attached image.

I want to try making that using tabular and multicolumn.

My first row has 33 columns, the first doesn't have a border.
The second row has 5 columns with the 2nd column for the 2nd-5th columns 
above, and so on.
The third row has 4 columns, with the 2nd column covering the 2nd-17th 
columns at the top.
...

But I am unsure how to get some of the columns to start at certain places.

Can anyone share any example?

Or should I just use a tool like xfig or inkscape to recreate this?
I just didn't want to try to figure out making the top 33 columns all 
sized correctly. Unless some tool can do what I want without my manual 
adjustments.

I have a few tables like this to create.

  Jeremy C. Reed

table.png
Description: Binary data


[OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

  This is not LyX specific, but I'm hoping that some of you can provide
direction to help me find the solution I need.

  In brief: we're developing an approximate reasoning model (a type of
expert system) in Python and C, with data maintained in an embedded SQLite
database. I'd like to produce reports via LaTeX and pdflatex. To do so, I
need to write report-specific LaTeX templates that have replaceable
variables where the content goes. Then, the applicaion would
programmatically extract the required information from a database table and
fill in the template for the report.

  I cannot find how to create such a LaTeX template in Guide to LaTeX or
TLC2. LaTeX document classes are templates themselves, but are used to
manually fill in the document content. Can this content be provided
programmatically?

  Suggestions appreciated.

TIA,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Different page orientations in one document

2007-10-10 Thread Rudi van der Linde

Hi All.

I know this has been answered before but I do not have a direct Internet 
connection from work, only email and that makes things interesting to 
say the least.


I would like to have portrait as well as landscape oriented pages in a 
document I am writing.  I would appreciate any pointers on how to do it.


Many thanks.

--
Rudi van der Linde
[EMAIL PROTECTED]

Note:
This message (and attachments) is subject to restrictions and a disclaimer. 
Please refer to http://www.ansys.co.za/index.html or [EMAIL PROTECTED] for full 
details.



Re: Different page orientations in one document

2007-10-10 Thread Roger Light
Hi Rudi,

 I would like to have portrait as well as landscape oriented pages in a 
 document I am writing.  I would appreciate any pointers on how to do it.

I do this by adding \usepackage{lscape} to my preamble then surrounding
my landscape pages with ERT:

\begin{landscape}

(page goes here)

\end{landscape}

Bear in mind that I'm using version 1.3.7 so things may have changed in
the interim.

Cheers,

Roger


Re: embedded math formule

2007-10-10 Thread Paul A. Rubin

Robert Poser wrote:


using the embedded math formule in LyX with koma-report class does not work
for me. in the editor it looks fine, but in the pdf output it leads to wrong
expressions. is it a question of the font (lmodern) or where could the error
be?



It's easy to check whether Latin Modern is the culprit:  change the font 
and see if the problem persists.  If it does, can you post a small example?


/Paul



Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Todd Denniston

Rich Shepard wrote, On 10/10/2007 09:21 AM:

  This is not LyX specific, but I'm hoping that some of you can provide
direction to help me find the solution I need.

  In brief: we're developing an approximate reasoning model (a type of
expert system) in Python and C, with data maintained in an embedded SQLite
database. I'd like to produce reports via LaTeX and pdflatex. To do so, I
need to write report-specific LaTeX templates that have replaceable
variables where the content goes. Then, the applicaion would
programmatically extract the required information from a database table and
fill in the template for the report.

  I cannot find how to create such a LaTeX template in Guide to LaTeX or
TLC2. LaTeX document classes are templates themselves, but are used to
manually fill in the document content. Can this content be provided
programmatically?

  Suggestions appreciated.

TIA,

Rich



I have done such a beast, therefore it can be done. :)
The method I used involved having a LaTeX file[1], which at an appropriate 
place[2] in the file, uses \input{MyVariableData.tex} and then when I want the 
data from a variable I just use \MyFirstVar at the appropriate place in the 
template file.


I had to be careful in my C program to properly escape LaTeX special chars 
before it wrote the data to MyVariableData.tex, i.e., at least _, * and 
\ become \_, {*} and \textbackslash{}.

There are probably others you need to look out for like %  @.

in MyVariableData.tex there are lines of the form:
\def\MyFirstVar{{*}Data{*} for Var\_1}




then with a script passing all the appropriate options to LaTeX, dvips (I 
needed PostScript output) and an rm of LaTeX temporary data, I have the 
program create the postscript for sending to the printer.



Hope this helps.


[1] a full LaTeX document which uses a lot stuff from \usepackage{ifthen} 
\usepackage{soul} \usepackage{pstricks} \usepackage{pst-text} 
\usepackage{pst-eps} \usepackage[dvips]{graphicx} \usepackage[dvips]{geometry}
I love the funky stuff you can do with LaTeX... like making CD labels with 
curved words on top of pictures.  I started from:

http://www.aldil.org/projets/TeX_cd_label.html

[2] appropriate from the perspective that you may need some packages defined 
before the variable file is pulled in, and you need to pull in the variable 
file before you try to use one of it's variables in the main LaTeX file.



--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
http://www.crane.navy.mil/custfeedback


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Todd Denniston wrote:


I have done such a beast, therefore it can be done. :)


  Thank you, Todd!


I had to be careful in my C program to properly escape LaTeX special chars
before it wrote the data to MyVariableData.tex, i.e., at least _, *
and \ become \_, {*} and \textbackslash{}. There are probably
others you need to look out for like %  @.


  This should not be an issue in our model. The data are extracted from the
database to a Python list (or a list of tuples; analogous to a
two-dimensional array), and I can use indices to extract the strings and
numbers I want.

  There will be plots (created, no doubt, with PSTricks), to be included in
the audit log report of each run. So I expect the templates to be as
inclusive as your example.


in MyVariableData.tex there are lines of the form:
\def\MyFirstVar{{*}Data{*} for Var\_1}


  I do need to better learn programming in LaTeX; this project needs that
increased knowledge.


Hope this helps.


  Yes, it does.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Paul A. Rubin

Rich Shepard wrote:

  This is not LyX specific, but I'm hoping that some of you can provide
direction to help me find the solution I need.

  In brief: we're developing an approximate reasoning model (a type of
expert system) in Python and C, with data maintained in an embedded SQLite
database. I'd like to produce reports via LaTeX and pdflatex. To do so, I
need to write report-specific LaTeX templates that have replaceable
variables where the content goes. Then, the applicaion would
programmatically extract the required information from a database table and
fill in the template for the report.

  I cannot find how to create such a LaTeX template in Guide to LaTeX or
TLC2. LaTeX document classes are templates themselves, but are used to
manually fill in the document content. Can this content be provided
programmatically?



I would write the template as an ordinary document (and of course would 
write it in LyX, then export to .tex), using some distinctive 
placeholders where the good stuff would be inserted (e.g., %%variable 
1%% or some such).  Then have a script create a copy of the .tex file 
(so as not to corrupt the master template) and use sed to substitute the 
good stuff for the placeholders.  Depending on what the good stuff looks 
like, you might have to escape a character here or there.


Or am I missing something fundamental here?

/Paul



Re: making a table with columns starting at different places

2007-10-10 Thread Paul A. Rubin

Jeremy C. Reed wrote:

See the 3.2KB attached image.

I want to try making that using tabular and multicolumn.

My first row has 33 columns, the first doesn't have a border.
The second row has 5 columns with the 2nd column for the 2nd-5th columns 
above, and so on.
The third row has 4 columns, with the 2nd column covering the 2nd-17th 
columns at the top.

...

But I am unsure how to get some of the columns to start at certain places.

Can anyone share any example?

Or should I just use a tool like xfig or inkscape to recreate this?
I just didn't want to try to figure out making the top 33 columns all 
sized correctly. Unless some tool can do what I want without my manual 
adjustments.


I have a few tables like this to create.



The tedious but (moderately) straightforward approach is to start with 
an Nx33 table, then merge cells by drag-selecting them and clicking the 
multicolumn button in the table toolbar (or using the right-click table 
dialog and selecting multicolumn).  Separate borders can be set (the 
usual way) for multicolumn cells.


/Paul



Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Ernesto Posse
Since you are using Python, I suggest using the string.Template class
for this purpose. I think the only thing that you would have to be
careful about is with the $: You would have to replace the normal $'s
of your LaTeX template by $$, since this class uses $ for marking
placeholders. Here's the link to the documentation

http://docs.python.org/lib/node40.html


On 10/10/07, Rich Shepard [EMAIL PROTECTED] wrote:
 On Wed, 10 Oct 2007, Todd Denniston wrote:

  I have done such a beast, therefore it can be done. :)

Thank you, Todd!

  I had to be careful in my C program to properly escape LaTeX special chars
  before it wrote the data to MyVariableData.tex, i.e., at least _, *
  and \ become \_, {*} and \textbackslash{}. There are probably
  others you need to look out for like %  @.

This should not be an issue in our model. The data are extracted from the
 database to a Python list (or a list of tuples; analogous to a
 two-dimensional array), and I can use indices to extract the strings and
 numbers I want.

There will be plots (created, no doubt, with PSTricks), to be included in
 the audit log report of each run. So I expect the templates to be as
 inclusive as your example.

  in MyVariableData.tex there are lines of the form:
  \def\MyFirstVar{{*}Data{*} for Var\_1}

I do need to better learn programming in LaTeX; this project needs that
 increased knowledge.

  Hope this helps.

Yes, it does.

 Rich

 --
 Richard B. Shepard, Ph.D.   |The Environmental Permitting
 Applied Ecosystem Services, Inc.| Accelerators(TM)
 http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



-- 
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse


Re: Compile problem with LyX 1.4.5.1 on SPARC/Solaris9

2007-10-10 Thread Abdelrazak Younes

Jean-Marc Lasgouttes wrote:

Volker Knierim [EMAIL PROTECTED] writes:

Hi Jean-Marc,

thanks for the quick answer. I also would prefer to install the 1.5.X
version of LyX, but this would require to compile qt4 on my machine
first. Maybe this would fail also and I would have to solve this
problem, too :-(


Qt4 is faster and easier to compile than LyX itself so I suggest that 
you try it nevertheless. There are maybe some precompiled packages 
coming the different KDE4 alpha release. I know for sure that there is a 
Qt4 package for OpenSolaris, is that compatible with Solaris 9?




You can ask for help for building qt4. The people who decided the
change to qt4 (I wanted to keep qt3 too) said they would be glad to
help. Don't be shy!


Only Enrico is using Solaris as far as I know.

Abdel.



Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Paul A. Rubin wrote:


I would write the template as an ordinary document (and of course would
write it in LyX, then export to .tex), using some distinctive placeholders
where the good stuff would be inserted (e.g., %%variable 1%% or some
such).  Then have a script create a copy of the .tex file (so as not to
corrupt the master template) and use sed to substitute the good stuff for
the placeholders.  Depending on what the good stuff looks like, you might
have to escape a character here or there.


Paul,

  I think this is fundamentally the same approach Todd used.


Or am I missing something fundamental here?


  Honestly don't know at this time.

  I was expecting to find a Python library, because Python has libraries for
almost everything, but the PyTeX project apparently died 2-4 years ago.
Ideally, there would be the equivalent of, for example, pysqlite which is
the connection between Python code and the SQLite database (there are
equivalents for postgres and other dbms).

  How it would work or what it would need I've no idea now.

  But, you've contributed to the ideas, and that's a Good Thing(R). Many
thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Ernesto Posse wrote:


Since you are using Python, I suggest using the string.Template class
for this purpose. I think the only thing that you would have to be
careful about is with the $: You would have to replace the normal $'s
of your LaTeX template by $$, since this class uses $ for marking
placeholders. Here's the link to the documentation

http://docs.python.org/lib/node40.html


  Thank you very much, Ernesto.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Ernesto Posse wrote:


Since you are using Python, I suggest using the string.Template class
for this purpose.


  The example on that 'man' page suggests the path to ultimate happiness,
using the Python shell:


from string import Template
s = Template('$who likes $what')
s.substitute(who='tim', what='kung pao')

'tim likes kung pao'

  I think what might work is writing the LaTeX template as a series of print
statements (writing to an output file with the .tex extension), and using
the Template class to replace each variable as needed, before printing that
line to the output file, too.

  I'll play with this. It looks promising.

Thanks, all,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Todd Denniston

Rich Shepard wrote, On 10/10/2007 12:09 PM:

On Wed, 10 Oct 2007, Paul A. Rubin wrote:


I would write the template as an ordinary document (and of course would
write it in LyX, then export to .tex), using some distinctive 
placeholders

where the good stuff would be inserted (e.g., %%variable 1%% or some
such).  Then have a script create a copy of the .tex file (so as not to
corrupt the master template) and use sed to substitute the good stuff for
the placeholders.  Depending on what the good stuff looks like, you might
have to escape a character here or there.


Paul,

  I think this is fundamentally the same approach Todd used.



Almost, except I was using [La]TeX variables so that you do not have to modify 
the template file, just the variable defining file.


--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter



Shortcut keys for equations on Mac

2007-10-10 Thread James Sutherland
I have noticed that the windows version of Lyx has key bindings for various
equation options (displayed, eqnarray, toggle numbering, etc.).  The Mac
version of Lyx does not have analogous bindings.  Is there a reason why?

James


Re: Shortcut keys for equations on Mac

2007-10-10 Thread Bennett Helm

On Oct 10, 2007, at 1:36 PM, James Sutherland wrote:

I have noticed that the windows version of Lyx has key bindings for  
various
equation options (displayed, eqnarray, toggle numbering, etc.).   
The Mac
version of Lyx does not have analogous bindings.  Is there a reason  
why?


If you use mac.bind or cua.bind, it includes math.bind, which has all  
the standard math keybindings. Many of these involve multiple  
keystrokes, and these do not show up in menus on Mac (for reasons out  
of our control), but they still work.


Bennett


Re: Shortcut keys for equations on Mac

2007-10-10 Thread James Sutherland
Pardon the naïve question, but where would I find the *.bind files that you
refer to?

James

On 10/10/07 11:51 AM, Bennett Helm [EMAIL PROTECTED] wrote:

 On Oct 10, 2007, at 1:36 PM, James Sutherland wrote:
 
 I have noticed that the windows version of Lyx has key bindings for
 various
 equation options (displayed, eqnarray, toggle numbering, etc.).
 The Mac
 version of Lyx does not have analogous bindings.  Is there a reason
 why?
 
 If you use mac.bind or cua.bind, it includes math.bind, which has all
 the standard math keybindings. Many of these involve multiple
 keystrokes, and these do not show up in menus on Mac (for reasons out
 of our control), but they still work.
 
 Bennett


Re: Shortcut keys for equations on Mac

2007-10-10 Thread Bennett Helm

On Oct 10, 2007, at 2:05 PM, James Sutherland wrote:

Pardon the naïve question, but where would I find the *.bind files  
that you

refer to?


Simply enter mac.bind or cua.bind (without the quotes) into LyX   
Preferences  Look and feel  User interface  Bind file. On Mac, the  
files themselves can be found hidden inside the LyX application  
bundle: LyX.app/Contents/Resources/bind.


Bennett

configure default paragraph alignment

2007-10-10 Thread William Seager
How do you set the default paragraph alignment to left 
justified (ragged right)? You can change individual paragraphs 
so they display (and print) with left justified paragraphs, 
but I want my documents to default to this. 
 
You can add \raggedright to the beginning of a
document, but that does 
not change the way lyx displays on screen (paragraphs 
appear fully justified but do not print that way). 
 
 any advice welcome, TIA,


Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started

2007-10-10 Thread Paul A. Rubin

Rosanna Chan wrote:

Hi again,
I cannot figure out why LyX continue to look for c:\Documents and
Settings\me\Application Data\Aspell\Data/iso-8859-1.cset for
spellchecking.


This happens with every document you try to spellcheck, right?  For 
instance, if you open one of the LyX help documents and hit F7, you get 
this message?



I have installed LyX for all users both 1.5.1 and 1.5.2 - using the
installers. Before re installing, I had uninstalled all Aspell files (from
all users and from my own application data), clean out the registry for old
LyX 1.4 keys and the message just keeps on poping back up. 


When you uninstalled Aspell, did you scan the registry for any leftover 
Aspell keys (and delete any you found)?



Is there any other place that the path Aspell\Data (which is incorrect like
you pointed out) is hiding out?


Apparently.  :-)  We just don't know where.  The Windows version of LyX 
does not use the Aspell executables; it provides its own customized 
aspell.dll file and just relies on you to install the necessary 
dictionaries.  So it's possible that a funky path is hard-coded into the 
DLL, or that there's some path detection scheme in it that's tripping 
over something on your system.  We'd need a developer to answer that. 
(I tried to find the source for the customized aspell.dll in the source 
repository, but struck out.)


Assuming that you get this message in every document you try to debug, 
the only other thing I can think of to ask is whether you're set up with 
English as your local language (i.e., the user interface pops up in 
English), and whether your system is set to use a special code page or 
some such to display other languages or symbol sets?  If so, that might 
point to what is confusing LyX.  (Shooting from the hip here.)


/Paul





Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Steve Litt
On Wednesday 10 October 2007 13:16, Rich Shepard wrote:


I'll play with this. It looks promising.

Rich -- please share whatever your final solution with the list. I think most 
of us need to do this exact thing from time to time.

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread William Adams

On Oct 10, 2007, at 12:15 PM, Todd Denniston wrote:


I have done such a beast, therefore it can be done. :)


Me too!

My approach was a bit different though --- I templated a bunch of  
buttons using Runtime Revolution (a HyperCard clone) which were then  
output into a text file concatenated along w/ the content of various  
text fields. The commands either set the output, or re-defined other  
commands --- worked out quite nicely, allowing people to set  
telephone line ads w/ a fair bit of flexibility (the system was later  
up-dated to be server-driven w/ a .html JavaScript front-end).


William

--
William Adams
senior graphic designer
Fry Communications




Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Steve Litt wrote:


Rich -- please share whatever your final solution with the list. I think
most of us need to do this exact thing from time to time.


Steve,

  I will. I'll try both LaTeX and ReportLab and see which seems to be easier
to implement using one report as a test.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


RE: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started

2007-10-10 Thread Rosanna Chan
Hi Paul,
Thanks so much for your suggestions.  In answer to your questions:
Yes, it happens with every document I open in Lyx ie Lyx help documents.
Yes, I cleaned out all registry keys including any Aspell ones.
English is the only language I have installed (for all users). Although in
past LyX installations I may have installed French and Chinese - but they
are no longer there.

Should I try to contact a developer (how does one do that :)) or should I
report this as a bug? It would be so nice if I could just change that stupid
path and move on with trying to finish my paper!! 

Rose


 

-Original Message-
From: Paul A. Rubin [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2007 14:24
To: Rosanna Chan
Subject: Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started

Rosanna Chan wrote:
 Hi again,
 I cannot figure out why LyX continue to look for c:\Documents and
 Settings\me\Application Data\Aspell\Data/iso-8859-1.cset for
 spellchecking.

This happens with every document you try to spellcheck, right?  For 
instance, if you open one of the LyX help documents and hit F7, you get 
this message?

 I have installed LyX for all users both 1.5.1 and 1.5.2 - using the
 installers. Before re installing, I had uninstalled all Aspell files (from
 all users and from my own application data), clean out the registry for
old
 LyX 1.4 keys and the message just keeps on poping back up. 

When you uninstalled Aspell, did you scan the registry for any leftover 
Aspell keys (and delete any you found)?

 Is there any other place that the path Aspell\Data (which is incorrect
like
 you pointed out) is hiding out?

Apparently.  :-)  We just don't know where.  The Windows version of LyX 
does not use the Aspell executables; it provides its own customized 
aspell.dll file and just relies on you to install the necessary 
dictionaries.  So it's possible that a funky path is hard-coded into the 
DLL, or that there's some path detection scheme in it that's tripping 
over something on your system.  We'd need a developer to answer that. 
(I tried to find the source for the customized aspell.dll in the source 
repository, but struck out.)

Assuming that you get this message in every document you try to debug, 
the only other thing I can think of to ask is whether you're set up with 
English as your local language (i.e., the user interface pops up in 
English), and whether your system is set to use a special code page or 
some such to display other languages or symbol sets?  If so, that might 
point to what is confusing LyX.  (Shooting from the hip here.)

/Paul








Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Daniel Lohmann



Rich Shepard schrieb:


  There will be plots (created, no doubt, with PSTricks), to be 
included in

the audit log report of each run. So I expect the templates to be as
inclusive as your example.


If you haven't worked with PSTricks so far (meaning that you have to 
learn something new anyway) you should also consider PGF/TikZ as a more 
modern alternative.


http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html

PGF is the graphics engine that is also internally used by LaTeX beamer; 
TikZ is the user-friendly layer on top of it. People who worked quite a 
lot with both told me that, compared to PSTricks, the TikZ syntax is way 
more consistent and in many cases more convenient (take a look at 
http://www.fauskes.net/pgftikzexamples/all/ for some examples). Some 
things that are possible with PSTricks (especially embedded postscript 
functions) are not available with PGF/TikZ, though.


The best thing, however, is that unlike PSTricks which work only with 
back-end processors that generate postscript code (dvips), TikZ works 
perfectly well with any major back-end processor, especially  pdfTeX / 
pdfLaTeX. (PDF has always been a kind of show-stopper for PSTricks.)


Daniel


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Daniel Lohmann wrote:


If you haven't worked with PSTricks so far (meaning that you have to learn
something new anyway) you should also consider PGF/TikZ as a more modern
alternative.


  Thanks, Daniel. I've used PSTricks some, but use Xfig most of the time. I
started to look at PGF/TikZ a few years ago when I started using the beamer
class, but never followed through.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


lyx-1.5.1 apa style question

2007-10-10 Thread Mirko Briemle
Hi,

I installed lyx-1.5.1 and it looks great. I however would like to use the apa 
style class
function, which is not available for me. Can someone help me on how I can get 
this
working?

That would be great. Thank you very much.

-Mirko



Re: lyx-1.5.1 apa style question

2007-10-10 Thread Paul A. Rubin

Mirko Briemle wrote:


I installed lyx-1.5.1 and it looks great. I however would like to use the apa 
style class
function, which is not available for me. Can someone help me on how I can get 
this
working?

That would be great. Thank you very much.



If Document - Settings... - Document class lists article (APA) as 
unavailable, it means you do not have the APA class installed in your 
LaTeX distribution.  How to download and install it is somewhat 
distribution-specific.  Once it's installed, start LyX, run Tools - 
Reconfigure, then close and reopen LyX.


/Paul



Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Wolfgang Siebeck
Jean-Marc Lasgouttes wrote:
 I think the culprit was actually:
 
 stat64(/usr/lib/kde3/bin/lyx, 0xbfc34e10) = -1 EACCES (Permission denied)

Mmmh, on fedora 7 /usr/lib/kde3/bin is 0700 and root.root, in this
directory there is only the subdir kdevelop, also 0700 and root.root

I think I will have to check old installs, maybe something went wrong in
the past. On Kubuntu Feisty /usr/lib/kde3/bin does not exist.

Thanks to all helping so quickly. At least I can learn to use Lyx now.

Wolfgang



Lyx - Lyx

2007-10-10 Thread Humbert Francis
I am working on a program which corrects math exercises done by my 
students. This program insert error messages (in red) in a Lyx document. 
The input of this program is a Lyx document and the output is also a Lyx 
document. I did not manage to install such a converter. Which wiewer 
should I declare in the preference window ? Would this converter replace 
the current document (it would be the best solution) ? create a new Lyx 
view ?
I could create the corrected doc in pdf format, but I prefer avoiding my 
students installing a latex distribution.

My present Lyx version is 1.4.2.



Re: changing font doesn't work for documents

2007-10-10 Thread Juergen Spitzmueller
Zhang Weiwu wrote:

 If I follow the User's Guide, go to Document - Setting, and
 change font to helvet, and Save, and view the output in postscript
 (Ctrl+t), the document is the same (still use a san-serif font). Then I
 go to Document - Setting to check again, and discovered font
 setting is still default. It was as if the setting I made was ignored.

Which version of LyX? In 1.5.x, you have to change the default family
to sans serif. In earlier versions, you have to add the line
\renewcommand{\familydefault}{\sfdefault}
to the preamble.

HTH,
Jürgen



Re: Recipe collection

2007-10-10 Thread Gour
On Tue, 09 Oct 2007 14:01:59 +0200
Hellmut Weber [EMAIL PROTECTED] wrote:

 Hi all,
 I would like to put my collection of recipes in a nice layout.

I got similar task here - to produce cookbook :-)

 Does anybody have ideas in this direction?

Found template  layout based on recipe.cls and added to wiki - see

http://wiki.lyx.org/Layouts/Recipebook

Tried with lyx-1.5.2 and it works...


Sincerely,
Gour


signature.asc
Description: PGP signature


Re: changing font doesn't work for documents

2007-10-10 Thread Zhang Weiwu
Juergen Spitzmueller wrote:
 Zhang Weiwu wrote:

   
 If I follow the User's Guide, go to Document - Setting, and
 change font to helvet, and Save, and view the output in postscript
 (Ctrl+t), the document is the same (still use a san-serif font). Then I
 go to Document - Setting to check again, and discovered font
 setting is still default. It was as if the setting I made was ignored.
 

 Which version of LyX? In 1.5.x, you have to change the default family
 to sans serif. In earlier versions, you have to add the line
 \renewcommand{\familydefault}{\sfdefault}
 to the preamble.
   

Thank you for prompt answer. I am using 1.4.3 and I have used the second
solution (preamble) and it works!


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Rainer M. Krug

Jean-Marc Lasgouttes wrote:

Wolfgang Siebeck [EMAIL PROTECTED] writes:


mangkhon:~ $ lyx
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
boost::filesystem::path_traits '
  what():  boost::filesystem::exists
Abgebrochen -- (Aborted)


This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc
I had a similar problem: My document contained references (external 
bibtex file) and when I wanted to use it on a different machine and the 
folder was not there, LyX crashed. This was Lyx 1.4 something. Maybe 
something similar?




--
NEW EMAIL ADDRESS AND ADDRESS:

[EMAIL PROTECTED]

[EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:+27 - (0)21 650 5776 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 650 2440 (w)
Cell:   +27 - (0)83 9479 042

Skype:  RMkrug

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Rainer M. Krug

Jean-Marc Lasgouttes wrote:

Wolfgang Siebeck [EMAIL PROTECTED] writes:


mangkhon:~ $ lyx
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
boost::filesystem::path_traits '
  what():  boost::filesystem::exists
Abgebrochen -- (Aborted)


This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc
I had a similar problem: My document contained references (external 
bibtex file) and when I wanted to use it on a different machine and the 
folder was not there, LyX crashed. This was Lyx 1.4 something. Maybe 
something similar?




--
NEW EMAIL ADDRESS AND ADDRESS:

[EMAIL PROTECTED]

[EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:+27 - (0)21 650 5776 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 650 2440 (w)
Cell:   +27 - (0)83 9479 042

Skype:  RMkrug

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Wolfgang Siebeck [EMAIL PROTECTED] writes:

 mangkhon:~ $ lyx
 terminate called after throwing an instance of
 'boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
 boost::filesystem::path_traits '
   what():  boost::filesystem::exists
 Abgebrochen -- (Aborted)

This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Rainer M. Krug [EMAIL PROTECTED] writes:

 I had a similar problem: My document contained references (external
 bibtex file) and when I wanted to use it on a different machine and
 the folder was not there, LyX crashed. This was Lyx 1.4 something.
 Maybe something similar?

Probably.

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Wolfgang Siebeck
Jean-Marc Lasgouttes schrieb:
 It seems that when some files are not readable, lyx crashes. This is
 wrong of course. Could you try to run LyX under strace
   strace lyx
 and post the last few lines of output? This should give s the name of
 the file/directory that caused a problem, and therefore a hint about
 what to do.

Well said! I did the strace and part of the result was:

==quote==
getcwd(/home/siebeck, 256)= 14
stat64(/home/siebeck/lyx, 0xbfc34e10) = -1 ENOENT (No such file or
directory)
stat64(/usr/lib/qt-3.3/bin/lyx, 0xbfc34e10) = -1 ENOENT (No such file
or directory)
stat64(/usr/lib/kde3/bin/lyx, 0xbfc34e10) = -1 EACCES (Permission denied)
futex(0x44beae8, FUTEX_WAKE, 2147483647) = 0
write(2, terminate called after throwing ..., 48terminate called after
throwing an instance of ') = 48
write(2, boost::filesystem::basic_filesys...,
118boost::filesystem::basic_filesystem_errorboost::filesystem::basic_pathstd::string,
boost::filesystem::path_traits ) = 118
write(2, \'\n, 2'
) = 2
write(2,   what():  , 11  what():  ) = 11
write(2, boost::filesystem::exists, 25boost::filesystem::exists) = 25
write(2, \n, 1
)   = 1
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(12119, 12119, SIGABRT)   = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
==unquote==

So what I did was to create a directory ~/lyx and then I started lyx
again. Wow! Lyx started, created a directory ~/.lyx, checked for all the
helper programs, document classes, packages and whatever and was up and
running! The funny (or strange) part is:

1. there is no directory ~root/lyx
2. under Kubuntu, there is no directory ~/lyx for non-root user

Many thanks for the hint to Jean-Marc!

Greetings from Phuket, Thailand

Wolfgang

-- 
Fempf Halbe sen so viel wia a Schnitzel,
ond dann hosch emmr no nix dronga.


Re: [announce] LyXWinInstaller (with Update installer) for LyX 1.5.2

2007-10-10 Thread Nick and Anne Hopton

Uwe Stöhr wrote:

I uploaded the new version 3.20 of the LyXWinInstaller. This version 
also offers an update installer. With this you can easily your LyX 1.5.1 
to LyX 1.5.2 without uninstalling LyX 1.5.1 before installing LyX 1.5.2. 
Only log in as adminstrator on your PC and execute the update installer. 
Check it out!


I've checked it out using the 'small' version and everything so far is 
good. Testing it on a fairly large document, I notice that the compile 
time is much reduced when compared with Version 1.5.1. Which I didn't 
expect.


Thanks for all of the hard work.

Regards,
Nick.

--
Nick and Anne Hopton, Caversham, Reading, England.


Re: [Announce] LyX 1.5.2 is released

2007-10-10 Thread Jean-Marc Lasgouttes
Bennett Helm [EMAIL PROTECTED] writes:

 By the way, could this have anything to do with localisation? My
 LyX GUI is in German all of a sudden ... I liked it better in
 English :-).

 This is the result of a bug fix: LyX now uses the Mac standard
 interface language for its menus and dialogs. I don't know if there's
 a way of using an alternative interface language. (Jean-Marc?)

I guess the way of setting an alternative interface is to change
Environment.plist, like the wiki used to say before 1.5.2. 

JMarc


Re: [Announce] LyX 1.5.2 is released

2007-10-10 Thread Jean-Marc Lasgouttes
Francesco Menoncin [EMAIL PROTECTED] writes:

 I work on Windows XP and LyX 1.5.2 gave me problems with fonts. It was
 not able to load fonts and the DVI had almost all characters missing.

To load font in latex output or on screen? 

JMarc


Re: Compile problem with LyX 1.4.5.1 on SPARC/Solaris9

2007-10-10 Thread Jean-Marc Lasgouttes
Volker Knierim [EMAIL PROTECTED] writes:
 Hi Jean-Marc,

 thanks for the quick answer. I also would prefer to install the 1.5.X
 version of LyX, but this would require to compile qt4 on my machine
 first. Maybe this would fail also and I would have to solve this
 problem, too :-(

You can ask for help for building qt4. The people who decided the
change to qt4 (I wanted to keep qt3 too) said they would be glad to
help. Don't be shy!

 I attached the config.log file you requested.

The problem is here (it is not related to environment setting
functions per se):

configure:24744: checking for jpeg_read_header in -ljpeg
configure:24779: /opt/SUNWspro/bin/cc -o conftest -O2   -I/usr/openwin/include  
conftest.c -ljpeg  -lforms -lXpm  -lSM -lICE -lc -lm   -L/usr/openwin/lib 
-R/usr/openwin/lib -lX11 -lsocket  -lnsl 5
cc: Warning: option -2 passed to ld
conftest.c, line 45: warning: statement not reached
/usr/ccs/bin/ld: illegal option -- 2
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
[-64]   enforce a 64-bit link-edit
[-a]create an absolute file
...


It seems that autoconf thinks that your compiler is really gcc. I
really do not know why. Do you manage to compile other programs?

I suspect this is a solaris problem... Enrico?

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Wolfgang Siebeck [EMAIL PROTECTED] writes:

 Well said! I did the strace and part of the result was:
 So what I did was to create a directory ~/lyx and then I started lyx
 again. Wow! Lyx started, created a directory ~/.lyx, checked for all the
 helper programs, document classes, packages and whatever and was up and
 running! The funny (or strange) part is:

 1. there is no directory ~root/lyx
 2. under Kubuntu, there is no directory ~/lyx for non-root user

I think the culprit was actually:

 stat64(/usr/lib/kde3/bin/lyx, 0xbfc34e10) = -1 EACCES (Permission denied)

JMarc


embedded math formule

2007-10-10 Thread Robert Poser
Hej,

using the embedded math formule in LyX with koma-report class does not work
for me. in the editor it looks fine, but in the pdf output it leads to wrong
expressions. is it a question of the font (lmodern) or where could the error
be?

thanks a lot,
Rob


declare destination directory for converted files

2007-10-10 Thread Andreas Lagemann
Hello all,
I'm trying to customize the conversion to html via the tools-preferences 
dialog but
I can't seem to find anything about how to control where the output is written 
to
(especially which directory it is written to). I recognize the variables $$i 
and $$o
but they only seem to refer to the filenames without their absolute or relative 
path.
The effect is that if I call my own bash script from within LyX I get all 
resulting
files written into the tmp directory.

So my question is, is there a way to refer to
the directory where the current lyx file resides from within LyX? If so, how is 
it done?

I didn't find anything regarding that topic in the docs nor in the list 
archives. If I
overlooked something I apologize and kindly ask you to provide a link to the 
answer I did
not find.

Also if you see another solution for my problem (i.e. directing output to the 
current working
directory) please feel free to tell me how you would do it.

Thanks in advance and best regards,

Andreas Lagemann



making a table with columns starting at different places

2007-10-10 Thread Jeremy C. Reed
See the 3.2KB attached image.

I want to try making that using tabular and multicolumn.

My first row has 33 columns, the first doesn't have a border.
The second row has 5 columns with the 2nd column for the 2nd-5th columns 
above, and so on.
The third row has 4 columns, with the 2nd column covering the 2nd-17th 
columns at the top.
...

But I am unsure how to get some of the columns to start at certain places.

Can anyone share any example?

Or should I just use a tool like xfig or inkscape to recreate this?
I just didn't want to try to figure out making the top 33 columns all 
sized correctly. Unless some tool can do what I want without my manual 
adjustments.

I have a few tables like this to create.

  Jeremy C. Reed

table.png
Description: Binary data


[OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

  This is not LyX specific, but I'm hoping that some of you can provide
direction to help me find the solution I need.

  In brief: we're developing an approximate reasoning model (a type of
expert system) in Python and C, with data maintained in an embedded SQLite
database. I'd like to produce reports via LaTeX and pdflatex. To do so, I
need to write report-specific LaTeX templates that have replaceable
variables where the content goes. Then, the applicaion would
programmatically extract the required information from a database table and
fill in the template for the report.

  I cannot find how to create such a LaTeX template in Guide to LaTeX or
TLC2. LaTeX document classes are templates themselves, but are used to
manually fill in the document content. Can this content be provided
programmatically?

  Suggestions appreciated.

TIA,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Different page orientations in one document

2007-10-10 Thread Rudi van der Linde

Hi All.

I know this has been answered before but I do not have a direct Internet 
connection from work, only email and that makes things interesting to 
say the least.


I would like to have portrait as well as landscape oriented pages in a 
document I am writing.  I would appreciate any pointers on how to do it.


Many thanks.

--
Rudi van der Linde
[EMAIL PROTECTED]

Note:
This message (and attachments) is subject to restrictions and a disclaimer. 
Please refer to http://www.ansys.co.za/index.html or [EMAIL PROTECTED] for full 
details.



Re: Different page orientations in one document

2007-10-10 Thread Roger Light
Hi Rudi,

 I would like to have portrait as well as landscape oriented pages in a 
 document I am writing.  I would appreciate any pointers on how to do it.

I do this by adding \usepackage{lscape} to my preamble then surrounding
my landscape pages with ERT:

\begin{landscape}

(page goes here)

\end{landscape}

Bear in mind that I'm using version 1.3.7 so things may have changed in
the interim.

Cheers,

Roger


Re: embedded math formule

2007-10-10 Thread Paul A. Rubin

Robert Poser wrote:


using the embedded math formule in LyX with koma-report class does not work
for me. in the editor it looks fine, but in the pdf output it leads to wrong
expressions. is it a question of the font (lmodern) or where could the error
be?



It's easy to check whether Latin Modern is the culprit:  change the font 
and see if the problem persists.  If it does, can you post a small example?


/Paul



Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Todd Denniston

Rich Shepard wrote, On 10/10/2007 09:21 AM:

  This is not LyX specific, but I'm hoping that some of you can provide
direction to help me find the solution I need.

  In brief: we're developing an approximate reasoning model (a type of
expert system) in Python and C, with data maintained in an embedded SQLite
database. I'd like to produce reports via LaTeX and pdflatex. To do so, I
need to write report-specific LaTeX templates that have replaceable
variables where the content goes. Then, the applicaion would
programmatically extract the required information from a database table and
fill in the template for the report.

  I cannot find how to create such a LaTeX template in Guide to LaTeX or
TLC2. LaTeX document classes are templates themselves, but are used to
manually fill in the document content. Can this content be provided
programmatically?

  Suggestions appreciated.

TIA,

Rich



I have done such a beast, therefore it can be done. :)
The method I used involved having a LaTeX file[1], which at an appropriate 
place[2] in the file, uses \input{MyVariableData.tex} and then when I want the 
data from a variable I just use \MyFirstVar at the appropriate place in the 
template file.


I had to be careful in my C program to properly escape LaTeX special chars 
before it wrote the data to MyVariableData.tex, i.e., at least _, * and 
\ become \_, {*} and \textbackslash{}.

There are probably others you need to look out for like %  @.

in MyVariableData.tex there are lines of the form:
\def\MyFirstVar{{*}Data{*} for Var\_1}




then with a script passing all the appropriate options to LaTeX, dvips (I 
needed PostScript output) and an rm of LaTeX temporary data, I have the 
program create the postscript for sending to the printer.



Hope this helps.


[1] a full LaTeX document which uses a lot stuff from \usepackage{ifthen} 
\usepackage{soul} \usepackage{pstricks} \usepackage{pst-text} 
\usepackage{pst-eps} \usepackage[dvips]{graphicx} \usepackage[dvips]{geometry}
I love the funky stuff you can do with LaTeX... like making CD labels with 
curved words on top of pictures.  I started from:

http://www.aldil.org/projets/TeX_cd_label.html

[2] appropriate from the perspective that you may need some packages defined 
before the variable file is pulled in, and you need to pull in the variable 
file before you try to use one of it's variables in the main LaTeX file.



--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
http://www.crane.navy.mil/custfeedback


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Todd Denniston wrote:


I have done such a beast, therefore it can be done. :)


  Thank you, Todd!


I had to be careful in my C program to properly escape LaTeX special chars
before it wrote the data to MyVariableData.tex, i.e., at least _, *
and \ become \_, {*} and \textbackslash{}. There are probably
others you need to look out for like %  @.


  This should not be an issue in our model. The data are extracted from the
database to a Python list (or a list of tuples; analogous to a
two-dimensional array), and I can use indices to extract the strings and
numbers I want.

  There will be plots (created, no doubt, with PSTricks), to be included in
the audit log report of each run. So I expect the templates to be as
inclusive as your example.


in MyVariableData.tex there are lines of the form:
\def\MyFirstVar{{*}Data{*} for Var\_1}


  I do need to better learn programming in LaTeX; this project needs that
increased knowledge.


Hope this helps.


  Yes, it does.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Paul A. Rubin

Rich Shepard wrote:

  This is not LyX specific, but I'm hoping that some of you can provide
direction to help me find the solution I need.

  In brief: we're developing an approximate reasoning model (a type of
expert system) in Python and C, with data maintained in an embedded SQLite
database. I'd like to produce reports via LaTeX and pdflatex. To do so, I
need to write report-specific LaTeX templates that have replaceable
variables where the content goes. Then, the applicaion would
programmatically extract the required information from a database table and
fill in the template for the report.

  I cannot find how to create such a LaTeX template in Guide to LaTeX or
TLC2. LaTeX document classes are templates themselves, but are used to
manually fill in the document content. Can this content be provided
programmatically?



I would write the template as an ordinary document (and of course would 
write it in LyX, then export to .tex), using some distinctive 
placeholders where the good stuff would be inserted (e.g., %%variable 
1%% or some such).  Then have a script create a copy of the .tex file 
(so as not to corrupt the master template) and use sed to substitute the 
good stuff for the placeholders.  Depending on what the good stuff looks 
like, you might have to escape a character here or there.


Or am I missing something fundamental here?

/Paul



Re: making a table with columns starting at different places

2007-10-10 Thread Paul A. Rubin

Jeremy C. Reed wrote:

See the 3.2KB attached image.

I want to try making that using tabular and multicolumn.

My first row has 33 columns, the first doesn't have a border.
The second row has 5 columns with the 2nd column for the 2nd-5th columns 
above, and so on.
The third row has 4 columns, with the 2nd column covering the 2nd-17th 
columns at the top.

...

But I am unsure how to get some of the columns to start at certain places.

Can anyone share any example?

Or should I just use a tool like xfig or inkscape to recreate this?
I just didn't want to try to figure out making the top 33 columns all 
sized correctly. Unless some tool can do what I want without my manual 
adjustments.


I have a few tables like this to create.



The tedious but (moderately) straightforward approach is to start with 
an Nx33 table, then merge cells by drag-selecting them and clicking the 
multicolumn button in the table toolbar (or using the right-click table 
dialog and selecting multicolumn).  Separate borders can be set (the 
usual way) for multicolumn cells.


/Paul



Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Ernesto Posse
Since you are using Python, I suggest using the string.Template class
for this purpose. I think the only thing that you would have to be
careful about is with the $: You would have to replace the normal $'s
of your LaTeX template by $$, since this class uses $ for marking
placeholders. Here's the link to the documentation

http://docs.python.org/lib/node40.html


On 10/10/07, Rich Shepard [EMAIL PROTECTED] wrote:
 On Wed, 10 Oct 2007, Todd Denniston wrote:

  I have done such a beast, therefore it can be done. :)

Thank you, Todd!

  I had to be careful in my C program to properly escape LaTeX special chars
  before it wrote the data to MyVariableData.tex, i.e., at least _, *
  and \ become \_, {*} and \textbackslash{}. There are probably
  others you need to look out for like %  @.

This should not be an issue in our model. The data are extracted from the
 database to a Python list (or a list of tuples; analogous to a
 two-dimensional array), and I can use indices to extract the strings and
 numbers I want.

There will be plots (created, no doubt, with PSTricks), to be included in
 the audit log report of each run. So I expect the templates to be as
 inclusive as your example.

  in MyVariableData.tex there are lines of the form:
  \def\MyFirstVar{{*}Data{*} for Var\_1}

I do need to better learn programming in LaTeX; this project needs that
 increased knowledge.

  Hope this helps.

Yes, it does.

 Rich

 --
 Richard B. Shepard, Ph.D.   |The Environmental Permitting
 Applied Ecosystem Services, Inc.| Accelerators(TM)
 http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



-- 
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse


Re: Compile problem with LyX 1.4.5.1 on SPARC/Solaris9

2007-10-10 Thread Abdelrazak Younes

Jean-Marc Lasgouttes wrote:

Volker Knierim [EMAIL PROTECTED] writes:

Hi Jean-Marc,

thanks for the quick answer. I also would prefer to install the 1.5.X
version of LyX, but this would require to compile qt4 on my machine
first. Maybe this would fail also and I would have to solve this
problem, too :-(


Qt4 is faster and easier to compile than LyX itself so I suggest that 
you try it nevertheless. There are maybe some precompiled packages 
coming the different KDE4 alpha release. I know for sure that there is a 
Qt4 package for OpenSolaris, is that compatible with Solaris 9?




You can ask for help for building qt4. The people who decided the
change to qt4 (I wanted to keep qt3 too) said they would be glad to
help. Don't be shy!


Only Enrico is using Solaris as far as I know.

Abdel.



Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Paul A. Rubin wrote:


I would write the template as an ordinary document (and of course would
write it in LyX, then export to .tex), using some distinctive placeholders
where the good stuff would be inserted (e.g., %%variable 1%% or some
such).  Then have a script create a copy of the .tex file (so as not to
corrupt the master template) and use sed to substitute the good stuff for
the placeholders.  Depending on what the good stuff looks like, you might
have to escape a character here or there.


Paul,

  I think this is fundamentally the same approach Todd used.


Or am I missing something fundamental here?


  Honestly don't know at this time.

  I was expecting to find a Python library, because Python has libraries for
almost everything, but the PyTeX project apparently died 2-4 years ago.
Ideally, there would be the equivalent of, for example, pysqlite which is
the connection between Python code and the SQLite database (there are
equivalents for postgres and other dbms).

  How it would work or what it would need I've no idea now.

  But, you've contributed to the ideas, and that's a Good Thing(R). Many
thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Ernesto Posse wrote:


Since you are using Python, I suggest using the string.Template class
for this purpose. I think the only thing that you would have to be
careful about is with the $: You would have to replace the normal $'s
of your LaTeX template by $$, since this class uses $ for marking
placeholders. Here's the link to the documentation

http://docs.python.org/lib/node40.html


  Thank you very much, Ernesto.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Ernesto Posse wrote:


Since you are using Python, I suggest using the string.Template class
for this purpose.


  The example on that 'man' page suggests the path to ultimate happiness,
using the Python shell:


from string import Template
s = Template('$who likes $what')
s.substitute(who='tim', what='kung pao')

'tim likes kung pao'

  I think what might work is writing the LaTeX template as a series of print
statements (writing to an output file with the .tex extension), and using
the Template class to replace each variable as needed, before printing that
line to the output file, too.

  I'll play with this. It looks promising.

Thanks, all,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Todd Denniston

Rich Shepard wrote, On 10/10/2007 12:09 PM:

On Wed, 10 Oct 2007, Paul A. Rubin wrote:


I would write the template as an ordinary document (and of course would
write it in LyX, then export to .tex), using some distinctive 
placeholders

where the good stuff would be inserted (e.g., %%variable 1%% or some
such).  Then have a script create a copy of the .tex file (so as not to
corrupt the master template) and use sed to substitute the good stuff for
the placeholders.  Depending on what the good stuff looks like, you might
have to escape a character here or there.


Paul,

  I think this is fundamentally the same approach Todd used.



Almost, except I was using [La]TeX variables so that you do not have to modify 
the template file, just the variable defining file.


--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter



Shortcut keys for equations on Mac

2007-10-10 Thread James Sutherland
I have noticed that the windows version of Lyx has key bindings for various
equation options (displayed, eqnarray, toggle numbering, etc.).  The Mac
version of Lyx does not have analogous bindings.  Is there a reason why?

James


Re: Shortcut keys for equations on Mac

2007-10-10 Thread Bennett Helm

On Oct 10, 2007, at 1:36 PM, James Sutherland wrote:

I have noticed that the windows version of Lyx has key bindings for  
various
equation options (displayed, eqnarray, toggle numbering, etc.).   
The Mac
version of Lyx does not have analogous bindings.  Is there a reason  
why?


If you use mac.bind or cua.bind, it includes math.bind, which has all  
the standard math keybindings. Many of these involve multiple  
keystrokes, and these do not show up in menus on Mac (for reasons out  
of our control), but they still work.


Bennett


Re: Shortcut keys for equations on Mac

2007-10-10 Thread James Sutherland
Pardon the naïve question, but where would I find the *.bind files that you
refer to?

James

On 10/10/07 11:51 AM, Bennett Helm [EMAIL PROTECTED] wrote:

 On Oct 10, 2007, at 1:36 PM, James Sutherland wrote:
 
 I have noticed that the windows version of Lyx has key bindings for
 various
 equation options (displayed, eqnarray, toggle numbering, etc.).
 The Mac
 version of Lyx does not have analogous bindings.  Is there a reason
 why?
 
 If you use mac.bind or cua.bind, it includes math.bind, which has all
 the standard math keybindings. Many of these involve multiple
 keystrokes, and these do not show up in menus on Mac (for reasons out
 of our control), but they still work.
 
 Bennett


Re: Shortcut keys for equations on Mac

2007-10-10 Thread Bennett Helm

On Oct 10, 2007, at 2:05 PM, James Sutherland wrote:

Pardon the naïve question, but where would I find the *.bind files  
that you

refer to?


Simply enter mac.bind or cua.bind (without the quotes) into LyX   
Preferences  Look and feel  User interface  Bind file. On Mac, the  
files themselves can be found hidden inside the LyX application  
bundle: LyX.app/Contents/Resources/bind.


Bennett

configure default paragraph alignment

2007-10-10 Thread William Seager
How do you set the default paragraph alignment to left 
justified (ragged right)? You can change individual paragraphs 
so they display (and print) with left justified paragraphs, 
but I want my documents to default to this. 
 
You can add \raggedright to the beginning of a
document, but that does 
not change the way lyx displays on screen (paragraphs 
appear fully justified but do not print that way). 
 
 any advice welcome, TIA,


Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started

2007-10-10 Thread Paul A. Rubin

Rosanna Chan wrote:

Hi again,
I cannot figure out why LyX continue to look for c:\Documents and
Settings\me\Application Data\Aspell\Data/iso-8859-1.cset for
spellchecking.


This happens with every document you try to spellcheck, right?  For 
instance, if you open one of the LyX help documents and hit F7, you get 
this message?



I have installed LyX for all users both 1.5.1 and 1.5.2 - using the
installers. Before re installing, I had uninstalled all Aspell files (from
all users and from my own application data), clean out the registry for old
LyX 1.4 keys and the message just keeps on poping back up. 


When you uninstalled Aspell, did you scan the registry for any leftover 
Aspell keys (and delete any you found)?



Is there any other place that the path Aspell\Data (which is incorrect like
you pointed out) is hiding out?


Apparently.  :-)  We just don't know where.  The Windows version of LyX 
does not use the Aspell executables; it provides its own customized 
aspell.dll file and just relies on you to install the necessary 
dictionaries.  So it's possible that a funky path is hard-coded into the 
DLL, or that there's some path detection scheme in it that's tripping 
over something on your system.  We'd need a developer to answer that. 
(I tried to find the source for the customized aspell.dll in the source 
repository, but struck out.)


Assuming that you get this message in every document you try to debug, 
the only other thing I can think of to ask is whether you're set up with 
English as your local language (i.e., the user interface pops up in 
English), and whether your system is set to use a special code page or 
some such to display other languages or symbol sets?  If so, that might 
point to what is confusing LyX.  (Shooting from the hip here.)


/Paul





Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Steve Litt
On Wednesday 10 October 2007 13:16, Rich Shepard wrote:


I'll play with this. It looks promising.

Rich -- please share whatever your final solution with the list. I think most 
of us need to do this exact thing from time to time.

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread William Adams

On Oct 10, 2007, at 12:15 PM, Todd Denniston wrote:


I have done such a beast, therefore it can be done. :)


Me too!

My approach was a bit different though --- I templated a bunch of  
buttons using Runtime Revolution (a HyperCard clone) which were then  
output into a text file concatenated along w/ the content of various  
text fields. The commands either set the output, or re-defined other  
commands --- worked out quite nicely, allowing people to set  
telephone line ads w/ a fair bit of flexibility (the system was later  
up-dated to be server-driven w/ a .html JavaScript front-end).


William

--
William Adams
senior graphic designer
Fry Communications




Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Steve Litt wrote:


Rich -- please share whatever your final solution with the list. I think
most of us need to do this exact thing from time to time.


Steve,

  I will. I'll try both LaTeX and ReportLab and see which seems to be easier
to implement using one report as a test.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


RE: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started

2007-10-10 Thread Rosanna Chan
Hi Paul,
Thanks so much for your suggestions.  In answer to your questions:
Yes, it happens with every document I open in Lyx ie Lyx help documents.
Yes, I cleaned out all registry keys including any Aspell ones.
English is the only language I have installed (for all users). Although in
past LyX installations I may have installed French and Chinese - but they
are no longer there.

Should I try to contact a developer (how does one do that :)) or should I
report this as a bug? It would be so nice if I could just change that stupid
path and move on with trying to finish my paper!! 

Rose


 

-Original Message-
From: Paul A. Rubin [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2007 14:24
To: Rosanna Chan
Subject: Re: Lyx 1.5.1 and LyX 1.5.2 Spellchecker Could not be started

Rosanna Chan wrote:
 Hi again,
 I cannot figure out why LyX continue to look for c:\Documents and
 Settings\me\Application Data\Aspell\Data/iso-8859-1.cset for
 spellchecking.

This happens with every document you try to spellcheck, right?  For 
instance, if you open one of the LyX help documents and hit F7, you get 
this message?

 I have installed LyX for all users both 1.5.1 and 1.5.2 - using the
 installers. Before re installing, I had uninstalled all Aspell files (from
 all users and from my own application data), clean out the registry for
old
 LyX 1.4 keys and the message just keeps on poping back up. 

When you uninstalled Aspell, did you scan the registry for any leftover 
Aspell keys (and delete any you found)?

 Is there any other place that the path Aspell\Data (which is incorrect
like
 you pointed out) is hiding out?

Apparently.  :-)  We just don't know where.  The Windows version of LyX 
does not use the Aspell executables; it provides its own customized 
aspell.dll file and just relies on you to install the necessary 
dictionaries.  So it's possible that a funky path is hard-coded into the 
DLL, or that there's some path detection scheme in it that's tripping 
over something on your system.  We'd need a developer to answer that. 
(I tried to find the source for the customized aspell.dll in the source 
repository, but struck out.)

Assuming that you get this message in every document you try to debug, 
the only other thing I can think of to ask is whether you're set up with 
English as your local language (i.e., the user interface pops up in 
English), and whether your system is set to use a special code page or 
some such to display other languages or symbol sets?  If so, that might 
point to what is confusing LyX.  (Shooting from the hip here.)

/Paul








Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Daniel Lohmann



Rich Shepard schrieb:


  There will be plots (created, no doubt, with PSTricks), to be 
included in

the audit log report of each run. So I expect the templates to be as
inclusive as your example.


If you haven't worked with PSTricks so far (meaning that you have to 
learn something new anyway) you should also consider PGF/TikZ as a more 
modern alternative.


http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html

PGF is the graphics engine that is also internally used by LaTeX beamer; 
TikZ is the user-friendly layer on top of it. People who worked quite a 
lot with both told me that, compared to PSTricks, the TikZ syntax is way 
more consistent and in many cases more convenient (take a look at 
http://www.fauskes.net/pgftikzexamples/all/ for some examples). Some 
things that are possible with PSTricks (especially embedded postscript 
functions) are not available with PGF/TikZ, though.


The best thing, however, is that unlike PSTricks which work only with 
back-end processors that generate postscript code (dvips), TikZ works 
perfectly well with any major back-end processor, especially  pdfTeX / 
pdfLaTeX. (PDF has always been a kind of show-stopper for PSTricks.)


Daniel


Re: [OT] Programmatically Creating a LaTeX Document

2007-10-10 Thread Rich Shepard

On Wed, 10 Oct 2007, Daniel Lohmann wrote:


If you haven't worked with PSTricks so far (meaning that you have to learn
something new anyway) you should also consider PGF/TikZ as a more modern
alternative.


  Thanks, Daniel. I've used PSTricks some, but use Xfig most of the time. I
started to look at PGF/TikZ a few years ago when I started using the beamer
class, but never followed through.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.| Accelerators(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


lyx-1.5.1 apa style question

2007-10-10 Thread Mirko Briemle
Hi,

I installed lyx-1.5.1 and it looks great. I however would like to use the apa 
style class
function, which is not available for me. Can someone help me on how I can get 
this
working?

That would be great. Thank you very much.

-Mirko



Re: lyx-1.5.1 apa style question

2007-10-10 Thread Paul A. Rubin

Mirko Briemle wrote:


I installed lyx-1.5.1 and it looks great. I however would like to use the apa 
style class
function, which is not available for me. Can someone help me on how I can get 
this
working?

That would be great. Thank you very much.



If Document - Settings... - Document class lists article (APA) as 
unavailable, it means you do not have the APA class installed in your 
LaTeX distribution.  How to download and install it is somewhat 
distribution-specific.  Once it's installed, start LyX, run Tools - 
Reconfigure, then close and reopen LyX.


/Paul



Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Wolfgang Siebeck
Jean-Marc Lasgouttes wrote:
 I think the culprit was actually:
 
 stat64(/usr/lib/kde3/bin/lyx, 0xbfc34e10) = -1 EACCES (Permission denied)

Mmmh, on fedora 7 /usr/lib/kde3/bin is 0700 and root.root, in this
directory there is only the subdir kdevelop, also 0700 and root.root

I think I will have to check old installs, maybe something went wrong in
the past. On Kubuntu Feisty /usr/lib/kde3/bin does not exist.

Thanks to all helping so quickly. At least I can learn to use Lyx now.

Wolfgang



Lyx - Lyx

2007-10-10 Thread Humbert Francis
I am working on a program which corrects math exercises done by my 
students. This program insert error messages (in red) in a Lyx document. 
The input of this program is a Lyx document and the output is also a Lyx 
document. I did not manage to install such a converter. Which wiewer 
should I declare in the preference window ? Would this converter replace 
the current document (it would be the best solution) ? create a new Lyx 
view ?
I could create the corrected doc in pdf format, but I prefer avoiding my 
students installing a latex distribution.

My present Lyx version is 1.4.2.



Re: changing font doesn't work for documents

2007-10-10 Thread Juergen Spitzmueller
Zhang Weiwu wrote:

> If I follow the "User's Guide", go to "Document" -> "Setting", and
> change font to "helvet", and "Save", and view the output in postscript
> (Ctrl+t), the document is the same (still use a san-serif font). Then I
> go to "Document" -> "Setting" to check again, and discovered font
> setting is still "default". It was as if the setting I made was ignored.

Which version of LyX? In 1.5.x, you have to change the "default family"
to "sans serif". In earlier versions, you have to add the line
\renewcommand{\familydefault}{\sfdefault}
to the preamble.

HTH,
Jürgen



Re: Recipe collection

2007-10-10 Thread Gour
On Tue, 09 Oct 2007 14:01:59 +0200
Hellmut Weber <[EMAIL PROTECTED]> wrote:

> Hi all,
> I would like to put my collection of recipes in a nice layout.

I got similar task here - to produce cookbook :-)

> Does anybody have ideas in this direction?

Found template & layout based on recipe.cls and added to wiki - see

http://wiki.lyx.org/Layouts/Recipebook

Tried with lyx-1.5.2 and it works...


Sincerely,
Gour


signature.asc
Description: PGP signature


Re: changing font doesn't work for documents

2007-10-10 Thread Zhang Weiwu
Juergen Spitzmueller wrote:
> Zhang Weiwu wrote:
>
>   
>> If I follow the "User's Guide", go to "Document" -> "Setting", and
>> change font to "helvet", and "Save", and view the output in postscript
>> (Ctrl+t), the document is the same (still use a san-serif font). Then I
>> go to "Document" -> "Setting" to check again, and discovered font
>> setting is still "default". It was as if the setting I made was ignored.
>> 
>
> Which version of LyX? In 1.5.x, you have to change the "default family"
> to "sans serif". In earlier versions, you have to add the line
> \renewcommand{\familydefault}{\sfdefault}
> to the preamble.
>   

Thank you for prompt answer. I am using 1.4.3 and I have used the second
solution (preamble) and it works!


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Rainer M. Krug

Jean-Marc Lasgouttes wrote:

Wolfgang Siebeck <[EMAIL PROTECTED]> writes:


mangkhon:~ $ lyx
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_error >'
  what():  boost::filesystem::exists
Abgebrochen <<-- (Aborted)


This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc
I had a similar problem: My document contained references (external 
bibtex file) and when I wanted to use it on a different machine and the 
folder was not there, LyX crashed. This was Lyx 1.4 something. Maybe 
something similar?




--
NEW EMAIL ADDRESS AND ADDRESS:

[EMAIL PROTECTED]

[EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:+27 - (0)21 650 5776 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 650 2440 (w)
Cell:   +27 - (0)83 9479 042

Skype:  RMkrug

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Rainer M. Krug

Jean-Marc Lasgouttes wrote:

Wolfgang Siebeck <[EMAIL PROTECTED]> writes:


mangkhon:~ $ lyx
terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_error >'
  what():  boost::filesystem::exists
Abgebrochen <<-- (Aborted)


This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc
I had a similar problem: My document contained references (external 
bibtex file) and when I wanted to use it on a different machine and the 
folder was not there, LyX crashed. This was Lyx 1.4 something. Maybe 
something similar?




--
NEW EMAIL ADDRESS AND ADDRESS:

[EMAIL PROTECTED]

[EMAIL PROTECTED] WILL BE DISCONTINUED END OF MARCH

Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa

Tel:+27 - (0)21 650 5776 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 650 2440 (w)
Cell:   +27 - (0)83 9479 042

Skype:  RMkrug

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
Wolfgang Siebeck <[EMAIL PROTECTED]> writes:

> mangkhon:~ $ lyx
> terminate called after throwing an instance of
> 'boost::filesystem::basic_filesystem_error boost::filesystem::path_traits> >'
>   what():  boost::filesystem::exists
> Abgebrochen <<-- (Aborted)

This is something that has been reported but that I cannot reproduce.
It seems that when some files are not readable, lyx crashes. This is
wrong of course. Could you try to run LyX under strace
  strace lyx
and post the last few lines of output? This should give s the name of
the file/directory that caused a problem, and therefore a hint about
what to do.

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Jean-Marc Lasgouttes
"Rainer M. Krug" <[EMAIL PROTECTED]> writes:

> I had a similar problem: My document contained references (external
> bibtex file) and when I wanted to use it on a different machine and
> the folder was not there, LyX crashed. This was Lyx 1.4 something.
> Maybe something similar?

Probably.

JMarc


Re: root can run lyx, but non-root user cannot (Fedora 7)

2007-10-10 Thread Wolfgang Siebeck
Jean-Marc Lasgouttes schrieb:
> It seems that when some files are not readable, lyx crashes. This is
> wrong of course. Could you try to run LyX under strace
>   strace lyx
> and post the last few lines of output? This should give s the name of
> the file/directory that caused a problem, and therefore a hint about
> what to do.

Well said! I did the strace and part of the result was:

==quote==
getcwd("/home/siebeck", 256)= 14
stat64("/home/siebeck/lyx", 0xbfc34e10) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/qt-3.3/bin/lyx", 0xbfc34e10) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/kde3/bin/lyx", 0xbfc34e10) = -1 EACCES (Permission denied)
futex(0x44beae8, FUTEX_WAKE, 2147483647) = 0
write(2, "terminate called after throwing "..., 48terminate called after
throwing an instance of ') = 48
write(2, "boost::filesystem::basic_filesys"...,
118boost::filesystem::basic_filesystem_error >) = 118
write(2, "\'\n", 2'
) = 2
write(2, "  what():  ", 11  what():  ) = 11
write(2, "boost::filesystem::exists", 25boost::filesystem::exists) = 25
write(2, "\n", 1
)   = 1
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(12119, 12119, SIGABRT)   = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
==unquote==

So what I did was to create a directory ~/lyx and then I started lyx
again. Wow! Lyx started, created a directory ~/.lyx, checked for all the
helper programs, document classes, packages and whatever and was up and
running! The funny (or strange) part is:

1. there is no directory ~root/lyx
2. under Kubuntu, there is no directory ~/lyx for non-root user

Many thanks for the hint to Jean-Marc!

Greetings from Phuket, Thailand

Wolfgang

-- 
Fempf Halbe sen so viel wia a Schnitzel,
ond dann hosch emmr no nix dronga.


  1   2   >