Silent install

2012-03-26 Thread Patrik Simunovic
Hi i'm trying to install LyX 2.0.3-1 silently with the /S command, but at the 
end of the installation the package installation window pops up and asks me if 
i want to download latex and alot more packages.
Is there a way to skip these steps so the install can finsih silent? i have 
installed Miktex 2.9.4407 before LyX 2.0.3.

Patrik


Re: Help with inserting APA citations

2012-03-26 Thread Shylock Muyengwa
Thanks Steffano

I edited the reference and everything works well


Shylock Muyengwa | PhD Candidate & Managing Editor
School of Natural Resources & Environment| Center for African Studies
University of Florida P O Box 112100 | Gainesville, FL 32611-2100
Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160
Skype shylockmuyengwa
P Before printing this e-mail think if it is necessary.




On Mon, Mar 26, 2012 at 6:40 PM, stefano franchi
wrote:

> Actually, I think you have a much simpler problem: your bib file is
> corrupted (probably because of the translation from Mendeley). There
> are no strange character in the original ref. Here is the correct ref,
> just downloaded from
> http://ideas.repec.org/p/pas/asarcc/2008-07.html#biblio
>
> @TechReport{RePEc:pas:asarcc:2008-07,
>  author={Raghbendra Jha and Sambit Bhattacharyya and Raghav Gaiha and
> Shylashri Shankar},
>  title={Capture of Anti-Poverty Programs: An Analysis of the National
> Rural Employment Guarantee Program in India},
>  year=2008,
>  month= ,
>  institution={Australian National University, Australia South Asia
> Research Centre},
>  type={ASARC Working Papers},
>  url={http://ideas.repec.org/p/pas/asarcc/2008-07.html},
>  number={2008-07},
>  abstract={Using pooled household level data for the Indian states of
> Rajasthan and Andhra Pradesh we find that the size of landholdings is
> a negative predictor of participation in the National Rural Employment
> Guarantee Program (NREGP). In state level analysis this pattern
> survives in Rajasthan but reverses in Andhra Pradesh where we notice a
> positive relationship. This paper examines whether this sign reversal
> in Andhra Pradesh is indicative of program capture in Andhra Pradesh
> and better targeting in Rajasthan. We compare land inequality,
> political interference, and geographical remoteness across the two
> states and conclude that program capture may be an issue in Andhra
> Pradesh, largely because of these reasons. We also find evidence of
> complementarity between NREGP and the Public Distribution System
> (PDS).},
>  keywords={Capture; Poverty; India}
> }
>
> it is a perfectly standard bibtex ref. So, forget what I said about
> unicode, etcetera. Just go back to Mendeley and look into the export
> actions you originally took. I think something went wrong there. It
> may be an encoding issue. Sorry I cannot help more, but I've never
> used mendeley.
>
> Cheers,
>
> Stefano
>
>
>
>
>
> --
> __
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic StudiesPh:   +1 (979) 845-2125
> Texas A&M University  Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>
> stef...@tamu.edu
> http://stefano.cleinias.org
>


Re: Help with inserting APA citations

2012-03-26 Thread stefano franchi
Actually, I think you have a much simpler problem: your bib file is
corrupted (probably because of the translation from Mendeley). There
are no strange character in the original ref. Here is the correct ref,
just downloaded from
http://ideas.repec.org/p/pas/asarcc/2008-07.html#biblio

@TechReport{RePEc:pas:asarcc:2008-07,
  author={Raghbendra Jha and Sambit Bhattacharyya and Raghav Gaiha and
Shylashri Shankar},
  title={Capture of Anti-Poverty Programs: An Analysis of the National
Rural Employment Guarantee Program in India},
  year=2008,
  month= ,
  institution={Australian National University, Australia South Asia
Research Centre},
  type={ASARC Working Papers},
  url={http://ideas.repec.org/p/pas/asarcc/2008-07.html},
  number={2008-07},
  abstract={Using pooled household level data for the Indian states of
Rajasthan and Andhra Pradesh we find that the size of landholdings is
a negative predictor of participation in the National Rural Employment
Guarantee Program (NREGP). In state level analysis this pattern
survives in Rajasthan but reverses in Andhra Pradesh where we notice a
positive relationship. This paper examines whether this sign reversal
in Andhra Pradesh is indicative of program capture in Andhra Pradesh
and better targeting in Rajasthan. We compare land inequality,
political interference, and geographical remoteness across the two
states and conclude that program capture may be an issue in Andhra
Pradesh, largely because of these reasons. We also find evidence of
complementarity between NREGP and the Public Distribution System
(PDS).},
  keywords={Capture; Poverty; India}
}

it is a perfectly standard bibtex ref. So, forget what I said about
unicode, etcetera. Just go back to Mendeley and look into the export
actions you originally took. I think something went wrong there. It
may be an encoding issue. Sorry I cannot help more, but I've never
used mendeley.

Cheers,

Stefano





-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Help with inserting APA citations

2012-03-26 Thread Shylock Muyengwa
Find below.
Thanks Stefano.
You are right is has strange characters. I migrated my entire library from
Mendeley. I guess the encoding did not go well. I would rather switch the
reference manager than redo all references because the database is huge. I
hope the biblatex+biber combination will help

@ARTICLE{Jha2009,
  author = {Jha, Raghbendra and Bhattacharyya, Sambit and Gaiha, Raghav and
Shankar,
 Shylashri},
  title = {{“Capture� of anti-poverty programs: An analysis of the
National
 Rural Employment Guarantee Program in India☆}},
  journal = {Journal of Asian Economics},
  year = {2009},
  volume = {20},
  pages = {456--464},
  number = {4},
  month = sep,
  doi = {10.1016/j.asieco.2009.03.003},
  isbn = {1049-0078},
  issn = {10490078},
  keywords = {Capture Poverty India},
  url = {
http://www.sciencedirect.com/science/article/B6W53-4VY2C8H-1/2/7ee81d588faaf47a92855ffd6bfba464
http://linkinghub.elsevier.com/retrieve/pii/S1049007809000311}
}


Shylock Muyengwa | PhD Candidate & Managing Editor
School of Natural Resources & Environment| Center for African Studies
University of Florida P O Box 112100 | Gainesville, FL 32611-2100
Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160
Skype shylockmuyengwa
P Before printing this e-mail think if it is necessary.




On Mon, Mar 26, 2012 at 6:19 PM, stefano franchi
wrote:

> Well,
>
> I am out of my depth when it comes to Windows, but the problem seems
> to be related to line 29 of your bbl file. So it is a reference that
> gives you problems, most likely. And my guess is that it is the
> reference with key Jha2009 (your second one). What does it look like?
> Does it contain any strange char? Perhaps it is malformed (missing
> braces, etc)? Can you post it (not the whole bib file, just that ref)?
>
>
> Cheers,
>
> Stefano
>
>
>
>
> On Mon, Mar 26, 2012 at 4:55 PM, Shylock Muyengwa
>  wrote:
> > Dear Stefano
> >
> > Find attached while I try your suggestions.
> >
> > I am using Windows 7 sorry for not mentioning this in the first place
> >
> > SM
> >
> > Shylock Muyengwa | PhD Candidate & Managing Editor
> > School of Natural Resources & Environment| Center for African Studies
> > University of Florida P O Box 112100 | Gainesville, FL 32611-2100
> > Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google
> 352.575.0160
> > Skype shylockmuyengwa
> > P Before printing this e-mail think if it is necessary.
> >
> >
> >
> >
> > On Mon, Mar 26, 2012 at 5:49 PM, stefano franchi <
> stefano.fran...@gmail.com>
> > wrote:
> >>
> >> Hmm,
> >>
> >> I would need to see a bit more of the log, but my guess is you are
> >> using a bib file that contains unicode characters (since the problem
> >> occurs only when you insert references). Bibtex does not play along
> >> very well with unicode. Some would say it does not play at all. If
> >> this is the problem, you basically have two options:
> >>
> >> 1. go over your bib file and change all the "strange" characters (all
> >> the characters with diacritic signs, for instance) to their Latex
> >> "fakes". For instance an a with acute character becomes {\'a}
> >>
> >> 2. Alternatively, leave your bib files untouched and switch to a full
> >> unicode tex suite, including a bibliography program that understand
> >> Unicode. I would recommend the biblatex+biber combination, which is
> >> now pretty much supported by lyx (with some preamble code needed,
> >> though).
> >>
> >>
> >> To confirm the problem:
> >>
> >> 1. Check the encoding of your bib file. How to do this depend on the
> >> platform you're on. On linux, an easy way (GUI) is to use a  text
> >> editor like Kate or a ref manager like JabRef.
> >>
> >> 2. Look into your bib file for the reference that gives you problems,
> >> and particularly for the string  "Guarantee Program in India" Those
> >> two weird characters after India are a telltale of a Unicode problem,
> >> I think. It is a Unicode two-byte sequence that bibtex/Latex does not
> >> understand and renders as single-byte characters
> >>
> >>
> >> If you can post a fuller version of the log (more context, i.e. more
> >> lines before and after the error) and perhaps the reference that gives
> >> you troubles, I may be able to help more.
> >>
> >> Cheers,
> >>
> >> Stefano
> >>
> >> On Mon, Mar 26, 2012 at 4:36 PM, Shylock Muyengwa
> >>  wrote:
> >> > I am using Lyx version 2.03 and bibtex (JabRef). I am writing an
> article
> >> > using the APA style. I am able to insert one reference only  (in the
> >> > entire
> >> > document) and whenever I cite an new author, and attempt to view the
> >> > PDF, I
> >> > get an an error message.
> >> >
> >> > "Package inputech Error: Keyboard character not defined" and the
> >> > description
> >> > reads
> >> > [Guarantee Program in India☆}}
> >> >
> >> > .{\BBCQ}
> >> >
> >> > You need to provide a definition with \DeclareInputText
> >> >
> >> > or \DeclareInputMath before using this key.]
> >> >
> >> >
> >> > Any help appreciated
> >> >
> 

Re: Help with inserting APA citations

2012-03-26 Thread stefano franchi
Well,

I am out of my depth when it comes to Windows, but the problem seems
to be related to line 29 of your bbl file. So it is a reference that
gives you problems, most likely. And my guess is that it is the
reference with key Jha2009 (your second one). What does it look like?
Does it contain any strange char? Perhaps it is malformed (missing
braces, etc)? Can you post it (not the whole bib file, just that ref)?


Cheers,

Stefano




On Mon, Mar 26, 2012 at 4:55 PM, Shylock Muyengwa
 wrote:
> Dear Stefano
>
> Find attached while I try your suggestions.
>
> I am using Windows 7 sorry for not mentioning this in the first place
>
> SM
>
> Shylock Muyengwa | PhD Candidate & Managing Editor
> School of Natural Resources & Environment| Center for African Studies
> University of Florida P O Box 112100 | Gainesville, FL 32611-2100
> Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160
> Skype shylockmuyengwa
> P Before printing this e-mail think if it is necessary.
>
>
>
>
> On Mon, Mar 26, 2012 at 5:49 PM, stefano franchi 
> wrote:
>>
>> Hmm,
>>
>> I would need to see a bit more of the log, but my guess is you are
>> using a bib file that contains unicode characters (since the problem
>> occurs only when you insert references). Bibtex does not play along
>> very well with unicode. Some would say it does not play at all. If
>> this is the problem, you basically have two options:
>>
>> 1. go over your bib file and change all the "strange" characters (all
>> the characters with diacritic signs, for instance) to their Latex
>> "fakes". For instance an a with acute character becomes {\'a}
>>
>> 2. Alternatively, leave your bib files untouched and switch to a full
>> unicode tex suite, including a bibliography program that understand
>> Unicode. I would recommend the biblatex+biber combination, which is
>> now pretty much supported by lyx (with some preamble code needed,
>> though).
>>
>>
>> To confirm the problem:
>>
>> 1. Check the encoding of your bib file. How to do this depend on the
>> platform you're on. On linux, an easy way (GUI) is to use a  text
>> editor like Kate or a ref manager like JabRef.
>>
>> 2. Look into your bib file for the reference that gives you problems,
>> and particularly for the string  "Guarantee Program in India" Those
>> two weird characters after India are a telltale of a Unicode problem,
>> I think. It is a Unicode two-byte sequence that bibtex/Latex does not
>> understand and renders as single-byte characters
>>
>>
>> If you can post a fuller version of the log (more context, i.e. more
>> lines before and after the error) and perhaps the reference that gives
>> you troubles, I may be able to help more.
>>
>> Cheers,
>>
>> Stefano
>>
>> On Mon, Mar 26, 2012 at 4:36 PM, Shylock Muyengwa
>>  wrote:
>> > I am using Lyx version 2.03 and bibtex (JabRef). I am writing an article
>> > using the APA style. I am able to insert one reference only  (in the
>> > entire
>> > document) and whenever I cite an new author, and attempt to view the
>> > PDF, I
>> > get an an error message.
>> >
>> > "Package inputech Error: Keyboard character not defined" and the
>> > description
>> > reads
>> > [Guarantee Program in India☆}}
>> >
>> > .{\BBCQ}
>> >
>> > You need to provide a definition with \DeclareInputText
>> >
>> > or \DeclareInputMath before using this key.]
>> >
>> >
>> > Any help appreciated
>> >
>> > Thanks
>> >
>> > Shylock Muyengwa | PhD Candidate & Managing Editor
>> > School of Natural Resources & Environment| Center for African Studies
>> > University of Florida P O Box 112100 | Gainesville, FL 32611-2100
>> > Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google
>> > 352.575.0160
>> > Skype shylockmuyengwa
>> > P Before printing this e-mail think if it is necessary.
>> >
>> >
>>
>>
>>
>> --
>> __
>> Stefano Franchi
>> Associate Research Professor
>> Department of Hispanic Studies            Ph:   +1 (979) 845-2125
>> Texas A&M University                          Fax:  +1 (979) 845-6421
>> College Station, Texas, USA
>>
>> stef...@tamu.edu
>> http://stefano.cleinias.org
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Help with inserting APA citations

2012-03-26 Thread Shylock Muyengwa
Dear Stefano

Find attached while I try your suggestions.

I am using Windows 7 sorry for not mentioning this in the first place

SM

Shylock Muyengwa | PhD Candidate & Managing Editor
School of Natural Resources & Environment| Center for African Studies
University of Florida P O Box 112100 | Gainesville, FL 32611-2100
Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160
Skype shylockmuyengwa
P Before printing this e-mail think if it is necessary.




On Mon, Mar 26, 2012 at 5:49 PM, stefano franchi
wrote:

> Hmm,
>
> I would need to see a bit more of the log, but my guess is you are
> using a bib file that contains unicode characters (since the problem
> occurs only when you insert references). Bibtex does not play along
> very well with unicode. Some would say it does not play at all. If
> this is the problem, you basically have two options:
>
> 1. go over your bib file and change all the "strange" characters (all
> the characters with diacritic signs, for instance) to their Latex
> "fakes". For instance an a with acute character becomes {\'a}
>
> 2. Alternatively, leave your bib files untouched and switch to a full
> unicode tex suite, including a bibliography program that understand
> Unicode. I would recommend the biblatex+biber combination, which is
> now pretty much supported by lyx (with some preamble code needed,
> though).
>
>
> To confirm the problem:
>
> 1. Check the encoding of your bib file. How to do this depend on the
> platform you're on. On linux, an easy way (GUI) is to use a  text
> editor like Kate or a ref manager like JabRef.
>
> 2. Look into your bib file for the reference that gives you problems,
> and particularly for the string  "Guarantee Program in India" Those
> two weird characters after India are a telltale of a Unicode problem,
> I think. It is a Unicode two-byte sequence that bibtex/Latex does not
> understand and renders as single-byte characters
>
>
> If you can post a fuller version of the log (more context, i.e. more
> lines before and after the error) and perhaps the reference that gives
> you troubles, I may be able to help more.
>
> Cheers,
>
> Stefano
>
> On Mon, Mar 26, 2012 at 4:36 PM, Shylock Muyengwa
>  wrote:
> > I am using Lyx version 2.03 and bibtex (JabRef). I am writing an article
> > using the APA style. I am able to insert one reference only  (in the
> entire
> > document) and whenever I cite an new author, and attempt to view the
> PDF, I
> > get an an error message.
> >
> > "Package inputech Error: Keyboard character not defined" and the
> description
> > reads
> > [Guarantee Program in India☆}}
> >
> > .{\BBCQ}
> >
> > You need to provide a definition with \DeclareInputText
> >
> > or \DeclareInputMath before using this key.]
> >
> >
> > Any help appreciated
> >
> > Thanks
> >
> > Shylock Muyengwa | PhD Candidate & Managing Editor
> > School of Natural Resources & Environment| Center for African Studies
> > University of Florida P O Box 112100 | Gainesville, FL 32611-2100
> > Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google
> 352.575.0160
> > Skype shylockmuyengwa
> > P Before printing this e-mail think if it is necessary.
> >
> >
>
>
>
> --
> __
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic StudiesPh:   +1 (979) 845-2125
> Texas A&M University  Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>
> stef...@tamu.edu
> http://stefano.cleinias.org
>
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded 
format=pdflatex 2012.2.19)  26 MAR 2012 17:51
entering extended mode
**cooptncounter.tex

(C:\Users\abia\AppData\Local\Temp\lyx_tmpdir.Hp4316\lyx_tmpbuf9\cooptncounter.t
ex
LaTeX2e <2011/06/27>
Babel  and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.

("C:\Program Files\MiKTeX 2.9\tex\latex\apa\apa.cls"
Document Class: apa 2008/12/09 American Psychological Association format v1.3.4


Class apa Warning: Using BibTeX with apacite for citations and references.

("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part

Re: Help with inserting APA citations

2012-03-26 Thread stefano franchi
Hmm,

I would need to see a bit more of the log, but my guess is you are
using a bib file that contains unicode characters (since the problem
occurs only when you insert references). Bibtex does not play along
very well with unicode. Some would say it does not play at all. If
this is the problem, you basically have two options:

1. go over your bib file and change all the "strange" characters (all
the characters with diacritic signs, for instance) to their Latex
"fakes". For instance an a with acute character becomes {\'a}

2. Alternatively, leave your bib files untouched and switch to a full
unicode tex suite, including a bibliography program that understand
Unicode. I would recommend the biblatex+biber combination, which is
now pretty much supported by lyx (with some preamble code needed,
though).


To confirm the problem:

1. Check the encoding of your bib file. How to do this depend on the
platform you're on. On linux, an easy way (GUI) is to use a  text
editor like Kate or a ref manager like JabRef.

2. Look into your bib file for the reference that gives you problems,
and particularly for the string  "Guarantee Program in India" Those
two weird characters after India are a telltale of a Unicode problem,
I think. It is a Unicode two-byte sequence that bibtex/Latex does not
understand and renders as single-byte characters


If you can post a fuller version of the log (more context, i.e. more
lines before and after the error) and perhaps the reference that gives
you troubles, I may be able to help more.

Cheers,

Stefano

On Mon, Mar 26, 2012 at 4:36 PM, Shylock Muyengwa
 wrote:
> I am using Lyx version 2.03 and bibtex (JabRef). I am writing an article
> using the APA style. I am able to insert one reference only  (in the entire
> document) and whenever I cite an new author, and attempt to view the PDF, I
> get an an error message.
>
> "Package inputech Error: Keyboard character not defined" and the description
> reads
> [Guarantee Program in India☆}}
>
> .{\BBCQ}
>
> You need to provide a definition with \DeclareInputText
>
> or \DeclareInputMath before using this key.]
>
>
> Any help appreciated
>
> Thanks
>
> Shylock Muyengwa | PhD Candidate & Managing Editor
> School of Natural Resources & Environment| Center for African Studies
> University of Florida P O Box 112100 | Gainesville, FL 32611-2100
> Office 352.273.4751| Fax 352.392.2435|Home352.846.5459| Google 352.575.0160
> Skype shylockmuyengwa
> P Before printing this e-mail think if it is necessary.
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Difficulty viewing pdf output

2012-03-26 Thread Art Edwards
On 03/25/2012 05:13 PM, Paul A. Rubin wrote:
> Art Edwards  icantbelieveimdoingthis.com> writes:
>
>> Could not display "/tmp/lyx_tmpdir.T25823/lyx_tmpbuf2/MRS_2012.pdf"
>>
>> The location is not a folder.
>>
>> The pdf file exists and is viewable, just not using the view button in lyx.
>>
> Just to be clear, you're saying that if you do View > PDF or View > PDF
> (pdflatex) in LyX, you find the aforenamed PDF file in the LyX buffer 
> directory,
> and you can open it manually in your preferred viewer, but LyX reports the
> quoted error message?  That being the case, if you look at Tools > 
> Preferences >
> File Handling > File Formats and select the appropriate (say, PDF (pdflatex)),
> is the Viewer field set correctly?
>
> Paul
>
>
Yes to everything above the last question. That was the problem. The
Viewer field was set to xdg-open. I changed it to acroread and it works!

Many thanks.

Art Edwards


Re: Article layout for plos?

2012-03-26 Thread Alex Vergara Gil


El 26/03/2012 10:11 a.m., Richard Heck escribió:

On 03/26/2012 10:48 AM, Alex Vergara Gil wrote:

El 23/03/2012 12:33 a.m., Niklas Huldén escribió:

On 22.3.2012 20:36, David L. Johnson wrote:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:

I have an objection to the use of bibitems in LyX: If you use BibTeX
you can choose the bibliographic standard such as Vancouver, etc,
besides the BibTeX sorts bibliography items in the required order
acordingly to the standard; with LyX's bibitems you simply cannot do
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never 
seen the

need to bother with bibtex.  Most of my papers have maybe 5-10
references, that is certainly easy enough to do "by hand".



The bibitems are also extremely convenient to use if you have to 
cite more odd sources like interviews from certain archives and so 
on. I usually have two environments for my sources; first the 
oddballs from different archives as bibitems, followed by the 
literature references as a BibTeX bibliography. Both can be seen in 
the LyX citing menus.


Niklas Huldén

Imagine now that you have finished your work, but then  your editor 
tells you that he wants the bibliography in Vancouver format, but you 
have write it in consecutive order of appearance format, then you 
must re-sort one by one all the cites, imagine now that your work is 
a book with 1e3 cites... You cannot educate all the editors in the 
planet, so they agree from what they ask in the beginning and what 
they ask for your final work (in thet period his/her taste might have 
changed, or the publisher might change the requirements, etc)
I simply cannot imagine doing this right now with LyX without BibTeX. 
My objective with this discussion is that BibTex must be integrated 
into LyX in a way it is transparent for editors. Remember, as a 
general rule editors doesn't want more than one file to read or to 
compile.
As an advantage we gain is to have the behaviour you mentioned but 
now with the power of BibTeX to re-sort and re-format cites.


So the way to get what you want most easily, it seems to me, is to use 
BibTeX from the beginning, and then when you need to send the MS to 
the editor, you export to LaTeX and run the script discussed here:

http://www.lyx.org/trac/ticket/4624
Ok, this is definitively what I meant, :) , thanks to Richard for this 
script, it is included into my LyX 2.0.0 by default but it is not setted 
up by default so I don't knew about it existence, my bad. I was trying 
to run it but up to now I have no luck. I followed these steps
 1. I create a ltxbbl file format with the "document" and "appear in 
export" marks setted

 2. I define a conversor from LaTeX to ltxbbl with the "needaux" flag
 3. I run the conversor in my file but, although it gave me no error, 
it doesn't integrate the bibtex into the latex file
I have read the script and it looks for a bbl file, what I have is a bib 
file. Did I must define a conversor for bib->bbl too??? Is not this 
already done by bibtex? How must I proceed now?


which is included with LyX. As also mentioned there, you can configure 
an export format so that the script will run automatically. What it 
does is embed the contents of the bbl file into the exported document 
in place of the BibTeX stuff. If you reimport the generated file into 
LyX, these will now appear as bibitems. Of course, you can undo the 
process later, if you wish, by deleting all of them and re-inserting 
the BibTeX stuff.


Building what is effectively a BibTeX editor into LyX does not look 
worth the effort to me, given that one can do what I just described.


Richard





Re: Article layout for plos?

2012-03-26 Thread Richard Heck

On 03/26/2012 10:48 AM, Alex Vergara Gil wrote:

El 23/03/2012 12:33 a.m., Niklas Huldén escribió:

On 22.3.2012 20:36, David L. Johnson wrote:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:

I have an objection to the use of bibitems in LyX: If you use BibTeX
you can choose the bibliographic standard such as Vancouver, etc,
besides the BibTeX sorts bibliography items in the required order
acordingly to the standard; with LyX's bibitems you simply cannot do
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen 
the

need to bother with bibtex.  Most of my papers have maybe 5-10
references, that is certainly easy enough to do "by hand".



The bibitems are also extremely convenient to use if you have to cite 
more odd sources like interviews from certain archives and so on. I 
usually have two environments for my sources; first the oddballs from 
different archives as bibitems, followed by the literature references 
as a BibTeX bibliography. Both can be seen in the LyX citing menus.


Niklas Huldén

Imagine now that you have finished your work, but then  your editor 
tells you that he wants the bibliography in Vancouver format, but you 
have write it in consecutive order of appearance format, then you must 
re-sort one by one all the cites, imagine now that your work is a book 
with 1e3 cites... You cannot educate all the editors in the planet, so 
they agree from what they ask in the beginning and what they ask for 
your final work (in thet period his/her taste might have changed, or 
the publisher might change the requirements, etc)
I simply cannot imagine doing this right now with LyX without BibTeX. 
My objective with this discussion is that BibTex must be integrated 
into LyX in a way it is transparent for editors. Remember, as a 
general rule editors doesn't want more than one file to read or to 
compile.
As an advantage we gain is to have the behaviour you mentioned but now 
with the power of BibTeX to re-sort and re-format cites.


So the way to get what you want most easily, it seems to me, is to use 
BibTeX from the beginning, and then when you need to send the MS to the 
editor, you export to LaTeX and run the script discussed here:

http://www.lyx.org/trac/ticket/4624
which is included with LyX. As also mentioned there, you can configure 
an export format so that the script will run automatically. What it does 
is embed the contents of the bbl file into the exported document in 
place of the BibTeX stuff. If you reimport the generated file into LyX, 
these will now appear as bibitems. Of course, you can undo the process 
later, if you wish, by deleting all of them and re-inserting the BibTeX 
stuff.


Building what is effectively a BibTeX editor into LyX does not look 
worth the effort to me, given that one can do what I just described.


Richard



Re: Questions about LyX files

2012-03-26 Thread Richard Heck

On 03/26/2012 10:32 AM, David L. Johnson wrote:

On 03/26/2012 09:35 AM, Bieniasz wrote:
1) I notice that apart from *.lyx files there are also files with 
extension
lyx~. I presume these are "previous" versions of the *.lyx files, 
produced

when any changes are made to the *.lyx files. Is this so?

Yes, but it only applies to the current editing session.  The ~ file 
is a copy of what you had when you started working on the file.  Next 
time you load the file into LyX, it overwrites that ~ file with the 
then current version.


LyX produces such a file each time you save, if you've not disabled this 
feature.


2) I observe that some other files are also created, the names of 
which begin

with #. What are these files, and can I delete them safely?


Those are emergency saves, if LyX crashed.

These are autosave files, if you've asked LyX to save automatically 
every N minutes. But they should be removed by LyX on shutdown. If not, 
then, yes, there was probably a crash. Emergency save files have names 
like: file.emergency.lyx.


Richard



Re: Questions about LyX files

2012-03-26 Thread David L. Johnson

On 03/26/2012 09:35 AM, Bieniasz wrote:

1) I notice that apart from *.lyx files there are also files with extension
lyx~. I presume these are "previous" versions of the *.lyx files, produced
when any changes are made to the *.lyx files. Is this so?
Yes, but it only applies to the current editing session.  The ~ file is 
a copy of what you had when you started working on the file.  Next time 
you load the file into LyX, it overwrites that ~ file with the then 
current version.

2) I observe that some other files are also created, the names of which begin
with #. What are these files, and can I delete them safely?

Those are emergency saves, if LyX crashed.

3) I am not sure about the relationships between the *.lyx files and
*.tex files. It seems to me that the *.tex files are not updated or used
at all during the LyX operations, but all changes are saved in *.lyx files. Is
this correct? If so, can I delete all *.tex files? I presume the *.tex files
can be re-created by using the file/export command. Is this correct?


Yes.  *.tex files in your user directory are only created when you 
export to TeX, and not automatically updated.  There are other files, in 
(well, for linux) /tmp/* which are created and used during conversions 
to other formats, or for printing.

Can I be sure that if I import a *.tex file into LyX, and then export the
result into another *.tex file, the two *.tex files will be identical
(assuming I do not do any editing)?


No, you can't.  There are too many ways to encode things in TeX.  LyX 
uses only a subset of those.  Fortunately, the importer understands a 
broader range, but still exports will be LyX's flavor of TeX.


--

David L. Johnson

The motor car reflects our standard of living and gauges the speed of
our present life. It long ago ran down Simple Living, and never halted
to inquire about the prostrate figure which fell as its victim.
-- Warren G. Harding



psfrag

2012-03-26 Thread Megnin, Christof (IMT)
Hallo Lyx-Team,

ich habe die Bilder in Lyx als eps eingefügt und möchte nun Versuchen die 
Schriften innerhalb der Bilder durch das Paket psfrag zu ändern.

Wie kann ich das machen oder was muss ich als Latex schreiben, damit das 
funktioniert?


Gruß
Christof

Re: References out of order

2012-03-26 Thread Alex Vergara Gil


El 26/03/2012 05:36 a.m., Chris Hennick escribió:

Hi all,

I'm using the IEEEtran template. Since the numbered references aren't 
alphabetical in the bibliography, I assume they're intended to be in 
order of first citation. But sometimes they aren't, if the citation 
order changes during editing. How do I re-sort and renumber the 
references when necessary?


Sincerely,
Chris Hennick
Trent University
Peterborough, ON, Canada
http://softwetware.blogspot.com/


Hi Lyxers:

This is the main reason why I still use BibTeX, it do all this job with 
just one click. See my other discussion already active


Alex


Re: problem with subscripts

2012-03-26 Thread William Seager
On Monday 26 March 2012 13:41:15 Bieniasz wrote:
> Hi,
> 
> I need to produce some symbols with a subscript inside the text.
> Is there any way to do this without inserting expressions into the text?

does not 

   Insert -- Formatting -- Subscript

work for you?
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: Article layout for plos?

2012-03-26 Thread Alex Vergara Gil

El 23/03/2012 12:33 a.m., Niklas Huldén escribió:

On 22.3.2012 20:36, David L. Johnson wrote:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:

I have an objection to the use of bibitems in LyX: If you use BibTeX
you can choose the bibliographic standard such as Vancouver, etc,
besides the BibTeX sorts bibliography items in the required order
acordingly to the standard; with LyX's bibitems you simply cannot do
this and is like turning back to MS Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never seen the
need to bother with bibtex.  Most of my papers have maybe 5-10
references, that is certainly easy enough to do "by hand".



The bibitems are also extremely convenient to use if you have to cite 
more odd sources like interviews from certain archives and so on. I 
usually have two environments for my sources; first the oddballs from 
different archives as bibitems, followed by the literature references 
as a BibTeX bibliography. Both can be seen in the LyX citing menus.


Niklas Huldén
Imagine now that you have finished your work, but then  your editor 
tells you that he wants the bibliography in Vancouver format, but you 
have write it in consecutive order of appearance format, then you must 
re-sort one by one all the cites, imagine now that your work is a book 
with 1e3 cites... You cannot educate all the editors in the planet, so 
they agree from what they ask in the beginning and what they ask for 
your final work (in thet period his/her taste might have changed, or the 
publisher might change the requirements, etc)
I simply cannot imagine doing this right now with LyX without BibTeX. My 
objective with this discussion is that BibTex must be integrated into 
LyX in a way it is transparent for editors. Remember, as a general rule 
editors doesn't want more than one file to read or to compile.
As an advantage we gain is to have the behaviour you mentioned but now 
with the power of BibTeX to re-sort and re-format cites.


Cheers

Alex


Re: Bibliography handling by LyX

2012-03-26 Thread Alex Vergara Gil

Dear Richard

Sorry for the weekend delay, comments below.

Saludos
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle No. 4113 e/ 41 y 47  Playa, C de la Habana
C.P.11300 La Habana, Cuba
Dirección postal A.P.6195 C.P.10600
Telf: (537)6829681, (537)6821803
Fax: (537)2030165


El 22/03/2012 04:38 p.m., Richard Heck escribió:

On 03/22/2012 06:51 PM, Alex Vergara Gil wrote:

El 22/03/2012 02:50 p.m., Richard Heck escribió:

On 03/22/2012 04:02 PM, Alex Vergara Gil wrote:


El 22/03/2012 12:36 p.m., David L. Johnson escribió:

On 03/22/2012 02:08 PM, Alex Vergara Gil wrote:
I have an objection to the use of bibitems in LyX: If you use 
BibTeX you can choose the bibliographic standard such as 
Vancouver, etc, besides the BibTeX sorts bibliography items in 
the required order acordingly to the standard; with LyX's 
bibitems you simply cannot do this and is like turning back to MS 
Office. Is this a bug?


No, it's not a bug.  Perhaps it's old-fashioned, but I've never 
seen the need to bother with bibtex.  Most of my papers have maybe 
5-10 references, that is certainly easy enough to do "by hand".


When I wrote my MSc thesis I must handled with 80 citations in a 
100 page piece of work, imagine sort them one by one and changing 
from order of apearance to alphabetical just to adjust your work to 
the requirements of the institute!!! It is indeed old fashioned, 
you must tell the software what kind of bibliography you need and 
it must automatically reshape and sort it. BibTeX does this work, 
why LyX can't?


Sorry, I don't understand. Of course you can use BibTeX with LyX. Or 
you can just use bibitems. It's up to you. If you use bibitems, 
though, then you have to sort them. Why? Because


Off course I can use BibTeX with LyX, but to generalize the use of it 
as a redaction system editors will prefer, it is better to have all 
the main things in a solely archive, not figures off course, but the 
bibliography...


Hopefully for 2.1, we are going to have a "LyX bundle" that will solve 
all such problems, including figures, to *make it easy to exchange 
data with others*. Right now, we have the ability to export a LyX 
archive that will bundle all these things, too.

This is the main purpose of this discusion


As initial step I would like to recommend developers to include an 
option to export bibitems to BibTeX, and a final option should be 
the use of BibTeX to produce the bibliography from bibitems. This 
is not too hard to do since most of the work is already done!


To do this, you'd have to be able to figure out who the author is, 
what the title is, etc, etc, etc. It is not going to be possible to 
figure that out in any reliable way.


By using the same algoritms that are already used for the modernCV 
example (separators }{)


If this means writing everything as ERT, it doesn't look good. I can 
imagine making LyX's internal storage of bibitems look more like 
BibTeX, then creating a BibTeX file on the fly for compilation, etc. 
There's already a bug about this, partly, to make bibitems easier to 
use with natbib. But it doesn't make much sense to me to go much 
farther. BibTeX isn't that hard to use, and one can exchange files 
using LyX's existing archive format, or just exchange two files. It 
isn't that hard.


Richard
No, you missunderstand me, in the modernCV example you must just use ERT 
for the }{ separator, the rest is normal text, internally you should 
make the assumption that for example the first segment is ID, the second 
are authors, and so on. For a more general bibliography then you should 
create new bibliography kinds (like the modernCV list, language, 
computer, etc) such as book, article, etc with different representations.


Now about BibTeX, I am 100% with you, it is not hard at all, but try to 
tell this to editors. Unless we convince editors to accept more than one 
file we are doomed to export our work to LaTeX, which is not the 
objective of LyX at all.


problem with subscripts

2012-03-26 Thread Bieniasz


Hi,

I need to produce some symbols with a subscript inside the text. 
Is there any way to do this without inserting expressions into the text?
In principle, the expressions give what I need, but for some reason the font
style is then changed automatically into italics, and they remain like this even
if I try to change fonts in the expression. I do not want to have this. I need 
symbols and subscripts in ordinary fonts, not italics.

Leslaw



Questions about LyX files

2012-03-26 Thread Bieniasz


Hi,

For some time I have been using LyX to write some text, consisting
of several chapters and files. I would be glad to understand the rules
governing the files produced by LyX. In particular I have the 
following questions:

1) I notice that apart from *.lyx files there are also files with extension
lyx~. I presume these are "previous" versions of the *.lyx files, produced
when any changes are made to the *.lyx files. Is this so?

2) I observe that some other files are also created, the names of which begin
with #. What are these files, and can I delete them safely?

3) I am not sure about the relationships between the *.lyx files and
*.tex files. It seems to me that the *.tex files are not updated or used
at all during the LyX operations, but all changes are saved in *.lyx files. Is
this correct? If so, can I delete all *.tex files? I presume the *.tex files
can be re-created by using the file/export command. Is this correct?
Can I be sure that if I import a *.tex file into LyX, and then export the 
result into another *.tex file, the two *.tex files will be identical 
(assuming I do not do any editing)?

Leslaw



Re: Lyx 2.0.3 Proxy Authentication

2012-03-26 Thread Vincent van Ravesteijn

Op 26-3-2012 12:26, Kunal Saha schreef:

Hi ,

I just installed Lyx 2.0.3 on Windows 7 x64 (the installation file
included MiKtex, Jabref et al). When I try to run the appplication, I get
a window for Proxy Authentication. I fill in the username and password,
then nothing happens .. I see that the apps running are latex.exe,
lyx.exe, python.exe and fc-cache.exe.

But the application does not launch nor do I see any error.

Please help.

Thanks,

Kunal.


Probably LyX is installing MikTeX packages. This can take a while.

Vincent



Lyx 2.0.3 Proxy Authentication

2012-03-26 Thread Kunal Saha
Hi ,

I just installed Lyx 2.0.3 on Windows 7 x64 (the installation file
included MiKtex, Jabref et al). When I try to run the appplication, I get
a window for Proxy Authentication. I fill in the username and password,
then nothing happens .. I see that the apps running are latex.exe,
lyx.exe, python.exe and fc-cache.exe.

But the application does not launch nor do I see any error.

Please help.

Thanks,

Kunal.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



References out of order

2012-03-26 Thread Chris Hennick
Hi all,

I'm using the IEEEtran template. Since the numbered references aren't
alphabetical in the bibliography, I assume they're intended to be in order
of first citation. But sometimes they aren't, if the citation order changes
during editing. How do I re-sort and renumber the references when necessary?

Sincerely,
Chris Hennick
Trent University
Peterborough, ON, Canada
http://softwetware.blogspot.com/


Re: lyx change environment with keyboard

2012-03-26 Thread Richard Heck

On 03/25/2012 04:15 PM, John Carbone wrote:


Much in the way that the tab key iterates over section levels:

Part ->  Chapter ->  Section ->  Subsection ->  Subsubsection ->  Paragraph ->  
Subparagraph

I would like to do the same thing for my requirements, see code below. 
For example, pressing a key or key sequence on keyboard "Requirement1" 
would change the level to "Requirement2", and so on.


Is this possible? Or, is it possible to change a key binding dependant 
on the "Style" within a ".layout" file?


No, I don't think this is possible. You can make a key do different 
things depending upon whether certain LFUNs are enabled, or whether you 
are in math, etc, but not this kind of thing, so far as I know.


Then again, if you make the Requirement thing a list environment, maybe 
it just works?


Richard


Counter requirementCnt




LabelString  "Requirement: \arabic{requirementCnt}."
End

Counter subrequirementCnt
Within   requirementCnt
End

Counter subsubrequirementCnt
Within   subrequirementCnt
End

Counter subsubsubrequirementCnt
Within   subsubrequirementCnt
End

Style RequirementList
  Category  Requirement
  KeepEmpty 1
  MarginDynamic
  LatexType Command
  LatexName listofrequirement
  ParIndent MM
  Align Block
  AlignPossible Block
  LabelType Static
  LabelString   "--- Requirement List ---"
  LabelFont
SizeNormal
Color   Blue
  EndFont
End

AddToPreamble
%%%
% Preamble
%%%
\usepackage{tocloft}
\usepackage{nameref}
\usepackage{refstyle}
\newcommand{\listrequirementname}{List of Requirements}

\newref{req}{%refcmd={#1~Requirement:~\ref{#1},~`\nameref{#1}'}
name = {Requirement~},
names = {Requirement~},
Name = {Requirement~},
Names = {Requirement~},
rngtxt = \RSrngtxt,
lsttwotxt = \RSlsttxt,
lsttxt = \RSlsttxt
}

\newlistof{requirement}{req}{\listrequirementname}
EndPreamble

Style Requirement1
Category  Requirement
RefPrefix req
TocLevel  0
LatexType Command
LatexName requirement
LabelType Counter
LabelCounter  requirementCnt
LabelString   "Requirement \arabic{requirementCnt}: "
OptionalArgs 1

LabelSep  xxx
ParSep0.7
MarginDynamic
Font
Series  Bold
EndFont
Preamble
\makeatletter
\newcommand{\requirement}[1]{%
 \def\@currentlabelname{#1}
 \refstepcounter{requirement}
 \par\noindent\textbf{Requirement \therequirement: #1}
 \addcontentsline{req}{requirement}{\protect\numberline{\therequirement}#1}
}
\makeatother

\setcounter{reqdepth}{1}
EndPreamble
End

Style Requirement2
Category  Requirement
RefPrefix req
TocLevel  1
LatexType Command
LatexName subrequirement
LabelType Counter

LabelCounter  subrequirementCnt
LabelString   "Requirement 
\arabic{requirementCnt}.\arabic{subrequirementCnt}: "

OptionalArgs 1

LabelSep  xxx
ParSep0.7
MarginDynamic
Font
Series  Bold
EndFont
Preamble
\makeatletter
\newlistentry[requirement]{subrequirement}{req}{1}
\newcommand{\subrequirement}[1]{%
 \def\@currentlabelname{#1}
 \refstepcounter{subrequirement}
 \par\noindent\textbf{Requirement \thesubrequirement: #1}
 
\addcontentsline{req}{subrequirement}{\protect\numberline{\thesubrequirement}#1}
}
\makeatother

\setcounter{reqdepth}{2}
EndPreamble
End


Style Requirement3
Category  Requirement
RefPrefix req
TocLevel  2
LatexType Command
LatexName subsubrequirement
LabelType Counter

LabelCounter  subsubrequirementCnt
LabelString   "Requirement 
\arabic{requirementCnt}.\arabic{subrequirementCnt}.\arabic{subsubrequirementCnt}:"

OptionalArgs 1

LabelSep  xxx
ParSep0.7
MarginDynamic
Font
Series  Bold
EndFont
Preamble
\makeatletter
\newlistentry[subrequirement]{subsubrequirement}{req}{1}
\newcommand{\subsubrequirement}[1]{%
 \def\@currentlabelname{#1}
 \refstepcounter{subsubrequirement}
 \par\noindent\textbf{Requirement \thesubsubrequirement: #1}
 
\addcontentsline{req}{subsubrequirement}{\protect\numberline{\thesubsubrequirement}#1}
}
\makeatother

\setcounter{reqdepth}{3}
EndPreamble
End

Style Requirement4
Category  Requirement
RefPrefix req
TocLevel  3
LatexType Command
LatexName subsubsubrequirement
LabelType Counter

LabelCounter  subsubsubrequirementCnt
LabelString   "Requirement 
\arabic{requirementCnt}.\arabic{subrequirementCnt}.\ar