Re: How can I find out, if XeTex is installed on OSX?

2009-01-08 Thread jezZiFeR
On Wed, Jan 7, 2009 at 4:42 PM, jezZiFeR jezzi...@googlemail.com  
wrote:

I thought I had installed XeTex with MacTex, but when I followed the
instructions of the wiki  I don´t get the mentioned new item under  
the View
menu. When I try to complile via the pdf-button, I get the message  
LaTeX

Error: *** this package currently works only with XeTeX ***.

Could it be, that it is installed, but I did wrong something else?


This error message doesn't sounds like you're trying to typeset a
XeTeX specific file using some variety of LaTeX instead. So I don't
think the problem is with your installation of XeTeX.

Well, how could I find out, if it is installed, and if not: What is  
the

easiest way to get it installed?


XeTeX is installed by default with the latest MacTeX. You can test it
by entering in the Terminal:

xetex --version

and it should tell you what version of XeTeX you have; if you don't
have it, it'll say command not found.


Thanks, XeTex seems to be properly installed, this is the version:

XeTeX 3.1415926-2.2-0.999.6 (Web2C 7.5.7)
kpathsea version 3.5.7


I tried to install with the 0.995-version
of this site:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem_id=xetex_download
but it didn´t work, I got the message: preflight script for xetex


Not sure what that message means on its own. But use MacTeX to install
a more current version of XeTeX if needed.


I don´t know how that works. The MacTex-installer I have is from  
August 2008, and obviously too old. Should I download the whole  
installer? The problm is, that when I run the installer I do not get  
the possibility to install XeTex separately. There is Ghostscript  
8.62, GUI Applications, imageMagickConvert, some fonts, and  
TexLive. On this site

http://www.ctan.org/tex-archive/systems/mac/mactex/
I find various files, but can´t figure out, which one installs XeTex.

Thank you, best*
Jess

Re: problem running lyx on windows

2009-01-08 Thread Firat Bilgel
Hold down the Windows key (the one with an icon that looks a little like
a flag rippling in a breeze) and hit R.  That should bring up the Run
menu.  Type 'cmd' without the quotes and hit Enter or click Ok.  You
should now have a window showing a command prompt.  Type 'latex
--version' (again without the quotes) and hit Enter.  If the MiKTeX bin
directory is on your system command path, you should get a few lines of
output, the first of which should look something like

MiKTeX-pdfTeX 2.7.3147 (1.40.9) (MiKTeX 2.7).

The central idea is that programs on your command path can be run from
anywhere, without specifying the path to them.  Programs not on your
command path have to be started by specifying the path (or clicking an
icon that contains the path).  When LyX tries to configure itself the
first time, it does not necessarily know where MiKTeX is installed (or
even if MiKTeX is installed), so it tries to run latex.exe to see if it
exists.  If MiKTeX is not on the command path, Windows will not be able
to run it (since LyX could not specify the directory), and LyX will
think MiKTeX is not installed.

If this is indeed the problem, let us know, and someone will walk you
through the steps of adding MiKTeX to the command path.

/Paul
Firat Bilgel wrote:
I opened the command prompt and under C:\, I typed 'latex--version'
(without the quotes). The program says 'latex--version' is not recognized as
a file or program.


Re: How can I find out, if XeTex is installed on OSX?

2009-01-08 Thread Bennett Helm
On Thu, Jan 8, 2009 at 4:30 AM, jezZiFeR jezzi...@googlemail.com wrote:
 I tried to install with the 0.995-version
 of this site:

 http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem_id=xetex_download
 but it didn´t work, I got the message: preflight script for xetex

 Not sure what that message means on its own. But use MacTeX to install
 a more current version of XeTeX if needed.

 I don´t know how that works. The MacTex-installer I have is from August
 2008, and obviously too old. Should I download the whole installer? The
 problm is, that when I run the installer I do not get the possibility to
 install XeTex separately. There is Ghostscript 8.62, GUI Applications,
 imageMagickConvert, some fonts, and TexLive. On this site
 http://www.ctan.org/tex-archive/systems/mac/mactex/
 I find various files, but can´t figure out, which one installs XeTex.

For updating MacTeX, see:

http://www.tug.org/mactex/tlmgr.html

(Your version of XeTeX is up to date.)

Bennett


Re: Is Lyx suitable for me?

2009-01-08 Thread Nikos Alexandris
On Thu, 2009-01-08 at 02:12 +0200, Panos Katergiathis wrote:
 Hello all

Γειά σου Πάνο.

 I am about to author and prepare a book on photography, which is bound 
 to have many... well, photos :).
 I will hopefully be using Lyx on an Intel-based Mac and i am wondering 
 about two features (that is, if they are available or not):
 
 a) Will i be able to have spell checking in Greek with something like 
 cocoAspell ?
Which operating system do you work with? Under (Ubuntu-)Linux I have
aspell installed and it works just fine. You just have to set language
Greek (of course) in the respective field under Document settings.

Cheers, Nikos




Re: lyx2pdf

2009-01-08 Thread Matthias Coy

Hi there,

still not quite working :/

here is my little testscript:

http://pastebin.mozilla.org/608410

and here some output:

While the original SVG (generated by Visual Paradigm UML)
http://matthiascoy.de/temp/test.original.svg

looks kind of awkward in Firefox, the plain svg

http://matthiascoy.de/temp/test.inkscape.plain.svg

looks very good. So I took that to generate PDF

http://matthiascoy.de/temp/test.inkscape.pdf

and, as you can see, it looks DIFFERENT. Now the PNG/EPS/PDF looks all the same, 
almost good, but the text inside those UML classes is a little to big.


Hopefully some knows what the problem is :/

Regards
Matt


Vincent van Ravesteijn schrieb:

Matthias Coy schreef:

Hi again,

I found out, that these two files (or at least one of them) work:

~/.lyx/lyxrc.dist
~/.lyx/preferences

I put in them the following lines:

\format SVG svg svg  inkview inkscape vector
\converter SVG eps inkscape -F -D -z $$i --export-eps=$$o 
\converter SVG png inkscape -D -z $$i --export-png=$$o 
\converter SVG pdf inkscape -D -z $$i --export-pdf=$$o 

and the quality is much better. Now I have the problem, that the 
pictures are looking strange.


This is how it should look (svg opened with inkscape):
http://img187.imageshack.us/my.php?image=withininkscapevd0.png

This is how the PDF export shows it:
http://img523.imageshack.us/my.php?image=pdfexportoj4.png

And here it doesn't matter if lyx -e pdf[2-3]?, I've tried them all. 
What strange behaviour is this?


You probably want to add the option -T or --export-text-to-path to the 
inkscape parameter list.


With this option, the text is rendered as a part of the drawing. Without 
this option, the text uses the latex/postscript font and this might have 
a different size as shown in Inkscape. This is useful when you want to 
replace the text by latex text/math with psfrag.


Vincent






RE: lyx2pdf

2009-01-08 Thread Vincent van Ravesteijn - TNW
 

From: Matthias Coy [mailto:matthias@gmx.de] 

Hi there,

still not quite working :/



Now the PNG/EPS/PDF looks all the same, almost good, but the
text inside those UML classes is a little to big.

Well, if I convert your plain svg with Inkscape the same as you do, my
EPS looks good, while yours (found it on your server) doesn't. 

Can you run Inkscape with a GUI and see how it renders it ? Maybe it
uses a different font than the other svg-renderers.

Bytheway, I use Inkscape 0.45.1 on WinXp. 

Vincent


Re: lyx2pdf

2009-01-08 Thread Matthias Coy

Hi Vincent,

Vincent van Ravesteijn - TNW schrieb:
 

From: Matthias Coy [mailto:matthias@gmx.de] 


Hi there,

still not quite working :/



Now the PNG/EPS/PDF looks all the same, almost good, but the
text inside those UML classes is a little to big.


Well, if I convert your plain svg with Inkscape the same as you do, my
EPS looks good, while yours (found it on your server) doesn't. 


Can you run Inkscape with a GUI and see how it renders it ? Maybe it
uses a different font than the other svg-renderers.

Bytheway, I use Inkscape 0.45.1 on WinXp. 


Vincent


Now I've loaded the test.inkscape.plain.svg into my WinXP Inkscape 0.46 (1. 
April 2008), exported it to PNG and it looks nice. The version of inkscape on 
the server is also 0.46. I don't know which libraries the windows version uses, 
but on (gentoo-)linux it looks like this:


media-gfx/inkscape-0.46-r5:
media-libs/freetype-2.3.7
media-libs/libpng-1.2.33
media-libs/lcms-1.17
app-text/poppler-bindings-0.8.7
media-libs/fontconfig-2.6.0-r2
media-gfx/imagemagick-6.4.4.6
x11-libs/pango-1.20.5
x11-libs/libXft-2.1.12
x11-libs/gtk+-2.12.11

So on windows it looks good, on linux it doesn't ...

Hopefully someone can help
Matt


ModernCV example won't work

2009-01-08 Thread Wolfgang Keller
Hello,

I tried to generate a PDF (with TeX Live 2008 on Windows) from the
example for the moderncv class that comes with LyX 1.6.1.

I downloaded the moderncv archive from CTAN, installed it in my
texml-local and ran texhash as indicated in the customizsation
document.

LyX produces the following error message when I hit the PDF button
in the toolbar:

Undefined control sequence

Description:

   \ce
  {IrH5(PPh3)2}.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Any help?

TIA,

Sincerely,

Wolfgang Keller



Key Binding Terminology Changes

2009-01-08 Thread Rich Shepard

  I've upgraded to 1.6.1 and my key bindings no longer work. I know there
are name changes but I haven't found where these are all documented. Please
tell me where I can find the name changes and I'll fix ~/.lyx/bind/*.bind.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


SV: Is Lyx suitable for me?

2009-01-08 Thread Ingar Pareliussen
Hi

I am about to author and prepare a book on photography, which is bound 
to have many... well, photos :).
I will hopefully be using Lyx on an Intel-based Mac and i am wondering 
about two features (that is, if they are available or not):

I published a book with more than 400 pictures this fall, and lyx worked 
like a treat for me. If you haven't used lyx before you should add some
time to learn using it.   

a) Will i be able to have spell checking in Greek with something like 
cocoAspell ?

I'm not on a mac, but lyx supports aspell (along ispell and hspell). 
I guess I would download lyx and test it.

b) Is it possible that, whenever i insert an image, have it 
automatically scaled to fit on the with of the page?

Yes. With the new graphics groups you can easy asign size such as 
% of paperwith. 

c) Is it possible that, whenever i insert an image have Lyx create an 
auto-caption containing the filename of the inserted image?

I would suggest no, eventhough it is possible with a LaTeX macro.
However, I would probably take more time learning LaTeX than copy and 
past the name to the caption every time. 

HTH

Ingar


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski


Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes:

xargs is only needed if you have macros with optional arguments. Of  
course, \newcommand could handle the case with one optional. But,  
what we need in fact is something equivalent to \global\def for  
this case. Is there a way to do this with \newcommand?


Why \global?

I think that \global\newcommand works in any case.


It does? I think I tried and it did not.

A second requirement: the distinction between \newcommand and  
\renewcommand is very fragile. It is far from trivial to say whether a  
macro is redefined in some cases. E.g., in a lyx comment a definition  
will be ignored.


It would be nice to make the case all optional arguments are before  
required ones work with plain \newcommand.


What do you mean? I had a self-made \newcommand implementation that  
could do that. But it is quite large (obviously), and it also look  
strange to put that into the preamble. For that reason we switched to  
xargs instead.


Stefan



Crash Report: 1.6.1 on Linux

2009-01-08 Thread Rich Shepard

  Cue the music, please. This is a repeatable error -- a fatal flaw, in fact
-- with lyx-1.6.1 on Slackware-12.1.

  Open existing document. Select from menu Insert - Insert File - Plain
text join lines (or just Plain text). Instant crash; lyx shuts down.
Invoking from the command line with the -dbg switch tells me only what
features can be debugged, it doesn't run the application in a debugger.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski


Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes:

xargs is only needed if you have macros with optional arguments. Of  
course, \newcommand could handle the case with one optional. But,  
what we need in fact is something equivalent to \global\def for  
this case. Is there a way to do this with \newcommand?


Why \global?


Because without the logic is complicated:

  \newcommand{\foo}{a} \textbf{\renewcommand{\foo}{b} bla} $\foo$

What is printed in the output? What should be shown on screen?

Stefan


Re: Key Binding Terminology Changes

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
 I've upgraded to 1.6.1 and my key bindings no longer work. I know there
 are name changes but I haven't found where these are all documented. Please
 tell me where I can find the name changes and I'll fix ~/.lyx/bind/*.bind.

RELEASE_NOTES.

Jürgen


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
 Open existing document. Select from menu Insert - Insert File - Plain
 text join lines (or just Plain text). Instant crash; lyx shuts down.

Doesn't crash for me. However, the file filters are not correctly set.

 Invoking from the command line with the -dbg switch tells me only what
 features can be debugged, it doesn't run the application in a debugger.

You should run LyX from within gdb. See
http://wiki.lyx.org/FAQ/FurtherHelp#toc4

Jürgen


Re: Key Binding Terminology Changes

2009-01-08 Thread Rich Shepard

On Thu, 8 Jan 2009, Jürgen Spitzmüller wrote:


RELEASE_NOTES.


Jürgen,

  I thought it was some place this this. I build each version using a
SlackBuild script so I don't manually untar the source. That's what I should
have done before writing.

Mea culpa!

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Rich Shepard

On Thu, 8 Jan 2009, Jürgen Spitzmüller wrote:


Doesn't crash for me. However, the file filters are not correctly set.


Jürgen,

  I assume that you refer to the file filters on my system. When I navigate
to Edit - Preferences - File handling I see two choices: Converters and
File Formats. The former has no entry for plain text, the latter seems to
specify conversions for import using ps2text and the like. What should I be
looking for?


You should run LyX from within gdb.


  OK. Here is the output before starting the backtrace. I need to clean
these up first:

LyX: BN_BIND: Unknown LyX function ont-code' [around line 7 of file
~/.lyx/bind/my.bind current token: 'font-code' context: '']

(NB: I checked the RELEASE_NOTES and changed the above to 'font-typewriter'
in ~/.lyx/bind/my.bind, but it's apparently not being seen. In the
following, I've not found the strings in the RELEASE_NOTES so I've no idea
how to fix them.)

LyX: BN_BIND: Unknown LyX function `hfill-insert' [around line 22 of file
~/.lyx/bind/my.bind current token: 'hfill-insert' context: '']
LyX: BN_BIND: Unknown LyX function `find-replace' [around line 33 of file
~/.lyx/bind/my.bind current token: 'find-replace' context: '']
LyX: BN_BIND: Unknown LyX function `layout-paste' [around line 46 of file
~/.lyx/bind/my.bind current token: 'layout-paste' context: '']
LyX: Unknown tag bing' [around line 64 of file ~/.lyx/bind/my.bind current
token: '\bing' context: '']
LyX: BN_BIND: Unknown LyX function `vc-history' [around line 69 of file
~/.lyx/bind/my.bind current token: 'vc-history' context: '']
LyX: Unknown tag ind' [around line 110 of file ~/.lyx/bind/my.bind current
token: 'bind' context: '']
LyX: BN_BIND: Unknown LyX function `reference-goto' [around line 131 of file
~/.lyx/bind/my.bind current token: 'reference-goto' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 151 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `backward-select' [around line 152 of file
~/
.lyx/bind/my.bind current token: 'backward-select' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 153 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `break-paragraph-keep-layout' [around line
177 of file ~/.lyx/bind/my.bind current token: 'break-paragraph-keep-layout'
context: '']
LyX: BN_BIND: Unknown LyX function `ligature-break-insert' [around line 179
of file ~/.lyx/bind/my.bind current token: 'ligature-break-insert' context:
'']
LyX: BN_BIND: Unknown LyX function `protected-space-insert' [around line 180
of file ~/.lyx/bind/my.bind current token: 'protected-space-insert' context:
'']
LyX: BN_BIND: Unknown LyX function nd-of-sentence-period-insert' [around
line 181 of file ~/.lyx/bind/my.bind current token:
'end-of-sentence-period-insert' context: '']

(NB: found the following and replaced the string in the .bind file.)

LyX: BN_BIND: Unknown LyX function `dots-insert' [around line 182 of file
~/.lyx/bind/my.bind current token: 'dots-insert' context: '']
LyX: BN_BIND: Unknown LyX function `layout-copy' [around line 184 of file
~/.lyx/bind/my.bind current token: 'layout-copy' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 188 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `backward-select' [around line 189 of file
~/.lyx/bind/my.bind current token: 'backward-select' context: '']
KeyMap.cpp(227): KeyMap::read: error while reading bind
file:/home/rshepard/.lyx/bind/my.bind
Error: New binding for 'Ctrl+D Del' is overriding old binding...
Menus.cpp(588): Menu warning: menu entries Ordinary Quote|O and
Horizontal Space...|o share the same shortcut.
Menus.cpp(588): Menu warning: menu entries Ordinary Quote|O and
Horizontal Space...|o share the same shortcut.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6f378e0 (LWP 26049)]
qt_clean_filter_list (filt...@0x87bebb4)
at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:70
70  ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: No such
file or directory.
in ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h
Current language:  auto; currently c++

  After cleaning these up, if it still crashes I'll run a backtrace and post
the output.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


LaTeX protocol (Re: ModernCV example won't work)

2009-01-08 Thread Wolfgang Keller
If it helps, here's the LaTeX protocol:

This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
(format=pdflatex 2009.1.8)  8 JAN 2009 20:12 entering extended mode
 %-line parsing enabled.
**modernCV.tex
(./modernCV.tex
LaTeX2e 2005/12/01
Babel v3.8l and hyphenation patterns for english, usenglishmax,
dumylang, noh yphenation, german-x-2008-06-18, ngerman-x-2008-06-18,
ancientgreek, ibycus, ar abic, basque, bulgarian, catalan, pinyin,
coptic, croatian, czech, danish, dutc h, esperanto, estonian, farsi,
finnish, french, galician, german, ngerman, mono greek, greek,
hungarian, icelandic, indonesian, interlingua, irish, italian, la tin,
mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian,
rus sian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
turkish, ukenglis h, ukrainian, uppersorbian, welsh, loaded.

(j:/TeXlive/texmf-dist/tex/latex/moderncv/moderncv.cls
Document Class: moderncv 2008/06/17 v0.7 modern curriculum vitae
document class

(j:/TeXlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
) (j:/TeXlive/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
) (j:/TeXlive/texmf-dist/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)
(j:/TeXlive/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.
(j:/TeXlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2008/07/16 v0.04k Graphics/color for pdfTeX
\gr...@gobject=\count79
)) (j:/TeXlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(j:/TeXlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) (j:/TeXlive/texmf-dist/tex/latex/marvosym/marvosym.sty
Package: marvosym 2006/05/11 v2.1 Martin Vogel's Symbols font
definitions ) (j:/TeXlive/texmf-dist/tex/latex/ltxmisc/url.sty
\Urlmuskip=\muskip10
Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.
) (j:/TeXlive/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2008/08/14 v6.78f Hypertext links for LaTeX
(j:/TeXlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\...@toks@=\toks14
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2007/09/09 v1.3 Switches for detecting VTeX and its
modes (HO) Package ifvtex Info: VTeX not detected.
) (j:/TeXlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2006/08/21 v0.3 Provides ifxetex conditional
) (j:/TeXlive/texmf-dist/tex/latex/oberdiek/hycolor.sty
Package: hycolor 2008/08/01 v1.3 Code for color options of
hyperref/bookmark (H O)
(j:/TeXlive/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty
Package: xcolor-patch 2008/08/01 xcolor patch
))
\...@linkdim=\dimen102
\...@linkcounter=\count80
\...@pagecounter=\count81
(j:/TeXlive/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2008/08/14 v6.78f Hyperref: PDFDocEncoding definition
(HO) ) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)
)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50
or (etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
) (j:/TeXlive/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
) (j:/TeXlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
)
Package hyperref Info: Hyper figures OFF on input line 2876.
Package hyperref Info: Link nesting OFF on input line 2881.
Package hyperref Info: Hyper index ON on input line 2884.
Package hyperref Info: Plain pages OFF on input line 2891.
Package hyperref Info: Backreferencing OFF on input line 2896.
Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 3086.
LaTeX Info: Redefining \url on input line 3272.
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/bitset.sty
Package: bitset 2007/09/28 v1.0 Data type bit set (HO)
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/intcalc.sty
Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/bigintcalc.sty
Package: bigintcalc 2007/11/11 v1.1 Expandable big integer calculations
(HO) 

Re: Is Lyx suitable for me?

2009-01-08 Thread Nick Bell

Panos Katergiathis wrote:
b) Is it possible that, whenever i insert an image, have it 
automatically scaled to fit on the with of the page?


LyX does this nicely - you can set image width to 100 % of column width.
-
Nick Bell
m...@nickbell.org


Re: Is Lyx suitable for me?

2009-01-08 Thread cmiramon
Panos Katergiathis wrote:

 Hello all
 
 I am about to author and prepare a book on photography, which is bound
 to have many... well, photos :).
 I will hopefully be using Lyx on an Intel-based Mac and i am wondering
 about two features (that is, if they are available or not):

If you have a lot of pictures and little text and you want to position your
pictures on a fixed grid, then LyX is maybe not the right tool and you
should consider a DTP program like scribus.

Positioning floats on a page can sometimes be very frustrating in LaTeX
.
Charles



Re: Question on section - properties in the menu bar

2009-01-08 Thread Pavel Sanda
 Dieter Jurzitza schreef:
 Hi Vincent,
 I wouldn't consider / being a good idea when it comes to file access, as 
 is \ not a good idea.

 If I was asked I'd rather suggest to use something like a doubled 
 underscore, say __ as a replacement for \. __ is harmless in any 
 regard, escaping is not complicated.


 As an alternative I could imagine to replace \ by string bcksl_ or 
 something alike.

   
 I did this in http://www.lyx.org/trac/changeset/27977. Now, the icons 
 should be named:

 paragraph-params_backslashalign_block
 ..etc.

wouldn't be better to use some dash e.g. ('\\', _backslash_) for better
parsing of filenames?

pavel


Re: Question on section - properties in the menu bar

2009-01-08 Thread Pavel Sanda
 Dieter Jurzitza schreef:
 Dear listmembers,
 well, obviously my C-programming capabilities were sufficient, though. My 
 first attempt of using fprintf(%s\n, name1); ended with an invalid 
 machinecode message - but patching the debugging-cout messagestring 
 resulted in success.

 So, at least for linux I can confirm that \ in a file name is acceptable 
 (horray, I'm not on M$) and the expected filename was

   paragraph-params_\align_block.png
   
 damn, I'm on M$.

 I'd like to know why the \ is there. All other LFUNs don't have any 
 parameters (except math-commands) with a \.

because those functions were originally intended for dialog - data exchange,
not for manual setting as we use them now...
pavel


Re: I need tips on including SVG images

2009-01-08 Thread Pavel Sanda
 On 2008-12-28, Abdelrazak Younes wrote:
  On 28/12/2008 05:29, Steve Litt wrote:
  On Saturday 20 December 2008 12:30:17 pm Steve Litt wrote:
 
  Today for the first time I was able to incorporate an SVG image
 ...
  Anyway, yesterday I noticed that my .svg graphic pixellated when the
  resulting pdf was viewed at anything besides 100%. 
 ...
  So I converted the svg to a .pdf and included the .pdf in the LyX
  diagram, and the resulting document .pdf looked good at any
  magnification.
 
  Instead of doing that you could make use of the external material inset.
 
 Does the external inset has a in-LyX preview as a graphics inset by
 now?

it has for those insets defined for instant preview (eg xfig).
there are still some glitches i'm trying to work on.
pavel


Re: svn for version control on Mac LyX 1.6.1

2009-01-08 Thread Pavel Sanda
 at the unix prompt. I'd like to trade up to LyX. I see in section 7.4 of 
 the HOWTO that Mac-LyX supports RCS. But there was also a mention (point 
 29) in the LyX 1.6 release notes of support for svn, as well. I'm not sure 
 how to unleash Pavel's functionality, though. Presumably some option needs 
 to be altered to issue commands like svn checkout rather than co.

point 29 also refers to extended manual :) if there is something unclear
we can update the manual...

 Is there a way to use Subversion on Mac LyX 1.6.1? I have Mac OS X 10.5.5.

if svn is possible to run on mac then yes.
pavel


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Jean-Marc Lasgouttes
Stefan Schimanski s...@1stein.org writes:
 I think that \global\newcommand works in any case.

 It does? I think I tried and it did not.

I might be wrong. I cannot find reference to that right now.

 A second requirement: the distinction between \newcommand and
 \renewcommand is very fragile. It is far from trivial to say whether a
 macro is redefined in some cases. E.g., in a lyx comment a definition
 will be ignored.

LyX should skip macro definitions in comments anyway.

 It would be nice to make the case all optional arguments are before
 required ones work with plain \newcommand.

 What do you mean? I had a self-made \newcommand implementation that
 could do that. But it is quite large (obviously), and it also look
 strange to put that into the preamble. For that reason we switched to
 xargs instead.

Sorry, I was mistaken about what newcommand can do. I meant: commands
with one optional argument before the required ones.

JMarc


Re: Outline bug - collapsing when label is added

2009-01-08 Thread Pavel Sanda
 Has anyone been reporting a bug with outline, when option Keep is
 marked and when new label is added, all entries from TOC collapses
 back to main tree? Selecting and unselecting Sort returns to what I
 want.

put it into bugzilla please.
pavel


Re: What is groupId in GraphicsUi

2009-01-08 Thread Pavel Sanda
 Manveru schreef:
 This question is probably to devel list, but I am not subscribed
 there. Probably I can get good answer here to my question.

 In 1.6 there in new option in Graphics Ui: Initialize Group Name. I
 would like to translate it to Polish, but this is not possible without
 having context on mind.

...

 Assigning graphics to groups just means that you'd have to enter a string 
 (the name of a group) in the Initialize group name textfield. Entering 
 this same string into this field of a different graphic would put them in 
 the same group.

 As you do not have to define the groups beforehand, it has probably earned 
 the predicate initialize, but I'm not convinced this is the correct name. 
 A better description would be something like: Assign to group:.

the workflow is meant to be different. use the field initialize to create a new
group and context menu of another picture to join some already existing group.

your procedure will assign, but also destroy the existing group parameters by
the new ones.

 Thanks in advance for any helpful explanation of this new feature.

it is described in manual.
pavel


Re: SV: Some thoughts on lyx 1.6.1

2009-01-08 Thread Pavel Sanda
 Vincent wrote:
 Jürgen Spitzmüller schreef:
 Ingar Pareliussen wrote:
   
 Could it be an idea to have a drop-down box instead, with the different
 groups to choose, and 'add new group' button?
 

 Yes, this would definitely be a better UI.

 Jürgen
   
 as in.. the current UI is b... so if you have some spare time left :).

/me hides :)

more seriously, i have considered the ideas which are proposed now, but there
are many problems, which become aparent in the moment you try to implement
it. for example for the drop down menu you will need to touch the whole
document from _inside_ the graphics dialog while our api tries to keep them
separated and so on. it is doable but i started to have a headache even
thinking about the details. similar problems for new button.

although the proposed tooltips are more readable, they desrcibe different
function.

but i agree that the current situation is not intuitive and without some
reading around user won't get the idea about the context menu. i can add one
sentence about the context menu to the tooltip.

pavel


Re: ModernCV example won't work

2009-01-08 Thread Jürgen Spitzmüller
Wolfgang Keller wrote:
 Description:

    \ce
           {IrH5(PPh3)2}.
 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 misspelled it (e.g., `\hobx'), type `I' and the correct
 spelling (e.g., `I\hbox'). Otherwise just continue,
 and I'll forget about whatever was undefined.

 Any help?

This is a bug in the example bibtex file which is shipped with LyX and 
included in the modernCV example.

One entry uses a non-native command (from the mhchem package), namely \ce.
Just replace the bibliography file by another one, for instance xampl.bib, 
which ships with LaTeX itself.

For the next version of LyX, we will remove the concerned entry.

Jürgen


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
 I assume that you refer to the file filters on my system. 

No, I was referring to the File filter list set by LyX for this file dialog. I 
assume you are building LyX yourself. Could you apply the attached patch and 
check if this helps?

(to apply: put the file in the uppermost folder of the lyx source tree, i.e. 
above src, issue patch -p0  x.diff and then rebuild with make).

    After cleaning these up, if it still crashes I'll run a backtrace and
 post the output.

Yes, please.

 Thanks,

 Rich

Jürgen
Index: src/frontends/qt4/GuiView.cpp
===
--- src/frontends/qt4/GuiView.cpp	(Revision 28032)
+++ src/frontends/qt4/GuiView.cpp	(Arbeitskopie)
@@ -1626,7 +1626,7 @@
 		LFUN_FILE_INSERT_PLAINTEXT_PARA : LFUN_FILE_INSERT_PLAINTEXT));
 
 	FileDialog::Result result = dlg.open(toqstr(bv-buffer().filePath()),
-		QStringList());
+		QStringList(qt_(All Files (*;
 
 	if (result.first == FileDialog::Later)
 		return;


Re: What is groupId in GraphicsUi

2009-01-08 Thread Manveru
2009/1/9 Pavel Sanda sa...@lyx.org:
 Manveru schreef:
 This question is probably to devel list, but I am not subscribed
 there. Probably I can get good answer here to my question.

 In 1.6 there in new option in Graphics Ui: Initialize Group Name. I
 would like to translate it to Polish, but this is not possible without
 having context on mind.

 ...

 Assigning graphics to groups just means that you'd have to enter a string
 (the name of a group) in the Initialize group name textfield. Entering
 this same string into this field of a different graphic would put them in
 the same group.

 As you do not have to define the groups beforehand, it has probably earned
 the predicate initialize, but I'm not convinced this is the correct name.
 A better description would be something like: Assign to group:.

 the workflow is meant to be different. use the field initialize to create a 
 new
 group and context menu of another picture to join some already existing group.

 your procedure will assign, but also destroy the existing group parameters by
 the new ones.

 Thanks in advance for any helpful explanation of this new feature.

 it is described in manual.

I hadn't read this in manual, but from your explanations it seem to be
very user not-friendly feature. It is not natural to users entering
new name in that field every time they want new group. Without reading
the manual, people like I who mostly not read manuals at all cannot
understand how this feature works. But that is my private opinion.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: How can I find out, if XeTex is installed on OSX?

2009-01-08 Thread jezZiFeR
On Wed, Jan 7, 2009 at 4:42 PM, jezZiFeR jezzi...@googlemail.com  
wrote:

I thought I had installed XeTex with MacTex, but when I followed the
instructions of the wiki  I don´t get the mentioned new item under  
the View
menu. When I try to complile via the pdf-button, I get the message  
LaTeX

Error: *** this package currently works only with XeTeX ***.

Could it be, that it is installed, but I did wrong something else?


This error message doesn't sounds like you're trying to typeset a
XeTeX specific file using some variety of LaTeX instead. So I don't
think the problem is with your installation of XeTeX.

Well, how could I find out, if it is installed, and if not: What is  
the

easiest way to get it installed?


XeTeX is installed by default with the latest MacTeX. You can test it
by entering in the Terminal:

xetex --version

and it should tell you what version of XeTeX you have; if you don't
have it, it'll say command not found.


Thanks, XeTex seems to be properly installed, this is the version:

XeTeX 3.1415926-2.2-0.999.6 (Web2C 7.5.7)
kpathsea version 3.5.7


I tried to install with the 0.995-version
of this site:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem_id=xetex_download
but it didn´t work, I got the message: preflight script for xetex


Not sure what that message means on its own. But use MacTeX to install
a more current version of XeTeX if needed.


I don´t know how that works. The MacTex-installer I have is from  
August 2008, and obviously too old. Should I download the whole  
installer? The problm is, that when I run the installer I do not get  
the possibility to install XeTex separately. There is Ghostscript  
8.62, GUI Applications, imageMagickConvert, some fonts, and  
TexLive. On this site

http://www.ctan.org/tex-archive/systems/mac/mactex/
I find various files, but can´t figure out, which one installs XeTex.

Thank you, best*
Jess

Re: problem running lyx on windows

2009-01-08 Thread Firat Bilgel
Hold down the Windows key (the one with an icon that looks a little like
a flag rippling in a breeze) and hit R.  That should bring up the Run
menu.  Type 'cmd' without the quotes and hit Enter or click Ok.  You
should now have a window showing a command prompt.  Type 'latex
--version' (again without the quotes) and hit Enter.  If the MiKTeX bin
directory is on your system command path, you should get a few lines of
output, the first of which should look something like

MiKTeX-pdfTeX 2.7.3147 (1.40.9) (MiKTeX 2.7).

The central idea is that programs on your command path can be run from
anywhere, without specifying the path to them.  Programs not on your
command path have to be started by specifying the path (or clicking an
icon that contains the path).  When LyX tries to configure itself the
first time, it does not necessarily know where MiKTeX is installed (or
even if MiKTeX is installed), so it tries to run latex.exe to see if it
exists.  If MiKTeX is not on the command path, Windows will not be able
to run it (since LyX could not specify the directory), and LyX will
think MiKTeX is not installed.

If this is indeed the problem, let us know, and someone will walk you
through the steps of adding MiKTeX to the command path.

/Paul
Firat Bilgel wrote:
I opened the command prompt and under C:\, I typed 'latex--version'
(without the quotes). The program says 'latex--version' is not recognized as
a file or program.


Re: How can I find out, if XeTex is installed on OSX?

2009-01-08 Thread Bennett Helm
On Thu, Jan 8, 2009 at 4:30 AM, jezZiFeR jezzi...@googlemail.com wrote:
 I tried to install with the 0.995-version
 of this site:

 http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem_id=xetex_download
 but it didn´t work, I got the message: preflight script for xetex

 Not sure what that message means on its own. But use MacTeX to install
 a more current version of XeTeX if needed.

 I don´t know how that works. The MacTex-installer I have is from August
 2008, and obviously too old. Should I download the whole installer? The
 problm is, that when I run the installer I do not get the possibility to
 install XeTex separately. There is Ghostscript 8.62, GUI Applications,
 imageMagickConvert, some fonts, and TexLive. On this site
 http://www.ctan.org/tex-archive/systems/mac/mactex/
 I find various files, but can´t figure out, which one installs XeTex.

For updating MacTeX, see:

http://www.tug.org/mactex/tlmgr.html

(Your version of XeTeX is up to date.)

Bennett


Re: Is Lyx suitable for me?

2009-01-08 Thread Nikos Alexandris
On Thu, 2009-01-08 at 02:12 +0200, Panos Katergiathis wrote:
 Hello all

Γειά σου Πάνο.

 I am about to author and prepare a book on photography, which is bound 
 to have many... well, photos :).
 I will hopefully be using Lyx on an Intel-based Mac and i am wondering 
 about two features (that is, if they are available or not):
 
 a) Will i be able to have spell checking in Greek with something like 
 cocoAspell ?
Which operating system do you work with? Under (Ubuntu-)Linux I have
aspell installed and it works just fine. You just have to set language
Greek (of course) in the respective field under Document settings.

Cheers, Nikos




Re: lyx2pdf

2009-01-08 Thread Matthias Coy

Hi there,

still not quite working :/

here is my little testscript:

http://pastebin.mozilla.org/608410

and here some output:

While the original SVG (generated by Visual Paradigm UML)
http://matthiascoy.de/temp/test.original.svg

looks kind of awkward in Firefox, the plain svg

http://matthiascoy.de/temp/test.inkscape.plain.svg

looks very good. So I took that to generate PDF

http://matthiascoy.de/temp/test.inkscape.pdf

and, as you can see, it looks DIFFERENT. Now the PNG/EPS/PDF looks all the same, 
almost good, but the text inside those UML classes is a little to big.


Hopefully some knows what the problem is :/

Regards
Matt


Vincent van Ravesteijn schrieb:

Matthias Coy schreef:

Hi again,

I found out, that these two files (or at least one of them) work:

~/.lyx/lyxrc.dist
~/.lyx/preferences

I put in them the following lines:

\format SVG svg svg  inkview inkscape vector
\converter SVG eps inkscape -F -D -z $$i --export-eps=$$o 
\converter SVG png inkscape -D -z $$i --export-png=$$o 
\converter SVG pdf inkscape -D -z $$i --export-pdf=$$o 

and the quality is much better. Now I have the problem, that the 
pictures are looking strange.


This is how it should look (svg opened with inkscape):
http://img187.imageshack.us/my.php?image=withininkscapevd0.png

This is how the PDF export shows it:
http://img523.imageshack.us/my.php?image=pdfexportoj4.png

And here it doesn't matter if lyx -e pdf[2-3]?, I've tried them all. 
What strange behaviour is this?


You probably want to add the option -T or --export-text-to-path to the 
inkscape parameter list.


With this option, the text is rendered as a part of the drawing. Without 
this option, the text uses the latex/postscript font and this might have 
a different size as shown in Inkscape. This is useful when you want to 
replace the text by latex text/math with psfrag.


Vincent






RE: lyx2pdf

2009-01-08 Thread Vincent van Ravesteijn - TNW
 

From: Matthias Coy [mailto:matthias@gmx.de] 

Hi there,

still not quite working :/



Now the PNG/EPS/PDF looks all the same, almost good, but the
text inside those UML classes is a little to big.

Well, if I convert your plain svg with Inkscape the same as you do, my
EPS looks good, while yours (found it on your server) doesn't. 

Can you run Inkscape with a GUI and see how it renders it ? Maybe it
uses a different font than the other svg-renderers.

Bytheway, I use Inkscape 0.45.1 on WinXp. 

Vincent


Re: lyx2pdf

2009-01-08 Thread Matthias Coy

Hi Vincent,

Vincent van Ravesteijn - TNW schrieb:
 

From: Matthias Coy [mailto:matthias@gmx.de] 


Hi there,

still not quite working :/



Now the PNG/EPS/PDF looks all the same, almost good, but the
text inside those UML classes is a little to big.


Well, if I convert your plain svg with Inkscape the same as you do, my
EPS looks good, while yours (found it on your server) doesn't. 


Can you run Inkscape with a GUI and see how it renders it ? Maybe it
uses a different font than the other svg-renderers.

Bytheway, I use Inkscape 0.45.1 on WinXp. 


Vincent


Now I've loaded the test.inkscape.plain.svg into my WinXP Inkscape 0.46 (1. 
April 2008), exported it to PNG and it looks nice. The version of inkscape on 
the server is also 0.46. I don't know which libraries the windows version uses, 
but on (gentoo-)linux it looks like this:


media-gfx/inkscape-0.46-r5:
media-libs/freetype-2.3.7
media-libs/libpng-1.2.33
media-libs/lcms-1.17
app-text/poppler-bindings-0.8.7
media-libs/fontconfig-2.6.0-r2
media-gfx/imagemagick-6.4.4.6
x11-libs/pango-1.20.5
x11-libs/libXft-2.1.12
x11-libs/gtk+-2.12.11

So on windows it looks good, on linux it doesn't ...

Hopefully someone can help
Matt


ModernCV example won't work

2009-01-08 Thread Wolfgang Keller
Hello,

I tried to generate a PDF (with TeX Live 2008 on Windows) from the
example for the moderncv class that comes with LyX 1.6.1.

I downloaded the moderncv archive from CTAN, installed it in my
texml-local and ran texhash as indicated in the customizsation
document.

LyX produces the following error message when I hit the PDF button
in the toolbar:

Undefined control sequence

Description:

   \ce
  {IrH5(PPh3)2}.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Any help?

TIA,

Sincerely,

Wolfgang Keller



Key Binding Terminology Changes

2009-01-08 Thread Rich Shepard

  I've upgraded to 1.6.1 and my key bindings no longer work. I know there
are name changes but I haven't found where these are all documented. Please
tell me where I can find the name changes and I'll fix ~/.lyx/bind/*.bind.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


SV: Is Lyx suitable for me?

2009-01-08 Thread Ingar Pareliussen
Hi

I am about to author and prepare a book on photography, which is bound 
to have many... well, photos :).
I will hopefully be using Lyx on an Intel-based Mac and i am wondering 
about two features (that is, if they are available or not):

I published a book with more than 400 pictures this fall, and lyx worked 
like a treat for me. If you haven't used lyx before you should add some
time to learn using it.   

a) Will i be able to have spell checking in Greek with something like 
cocoAspell ?

I'm not on a mac, but lyx supports aspell (along ispell and hspell). 
I guess I would download lyx and test it.

b) Is it possible that, whenever i insert an image, have it 
automatically scaled to fit on the with of the page?

Yes. With the new graphics groups you can easy asign size such as 
% of paperwith. 

c) Is it possible that, whenever i insert an image have Lyx create an 
auto-caption containing the filename of the inserted image?

I would suggest no, eventhough it is possible with a LaTeX macro.
However, I would probably take more time learning LaTeX than copy and 
past the name to the caption every time. 

HTH

Ingar


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski


Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes:

xargs is only needed if you have macros with optional arguments. Of  
course, \newcommand could handle the case with one optional. But,  
what we need in fact is something equivalent to \global\def for  
this case. Is there a way to do this with \newcommand?


Why \global?

I think that \global\newcommand works in any case.


It does? I think I tried and it did not.

A second requirement: the distinction between \newcommand and  
\renewcommand is very fragile. It is far from trivial to say whether a  
macro is redefined in some cases. E.g., in a lyx comment a definition  
will be ignored.


It would be nice to make the case all optional arguments are before  
required ones work with plain \newcommand.


What do you mean? I had a self-made \newcommand implementation that  
could do that. But it is quite large (obviously), and it also look  
strange to put that into the preamble. For that reason we switched to  
xargs instead.


Stefan



Crash Report: 1.6.1 on Linux

2009-01-08 Thread Rich Shepard

  Cue the music, please. This is a repeatable error -- a fatal flaw, in fact
-- with lyx-1.6.1 on Slackware-12.1.

  Open existing document. Select from menu Insert - Insert File - Plain
text join lines (or just Plain text). Instant crash; lyx shuts down.
Invoking from the command line with the -dbg switch tells me only what
features can be debugged, it doesn't run the application in a debugger.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski


Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes:

xargs is only needed if you have macros with optional arguments. Of  
course, \newcommand could handle the case with one optional. But,  
what we need in fact is something equivalent to \global\def for  
this case. Is there a way to do this with \newcommand?


Why \global?


Because without the logic is complicated:

  \newcommand{\foo}{a} \textbf{\renewcommand{\foo}{b} bla} $\foo$

What is printed in the output? What should be shown on screen?

Stefan


Re: Key Binding Terminology Changes

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
 I've upgraded to 1.6.1 and my key bindings no longer work. I know there
 are name changes but I haven't found where these are all documented. Please
 tell me where I can find the name changes and I'll fix ~/.lyx/bind/*.bind.

RELEASE_NOTES.

Jürgen


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
 Open existing document. Select from menu Insert - Insert File - Plain
 text join lines (or just Plain text). Instant crash; lyx shuts down.

Doesn't crash for me. However, the file filters are not correctly set.

 Invoking from the command line with the -dbg switch tells me only what
 features can be debugged, it doesn't run the application in a debugger.

You should run LyX from within gdb. See
http://wiki.lyx.org/FAQ/FurtherHelp#toc4

Jürgen


Re: Key Binding Terminology Changes

2009-01-08 Thread Rich Shepard

On Thu, 8 Jan 2009, Jürgen Spitzmüller wrote:


RELEASE_NOTES.


Jürgen,

  I thought it was some place this this. I build each version using a
SlackBuild script so I don't manually untar the source. That's what I should
have done before writing.

Mea culpa!

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Rich Shepard

On Thu, 8 Jan 2009, Jürgen Spitzmüller wrote:


Doesn't crash for me. However, the file filters are not correctly set.


Jürgen,

  I assume that you refer to the file filters on my system. When I navigate
to Edit - Preferences - File handling I see two choices: Converters and
File Formats. The former has no entry for plain text, the latter seems to
specify conversions for import using ps2text and the like. What should I be
looking for?


You should run LyX from within gdb.


  OK. Here is the output before starting the backtrace. I need to clean
these up first:

LyX: BN_BIND: Unknown LyX function ont-code' [around line 7 of file
~/.lyx/bind/my.bind current token: 'font-code' context: '']

(NB: I checked the RELEASE_NOTES and changed the above to 'font-typewriter'
in ~/.lyx/bind/my.bind, but it's apparently not being seen. In the
following, I've not found the strings in the RELEASE_NOTES so I've no idea
how to fix them.)

LyX: BN_BIND: Unknown LyX function `hfill-insert' [around line 22 of file
~/.lyx/bind/my.bind current token: 'hfill-insert' context: '']
LyX: BN_BIND: Unknown LyX function `find-replace' [around line 33 of file
~/.lyx/bind/my.bind current token: 'find-replace' context: '']
LyX: BN_BIND: Unknown LyX function `layout-paste' [around line 46 of file
~/.lyx/bind/my.bind current token: 'layout-paste' context: '']
LyX: Unknown tag bing' [around line 64 of file ~/.lyx/bind/my.bind current
token: '\bing' context: '']
LyX: BN_BIND: Unknown LyX function `vc-history' [around line 69 of file
~/.lyx/bind/my.bind current token: 'vc-history' context: '']
LyX: Unknown tag ind' [around line 110 of file ~/.lyx/bind/my.bind current
token: 'bind' context: '']
LyX: BN_BIND: Unknown LyX function `reference-goto' [around line 131 of file
~/.lyx/bind/my.bind current token: 'reference-goto' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 151 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `backward-select' [around line 152 of file
~/
.lyx/bind/my.bind current token: 'backward-select' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 153 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `break-paragraph-keep-layout' [around line
177 of file ~/.lyx/bind/my.bind current token: 'break-paragraph-keep-layout'
context: '']
LyX: BN_BIND: Unknown LyX function `ligature-break-insert' [around line 179
of file ~/.lyx/bind/my.bind current token: 'ligature-break-insert' context:
'']
LyX: BN_BIND: Unknown LyX function `protected-space-insert' [around line 180
of file ~/.lyx/bind/my.bind current token: 'protected-space-insert' context:
'']
LyX: BN_BIND: Unknown LyX function nd-of-sentence-period-insert' [around
line 181 of file ~/.lyx/bind/my.bind current token:
'end-of-sentence-period-insert' context: '']

(NB: found the following and replaced the string in the .bind file.)

LyX: BN_BIND: Unknown LyX function `dots-insert' [around line 182 of file
~/.lyx/bind/my.bind current token: 'dots-insert' context: '']
LyX: BN_BIND: Unknown LyX function `layout-copy' [around line 184 of file
~/.lyx/bind/my.bind current token: 'layout-copy' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 188 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `backward-select' [around line 189 of file
~/.lyx/bind/my.bind current token: 'backward-select' context: '']
KeyMap.cpp(227): KeyMap::read: error while reading bind
file:/home/rshepard/.lyx/bind/my.bind
Error: New binding for 'Ctrl+D Del' is overriding old binding...
Menus.cpp(588): Menu warning: menu entries Ordinary Quote|O and
Horizontal Space...|o share the same shortcut.
Menus.cpp(588): Menu warning: menu entries Ordinary Quote|O and
Horizontal Space...|o share the same shortcut.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6f378e0 (LWP 26049)]
qt_clean_filter_list (filt...@0x87bebb4)
at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:70
70  ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: No such
file or directory.
in ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h
Current language:  auto; currently c++

  After cleaning these up, if it still crashes I'll run a backtrace and post
the output.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


LaTeX protocol (Re: ModernCV example won't work)

2009-01-08 Thread Wolfgang Keller
If it helps, here's the LaTeX protocol:

This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
(format=pdflatex 2009.1.8)  8 JAN 2009 20:12 entering extended mode
 %-line parsing enabled.
**modernCV.tex
(./modernCV.tex
LaTeX2e 2005/12/01
Babel v3.8l and hyphenation patterns for english, usenglishmax,
dumylang, noh yphenation, german-x-2008-06-18, ngerman-x-2008-06-18,
ancientgreek, ibycus, ar abic, basque, bulgarian, catalan, pinyin,
coptic, croatian, czech, danish, dutc h, esperanto, estonian, farsi,
finnish, french, galician, german, ngerman, mono greek, greek,
hungarian, icelandic, indonesian, interlingua, irish, italian, la tin,
mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian,
rus sian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
turkish, ukenglis h, ukrainian, uppersorbian, welsh, loaded.

(j:/TeXlive/texmf-dist/tex/latex/moderncv/moderncv.cls
Document Class: moderncv 2008/06/17 v0.7 modern curriculum vitae
document class

(j:/TeXlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
) (j:/TeXlive/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
) (j:/TeXlive/texmf-dist/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)
(j:/TeXlive/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.
(j:/TeXlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2008/07/16 v0.04k Graphics/color for pdfTeX
\gr...@gobject=\count79
)) (j:/TeXlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(j:/TeXlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) (j:/TeXlive/texmf-dist/tex/latex/marvosym/marvosym.sty
Package: marvosym 2006/05/11 v2.1 Martin Vogel's Symbols font
definitions ) (j:/TeXlive/texmf-dist/tex/latex/ltxmisc/url.sty
\Urlmuskip=\muskip10
Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.
) (j:/TeXlive/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2008/08/14 v6.78f Hypertext links for LaTeX
(j:/TeXlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\...@toks@=\toks14
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2007/09/09 v1.3 Switches for detecting VTeX and its
modes (HO) Package ifvtex Info: VTeX not detected.
) (j:/TeXlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2006/08/21 v0.3 Provides ifxetex conditional
) (j:/TeXlive/texmf-dist/tex/latex/oberdiek/hycolor.sty
Package: hycolor 2008/08/01 v1.3 Code for color options of
hyperref/bookmark (H O)
(j:/TeXlive/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty
Package: xcolor-patch 2008/08/01 xcolor patch
))
\...@linkdim=\dimen102
\...@linkcounter=\count80
\...@pagecounter=\count81
(j:/TeXlive/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2008/08/14 v6.78f Hyperref: PDFDocEncoding definition
(HO) ) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)
)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50
or (etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
) (j:/TeXlive/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
) (j:/TeXlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
)
Package hyperref Info: Hyper figures OFF on input line 2876.
Package hyperref Info: Link nesting OFF on input line 2881.
Package hyperref Info: Hyper index ON on input line 2884.
Package hyperref Info: Plain pages OFF on input line 2891.
Package hyperref Info: Backreferencing OFF on input line 2896.
Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 3086.
LaTeX Info: Redefining \url on input line 3272.
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/bitset.sty
Package: bitset 2007/09/28 v1.0 Data type bit set (HO)
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/intcalc.sty
Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/bigintcalc.sty
Package: bigintcalc 2007/11/11 v1.1 Expandable big integer calculations
(HO) 

Re: Is Lyx suitable for me?

2009-01-08 Thread Nick Bell

Panos Katergiathis wrote:
b) Is it possible that, whenever i insert an image, have it 
automatically scaled to fit on the with of the page?


LyX does this nicely - you can set image width to 100 % of column width.
-
Nick Bell
m...@nickbell.org


Re: Is Lyx suitable for me?

2009-01-08 Thread cmiramon
Panos Katergiathis wrote:

 Hello all
 
 I am about to author and prepare a book on photography, which is bound
 to have many... well, photos :).
 I will hopefully be using Lyx on an Intel-based Mac and i am wondering
 about two features (that is, if they are available or not):

If you have a lot of pictures and little text and you want to position your
pictures on a fixed grid, then LyX is maybe not the right tool and you
should consider a DTP program like scribus.

Positioning floats on a page can sometimes be very frustrating in LaTeX
.
Charles



Re: Question on section - properties in the menu bar

2009-01-08 Thread Pavel Sanda
 Dieter Jurzitza schreef:
 Hi Vincent,
 I wouldn't consider / being a good idea when it comes to file access, as 
 is \ not a good idea.

 If I was asked I'd rather suggest to use something like a doubled 
 underscore, say __ as a replacement for \. __ is harmless in any 
 regard, escaping is not complicated.


 As an alternative I could imagine to replace \ by string bcksl_ or 
 something alike.

   
 I did this in http://www.lyx.org/trac/changeset/27977. Now, the icons 
 should be named:

 paragraph-params_backslashalign_block
 ..etc.

wouldn't be better to use some dash e.g. ('\\', _backslash_) for better
parsing of filenames?

pavel


Re: Question on section - properties in the menu bar

2009-01-08 Thread Pavel Sanda
 Dieter Jurzitza schreef:
 Dear listmembers,
 well, obviously my C-programming capabilities were sufficient, though. My 
 first attempt of using fprintf(%s\n, name1); ended with an invalid 
 machinecode message - but patching the debugging-cout messagestring 
 resulted in success.

 So, at least for linux I can confirm that \ in a file name is acceptable 
 (horray, I'm not on M$) and the expected filename was

   paragraph-params_\align_block.png
   
 damn, I'm on M$.

 I'd like to know why the \ is there. All other LFUNs don't have any 
 parameters (except math-commands) with a \.

because those functions were originally intended for dialog - data exchange,
not for manual setting as we use them now...
pavel


Re: I need tips on including SVG images

2009-01-08 Thread Pavel Sanda
 On 2008-12-28, Abdelrazak Younes wrote:
  On 28/12/2008 05:29, Steve Litt wrote:
  On Saturday 20 December 2008 12:30:17 pm Steve Litt wrote:
 
  Today for the first time I was able to incorporate an SVG image
 ...
  Anyway, yesterday I noticed that my .svg graphic pixellated when the
  resulting pdf was viewed at anything besides 100%. 
 ...
  So I converted the svg to a .pdf and included the .pdf in the LyX
  diagram, and the resulting document .pdf looked good at any
  magnification.
 
  Instead of doing that you could make use of the external material inset.
 
 Does the external inset has a in-LyX preview as a graphics inset by
 now?

it has for those insets defined for instant preview (eg xfig).
there are still some glitches i'm trying to work on.
pavel


Re: svn for version control on Mac LyX 1.6.1

2009-01-08 Thread Pavel Sanda
 at the unix prompt. I'd like to trade up to LyX. I see in section 7.4 of 
 the HOWTO that Mac-LyX supports RCS. But there was also a mention (point 
 29) in the LyX 1.6 release notes of support for svn, as well. I'm not sure 
 how to unleash Pavel's functionality, though. Presumably some option needs 
 to be altered to issue commands like svn checkout rather than co.

point 29 also refers to extended manual :) if there is something unclear
we can update the manual...

 Is there a way to use Subversion on Mac LyX 1.6.1? I have Mac OS X 10.5.5.

if svn is possible to run on mac then yes.
pavel


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Jean-Marc Lasgouttes
Stefan Schimanski s...@1stein.org writes:
 I think that \global\newcommand works in any case.

 It does? I think I tried and it did not.

I might be wrong. I cannot find reference to that right now.

 A second requirement: the distinction between \newcommand and
 \renewcommand is very fragile. It is far from trivial to say whether a
 macro is redefined in some cases. E.g., in a lyx comment a definition
 will be ignored.

LyX should skip macro definitions in comments anyway.

 It would be nice to make the case all optional arguments are before
 required ones work with plain \newcommand.

 What do you mean? I had a self-made \newcommand implementation that
 could do that. But it is quite large (obviously), and it also look
 strange to put that into the preamble. For that reason we switched to
 xargs instead.

Sorry, I was mistaken about what newcommand can do. I meant: commands
with one optional argument before the required ones.

JMarc


Re: Outline bug - collapsing when label is added

2009-01-08 Thread Pavel Sanda
 Has anyone been reporting a bug with outline, when option Keep is
 marked and when new label is added, all entries from TOC collapses
 back to main tree? Selecting and unselecting Sort returns to what I
 want.

put it into bugzilla please.
pavel


Re: What is groupId in GraphicsUi

2009-01-08 Thread Pavel Sanda
 Manveru schreef:
 This question is probably to devel list, but I am not subscribed
 there. Probably I can get good answer here to my question.

 In 1.6 there in new option in Graphics Ui: Initialize Group Name. I
 would like to translate it to Polish, but this is not possible without
 having context on mind.

...

 Assigning graphics to groups just means that you'd have to enter a string 
 (the name of a group) in the Initialize group name textfield. Entering 
 this same string into this field of a different graphic would put them in 
 the same group.

 As you do not have to define the groups beforehand, it has probably earned 
 the predicate initialize, but I'm not convinced this is the correct name. 
 A better description would be something like: Assign to group:.

the workflow is meant to be different. use the field initialize to create a new
group and context menu of another picture to join some already existing group.

your procedure will assign, but also destroy the existing group parameters by
the new ones.

 Thanks in advance for any helpful explanation of this new feature.

it is described in manual.
pavel


Re: SV: Some thoughts on lyx 1.6.1

2009-01-08 Thread Pavel Sanda
 Vincent wrote:
 Jürgen Spitzmüller schreef:
 Ingar Pareliussen wrote:
   
 Could it be an idea to have a drop-down box instead, with the different
 groups to choose, and 'add new group' button?
 

 Yes, this would definitely be a better UI.

 Jürgen
   
 as in.. the current UI is b... so if you have some spare time left :).

/me hides :)

more seriously, i have considered the ideas which are proposed now, but there
are many problems, which become aparent in the moment you try to implement
it. for example for the drop down menu you will need to touch the whole
document from _inside_ the graphics dialog while our api tries to keep them
separated and so on. it is doable but i started to have a headache even
thinking about the details. similar problems for new button.

although the proposed tooltips are more readable, they desrcibe different
function.

but i agree that the current situation is not intuitive and without some
reading around user won't get the idea about the context menu. i can add one
sentence about the context menu to the tooltip.

pavel


Re: ModernCV example won't work

2009-01-08 Thread Jürgen Spitzmüller
Wolfgang Keller wrote:
 Description:

    \ce
           {IrH5(PPh3)2}.
 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 misspelled it (e.g., `\hobx'), type `I' and the correct
 spelling (e.g., `I\hbox'). Otherwise just continue,
 and I'll forget about whatever was undefined.

 Any help?

This is a bug in the example bibtex file which is shipped with LyX and 
included in the modernCV example.

One entry uses a non-native command (from the mhchem package), namely \ce.
Just replace the bibliography file by another one, for instance xampl.bib, 
which ships with LaTeX itself.

For the next version of LyX, we will remove the concerned entry.

Jürgen


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
 I assume that you refer to the file filters on my system. 

No, I was referring to the File filter list set by LyX for this file dialog. I 
assume you are building LyX yourself. Could you apply the attached patch and 
check if this helps?

(to apply: put the file in the uppermost folder of the lyx source tree, i.e. 
above src, issue patch -p0  x.diff and then rebuild with make).

    After cleaning these up, if it still crashes I'll run a backtrace and
 post the output.

Yes, please.

 Thanks,

 Rich

Jürgen
Index: src/frontends/qt4/GuiView.cpp
===
--- src/frontends/qt4/GuiView.cpp	(Revision 28032)
+++ src/frontends/qt4/GuiView.cpp	(Arbeitskopie)
@@ -1626,7 +1626,7 @@
 		LFUN_FILE_INSERT_PLAINTEXT_PARA : LFUN_FILE_INSERT_PLAINTEXT));
 
 	FileDialog::Result result = dlg.open(toqstr(bv-buffer().filePath()),
-		QStringList());
+		QStringList(qt_(All Files (*;
 
 	if (result.first == FileDialog::Later)
 		return;


Re: What is groupId in GraphicsUi

2009-01-08 Thread Manveru
2009/1/9 Pavel Sanda sa...@lyx.org:
 Manveru schreef:
 This question is probably to devel list, but I am not subscribed
 there. Probably I can get good answer here to my question.

 In 1.6 there in new option in Graphics Ui: Initialize Group Name. I
 would like to translate it to Polish, but this is not possible without
 having context on mind.

 ...

 Assigning graphics to groups just means that you'd have to enter a string
 (the name of a group) in the Initialize group name textfield. Entering
 this same string into this field of a different graphic would put them in
 the same group.

 As you do not have to define the groups beforehand, it has probably earned
 the predicate initialize, but I'm not convinced this is the correct name.
 A better description would be something like: Assign to group:.

 the workflow is meant to be different. use the field initialize to create a 
 new
 group and context menu of another picture to join some already existing group.

 your procedure will assign, but also destroy the existing group parameters by
 the new ones.

 Thanks in advance for any helpful explanation of this new feature.

 it is described in manual.

I hadn't read this in manual, but from your explanations it seem to be
very user not-friendly feature. It is not natural to users entering
new name in that field every time they want new group. Without reading
the manual, people like I who mostly not read manuals at all cannot
understand how this feature works. But that is my private opinion.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: How can I find out, if XeTex is installed on OSX?

2009-01-08 Thread jezZiFeR
On Wed, Jan 7, 2009 at 4:42 PM, jezZiFeR   
wrote:

I thought I had installed XeTex with MacTex, but when I followed the
instructions of the wiki  I don´t get the mentioned new item under  
the View
menu. When I try to complile via the pdf-button, I get the message  
"LaTeX

Error: *** this package currently works only with XeTeX ***".

Could it be, that it is installed, but I did wrong something else?


This error message doesn't sounds like you're trying to typeset a
XeTeX specific file using some variety of LaTeX instead. So I don't
think the problem is with your installation of XeTeX.

Well, how could I find out, if it is installed, and if not: What is  
the

easiest way to get it installed?


XeTeX is installed by default with the latest MacTeX. You can test it
by entering in the Terminal:

xetex --version

and it should tell you what version of XeTeX you have; if you don't
have it, it'll say "command not found".


Thanks, XeTex seems to be properly installed, this is the version:

XeTeX 3.1415926-2.2-0.999.6 (Web2C 7.5.7)
kpathsea version 3.5.7


I tried to install with the 0.995-version
of this site:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi_id=xetex_download
but it didn´t work, I got the message: "preflight script for xetex"


Not sure what that message means on its own. But use MacTeX to install
a more current version of XeTeX if needed.


I don´t know how that works. The MacTex-installer I have is from  
August 2008, and obviously too old. Should I download the whole  
installer? The problm is, that when I run the installer I do not get  
the possibility to install XeTex separately. There is "Ghostscript  
8.62", "GUI Applications", "imageMagickConvert", some fonts, and  
"TexLive". On this site

http://www.ctan.org/tex-archive/systems/mac/mactex/
I find various files, but can´t figure out, which one installs XeTex.

Thank you, best*
Jess

Re: problem running lyx on windows

2009-01-08 Thread Firat Bilgel
Hold down the Windows key (the one with an icon that looks a little like
a flag rippling in a breeze) and hit R.  That should bring up the Run
menu.  Type 'cmd' without the quotes and hit Enter or click Ok.  You
should now have a window showing a command prompt.  Type 'latex
--version' (again without the quotes) and hit Enter.  If the MiKTeX bin
directory is on your system command path, you should get a few lines of
output, the first of which should look something like

MiKTeX-pdfTeX 2.7.3147 (1.40.9) (MiKTeX 2.7).

The central idea is that programs on your command path can be run from
anywhere, without specifying the path to them.  Programs not on your
command path have to be started by specifying the path (or clicking an
icon that contains the path).  When LyX tries to configure itself the
first time, it does not necessarily know where MiKTeX is installed (or
even if MiKTeX is installed), so it tries to run latex.exe to see if it
exists.  If MiKTeX is not on the command path, Windows will not be able
to run it (since LyX could not specify the directory), and LyX will
think MiKTeX is not installed.

If this is indeed the problem, let us know, and someone will walk you
through the steps of adding MiKTeX to the command path.

/Paul
Firat Bilgel wrote:
I opened the command prompt and under C:\>, I typed 'latex--version'
(without the quotes). The program says 'latex--version' is not recognized as
a file or program.


Re: How can I find out, if XeTex is installed on OSX?

2009-01-08 Thread Bennett Helm
On Thu, Jan 8, 2009 at 4:30 AM, jezZiFeR  wrote:
>>> I tried to install with the 0.995-version
>>> of this site:
>>>
>>> http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi_id=xetex_download
>>> but it didn´t work, I got the message: "preflight script for xetex"
>>
>> Not sure what that message means on its own. But use MacTeX to install
>> a more current version of XeTeX if needed.
>
> I don´t know how that works. The MacTex-installer I have is from August
> 2008, and obviously too old. Should I download the whole installer? The
> problm is, that when I run the installer I do not get the possibility to
> install XeTex separately. There is "Ghostscript 8.62", "GUI Applications",
> "imageMagickConvert", some fonts, and "TexLive". On this site
> http://www.ctan.org/tex-archive/systems/mac/mactex/
> I find various files, but can´t figure out, which one installs XeTex.

For updating MacTeX, see:

http://www.tug.org/mactex/tlmgr.html

(Your version of XeTeX is up to date.)

Bennett


Re: Is Lyx suitable for me?

2009-01-08 Thread Nikos Alexandris
On Thu, 2009-01-08 at 02:12 +0200, Panos Katergiathis wrote:
> Hello all

Γειά σου Πάνο.

> I am about to author and prepare a book on photography, which is bound 
> to have many... well, photos :).
> I will hopefully be using Lyx on an Intel-based Mac and i am wondering 
> about two features (that is, if they are available or not):
> 
> a) Will i be able to have spell checking in Greek with something like 
> cocoAspell ?
Which operating system do you work with? Under (Ubuntu-)Linux I have
"aspell" installed and it works just fine. You just have to set language
"Greek" (of course) in the respective field under Document settings.

Cheers, Nikos




Re: lyx2pdf

2009-01-08 Thread Matthias Coy

Hi there,

still not quite working :/

here is my little testscript:

http://pastebin.mozilla.org/608410

and here some output:

While the original SVG (generated by Visual Paradigm UML)
http://matthiascoy.de/temp/test.original.svg

looks kind of awkward in Firefox, the "plain svg"

http://matthiascoy.de/temp/test.inkscape.plain.svg

looks very good. So I took that to generate PDF

http://matthiascoy.de/temp/test.inkscape.pdf

and, as you can see, it looks DIFFERENT. Now the PNG/EPS/PDF looks all the same, 
almost good, but the text inside those UML classes is a little to big.


Hopefully some knows what the problem is :/

Regards
Matt


Vincent van Ravesteijn schrieb:

Matthias Coy schreef:

Hi again,

I found out, that these two files (or at least one of them) work:

~/.lyx/lyxrc.dist
~/.lyx/preferences

I put in them the following lines:

\format "SVG" "svg" "svg" "" "inkview" "inkscape" "vector"
\converter "SVG" "eps" "inkscape -F -D -z $$i --export-eps=$$o" ""
\converter "SVG" "png" "inkscape -D -z $$i --export-png=$$o" ""
\converter "SVG" "pdf" "inkscape -D -z $$i --export-pdf=$$o" ""

and the quality is much better. Now I have the problem, that the 
pictures are looking "strange".


This is how it should look (svg opened with inkscape):
http://img187.imageshack.us/my.php?image=withininkscapevd0.png

This is how the PDF export shows it:
http://img523.imageshack.us/my.php?image=pdfexportoj4.png

And here it doesn't matter if "lyx -e pdf[2-3]?", I've tried them all. 
What strange behaviour is this?


You probably want to add the option -T or --export-text-to-path to the 
inkscape parameter list.


With this option, the text is rendered as a part of the drawing. Without 
this option, the text uses the latex/postscript font and this might have 
a different size as shown in Inkscape. This is useful when you want to 
replace the text by latex text/math with psfrag.


Vincent






RE: lyx2pdf

2009-01-08 Thread Vincent van Ravesteijn - TNW
 

>From: Matthias Coy [mailto:matthias@gmx.de] 
>
>Hi there,
>
>still not quite working :/
>
>
>
>Now the PNG/EPS/PDF looks all the same, almost good, but the
>text inside those UML classes is a little to big.

Well, if I convert your plain svg with Inkscape the same as you do, my
EPS looks good, while yours (found it on your server) doesn't. 

Can you run Inkscape with a GUI and see how it renders it ? Maybe it
uses a different font than the other svg-renderers.

Bytheway, I use Inkscape 0.45.1 on WinXp. 

Vincent


Re: lyx2pdf

2009-01-08 Thread Matthias Coy

Hi Vincent,

Vincent van Ravesteijn - TNW schrieb:
 

From: Matthias Coy [mailto:matthias@gmx.de] 


Hi there,

still not quite working :/



Now the PNG/EPS/PDF looks all the same, almost good, but the
text inside those UML classes is a little to big.


Well, if I convert your plain svg with Inkscape the same as you do, my
EPS looks good, while yours (found it on your server) doesn't. 


Can you run Inkscape with a GUI and see how it renders it ? Maybe it
uses a different font than the other svg-renderers.

Bytheway, I use Inkscape 0.45.1 on WinXp. 


Vincent


Now I've loaded the "test.inkscape.plain.svg" into my WinXP Inkscape 0.46 (1. 
April 2008), exported it to PNG and it looks nice. The version of inkscape on 
the server is also 0.46. I don't know which libraries the windows version uses, 
but on (gentoo-)linux it looks like this:


media-gfx/inkscape-0.46-r5:
media-libs/freetype-2.3.7
media-libs/libpng-1.2.33
media-libs/lcms-1.17
app-text/poppler-bindings-0.8.7
media-libs/fontconfig-2.6.0-r2
media-gfx/imagemagick-6.4.4.6
x11-libs/pango-1.20.5
x11-libs/libXft-2.1.12
x11-libs/gtk+-2.12.11

So on windows it looks good, on linux it doesn't ...

Hopefully someone can help
Matt


ModernCV example won't work

2009-01-08 Thread Wolfgang Keller
Hello,

I tried to generate a PDF (with TeX Live 2008 on Windows) from the
example for the moderncv class that comes with LyX 1.6.1.

I downloaded the moderncv archive from CTAN, installed it in my
texml-local and ran texhash as indicated in the "customizsation"
document.

LyX produces the following error message when I hit the "PDF" button
in the toolbar:

Undefined control sequence

Description:

   \ce
  {IrH5(PPh3)2}.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Any help?

TIA,

Sincerely,

Wolfgang Keller



Key Binding Terminology Changes

2009-01-08 Thread Rich Shepard

  I've upgraded to 1.6.1 and my key bindings no longer work. I know there
are name changes but I haven't found where these are all documented. Please
tell me where I can find the name changes and I'll fix ~/.lyx/bind/*.bind.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


SV: Is Lyx suitable for me?

2009-01-08 Thread Ingar Pareliussen
Hi

>I am about to author and prepare a book on photography, which is bound 
>to have many... well, photos :).
>I will hopefully be using Lyx on an Intel-based Mac and i am wondering 
>about two features (that is, if they are available or not):

I published a book with more than 400 pictures this fall, and lyx worked 
like a treat for me. If you haven't used lyx before you should add some
time to learn using it.   

>a) Will i be able to have spell checking in Greek with something like 
>cocoAspell ?

I'm not on a mac, but lyx supports aspell (along ispell and hspell). 
I guess I would download lyx and test it.

>b) Is it possible that, whenever i insert an image, have it 
>automatically scaled to fit on the with of the "page"?

Yes. With the new graphics groups you can easy asign size such as 
% of paperwith. 

c) Is it possible that, whenever i insert an image have Lyx create an 
auto-caption containing the filename of the inserted image?

I would suggest no, eventhough it is possible with a LaTeX macro.
However, I would probably take more time learning LaTeX than copy and 
past the name to the caption every time. 

HTH

Ingar


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski


Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes:

xargs is only needed if you have macros with optional arguments. Of  
course, \newcommand could handle the case with one optional. But,  
what we need in fact is something equivalent to \global\def for  
this case. Is there a way to do this with \newcommand?


Why \global?

I think that \global\newcommand works in any case.


It does? I think I tried and it did not.

A second requirement: the distinction between \newcommand and  
\renewcommand is very fragile. It is far from trivial to say whether a  
macro is redefined in some cases. E.g., in a lyx comment a definition  
will be ignored.


It would be nice to make the case "all optional arguments are before  
required ones" work with plain \newcommand.


What do you mean? I had a self-made \newcommand implementation that  
could do that. But it is quite large (obviously), and it also look  
strange to put that into the preamble. For that reason we switched to  
xargs instead.


Stefan



Crash Report: 1.6.1 on Linux

2009-01-08 Thread Rich Shepard

  Cue the music, please. This is a repeatable error -- a fatal flaw, in fact
-- with lyx-1.6.1 on Slackware-12.1.

  Open existing document. Select from menu Insert -> Insert File -> Plain
text join lines (or just Plain text). Instant crash; lyx shuts down.
Invoking from the command line with the -dbg switch tells me only what
features can be debugged, it doesn't run the application in a debugger.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Stefan Schimanski


Am 07.01.2009 um 22:45 schrieb Jean-Marc Lasgouttes:

xargs is only needed if you have macros with optional arguments. Of  
course, \newcommand could handle the case with one optional. But,  
what we need in fact is something equivalent to \global\def for  
this case. Is there a way to do this with \newcommand?


Why \global?


Because without the logic is complicated:

  \newcommand{\foo}{a} \textbf{\renewcommand{\foo}{b} bla} $\foo$

What is printed in the output? What should be shown on screen?

Stefan


Re: Key Binding Terminology Changes

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> I've upgraded to 1.6.1 and my key bindings no longer work. I know there
> are name changes but I haven't found where these are all documented. Please
> tell me where I can find the name changes and I'll fix ~/.lyx/bind/*.bind.

RELEASE_NOTES.

Jürgen


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> Open existing document. Select from menu Insert -> Insert File -> Plain
> text join lines (or just Plain text). Instant crash; lyx shuts down.

Doesn't crash for me. However, the file filters are not correctly set.

> Invoking from the command line with the -dbg switch tells me only what
> features can be debugged, it doesn't run the application in a debugger.

You should run LyX from within gdb. See
http://wiki.lyx.org/FAQ/FurtherHelp#toc4

Jürgen


Re: Key Binding Terminology Changes

2009-01-08 Thread Rich Shepard

On Thu, 8 Jan 2009, Jürgen Spitzmüller wrote:


RELEASE_NOTES.


Jürgen,

  I thought it was some place this this. I build each version using a
SlackBuild script so I don't manually untar the source. That's what I should
have done before writing.

Mea culpa!

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Rich Shepard

On Thu, 8 Jan 2009, Jürgen Spitzmüller wrote:


Doesn't crash for me. However, the file filters are not correctly set.


Jürgen,

  I assume that you refer to the file filters on my system. When I navigate
to Edit -> Preferences -> File handling I see two choices: Converters and
File Formats. The former has no entry for plain text, the latter seems to
specify conversions for import using ps2text and the like. What should I be
looking for?


You should run LyX from within gdb.


  OK. Here is the output before starting the backtrace. I need to clean
these up first:

LyX: BN_BIND: Unknown LyX function ont-code"' [around line 7 of file
~/.lyx/bind/my.bind current token: 'font-code"' context: '']

(NB: I checked the RELEASE_NOTES and changed the above to 'font-typewriter'
in ~/.lyx/bind/my.bind, but it's apparently not being seen. In the
following, I've not found the strings in the RELEASE_NOTES so I've no idea
how to fix them.)

LyX: BN_BIND: Unknown LyX function `hfill-insert' [around line 22 of file
~/.lyx/bind/my.bind current token: 'hfill-insert' context: '']
LyX: BN_BIND: Unknown LyX function `find-replace' [around line 33 of file
~/.lyx/bind/my.bind current token: 'find-replace' context: '']
LyX: BN_BIND: Unknown LyX function `layout-paste' [around line 46 of file
~/.lyx/bind/my.bind current token: 'layout-paste' context: '']
LyX: Unknown tag bing' [around line 64 of file ~/.lyx/bind/my.bind current
token: '\bing' context: '']
LyX: BN_BIND: Unknown LyX function `vc-history' [around line 69 of file
~/.lyx/bind/my.bind current token: 'vc-history' context: '']
LyX: Unknown tag ind' [around line 110 of file ~/.lyx/bind/my.bind current
token: 'bind' context: '']
LyX: BN_BIND: Unknown LyX function `reference-goto' [around line 131 of file
~/.lyx/bind/my.bind current token: 'reference-goto' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 151 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `backward-select' [around line 152 of file
~/
.lyx/bind/my.bind current token: 'backward-select' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 153 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `break-paragraph-keep-layout' [around line
177 of file ~/.lyx/bind/my.bind current token: 'break-paragraph-keep-layout'
context: '']
LyX: BN_BIND: Unknown LyX function `ligature-break-insert' [around line 179
of file ~/.lyx/bind/my.bind current token: 'ligature-break-insert' context:
'']
LyX: BN_BIND: Unknown LyX function `protected-space-insert' [around line 180
of file ~/.lyx/bind/my.bind current token: 'protected-space-insert' context:
'']
LyX: BN_BIND: Unknown LyX function nd-of-sentence-period-insert' [around
line 181 of file ~/.lyx/bind/my.bind current token:
'end-of-sentence-period-insert' context: '']

(NB: found the following and replaced the string in the .bind file.)

LyX: BN_BIND: Unknown LyX function `dots-insert' [around line 182 of file
~/.lyx/bind/my.bind current token: 'dots-insert' context: '']
LyX: BN_BIND: Unknown LyX function `layout-copy' [around line 184 of file
~/.lyx/bind/my.bind current token: 'layout-copy' context: '']
LyX: BN_BIND: Unknown LyX function `forward-select' [around line 188 of file
~/.lyx/bind/my.bind current token: 'forward-select' context: '']
LyX: BN_BIND: Unknown LyX function `backward-select' [around line 189 of file
~/.lyx/bind/my.bind current token: 'backward-select' context: '']
KeyMap.cpp(227): KeyMap::read: error while reading bind
file:/home/rshepard/.lyx/bind/my.bind
Error: New binding for 'Ctrl+D Del' is overriding old binding...
Menus.cpp(588): Menu warning: menu entries "Ordinary Quote|O" and
"Horizontal Space...|o" share the same shortcut.
Menus.cpp(588): Menu warning: menu entries "Ordinary Quote|O" and
"Horizontal Space...|o" share the same shortcut.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6f378e0 (LWP 26049)]
qt_clean_filter_list (filt...@0x87bebb4)
at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:70
70  ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: No such
file or directory.
in ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h
Current language:  auto; currently c++

  After cleaning these up, if it still crashes I'll run a backtrace and post
the output.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


LaTeX protocol (Re: ModernCV example won't work)

2009-01-08 Thread Wolfgang Keller
If it helps, here's the LaTeX protocol:

This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
(format=pdflatex 2009.1.8)  8 JAN 2009 20:12 entering extended mode
 %&-line parsing enabled.
**modernCV.tex
(./modernCV.tex
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax,
dumylang, noh yphenation, german-x-2008-06-18, ngerman-x-2008-06-18,
ancientgreek, ibycus, ar abic, basque, bulgarian, catalan, pinyin,
coptic, croatian, czech, danish, dutc h, esperanto, estonian, farsi,
finnish, french, galician, german, ngerman, mono greek, greek,
hungarian, icelandic, indonesian, interlingua, irish, italian, la tin,
mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian,
rus sian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
turkish, ukenglis h, ukrainian, uppersorbian, welsh, loaded.

(j:/TeXlive/texmf-dist/tex/latex/moderncv/moderncv.cls
Document Class: moderncv 2008/06/17 v0.7 modern curriculum vitae
document class

(j:/TeXlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
) (j:/TeXlive/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2007/12/12 v1.6 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
) (j:/TeXlive/texmf-dist/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)
(j:/TeXlive/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.
(j:/TeXlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2008/07/16 v0.04k Graphics/color for pdfTeX
\gr...@gobject=\count79
)) (j:/TeXlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(j:/TeXlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) (j:/TeXlive/texmf-dist/tex/latex/marvosym/marvosym.sty
Package: marvosym 2006/05/11 v2.1 Martin Vogel's Symbols font
definitions ) (j:/TeXlive/texmf-dist/tex/latex/ltxmisc/url.sty
\Urlmuskip=\muskip10
Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.
) (j:/TeXlive/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2008/08/14 v6.78f Hypertext links for LaTeX
(j:/TeXlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\...@toks@=\toks14
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2007/09/09 v1.3 Switches for detecting VTeX and its
modes (HO) Package ifvtex Info: VTeX not detected.
) (j:/TeXlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2006/08/21 v0.3 Provides ifxetex conditional
) (j:/TeXlive/texmf-dist/tex/latex/oberdiek/hycolor.sty
Package: hycolor 2008/08/01 v1.3 Code for color options of
hyperref/bookmark (H O)
(j:/TeXlive/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty
Package: xcolor-patch 2008/08/01 xcolor patch
))
\...@linkdim=\dimen102
\...@linkcounter=\count80
\...@pagecounter=\count81
(j:/TeXlive/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2008/08/14 v6.78f Hyperref: PDFDocEncoding definition
(HO) ) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)
)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50
or (etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
) (j:/TeXlive/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
) (j:/TeXlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
)
Package hyperref Info: Hyper figures OFF on input line 2876.
Package hyperref Info: Link nesting OFF on input line 2881.
Package hyperref Info: Hyper index ON on input line 2884.
Package hyperref Info: Plain pages OFF on input line 2891.
Package hyperref Info: Backreferencing OFF on input line 2896.
Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 3086.
LaTeX Info: Redefining \url on input line 3272.
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/bitset.sty
Package: bitset 2007/09/28 v1.0 Data type bit set (HO)
(j:/TeXlive/texmf-dist/tex/generic/oberdiek/intcalc.sty
Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
) (j:/TeXlive/texmf-dist/tex/generic/oberdiek/bigintcalc.sty
Package: bigintcalc 2007/11/11 v1.1 Expandable big integer calculations
(HO) 

Re: Is Lyx suitable for me?

2009-01-08 Thread Nick Bell

Panos Katergiathis wrote:
b) Is it possible that, whenever i insert an image, have it 
automatically scaled to fit on the with of the "page"?


LyX does this nicely - you can set image width to 100 % of column width.
-
Nick Bell
m...@nickbell.org


Re: Is Lyx suitable for me?

2009-01-08 Thread cmiramon
Panos Katergiathis wrote:

> Hello all
> 
> I am about to author and prepare a book on photography, which is bound
> to have many... well, photos :).
> I will hopefully be using Lyx on an Intel-based Mac and i am wondering
> about two features (that is, if they are available or not):

If you have a lot of pictures and little text and you want to position your
pictures on a fixed grid, then LyX is maybe not the right tool and you
should consider a DTP program like scribus.

Positioning floats on a page can sometimes be very frustrating in LaTeX
.
Charles



Re: Question on section - properties in the menu bar

2009-01-08 Thread Pavel Sanda
> Dieter Jurzitza schreef:
>> Hi Vincent,
>> I wouldn't consider "/" being a good idea when it comes to file access, as 
>> is "\" not a good idea.
>>
>> If I was asked I'd rather suggest to use something like a doubled 
>> underscore, say "__" as a replacement for "\". "__" is harmless in any 
>> regard, escaping is not complicated.
>>
>>
>> As an alternative I could imagine to replace "\" by string "bcksl_" or 
>> something alike.
>>
>>   
> I did this in http://www.lyx.org/trac/changeset/27977. Now, the icons 
> should be named:
>
> paragraph-params_backslashalign_block
> ..etc.

wouldn't be better to use some dash e.g. ('\\', "_backslash_") for better
parsing of filenames?

pavel


Re: Question on section - properties in the menu bar

2009-01-08 Thread Pavel Sanda
> Dieter Jurzitza schreef:
>> Dear listmembers,
>> well, obviously my C-programming capabilities were sufficient, though. My 
>> first attempt of using "fprintf("%s\n", name1); ended with an "invalid 
>> machinecode" message - but patching the debugging-cout messagestring 
>> resulted in success.
>>
>> So, at least for linux I can confirm that "\" in a file name is acceptable 
>> (horray, I'm not on M$) and the expected filename was
>>
>>   "paragraph-params_\align_block.png"
>>   
> damn, I'm on M$.
>
> I'd like to know why the "\" is there. All other LFUNs don't have any 
> parameters (except math-commands) with a "\".

because those functions were originally intended for dialog <-> data exchange,
not for manual setting as we use them now...
pavel


Re: I need tips on including SVG images

2009-01-08 Thread Pavel Sanda
> On 2008-12-28, Abdelrazak Younes wrote:
> > On 28/12/2008 05:29, Steve Litt wrote:
> >> On Saturday 20 December 2008 12:30:17 pm Steve Litt wrote:
> 
> >>> Today for the first time I was able to incorporate an SVG image
> ...
> >> Anyway, yesterday I noticed that my .svg graphic pixellated when the
> >> resulting pdf was viewed at anything besides 100%. 
> ...
> >> So I converted the svg to a .pdf and included the .pdf in the LyX
> >> diagram, and the resulting document .pdf looked good at any
> >> magnification.
> 
> > Instead of doing that you could make use of the external material inset.
> 
> Does the external inset has a "in-LyX preview" as a graphics inset by
> now?

it has for those insets defined for instant preview (eg xfig).
there are still some glitches i'm trying to work on.
pavel


Re: svn for version control on Mac LyX 1.6.1

2009-01-08 Thread Pavel Sanda
> at the unix prompt. I'd like to trade up to LyX. I see in section 7.4 of 
> the HOWTO that Mac-LyX supports RCS. But there was also a mention (point 
> 29) in the LyX 1.6 release notes of support for svn, as well. I'm not sure 
> how to unleash Pavel's functionality, though. Presumably some option needs 
> to be altered to issue commands like "svn checkout" rather than "co".

point 29 also refers to extended manual :) if there is something unclear
we can update the manual...

> Is there a way to use Subversion on Mac LyX 1.6.1? I have Mac OS X 10.5.5.

if svn is possible to run on mac then yes.
pavel


Re: Macros with optional arguments - LyX 1.6.1

2009-01-08 Thread Jean-Marc Lasgouttes
Stefan Schimanski  writes:
>> I think that \global\newcommand works in any case.
>
> It does? I think I tried and it did not.

I might be wrong. I cannot find reference to that right now.

> A second requirement: the distinction between \newcommand and
> \renewcommand is very fragile. It is far from trivial to say whether a
> macro is redefined in some cases. E.g., in a lyx comment a definition
> will be ignored.

LyX should skip macro definitions in comments anyway.

>> It would be nice to make the case "all optional arguments are before
>> required ones" work with plain \newcommand.
>
> What do you mean? I had a self-made \newcommand implementation that
> could do that. But it is quite large (obviously), and it also look
> strange to put that into the preamble. For that reason we switched to
> xargs instead.

Sorry, I was mistaken about what newcommand can do. I meant: "commands
with one optional argument before the required ones".

JMarc


Re: Outline bug - collapsing when label is added

2009-01-08 Thread Pavel Sanda
> Has anyone been reporting a bug with outline, when option "Keep" is
> marked and when new label is added, all entries from TOC collapses
> back to main tree? Selecting and unselecting "Sort" returns to what I
> want.

put it into bugzilla please.
pavel


Re: What is groupId in GraphicsUi

2009-01-08 Thread Pavel Sanda
> Manveru schreef:
>> This question is probably to devel list, but I am not subscribed
>> there. Probably I can get good answer here to my question.
>>
>> In 1.6 there in new option in Graphics Ui: "Initialize Group Name". I
>> would like to translate it to Polish, but this is not possible without
>> having context on mind.

...

> Assigning graphics to groups just means that you'd have to enter a string 
> (the name of a group) in the "Initialize group name" textfield. Entering 
> this same string into this field of a different graphic would put them in 
> the same group.
>
> As you do not have to define the groups beforehand, it has probably earned 
> the predicate "initialize", but I'm not convinced this is the correct name. 
> A better description would be something like: "Assign to group:".

the workflow is meant to be different. use the field initialize to create a new
group and context menu of another picture to join some already existing group.

your procedure will assign, but also destroy the existing group parameters by
the new ones.

>> Thanks in advance for any helpful explanation of this new feature.

it is described in manual.
pavel


Re: SV: Some thoughts on lyx 1.6.1

2009-01-08 Thread Pavel Sanda
> Vincent wrote:
>> Jürgen Spitzmüller schreef:
>>> Ingar Pareliussen wrote:
>>>   
>>> Could it be an idea to have a drop-down box instead, with the different
>>> groups to choose, and 'add new group' button?
>>> 
>>
>> Yes, this would definitely be a better UI.
>>
>> Jürgen
>>   
> as in.. the current UI is b... so if you have some spare time left :).

/me hides :)

more seriously, i have considered the ideas which are proposed now, but there
are many problems, which become aparent in the moment you try to implement
it. for example for the drop down menu you will need to touch the whole
document from _inside_ the graphics dialog while our api tries to keep them
separated and so on. it is doable but i started to have a headache even
thinking about the details. similar problems for new button.

although the proposed tooltips are more readable, they desrcibe different
function.

but i agree that the current situation is not intuitive and without some
reading around user won't get the idea about the context menu. i can add one
sentence about the context menu to the tooltip.

pavel


Re: ModernCV example won't work

2009-01-08 Thread Jürgen Spitzmüller
Wolfgang Keller wrote:
> Description:
>
>    \ce
>           {IrH5(PPh3)2}.
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., `\hobx'), type `I' and the correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
>
> Any help?

This is a bug in the example bibtex file which is shipped with LyX and 
included in the modernCV example.

One entry uses a non-native command (from the mhchem package), namely \ce.
Just replace the bibliography file by another one, for instance xampl.bib, 
which ships with LaTeX itself.

For the next version of LyX, we will remove the concerned entry.

Jürgen


Re: Crash Report: 1.6.1 on Linux

2009-01-08 Thread Jürgen Spitzmüller
Rich Shepard wrote:
> I assume that you refer to the file filters on my system. 

No, I was referring to the File filter list set by LyX for this file dialog. I 
assume you are building LyX yourself. Could you apply the attached patch and 
check if this helps?

(to apply: put the file in the uppermost folder of the lyx source tree, i.e. 
above "src", issue "patch -p0 < x.diff" and then rebuild with "make").

>    After cleaning these up, if it still crashes I'll run a backtrace and
> post the output.

Yes, please.

> Thanks,
>
> Rich

Jürgen
Index: src/frontends/qt4/GuiView.cpp
===
--- src/frontends/qt4/GuiView.cpp	(Revision 28032)
+++ src/frontends/qt4/GuiView.cpp	(Arbeitskopie)
@@ -1626,7 +1626,7 @@
 		LFUN_FILE_INSERT_PLAINTEXT_PARA : LFUN_FILE_INSERT_PLAINTEXT));
 
 	FileDialog::Result result = dlg.open(toqstr(bv->buffer().filePath()),
-		QStringList());
+		QStringList(qt_("All Files (*)")));
 
 	if (result.first == FileDialog::Later)
 		return;


Re: What is groupId in GraphicsUi

2009-01-08 Thread Manveru
2009/1/9 Pavel Sanda :
>> Manveru schreef:
>>> This question is probably to devel list, but I am not subscribed
>>> there. Probably I can get good answer here to my question.
>>>
>>> In 1.6 there in new option in Graphics Ui: "Initialize Group Name". I
>>> would like to translate it to Polish, but this is not possible without
>>> having context on mind.
>
> ...
>
>> Assigning graphics to groups just means that you'd have to enter a string
>> (the name of a group) in the "Initialize group name" textfield. Entering
>> this same string into this field of a different graphic would put them in
>> the same group.
>>
>> As you do not have to define the groups beforehand, it has probably earned
>> the predicate "initialize", but I'm not convinced this is the correct name.
>> A better description would be something like: "Assign to group:".
>
> the workflow is meant to be different. use the field initialize to create a 
> new
> group and context menu of another picture to join some already existing group.
>
> your procedure will assign, but also destroy the existing group parameters by
> the new ones.
>
>>> Thanks in advance for any helpful explanation of this new feature.
>
> it is described in manual.

I hadn't read this in manual, but from your explanations it seem to be
very user not-friendly feature. It is not natural to users entering
new name in that field every time they want new group. Without reading
the manual, people like I who mostly not read manuals at all cannot
understand how this feature works. But that is my private opinion.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl