Using Chemstyle in LyX

2011-08-15 Thread thekillingmachine
Hello,

I'm new to LaTeX/LyX so I don't know much of it. 
I would like to make use of the chemstyle-package for numbering chemical 
schemes and the coumpunds within them, if possible right in LyX by using 
TeX-Code. Hopefully someone has experience with this package and can help me.
When I try the procedure for substituting the temporary markers in a eps-scheme 
as explained in the package's manual, the temporary markers are recognised, but 
the new numbers are listed below the scheme, rather than at the position of the 
temporary markers. You can see the result here 
http://imageshack.us/photo/my-images/641/schemes.png/
Also, this only works when typesetting into .DVI, not into .PDF, which results 
in the error "You need to run LaTeX with the equivalent of "pdflatex 
-shell-escape". How could I do that with LyX?

I use LyX 2.0 and MiKTeX 2.9 on Windows 

Thanks in advance for any help,
Tobias
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!   
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Mon, Aug 15, 2011 at 7:44 AM, Zhaorong Wang  wrote:
> 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".
>
I don't know if you can alter the defaults in this case, but you could
do the following: when inserting the figure go to the 'LyX options'
tab and change the 'Scale on Screen' as desired, then 'Open new group'
and insert a grp name. Afterwards use 'right-click' on newly inserted
figure and use this group via the checkbox.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Helge Hafting

On 15. aug. 2011 07:44, Zhaorong Wang wrote:

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!


There is no "default settings" for new figures.

But here is a timesaver:

Make a template document for "progress reports". Include a figure in
the template, which have all the correct settings. (Such as width=100% 
of line length).


When you want to write a report, you use "File->New from template"
When you need the figure, you just change the filename in the template
figure, instead of adding a new figure. This is less work than first
adding a figure and then setting the width.

If you need more figures, just copy the first one and change the
filename in the copy. If a report doesn't need a figure, delete the
one provided by the template.

A template can of course have other non-default document settings set up 
the way you want your reports to be too.


Helge Hafting


Search within math mode

2011-08-15 Thread Mike Bonhoff
Hallo, Lyx-users,

I work with Lyx 2.0.0. now.
I have heard that it would be possible to search within the math mode with Lyx 
2.0.0. But it didn't work here I think (or I made a mistake):

I had some text with the greek letter phi (lyx code:
Ctrl+M \phi)

I am not able to find that phi afterwards. 
If I search for "phi" I can't find anything. Did I do anything wrong?

Thanks for your help!

Mike
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


Re: biblatex-chicago

2011-08-15 Thread Louis Turk
Hi Julio,

On 08/14/2011 11:30 PM, Julio Rojas wrote:
> 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 . 
If in the preamble I use

\usepackage[notes,autocite=footnote,natbib,citestyle=verbose-trad1]{biblatex-chicago}


I get this error message:


Package keyval Error: citestyle undefined.

...liographyOptions\expandafter{\cms@options}


> What I usually do is that I renew a command
> like "\citep" into "\autocite" adding the following command to the
> preamble:
>
> \renewcommand\citep{\autocite}
If I use:

\usepackage[notes,autocite=footnote,natbib]{biblatex-chicago}

\renewcommand\citep{\autocite}

\bibliography{/home/lat/notes-test}


only the bibtexkey prints, not the text it points to.

>
> 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.
As you can see above, I'm using the correct full path to the
bibliography file, but still no success.

I suspect that we are getting close though. Thanks for the help!

Louis
>
> Try this and let me know. Regards.
> -
> Julio Rojas



Re: Search within math mode

2011-08-15 Thread Richard Heck
On 08/15/2011 06:17 AM, Mike Bonhoff wrote:
> Hallo, Lyx-users,
>
> I work with Lyx 2.0.0. now.
> I have heard that it would be possible to search within the math mode with 
> Lyx 2.0.0. But it didn't work here I think (or I made a mistake):
>
> I had some text with the greek letter phi (lyx code:
> Ctrl+M \phi)
>
> I am not able to find that phi afterwards. 
> If I search for "phi" I can't find anything. Did I do anything wrong?
>
You need to use Advanced Search and Replace and search for a math phi.
I.e., type Ctrl+M \phi in the search pane itself.

Richard



Re: Author-Year-Page Citation Style

2011-08-15 Thread Julio Rojas
Maybe you would be able to send an small example with a bibliography
of just one reference.
-
Julio Rojas
jcredbe...@gmail.com



On Mon, Aug 15, 2011 at 5:48 PM, Bruce Pourciau
 wrote:
>
> On Aug 14, 2011, at 5:51 PM, Julio Rojas wrote:
>
>> 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
>
> Thanks for the advice. Adding "square" to the option does give me square
> brackets, so I'm getting a citation style like [12, 407], but I still cannot
> get the name-year style [Newton, 1999, 407], even though I have author-year
> selected in Document > Settings > Bibliography > Natbib > Author-year.
>
>
>>
>>
>>
>> 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: biblatex-chicago

2011-08-15 Thread Julio Rojas
BTW, as I don't have biber I have to remove most of your references
and only left the first one, which works perfectly with bibtex.

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



On Mon, Aug 15, 2011 at 6:45 PM, Julio Rojas  wrote:
> Try the attached document (change the bibliography path accordingly).
> I will remind you that I don't use biber, so I don't know if the
> problem lies there.
>
> Regards.
> -
> Julio Rojas
> jcredbe...@gmail.com
>
>
>
> On Mon, Aug 15, 2011 at 3:52 PM, Louis Turk  
> wrote:
>> Hi Julio,
>>
>> On 08/14/2011 11:30 PM, Julio Rojas wrote:
>>
>> 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 .
>>
>> If in the preamble I use
>>
>> \usepackage[notes,autocite=footnote,natbib,citestyle=verbose-trad1]{biblatex-chicago}
>>
>> I get this error message:
>>
>> Package keyval Error: citestyle undefined.
>>
>> ...liographyOptions\expandafter{\cms@options}
>>
>> What I usually do is that I renew a command
>> like "\citep" into "\autocite" adding the following command to the
>> preamble:
>>
>> \renewcommand\citep{\autocite}
>>
>> If I use:
>>
>> \usepackage[notes,autocite=footnote,natbib]{biblatex-chicago}
>>
>> \renewcommand\citep{\autocite}
>>
>> \bibliography{/home/lat/notes-test}
>>
>> only the bibtexkey prints, not the text it points to.
>>
>> 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.
>>
>> As you can see above, I'm using the correct full path to the bibliography
>> file, but still no success.
>>
>> I suspect that we are getting close though. Thanks for the help!
>>
>> Louis
>>
>> Try this and let me know. Regards.
>> -
>> Julio Rojas
>>
>


Re: biblatex-chicago

2011-08-15 Thread Julio Rojas
Rethinking on everything, I think the problem is biber. It seems that
it cannot process your bibtex file, which is why the citekey, not the
properly formatted reference, appears. You need to check both, your
bibtex file as well as your biber installation. BTW, why biber?
-
Julio Rojas
jcredbe...@gmail.com



On Mon, Aug 15, 2011 at 6:48 PM, Julio Rojas  wrote:
> BTW, as I don't have biber I have to remove most of your references
> and only left the first one, which works perfectly with bibtex.
>
> Regards.
> -
> Julio Rojas
> jcredbe...@gmail.com
>
>
>
> On Mon, Aug 15, 2011 at 6:45 PM, Julio Rojas  wrote:
>> Try the attached document (change the bibliography path accordingly).
>> I will remind you that I don't use biber, so I don't know if the
>> problem lies there.
>>
>> Regards.
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>>
>>
>>
>> On Mon, Aug 15, 2011 at 3:52 PM, Louis Turk  
>> wrote:
>>> Hi Julio,
>>>
>>> On 08/14/2011 11:30 PM, Julio Rojas wrote:
>>>
>>> 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 .
>>>
>>> If in the preamble I use
>>>
>>> \usepackage[notes,autocite=footnote,natbib,citestyle=verbose-trad1]{biblatex-chicago}
>>>
>>> I get this error message:
>>>
>>> Package keyval Error: citestyle undefined.
>>>
>>> ...liographyOptions\expandafter{\cms@options}
>>>
>>> What I usually do is that I renew a command
>>> like "\citep" into "\autocite" adding the following command to the
>>> preamble:
>>>
>>> \renewcommand\citep{\autocite}
>>>
>>> If I use:
>>>
>>> \usepackage[notes,autocite=footnote,natbib]{biblatex-chicago}
>>>
>>> \renewcommand\citep{\autocite}
>>>
>>> \bibliography{/home/lat/notes-test}
>>>
>>> only the bibtexkey prints, not the text it points to.
>>>
>>> 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.
>>>
>>> As you can see above, I'm using the correct full path to the bibliography
>>> file, but still no success.
>>>
>>> I suspect that we are getting close though. Thanks for the help!
>>>
>>> Louis
>>>
>>> Try this and let me know. Regards.
>>> -
>>> Julio Rojas
>>>
>>
>


Re: biblatex-chicago

2011-08-15 Thread Julio Rojas
Confirmed, at least from my side. The problem lies in your bibtex
file, which biber cannot process. I believe it has some characters,
that even if UTF-8 encoded, are not understood by biber. For example,
in one reference:

@INBOOK{ashbrook:brain,
  chapter = {7},
  title = {The Frontal Lobes, Intending, and a Purposeful God},
  publisher = {Pilgrim Press},
  year = {1997},
  author = {Ashbrook, James~B. and Albright, Carol Rausch},
  annote = {A typical InBook entry, identified by title and also, in this case,
by chapter number rather than page range.},
  booktitle = {The Humanizing Brain},
  location = {Cleveland, OH},
  shorttitle = {The Frontal Lobes}
}

You have a "~" in author. I removed this character and retried and it
seems to work with biber. Try yourself and let me know. Regards.
-
Julio Rojas
jcredbe...@gmail.com



On Mon, Aug 15, 2011 at 6:53 PM, Julio Rojas  wrote:
> Rethinking on everything, I think the problem is biber. It seems that
> it cannot process your bibtex file, which is why the citekey, not the
> properly formatted reference, appears. You need to check both, your
> bibtex file as well as your biber installation. BTW, why biber?
> -
> Julio Rojas
> jcredbe...@gmail.com
>
>
>
> On Mon, Aug 15, 2011 at 6:48 PM, Julio Rojas  wrote:
>> BTW, as I don't have biber I have to remove most of your references
>> and only left the first one, which works perfectly with bibtex.
>>
>> Regards.
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>>
>>
>>
>> On Mon, Aug 15, 2011 at 6:45 PM, Julio Rojas  wrote:
>>> Try the attached document (change the bibliography path accordingly).
>>> I will remind you that I don't use biber, so I don't know if the
>>> problem lies there.
>>>
>>> Regards.
>>> -
>>> Julio Rojas
>>> jcredbe...@gmail.com
>>>
>>>
>>>
>>> On Mon, Aug 15, 2011 at 3:52 PM, Louis Turk  
>>> wrote:
 Hi Julio,

 On 08/14/2011 11:30 PM, Julio Rojas wrote:

 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 .

 If in the preamble I use

 \usepackage[notes,autocite=footnote,natbib,citestyle=verbose-trad1]{biblatex-chicago}

 I get this error message:

 Package keyval Error: citestyle undefined.

 ...liographyOptions\expandafter{\cms@options}

 What I usually do is that I renew a command
 like "\citep" into "\autocite" adding the following command to the
 preamble:

 \renewcommand\citep{\autocite}

 If I use:

 \usepackage[notes,autocite=footnote,natbib]{biblatex-chicago}

 \renewcommand\citep{\autocite}

 \bibliography{/home/lat/notes-test}

 only the bibtexkey prints, not the text it points to.

 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.

 As you can see above, I'm using the correct full path to the bibliography
 file, but still no success.

 I suspect that we are getting close though. Thanks for the help!

 Louis

 Try this and let me know. Regards.
 -
 Julio Rojas

>>>
>>
>


Re: UNITY (in Ubuntu) kills menus

2011-08-15 Thread ehud.kap...@gmail.com
I agree about UNITY-- I find gnome to be a much better interface, but I 
wanted to try it before I decide, and discovered the menu bug, which 
affects other programs, not only Lyx.

Ehud Kaplan


On 8/11/2011 6:19 PM, Steve Litt wrote:

On Thursday, August 11, 2011 04:03:20 AM ehud.kap...@gmail.com wrote:

I have discovered that the new Ubuntu 11.04 GUI Unity (or perhaps
its appmenu) kills the menus on Lyx 2.0 (and several other
programs, such as VLC), possibly because of a qt4 incompatibility.
  The bug has been known for almost a year.  Does anyone have a way
of getting around it, short of using gnome instead of Unity?
Thanks,
EK

This response is non-responsive to your question, but...

Unity! Slowly I turn, step by step, inch by inch!

Never has a worse user interface been conceived or deployed. It even
beats out Windows 7 for lameness.

I have no idea how to fix Unity induced problems in any app, sorry.

I went back to classic when upgrading to Ubuntu 11.04. If a future
Ubuntu ever forces me to go Unity, I'll move away from Ubuntu.

SteveT

Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/bookstore/key_excellence.htm
Twitter: http://www.twitter.com/stevelitt






Re: Can I use lyx for a shopping list

2011-08-15 Thread Les Denham
On Fri, 12 Aug 2011 22:08:39 -0700
Monty Zukowski  wrote:

> 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.
> 
> Thanks for any pointers,
> 
Monty,

I use LyX for almost everything written, but it really isn't the best
tool for doing this. But you can make it work.

I'd suggest getting the columns by setting up a table with fixed
column widths. Use article class, and center the table using the
paragraph settings. Adjust the margins (Document->Settings->Page
Margins) and if you still have too much space at the top of the page
you can use Insert->Formatting->Vertical Space to put in a negative
space at the top of the page.

But I'd use a spreadsheet such as Gnumeric or LibreOffice Calc to do
the job.

Les



Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Tue, Aug 16, 2011 at 1:16 AM, Zhaorong Wang  wrote:
> I don't think I understand your solution. But thank you all the same :)
>
You could:
- insert figure
- change width to be as wide as the text width
- go to the 'LaTeX and LyX options' tab
- 'Open new group' and insert a grp name
- then, when inserting new figure, use 'right-click' on newly inserted
figure and make it belong to the group that you've just created. It
will re-use the settings (bar the image file name) of the first
figure.

Let me know if this makes more sense.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
(please reply to the list, too)


On Tue, Aug 16, 2011 at 8:07 AM, Zhaorong Wang  wrote:
> Hi Liviu,
> Now I understand! It is an awesome solution, even if the groups will
> no longer exist after I exit lyx.
>
I cannot reproduce this. After saving the document and restarting LyX,
the groups that are associated with at least one image are still
present in the document.


> Thank you so so much!
> Another question is, when I set the graph to be 100% page width,
> actually I want it to be centered
>
To centre a graph within a float you need to explicitly change the
paragraph alignment to 'centre'. In this case Helge's solution could
very well complement mine: when in need of a subsequent figure float,
copy/paste an existing one, click on the image and change the file
name. This way you will have kept all the settings of the original
figure float.


> and occupy all the page width. But
> it turns out to start at the left boundary of text, not the rim of the
> page. So actually the graph exceeds the right boundary a little bit.
> Is there any options I can use to alter it? Or maybe I'd better to set
> the graph to be the text width. But sometimes I just want to make a
> large resolution graph as big as possible on the page. And usually
> some figures, for example generated by Matlab already have blank
> margins. It waste some display space if it start from the left margin
> of the page. Refer to the attachment. Thanks!
>
I'm not sure what exactly you're aiming for, but I would suggest that
you experiment with the various 'width' options available (for
example, in addition to 'page' and 'text' you also have 'line width
%'; you may check Help > User's Guide for more info on this), keeping
in mind that you can specify '100 Page Width %', as well as '130 Page
Width %' or '70 Page Width %'. See what works best in your case.

Regards
Liviu