How to change the default setting of inserting a graph?

2011-08-14 Thread Zhaorong Wang
Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class "article".
Thanks for any help!

-- 
Cheers,
Zhaorong Wang

"Our first endeavors are purely instinctive prompting of an
imagination vivid and undisciplined. As we grow older reason asserts
itself and we become more and more systematic and designing. But those
early impulses, though not immediately productive, are of the greatest
moment and may shape our very destinies."
—Nikola Tesla


Re: Author-Year-Page Citation Style

2011-08-14 Thread Julio Rojas
You don't need \usepackage{natbib}  in the preamble, but select the
natbib option in Document -> Settings -> Bibliography. There you can
also select Author,Year. For square brackets add "square" to the
options in Document -> Settings -> Document Class -> Custom.

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



On Sun, Aug 14, 2011 at 11:02 PM, Richard Heck  wrote:
> On 08/14/2011 03:32 PM, Bruce Pourciau wrote:
>> I have a document in the Article (Elsevier) class, with Natbib
>> Author-Year selected under Bibliography and \usepackage{natbib} in the
>> preamble. I have a bibtex generated bibliography using the .bst style
>> file of the journal which is in the folder with my document.
>>
>> The bibliography is coming out fine, but the citations in the text
>> should be, say, [Newton, 1999, 407] and I'm getting a numerical style
>> with no brackets: 12, 407.
>>
> This is almost always due to a problem in the BibTeX file, e.g., a
> missing year somewhere, or possibly a Unicode character that is messing
> things up. Exporting to LaTeX and running everything manually from a
> terminal:
>    latex myfile
>    bibtex myfile
> should help. Error messages from the latter are what to look for.
>
> Richard
>
>


Re: Author-Year-Page Citation Style

2011-08-14 Thread Richard Heck
On 08/14/2011 03:32 PM, Bruce Pourciau wrote:
> I have a document in the Article (Elsevier) class, with Natbib
> Author-Year selected under Bibliography and \usepackage{natbib} in the
> preamble. I have a bibtex generated bibliography using the .bst style
> file of the journal which is in the folder with my document.
>
> The bibliography is coming out fine, but the citations in the text
> should be, say, [Newton, 1999, 407] and I'm getting a numerical style
> with no brackets: 12, 407.
>
This is almost always due to a problem in the BibTeX file, e.g., a
missing year somewhere, or possibly a Unicode character that is messing
things up. Exporting to LaTeX and running everything manually from a
terminal:
latex myfile
bibtex myfile
should help. Error messages from the latter are what to look for.

Richard



Re: Author-Year-Page Citation Style

2011-08-14 Thread Patrick Dupre

On Sun, 14 Aug 2011, Bruce Pourciau wrote:

I have a document in the Article (Elsevier) class, with Natbib Author-Year 
selected under Bibliography and \usepackage{natbib} in the preamble. I have a 
bibtex generated bibliography using the .bst style file of the journal which 
is in the folder with my document.


The bibliography is coming out fine, but the citations in the text should be, 
say, [Newton, 1999, 407] and I'm getting a numerical style with no brackets: 
12, 407.

Did you try Natbib numerical style?


LyX 1.6.5 on a Mac

Any suggestions would be welcome.

Bruce

P.S. I can live with a numerical style if I have to -- the journal will 
convert the numerical style to author-year (at least they did the last time) 
-- but I still would need the brackets: [12, 407], not just 12, 407.





--
---
==
 Patrick DUPRÉ  |   |
 Department of Chemistry|   |  Phone: (44)-(0)-1904-434384
 The University of York |   |  Fax:   (44)-(0)-1904-432516
 Heslington |   |
 York YO10 5DD  United Kingdom  |   |  email: patrick.du...@york.ac.uk
==

Author-Year-Page Citation Style

2011-08-14 Thread Bruce Pourciau
I have a document in the Article (Elsevier) class, with Natbib Author- 
Year selected under Bibliography and \usepackage{natbib} in the  
preamble. I have a bibtex generated bibliography using the .bst style  
file of the journal which is in the folder with my document.


The bibliography is coming out fine, but the citations in the text  
should be, say, [Newton, 1999, 407] and I'm getting a numerical style  
with no brackets: 12, 407.


LyX 1.6.5 on a Mac

Any suggestions would be welcome.

Bruce

P.S. I can live with a numerical style if I have to -- the journal  
will convert the numerical style to author-year (at least they did the  
last time) -- but I still would need the brackets: [12, 407], not just  
12, 407.





Re: Footnotes, new numbers from each chapter...

2011-08-14 Thread Frederick FN Noronha फ्रेडरिक नोरोन्या *فريدريك نورونيا
Thanks, Richard. Am using book (Memoire). Rgds, FN

Re: Footnotes, new numbers from each chapter...

Richard Heck
Sun, 14 Aug 2011 11:59:44 -0700

On 08/14/2011 02:35 PM, Kulkarni Shantanu wrote:
> *  Frederick FN Noronha  
> *?? ??   [110814 23:53]:
>> Dear all: Is there some way I could start the footnote number new with each
>> chapter -- that is, it should start from 1, 2, 3 etc at the start of every
>> chapter? Many thanks in advance. FN
> Please try the footmisc package. Something like,
> \usepackage[perpage]{footmisc}
>
No, he wanted them to start anew with each chapter, not on every page.

Frederick, the default behavior in most classes that have chapters
(article, e.g., does not) is for the footnote counter to be reset at the
start of each chapter. What class are you using?

Richard

FN +91-832-2409490 or +91-9822122436 (after 2pm)
#784 Nr Lourdes Convent, Saligao 403511 Goa India
http://fn.goa-india.org http://goa1556.goa-india.org


2011/8/14 Frederick FN Noronha फ्रेडरिक नोरोन्या *فريدريك نورونيا

>
> Dear all: Is there some way I could start the footnote number new with each 
> chapter -- that is, it should start from 1, 2, 3 etc at the start of every 
> chapter? Many thanks in advance. FN
>
> FN +91-832-2409490 or +91-9822122436 (after 2pm)
> #784 Nr Lourdes Convent, Saligao 403511 Goa India
> http://fn.goa-india.org http://goa1556.goa-india.org


Re: Footnotes, new numbers from each chapter...

2011-08-14 Thread Richard Heck
On 08/14/2011 02:35 PM, Kulkarni Shantanu wrote:
> *  Frederick FN Noronha   
> *?? ??   [110814 23:53]:
>> Dear all: Is there some way I could start the footnote number new with each
>> chapter -- that is, it should start from 1, 2, 3 etc at the start of every
>> chapter? Many thanks in advance. FN
> Please try the footmisc package. Something like,
> \usepackage[perpage]{footmisc}
>
No, he wanted them to start anew with each chapter, not on every page.

Frederick, the default behavior in most classes that have chapters
(article, e.g., does not) is for the footnote counter to be reset at the
start of each chapter. What class are you using?

Richard



Re: Footnotes, new numbers from each chapter...

2011-08-14 Thread Kulkarni Shantanu
*  Frederick FN Noronha   
*?? ??   [110814 23:53]:
> Dear all: Is there some way I could start the footnote number new with each
> chapter -- that is, it should start from 1, 2, 3 etc at the start of every
> chapter? Many thanks in advance. FN

Please try the footmisc package. Something like,
\usepackage[perpage]{footmisc}

Remember, it needs at least two passes to do this correctly.

Cheers,
Shantanu
www.shantanukulkarni.org
-- 


Footnotes, new numbers from each chapter...

2011-08-14 Thread Frederick FN Noronha फ्रेडरिक नोरोन्या *فريدريك نورونيا
Dear all: Is there some way I could start the footnote number new with each
chapter -- that is, it should start from 1, 2, 3 etc at the start of every
chapter? Many thanks in advance. FN


FN +91-832-2409490 or +91-9822122436 (after 2pm)
#784 Nr Lourdes Convent, Saligao 403511 Goa India
http://fn.goa-india.org http://goa1556.goa-india.org


Python Error on Windows 7? [was: Can't export in PDF]

2011-08-14 Thread Richard Heck
On 08/11/2011 05:15 AM, Anaïs Maréchal wrote:
> Hi everybody,
>
>
>
> I don't know much on Lyx, I tried to search in the previous bug and on
> the web but no results.
>
>
>
> I installed Lyx 2.0.0 on my Windows 7 laptop. I wrote a text, and when
> I want to visualize it, I have an error (cannot find the rapport.pdf
> file). So I tried to export my file in pdf, and I have an other error
> (with ps2pdf, but pdflatex works fine) :
> "An error happened during the execution :
> python -tt "C:/Program Files
> (x86)/LyX20/bin/../Resources/scripts/clean_dvi.py"
> "rapport.dvi" "tmpfile.out" "
>
> (I translate because I use the french version, so maybe it's not
> exactly the same in the english version)
>
>
> I also have an error from the conversion from bmp(or jpg) to eps, but
> I should look on the web to find how to solve this one.
>
It's possible these errors are related. There have been some reports of
such errors under Windows 7. They seem to involve LyX's not finding the
correct Python interpreter.

Perhaps someone on Windows can help with this. You might also try
looking back through the list archive, here:
http://marc.info/?l=lyx-users

Richard



Re: Caption location in subfig

2011-08-14 Thread Paul A . Rubin
Try \captionsetup[subfigure]{position=top,margin=0pt,singlelinecheck=false}.

Paul



Re: Can I use lyx for a shopping list

2011-08-14 Thread Jean-Pierre Chrétien
Monty Zukowski  codetransform.com> writes:

> 
> I'd like to lay out a 3x5 card shopping list in 3 columns.  I'm not
> sure what document class to use for something so basic, everything I
> tried likes to have a lot of space at the top.

You may take a look at Open>Examples>multicol.lyx file.

-- 
Jean-Pierre




Re: biblatex-chicago

2011-08-14 Thread Julio Rojas
As for the footnotes, you first have to use a biblatex style that
automatically makes use of "\footcite". For this, you need to add the
"citestyle" option
citestyle=verbose-trad1 . What I usually do is that I renew a command
like "\citep" into "\autocite" adding the following command to the
preamble:

\renewcommand\citep{\autocite}

As for the lack of references in the footnotes, it might be due to the
lack of the bibliography's full path in the preamble.

Try this and let me know. Regards.
-
Julio Rojas
jcredbe...@gmail.com



On Sun, Aug 14, 2011 at 3:49 PM, Louis Turk  wrote:
> Hi Julio,
>
> On 08/14/2011 05:07 AM, Julio Rojas wrote:
>> Louis, you also need to state the natbib option while loading
>> biblatex-chicago (page 3 of the manual, citep and citet are commands
>> implemented in natbib):
>>
>> \usepackage[notes,autocite=footnote,natbib]{biblatex-chicago}
>>
>> I don't have biber, but I believe that would be more than enough to
>> make it work. Regards.
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>
> Many thanks! It now compiles without an error message. However, the
> result is incorrect. The key is being printed instead of the citation,
> and it is in the text, not in a footnote. Example:
>
> This is a test.aristotle:metaphy:gr
>
> If I put \footcite{aristotle:metaphy:gr} in ERT, I get get a footnote
> number in the text as follows:
>
> This is a test.1
>
> but in the footnote itself only the key prints:
>
> 1 aristotle:metaphy:gr
>
> Many thanks for helping me with this. I've been trying to get this to
> work for a long time.
>
> Louis
>
>
>>
>>
>>
>> On Sat, Aug 13, 2011 at 10:23 PM, Louis Turk  
>> wrote:
>>> Hi Julio,
>>>
>>> On 08/14/2011 02:03 AM, Julio Rojas wrote:
>>>
>>> Dear Louis, I would like to help you, but today I'm kind of busy. Can
>>> you send an small example file (full preamble, bib file with one
>>> reference, text with the reference) so I can take a look at it?
>>>
>>> Regards.
>>>
>>> PS: I suppose that you are using Lyx 2.0, aren't you?
>>>
>>> Yes.
>>>
>>> The .lyx and .bib files are attached.
>>>
>>> The record I tried to cite is:
>>>
>>> @Book{adorno:benj,
>>>   title =      {The Complete Correspondence, 1928--1940},
>>>   publisher =      hup,
>>>   year =      1999,
>>>   author =      {Adorno, Theodor W. and Benjamin, Walter},
>>>   editor =      {Lonitz, Henri},
>>>   translator =      {Nicholas Walker},
>>>   location =  {Cambridge, MA},
>>>   shorttitle = {Complete Correspondence},
>>>   annote =      {A published collection of letters, in a Book entry
>>>                   rather than Letter. References to it would be by
>>>                   page rather than by individual letter.}
>>> }
>>>
>>> I've also attached the lyx log file, just is case you need it. I notice that
>>> there is no test-biblatex.bbl file. Does that make any difference?
>>>
>>> Many thanks for your help!
>>>
>>> Louis
>>>
>>>
>>>
>>>
>
>


Re: Create my own module

2011-08-14 Thread Richard Heck
On 08/14/2011 05:06 AM, Francesco Menoncin wrote:
> Dear LyX users,
>
> I am using LyX 2.0.0 (on both Windows and Linux).
> How can I create my own module and add it to the list in "Document
> Settings"?
>
Please see chapter 5 of the Customization manual. The process is
described there. In this case, you just need to wrap the preamble code
you want in:

AddToPreamble
> \RequirePackage{multicol}
>
> \renewenvironment{theindex}{
>
> \columnseprule 0pt\relax
>
> \columnsep 35pt\relax
>
> \chapter*{\indexname}
>
> \begin{multicols}{2}
>
> \@mkboth{\MakeUppercase \indexname}{\MakeUppercase \indexname}
>
> \thispagestyle{plain} \parindent 0pt\relax \parskip 0pt \@plus .3pt\relax
>
> \let\item\@idxitem}
>
> {\end{multicols}}
>
EndPreamble

and then add the module declaration code at the top. Oh, and don't
forget the format tag, which must be the first non-comment,
non-whitespace line.

Richard



Re: biblatex-chicago

2011-08-14 Thread Louis Turk
Hi Julio,

On 08/14/2011 05:07 AM, Julio Rojas wrote:
> Louis, you also need to state the natbib option while loading
> biblatex-chicago (page 3 of the manual, citep and citet are commands
> implemented in natbib):
>
> \usepackage[notes,autocite=footnote,natbib]{biblatex-chicago}
>
> I don't have biber, but I believe that would be more than enough to
> make it work. Regards.
> -
> Julio Rojas
> jcredbe...@gmail.com

Many thanks! It now compiles without an error message. However, the
result is incorrect. The key is being printed instead of the citation,
and it is in the text, not in a footnote. Example:

This is a test.aristotle:metaphy:gr

If I put \footcite{aristotle:metaphy:gr} in ERT, I get get a footnote
number in the text as follows:

This is a test.1

but in the footnote itself only the key prints:

1 aristotle:metaphy:gr

Many thanks for helping me with this. I've been trying to get this to
work for a long time.

Louis


>
>
>
> On Sat, Aug 13, 2011 at 10:23 PM, Louis Turk  
> wrote:
>> Hi Julio,
>>
>> On 08/14/2011 02:03 AM, Julio Rojas wrote:
>>
>> Dear Louis, I would like to help you, but today I'm kind of busy. Can
>> you send an small example file (full preamble, bib file with one
>> reference, text with the reference) so I can take a look at it?
>>
>> Regards.
>>
>> PS: I suppose that you are using Lyx 2.0, aren't you?
>>
>> Yes.
>>
>> The .lyx and .bib files are attached.
>>
>> The record I tried to cite is:
>>
>> @Book{adorno:benj,
>>   title =  {The Complete Correspondence, 1928--1940},
>>   publisher =  hup,
>>   year =  1999,
>>   author =  {Adorno, Theodor W. and Benjamin, Walter},
>>   editor =  {Lonitz, Henri},
>>   translator =  {Nicholas Walker},
>>   location =  {Cambridge, MA},
>>   shorttitle = {Complete Correspondence},
>>   annote =  {A published collection of letters, in a Book entry
>>   rather than Letter. References to it would be by
>>   page rather than by individual letter.}
>> }
>>
>> I've also attached the lyx log file, just is case you need it. I notice that
>> there is no test-biblatex.bbl file. Does that make any difference?
>>
>> Many thanks for your help!
>>
>> Louis
>>
>>
>>
>>



Create my own module

2011-08-14 Thread Francesco Menoncin

Dear LyX users,

I am using LyX 2.0.0 (on both Windows and Linux).
How can I create my own module and add it to the list in "Document 
Settings"?
For instance, I have put the following commands in the preamble in order 
to create a "balanced index"


\RequirePackage{multicol}

\renewenvironment{theindex}{

\columnseprule 0pt\relax

\columnsep 35pt\relax

\chapter*{\indexname}

\begin{multicols}{2}

\@mkboth{\MakeUppercase \indexname}{\MakeUppercase \indexname}

\thispagestyle{plain} \parindent 0pt\relax \parskip 0pt \@plus .3pt\relax

\let\item\@idxitem}

{\end{multicols}}


Nevertheless, if I were able to collect these commands in a module, I 
could use them in a much easier way.

Thank you,

Francesco

--

Francesco Menoncin
Università degli Studi di Brescia
Facoltà di Economia
Via S. Faustino, 74/B
25122 Brescia (Italy)
Tel: 0039-030-2988806
Fax: 0039-030-2988837
E-mail: menon...@eco.unibs.it
web: www.eco.unibs.it/~menoncin/