Re: Thesis margins 1.5 left and 1 elsewhere

2011-05-24 Thread Julien Rioux

On 24/05/2011 1:32 AM, Eisa Ayed wrote:

My school requires that I've 1.5 inch margin on the left side and 1 inch in all 
other margins.
I checked  Document-Settings-Page Margins.

There is entry listed for left margin.
How can I possibly do that in Lyx version 1.6.8 ?

Eisa.




In single-sided documents, Inner is the same as Left.

--
Julien



Re: biblatex gui

2011-05-24 Thread Dominik Waßenhoven
Louis Turk wrote:

 Am I correct in thinking that JabRef does not support biblatex?

No, you can add any field you like to JabRef via Options  Customize
entry types and Options  Set up general fields.

Regards,
Dominik.-



Re: biblatex gui

2011-05-24 Thread Julio Rojas
Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
like booktitle can be introduced by hand in the tab Bibtex Source of
each reference. Or you can simply customize entry types to Biblatex format
going to Options - Customize entry types.

I hope this helps you. Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 7:56 AM, Louis Turk l...@dayspringpublisher.comwrote:

  Hi fellow Lyxers,

 Am I correct in thinking that JabRef does not support biblatex?

 The only program I've found that supports entering biblatex citations into
 .bib files is Synaptic. Are there others?

 Is there an emacs mode for doing this?

 Lou




Re: biblatex-chicago

2011-05-24 Thread Julio Rojas
Dear Louis, this command is not Biblatex's, but Bibtex's. The style of your
bibliography is defined in the preamble. Check page 2 of the
Biblatex-Chicago manual:
http://ctan.mines-albi.fr/macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.pdf

You should also read Biblatex's Manual, as it seems you are not defining in
your preamble the name of your bib file.

Good luck. Regards.

-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 7:17 AM, Louis Turk l...@dayspringpublisher.comwrote:

 Hi everyone,

 I'm using Lyx 2.0. I have an English book which uses a few Hebrew and
 Greek words. I need to use biblatex-chicago footnote citations with this
 book.

 I've installed:

 biblatex
 biblatex-biber
 biblatex-chicago

 Document class: book (Memoir)

 Modules: Biblatex-citation-styles

 Language: English USA
Encoding: Unicode (XeTex)(utf8)
Language package: Always Babel

 Bibliography:
Citation style: Natbib Author-year
Bibliograpy generation:
Processor: biber
Options: none

 Output: Default output format: PDF (XeTex)

 Preamble:

 \usepackage[hebrew,greek,english]{babel}
 \usepackage{fontspec}
 \usepackage{csquotes}
 \usepackage[backend=biber]{biblatex}
 \chapterstyle{bianchi}
 \setlength{\hoffset}{0.5 in}
 \setlength{\voffset}{0.3 in}
 \RequirePackage{microtype}
 \renewenvironment{quote}%
   {\sffamily\small\list{}{\rightmargin\z@}%
\item[]}%
   {\endlist}
 \renewenvironment{quotation}%
   {\sffamily\small\list{}{\listparindent 1.5em%
\itemindent\listparindent
\rightmargin   \z@
\parsep\z@ \@plus\p@}%
\item[]}%
   {\endlist}

 I can insert citations, but when I try to make the PDF file I get the
 following error messages:

 Package biblatex Error: ' \bibliographystyle' invalid.
 LaTex error: Can be used only in preamble.

  \bibliographystyle{chicago-fa}

 Use the package option 'style' instead.
 I'm ignoring the command.

 What am I doing wrong here, and how can I fix it?

 Lou




problem with section numbering

2011-05-24 Thread Lisa Deutscher

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.
Now it figures correctly in the Table of contents, also the subsections 
and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?

documentclass: article KOMA,  lyx version 1.6.8, OS win 7

thanks a lot!

Lisa


Re: biblatex gui

2011-05-24 Thread Jürgen Spitzmüller
Julio Rojas wrote:
 Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
 like booktitle can be introduced by hand in the tab Bibtex Source of
 each reference. Or you can simply customize entry types to Biblatex format
 going to Options - Customize entry types.

And there seems to be some ongoing effort to provide these fields right from 
the start:

http://www.mail-archive.com/jabref-users@lists.sourceforge.net/msg00042.html

Jürgen


Re: biblatex gui

2011-05-24 Thread Julio Rojas
This really looks nice. I hope it goes well.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 11:28 AM, Jürgen Spitzmüller sp...@lyx.org wrote:

 Julio Rojas wrote:
  Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
  like booktitle can be introduced by hand in the tab Bibtex Source of
  each reference. Or you can simply customize entry types to Biblatex
 format
  going to Options - Customize entry types.

 And there seems to be some ongoing effort to provide these fields right
 from
 the start:


 http://www.mail-archive.com/jabref-users@lists.sourceforge.net/msg00042.html

 Jürgen



Problem with a graph and its title

2011-05-24 Thread Mike Bonhoff
Hallo,

I wanna make a graph and give it a title, say name. I think this name is 
written under the graph normally. So I think creating a figure must be the 
right thing.

So I clicked Insert-Float-figure and gave the figure the name and inserted 
the graph.

But I have 2 problems:

1st: The name is centered, that means in the middle of the paper to the left 
and right. On the other hand, my figure is on the left side.

I don't know how I can center the figure, too. I read the handbook (German 
version) and there were some hints, especially for importing existing figures, 
but not a lot of hints how to create such a figure by yourself.

2nd: I wanted to create an undirected graph and choose to do it with an 
x-y-pic-matrix with this code within the math mode:

\xymatrix{a\dir[dr]bc\\def}

That creates an xy-pic-matrix with 2 rows (because of the \\ command) and 3 
rows (because of the 2-times  command).
\dir[dr] makes an arc to the element which is one step below (d for down) and 
one element to the right (r for right). I used to write \dir@{-}[dr] instead of 
\dir[dr] because that made an undirected edge instead of an arc. But that 
doesn't work anymore; I don't know why.

Is there a better way to do that, for example with tikz, and is it easy to use 
that within lyx? If not, how can I create simple edges in that 
xy-pic-environment and place the title under the figure.

Thanks!

Mike Bonhoff
-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: Problem with a graph and its title

2011-05-24 Thread Julio Rojas
Dear Mike, on your first question, you do like you'll do with text. Just put
the cursor on the line where the figure is, and click on the Paragraph
settings button. Select Center for alignment, and voilá.

Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 1:34 PM, Mike Bonhoff lyx-u...@gmx.de wrote:

 Hallo,

 I wanna make a graph and give it a title, say name. I think this name is
 written under the graph normally. So I think creating a figure must be the
 right thing.

 So I clicked Insert-Float-figure and gave the figure the name and
 inserted the graph.

 But I have 2 problems:

 1st: The name is centered, that means in the middle of the paper to the
 left and right. On the other hand, my figure is on the left side.

 I don't know how I can center the figure, too. I read the handbook (German
 version) and there were some hints, especially for importing existing
 figures, but not a lot of hints how to create such a figure by yourself.

 2nd: I wanted to create an undirected graph and choose to do it with an
 x-y-pic-matrix with this code within the math mode:

 \xymatrix{a\dir[dr]bc\\def}

 That creates an xy-pic-matrix with 2 rows (because of the \\ command) and 3
 rows (because of the 2-times  command).
 \dir[dr] makes an arc to the element which is one step below (d for down)
 and one element to the right (r for right). I used to write \dir@{-}[dr]
 instead of \dir[dr] because that made an undirected edge instead of an arc.
 But that doesn't work anymore; I don't know why.

 Is there a better way to do that, for example with tikz, and is it easy to
 use that within lyx? If not, how can I create simple edges in that
 xy-pic-environment and place the title under the figure.

 Thanks!

 Mike Bonhoff
 --
 NEU: FreePhone - kostenlos mobil telefonieren!
 Jetzt informieren: http://www.gmx.net/de/go/freephone



Re: Issues with lyx 2.0 beta 1 and lilypond

2011-05-24 Thread Julien Rioux

On 24/05/2011 6:12 AM, romain carreau wrote:

Hi,
it works fine 2.13.61 (with PDF output) but the preview  (Insert -  Preview) 
doesn't work.
Is it normal for  lyx 2.0rc3?
Thanks for your help and the great job.




I expect this to work, too. Did you try the example document distributed 
with LyX? Or do you have a simple example file which displays the 
problem for you?


Cheers,
Julien


Re: Automatic Reference Naming is not working in Lyx2.0 with the thesis template

2011-05-24 Thread Richard Heck

On 05/23/2011 09:13 PM, Julien Rioux wrote:

On 23/05/2011 5:22 PM, Ruida Yun wrote:

Hi all,

I'm writing my dissertation using Lyx2.0 with the built-in thesis 
template.


The preamble in thesis template define
\renewcommand{\figureautorefname}{Fig.\negthinspace} to change the
default Figure to Fig. while referencing the figure.  However, I found
out the it doesn't work for my me.  Please find the attached file to
see the problem.

  I've googled this problem for a while but couldn't find a solution.
Any suggestion would be more than welcome.

Thanks a lot!

Ruida


This extract:
% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

from your preamble is an old trick to change the normal reference 
format, which appear as reference in the cross-ref dialog of LyX, 
into named references. Named references are now supported by LyX so it 
is no longer necessary to use this trick. Simply use the Formatted 
reference format in the cross-ref dialog. We should probably remove 
this trick from places where it is used in LyX's docs and templates.


Named references are provided by one of these latex packages: either 
prettyref or refstyle. This is configurable in the Doucment class 
options.


Using prettyref you can write in your preamble:
\newrefformat{fig}{Fig.~\ref{#1}}

If you are using hyperref and you want the Fig. part to be clickable 
also, instead use this:

\newrefformat{fig}{\hyperref[#1]{Fig.~\ref*{#1}}}

I do not know at the moment how to customize refstyle, but it should 
be possible to do so in a similar way.


Refstyle supports figure-naming natively, so no new refformat needs to 
be declared. By default, it gives figure~\ref{#1} (or whatever is 
appropriate to the language). If you want to change this, then the easy 
way is just to change the definition of \RSfigtxt, e.g.:

\def\RSfigtex{fig.~}
New reference formats can be defined as follows:
\newref{prop}{refcmd = {proposition \ref{#1}}
So prettyref's
\newrefformat{pfx}{...}
becomes:
\newref{pfx}{refcmd={...}}
This won't get you the range support, plurals and so forth, but LyX 
doesn't yet support those anyway.


Note that you can also use \newref to redefine things refstyle defines 
by default.


Richard



Re: problem with section numbering

2011-05-24 Thread Richard Heck

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Re: problem with section numbering

2011-05-24 Thread Lisa Deutscher

Am 24.05.2011 16:06, schrieb Richard Heck:

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous 
as in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Ha!
Problem solved!
Thanks very much, I am a happy woman now.


hunspell

2011-05-24 Thread Horst Jurkat

Hi,
I have the problem with the new version of lyx 2.0 for windows that I 
can only use the spellchecker hunspell. I have seen that this problem 
ist known, but I have not found any solution. How can I now use this 
spellchecker (instead of aspell)? Do I have to install dictionarys for 
hunspell? With the installation of lyx 2.0 no dictionarys are installed.

Thanks in advance.
Horst



Re: Problem with a graph and its title

2011-05-24 Thread Paul A . Rubin
You asked these same questions a few days ago, with a different subject line,
and I responded (http://article.gmane.org/gmane.editors.lyx.general/69959). Is
there a problem with the solutions I suggested?

Cheers,
Paul



Re: hunspell

2011-05-24 Thread Stephan Witt
Am 24.05.2011 um 16:38 schrieb Horst Jurkat:

 Hi,
 I have the problem with the new version of lyx 2.0 for windows that I can 
 only use the spellchecker hunspell. I have seen that this problem ist known, 
 but I have not found any solution. How can I now use this spellchecker 
 (instead of aspell)? Do I have to install dictionarys for hunspell? With the 
 installation of lyx 2.0 no dictionarys are installed.

How did you install LyX 2.0? Or what installer version did you use?
I've tried it and the dictionaries are there.
In case you've used some pre-release, please use the final one. 
(LyX-2.0.0-3-Installer.exe)

Stephan

Re: Issues with lyx 2.0 beta 1 and lilypond

2011-05-24 Thread Julien Rioux

On 24/05/2011 10:35 AM, romain wrote:

- Message d'origine -

On 24/05/2011 6:12 AM, romain carreau wrote:

Hi,
it works fine 2.13.61 (with PDF output) but the preview   (Insert -
Preview) doesn't work. Is it normal for   lyx 2.0rc3?
Thanks for your help and the great job.




I expect this to work, too. Did you try the example document distributed
with LyX? Or do you have a simple example file which displays the
problem for you?

Cheers,
Julien


Hi,
It doesn't work with your example document. But maybe i missed something...

Cheers,
Romain


Please try with the LyX 2.0.0 release. If you still have issues, open a 
bug report for it. We should look into it.


Thanks,
Julien


Re: page numbering question

2011-05-24 Thread Csikos Bela
Thank you for the quick answers.

Julien Rioux jri...@physics.utoronto.ca írta:
On 23/05/2011 2:42 PM, Paul Rubin wrote:
 Csikos Belabcsikos425at  freemail.hu  writes:


 Hello lyx users:

 My question is not specific to lyx but as I use lyx as a latex frontend I
 guess it is appropriate to ask it here.

 I would like to make a specific page numbering style in the footer,
 something like:

  page-number ---

 A horizontal line in the footer which is interrupted by the page number
 in the center. Is this possible in lyx/latex? How?


 If you have the mboxfill package installed, you can change the page style to
 fancy (Document  Settings...  Page Layout  Headings style) and add the
 following to the preamble of your document:

 \usepackage{mboxfill}
 \cfoot{\mboxfill[2\width][c]{-}\thepage\mboxfill[2\width][c]{-}}

 Paul


This solution is OK, but I want a rule, not a dashed line.
Unfortunately my example did not reflect his accurately.



Another solution also using fancy page headers in the document settings 
but plain tex otherwise. Put this in the preamble.

\def\hlinefill{\leavevmode\cleaders\hbox{\rule[0.6ex]{1em}{0.4pt}}\hfill}
\fancyfoot{\hlinefill~~~\thepage~~~\hlinefill}

In the above:
- 0.6ex is the height of the line (looks kind of centered)
- 1em is the width of a line segment which gets repeated to fill space
- 0.4pt is the thickness of the line (this particular choice is a 
default value elsewhere in tex)

This is what I need.


By the way, using fancy headers will add default headers, if you don't 
want them you get rid of them with

\fancyhead{}

-- 
Julien



Thank you both,

bcsikos



Re: Forward/reverse searching problems under Windows (The Sequel)

2011-05-24 Thread Christopher Menzel
On May 23, 2011, at 3:33 PM, Enrico Forestieri wrote:
 Christopher Menzel writes:
 
 That is, LyX is calling the appropriate forward search command for a PDF
 preview document, not DVI.
 
 LyX performs a forward search for the last generated format, so it means
 that you generated a pdf after the dvi, even if you quitted the pdf viewer
 and are now previewing the dvi.

Sorry, I guess I'm confused about the semantics of generating a format versus 
previewing. What more do I have to do to generate a format beyond 
previewing?  From the documentation it appears that all I should have to do is 
generate a dvi preview:

   Forward search works both with DVI and PDF output. LyX simply
   checks which preview format you have used before (i.e., which
   format is already there in the temporary directory) and chooses
   the appropriate configuration for the respective format.

I have done that; the only thing in the Temp directory is a DVI file for my 
document. There is no sign of any PDF.  How do I generate a formate to tell 
LyX I'm using DVI now?

Thanks for your patience.

Chris Menzel



Re: Forward/reverse searching problems under Windows (The Sequel)

2011-05-24 Thread Enrico Forestieri
Christopher Menzel writes:
 
 On May 23, 2011, at 3:33 PM, Enrico Forestieri wrote:
  Christopher Menzel writes:
  
  That is, LyX is calling the appropriate forward search command for a PDF
  preview document, not DVI.
  
  LyX performs a forward search for the last generated format, so it means
  that you generated a pdf after the dvi, even if you quitted the pdf viewer
  and are now previewing the dvi.
 
 Sorry, I guess I'm confused about the semantics of generating a format
 versus previewing. What more do I have to do to generate a format
 beyond previewing?

If you hit the update button, a given format is generated (produced)
in the temp dir, but a previewer is not started.

  From the documentation it appears that all I should
 have to do is generate a dvi preview:
 
Forward search works both with DVI and PDF output. LyX simply
checks which preview format you have used before (i.e., which
format is already there in the temporary directory) and chooses
the appropriate configuration for the respective format.
 
 I have done that; the only thing in the Temp directory is a DVI file
 for my document. There is no sign of any PDF. 

So, let's see whether we can solve this mystery by looking at the code.
The following is the relevant snippet in src/frontends/qt4/GuiView.cpp:

if (!dviname.exists()  !pdfname.exists()) {
dr.setMessage(_(Please, preview the document first.));
break;
}
string outname = dviname.onlyFileName();
string command = lyxrc.forward_search_dvi;
if (!dviname.exists() ||
pdfname.lastModified()  dviname.lastModified()) {
outname = pdfname.onlyFileName();
command = lyxrc.forward_search_pdf;
}

Firstly, LyX checks whether a dvi or pdf was generated. If not, the message
Please, preview the document first. is issued.
Then, LyX assumes that you generated a dvi, but if no dvi exists or the
pdf is newer than the dvi, a pdf format is assumed.
Note that if no pdf exists, pdfname.lastModified() returns -1 and the
check pdfname.lastModified()  dviname.lastModified() is never true.
Thus, if no pdf exists a dvi forward search is always attempted.

Anyway, you say that a pdf search is tried, even if no pdf is in sight.
Let's se how that could happen. The lastModified() method returns a time_t
type, which is a signed type on all machines and compilers I have access to.
However, I don't have access to the MSVC compiler, which is the one used
for the Windows version you are using, most probably. I am able to compile
a Windows version with the MinGW compiler, and there it works.

So, the only way that a pdf search could be attempted is if the time_t type
is an unsigned type for the MSVC compiler. Indeed, in that case, the -1
would be interpreted as the greatest possible value and the check
pdfname.lastModified()  dviname.lastModified() would be always true.
I have no way to check that and someone building LyX with MSVC should
perform that test. It would suffice adding the line

   lyxerr  pdf:   pdfname.lastModified()  endl;

just before that snippet, trying a forward search with only a dvi generated
and looking at what is printed. If the result is

pdf: -1

the mystery remains unsolved (I always get that), but if it prints something
like

pdf: 2147483647

we found the bug.

So, can anyone compiling LyX with MSVC perform that check?

-- 
Enrico



Re: LyX for Mac OSX 10.6.7?

2011-05-24 Thread Eric Weir

On May 18, 2011, at 5:18 AM, Trevor Jenkins wrote:

 (be aware that the recommended MacTeX install is a pkg of 1.2Gb)

There is a much smaller package that can be installed that has all the TeX 
files required by LyX. See here: http://www.tug.org/mactex/morepackages.html

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net






Re: Thesis margins 1.5 left and 1 elsewhere

2011-05-24 Thread Julien Rioux

On 24/05/2011 1:32 AM, Eisa Ayed wrote:

My school requires that I've 1.5 inch margin on the left side and 1 inch in all 
other margins.
I checked  Document-Settings-Page Margins.

There is entry listed for left margin.
How can I possibly do that in Lyx version 1.6.8 ?

Eisa.




In single-sided documents, Inner is the same as Left.

--
Julien



Re: biblatex gui

2011-05-24 Thread Dominik Waßenhoven
Louis Turk wrote:

 Am I correct in thinking that JabRef does not support biblatex?

No, you can add any field you like to JabRef via Options  Customize
entry types and Options  Set up general fields.

Regards,
Dominik.-



Re: biblatex gui

2011-05-24 Thread Julio Rojas
Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
like booktitle can be introduced by hand in the tab Bibtex Source of
each reference. Or you can simply customize entry types to Biblatex format
going to Options - Customize entry types.

I hope this helps you. Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 7:56 AM, Louis Turk l...@dayspringpublisher.comwrote:

  Hi fellow Lyxers,

 Am I correct in thinking that JabRef does not support biblatex?

 The only program I've found that supports entering biblatex citations into
 .bib files is Synaptic. Are there others?

 Is there an emacs mode for doing this?

 Lou




Re: biblatex-chicago

2011-05-24 Thread Julio Rojas
Dear Louis, this command is not Biblatex's, but Bibtex's. The style of your
bibliography is defined in the preamble. Check page 2 of the
Biblatex-Chicago manual:
http://ctan.mines-albi.fr/macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.pdf

You should also read Biblatex's Manual, as it seems you are not defining in
your preamble the name of your bib file.

Good luck. Regards.

-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 7:17 AM, Louis Turk l...@dayspringpublisher.comwrote:

 Hi everyone,

 I'm using Lyx 2.0. I have an English book which uses a few Hebrew and
 Greek words. I need to use biblatex-chicago footnote citations with this
 book.

 I've installed:

 biblatex
 biblatex-biber
 biblatex-chicago

 Document class: book (Memoir)

 Modules: Biblatex-citation-styles

 Language: English USA
Encoding: Unicode (XeTex)(utf8)
Language package: Always Babel

 Bibliography:
Citation style: Natbib Author-year
Bibliograpy generation:
Processor: biber
Options: none

 Output: Default output format: PDF (XeTex)

 Preamble:

 \usepackage[hebrew,greek,english]{babel}
 \usepackage{fontspec}
 \usepackage{csquotes}
 \usepackage[backend=biber]{biblatex}
 \chapterstyle{bianchi}
 \setlength{\hoffset}{0.5 in}
 \setlength{\voffset}{0.3 in}
 \RequirePackage{microtype}
 \renewenvironment{quote}%
   {\sffamily\small\list{}{\rightmargin\z@}%
\item[]}%
   {\endlist}
 \renewenvironment{quotation}%
   {\sffamily\small\list{}{\listparindent 1.5em%
\itemindent\listparindent
\rightmargin   \z@
\parsep\z@ \@plus\p@}%
\item[]}%
   {\endlist}

 I can insert citations, but when I try to make the PDF file I get the
 following error messages:

 Package biblatex Error: ' \bibliographystyle' invalid.
 LaTex error: Can be used only in preamble.

  \bibliographystyle{chicago-fa}

 Use the package option 'style' instead.
 I'm ignoring the command.

 What am I doing wrong here, and how can I fix it?

 Lou




problem with section numbering

2011-05-24 Thread Lisa Deutscher

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.
Now it figures correctly in the Table of contents, also the subsections 
and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?

documentclass: article KOMA,  lyx version 1.6.8, OS win 7

thanks a lot!

Lisa


Re: biblatex gui

2011-05-24 Thread Jürgen Spitzmüller
Julio Rojas wrote:
 Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
 like booktitle can be introduced by hand in the tab Bibtex Source of
 each reference. Or you can simply customize entry types to Biblatex format
 going to Options - Customize entry types.

And there seems to be some ongoing effort to provide these fields right from 
the start:

http://www.mail-archive.com/jabref-users@lists.sourceforge.net/msg00042.html

Jürgen


Re: biblatex gui

2011-05-24 Thread Julio Rojas
This really looks nice. I hope it goes well.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 11:28 AM, Jürgen Spitzmüller sp...@lyx.org wrote:

 Julio Rojas wrote:
  Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
  like booktitle can be introduced by hand in the tab Bibtex Source of
  each reference. Or you can simply customize entry types to Biblatex
 format
  going to Options - Customize entry types.

 And there seems to be some ongoing effort to provide these fields right
 from
 the start:


 http://www.mail-archive.com/jabref-users@lists.sourceforge.net/msg00042.html

 Jürgen



Problem with a graph and its title

2011-05-24 Thread Mike Bonhoff
Hallo,

I wanna make a graph and give it a title, say name. I think this name is 
written under the graph normally. So I think creating a figure must be the 
right thing.

So I clicked Insert-Float-figure and gave the figure the name and inserted 
the graph.

But I have 2 problems:

1st: The name is centered, that means in the middle of the paper to the left 
and right. On the other hand, my figure is on the left side.

I don't know how I can center the figure, too. I read the handbook (German 
version) and there were some hints, especially for importing existing figures, 
but not a lot of hints how to create such a figure by yourself.

2nd: I wanted to create an undirected graph and choose to do it with an 
x-y-pic-matrix with this code within the math mode:

\xymatrix{a\dir[dr]bc\\def}

That creates an xy-pic-matrix with 2 rows (because of the \\ command) and 3 
rows (because of the 2-times  command).
\dir[dr] makes an arc to the element which is one step below (d for down) and 
one element to the right (r for right). I used to write \dir@{-}[dr] instead of 
\dir[dr] because that made an undirected edge instead of an arc. But that 
doesn't work anymore; I don't know why.

Is there a better way to do that, for example with tikz, and is it easy to use 
that within lyx? If not, how can I create simple edges in that 
xy-pic-environment and place the title under the figure.

Thanks!

Mike Bonhoff
-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: Problem with a graph and its title

2011-05-24 Thread Julio Rojas
Dear Mike, on your first question, you do like you'll do with text. Just put
the cursor on the line where the figure is, and click on the Paragraph
settings button. Select Center for alignment, and voilá.

Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 1:34 PM, Mike Bonhoff lyx-u...@gmx.de wrote:

 Hallo,

 I wanna make a graph and give it a title, say name. I think this name is
 written under the graph normally. So I think creating a figure must be the
 right thing.

 So I clicked Insert-Float-figure and gave the figure the name and
 inserted the graph.

 But I have 2 problems:

 1st: The name is centered, that means in the middle of the paper to the
 left and right. On the other hand, my figure is on the left side.

 I don't know how I can center the figure, too. I read the handbook (German
 version) and there were some hints, especially for importing existing
 figures, but not a lot of hints how to create such a figure by yourself.

 2nd: I wanted to create an undirected graph and choose to do it with an
 x-y-pic-matrix with this code within the math mode:

 \xymatrix{a\dir[dr]bc\\def}

 That creates an xy-pic-matrix with 2 rows (because of the \\ command) and 3
 rows (because of the 2-times  command).
 \dir[dr] makes an arc to the element which is one step below (d for down)
 and one element to the right (r for right). I used to write \dir@{-}[dr]
 instead of \dir[dr] because that made an undirected edge instead of an arc.
 But that doesn't work anymore; I don't know why.

 Is there a better way to do that, for example with tikz, and is it easy to
 use that within lyx? If not, how can I create simple edges in that
 xy-pic-environment and place the title under the figure.

 Thanks!

 Mike Bonhoff
 --
 NEU: FreePhone - kostenlos mobil telefonieren!
 Jetzt informieren: http://www.gmx.net/de/go/freephone



Re: Issues with lyx 2.0 beta 1 and lilypond

2011-05-24 Thread Julien Rioux

On 24/05/2011 6:12 AM, romain carreau wrote:

Hi,
it works fine 2.13.61 (with PDF output) but the preview  (Insert -  Preview) 
doesn't work.
Is it normal for  lyx 2.0rc3?
Thanks for your help and the great job.




I expect this to work, too. Did you try the example document distributed 
with LyX? Or do you have a simple example file which displays the 
problem for you?


Cheers,
Julien


Re: Automatic Reference Naming is not working in Lyx2.0 with the thesis template

2011-05-24 Thread Richard Heck

On 05/23/2011 09:13 PM, Julien Rioux wrote:

On 23/05/2011 5:22 PM, Ruida Yun wrote:

Hi all,

I'm writing my dissertation using Lyx2.0 with the built-in thesis 
template.


The preamble in thesis template define
\renewcommand{\figureautorefname}{Fig.\negthinspace} to change the
default Figure to Fig. while referencing the figure.  However, I found
out the it doesn't work for my me.  Please find the attached file to
see the problem.

  I've googled this problem for a while but couldn't find a solution.
Any suggestion would be more than welcome.

Thanks a lot!

Ruida


This extract:
% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

from your preamble is an old trick to change the normal reference 
format, which appear as reference in the cross-ref dialog of LyX, 
into named references. Named references are now supported by LyX so it 
is no longer necessary to use this trick. Simply use the Formatted 
reference format in the cross-ref dialog. We should probably remove 
this trick from places where it is used in LyX's docs and templates.


Named references are provided by one of these latex packages: either 
prettyref or refstyle. This is configurable in the Doucment class 
options.


Using prettyref you can write in your preamble:
\newrefformat{fig}{Fig.~\ref{#1}}

If you are using hyperref and you want the Fig. part to be clickable 
also, instead use this:

\newrefformat{fig}{\hyperref[#1]{Fig.~\ref*{#1}}}

I do not know at the moment how to customize refstyle, but it should 
be possible to do so in a similar way.


Refstyle supports figure-naming natively, so no new refformat needs to 
be declared. By default, it gives figure~\ref{#1} (or whatever is 
appropriate to the language). If you want to change this, then the easy 
way is just to change the definition of \RSfigtxt, e.g.:

\def\RSfigtex{fig.~}
New reference formats can be defined as follows:
\newref{prop}{refcmd = {proposition \ref{#1}}
So prettyref's
\newrefformat{pfx}{...}
becomes:
\newref{pfx}{refcmd={...}}
This won't get you the range support, plurals and so forth, but LyX 
doesn't yet support those anyway.


Note that you can also use \newref to redefine things refstyle defines 
by default.


Richard



Re: problem with section numbering

2011-05-24 Thread Richard Heck

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Re: problem with section numbering

2011-05-24 Thread Lisa Deutscher

Am 24.05.2011 16:06, schrieb Richard Heck:

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous 
as in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Ha!
Problem solved!
Thanks very much, I am a happy woman now.


hunspell

2011-05-24 Thread Horst Jurkat

Hi,
I have the problem with the new version of lyx 2.0 for windows that I 
can only use the spellchecker hunspell. I have seen that this problem 
ist known, but I have not found any solution. How can I now use this 
spellchecker (instead of aspell)? Do I have to install dictionarys for 
hunspell? With the installation of lyx 2.0 no dictionarys are installed.

Thanks in advance.
Horst



Re: Problem with a graph and its title

2011-05-24 Thread Paul A . Rubin
You asked these same questions a few days ago, with a different subject line,
and I responded (http://article.gmane.org/gmane.editors.lyx.general/69959). Is
there a problem with the solutions I suggested?

Cheers,
Paul



Re: hunspell

2011-05-24 Thread Stephan Witt
Am 24.05.2011 um 16:38 schrieb Horst Jurkat:

 Hi,
 I have the problem with the new version of lyx 2.0 for windows that I can 
 only use the spellchecker hunspell. I have seen that this problem ist known, 
 but I have not found any solution. How can I now use this spellchecker 
 (instead of aspell)? Do I have to install dictionarys for hunspell? With the 
 installation of lyx 2.0 no dictionarys are installed.

How did you install LyX 2.0? Or what installer version did you use?
I've tried it and the dictionaries are there.
In case you've used some pre-release, please use the final one. 
(LyX-2.0.0-3-Installer.exe)

Stephan

Re: Issues with lyx 2.0 beta 1 and lilypond

2011-05-24 Thread Julien Rioux

On 24/05/2011 10:35 AM, romain wrote:

- Message d'origine -

On 24/05/2011 6:12 AM, romain carreau wrote:

Hi,
it works fine 2.13.61 (with PDF output) but the preview   (Insert -
Preview) doesn't work. Is it normal for   lyx 2.0rc3?
Thanks for your help and the great job.




I expect this to work, too. Did you try the example document distributed
with LyX? Or do you have a simple example file which displays the
problem for you?

Cheers,
Julien


Hi,
It doesn't work with your example document. But maybe i missed something...

Cheers,
Romain


Please try with the LyX 2.0.0 release. If you still have issues, open a 
bug report for it. We should look into it.


Thanks,
Julien


Re: page numbering question

2011-05-24 Thread Csikos Bela
Thank you for the quick answers.

Julien Rioux jri...@physics.utoronto.ca írta:
On 23/05/2011 2:42 PM, Paul Rubin wrote:
 Csikos Belabcsikos425at  freemail.hu  writes:


 Hello lyx users:

 My question is not specific to lyx but as I use lyx as a latex frontend I
 guess it is appropriate to ask it here.

 I would like to make a specific page numbering style in the footer,
 something like:

  page-number ---

 A horizontal line in the footer which is interrupted by the page number
 in the center. Is this possible in lyx/latex? How?


 If you have the mboxfill package installed, you can change the page style to
 fancy (Document  Settings...  Page Layout  Headings style) and add the
 following to the preamble of your document:

 \usepackage{mboxfill}
 \cfoot{\mboxfill[2\width][c]{-}\thepage\mboxfill[2\width][c]{-}}

 Paul


This solution is OK, but I want a rule, not a dashed line.
Unfortunately my example did not reflect his accurately.



Another solution also using fancy page headers in the document settings 
but plain tex otherwise. Put this in the preamble.

\def\hlinefill{\leavevmode\cleaders\hbox{\rule[0.6ex]{1em}{0.4pt}}\hfill}
\fancyfoot{\hlinefill~~~\thepage~~~\hlinefill}

In the above:
- 0.6ex is the height of the line (looks kind of centered)
- 1em is the width of a line segment which gets repeated to fill space
- 0.4pt is the thickness of the line (this particular choice is a 
default value elsewhere in tex)

This is what I need.


By the way, using fancy headers will add default headers, if you don't 
want them you get rid of them with

\fancyhead{}

-- 
Julien



Thank you both,

bcsikos



Re: Forward/reverse searching problems under Windows (The Sequel)

2011-05-24 Thread Christopher Menzel
On May 23, 2011, at 3:33 PM, Enrico Forestieri wrote:
 Christopher Menzel writes:
 
 That is, LyX is calling the appropriate forward search command for a PDF
 preview document, not DVI.
 
 LyX performs a forward search for the last generated format, so it means
 that you generated a pdf after the dvi, even if you quitted the pdf viewer
 and are now previewing the dvi.

Sorry, I guess I'm confused about the semantics of generating a format versus 
previewing. What more do I have to do to generate a format beyond 
previewing?  From the documentation it appears that all I should have to do is 
generate a dvi preview:

   Forward search works both with DVI and PDF output. LyX simply
   checks which preview format you have used before (i.e., which
   format is already there in the temporary directory) and chooses
   the appropriate configuration for the respective format.

I have done that; the only thing in the Temp directory is a DVI file for my 
document. There is no sign of any PDF.  How do I generate a formate to tell 
LyX I'm using DVI now?

Thanks for your patience.

Chris Menzel



Re: Forward/reverse searching problems under Windows (The Sequel)

2011-05-24 Thread Enrico Forestieri
Christopher Menzel writes:
 
 On May 23, 2011, at 3:33 PM, Enrico Forestieri wrote:
  Christopher Menzel writes:
  
  That is, LyX is calling the appropriate forward search command for a PDF
  preview document, not DVI.
  
  LyX performs a forward search for the last generated format, so it means
  that you generated a pdf after the dvi, even if you quitted the pdf viewer
  and are now previewing the dvi.
 
 Sorry, I guess I'm confused about the semantics of generating a format
 versus previewing. What more do I have to do to generate a format
 beyond previewing?

If you hit the update button, a given format is generated (produced)
in the temp dir, but a previewer is not started.

  From the documentation it appears that all I should
 have to do is generate a dvi preview:
 
Forward search works both with DVI and PDF output. LyX simply
checks which preview format you have used before (i.e., which
format is already there in the temporary directory) and chooses
the appropriate configuration for the respective format.
 
 I have done that; the only thing in the Temp directory is a DVI file
 for my document. There is no sign of any PDF. 

So, let's see whether we can solve this mystery by looking at the code.
The following is the relevant snippet in src/frontends/qt4/GuiView.cpp:

if (!dviname.exists()  !pdfname.exists()) {
dr.setMessage(_(Please, preview the document first.));
break;
}
string outname = dviname.onlyFileName();
string command = lyxrc.forward_search_dvi;
if (!dviname.exists() ||
pdfname.lastModified()  dviname.lastModified()) {
outname = pdfname.onlyFileName();
command = lyxrc.forward_search_pdf;
}

Firstly, LyX checks whether a dvi or pdf was generated. If not, the message
Please, preview the document first. is issued.
Then, LyX assumes that you generated a dvi, but if no dvi exists or the
pdf is newer than the dvi, a pdf format is assumed.
Note that if no pdf exists, pdfname.lastModified() returns -1 and the
check pdfname.lastModified()  dviname.lastModified() is never true.
Thus, if no pdf exists a dvi forward search is always attempted.

Anyway, you say that a pdf search is tried, even if no pdf is in sight.
Let's se how that could happen. The lastModified() method returns a time_t
type, which is a signed type on all machines and compilers I have access to.
However, I don't have access to the MSVC compiler, which is the one used
for the Windows version you are using, most probably. I am able to compile
a Windows version with the MinGW compiler, and there it works.

So, the only way that a pdf search could be attempted is if the time_t type
is an unsigned type for the MSVC compiler. Indeed, in that case, the -1
would be interpreted as the greatest possible value and the check
pdfname.lastModified()  dviname.lastModified() would be always true.
I have no way to check that and someone building LyX with MSVC should
perform that test. It would suffice adding the line

   lyxerr  pdf:   pdfname.lastModified()  endl;

just before that snippet, trying a forward search with only a dvi generated
and looking at what is printed. If the result is

pdf: -1

the mystery remains unsolved (I always get that), but if it prints something
like

pdf: 2147483647

we found the bug.

So, can anyone compiling LyX with MSVC perform that check?

-- 
Enrico



Re: LyX for Mac OSX 10.6.7?

2011-05-24 Thread Eric Weir

On May 18, 2011, at 5:18 AM, Trevor Jenkins wrote:

 (be aware that the recommended MacTeX install is a pkg of 1.2Gb)

There is a much smaller package that can be installed that has all the TeX 
files required by LyX. See here: http://www.tug.org/mactex/morepackages.html

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net






Re: Thesis margins 1.5 left and 1 elsewhere

2011-05-24 Thread Julien Rioux

On 24/05/2011 1:32 AM, Eisa Ayed wrote:

My school requires that I've 1.5 inch margin on the left side and 1 inch in all 
other margins.
I checked  Document->Settings->Page Margins.

There is entry listed for left margin.
How can I possibly do that in Lyx version 1.6.8 ?

Eisa.




In single-sided documents, "Inner" is the same as "Left".

--
Julien



Re: biblatex gui

2011-05-24 Thread Dominik Waßenhoven
Louis Turk wrote:

> Am I correct in thinking that JabRef does not support biblatex?

No, you can add any field you like to JabRef via "Options > Customize
entry types" and "Options > Set up general fields".

Regards,
Dominik.-



Re: biblatex gui

2011-05-24 Thread Julio Rojas
Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
like "booktitle" can be introduced by hand in the tab "Bibtex Source" of
each reference. Or you can simply customize entry types to Biblatex format
going to Options -> Customize entry types.

I hope this helps you. Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 7:56 AM, Louis Turk wrote:

>  Hi fellow Lyxers,
>
> Am I correct in thinking that JabRef does not support biblatex?
>
> The only program I've found that supports entering biblatex citations into
> .bib files is Synaptic. Are there others?
>
> Is there an emacs mode for doing this?
>
> Lou
>
>


Re: biblatex-chicago

2011-05-24 Thread Julio Rojas
Dear Louis, this command is not Biblatex's, but Bibtex's. The style of your
bibliography is defined in the preamble. Check page 2 of the
Biblatex-Chicago manual:
http://ctan.mines-albi.fr/macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.pdf

You should also read Biblatex's Manual, as it seems you are not defining in
your preamble the name of your bib file.

Good luck. Regards.

-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 7:17 AM, Louis Turk wrote:

> Hi everyone,
>
> I'm using Lyx 2.0. I have an English book which uses a few Hebrew and
> Greek words. I need to use biblatex-chicago footnote citations with this
> book.
>
> I've installed:
>
> biblatex
> biblatex-biber
> biblatex-chicago
>
> Document class: book (Memoir)
>
> Modules: Biblatex-citation-styles
>
> Language: English USA
>Encoding: Unicode (XeTex)(utf8)
>Language package: Always Babel
>
> Bibliography:
>Citation style: Natbib Author-year
>Bibliograpy generation:
>Processor: biber
>Options: none
>
> Output: Default output format: PDF (XeTex)
>
> Preamble:
>
> \usepackage[hebrew,greek,english]{babel}
> \usepackage{fontspec}
> \usepackage{csquotes}
> \usepackage[backend=biber]{biblatex}
> \chapterstyle{bianchi}
> \setlength{\hoffset}{0.5 in}
> \setlength{\voffset}{0.3 in}
> \RequirePackage{microtype}
> \renewenvironment{quote}%
>   {\sffamily\small\list{}{\rightmargin\z@}%
>\item[]}%
>   {\endlist}
> \renewenvironment{quotation}%
>   {\sffamily\small\list{}{\listparindent 1.5em%
>\itemindent\listparindent
>\rightmargin   \z@
>\parsep\z@ \@plus\p@}%
>\item[]}%
>   {\endlist}
>
> I can insert citations, but when I try to make the PDF file I get the
> following error messages:
>
> Package biblatex Error: ' \bibliographystyle' invalid.
> LaTex error: Can be used only in preamble.
>
>  \bibliographystyle{chicago-fa}
>
> Use the package option 'style' instead.
> I'm ignoring the command.
>
> What am I doing wrong here, and how can I fix it?
>
> Lou
>
>


problem with section numbering

2011-05-24 Thread Lisa Deutscher

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.
Now it figures correctly in the Table of contents, also the subsections 
and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?

documentclass: article KOMA,  lyx version 1.6.8, OS win 7

thanks a lot!

Lisa


Re: biblatex gui

2011-05-24 Thread Jürgen Spitzmüller
Julio Rojas wrote:
> Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
> like "booktitle" can be introduced by hand in the tab "Bibtex Source" of
> each reference. Or you can simply customize entry types to Biblatex format
> going to Options -> Customize entry types.

And there seems to be some ongoing effort to provide these fields right from 
the start:

http://www.mail-archive.com/jabref-users@lists.sourceforge.net/msg00042.html

Jürgen


Re: biblatex gui

2011-05-24 Thread Julio Rojas
This really looks nice. I hope it goes well.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 11:28 AM, Jürgen Spitzmüller  wrote:

> Julio Rojas wrote:
> > Dear Louis. You can perfectly use JabRef for biblatex files. Some fields,
> > like "booktitle" can be introduced by hand in the tab "Bibtex Source" of
> > each reference. Or you can simply customize entry types to Biblatex
> format
> > going to Options -> Customize entry types.
>
> And there seems to be some ongoing effort to provide these fields right
> from
> the start:
>
>
> http://www.mail-archive.com/jabref-users@lists.sourceforge.net/msg00042.html
>
> Jürgen
>


Problem with a graph and its title

2011-05-24 Thread Mike Bonhoff
Hallo,

I wanna make a graph and give it a title, say "name". I think this name is 
written under the graph normally. So I think creating a figure must be the 
right thing.

So I clicked Insert->Float->figure and gave the figure the "name" and inserted 
the graph.

But I have 2 problems:

1st: The "name" is centered, that means in the middle of the paper to the left 
and right. On the other hand, my figure is on the left side.

I don't know how I can center the figure, too. I read the handbook (German 
version) and there were some hints, especially for importing existing figures, 
but not a lot of hints how to create such a figure by yourself.

2nd: I wanted to create an undirected graph and choose to do it with an 
x-y-pic-matrix with this code within the math mode:

\xymatrix{a\dir[dr]\\d}

That creates an xy-pic-matrix with 2 rows (because of the \\ command) and 3 
rows (because of the 2-times & command).
\dir[dr] makes an arc to the element which is one step below (d for down) and 
one element to the right (r for right). I used to write \dir@{-}[dr] instead of 
\dir[dr] because that made an undirected edge instead of an arc. But that 
doesn't work anymore; I don't know why.

Is there a better way to do that, for example with tikz, and is it easy to use 
that within lyx? If not, how can I create simple edges in that 
xy-pic-environment and place the title under the figure.

Thanks!

Mike Bonhoff
-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: Problem with a graph and its title

2011-05-24 Thread Julio Rojas
Dear Mike, on your first question, you do like you'll do with text. Just put
the cursor on the line where the figure is, and click on the "Paragraph
settings" button. Select "Center" for alignment, and voilá.

Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Tue, May 24, 2011 at 1:34 PM, Mike Bonhoff  wrote:

> Hallo,
>
> I wanna make a graph and give it a title, say "name". I think this name is
> written under the graph normally. So I think creating a figure must be the
> right thing.
>
> So I clicked Insert->Float->figure and gave the figure the "name" and
> inserted the graph.
>
> But I have 2 problems:
>
> 1st: The "name" is centered, that means in the middle of the paper to the
> left and right. On the other hand, my figure is on the left side.
>
> I don't know how I can center the figure, too. I read the handbook (German
> version) and there were some hints, especially for importing existing
> figures, but not a lot of hints how to create such a figure by yourself.
>
> 2nd: I wanted to create an undirected graph and choose to do it with an
> x-y-pic-matrix with this code within the math mode:
>
> \xymatrix{a\dir[dr]\\d}
>
> That creates an xy-pic-matrix with 2 rows (because of the \\ command) and 3
> rows (because of the 2-times & command).
> \dir[dr] makes an arc to the element which is one step below (d for down)
> and one element to the right (r for right). I used to write \dir@{-}[dr]
> instead of \dir[dr] because that made an undirected edge instead of an arc.
> But that doesn't work anymore; I don't know why.
>
> Is there a better way to do that, for example with tikz, and is it easy to
> use that within lyx? If not, how can I create simple edges in that
> xy-pic-environment and place the title under the figure.
>
> Thanks!
>
> Mike Bonhoff
> --
> NEU: FreePhone - kostenlos mobil telefonieren!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
>


Re: Issues with lyx 2.0 beta 1 and lilypond

2011-05-24 Thread Julien Rioux

On 24/05/2011 6:12 AM, romain carreau wrote:

Hi,
it works fine 2.13.61 (with PDF output) but the preview  (Insert ->  Preview) 
doesn't work.
Is it "normal" for  lyx 2.0rc3?
Thanks for your help and the great job.




I expect this to work, too. Did you try the example document distributed 
with LyX? Or do you have a simple example file which displays the 
problem for you?


Cheers,
Julien


Re: Automatic Reference Naming is not working in Lyx2.0 with the thesis template

2011-05-24 Thread Richard Heck

On 05/23/2011 09:13 PM, Julien Rioux wrote:

On 23/05/2011 5:22 PM, Ruida Yun wrote:

Hi all,

I'm writing my dissertation using Lyx2.0 with the built-in thesis 
template.


The preamble in thesis template define
\renewcommand{\figureautorefname}{Fig.\negthinspace} to change the
default Figure to Fig. while referencing the figure.  However, I found
out the it doesn't work for my me.  Please find the attached file to
see the problem.

  I've googled this problem for a while but couldn't find a solution.
Any suggestion would be more than welcome.

Thanks a lot!

Ruida


This extract:
% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

from your preamble is an old trick to change the normal reference 
format, which appear as "" in the cross-ref dialog of LyX, 
into named references. Named references are now supported by LyX so it 
is no longer necessary to use this trick. Simply use the "Formatted 
reference" format in the cross-ref dialog. We should probably remove 
this trick from places where it is used in LyX's docs and templates.


Named references are provided by one of these latex packages: either 
prettyref or refstyle. This is configurable in the "Doucment class" 
options.


Using prettyref you can write in your preamble:
\newrefformat{fig}{Fig.~\ref{#1}}

If you are using hyperref and you want the "Fig." part to be clickable 
also, instead use this:

\newrefformat{fig}{\hyperref[#1]{Fig.~\ref*{#1}}}

I do not know at the moment how to customize refstyle, but it should 
be possible to do so in a similar way.


Refstyle supports figure-naming natively, so no new refformat needs to 
be declared. By default, it gives "figure~\ref{#1}" (or whatever is 
appropriate to the language). If you want to change this, then the easy 
way is just to change the definition of \RSfigtxt, e.g.:

\def\RSfigtex{fig.~}
New reference formats can be defined as follows:
\newref{prop}{refcmd = {proposition \ref{#1}}
So prettyref's
\newrefformat{pfx}{...}
becomes:
\newref{pfx}{refcmd={...}}
This won't get you the range support, plurals and so forth, but LyX 
doesn't yet support those anyway.


Note that you can also use \newref to redefine things refstyle defines 
by default.


Richard



Re: problem with section numbering

2011-05-24 Thread Richard Heck

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Re: problem with section numbering

2011-05-24 Thread Lisa Deutscher

Am 24.05.2011 16:06, schrieb Richard Heck:

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous 
as in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Ha!
Problem solved!
Thanks very much, I am a happy woman now.


hunspell

2011-05-24 Thread Horst Jurkat

Hi,
I have the problem with the new version of lyx 2.0 for windows that I 
can only use the spellchecker hunspell. I have seen that this problem 
ist known, but I have not found any solution. How can I now use this 
spellchecker (instead of aspell)? Do I have to install dictionarys for 
hunspell? With the installation of lyx 2.0 no dictionarys are installed.

Thanks in advance.
Horst



Re: Problem with a graph and its title

2011-05-24 Thread Paul A . Rubin
You asked these same questions a few days ago, with a different subject line,
and I responded (http://article.gmane.org/gmane.editors.lyx.general/69959). Is
there a problem with the solutions I suggested?

Cheers,
Paul



Re: hunspell

2011-05-24 Thread Stephan Witt
Am 24.05.2011 um 16:38 schrieb Horst Jurkat:

> Hi,
> I have the problem with the new version of lyx 2.0 for windows that I can 
> only use the spellchecker hunspell. I have seen that this problem ist known, 
> but I have not found any solution. How can I now use this spellchecker 
> (instead of aspell)? Do I have to install dictionarys for hunspell? With the 
> installation of lyx 2.0 no dictionarys are installed.

How did you install LyX 2.0? Or what installer version did you use?
I've tried it and the dictionaries are there.
In case you've used some pre-release, please use the final one. 
(LyX-2.0.0-3-Installer.exe)

Stephan

Re: Issues with lyx 2.0 beta 1 and lilypond

2011-05-24 Thread Julien Rioux

On 24/05/2011 10:35 AM, romain wrote:

- Message d'origine -

On 24/05/2011 6:12 AM, romain carreau wrote:

Hi,
it works fine 2.13.61 (with PDF output) but the preview   (Insert ->
Preview) doesn't work. Is it "normal" for   lyx 2.0rc3?
Thanks for your help and the great job.




I expect this to work, too. Did you try the example document distributed
with LyX? Or do you have a simple example file which displays the
problem for you?

Cheers,
Julien


Hi,
It doesn't work with your example document. But maybe i missed something...

Cheers,
Romain


Please try with the LyX 2.0.0 release. If you still have issues, open a 
bug report for it. We should look into it.


Thanks,
Julien


Re: page numbering question

2011-05-24 Thread Csikos Bela
Thank you for the quick answers.

Julien Rioux  írta:
>On 23/05/2011 2:42 PM, Paul Rubin wrote:>
> Csikos Bela  writes:>
>>
>>>
>> Hello lyx users:>
>>>
>> My question is not specific to lyx but as I use lyx as a latex "frontend" I>
>> guess it is appropriate to ask it here.>
>>>
>> I would like to make a specific page numbering style in the footer,>
>> something like:>
>>>
>>  page-number --->
>>>
>> A horizontal line in the footer which is interrupted by the page number>
>> in the center. Is this possible in lyx/latex? How?>
>>>
>>
> If you have the mboxfill package installed, you can change the page style to>
> "fancy" (Document>  Settings...>  Page Layout>  Headings style) and add the>
> following to the preamble of your document:>
>>
> \usepackage{mboxfill}>
> \cfoot{\mboxfill[2\width][c]{-}\thepage\mboxfill[2\width][c]{-}}>
>>
> Paul>
>>

This solution is OK, but I want a rule, not a dashed line.
Unfortunately my example did not reflect his accurately.

>
>
Another solution also using fancy page headers in the document settings >
but plain tex otherwise. Put this in the preamble.>
>
\def\hlinefill{\leavevmode\cleaders\hbox{\rule[0.6ex]{1em}{0.4pt}}\hfill}>
\fancyfoot{\hlinefill~~~\thepage~~~\hlinefill}>
>
In the above:>
- 0.6ex is the height of the line (looks kind of centered)>
- 1em is the width of a line segment which gets repeated to fill space>
- 0.4pt is the thickness of the line (this particular choice is a >
default value elsewhere in tex)>

This is what I need.

>
By the way, using fancy headers will add default headers, if you don't >
want them you get rid of them with>
>
\fancyhead{}>
>
-- >
Julien>
>


Thank you both,

bcsikos



Re: Forward/reverse searching problems under Windows (The Sequel)

2011-05-24 Thread Christopher Menzel
On May 23, 2011, at 3:33 PM, Enrico Forestieri wrote:
> Christopher Menzel writes:
>> 
>> That is, LyX is calling the appropriate forward search command for a PDF
>> preview document, not DVI.
> 
> LyX performs a forward search for the last generated format, so it means
> that you generated a pdf after the dvi, even if you quitted the pdf viewer
> and are now previewing the dvi.

Sorry, I guess I'm confused about the semantics of "generating a format" versus 
"previewing". What more do I have to do to "generate a format" beyond 
previewing?  From the documentation it appears that all I should have to do is 
generate a dvi preview:

   Forward search works both with DVI and PDF output. LyX simply
   checks which preview format you have used before (i.e., which
   format is already there in the temporary directory) and chooses
   the appropriate configuration for the respective format.

I have done that; the only thing in the Temp directory is a DVI file for my 
document. There is no sign of any PDF.  How do I "generate a formate" to tell 
LyX I'm using DVI now?

Thanks for your patience.

Chris Menzel



Re: Forward/reverse searching problems under Windows (The Sequel)

2011-05-24 Thread Enrico Forestieri
Christopher Menzel writes:
> 
> On May 23, 2011, at 3:33 PM, Enrico Forestieri wrote:
> > Christopher Menzel writes:
> >> 
> >> That is, LyX is calling the appropriate forward search command for a PDF
> >> preview document, not DVI.
> > 
> > LyX performs a forward search for the last generated format, so it means
> > that you generated a pdf after the dvi, even if you quitted the pdf viewer
> > and are now previewing the dvi.
> 
> Sorry, I guess I'm confused about the semantics of "generating a format"
> versus "previewing". What more do I have to do to "generate a format"
> beyond previewing?

If you hit the "update" button, a given format is generated (produced)
in the temp dir, but a previewer is not started.

>  From the documentation it appears that all I should
> have to do is generate a dvi preview:
> 
>Forward search works both with DVI and PDF output. LyX simply
>checks which preview format you have used before (i.e., which
>format is already there in the temporary directory) and chooses
>the appropriate configuration for the respective format.
> 
> I have done that; the only thing in the Temp directory is a DVI file
> for my document. There is no sign of any PDF. 

So, let's see whether we can solve this mystery by looking at the code.
The following is the relevant snippet in src/frontends/qt4/GuiView.cpp:

if (!dviname.exists() && !pdfname.exists()) {
dr.setMessage(_("Please, preview the document first."));
break;
}
string outname = dviname.onlyFileName();
string command = lyxrc.forward_search_dvi;
if (!dviname.exists() ||
pdfname.lastModified() > dviname.lastModified()) {
outname = pdfname.onlyFileName();
command = lyxrc.forward_search_pdf;
}

Firstly, LyX checks whether a dvi or pdf was generated. If not, the message
"Please, preview the document first." is issued.
Then, LyX assumes that you generated a dvi, but if no dvi exists or the
pdf is newer than the dvi, a pdf format is assumed.
Note that if no pdf exists, pdfname.lastModified() returns -1 and the
check pdfname.lastModified() > dviname.lastModified() is never true.
Thus, if no pdf exists a dvi forward search is always attempted.

Anyway, you say that a pdf search is tried, even if no pdf is in sight.
Let's se how that could happen. The lastModified() method returns a time_t
type, which is a signed type on all machines and compilers I have access to.
However, I don't have access to the MSVC compiler, which is the one used
for the Windows version you are using, most probably. I am able to compile
a Windows version with the MinGW compiler, and there it works.

So, the only way that a pdf search could be attempted is if the time_t type
is an unsigned type for the MSVC compiler. Indeed, in that case, the -1
would be interpreted as the greatest possible value and the check
pdfname.lastModified() > dviname.lastModified() would be always true.
I have no way to check that and someone building LyX with MSVC should
perform that test. It would suffice adding the line

   lyxerr << "pdf: " << pdfname.lastModified() << endl;

just before that snippet, trying a forward search with only a dvi generated
and looking at what is printed. If the result is

pdf: -1

the mystery remains unsolved (I always get that), but if it prints something
like

pdf: 2147483647

we found the bug.

So, can anyone compiling LyX with MSVC perform that check?

-- 
Enrico



Re: LyX for Mac OSX 10.6.7?

2011-05-24 Thread Eric Weir

On May 18, 2011, at 5:18 AM, Trevor Jenkins wrote:

> (be aware that the recommended MacTeX install is a pkg of 1.2Gb)

There is a much smaller package that can be installed that has all the TeX 
files required by LyX. See here: http://www.tug.org/mactex/morepackages.html

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net