Re: Add options to begin{enumerate}

2022-07-03 Thread tush via lyx-users
On 01/07/2022 12:11, Ricardo Berlasso via lyx-users wrote:

>Check this article:
>https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/
>
>It shows how to change numbered lists both globally (preamble code) and for
>particular lists (through local layout and the creation of a new
>environment).
>
>Regards,
>Ricardo

A great blog and a great book. Thanks a lot for sharing it. It has some 
beautiful nice lyx gems.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-03 Thread tush via lyx-users
On 02/07/2022 20:54, Daniel via lyx-users wrote:
>Unfortunately, this is not as straight forward in LyX as in many other
>word processors. The (minimal) LaTeX part is described in section
>3.3.7.1 of the "User's Guide" (from the Help menu).
>
>/Daniel

Thanks very much! This is exactly what I was looking for.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-02 Thread Daniel

On 30/06/2022 23:23, tush via lyx-users wrote:
The enumitem package allows the user to change the layout of the 
enumerate, itemize and description environments.


The change takes effect in the following way:

\begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
\item text...
\item etc.
\end{enumerate}

I want to insert such ERT code to my lists in LyX.

LyX allows the user to add such argument to each item, but this is not 
the same thing.


As I see it, if I want to introduce such a change to my lists inside 
LyX, I have to make a change to the Styles defined in the file 
stdlists.inc in the layouts directory. Is that correct?


Unfortunately, this is not as straight forward in LyX as in many other 
word processors. The (minimal) LaTeX part is described in section 
3.3.7.1 of the "User's Guide" (from the Help menu).


/Daniel

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-01 Thread Ricardo Berlasso
El jue, 30 jun 2022 a las 23:23, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> The enumitem package allows the user to change the layout of the
> enumerate, itemize and description environments.
>
> The change takes effect in the following way:
>
> \begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
> \item text...
> \item etc.
> \end{enumerate}
>
> I want to insert such ERT code to my lists in LyX.
>
> LyX allows the user to add such argument to each item, but this is not the
> same thing.
>
> As I see it, if I want to introduce such a change to my lists inside LyX,
> I have to make a change to the Styles defined in the file stdlists.inc in
> the layouts directory. Is that correct?
>

Check this article:

https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/

It shows how to change numbered lists both globally (preamble code) and for
particular lists (through local layout and the creation of a new
environment).

Regards,
Ricardo



> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Add options to begin{enumerate}

2022-06-30 Thread tush via lyx-users
The enumitem package allows the user to change the layout of the enumerate, 
itemize and description environments.

The change takes effect in the following way:

\begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
\item text...
\item etc.
\end{enumerate}

I want to insert such ERT code to my lists in LyX.

LyX allows the user to add such argument to each item, but this is not the same 
thing.

As I see it, if I want to introduce such a change to my lists inside LyX, I 
have to make a change to the Styles defined in the file stdlists.inc in the 
layouts directory. Is that correct?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


SOLVED> biblatex style options

2021-07-14 Thread Wolfgang Engelmann




However, I uploaded the package to CTAN, it should be available
tomorrow wit the official update.

Herbert


Good to know! Thanks, Herbert
Wolfgang


Thanks a lot, Herbert. After updating from CTAN the biblatex-spbasic 
citation and bibliography style file were found. Good.


Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex style options

2021-07-12 Thread Wolfgang Engelmann



Am 12.07.21 um 14:45 schrieb Herbert Voss:


Wolfgang Engelmann schrieb:



Am 10.07.21 um 21:25 schrieb Herbert Voss:

Am 10.07.21 um 10:57 schrieb Wolfgang Engelmann:



This is a screenshot of a part of the references of a Springer book.
No point after the forename.



Wolfgang, I downloaded an old version of spbasic.bst which has dots.
However, now I found a new one on Springer's site. Download
https://hvoss.org/biblatex-spbasic.zip   and put the two files

biblatex-spbasic.bbx
biblatex-spbasic.cbx

into a new directory

/usr/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic


Sorry Wolfgang,
it should be

/usr/local/texlive/texmf-local/tex/latex/biblatex-spbasic

be without the 2021

However, I uploaded the package to CTAN, it should be available
tomorrow wit the official update.

Herbert


Good to know! Thanks, Herbert
Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex style options

2021-07-12 Thread Herbert Voss

Wolfgang Engelmann schrieb:
>
>
> Am 10.07.21 um 21:25 schrieb Herbert Voss:
>> Am 10.07.21 um 10:57 schrieb Wolfgang Engelmann:
>>>
>>>
>>> This is a screenshot of a part of the references of a Springer book.
>>> No point after the forename.
>>
>>
>> Wolfgang, I downloaded an old version of spbasic.bst which has dots.
>> However, now I found a new one on Springer's site. Download
>> https://hvoss.org/biblatex-spbasic.zip   and put the two files
>>
>> biblatex-spbasic.bbx
>> biblatex-spbasic.cbx
>>
>> into a new directory
>>
>> /usr/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic

Sorry Wolfgang,
it should be

/usr/local/texlive/texmf-local/tex/latex/biblatex-spbasic

be without the 2021

However, I uploaded the package to CTAN, it should be available
tomorrow wit the official update.

Herbert


>>
>> or any other _local_ texmf directory.
>>
>> Then run
>>
>> texhash
>>
>> to update the file name database. Maybe that you must use sudo.
>>
>> Then open the attched LyX file or use your own one and change the
>> entries in Document->settings->Bibliography
>> (see atched screenshot).  Then run your example and you should get
>> the desired bibstyle in the bibliography (see screenshot).
>>
>> best
>> Herbert
>>
> Thanks again, Herbert.
> I did, as you suggested.
> biblatex-spbasic.zip
> contains doc with biblatex-spbasic.pdf and .tex
> and latex containing biblatex-spbasic.bbx (biblatex style for spbasic.bst)
> and biblatex-spbasic.cbx
>
> I put both files in
> /us/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic/
> did a texhash and sudo texhash
>
> changed the settings according to your screenshot (including biber
> setting)
>
> did a tools/reconfigure
>
> but I can't find in the lyx file under Document settings > Bibliography
>  > Biblatex citation the biblatex-spbasic files
> same for Biblatex bibliography style
>
> I had to do the copying as sudo. Could this be the reason for the failure?
>
> With the sp-basic.bst file for bibtex is was sufficient to put this file
> in the folder of the lyx document. I could load this style file into the
> document.
>
> However, I noted that the biblatex-spbasic.bbx and biblatex-spbasic.cbx
> files are owned by root.
>
> How would I change it, if I am in the folder with the two biblatex files
>
> with sudo chown ...
> or chmod.. (forgot the shell command in linux)
>
> or should I change the entire :
> sudo chown -R ...
>
> Wolfgang
>
>
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex style options

2021-07-12 Thread Wolfgang Engelmann



Am 12.07.21 um 10:58 schrieb Wolfgang Engelmann:



Am 10.07.21 um 21:25 schrieb Herbert Voss:

Am 10.07.21 um 10:57 schrieb Wolfgang Engelmann:



This is a screenshot of a part of the references of a Springer book.
No point after the forename.



Wolfgang, I downloaded an old version of spbasic.bst which has dots.
However, now I found a new one on Springer's site. Download
https://hvoss.org/biblatex-spbasic.zip   and put the two files

biblatex-spbasic.bbx
biblatex-spbasic.cbx

into a new directory

/usr/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic

or any other _local_ texmf directory.

Then run

texhash

to update the file name database. Maybe that you must use sudo.

Then open the attched LyX file or use your own one and change the
entries in Document->settings->Bibliography
(see atched screenshot).  Then run your example and you should get
the desired bibstyle in the bibliography (see screenshot).

best
Herbert


Thanks again, Herbert.
I did, as you suggested.
biblatex-spbasic.zip
contains doc with biblatex-spbasic.pdf and .tex
and latex containing biblatex-spbasic.bbx (biblatex style for spbasic.bst)
and biblatex-spbasic.cbx

I put both files in
/us/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic/
did a texhash and sudo texhash

changed the settings according to your screenshot (including biber setting)

did a tools/reconfigure

but I can't find in the lyx file under Document settings > Bibliography 
 > Biblatex citation the biblatex-spbasic files

same for Biblatex bibliography style

I had to do the copying as sudo. Could this be the reason for the failure?

With the sp-basic.bst file for bibtex is was sufficient to put this file 
in the folder of the lyx document. I could load this style file into the 
document.


However, I noted that the biblatex-spbasic.bbx and biblatex-spbasic.cbx 
files are owned by root.


How would I change it, if I am in the folder with the two biblatex files

with sudo chown ...
or chmod.. (forgot the shell command in linux)

or should I change the entire 


FORGOT: the entire texlive/2021 folder
Wolfgang
:

sudo chown -R ...

Wolfgang




--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex style options

2021-07-12 Thread Wolfgang Engelmann



Am 10.07.21 um 21:25 schrieb Herbert Voss:

Am 10.07.21 um 10:57 schrieb Wolfgang Engelmann:



This is a screenshot of a part of the references of a Springer book.
No point after the forename.



Wolfgang, I downloaded an old version of spbasic.bst which has dots.
However, now I found a new one on Springer's site. Download
https://hvoss.org/biblatex-spbasic.zip   and put the two files

biblatex-spbasic.bbx
biblatex-spbasic.cbx

into a new directory

/usr/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic

or any other _local_ texmf directory.

Then run

texhash

to update the file name database. Maybe that you must use sudo.

Then open the attched LyX file or use your own one and change the
entries in Document->settings->Bibliography
(see atched screenshot).  Then run your example and you should get
the desired bibstyle in the bibliography (see screenshot).

best
Herbert


Thanks again, Herbert.
I did, as you suggested.
biblatex-spbasic.zip
contains doc with biblatex-spbasic.pdf and .tex
and latex containing biblatex-spbasic.bbx (biblatex style for spbasic.bst)
and biblatex-spbasic.cbx

I put both files in
/us/local/texlive/2021/texmf-local/tex/latex/biblatex-spbasic/
did a texhash and sudo texhash

changed the settings according to your screenshot (including biber setting)

did a tools/reconfigure

but I can't find in the lyx file under Document settings > Bibliography 
> Biblatex citation the biblatex-spbasic files

same for Biblatex bibliography style

I had to do the copying as sudo. Could this be the reason for the failure?

With the sp-basic.bst file for bibtex is was sufficient to put this file 
in the folder of the lyx document. I could load this style file into the 
document.


However, I noted that the biblatex-spbasic.bbx and biblatex-spbasic.cbx 
files are owned by root.


How would I change it, if I am in the folder with the two biblatex files

with sudo chown ...
or chmod.. (forgot the shell command in linux)

or should I change the entire :
sudo chown -R ...

Wolfgang



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: biblatex style options

2021-07-10 Thread Wolfgang Engelmann




Am 10.07.21 um 09:20 schrieb Wolfgang Engelmann:
I asked the Springer people whether a biblatex style corresponding to 
their spbasic.bst exists, but the answer was not very helpful ('it 
doesn't matter ...).


What I like to know is, how to set the options of biblatex in order to 
get the spbasic output. Or could I use the bibtex export of the 
bibliography and include it in the pdf file? Not very elegant...


I remember, for bibtex exists a link which shows the various outputs of 
the bibliography styles+options (and of the text citations) together 
with the way to proceed to get them. Would be good to have something 
similar for biblatex.


Specifically, I would like to have in the bibliography Authorname, only 
first character of forename without point (e.g. Mayer P). As it is now 
the forenames are either before or after the name, abbreviated or in 
full. How to restrict it to 3 names was explained already by Herbert Voss.


Any hints?
Wolfgang


Found this:
http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf
but could not find an answer to the specific questions above
Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


biblatex style options

2021-07-10 Thread Wolfgang Engelmann
I asked the Springer people whether a biblatex style corresponding to 
their spbasic.bst exists, but the answer was not very helpful ('it 
doesn't matter ...).


What I like to know is, how to set the options of biblatex in order to 
get the spbasic output. Or could I use the bibtex export of the 
bibliography and include it in the pdf file? Not very elegant...


I remember, for bibtex exists a link which shows the various outputs of 
the bibliography styles+options (and of the text citations) together 
with the way to proceed to get them. Would be good to have something 
similar for biblatex.


Specifically, I would like to have in the bibliography Authorname, only 
first character of forename without point (e.g. Mayer P). As it is now 
the forenames are either before or after the name, abbreviated or in 
full. How to restrict it to 3 names was explained already by Herbert Voss.


Any hints?
Wolfgang



Am 08.07.21 um 14:42 schrieb Wolfgang Engelmann:



Am 08.07.21 um 14:22 schrieb Herbert Voss:



Am 08.07.21 um 13:47 schrieb Wolfgang Engelmann:



What would be recommended to get familiar with the handling of the 
biblatex references? I used to use spbasic.bst from Springer 
Publisher modified slightly to show maximally 3 authors only.


that is an authoryear style



Is this style available for biblatex/biber?


add the optional arguments

style=authoryear,maxnames=3,minnames=1

to biblatex

Herbert


Thanks again, Herbert.
I don't want to bother you and others too much,
but there are more details, e.g.
the name should be Name, P (P for prename, only first character shown 
without point

At the moment it is e.g. prename name or name prename or name P etc
Thats the reason I would like a ref for biblatex.

The biblatex Programmable Bibliographies by Philip Kime, Moritz 
Wemheuer, Philipp Lehman

but its a bit overkill.

Wolfgang





--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: why no pandoc export options?

2019-06-28 Thread Richard Kimberly Heck
On 6/28/19 9:07 AM, Neal Becker wrote:
> I'm looking here:
>
> https://wiki.lyx.org/Tips/ExportingOpenDocumentLibreofficeOpenofficeAndOfficeOpenXMLMSWordWithPandoc#trouble
>
> I'm using lyx-2.3.2-3.fc30.x86_64 fedora 30 linux.
> I have pandoc
> pandoc -v
> pandoc 2.2.1
> Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.5
>
> Under export, I don't see any options to export to MS Word XML, or anything 
> like that.  According to the above link, pandoc should have been detected 
> during reconfig and I shouldn't need to do any further setup.
>
> Any ideas?

If you have made any customizations yourself to your preferences, then
automatic detection may not work for you. We do not over-write
user-specified preferences when we reconfigure. So that is one option.
To test, try using a fresh user directory.

Riki





why no pandoc export options?

2019-06-28 Thread Neal Becker
I'm looking here:

https://wiki.lyx.org/Tips/ExportingOpenDocumentLibreofficeOpenofficeAndOfficeOpenXMLMSWordWithPandoc#trouble

I'm using lyx-2.3.2-3.fc30.x86_64 fedora 30 linux.
I have pandoc
pandoc -v
pandoc 2.2.1
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.5

Under export, I don't see any options to export to MS Word XML, or anything 
like that.  According to the above link, pandoc should have been detected 
during reconfig and I shouldn't need to do any further setup.

Any ideas?

Thanks,
Neal




Re: Weight Options to the Noto Fonts

2019-04-05 Thread Kornel Benko
Am Freitag, 5. April 2019, 12:24:42 CEST schrieb Dr Eberhard Lisse:
> Hi,
> 
> I am conducting a serious love affair with the Noto fonts which we can
> now select in the LyX Settings -> Fonts dialog.
> 
> Sometimes I want to have the document a little ticker than regular which
> I would normally do in the Preamble with something like
> 
> \makeatletter
>   \if@landscape
>   \usepackage[medium]{noto}
>   \else
>   \usepackage{noto}
> \makeatother
> 
> 
> This works but defeats the purpose and my sporting ambition.
> 
> I tried
> 
>   \PassOptionsToPackage{thin}{noto}
> 
> which doesn't work, because this would have to come before the
> \begin{document}, anyway.
> 
> 
> Any ideas?  If it's in the manual a pointer would be appreciated.
> 
> And I unashamedly do not apologize for crossposting :-)-O
> 
> greetings, el
> 
> 

This is possible (and easy), but makes problems converting to actual settings.

Kornel


signature.asc
Description: This is a digitally signed message part.


Weight Options to the Noto Fonts

2019-04-05 Thread Dr Eberhard Lisse
Hi,

I am conducting a serious love affair with the Noto fonts which we can
now select in the LyX Settings -> Fonts dialog.

Sometimes I want to have the document a little ticker than regular which
I would normally do in the Preamble with something like

\makeatletter
\if@landscape
\usepackage[medium]{noto}
\else
\usepackage{noto}
\makeatother


This works but defeats the purpose and my sporting ambition.

I tried

\PassOptionsToPackage{thin}{noto}

which doesn't work, because this would have to come before the
\begin{document}, anyway.


Any ideas?  If it's in the manual a pointer would be appreciated.

And I unashamedly do not apologize for crossposting :-)-O

greetings, el



Re: Customizing biblatex beyond Citation Style - Options field

2018-11-12 Thread Bert Lloyd
Jürgen,

Including this in Document Settings - LaTeX Preamble solved the problem.

Many thanks.

On Thu, Nov 8, 2018 at 4:27 PM Jürgen Spitzmüller  wrote:
>
>
>
> Am Do., 8. Nov. 2018, 17:13 hat Bert Lloyd  
> geschrieben:
>>
>> However, there are some further tweaks I would like to make that as
>> far as I know cannot be done this way. For example, in plain LaTex, I
>> would add
>>
>> \AtEveryBibitem{%
>>   \clearlist{language}
>> }
>>
>> after \usepackage[...]{biblatex
>
>
> Use
>
> \AtBeginDocument{%
> \AtEveryBibitem{%
>   \clearlist{language}
> }
> }
>
> Jürgen
>
>>
>> I attempted to implement this via Document Settings - Preamble.
>> However, the problem I am having is that it appears that, by default,
>> LyX places
>> \usepackage[...]{biblatex}
>> \addbibresource{are-495.bib}
>> at the very end of the latex preamble.
>>
>> As a result, options I add via Document Settings - Preamble appear
>> before \usepackage[...]{biblatex}, leading to an error message:
>>
>> Undefined control sequence
>> \AtEveryBibitem
>> {%
>> The control sequence at the end of the top line...
>>
>> I tried including the \AtEveryBibitem{%... material in the body of the
>> document using ERT, but this also lead to an error:
>> ! LaTeX Error: Can be used only in preamble.
>>
>> So, is there a way I can
>> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
>> B) Add material to a specific part of the latex preamble (i.e., the
>> end, or at least after \usepackage[...]{biblatex})?
>> C) Pass options to biblatex a different way?
>> D) Other?
>>
>> Many thanks,
>>
>> BL


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Jürgen Spitzmüller
Am Do., 8. Nov. 2018, 17:13 hat Bert Lloyd 
geschrieben:

> However, there are some further tweaks I would like to make that as
> far as I know cannot be done this way. For example, in plain LaTex, I
> would add
>
> \AtEveryBibitem{%
>   \clearlist{language}
> }
>
> after \usepackage[...]{biblatex
>

Use

\AtBeginDocument{%
\AtEveryBibitem{%
  \clearlist{language}
}
}

Jürgen


> I attempted to implement this via Document Settings - Preamble.
> However, the problem I am having is that it appears that, by default,
> LyX places
> \usepackage[...]{biblatex}
> \addbibresource{are-495.bib}
> at the very end of the latex preamble.
>
> As a result, options I add via Document Settings - Preamble appear
> before \usepackage[...]{biblatex}, leading to an error message:
>
> Undefined control sequence
> \AtEveryBibitem
> {%
> The control sequence at the end of the top line...
>
> I tried including the \AtEveryBibitem{%... material in the body of the
> document using ERT, but this also lead to an error:
> ! LaTeX Error: Can be used only in preamble.
>
> So, is there a way I can
> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
> B) Add material to a specific part of the latex preamble (i.e., the
> end, or at least after \usepackage[...]{biblatex})?
> C) Pass options to biblatex a different way?
> D) Other?
>
> Many thanks,
>
> BL
>


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Bert Lloyd
I suppose it would, but I would prefer to load biblatex through LyX in
the standard way if possible.
On Thu, Nov 8, 2018 at 12:04 PM Benedict Holland
 wrote:
>
> If you don't include biblatex in the UI (remove any bibliography settings in 
> Lyx), it shouldn't load anything. Of course, then it is on you to include 
> biblatex with all options and customizations you would like.
>
> Does that work?
>
> Thanks,
> ~Ben
>
> On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:
>>
>> Dear LyX Users,
>>
>> I am using biblatex in LyX 2.3. I have added several options through
>> the standard approach (Document Settings - Bibliography - Citation
>> Style - Options; for example: hyperref=true), and this works fine.
>>
>> However, there are some further tweaks I would like to make that as
>> far as I know cannot be done this way. For example, in plain LaTex, I
>> would add
>>
>> \AtEveryBibitem{%
>>   \clearlist{language}
>> }
>>
>> after \usepackage[...]{biblatex}
>>
>> I attempted to implement this via Document Settings - Preamble.
>> However, the problem I am having is that it appears that, by default,
>> LyX places
>> \usepackage[...]{biblatex}
>> \addbibresource{are-495.bib}
>> at the very end of the latex preamble.
>>
>> As a result, options I add via Document Settings - Preamble appear
>> before \usepackage[...]{biblatex}, leading to an error message:
>>
>> Undefined control sequence
>> \AtEveryBibitem
>> {%
>> The control sequence at the end of the top line...
>>
>> I tried including the \AtEveryBibitem{%... material in the body of the
>> document using ERT, but this also lead to an error:
>> ! LaTeX Error: Can be used only in preamble.
>>
>> So, is there a way I can
>> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
>> B) Add material to a specific part of the latex preamble (i.e., the
>> end, or at least after \usepackage[...]{biblatex})?
>> C) Pass options to biblatex a different way?
>> D) Other?
>>
>> Many thanks,
>>
>> BL


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Benedict Holland
If you don't include biblatex in the UI (remove any bibliography settings
in Lyx), it shouldn't load anything. Of course, then it is on you to
include biblatex with all options and customizations you would like.

Does that work?

Thanks,
~Ben

On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:

> Dear LyX Users,
>
> I am using biblatex in LyX 2.3. I have added several options through
> the standard approach (Document Settings - Bibliography - Citation
> Style - Options; for example: hyperref=true), and this works fine.
>
> However, there are some further tweaks I would like to make that as
> far as I know cannot be done this way. For example, in plain LaTex, I
> would add
>
> \AtEveryBibitem{%
>   \clearlist{language}
> }
>
> after \usepackage[...]{biblatex}
>
> I attempted to implement this via Document Settings - Preamble.
> However, the problem I am having is that it appears that, by default,
> LyX places
> \usepackage[...]{biblatex}
> \addbibresource{are-495.bib}
> at the very end of the latex preamble.
>
> As a result, options I add via Document Settings - Preamble appear
> before \usepackage[...]{biblatex}, leading to an error message:
>
> Undefined control sequence
> \AtEveryBibitem
> {%
> The control sequence at the end of the top line...
>
> I tried including the \AtEveryBibitem{%... material in the body of the
> document using ERT, but this also lead to an error:
> ! LaTeX Error: Can be used only in preamble.
>
> So, is there a way I can
> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
> B) Add material to a specific part of the latex preamble (i.e., the
> end, or at least after \usepackage[...]{biblatex})?
> C) Pass options to biblatex a different way?
> D) Other?
>
> Many thanks,
>
> BL
>


Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Bert Lloyd
Dear LyX Users,

I am using biblatex in LyX 2.3. I have added several options through
the standard approach (Document Settings - Bibliography - Citation
Style - Options; for example: hyperref=true), and this works fine.

However, there are some further tweaks I would like to make that as
far as I know cannot be done this way. For example, in plain LaTex, I
would add

\AtEveryBibitem{%
  \clearlist{language}
}

after \usepackage[...]{biblatex}

I attempted to implement this via Document Settings - Preamble.
However, the problem I am having is that it appears that, by default,
LyX places
\usepackage[...]{biblatex}
\addbibresource{are-495.bib}
at the very end of the latex preamble.

As a result, options I add via Document Settings - Preamble appear
before \usepackage[...]{biblatex}, leading to an error message:

Undefined control sequence
\AtEveryBibitem
{%
The control sequence at the end of the top line...

I tried including the \AtEveryBibitem{%... material in the body of the
document using ERT, but this also lead to an error:
! LaTeX Error: Can be used only in preamble.

So, is there a way I can
A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
B) Add material to a specific part of the latex preamble (i.e., the
end, or at least after \usepackage[...]{biblatex})?
C) Pass options to biblatex a different way?
D) Other?

Many thanks,

BL


Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-30 Thread Kornel Benko
Am Montag, 30. Juli 2018 11:44:00 CEST schrieb Baris Erkus 
:
> On 28-Jul-18 3:28 PM, Murat Yildizoglu wrote:
> Hello,
> I am working on a new book and suddenly I have started to meet a problem with 
> the graphics that are included in the document : when I pdflatex the doc, I 
> get a lot of error messages all concerning the options set in the 
> \includegraphics instructions. If I fo not scale the graph, it prints (with 
> the original size of course), and if I set a scale option, I get scale=0.8 
> instead of the pdf graphic. (see the capture of the output window).
>  I also include some other captures about the options of the document and the 
> figure.
> I do not remember having changes anything, but I probably have, and I cannot 
> locate my stupid error. Any idea?

I would try to set the width or height, instead of %scale.

> My preamble contains:
> \usepackage{amsfonts}
> \batchmode

Why is that needed?

> This problems makes me mad and any suggestion will be very much appreciated. 
> I remember having met it before, but I do not remember how I have been able 
> to solve it.
...
> I would highly recommend to come up with a MWE. I have had similar problems, 
> particularly when using TikZ graphics, and in most cases I have identified 
> the error when developing a "proper" MWE to post to SE or LyX mailing list.

+1

> BE

Kornel

signature.asc
Description: This is a digitally signed message part.


Fwd: Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-28 Thread Murat Yildizoglu
Kornel reminded to me that I have not replied to all. I am correcting this now. 
Sorry for my clumsiness.
Thanks again Kornel!

--

Prof. Murat Yildizoglu
murat.yildizo...@u-bordeaux.fr
-- Message transféré --
De : Murat Yildizoglu 
Date : 28 juil. 2018 à 21:00 +0300
À : Kornel Benko 
Sujet : Re: Grrr! Loosing my mind on graphic options in pdflatex

> Thank you Kornel,
> This has solved my second problem. I have the bad habit of not directly 
> working in the LyX document with a text editor. Searching for turkish, I have 
> been able to locate two empty places"s where language turkish was used. 
> Deleting these instruction inside the Lyx file has solved my problem, and I 
> do not need anymore the babel magic.
>
> Thanks a lot Rich, unfortunately, I have not received myself your second 
> message, but I discover it in Kornel's reply. I will also keep in mind these 
> potential culprits in future crises.
>
> I am very much relieved. Thanks a lot again!
>
> My gratefulness, and best wishes
> Murat
>
> > Le sam. 28 juil. 2018 à 19:43, Kornel Benko  a écrit :
> > > Am Samstag, 28. Juli 2018 10:12:20 CEST schrieb Rich Shepard 
> > > :
> > > > On Sat, 28 Jul 2018, Murat Yildizoglu wrote:
> > > >
> > > > > *OK, I think I have located the source of the problem, but I do not 
> > > > > know
> > > > > how to solve it in LyX: *I have pasted a citation in English coming 
> > > > > from
> > > > > an article I have written in Turkish, and then, Lyx automatically 
> > > > > puts the
> > > > > option turkish in the \documentclass instruction
> > > > >
> > > > > \documentclass[english,turkish,french]{extreport}
> > > > > If I delete turkish in the exported latex file, the document compiles 
> > > > > and
> > > > > the options are correctly interpreted, and the graphic correctly 
> > > > > scaled.
> > > > >
> > > > > Two questions then:
> > > > > Why this babel option kills the \includegraphics options? (I could 
> > > > > need
> > > > > turkish again)
> > > > > How can I tell to not include this option (I do not have any text in
> > > > > Turkish in my document)?
> > > >
> > > > Murat,
> > > >
> > > >    As a suggestion: look carefully at the biblographic citation for that
> > > > Turkish article. It may have a non-printable character in it that is 
> > > > causing
> > > > your problem.
> > > >
> > > >    I don't know what software you use for your references, but the 
> > > >bibtex
> > > > paragraph for that article is where I would look for problems.
> > > >
> > > >    Germane to your questions about the babel options, I've no idea but 
> > > >others
> > > > on this mail list will have some.
> > > >
> > > > HTH,
> > > >
> > > > Rich
> > >
> > > I would search for the paragraph with the Turkish words. Select them and 
> > > reset the language.
> > >         Right click on the selected,
> > >                 Text Properties->Customize->Language:->Default
> > >
> > >         Kornel
> > >
>
>
> --
> Prof. Murat Yildizoglu
>
> Note: Please use the following address as such
>
> UNIVERSITE DE BORDEAUX
> GREThA (UMR CNRS 5113)
> MURAT YILDIZOGLU
> 16 AVENUE LEON DUGUIT
> CS 50057
> 33608 PESSAC CEDEX
> FRANCE
>
> Bureau : E-331
>
> mail: murat.yildizoglu at u-bordeaux.fr
>
> web: http://yildizoglu.fr


Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-28 Thread Kornel Benko
Am Samstag, 28. Juli 2018 10:12:20 CEST schrieb Rich Shepard 
:
> On Sat, 28 Jul 2018, Murat Yildizoglu wrote:
> 
> > *OK, I think I have located the source of the problem, but I do not know
> > how to solve it in LyX: *I have pasted a citation in English coming from
> > an article I have written in Turkish, and then, Lyx automatically puts the
> > option turkish in the \documentclass instruction
> >
> > \documentclass[english,turkish,french]{extreport}
> > If I delete turkish in the exported latex file, the document compiles and
> > the options are correctly interpreted, and the graphic correctly scaled.
> >
> > Two questions then:
> > Why this babel option kills the \includegraphics options? (I could need
> > turkish again)
> > How can I tell to not include this option (I do not have any text in
> > Turkish in my document)?
> 
> Murat,
> 
>As a suggestion: look carefully at the biblographic citation for that
> Turkish article. It may have a non-printable character in it that is causing
> your problem.
> 
>I don't know what software you use for your references, but the bibtex
> paragraph for that article is where I would look for problems.
> 
>Germane to your questions about the babel options, I've no idea but others
> on this mail list will have some.
> 
> HTH,
> 
> Rich

I would search for the paragraph with the Turkish words. Select them and reset 
the language.
Right click on the selected,
Text Properties->Customize->Language:->Default

Kornel



signature.asc
Description: This is a digitally signed message part.


Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-28 Thread Rich Shepard

On Sat, 28 Jul 2018, Murat Yildizoglu wrote:


*OK, I think I have located the source of the problem, but I do not know
how to solve it in LyX: *I have pasted a citation in English coming from
an article I have written in Turkish, and then, Lyx automatically puts the
option turkish in the \documentclass instruction

\documentclass[english,turkish,french]{extreport}
If I delete turkish in the exported latex file, the document compiles and
the options are correctly interpreted, and the graphic correctly scaled.

Two questions then:
Why this babel option kills the \includegraphics options? (I could need
turkish again)
How can I tell to not include this option (I do not have any text in
Turkish in my document)?


Murat,

  As a suggestion: look carefully at the biblographic citation for that
Turkish article. It may have a non-printable character in it that is causing
your problem.

  I don't know what software you use for your references, but the bibtex
paragraph for that article is where I would look for problems.

  Germane to your questions about the babel options, I've no idea but others
on this mail list will have some.

HTH,

Rich


Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-28 Thread Murat Yildizoglu
To answer my first question: it seems that the turkish option need
\usepackage[shorthands=:!]{babel}
in the preamble (I can see that in the article in Turkish I have written, I
have probably met this part of the problem at that time).

But my second question remains: how can I tell LyX to not include this
option?

Le sam. 28 juil. 2018 à 18:57, Murat Yildizoglu <
murat.yildizo...@u-bordeaux.fr> a écrit :

> Thank you Rich,
> Unfortunately, this does not seem to be the source of the problem and it
> is becoming stranger and stranger. I must do something really stupid in Lyx.
> Here is the test I have done:
>
>1. I have created a new document with the same class, with all the
>other default options ;
>2. I have integrated a Figure float containing one PDF graphic
>belonging to my original document;
>3. I have compiled this new document, and I can give it any scaling
>option without any problem, it just works.
>4. Then I have tried to copy cat specific options, modules and the
>preamble of the old document to see if I can locate the source of the
>problem, but the test document has been able to compile correctly without
>any problem.
>5. Then I have cleaned the test document, and copied just the content
>of the problematic lax chapter in this document, and I get exactly the
>original problem: any option I give to \includegraphics is just printed in
>the pdf (instead of the graphic), instead of being interpreted. :-( G!
>
> So it must be something in my Lyx file that must be the source of the
> problem. When I export the Lyx to Latex and I compile.
>
> *OK, I think I have located the source of the problem, but I do not know
> how to solve it in LyX: *I have pasted a citation in English coming from
> an article I have written in Turkish, and then, Lyx automatically puts the
> option turkish in the \documentclass instruction
>
> \documentclass[english,turkish,french]{extreport}
> If I delete turkish in the exported latex file, the document compiles and
> the options are correctly interpreted, and the graphic correctly scaled.
>
> Two questions then:
> Why this babel option kills the \includegraphics options? (I could need
> turkish again)
> How can I tell to not include this option (I do not have any text in
> Turkish in my document)?
>
> All help would be very much appreciated.
>
> Murat
>
> Le sam. 28 juil. 2018 à 16:30, Rich Shepard  a
> écrit :
>
>> On Sat, 28 Jul 2018, Murat Yildizoglu wrote:
>>
>> > I am working on a new book and suddenly I have started to meet a problem
>> > with the graphics that are included in the document : when I pdflatex
>> the
>> > doc, I get a lot of error messages all concerning the options set in the
>> > \includegraphics instructions. If I fo not scale the graph, it prints
>> > (with the original size of course), and if I set a scale option, I get
>> > scale=0.8 instead of the pdf graphic. (see the capture of the output
>> > window). I also include some other captures about the options of the
>> > document and the figure. I do not remember having changes anything, but
>> I
>> > probably have, and I cannot locate my stupid error.
>>
>> Murat,
>>
>>This looks a lot like a problem I had a year or so ago. Paul Rubin
>> helped
>> find the reason for this. As I recall, my issue was caused by checking the
>> 'clip to bounding box' checkbox on the settings -> clipping tab. That was
>> a
>> lyx issue that was fixed, and it may not be your issue. However, it's
>> worth
>> a try.
>>
>> HTH,
>>
>> Rich
>>
>
>
> --
> Prof. Murat Yildizoglu
>
> Note: Please use the following address as such
>
> UNIVERSITE DE BORDEAUX
> GREThA (UMR CNRS 5113)
> MURAT YILDIZOGLU
> 16 AVENUE LEON DUGUIT
> CS 50057
> 33608 PESSAC CEDEX
> FRANCE
>
> Bureau : E-331
>
> mail: murat.yildizoglu at u-bordeaux.fr
>
> web: http://yildizoglu.fr
>


-- 
Prof. Murat Yildizoglu

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: murat.yildizoglu at u-bordeaux.fr

web: http://yildizoglu.fr


Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-28 Thread Murat Yildizoglu
Thank you Rich,
Unfortunately, this does not seem to be the source of the problem and it is
becoming stranger and stranger. I must do something really stupid in Lyx.
Here is the test I have done:

   1. I have created a new document with the same class, with all the other
   default options ;
   2. I have integrated a Figure float containing one PDF graphic belonging
   to my original document;
   3. I have compiled this new document, and I can give it any scaling
   option without any problem, it just works.
   4. Then I have tried to copy cat specific options, modules and the
   preamble of the old document to see if I can locate the source of the
   problem, but the test document has been able to compile correctly without
   any problem.
   5. Then I have cleaned the test document, and copied just the content of
   the problematic lax chapter in this document, and I get exactly the
   original problem: any option I give to \includegraphics is just printed in
   the pdf (instead of the graphic), instead of being interpreted. :-( G!

So it must be something in my Lyx file that must be the source of the
problem. When I export the Lyx to Latex and I compile.

*OK, I think I have located the source of the problem, but I do not know
how to solve it in LyX: *I have pasted a citation in English coming from an
article I have written in Turkish, and then, Lyx automatically puts the
option turkish in the \documentclass instruction

\documentclass[english,turkish,french]{extreport}
If I delete turkish in the exported latex file, the document compiles and
the options are correctly interpreted, and the graphic correctly scaled.

Two questions then:
Why this babel option kills the \includegraphics options? (I could need
turkish again)
How can I tell to not include this option (I do not have any text in
Turkish in my document)?

All help would be very much appreciated.

Murat

Le sam. 28 juil. 2018 à 16:30, Rich Shepard  a
écrit :

> On Sat, 28 Jul 2018, Murat Yildizoglu wrote:
>
> > I am working on a new book and suddenly I have started to meet a problem
> > with the graphics that are included in the document : when I pdflatex the
> > doc, I get a lot of error messages all concerning the options set in the
> > \includegraphics instructions. If I fo not scale the graph, it prints
> > (with the original size of course), and if I set a scale option, I get
> > scale=0.8 instead of the pdf graphic. (see the capture of the output
> > window). I also include some other captures about the options of the
> > document and the figure. I do not remember having changes anything, but I
> > probably have, and I cannot locate my stupid error.
>
> Murat,
>
>This looks a lot like a problem I had a year or so ago. Paul Rubin
> helped
> find the reason for this. As I recall, my issue was caused by checking the
> 'clip to bounding box' checkbox on the settings -> clipping tab. That was a
> lyx issue that was fixed, and it may not be your issue. However, it's worth
> a try.
>
> HTH,
>
> Rich
>


-- 
Prof. Murat Yildizoglu

Note: Please use the following address as such

UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE

Bureau : E-331

mail: murat.yildizoglu at u-bordeaux.fr

web: http://yildizoglu.fr


Re: Grrr! Loosing my mind on graphic options in pdflatex

2018-07-28 Thread Rich Shepard

On Sat, 28 Jul 2018, Murat Yildizoglu wrote:


I am working on a new book and suddenly I have started to meet a problem
with the graphics that are included in the document : when I pdflatex the
doc, I get a lot of error messages all concerning the options set in the
\includegraphics instructions. If I fo not scale the graph, it prints
(with the original size of course), and if I set a scale option, I get
scale=0.8 instead of the pdf graphic. (see the capture of the output
window). I also include some other captures about the options of the
document and the figure. I do not remember having changes anything, but I
probably have, and I cannot locate my stupid error.


Murat,

  This looks a lot like a problem I had a year or so ago. Paul Rubin helped
find the reason for this. As I recall, my issue was caused by checking the
'clip to bounding box' checkbox on the settings -> clipping tab. That was a
lyx issue that was fixed, and it may not be your issue. However, it's worth
a try.

HTH,

Rich


Re: Using algorithm2e with Package Options, Recommended Approach?

2018-01-30 Thread Joel Kulesza
On Tue, Jan 30, 2018 at 4:06 PM, Paul A. Rubin  wrote:
>
> Does the attached module do what you want (or show the way)? I just moved
> all the preamble stuff from your MWE into a hacked version of Jürgen's
> module. Feel free to change the name from "MyAlgorithm2e". Imagination is
> in short supply at the moment.


Paul,

Yes, and thanks for digging into this! My main hangup was thinking that I
needed the PackageOptions and AddToPreamble within the float rather than in
the external "module namespace."

Best regards,
Joel


Re: Using algorithm2e with Package Options, Recommended Approach?

2018-01-30 Thread Paul A. Rubin

On 01/29/2018 12:28 PM, Joel Kulesza wrote:

Colleagues:

What is the recommended way to \usepackage{algorithm2e} with 
additional options
and potentially other global preamble customizations (ideally also 
allowing

algorithm floats in the LyX GUI)?

For example, I'd like to have in my preamble for algorithm2e:

\usepackage[ruled,vlined,resetcount,algochapter,linesnumbered]{algorithm2e}

and also

    \usepackage{xcolor} % Because of colors called out below.
    \SetArgSty{textnormal}
    \SetNlSty{texttt}{\color{gray}}{}
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
    \SetCommentSty{mycommfont}
    \DontPrintSemicolon

I cannot see how to customize the existant algorithm2e.module.  At a 
minimum

just to get the package with options, I've tried:

    AddToPreamble
\usepackage[ruled,vlined,resetcount,algochapter,linesnumbered]{algorithm2e}
    EndPreamble

    Preamble
\usepackage[ruled,vlined,resetcount,algochapter,linesnumbered]{algorithm2e}
    EndPreamble

    PackageOptions ruled vlined resetcount algochapter linesnumbered

    PackageOptions algorithm2e ruled vlined resetcount algochapter 
linesnumbered


    PackageOptions "algorithm2e ruled vlined resetcount algochapter 
linesnumbered"


with and without commenting out the line "Requires algorithm2e".  I've 
tried
this with a new .module file with intermittent reconfigures as well as 
Document
Settings -> Local Layout.  However, nothing I try gets the proper line 
inserted

into the document preamble.  I assume this is because I'm defining a float
rather than a text class.

I can include
"\usepackage[ruled,vlined,resetcount,algochapter,linesnumbered]{algorithm2e}" 
in
the document preamble; however, when I Insert -> Float -> Algorithm 
and view the
source, new lines are added to the LyX-generated preamble 
corresponding to the

lines added with the intrinsic LyX algorithm:

    \floatstyle{ruled}
    \newfloat{algorithm}{tbp}{loa}
    \providecommand{\algorithmname}{Algorithm}
    \floatname{algorithm}{\protect\algorithmname}

which results in errors like "Command \algorithm already defined.".  I'm
reluctant to modify the defaults to remove the built-in algorithm 
environment

(perhaps unnecessary reluctance?).

The best solution I've identified is keeping the lines I want in the 
preamble

and not using Insert -> Float -> Algorithm or Insert -> List -> List of
Algorithms but rather inserting child .tex documents with all 
captions, labels,

content within them and \listofalgorithms using ERT. However, this allows
cross-references to get out of sync easily (and forces me to insert 
valid albeit
seemingly broken references via the LyX GUI).  However, hyperlinks 
appear to

work when ultimately rendered.

MWE attached for "the best I've developed."  Hopefully there is a 
better way
that I've overlooked (perhaps redefining algorithm2e.module to 
override the

builtin algorithm but not include any additional preamble content and then
including all my code in the preamble?).

Any thoughts are appreciated to satisfy my wish list of:

* Using package-optioned algorithm2e instead of LyX built-in algorithm and
* Using the LyX GUI to interact with algorithms (at least to do label and
  cross-reference management; keeping the algorithm code external is 
preferred).


Please don't hesitate to contact me with comments, questions, or concerns.

Thank you,
Joel
Does the attached module do what you want (or show the way)? I just 
moved all the preamble stuff from your MWE into a hacked version of 
Jürgen's module. Feel free to change the name from "MyAlgorithm2e". 
Imagination is in short supply at the moment.


Paul

#\DeclareLyXModule[algorithm2e.sty]{MyAlgorithm2e}
#DescriptionBegin
# Use the algorithm2e package for algorithm floats rather
# than LyX's home-brewed algorithm floats.
# Include custom options for the algorithm2e package.
#DescriptionEnd
#
#Author: Jürgen Spitzmüller

Format 60

Requires algorithm2e,xcolor

PackageOptions algorithm2e "ruled,vlined,resetcount,algochapter,linesnumbered"

AddToPreamble
  \SetArgSty{textnormal}
  \SetNlSty{texttt}{\color{gray}}{}
  \newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
  \SetCommentSty{mycommfont}
  \DontPrintSemicolon
EndPreamble

Float
Type  algorithm
GuiName   Algorithm
Placement tbp
AllowedPlacement  !htbp
AllowsSideways0
Extension loa
NumberWithin  none
Style plain
ListName  "List of Algorithms"
IsPredefined  true
UsesFloatPkg  false
ListCommand   listofalgorithms
RefPrefix alg
End




Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Neal Becker wrote:

> Guillaume Munch wrote:
> 
>> Le 06/03/2017 à 19:49, Neal Becker a écrit :
>>> Richard Heck wrote:
>>>
>>>> On 03/06/2017 10:12 AM, Neal Becker wrote:
>>>>> Neal Becker wrote:
>>>>>
>>>>>> Guillaume Munch wrote:
>>>>>>
>>>>>>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>>>>>>> I'm trying beamer(flex insets) document option.  I like it, but I
>>>>>>>> don't
>>>>>>>> see any way to set frame options.  Any hints?
>>>>>>> Insert > Frame options ?
>>>>>> AFAICT, if you choose beamer(flex inserts) for document, then there
>>>>>> is no
>>>>>> menu item "(Insert > Frame options)".  This only appears if you
>>>>>> choose "beamer" for document.
>>>>
>>>> You need to use the flex insets with the beamer document class.
>>>> (Unfortunately, there is no way at present to enforce this
>>>> requirement.)
>>>>
>>>> Richard
>>>
>>> So if I use beamer-flex.inc from Guillaume Munch <g...@lyx.org>, then if I
>>> try to insert a frame using insert > custom insets > Frame, there is no
>>> way to
>>> then set frame options.  This can only be done using the lyx standard
>>> way of inserting a frame: choosing Frame from environment dropdown list,
>>> which will
>>> then activate the "Insert > Frame options" option.  Do I understand
>>> correctly?
>> 
>> Strange. Here it works correctly if I use only beamer-flex.layout. The
>> version of beamer-flex.inc you point to correctly defines Argument 3 :
>> "Frame Options". Has the behaviour changed between 2.2 and 2.3?
> 
> Lyx-2.2.2 here.

OK, I figured it out.  You need to move the cursor to just after the frame 
title, then the 'frame options' option will appear in the Insert menu.



Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Guillaume Munch wrote:

> Le 06/03/2017 à 19:49, Neal Becker a écrit :
>> Richard Heck wrote:
>>
>>> On 03/06/2017 10:12 AM, Neal Becker wrote:
>>>> Neal Becker wrote:
>>>>
>>>>> Guillaume Munch wrote:
>>>>>
>>>>>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>>>>>> I'm trying beamer(flex insets) document option.  I like it, but I
>>>>>>> don't
>>>>>>> see any way to set frame options.  Any hints?
>>>>>> Insert > Frame options ?
>>>>> AFAICT, if you choose beamer(flex inserts) for document, then there is
>>>>> no
>>>>> menu item "(Insert > Frame options)".  This only appears if you choose
>>>>> "beamer" for document.
>>>
>>> You need to use the flex insets with the beamer document class.
>>> (Unfortunately, there is no way at present to enforce this requirement.)
>>>
>>> Richard
>>
>> So if I use beamer-flex.inc from Guillaume Munch <g...@lyx.org>, then if I
>> try to insert a frame using insert > custom insets > Frame, there is no
>> way to
>> then set frame options.  This can only be done using the lyx standard way
>> of inserting a frame: choosing Frame from environment dropdown list,
>> which will
>> then activate the "Insert > Frame options" option.  Do I understand
>> correctly?
> 
> Strange. Here it works correctly if I use only beamer-flex.layout. The
> version of beamer-flex.inc you point to correctly defines Argument 3 :
> "Frame Options". Has the behaviour changed between 2.2 and 2.3?

Lyx-2.2.2 here.



Re: beamer flex frame options

2017-03-06 Thread Guillaume Munch

Le 06/03/2017 à 19:49, Neal Becker a écrit :

Richard Heck wrote:


On 03/06/2017 10:12 AM, Neal Becker wrote:

Neal Becker wrote:


Guillaume Munch wrote:


Le 06/03/2017 à 14:16, Neal Becker a écrit :

I'm trying beamer(flex insets) document option.  I like it, but I
don't
see any way to set frame options.  Any hints?

Insert > Frame options ?

AFAICT, if you choose beamer(flex inserts) for document, then there is
no
menu item "(Insert > Frame options)".  This only appears if you choose
"beamer" for document.


You need to use the flex insets with the beamer document class.
(Unfortunately, there is no way at present to enforce this requirement.)

Richard


So if I use beamer-flex.inc from Guillaume Munch <g...@lyx.org>, then if I try
to insert a frame using insert > custom insets > Frame, there is no way to
then set frame options.  This can only be done using the lyx standard way of
inserting a frame: choosing Frame from environment dropdown list, which will
then activate the "Insert > Frame options" option.  Do I understand
correctly?


Strange. Here it works correctly if I use only beamer-flex.layout. The
version of beamer-flex.inc you point to correctly defines Argument 3 :
"Frame Options". Has the behaviour changed between 2.2 and 2.3?




Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Richard Heck wrote:

> On 03/06/2017 10:12 AM, Neal Becker wrote:
>> Neal Becker wrote:
>>
>>> Guillaume Munch wrote:
>>>
>>>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>>>> I'm trying beamer(flex insets) document option.  I like it, but I
>>>>> don't
>>>>> see any way to set frame options.  Any hints?
>>>> Insert > Frame options ?
>>> AFAICT, if you choose beamer(flex inserts) for document, then there is
>>> no
>>> menu item "(Insert > Frame options)".  This only appears if you choose
>>> "beamer" for document.
> 
> You need to use the flex insets with the beamer document class.
> (Unfortunately, there is no way at present to enforce this requirement.)
> 
> Richard

So if I use beamer-flex.inc from Guillaume Munch <g...@lyx.org>, then if I try 
to insert a frame using insert > custom insets > Frame, there is no way to 
then set frame options.  This can only be done using the lyx standard way of 
inserting a frame: choosing Frame from environment dropdown list, which will 
then activate the "Insert > Frame options" option.  Do I understand 
correctly?



Re: beamer flex frame options

2017-03-06 Thread Richard Heck
On 03/06/2017 10:12 AM, Neal Becker wrote:
> Neal Becker wrote:
>
>> Guillaume Munch wrote:
>>
>>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>>> I'm trying beamer(flex insets) document option.  I like it, but I don't
>>>> see any way to set frame options.  Any hints?
>>> Insert > Frame options ?
>> AFAICT, if you choose beamer(flex inserts) for document, then there is no
>> menu item "(Insert > Frame options)".  This only appears if you choose
>> "beamer" for document.

You need to use the flex insets with the beamer document class.
(Unfortunately, there is no way at present to enforce this requirement.)

Richard



Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Neal Becker wrote:

> Guillaume Munch wrote:
> 
>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>> I'm trying beamer(flex insets) document option.  I like it, but I don't
>>> see any way to set frame options.  Any hints?
>> 
>> Insert > Frame options ?
> 
> AFAICT, if you choose beamer(flex inserts) for document, then there is no
> menu item "(Insert > Frame options)".  This only appears if you choose
> "beamer" for document.

Sorry I should be clear, I'm using beamer-flex from:
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg102752.html



Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Guillaume Munch wrote:

> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>> I'm trying beamer(flex insets) document option.  I like it, but I don't
>> see any way to set frame options.  Any hints?
> 
> Insert > Frame options ?

AFAICT, if you choose beamer(flex inserts) for document, then there is no 
menu item "(Insert > Frame options)".  This only appears if you choose 
"beamer" for document.



Re: beamer flex frame options

2017-03-06 Thread Guillaume Munch

Le 06/03/2017 à 14:16, Neal Becker a écrit :

I'm trying beamer(flex insets) document option.  I like it, but I don't
see any way to set frame options.  Any hints?


Insert > Frame options ?



beamer flex frame options

2017-03-06 Thread Neal Becker
I'm trying beamer(flex insets) document option.  I like it, but I don't see
any way to set frame options.  Any hints?


Re: Exporting lyx file with multiple class options

2017-01-21 Thread Paul A. Rubin

On 01/21/2017 03:19 PM, David Rosenberg wrote:
I routinely need to make 2 versions of my beamer slides: handout and 
not-handout.  My current plan to do this is to have a program that 
rewrites the lyx file win two different ways (with and without the 
 handout option), and compile each. I'm wondering if there's an easier 
way?


e.g. Is it possible to make a new export option that writes two 
versions of the file?  Not sure how customizable the exports are...


Thanks!

The following should work (I think), though I'm not sure it's easier 
than writing an external script:


1. Copy beamer.layout to a new file (for the sake of argument,
   "beamer-handout.layout") and put it in your local layout directory.
   Edit it to contain the handout option in the ClassOptions section.
2. Reconfigure LyX, so that it knows about the layout.
3. Bind some unused keyboard combination to the command
   'textclass-apply beamer-handout'. You might want to bind a second
   combination to 'textclass-apply beamer' so that you can toggle back
   and forth at will.
4. After creating a presentation (in either format), export it the
   usual way, whack the right key combo to switch to the other format,
   and export again.

Paul



Exporting lyx file with multiple class options

2017-01-21 Thread David Rosenberg
I routinely need to make 2 versions of my beamer slides: handout and
not-handout.  My current plan to do this is to have a program that rewrites
the lyx file win two different ways (with and without the  handout option),
and compile each.  I'm wondering if there's an easier way?

e.g. Is it possible to make a new export option that writes two versions of
the file?  Not sure how customizable the exports are...

Thanks!


Re: Options of packages loaded by modules/Lyx

2015-12-05 Thread David Rörich
2015-12-05 0:00 GMT+01:00 Scott Kostyshak :

>
> Note that if you feel like testing, we would be interested in your
> feedback. See here for installers for our most recent development
> version:
>
> ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/lyx-2.2.0alpha2/
>
> Scott
>

Will certainly test it sooner or later.


Re: Options of packages loaded by modules/Lyx

2015-12-04 Thread David
Am 04.12.2015 um 17:00 schrieb Jürgen Spitzmüller:
> 
> "trunk" is the development version of LyX, i.e. forthcoming LyX 2.2.
> 
> With LyX 2.1.x, you cannot use the descirbed feature with the todonotes 
> module, since it only works for packages "known" to LyX (and the todonotes 
> packages is not known to LyX 2.1). Making a package "known" requires a change 
> in the LyX source code.
> 
> With LyX 2.2, you just need to copy the following to Document > Settings > 
> Local Layout:
> 
> PackageOptions todonotes myoptions
> 
> Jürgen
> 

Thanks for the clarification, Jürgen. Im excited about Lyx 2.2 :)


Re: Options of packages loaded by modules/Lyx

2015-12-04 Thread Jürgen Spitzmüller
Am Dienstag 01 Dezember 2015, 15:04:07 schrieb Richard Heck:
> If so, then a PassOptionToPackage tag would be a very good idea. These
> could be output very early, yes?

We have such a thing already:

PackageOptions todonotes myoptions

(only works in trunk, since the todonotes module from the wiki does not load 
todonotes via LyX's features interface).

Jürgen


Re: Options of packages loaded by modules/Lyx

2015-12-04 Thread Jürgen Spitzmüller
Am Freitag 04 Dezember 2015, 16:48:48 schrieb David:
> Sounds interesting. But what is trunk and how would I have to change the
> todonotes module in order to enable loading via the features interface?

"trunk" is the development version of LyX, i.e. forthcoming LyX 2.2.

With LyX 2.1.x, you cannot use the descirbed feature with the todonotes 
module, since it only works for packages "known" to LyX (and the todonotes 
packages is not known to LyX 2.1). Making a package "known" requires a change 
in the LyX source code.

With LyX 2.2, you just need to copy the following to Document > Settings > 
Local Layout:

PackageOptions todonotes myoptions

Jürgen


Re: Options of packages loaded by modules/Lyx

2015-12-04 Thread David
Am 04.12.2015 um 16:40 schrieb Jürgen Spitzmüller:
> Am Dienstag 01 Dezember 2015, 15:04:07 schrieb Richard Heck:
>> If so, then a PassOptionToPackage tag would be a very good idea. These
>> could be output very early, yes?
> 
> We have such a thing already:
> 
> PackageOptions todonotes myoptions
> 
> (only works in trunk, since the todonotes module from the wiki does not load 
> todonotes via LyX's features interface).
> 

Sounds interesting. But what is trunk and how would I have to change the
todonotes module in order to enable loading via the features interface?



Re: Options of packages loaded by modules/Lyx

2015-12-04 Thread Scott Kostyshak
On Fri, Dec 04, 2015 at 05:07:24PM +0100, David wrote:
> Am 04.12.2015 um 17:00 schrieb Jürgen Spitzmüller:
> > 
> > "trunk" is the development version of LyX, i.e. forthcoming LyX 2.2.
> > 
> > With LyX 2.1.x, you cannot use the descirbed feature with the todonotes 
> > module, since it only works for packages "known" to LyX (and the todonotes 
> > packages is not known to LyX 2.1). Making a package "known" requires a 
> > change 
> > in the LyX source code.
> > 
> > With LyX 2.2, you just need to copy the following to Document > Settings > 
> > Local Layout:
> > 
> > PackageOptions todonotes myoptions
> > 
> > Jürgen
> > 
> 
> Thanks for the clarification, Jürgen. Im excited about Lyx 2.2 :)

Note that if you feel like testing, we would be interested in your
feedback. See here for installers for our most recent development
version:

ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/lyx-2.2.0alpha2/

Scott


signature.asc
Description: PGP signature


Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Richard Heck
On 12/01/2015 02:41 PM, Guillaume Munch wrote:
> Dear David,
>
>> Adding another \usepackage[myOptions]{todonotes} to my preamble causes
>> an options clash. I tried to
>>
>> *) Set the options globally by passing them to the document class (as
>> suggested by LaTex). No error, but also no effect.
>> *) Use \PassOptionsToPackage. No error, but also no effect. I think this
>> command must be used *before* loading the package, which I can't do as
>> the module's preamble additions are done *before* the user's additions.
>
> There's a dirty, but quite general hack that I have often used in the
> past. In "class options", add:
>
>   ]{myClass}\PassOptionsToPackage{myOptions}{todonotes}%
>
> I'd be happy to hear about a better solution...

That really is a hack!!

>> A possible solution would be to change the module itself. But I don't
>> like this solution much because it would have a system wide effect where
>> I only want it to affect the document. (Also, I don't want to change the
>> moule on all systems I use.)
>>
>
> It is possible to redefine insets in "Local Format". I'm curious as
> well to hear whether something can be done there to pass new package
> options. If not, would it make sense to implement a
> PassOptionToPackage layout command?

What happens if you just do:

AddToPremable
\PassOptionsToPackage...
EndPreamble

in local layout? I'll guess it may not work, since this line will be
output too late

If so, then a PassOptionToPackage tag would be a very good idea. These
could be output very early, yes?


Richard



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread David
> 
> Thanks for these interesting approaches, Richard! In this regard, it
> would also be nice if one could point Lyx to module files that are
> located outside ~/.lyx
> This way I could save the module file together with my document (in a
> git repo) and have it ready wherever I need it.
> 

Or maybe an include tag does exist, something like

IncludeFile
path/to/myModulue.module
End

?



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread David
Am 01.12.2015 um 20:41 schrieb Guillaume Munch:

> 
> There's a dirty, but quite general hack that I have often used in the
> past. In "class options", add:
> 
>   ]{myClass}\PassOptionsToPackage{myOptions}{todonotes}%
> 
> I'd be happy to hear about a better solution...
> 

That's clever ;)



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Guillaume Munch

Le 01/12/2015 20:04, Richard Heck a écrit :

On 12/01/2015 02:41 PM, Guillaume Munch wrote:

Dear David,


Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.


There's a dirty, but quite general hack that I have often used in the
past. In "class options", add:

   ]{myClass}\PassOptionsToPackage{myOptions}{todonotes}%

I'd be happy to hear about a better solution...


That really is a hack!!


Yeah sorry about that.

(Please please do not attempt anything at preventing such things because
I have no alternative for the moment.)




A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use.)



It is possible to redefine insets in "Local Format". I'm curious as
well to hear whether something can be done there to pass new package
options. If not, would it make sense to implement a
PassOptionToPackage layout command?


What happens if you just do:

 AddToPremable
 \PassOptionsToPackage...
 EndPreamble

in local layout? I'll guess it may not work, since this line will be
output too late


Yes, it's too late.



If so, then a PassOptionToPackage tag would be a very good idea. These
could be output very early, yes?


I do like the idea of a PassOptionToPackage tag.

But in regards to my hack, I could completely get rid of it only if we
had an AddToEarlyPreamble section the adds lines before the
LyX-generated preamble.

Some options like \zoomfactor even want to be output before the document
class, and I think some command had also to be moved to before the
documentclass recently. Maybe we need a general solution for such issues.



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread David Rörich
Am 01.12.2015 um 20:36 schrieb Richard Heck:
> On 11/30/2015 04:33 AM, David wrote:
>> Dear list,
>>
>> is it possible to change package options of packages that are loaded by
>> modules? Specifically, I tried to set the options of the todonotes
>> package which I use in conjunction with the "TODO Notes" module [1].
>> This module loads the package without passing any options to it.
>> Specifically, it adds
>>
>> \RequirePackage{todonotes}
>>
>> to the preamble.
>>
>> Adding another \usepackage[myOptions]{todonotes} to my preamble causes
>> an options clash. I tried to
>>
>> *) Set the options globally by passing them to the document class (as
>> suggested by LaTex). No error, but also no effect.
>> *) Use \PassOptionsToPackage. No error, but also no effect. I think this
>> command must be used *before* loading the package, which I can't do as
>> the module's preamble additions are done *before* the user's additions.
>>
>> A possible solution would be to change the module itself. But I don't
>> like this solution much because it would have a system wide effect where
>> I only want it to affect the document. (Also, I don't want to change the
>> moule on all systems I use)
>>
>> What other options do I have?
> Copy todonotes.module to todonotes2.module. Open it and make whatever
> changes you
> wish (I'd make some change to the first line and description so you know
> which is which),
> then reconfigure LyX so it is seen and use the modified version in this
> paper.
>
> Alternatively, copy the contents of todonotes.module to Local Layout and
> make your
> changes there. Then remove the ToDo Notes module from the list of used
> modules.
>
> Richard
>

Thanks for these interesting approaches, Richard! In this regard, it
would also be nice if one could point Lyx to module files that are
located outside ~/.lyx
This way I could save the module file together with my document (in a
git repo) and have it ready wherever I need it.

Contrary to what I wrote before, passing the options as global options
to the document class *does* work. On my first try, I didn't see the
effect because I use the tikzexternalize package and todonotes renders
its notes with Tikz. This prevented rerendering.

David



signature.asc
Description: OpenPGP digital signature


Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Scott Kostyshak
On Mon, Nov 30, 2015 at 09:03:08PM +0100, David Rörich wrote:
> Dear list,
> 

Just a note that this was cross-posted here:
http://tex.stackexchange.com/questions/280938/can-i-change-options-of-packages-loaded-by-a-lyx-module

Scott


signature.asc
Description: PGP signature


Options of packages loaded by modules/Lyx

2015-12-01 Thread David Rörich
(sorry if this is a double post)

Dear list,

is it possible to change package options of packages that are loaded by
modules? Specifically, I tried to set the options of the todonotes
package which I use in conjunction with the "TODO Notes" module [1].
This module loads the package without passing any options to it.
Specifically, it adds

\RequirePackage{todonotes}

to the preamble.

Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.

A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use)

What other options do I have?

Thanks,
David

[1] http://www.lyx.org/trac/raw-attachment/ticket/7546/todonotes.module



signature.asc
Description: OpenPGP digital signature


Options of packages loaded by modules/Lyx

2015-12-01 Thread David Rörich
Dear list,

is it possible to change package options of packages that are loaded by
modules? Specifically, I tried to set the options of the todonotes
package which I use in conjunction with the "TODO Notes" module [1].
This module loads the package without passing any options to it.
Specifically, it adds

\RequirePackage{todonotes}

to the preamble.

Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.

A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use)

What other options do I have?

Thanks,
David

[1] http://www.lyx.org/trac/raw-attachment/ticket/7546/todonotes.module





signature.asc
Description: OpenPGP digital signature


Options of packages loaded by modules/Lyx

2015-12-01 Thread David
Dear list,

is it possible to change package options of packages that are loaded by
modules? Specifically, I tried to set the options of the todonotes
package which I use in conjunction with the "TODO Notes" module [1].
This module loads the package without passing any options to it.
Specifically, it adds

\RequirePackage{todonotes}

to the preamble.

Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.

A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use)

What other options do I have?

Thanks,
David

[1] http://www.lyx.org/trac/raw-attachment/ticket/7546/todonotes.module



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Richard Heck
On 11/30/2015 04:33 AM, David wrote:
> Dear list,
>
> is it possible to change package options of packages that are loaded by
> modules? Specifically, I tried to set the options of the todonotes
> package which I use in conjunction with the "TODO Notes" module [1].
> This module loads the package without passing any options to it.
> Specifically, it adds
>
> \RequirePackage{todonotes}
>
> to the preamble.
>
> Adding another \usepackage[myOptions]{todonotes} to my preamble causes
> an options clash. I tried to
>
> *) Set the options globally by passing them to the document class (as
> suggested by LaTex). No error, but also no effect.
> *) Use \PassOptionsToPackage. No error, but also no effect. I think this
> command must be used *before* loading the package, which I can't do as
> the module's preamble additions are done *before* the user's additions.
>
> A possible solution would be to change the module itself. But I don't
> like this solution much because it would have a system wide effect where
> I only want it to affect the document. (Also, I don't want to change the
> moule on all systems I use)
>
> What other options do I have?

Copy todonotes.module to todonotes2.module. Open it and make whatever
changes you
wish (I'd make some change to the first line and description so you know
which is which),
then reconfigure LyX so it is seen and use the modified version in this
paper.

Alternatively, copy the contents of todonotes.module to Local Layout and
make your
changes there. Then remove the ToDo Notes module from the list of used
modules.

Richard



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Guillaume Munch

Dear David,

Le 30/11/2015 10:22, David Rörich a écrit :

(sorry if this is a double post)


The lists now work again.



Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.


There's a dirty, but quite general hack that I have often used in the 
past. In "class options", add:


  ]{myClass}\PassOptionsToPackage{myOptions}{todonotes}%

I'd be happy to hear about a better solution...



A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use.)



It is possible to redefine insets in "Local Format". I'm curious as well 
to hear whether something can be done there to pass new package options. 
If not, would it make sense to implement a PassOptionToPackage layout 
command?




listings package options

2013-09-30 Thread Michael Bach
Dear LyX Users and Developers,

I would like to add the numberbychapter=true option to the listings
package for the code listings. I looked around but did not find a GUI
option for it. I found a related issue [1] where the advice was to file
a feature request to add options to packages already loaded by LyX.

Could someone give me a hint?

Best Regards,
Michael Bach


[1] http://www.latex-community.org/forum/viewtopic.php?f=19t=22991



Re: listings package options

2013-09-30 Thread Olivier Ripoll

On 30.09.2013 13:57, Michael Bach wrote:

Dear LyX Users and Developers,

I would like to add the numberbychapter=true option to the listings
package for the code listings. I looked around but did not find a GUI
option for it. I found a related issue [1] where the advice was to file
a feature request to add options to packages already loaded by LyX.

Could someone give me a hint?


For listings, you can access the individual inset settings by right 
clicking on it, the selecting Settings
Then, you can type settings not in the GUI in the Advanced tab. Type 
your options in the More Parameters text box.


If you want to apply the settings to all listings in the document, which 
is the case here (this option is global), then type the text directly in 
Documents-Settings-Listings


However, that option is true by default (according to listings 
documentation and to my tests), so you should not need to do anything.


If you want to switch the option off, then type
numberbychapter=false
in the above mentioned place. Note that LyX may prevent you to apply the 
change, in such case you can check the Bypass validation option (I 
needed to do that for that specific option).


Tested in LyX 2.0.6 on Windows with MikTeX.

Best regards,

Olivier



Best Regards,
Michael Bach


[1] http://www.latex-community.org/forum/viewtopic.php?f=19t=22991







Re: listings package options

2013-09-30 Thread Michael Bach
Hi Olivier,

Thanks for your comment.

On 9/30/13 5:23 PM, Olivier Ripoll wrote: On 30.09.2013 13:57, Michael
Bach wrote:
 Dear LyX Users and Developers,

 I would like to add the numberbychapter=true option to the listings
 package for the code listings. I looked around but did not find a GUI
 option for it. I found a related issue [1] where the advice was to file
 a feature request to add options to packages already loaded by LyX.

 Could someone give me a hint?

 For listings, you can access the individual inset settings by right
 clicking on it, the selecting Settings
 Then, you can type settings not in the GUI in the Advanced tab. Type
 your options in the More Parameters text box.

 If you want to apply the settings to all listings in the document, which
 is the case here (this option is global), then type the text directly in
 Documents-Settings-Listings


I had the impression that the `numberbychapter' option is a package
option and not an option for single (global) listing(s).

 However, that option is true by default (according to listings
 documentation and to my tests), so you should not need to do anything.

 If you want to switch the option off, then type
 numberbychapter=false
 in the above mentioned place. Note that LyX may prevent you to apply the
 change, in such case you can check the Bypass validation option (I
 needed to do that for that specific option).


I tested as you suggested in the global dialog and setting it true or
false there makes no difference, both gives consecutive numbering Code
1, Code 2 etc., i.e. not what I want.

 Tested in LyX 2.0.6 on Windows with MikTeX.


FWIW, I am in 2.0.5.1 on OS X 10.8.5 with MacTeX.

One thing strikes me as odd just from the name of that option: I am
using the `article' document class and not `book' where chapter is a
sectioning command. That should be irrelevant, I guess (?).

Best Regards,
Michael



Re: listings package options

2013-09-30 Thread Michael Bach
On 9/30/13 7:28 PM, Michael Bach wrote:
 One thing strikes me as odd just from the name of that option: I am
 using the `article' document class and not `book' where chapter is a
 sectioning command. That should be irrelevant, I guess (?).
 

RTFM.  But I really do not get it why the article documentclass
shouldn't be supported.  Will contact the listings maintainer.




listings package options

2013-09-30 Thread Michael Bach
Dear LyX Users and Developers,

I would like to add the numberbychapter=true option to the listings
package for the code listings. I looked around but did not find a GUI
option for it. I found a related issue [1] where the advice was to file
a feature request to add options to packages already loaded by LyX.

Could someone give me a hint?

Best Regards,
Michael Bach


[1] http://www.latex-community.org/forum/viewtopic.php?f=19t=22991



Re: listings package options

2013-09-30 Thread Olivier Ripoll

On 30.09.2013 13:57, Michael Bach wrote:

Dear LyX Users and Developers,

I would like to add the numberbychapter=true option to the listings
package for the code listings. I looked around but did not find a GUI
option for it. I found a related issue [1] where the advice was to file
a feature request to add options to packages already loaded by LyX.

Could someone give me a hint?


For listings, you can access the individual inset settings by right 
clicking on it, the selecting Settings
Then, you can type settings not in the GUI in the Advanced tab. Type 
your options in the More Parameters text box.


If you want to apply the settings to all listings in the document, which 
is the case here (this option is global), then type the text directly in 
Documents-Settings-Listings


However, that option is true by default (according to listings 
documentation and to my tests), so you should not need to do anything.


If you want to switch the option off, then type
numberbychapter=false
in the above mentioned place. Note that LyX may prevent you to apply the 
change, in such case you can check the Bypass validation option (I 
needed to do that for that specific option).


Tested in LyX 2.0.6 on Windows with MikTeX.

Best regards,

Olivier



Best Regards,
Michael Bach


[1] http://www.latex-community.org/forum/viewtopic.php?f=19t=22991







Re: listings package options

2013-09-30 Thread Michael Bach
Hi Olivier,

Thanks for your comment.

On 9/30/13 5:23 PM, Olivier Ripoll wrote: On 30.09.2013 13:57, Michael
Bach wrote:
 Dear LyX Users and Developers,

 I would like to add the numberbychapter=true option to the listings
 package for the code listings. I looked around but did not find a GUI
 option for it. I found a related issue [1] where the advice was to file
 a feature request to add options to packages already loaded by LyX.

 Could someone give me a hint?

 For listings, you can access the individual inset settings by right
 clicking on it, the selecting Settings
 Then, you can type settings not in the GUI in the Advanced tab. Type
 your options in the More Parameters text box.

 If you want to apply the settings to all listings in the document, which
 is the case here (this option is global), then type the text directly in
 Documents-Settings-Listings


I had the impression that the `numberbychapter' option is a package
option and not an option for single (global) listing(s).

 However, that option is true by default (according to listings
 documentation and to my tests), so you should not need to do anything.

 If you want to switch the option off, then type
 numberbychapter=false
 in the above mentioned place. Note that LyX may prevent you to apply the
 change, in such case you can check the Bypass validation option (I
 needed to do that for that specific option).


I tested as you suggested in the global dialog and setting it true or
false there makes no difference, both gives consecutive numbering Code
1, Code 2 etc., i.e. not what I want.

 Tested in LyX 2.0.6 on Windows with MikTeX.


FWIW, I am in 2.0.5.1 on OS X 10.8.5 with MacTeX.

One thing strikes me as odd just from the name of that option: I am
using the `article' document class and not `book' where chapter is a
sectioning command. That should be irrelevant, I guess (?).

Best Regards,
Michael



Re: listings package options

2013-09-30 Thread Michael Bach
On 9/30/13 7:28 PM, Michael Bach wrote:
 One thing strikes me as odd just from the name of that option: I am
 using the `article' document class and not `book' where chapter is a
 sectioning command. That should be irrelevant, I guess (?).
 

RTFM.  But I really do not get it why the article documentclass
shouldn't be supported.  Will contact the listings maintainer.




listings package options

2013-09-30 Thread Michael Bach
Dear LyX Users and Developers,

I would like to add the numberbychapter=true option to the listings
package for the code listings. I looked around but did not find a GUI
option for it. I found a related issue [1] where the advice was to file
a feature request to add options to packages already loaded by LyX.

Could someone give me a hint?

Best Regards,
Michael Bach


[1] http://www.latex-community.org/forum/viewtopic.php?f=19=22991



Re: listings package options

2013-09-30 Thread Olivier Ripoll

On 30.09.2013 13:57, Michael Bach wrote:

Dear LyX Users and Developers,

I would like to add the numberbychapter=true option to the listings
package for the code listings. I looked around but did not find a GUI
option for it. I found a related issue [1] where the advice was to file
a feature request to add options to packages already loaded by LyX.

Could someone give me a hint?


For listings, you can access the individual inset settings by right 
clicking on it, the selecting "Settings...".
Then, you can type settings not in the GUI in the "Advanced" tab. Type 
your options in the "More Parameters" text box.


If you want to apply the settings to all listings in the document, which 
is the case here (this option is global), then type the text directly in 
Documents->Settings->Listings


However, that option is true by default (according to listings 
documentation and to my tests), so you should not need to do anything.


If you want to switch the option off, then type
numberbychapter=false
in the above mentioned place. Note that LyX may prevent you to apply the 
change, in such case you can check the "Bypass validation" option (I 
needed to do that for that specific option).


Tested in LyX 2.0.6 on Windows with MikTeX.

Best regards,

Olivier



Best Regards,
Michael Bach


[1] http://www.latex-community.org/forum/viewtopic.php?f=19=22991







Re: listings package options

2013-09-30 Thread Michael Bach
Hi Olivier,

Thanks for your comment.

On 9/30/13 5:23 PM, Olivier Ripoll wrote:> On 30.09.2013 13:57, Michael
Bach wrote:
>> Dear LyX Users and Developers,
>>
>> I would like to add the numberbychapter=true option to the listings
>> package for the code listings. I looked around but did not find a GUI
>> option for it. I found a related issue [1] where the advice was to file
>> a feature request to add options to packages already loaded by LyX.
>>
>> Could someone give me a hint?
>
> For listings, you can access the individual inset settings by right
> clicking on it, the selecting "Settings...".
> Then, you can type settings not in the GUI in the "Advanced" tab. Type
> your options in the "More Parameters" text box.
>
> If you want to apply the settings to all listings in the document, which
> is the case here (this option is global), then type the text directly in
> Documents->Settings->Listings
>

I had the impression that the `numberbychapter' option is a package
option and not an option for single (global) listing(s).

> However, that option is true by default (according to listings
> documentation and to my tests), so you should not need to do anything.
>
> If you want to switch the option off, then type
> numberbychapter=false
> in the above mentioned place. Note that LyX may prevent you to apply the
> change, in such case you can check the "Bypass validation" option (I
> needed to do that for that specific option).
>

I tested as you suggested in the global dialog and setting it true or
false there makes no difference, both gives consecutive numbering "Code
1", "Code 2" etc., i.e. not what I want.

> Tested in LyX 2.0.6 on Windows with MikTeX.
>

FWIW, I am in 2.0.5.1 on OS X 10.8.5 with MacTeX.

One thing strikes me as odd just from the name of that option: I am
using the `article' document class and not `book' where chapter is a
sectioning command. That should be irrelevant, I guess (?).

Best Regards,
Michael



Re: listings package options

2013-09-30 Thread Michael Bach
On 9/30/13 7:28 PM, Michael Bach wrote:
> One thing strikes me as odd just from the name of that option: I am
> using the `article' document class and not `book' where chapter is a
> sectioning command. That should be irrelevant, I guess (?).
> 

RTFM.  But I really do not get it why the article documentclass
shouldn't be supported.  Will contact the listings maintainer.




More Color options

2013-05-23 Thread Patrick Dupre
Hello,

I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).
Is it complicated?
Of course the full list of the crayola colors could also be offered!

Regards.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: More Color options

2013-05-23 Thread Richard Heck

On 05/23/2013 09:02 AM, Patrick Dupre wrote:

Hello,

I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).
Is it complicated?


Please file an enhancement request on trac. It probably isn't that hard, 
but it would mean changing how the EditText Style box works.


Definitely too late for 2.1, though.

Richard



Re: More Color options

2013-05-23 Thread Uwe Stöhr

Am 23.05.2013 15:02, schrieb Patrick Dupre:


I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).


We support to set every color for \color{}, see the document settings - color 
section.
We support the same for \pagecolor and the color of notes and boxes.

For \textcolor{} this is not that easy to do. We tried that once but this requires a lot of work. 
There is already an enhancement request in our bugtracker and perhaps somebody has time to work on 
this for the next LyX release. However, it is a good style not to use more than a few colors and for 
that matter we support already 8 colors.


regards Uwe


More Color options

2013-05-23 Thread Patrick Dupre
Hello,

I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).
Is it complicated?
Of course the full list of the crayola colors could also be offered!

Regards.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: More Color options

2013-05-23 Thread Richard Heck

On 05/23/2013 09:02 AM, Patrick Dupre wrote:

Hello,

I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).
Is it complicated?


Please file an enhancement request on trac. It probably isn't that hard, 
but it would mean changing how the EditText Style box works.


Definitely too late for 2.1, though.

Richard



Re: More Color options

2013-05-23 Thread Uwe Stöhr

Am 23.05.2013 15:02, schrieb Patrick Dupre:


I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).


We support to set every color for \color{}, see the document settings - color 
section.
We support the same for \pagecolor and the color of notes and boxes.

For \textcolor{} this is not that easy to do. We tried that once but this requires a lot of work. 
There is already an enhancement request in our bugtracker and perhaps somebody has time to work on 
this for the next LyX release. However, it is a good style not to use more than a few colors and for 
that matter we support already 8 colors.


regards Uwe


More Color options

2013-05-23 Thread Patrick Dupre
Hello,

I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).
Is it complicated?
Of course the full list of the crayola colors could also be offered!

Regards.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: More Color options

2013-05-23 Thread Richard Heck

On 05/23/2013 09:02 AM, Patrick Dupre wrote:

Hello,

I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).
Is it complicated?


Please file an enhancement request on trac. It probably isn't that hard, 
but it would mean changing how the Edit>Text Style box works.


Definitely too late for 2.1, though.

Richard



Re: More Color options

2013-05-23 Thread Uwe Stöhr

Am 23.05.2013 15:02, schrieb Patrick Dupre:


I would like to suggest to the developpers to give an option to
use an extented choice of colors, for example by giving access to the
argument of \color{} without moving to the latex mode (it could be
an option of color in text style).


We support to set every color for \color{}, see the document settings -> color 
section.
We support the same for \pagecolor and the color of notes and boxes.

For \textcolor{} this is not that easy to do. We tried that once but this requires a lot of work. 
There is already an enhancement request in our bugtracker and perhaps somebody has time to work on 
this for the next LyX release. However, it is a good style not to use more than a few colors and for 
that matter we support already 8 colors.


regards Uwe


options on a document class

2013-05-22 Thread Al Niessner

Let me start with a big thanks to all of the developers and users of Lyx. I 
have been using it for nearly exclusively for 15 years or more. Ever since 
FrameMaker got purchased by Adobe I have been using Lyx.

Lyx works so well that I have never had to learn LaTeX or TeX. I have been 
through the documentation a couple of times and have been through the WIKI 
too. I almost always get my answers there, but sometimes I have to resort to 
google. In this case, they have all failed and I finally have to post. Well, 
I do not remember every posting before.

Currently I am trying to write a paper and it comes with this request:

Latex users: please use \documentclass[conference, compsocconf]{IEEEtran} 
(with option 'compsocconf').

Since Lyx works so well and I have never had to learn LaTeX, I have no idea 
what they are asking. I poked around Lyx and the documentation and have not 
convinced myself that I have found the correct thing to do.

1) Is there some place (pull down menu or dialog box) that I am supposed to 
enter this option and Lyx will do the rest?

2) If I have to do ERT, then were does the ERT go and should I start with a 
base document or the IEEE template?

3) Some other lower level trick?

Thanks in advance for any and all help.



Re: options on a document class

2013-05-22 Thread Scott Kostyshak
On Wed, May 22, 2013 at 6:09 PM, Al Niessner al.niess...@gmx.net wrote:

Hi Al,

 Currently I am trying to write a paper and it comes with this request:

 Latex users: please use \documentclass[conference, compsocconf]{IEEEtran}
 (with option 'compsocconf').

You can set the class options here:
Document Settings  Document Class  Class options.

If that doesn't work, please send to the list a minimal example:
http://wiki.lyx.org/FAQ/MinimalExample

Best,

Scott


Re: options on a document class

2013-05-22 Thread Al Niessner
Scott Kostyshak skostysh at princeton.edu writes:

 
 On Wed, May 22, 2013 at 6:09 PM, Al Niessner Al.Niessner at gmx.net 
wrote:
 
 Hi Al,
 
  Currently I am trying to write a paper and it comes with this request:
 
  Latex users: please use \documentclass[conference, compsocconf]
{IEEEtran}
  (with option 'compsocconf').
 
 You can set the class options here:
 Document Settings  Document Class  Class options.
 
 If that doesn't work, please send to the list a minimal example:
 http://wiki.lyx.org/FAQ/MinimalExample
 
 Best,
 
 Scott
 
 

Thank you very much for the prompt response.

I put [conference, compsocconf] in the custom block. I presume I need the [] 
and that conference is also an option. I have tried very hard to not learn 
LaTeX or Tex. I figured once I did that writing papers would become a 
programming exercise all of its own.




Re: options on a document class

2013-05-22 Thread Scott Kostyshak
On Wed, May 22, 2013 at 6:59 PM, Al Niessner al.niess...@gmx.net wrote:
 Scott Kostyshak skostysh at princeton.edu writes:


 On Wed, May 22, 2013 at 6:09 PM, Al Niessner Al.Niessner at gmx.net
 wrote:

 Hi Al,

  Currently I am trying to write a paper and it comes with this request:
 
  Latex users: please use \documentclass[conference, compsocconf]
 {IEEEtran}
  (with option 'compsocconf').

 You can set the class options here:
 Document Settings  Document Class  Class options.

 If that doesn't work, please send to the list a minimal example:
 http://wiki.lyx.org/FAQ/MinimalExample

 Best,

 Scott



 Thank you very much for the prompt response.

 I put [conference, compsocconf] in the custom block. I presume I need the []
 and that conference is also an option. I have tried very hard to not learn
 LaTeX or Tex. I figured once I did that writing papers would become a
 programming exercise all of its own.

You do not need the [].

Scott


Re: options on a document class

2013-05-22 Thread Al Niessner

Just tried to view the document and fixed the custom block. Seems to
working at this point. Thanks again for all of the help.

On Wed, 2013-05-22 at 18:33 -0400, Scott Kostyshak wrote:
 On Wed, May 22, 2013 at 6:09 PM, Al Niessner al.niess...@gmx.net wrote:
 
 Hi Al,
 
  Currently I am trying to write a paper and it comes with this request:
 
  Latex users: please use \documentclass[conference, compsocconf]{IEEEtran}
  (with option 'compsocconf').
 
 You can set the class options here:
 Document Settings  Document Class  Class options.
 
 If that doesn't work, please send to the list a minimal example:
 http://wiki.lyx.org/FAQ/MinimalExample
 
 Best,
 
 Scott

-- 
Al Niessner

I have never found the companion that was so companionable as solitude.
- From Walden by Henry David Thoreau

The universe is indifferent, and life is brutal; however, it is man's
choice of behavior that makes them malevolent rather than benevolent.

Some will fall in love with life and drink it from a fountain
That is pouring like an avalanche coming down the mountain.
- From the song Pepper by the Butthole Surfers




options on a document class

2013-05-22 Thread Al Niessner

Let me start with a big thanks to all of the developers and users of Lyx. I 
have been using it for nearly exclusively for 15 years or more. Ever since 
FrameMaker got purchased by Adobe I have been using Lyx.

Lyx works so well that I have never had to learn LaTeX or TeX. I have been 
through the documentation a couple of times and have been through the WIKI 
too. I almost always get my answers there, but sometimes I have to resort to 
google. In this case, they have all failed and I finally have to post. Well, 
I do not remember every posting before.

Currently I am trying to write a paper and it comes with this request:

Latex users: please use \documentclass[conference, compsocconf]{IEEEtran} 
(with option 'compsocconf').

Since Lyx works so well and I have never had to learn LaTeX, I have no idea 
what they are asking. I poked around Lyx and the documentation and have not 
convinced myself that I have found the correct thing to do.

1) Is there some place (pull down menu or dialog box) that I am supposed to 
enter this option and Lyx will do the rest?

2) If I have to do ERT, then were does the ERT go and should I start with a 
base document or the IEEE template?

3) Some other lower level trick?

Thanks in advance for any and all help.



Re: options on a document class

2013-05-22 Thread Scott Kostyshak
On Wed, May 22, 2013 at 6:09 PM, Al Niessner al.niess...@gmx.net wrote:

Hi Al,

 Currently I am trying to write a paper and it comes with this request:

 Latex users: please use \documentclass[conference, compsocconf]{IEEEtran}
 (with option 'compsocconf').

You can set the class options here:
Document Settings  Document Class  Class options.

If that doesn't work, please send to the list a minimal example:
http://wiki.lyx.org/FAQ/MinimalExample

Best,

Scott


Re: options on a document class

2013-05-22 Thread Al Niessner
Scott Kostyshak skostysh at princeton.edu writes:

 
 On Wed, May 22, 2013 at 6:09 PM, Al Niessner Al.Niessner at gmx.net 
wrote:
 
 Hi Al,
 
  Currently I am trying to write a paper and it comes with this request:
 
  Latex users: please use \documentclass[conference, compsocconf]
{IEEEtran}
  (with option 'compsocconf').
 
 You can set the class options here:
 Document Settings  Document Class  Class options.
 
 If that doesn't work, please send to the list a minimal example:
 http://wiki.lyx.org/FAQ/MinimalExample
 
 Best,
 
 Scott
 
 

Thank you very much for the prompt response.

I put [conference, compsocconf] in the custom block. I presume I need the [] 
and that conference is also an option. I have tried very hard to not learn 
LaTeX or Tex. I figured once I did that writing papers would become a 
programming exercise all of its own.




Re: options on a document class

2013-05-22 Thread Scott Kostyshak
On Wed, May 22, 2013 at 6:59 PM, Al Niessner al.niess...@gmx.net wrote:
 Scott Kostyshak skostysh at princeton.edu writes:


 On Wed, May 22, 2013 at 6:09 PM, Al Niessner Al.Niessner at gmx.net
 wrote:

 Hi Al,

  Currently I am trying to write a paper and it comes with this request:
 
  Latex users: please use \documentclass[conference, compsocconf]
 {IEEEtran}
  (with option 'compsocconf').

 You can set the class options here:
 Document Settings  Document Class  Class options.

 If that doesn't work, please send to the list a minimal example:
 http://wiki.lyx.org/FAQ/MinimalExample

 Best,

 Scott



 Thank you very much for the prompt response.

 I put [conference, compsocconf] in the custom block. I presume I need the []
 and that conference is also an option. I have tried very hard to not learn
 LaTeX or Tex. I figured once I did that writing papers would become a
 programming exercise all of its own.

You do not need the [].

Scott


Re: options on a document class

2013-05-22 Thread Al Niessner

Just tried to view the document and fixed the custom block. Seems to
working at this point. Thanks again for all of the help.

On Wed, 2013-05-22 at 18:33 -0400, Scott Kostyshak wrote:
 On Wed, May 22, 2013 at 6:09 PM, Al Niessner al.niess...@gmx.net wrote:
 
 Hi Al,
 
  Currently I am trying to write a paper and it comes with this request:
 
  Latex users: please use \documentclass[conference, compsocconf]{IEEEtran}
  (with option 'compsocconf').
 
 You can set the class options here:
 Document Settings  Document Class  Class options.
 
 If that doesn't work, please send to the list a minimal example:
 http://wiki.lyx.org/FAQ/MinimalExample
 
 Best,
 
 Scott

-- 
Al Niessner

I have never found the companion that was so companionable as solitude.
- From Walden by Henry David Thoreau

The universe is indifferent, and life is brutal; however, it is man's
choice of behavior that makes them malevolent rather than benevolent.

Some will fall in love with life and drink it from a fountain
That is pouring like an avalanche coming down the mountain.
- From the song Pepper by the Butthole Surfers




options on a document class

2013-05-22 Thread Al Niessner

Let me start with a big thanks to all of the developers and users of Lyx. I 
have been using it for nearly exclusively for 15 years or more. Ever since 
FrameMaker got purchased by Adobe I have been using Lyx.

Lyx works so well that I have never had to learn LaTeX or TeX. I have been 
through the documentation a couple of times and have been through the WIKI 
too. I almost always get my answers there, but sometimes I have to resort to 
google. In this case, they have all failed and I finally have to post. Well, 
I do not remember every posting before.

Currently I am trying to write a paper and it comes with this request:

Latex users: please use \documentclass[conference, compsocconf]{IEEEtran} 
(with option 'compsocconf').

Since Lyx works so well and I have never had to learn LaTeX, I have no idea 
what they are asking. I poked around Lyx and the documentation and have not 
convinced myself that I have found the correct thing to do.

1) Is there some place (pull down menu or dialog box) that I am supposed to 
enter this option and Lyx will do the rest?

2) If I have to do ERT, then were does the ERT go and should I start with a 
base document or the IEEE template?

3) Some other lower level trick?

Thanks in advance for any and all help.



Re: options on a document class

2013-05-22 Thread Scott Kostyshak
On Wed, May 22, 2013 at 6:09 PM, Al Niessner <al.niess...@gmx.net> wrote:

Hi Al,

> Currently I am trying to write a paper and it comes with this request:
>
> Latex users: please use \documentclass[conference, compsocconf]{IEEEtran}
> (with option 'compsocconf').

You can set the class options here:
Document Settings > Document Class > Class options.

If that doesn't work, please send to the list a minimal example:
http://wiki.lyx.org/FAQ/MinimalExample

Best,

Scott


Re: options on a document class

2013-05-22 Thread Al Niessner
Scott Kostyshak  princeton.edu> writes:

> 
> On Wed, May 22, 2013 at 6:09 PM, Al Niessner  gmx.net> 
wrote:
> 
> Hi Al,
> 
> > Currently I am trying to write a paper and it comes with this request:
> >
> > Latex users: please use \documentclass[conference, compsocconf]
{IEEEtran}
> > (with option 'compsocconf').
> 
> You can set the class options here:
> Document Settings > Document Class > Class options.
> 
> If that doesn't work, please send to the list a minimal example:
> http://wiki.lyx.org/FAQ/MinimalExample
> 
> Best,
> 
> Scott
> 
> 

Thank you very much for the prompt response.

I put [conference, compsocconf] in the custom block. I presume I need the [] 
and that conference is also an option. I have tried very hard to not learn 
LaTeX or Tex. I figured once I did that writing papers would become a 
programming exercise all of its own.




Re: options on a document class

2013-05-22 Thread Scott Kostyshak
On Wed, May 22, 2013 at 6:59 PM, Al Niessner <al.niess...@gmx.net> wrote:
> Scott Kostyshak  princeton.edu> writes:
>
>>
>> On Wed, May 22, 2013 at 6:09 PM, Al Niessner  gmx.net>
> wrote:
>>
>> Hi Al,
>>
>> > Currently I am trying to write a paper and it comes with this request:
>> >
>> > Latex users: please use \documentclass[conference, compsocconf]
> {IEEEtran}
>> > (with option 'compsocconf').
>>
>> You can set the class options here:
>> Document Settings > Document Class > Class options.
>>
>> If that doesn't work, please send to the list a minimal example:
>> http://wiki.lyx.org/FAQ/MinimalExample
>>
>> Best,
>>
>> Scott
>>
>>
>
> Thank you very much for the prompt response.
>
> I put [conference, compsocconf] in the custom block. I presume I need the []
> and that conference is also an option. I have tried very hard to not learn
> LaTeX or Tex. I figured once I did that writing papers would become a
> programming exercise all of its own.

You do not need the [].

Scott


Re: options on a document class

2013-05-22 Thread Al Niessner

Just tried to view the document and fixed the custom block. Seems to
working at this point. Thanks again for all of the help.

On Wed, 2013-05-22 at 18:33 -0400, Scott Kostyshak wrote:
> On Wed, May 22, 2013 at 6:09 PM, Al Niessner <al.niess...@gmx.net> wrote:
> 
> Hi Al,
> 
> > Currently I am trying to write a paper and it comes with this request:
> >
> > Latex users: please use \documentclass[conference, compsocconf]{IEEEtran}
> > (with option 'compsocconf').
> 
> You can set the class options here:
> Document Settings > Document Class > Class options.
> 
> If that doesn't work, please send to the list a minimal example:
> http://wiki.lyx.org/FAQ/MinimalExample
> 
> Best,
> 
> Scott

-- 
Al Niessner

I have never found the companion that was so companionable as solitude.
- From Walden by Henry David Thoreau

The universe is indifferent, and life is brutal; however, it is man's
choice of behavior that makes them malevolent rather than benevolent.

Some will fall in love with life and drink it from a fountain
That is pouring like an avalanche coming down the mountain.
- From the song Pepper by the Butthole Surfers




Re: setting options for bibtex

2013-02-05 Thread Csikos Bela
Coen van Hasselt coenvanhass...@gmail.com írta:

I want to turn off printing of DOIs in my BibTex bibliography in Lyx.
When I try to add the option doi=false under Document settings -
Bibliography - Bibliography generation - Options
the bibliography is not generated anymore (i.e. question mark for
citation and empty bibliography). How can I set this option via Lyx ?

thanks,
coen


Hello:

I guess you cannot do this, that is control bibliography output style, in lyx.
How the bibliography looks is determined by the bibliograpy style file (.bst 
file). When you insert bibliography in lyx, you have to select the bibtex 
database file (.bib) file and the style file (.bst). The bst file controls how 
the citations and the bibliography are formatted. You can choose predefined bst 
files or you can create one according to your liking. Creating a bst file is 
not the easiest at first, it takes some time to learn it. I am aware of two 
tools for creating bst style files:

1. custom-bib package for tex/latex (http://www.ctan.org/pkg/custom-bib)

2. Java based bib-it program has a style file generator module.
http://bib-it.sourceforge.net/features.php

Maybe the second one is easier to use.
One can control which keys in what order should be in a bibliography item (and 
citations as well) and how they are formatted.

Regards,

bcsikos



Re: setting options for bibtex

2013-02-05 Thread Paul A . Rubin
Are you using NatBib? I'm not sure, but I think doi=... is an option for NatBib,
whereas you're trying to insert it as an option for BibTeX. If you're using
NatBib, try adding doi=false to Document  Settings...  Document Class  Class
options  Custom. Options specified here are passed down the line to loaded
packages (which ignore the option if it's not one they know).

Paul



Re: setting options for bibtex

2013-02-05 Thread Csikos Bela
Coen van Hasselt coenvanhass...@gmail.com írta:

I want to turn off printing of DOIs in my BibTex bibliography in Lyx.
When I try to add the option doi=false under Document settings -
Bibliography - Bibliography generation - Options
the bibliography is not generated anymore (i.e. question mark for
citation and empty bibliography). How can I set this option via Lyx ?

thanks,
coen


Hello:

I guess you cannot do this, that is control bibliography output style, in lyx.
How the bibliography looks is determined by the bibliograpy style file (.bst 
file). When you insert bibliography in lyx, you have to select the bibtex 
database file (.bib) file and the style file (.bst). The bst file controls how 
the citations and the bibliography are formatted. You can choose predefined bst 
files or you can create one according to your liking. Creating a bst file is 
not the easiest at first, it takes some time to learn it. I am aware of two 
tools for creating bst style files:

1. custom-bib package for tex/latex (http://www.ctan.org/pkg/custom-bib)

2. Java based bib-it program has a style file generator module.
http://bib-it.sourceforge.net/features.php

Maybe the second one is easier to use.
One can control which keys in what order should be in a bibliography item (and 
citations as well) and how they are formatted.

Regards,

bcsikos



Re: setting options for bibtex

2013-02-05 Thread Paul A . Rubin
Are you using NatBib? I'm not sure, but I think doi=... is an option for NatBib,
whereas you're trying to insert it as an option for BibTeX. If you're using
NatBib, try adding doi=false to Document  Settings...  Document Class  Class
options  Custom. Options specified here are passed down the line to loaded
packages (which ignore the option if it's not one they know).

Paul



Re: setting options for bibtex

2013-02-05 Thread Csikos Bela
Coen van Hasselt <coenvanhass...@gmail.com> írta:

>I want to turn off printing of DOIs in my BibTex bibliography in Lyx.
>When I try to add the option doi=false under Document settings ->
>Bibliography -> Bibliography generation -> Options
>the bibliography is not generated anymore (i.e. question mark for
>citation and empty bibliography). How can I set this option via Lyx ?
>
>thanks,
>coen
>

Hello:

I guess you cannot do this, that is control bibliography output style, in lyx.
How the bibliography looks is determined by the bibliograpy style file (.bst 
file). When you insert bibliography in lyx, you have to select the bibtex 
database file (.bib) file and the style file (.bst). The bst file controls how 
the citations and the bibliography are formatted. You can choose predefined bst 
files or you can create one according to your liking. Creating a bst file is 
not the easiest at first, it takes some time to learn it. I am aware of two 
tools for creating bst style files:

1. custom-bib package for tex/latex (http://www.ctan.org/pkg/custom-bib)

2. Java based bib-it program has a style file generator module.
http://bib-it.sourceforge.net/features.php

Maybe the second one is easier to use.
One can control which keys in what order should be in a bibliography item (and 
citations as well) and how they are formatted.

Regards,

bcsikos



Re: setting options for bibtex

2013-02-05 Thread Paul A . Rubin
Are you using NatBib? I'm not sure, but I think doi=... is an option for NatBib,
whereas you're trying to insert it as an option for BibTeX. If you're using
NatBib, try adding doi=false to Document > Settings... > Document Class > Class
options > Custom. Options specified here are passed down the line to loaded
packages (which ignore the option if it's not one they know).

Paul



  1   2   3   4   5   6   7   >