Solved: Change Bibliography style and name

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/12 16:39, Richard Heck wrote:
 On 09/05/2012 07:09 AM, Rainer M Krug wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 Hi
 
 In the attached file, I would like to do two things:
 
 1) replace the automatic name Bibliography with Literature and
 At the very beginning of the document: 
 \addto\captionsenglish{\renewcommand\bibname{Literature}} You have to do it 
 this way because 
 you are using babel.
 
 2) change the style to Section
 
 To do that, you will need to copy the declaration of \thebibliography from 
 book.cls to your 
 preamble, change it from \newenvironment to \renewenvironment, and change the 
 line that makes 
 it a chapter* to one that makes it a section*.

Thanks Richard

works like a charm.

Cheers,

Rainer

 
 rh
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBIcrgACgkQoYgNqgF2egqT4wCggnolPIPhOYej36fKIXKslNLA
xRAAnA/yvygp+gCCSphV8geHq++ZAGid
=zefV
-END PGP SIGNATURE-


redefine \includegraphics to include \shadowbox?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

not strictly LyX, but it will end in a LyX document.

I want to use instead of
\incldegraphics[]{}

\shadowbox\includegraphics[]{}
as the default.

Therefore I thought about redefining \includegraphic:

\renewcommand{\includegraphics}{\shadowbox\includegraphics}

so that each time \includegraphics is called, actually the graphic is included 
in a shadowbox. But
the above does not work:
###
 Missing { inserted.
to be read again
   \do@VerbBox
l.80 \includegraphics
 {0_home_rkrug_Documents_Publications_2012_handbook_Mana...
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)
###

Any suggestions how I can redefine \includegraphics ?

Thanks,

Rainer
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBInw0ACgkQoYgNqgF2egpTMQCghYujKVCRXnLurTGhktmWxbND
IOsAn2s1YidNRMYaXOAiIivGL5M5nzE+
=6luv
-END PGP SIGNATURE-


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread John Kane
Hello to Rainer and David
Continuing saga

@ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on my 
part.

@ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
remove

Just give it a try this morning and results are
john@john-K53U:~$ sudo tlmgr path remove
[sudo] password for john: 
sudo: tlmgr: command not found

which I suppose is not surprising. 

john@john-K53U:~$ latex --version
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
kpathsea version 6.1.0

Which looks good.

Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
update packages?  

Thanks for all the help and handholding.  





 From: Rainer M Krug r.m.k...@gmail.com
To: lyx-users@lists.lyx.org 
Cc: David L. Johnson david.john...@lehigh.edu; Lyx List 
lyx-users@lists.lyx.org 
Sent: Wednesday, September 5, 2012 11:32:28 AM
Subject: Re: LyX andTeX Live: How to find and link a new latex version?
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/12 16:40, John Kane wrote:
 To David and Rainer,
 
 To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
 and now get :

I assume, you also followed step 1 and 2 and did
sudo tlmgr path remove
?

 
 john@john-K53U:~$ texlive --version texlive: command not found

I am not aware of a command named texlive

 john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
 Command 'vlmgr' from
 package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
 (universe) tlmgr:
 command not found

Makes sense - as you removed the links o the commands from the path.

 
 john@john-K53U:~$ which latex /usr/bin/latex

This is strange - what gives you

latex --version


 
 Interestingly enough when  I do a ls in /bin I no longer seem to see anything 
 called latex
 
 However much to my surprise LyX is still running happily and  the tex 
 information shows 
 /usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks 
 like LyX has found
 something, presumabley ver.2012 since the old path was usr/local/texlive2011.
 
 Now, presumably I can reinstall a version of tlmgr and have another go at 
 installing leadpar.
 Or should I expect it to have installed automatically with ver. 2012?
 
 The worst of all this is that I really don't need leadpar, I just was trying 
 to do a LyX sales
 job on a history graduate student and wanted him to see what some of the more 
 specialized
 packages could do.  Even he does not really need it but now it's got me 
 annoyed that I cannot
 do it.
 
 Also I am likely to need to update some of my packages so I do need to get 
 tlmgr working but
 it's not that urgent.
 
 Anywhat thanks for all the help so far.
 
 

 
*From:* Rainer M Krug r.m.k...@gmail.com
 *To:* John Kane jrkrid...@yahoo.ca *Cc:* David L. Johnson 
 david.john...@lehigh.edu; Lyx
 List lyx-users@lists.lyx.org *Sent:* Tuesday, September 4, 2012 3:46:03 AM 
 *Subject:* Re: LyX
 andTeX Live: How to find and link a new latex version?
 
 On 02/09/12 01:26, John Kane wrote:
 
 
 

 
 
 
 *From:* David L. Johnson david.john...@lehigh.edu 
 mailto:david.john...@lehigh.edu
 *To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca *Sent:* 
 Saturday, September
 1,
 2012 1:51:43 PM *Subject:*
 Re: LyX andTeX Live: How to find and link a new latex version?
 
 On 09/01/2012 01:33 PM, John Kane wrote:
 Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
 Basically I have a 
 dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 with 
 apparently no 
 problem.
 But the system works fine for other programs, is that right?  There must be 
 something else 
 amiss.
 
 No problem what-so-ever as far as I can see. I have a few programs I use 
 regularly - 
 LibreOffice, gedit, R, Firefox,  plus a couple play around with - EMACS, 
 gnumeric-- and they 
 all install and operate with no problem. Installed mainly with the software 
 centre or 
 synaptics although I think I updated R manually from a PPA as the Ubuntu 
 version was
 outdated. I did install tlmgr for 2011 manually following some instructions 
 that Stefano
 Franco supplied on the list.
 
 I have no real idea of what is correct or not-- I lack the partly intuitive 
 feel that I
 had for Windws after years of battling
 
 OTOH, I have no idea about Windows.  My last Windows machine was version 3.1.
 
 You really have not missed much. My employers supplied Windows and, 
 perforce, I used it. :( 
 Still, it beat punch cards but not by much.
 
 
 Now my students laugh at me when I try to use one in class for 
 presentations, so I bring my 
 laptop.
 
 Can you re-describe your basic issue for me?  I did jump in the middle of 
 this.  That other 
 guy's suggestion to use tlmgr may 

Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/12 15:21, John Kane wrote:
 Hello to Rainer and David Continuing saga
 
 @ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on 
 my part.
 
 @ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
 remove
 
 Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
 path remove [sudo]
 password for john: sudo: tlmgr: command not found
 
 which I suppose is not surprising.

Exacly.

 
 john@john-K53U:~$ latex --version pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 
 2012/Debian) kpathsea
 version 6.1.0
 
 Which looks good.
 
 Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
 update packages?
 
If you have installed via synaptic / apt-get / software-centre, then you won't 
have tlmgr
installed (based on debian / ubuntu policies - package management only via 
package manager.)

I guess the problem possibly came because you installed tlmgr and used it on 
your installation via
apt. This might have led to inconsistencies.

Either don't use tlmgr, or install texlive from their website and not via the 
package manager
(apt-get, synaptic, software-centre, ...)

Cheers,

Rainer


 
 Thanks for all the help and handholding.
 
 
 

 
*From:* Rainer M Krug r.m.k...@gmail.com
 *To:* lyx-users@lists.lyx.org *Cc:* David L. Johnson 
 david.john...@lehigh.edu; Lyx List
 lyx-users@lists.lyx.org *Sent:* Wednesday, September 5, 2012 11:32:28 AM 
 *Subject:* Re: LyX
 andTeX Live: How to find and link a new latex version?
 
 On 05/09/12 16:40, John Kane wrote:
 To David and Rainer,
 
 To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
 and now get :
 
 I assume, you also followed step 1 and 2 and did sudo tlmgr path remove ?
 
 
 john@john-K53U:~$ texlive --version texlive: command not found
 
 I am not aware of a command named texlive
 
 john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
 Command 'vlmgr'
 from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
 (universe)
 tlmgr: command not found
 
 Makes sense - as you removed the links o the commands from the path.
 
 
 john@john-K53U:~$ which latex /usr/bin/latex
 
 This is strange - what gives you
 
 latex --version
 
 
 
 Interestingly enough when  I do a ls in /bin I no longer seem to see 
 anything called latex
 
 However much to my surprise LyX is still running happily and  the tex 
 information shows 
 /usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks 
 like LyX has found 
 something, presumabley ver.2012 since the old path was usr/local/texlive2011.
 
 Now, presumably I can reinstall a version of tlmgr and have another go at 
 installing
 leadpar. Or should I expect it to have installed automatically with ver. 
 2012?
 
 The worst of all this is that I really don't need leadpar, I just was trying 
 to do a LyX
 sales job on a history graduate student and wanted him to see what some of 
 the more
 specialized packages could do.  Even he does not really need it but now it's 
 got me annoyed
 that I cannot do it.
 
 Also I am likely to need to update some of my packages so I do need to get 
 tlmgr working but 
 it's not that urgent.
 
 Anywhat thanks for all the help so far.
 
 

 
 
 *From:* Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com
 *To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca *Cc:* David 
 L. Johnson
 david.john...@lehigh.edu mailto:david.john...@lehigh.edu; Lyx
 List lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org *Sent:* 
 Tuesday, September 4,
 2012
 3:46:03 AM *Subject:* Re: LyX
 andTeX Live: How to find and link a new latex version?
 
 On 02/09/12 01:26, John Kane wrote:
 
 
 

 
 
 
 
 *From:* David L. Johnson david.john...@lehigh.edu 
 mailto:david.john...@lehigh.edu
 mailto:david.john...@lehigh.edu mailto:david.john...@lehigh.edu
 *To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca 
 mailto:jrkrid...@yahoo.ca
 mailto:jrkrid...@yahoo.ca *Sent:* Saturday, September
 1,
 2012 1:51:43 PM *Subject:*
 Re: LyX andTeX Live: How to find and link a new latex version?
 
 On 09/01/2012 01:33 PM, John Kane wrote:
 Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
 Basically I have
 a dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 
 with apparently
 no problem.
 But the system works fine for other programs, is that right?  There must be 
 something else 
 amiss.
 
 No problem what-so-ever as far as I can see. I have a few programs I use 
 regularly - 
 LibreOffice, gedit, R, Firefox,  plus a couple play around with - EMACS, 
 gnumeric-- and
 they 

Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the ToDo Notes Environments module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

Thanks,

Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBIqKUACgkQoYgNqgF2egoKdACfWtYqp1KN6O7ykHMTpga8JnxB
G2EAnR6g34hM1lvIRm4PqV32nZOplcWp
=C4ex
-END PGP SIGNATURE-


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread stefano franchi
On Thu, Sep 6, 2012 at 8:34 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
 path remove [sudo]
 password for john: sudo: tlmgr: command not found

 which I suppose is not surprising.

 Exacly.

 Now,  any idea if I can install or find tlmgr?  Otherwise how do I install 
 or update packages?

You are not supposed to use it, in fact, if you installed texlive with
appcenter/synaptic, etc.

However:
Notice that you may have tlmgr installed (the default if texlive was
installed directly) and it may not be on the  sudo path (this is an
Ubuntu feature, it has to do with how the shell was compiled. You'll
find a lot of detail if you google for sudo ubuntu PATH). To find
out if this is the case, just type which tlmgr at a prompt. If a
tlmgr is found, you can always run it with sudo by passing the full
path: sudo /path/to/tlmgr path remove
On the other hand, if which tlmgr does not return anything you have
one fewer problem to worry about.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


Re: Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Richard Heck

On 09/06/2012 09:44 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the ToDo Notes Environments module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

I am guessing that there is no XHTML-related code in the module. I'll 
try to have a look.


Richard



Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread UD
As someone who had used Miktex on Windows for years, I also wanted to 
install tlmgr on my ubuntu machines, in order to manage texlive packages.
But I wonder-- wouldn't ubuntu upgrade texlive packages as they get 
updated?  I like the philosophy of installing everything through one 
package manager.


EK

On 09/06/2012 09:34 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/12 15:21, John Kane wrote:

Hello to Rainer and David Continuing saga

@ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on my 
part.

@ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
remove

Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
path remove [sudo]
password for john: sudo: tlmgr: command not found

which I suppose is not surprising.

Exacly.


john@john-K53U:~$ latex --version pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 
2012/Debian) kpathsea
version 6.1.0

Which looks good.

Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
update packages?


If you have installed via synaptic / apt-get / software-centre, then you won't 
have tlmgr
installed (based on debian / ubuntu policies - package management only via 
package manager.)

I guess the problem possibly came because you installed tlmgr and used it on 
your installation via
apt. This might have led to inconsistencies.

Either don't use tlmgr, or install texlive from their website and not via the 
package manager
(apt-get, synaptic, software-centre, ...)

Cheers,

Rainer



Thanks for all the help and handholding.






*From:* Rainer M Krug r.m.k...@gmail.com

*To:* lyx-users@lists.lyx.org *Cc:* David L. Johnson 
david.john...@lehigh.edu; Lyx List
lyx-users@lists.lyx.org *Sent:* Wednesday, September 5, 2012 11:32:28 AM 
*Subject:* Re: LyX
andTeX Live: How to find and link a new latex version?

On 05/09/12 16:40, John Kane wrote:

To David and Rainer,
To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
and now get :

I assume, you also followed step 1 and 2 and did sudo tlmgr path remove ?



john@john-K53U:~$ texlive --version texlive: command not found

I am not aware of a command named texlive


john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
Command 'vlmgr'
from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
(universe)
tlmgr: command not found

Makes sense - as you removed the links o the commands from the path.



john@john-K53U:~$ which latex /usr/bin/latex

This is strange - what gives you

latex --version




Interestingly enough when  I do a ls in /bin I no longer seem to see anything 
called latex
However much to my surprise LyX is still running happily and  the tex 
information shows
/usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks like 
LyX has found
something, presumabley ver.2012 since the old path was usr/local/texlive2011.
Now, presumably I can reinstall a version of tlmgr and have another go at 
installing
leadpar. Or should I expect it to have installed automatically with ver. 2012?
The worst of all this is that I really don't need leadpar, I just was trying to 
do a LyX
sales job on a history graduate student and wanted him to see what some of the 
more
specialized packages could do.  Even he does not really need it but now it's 
got me annoyed
that I cannot do it.
Also I am likely to need to update some of my packages so I do need to get 
tlmgr working but
it's not that urgent.
Anywhat thanks for all the help so far.


*From:* Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com

*To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca *Cc:* David L. 
Johnson

david.john...@lehigh.edu mailto:david.john...@lehigh.edu; Lyx

List lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org *Sent:* 
Tuesday, September 4,
2012

3:46:03 AM *Subject:* Re: LyX

andTeX Live: How to find and link a new latex version?
On 02/09/12 01:26, John Kane wrote:








*From:* David L. Johnson david.john...@lehigh.edu 
mailto:david.john...@lehigh.edu

mailto:david.john...@lehigh.edu mailto:david.john...@lehigh.edu

*To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca 
mailto:jrkrid...@yahoo.ca

mailto:jrkrid...@yahoo.ca *Sent:* Saturday, September

1,

2012 1:51:43 PM *Subject:*

Re: LyX andTeX Live: How to find and link a new latex version?
On 09/01/2012 01:33 PM, John Kane wrote:

Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
Basically I have
a dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 with 
apparently
no problem.

But the system works fine for other programs, is that right? 

Solved: Change Bibliography style and name

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/12 16:39, Richard Heck wrote:
 On 09/05/2012 07:09 AM, Rainer M Krug wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 Hi
 
 In the attached file, I would like to do two things:
 
 1) replace the automatic name Bibliography with Literature and
 At the very beginning of the document: 
 \addto\captionsenglish{\renewcommand\bibname{Literature}} You have to do it 
 this way because 
 you are using babel.
 
 2) change the style to Section
 
 To do that, you will need to copy the declaration of \thebibliography from 
 book.cls to your 
 preamble, change it from \newenvironment to \renewenvironment, and change the 
 line that makes 
 it a chapter* to one that makes it a section*.

Thanks Richard

works like a charm.

Cheers,

Rainer

 
 rh
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBIcrgACgkQoYgNqgF2egqT4wCggnolPIPhOYej36fKIXKslNLA
xRAAnA/yvygp+gCCSphV8geHq++ZAGid
=zefV
-END PGP SIGNATURE-


redefine \includegraphics to include \shadowbox?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

not strictly LyX, but it will end in a LyX document.

I want to use instead of
\incldegraphics[]{}

\shadowbox\includegraphics[]{}
as the default.

Therefore I thought about redefining \includegraphic:

\renewcommand{\includegraphics}{\shadowbox\includegraphics}

so that each time \includegraphics is called, actually the graphic is included 
in a shadowbox. But
the above does not work:
###
 Missing { inserted.
to be read again
   \do@VerbBox
l.80 \includegraphics
 {0_home_rkrug_Documents_Publications_2012_handbook_Mana...
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)
###

Any suggestions how I can redefine \includegraphics ?

Thanks,

Rainer
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBInw0ACgkQoYgNqgF2egpTMQCghYujKVCRXnLurTGhktmWxbND
IOsAn2s1YidNRMYaXOAiIivGL5M5nzE+
=6luv
-END PGP SIGNATURE-


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread John Kane
Hello to Rainer and David
Continuing saga

@ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on my 
part.

@ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
remove

Just give it a try this morning and results are
john@john-K53U:~$ sudo tlmgr path remove
[sudo] password for john: 
sudo: tlmgr: command not found

which I suppose is not surprising. 

john@john-K53U:~$ latex --version
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
kpathsea version 6.1.0

Which looks good.

Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
update packages?  

Thanks for all the help and handholding.  





 From: Rainer M Krug r.m.k...@gmail.com
To: lyx-users@lists.lyx.org 
Cc: David L. Johnson david.john...@lehigh.edu; Lyx List 
lyx-users@lists.lyx.org 
Sent: Wednesday, September 5, 2012 11:32:28 AM
Subject: Re: LyX andTeX Live: How to find and link a new latex version?
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/12 16:40, John Kane wrote:
 To David and Rainer,
 
 To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
 and now get :

I assume, you also followed step 1 and 2 and did
sudo tlmgr path remove
?

 
 john@john-K53U:~$ texlive --version texlive: command not found

I am not aware of a command named texlive

 john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
 Command 'vlmgr' from
 package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
 (universe) tlmgr:
 command not found

Makes sense - as you removed the links o the commands from the path.

 
 john@john-K53U:~$ which latex /usr/bin/latex

This is strange - what gives you

latex --version


 
 Interestingly enough when  I do a ls in /bin I no longer seem to see anything 
 called latex
 
 However much to my surprise LyX is still running happily and  the tex 
 information shows 
 /usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks 
 like LyX has found
 something, presumabley ver.2012 since the old path was usr/local/texlive2011.
 
 Now, presumably I can reinstall a version of tlmgr and have another go at 
 installing leadpar.
 Or should I expect it to have installed automatically with ver. 2012?
 
 The worst of all this is that I really don't need leadpar, I just was trying 
 to do a LyX sales
 job on a history graduate student and wanted him to see what some of the more 
 specialized
 packages could do.  Even he does not really need it but now it's got me 
 annoyed that I cannot
 do it.
 
 Also I am likely to need to update some of my packages so I do need to get 
 tlmgr working but
 it's not that urgent.
 
 Anywhat thanks for all the help so far.
 
 

 
*From:* Rainer M Krug r.m.k...@gmail.com
 *To:* John Kane jrkrid...@yahoo.ca *Cc:* David L. Johnson 
 david.john...@lehigh.edu; Lyx
 List lyx-users@lists.lyx.org *Sent:* Tuesday, September 4, 2012 3:46:03 AM 
 *Subject:* Re: LyX
 andTeX Live: How to find and link a new latex version?
 
 On 02/09/12 01:26, John Kane wrote:
 
 
 

 
 
 
 *From:* David L. Johnson david.john...@lehigh.edu 
 mailto:david.john...@lehigh.edu
 *To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca *Sent:* 
 Saturday, September
 1,
 2012 1:51:43 PM *Subject:*
 Re: LyX andTeX Live: How to find and link a new latex version?
 
 On 09/01/2012 01:33 PM, John Kane wrote:
 Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
 Basically I have a 
 dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 with 
 apparently no 
 problem.
 But the system works fine for other programs, is that right?  There must be 
 something else 
 amiss.
 
 No problem what-so-ever as far as I can see. I have a few programs I use 
 regularly - 
 LibreOffice, gedit, R, Firefox,  plus a couple play around with - EMACS, 
 gnumeric-- and they 
 all install and operate with no problem. Installed mainly with the software 
 centre or 
 synaptics although I think I updated R manually from a PPA as the Ubuntu 
 version was
 outdated. I did install tlmgr for 2011 manually following some instructions 
 that Stefano
 Franco supplied on the list.
 
 I have no real idea of what is correct or not-- I lack the partly intuitive 
 feel that I
 had for Windws after years of battling
 
 OTOH, I have no idea about Windows.  My last Windows machine was version 3.1.
 
 You really have not missed much. My employers supplied Windows and, 
 perforce, I used it. :( 
 Still, it beat punch cards but not by much.
 
 
 Now my students laugh at me when I try to use one in class for 
 presentations, so I bring my 
 laptop.
 
 Can you re-describe your basic issue for me?  I did jump in the middle of 
 this.  That other 
 guy's suggestion to use tlmgr may 

Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/12 15:21, John Kane wrote:
 Hello to Rainer and David Continuing saga
 
 @ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on 
 my part.
 
 @ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
 remove
 
 Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
 path remove [sudo]
 password for john: sudo: tlmgr: command not found
 
 which I suppose is not surprising.

Exacly.

 
 john@john-K53U:~$ latex --version pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 
 2012/Debian) kpathsea
 version 6.1.0
 
 Which looks good.
 
 Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
 update packages?
 
If you have installed via synaptic / apt-get / software-centre, then you won't 
have tlmgr
installed (based on debian / ubuntu policies - package management only via 
package manager.)

I guess the problem possibly came because you installed tlmgr and used it on 
your installation via
apt. This might have led to inconsistencies.

Either don't use tlmgr, or install texlive from their website and not via the 
package manager
(apt-get, synaptic, software-centre, ...)

Cheers,

Rainer


 
 Thanks for all the help and handholding.
 
 
 

 
*From:* Rainer M Krug r.m.k...@gmail.com
 *To:* lyx-users@lists.lyx.org *Cc:* David L. Johnson 
 david.john...@lehigh.edu; Lyx List
 lyx-users@lists.lyx.org *Sent:* Wednesday, September 5, 2012 11:32:28 AM 
 *Subject:* Re: LyX
 andTeX Live: How to find and link a new latex version?
 
 On 05/09/12 16:40, John Kane wrote:
 To David and Rainer,
 
 To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
 and now get :
 
 I assume, you also followed step 1 and 2 and did sudo tlmgr path remove ?
 
 
 john@john-K53U:~$ texlive --version texlive: command not found
 
 I am not aware of a command named texlive
 
 john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
 Command 'vlmgr'
 from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
 (universe)
 tlmgr: command not found
 
 Makes sense - as you removed the links o the commands from the path.
 
 
 john@john-K53U:~$ which latex /usr/bin/latex
 
 This is strange - what gives you
 
 latex --version
 
 
 
 Interestingly enough when  I do a ls in /bin I no longer seem to see 
 anything called latex
 
 However much to my surprise LyX is still running happily and  the tex 
 information shows 
 /usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks 
 like LyX has found 
 something, presumabley ver.2012 since the old path was usr/local/texlive2011.
 
 Now, presumably I can reinstall a version of tlmgr and have another go at 
 installing
 leadpar. Or should I expect it to have installed automatically with ver. 
 2012?
 
 The worst of all this is that I really don't need leadpar, I just was trying 
 to do a LyX
 sales job on a history graduate student and wanted him to see what some of 
 the more
 specialized packages could do.  Even he does not really need it but now it's 
 got me annoyed
 that I cannot do it.
 
 Also I am likely to need to update some of my packages so I do need to get 
 tlmgr working but 
 it's not that urgent.
 
 Anywhat thanks for all the help so far.
 
 

 
 
 *From:* Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com
 *To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca *Cc:* David 
 L. Johnson
 david.john...@lehigh.edu mailto:david.john...@lehigh.edu; Lyx
 List lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org *Sent:* 
 Tuesday, September 4,
 2012
 3:46:03 AM *Subject:* Re: LyX
 andTeX Live: How to find and link a new latex version?
 
 On 02/09/12 01:26, John Kane wrote:
 
 
 

 
 
 
 
 *From:* David L. Johnson david.john...@lehigh.edu 
 mailto:david.john...@lehigh.edu
 mailto:david.john...@lehigh.edu mailto:david.john...@lehigh.edu
 *To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca 
 mailto:jrkrid...@yahoo.ca
 mailto:jrkrid...@yahoo.ca *Sent:* Saturday, September
 1,
 2012 1:51:43 PM *Subject:*
 Re: LyX andTeX Live: How to find and link a new latex version?
 
 On 09/01/2012 01:33 PM, John Kane wrote:
 Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
 Basically I have
 a dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 
 with apparently
 no problem.
 But the system works fine for other programs, is that right?  There must be 
 something else 
 amiss.
 
 No problem what-so-ever as far as I can see. I have a few programs I use 
 regularly - 
 LibreOffice, gedit, R, Firefox,  plus a couple play around with - EMACS, 
 gnumeric-- and
 they 

Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the ToDo Notes Environments module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

Thanks,

Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBIqKUACgkQoYgNqgF2egoKdACfWtYqp1KN6O7ykHMTpga8JnxB
G2EAnR6g34hM1lvIRm4PqV32nZOplcWp
=C4ex
-END PGP SIGNATURE-


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread stefano franchi
On Thu, Sep 6, 2012 at 8:34 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
 path remove [sudo]
 password for john: sudo: tlmgr: command not found

 which I suppose is not surprising.

 Exacly.

 Now,  any idea if I can install or find tlmgr?  Otherwise how do I install 
 or update packages?

You are not supposed to use it, in fact, if you installed texlive with
appcenter/synaptic, etc.

However:
Notice that you may have tlmgr installed (the default if texlive was
installed directly) and it may not be on the  sudo path (this is an
Ubuntu feature, it has to do with how the shell was compiled. You'll
find a lot of detail if you google for sudo ubuntu PATH). To find
out if this is the case, just type which tlmgr at a prompt. If a
tlmgr is found, you can always run it with sudo by passing the full
path: sudo /path/to/tlmgr path remove
On the other hand, if which tlmgr does not return anything you have
one fewer problem to worry about.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


Re: Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Richard Heck

On 09/06/2012 09:44 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the ToDo Notes Environments module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

I am guessing that there is no XHTML-related code in the module. I'll 
try to have a look.


Richard



Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread UD
As someone who had used Miktex on Windows for years, I also wanted to 
install tlmgr on my ubuntu machines, in order to manage texlive packages.
But I wonder-- wouldn't ubuntu upgrade texlive packages as they get 
updated?  I like the philosophy of installing everything through one 
package manager.


EK

On 09/06/2012 09:34 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/12 15:21, John Kane wrote:

Hello to Rainer and David Continuing saga

@ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on my 
part.

@ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
remove

Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
path remove [sudo]
password for john: sudo: tlmgr: command not found

which I suppose is not surprising.

Exacly.


john@john-K53U:~$ latex --version pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 
2012/Debian) kpathsea
version 6.1.0

Which looks good.

Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
update packages?


If you have installed via synaptic / apt-get / software-centre, then you won't 
have tlmgr
installed (based on debian / ubuntu policies - package management only via 
package manager.)

I guess the problem possibly came because you installed tlmgr and used it on 
your installation via
apt. This might have led to inconsistencies.

Either don't use tlmgr, or install texlive from their website and not via the 
package manager
(apt-get, synaptic, software-centre, ...)

Cheers,

Rainer



Thanks for all the help and handholding.






*From:* Rainer M Krug r.m.k...@gmail.com

*To:* lyx-users@lists.lyx.org *Cc:* David L. Johnson 
david.john...@lehigh.edu; Lyx List
lyx-users@lists.lyx.org *Sent:* Wednesday, September 5, 2012 11:32:28 AM 
*Subject:* Re: LyX
andTeX Live: How to find and link a new latex version?

On 05/09/12 16:40, John Kane wrote:

To David and Rainer,
To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
and now get :

I assume, you also followed step 1 and 2 and did sudo tlmgr path remove ?



john@john-K53U:~$ texlive --version texlive: command not found

I am not aware of a command named texlive


john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
Command 'vlmgr'
from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
(universe)
tlmgr: command not found

Makes sense - as you removed the links o the commands from the path.



john@john-K53U:~$ which latex /usr/bin/latex

This is strange - what gives you

latex --version




Interestingly enough when  I do a ls in /bin I no longer seem to see anything 
called latex
However much to my surprise LyX is still running happily and  the tex 
information shows
/usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks like 
LyX has found
something, presumabley ver.2012 since the old path was usr/local/texlive2011.
Now, presumably I can reinstall a version of tlmgr and have another go at 
installing
leadpar. Or should I expect it to have installed automatically with ver. 2012?
The worst of all this is that I really don't need leadpar, I just was trying to 
do a LyX
sales job on a history graduate student and wanted him to see what some of the 
more
specialized packages could do.  Even he does not really need it but now it's 
got me annoyed
that I cannot do it.
Also I am likely to need to update some of my packages so I do need to get 
tlmgr working but
it's not that urgent.
Anywhat thanks for all the help so far.


*From:* Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com

*To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca *Cc:* David L. 
Johnson

david.john...@lehigh.edu mailto:david.john...@lehigh.edu; Lyx

List lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org *Sent:* 
Tuesday, September 4,
2012

3:46:03 AM *Subject:* Re: LyX

andTeX Live: How to find and link a new latex version?
On 02/09/12 01:26, John Kane wrote:








*From:* David L. Johnson david.john...@lehigh.edu 
mailto:david.john...@lehigh.edu

mailto:david.john...@lehigh.edu mailto:david.john...@lehigh.edu

*To:* John Kane jrkrid...@yahoo.ca mailto:jrkrid...@yahoo.ca 
mailto:jrkrid...@yahoo.ca

mailto:jrkrid...@yahoo.ca *Sent:* Saturday, September

1,

2012 1:51:43 PM *Subject:*

Re: LyX andTeX Live: How to find and link a new latex version?
On 09/01/2012 01:33 PM, John Kane wrote:

Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
Basically I have
a dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 with 
apparently
no problem.

But the system works fine for other programs, is that right? 

Solved: Change Bibliography style and name

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/12 16:39, Richard Heck wrote:
> On 09/05/2012 07:09 AM, Rainer M Krug wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
>> 
>> Hi
>> 
>> In the attached file, I would like to do two things:
>> 
>> 1) replace the automatic name "Bibliography" with "Literature" and
> At the very beginning of the document: 
> \addto\captionsenglish{\renewcommand\bibname{Literature}} You have to do it 
> this way because 
> you are using babel.
> 
>> 2) change the style to "Section"
>> 
> To do that, you will need to copy the declaration of \thebibliography from 
> book.cls to your 
> preamble, change it from \newenvironment to \renewenvironment, and change the 
> line that makes 
> it a chapter* to one that makes it a section*.

Thanks Richard

works like a charm.

Cheers,

Rainer

> 
> rh
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBIcrgACgkQoYgNqgF2egqT4wCggnolPIPhOYej36fKIXKslNLA
xRAAnA/yvygp+gCCSphV8geHq++ZAGid
=zefV
-END PGP SIGNATURE-


redefine \includegraphics to include \shadowbox?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

not strictly LyX, but it will end in a LyX document.

I want to use instead of
\incldegraphics[]{}

\shadowbox\includegraphics[]{}
as the default.

Therefore I thought about redefining \includegraphic:

\renewcommand{\includegraphics}{\shadowbox\includegraphics}

so that each time \includegraphics is called, actually the graphic is included 
in a shadowbox. But
the above does not work:
###
 Missing { inserted.

   \do@VerbBox
l.80 \includegraphics
 {0_home_rkrug_Documents_Publications_2012_handbook_Mana...
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)
###

Any suggestions how I can redefine \includegraphics ?

Thanks,

Rainer
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBInw0ACgkQoYgNqgF2egpTMQCghYujKVCRXnLurTGhktmWxbND
IOsAn2s1YidNRMYaXOAiIivGL5M5nzE+
=6luv
-END PGP SIGNATURE-


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread John Kane
Hello to Rainer and David
Continuing saga

@ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on my 
part.

@ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
remove

Just give it a try this morning and results are
john@john-K53U:~$ sudo tlmgr path remove
[sudo] password for john: 
sudo: tlmgr: command not found

which I suppose is not surprising. 

john@john-K53U:~$ latex --version
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
kpathsea version 6.1.0

Which looks good.

Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
update packages?  

Thanks for all the help and handholding.  





 From: Rainer M Krug 
To: lyx-users@lists.lyx.org 
Cc: David L. Johnson ; Lyx List 
 
Sent: Wednesday, September 5, 2012 11:32:28 AM
Subject: Re: LyX andTeX Live: How to find and link a new latex version?
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/12 16:40, John Kane wrote:
> To David and Rainer,
> 
> To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
> and now get :

I assume, you also followed step 1 and 2 and did
sudo tlmgr path remove
?

> 
> john@john-K53U:~$ texlive --version texlive: command not found

I am not aware of a command named "texlive"

> john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
> Command 'vlmgr' from
> package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
> (universe) tlmgr:
> command not found

Makes sense - as you removed the links o the commands from the path.

> 
> john@john-K53U:~$ which latex /usr/bin/latex

This is strange - what gives you

latex --version


> 
> Interestingly enough when  I do a ls in /bin I no longer seem to see anything 
> called latex
> 
> However much to my surprise LyX is still running happily and  the tex 
> information shows 
> /usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks 
> like LyX has found
> something, presumabley ver.2012 since the old path was usr/local/texlive2011.
> 
> Now, presumably I can reinstall a version of tlmgr and have another go at 
> installing leadpar.
> Or should I expect it to have installed automatically with ver. 2012?
> 
> The worst of all this is that I really don't need leadpar, I just was trying 
> to do a LyX sales
> job on a history graduate student and wanted him to see what some of the more 
> specialized
> packages could do.  Even he does not really need it but now it's got me 
> annoyed that I cannot
> do it.
> 
> Also I am likely to need to update some of my packages so I do need to get 
> tlmgr working but
> it's not that urgent.
> 
> Anywhat thanks for all the help so far.
> 
> 
>
> 
*From:* Rainer M Krug 
> *To:* John Kane  *Cc:* David L. Johnson 
> ; Lyx
> List  *Sent:* Tuesday, September 4, 2012 3:46:03 AM 
> *Subject:* Re: LyX
> andTeX Live: How to find and link a new latex version?
> 
> On 02/09/12 01:26, John Kane wrote:
> 
> 
>> 
>
>> 
> 
> 
> *From:* David L. Johnson  >
>> *To:* John Kane > *Sent:* 
>> Saturday, September
>> 1,
> 2012 1:51:43 PM *Subject:*
>> Re: LyX andTeX Live: How to find and link a new latex version?
> 
>> On 09/01/2012 01:33 PM, John Kane wrote:
>>> Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
>>> Basically I have a 
>>> dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 with 
>>> apparently no 
>>> problem.
>> But the system works fine for other programs, is that right?  There must be 
>> something else 
>> amiss.
> 
>> No problem what-so-ever as far as I can see. I have a few programs I use 
>> regularly - 
>> LibreOffice, gedit, R, Firefox,  plus a couple play around with - EMACS, 
>> gnumeric-- and they 
>> all install and operate with no problem. Installed mainly with the software 
>> centre or 
>> synaptics although I think I updated R manually from a PPA as the Ubuntu 
>> version was
>> outdated. I did install tlmgr for 2011 manually following some instructions 
>> that Stefano
>> Franco supplied on the list.
>>> 
>>> I have no real idea of what is correct or not-- I lack the partly intuitive 
>>> feel that I
>>> had for Windws after years of battling
> 
>> OTOH, I have no idea about Windows.  My last Windows machine was version 3.1.
> 
>> You really have not missed much. My employers supplied Windows and, 
>> perforce, I used it. :( 
>> Still, it beat punch cards but not by much.
> 
> 
>> Now my students laugh at me when I try to use one in class for 
>> 

Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/12 15:21, John Kane wrote:
> Hello to Rainer and David Continuing saga
> 
> @ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on 
> my part.
> 
> @ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
> remove
> 
> Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
> path remove [sudo]
> password for john: sudo: tlmgr: command not found
> 
> which I suppose is not surprising.

Exacly.

> 
> john@john-K53U:~$ latex --version pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 
> 2012/Debian) kpathsea
> version 6.1.0
> 
> Which looks good.
> 
> Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
> update packages?
> 
If you have installed via synaptic / apt-get / software-centre, then you won't 
have tlmgr
installed (based on debian / ubuntu policies - package management only via 
package manager.)

I guess the problem possibly came because you installed tlmgr and used it on 
your installation via
apt. This might have led to inconsistencies.

Either don't use tlmgr, or install texlive from their website and not via the 
package manager
(apt-get, synaptic, software-centre, ...)

Cheers,

Rainer


> 
> Thanks for all the help and handholding.
> 
> 
> 
>
> 
*From:* Rainer M Krug 
> *To:* lyx-users@lists.lyx.org *Cc:* David L. Johnson 
> ; Lyx List
>  *Sent:* Wednesday, September 5, 2012 11:32:28 AM 
> *Subject:* Re: LyX
> andTeX Live: How to find and link a new latex version?
> 
> On 05/09/12 16:40, John Kane wrote:
>> To David and Rainer,
> 
>> To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
>> and now get :
> 
> I assume, you also followed step 1 and 2 and did sudo tlmgr path remove ?
> 
> 
>> john@john-K53U:~$ texlive --version texlive: command not found
> 
> I am not aware of a command named "texlive"
> 
>> john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
>> Command 'vlmgr'
>> from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
>> (universe)
>> tlmgr: command not found
> 
> Makes sense - as you removed the links o the commands from the path.
> 
> 
>> john@john-K53U:~$ which latex /usr/bin/latex
> 
> This is strange - what gives you
> 
> latex --version
> 
> 
> 
>> Interestingly enough when  I do a ls in /bin I no longer seem to see 
>> anything called latex
> 
>> However much to my surprise LyX is still running happily and  the tex 
>> information shows 
>> /usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks 
>> like LyX has found 
>> something, presumabley ver.2012 since the old path was usr/local/texlive2011.
> 
>> Now, presumably I can reinstall a version of tlmgr and have another go at 
>> installing
>> leadpar. Or should I expect it to have installed automatically with ver. 
>> 2012?
> 
>> The worst of all this is that I really don't need leadpar, I just was trying 
>> to do a LyX
>> sales job on a history graduate student and wanted him to see what some of 
>> the more
>> specialized packages could do.  Even he does not really need it but now it's 
>> got me annoyed
>> that I cannot do it.
> 
>> Also I am likely to need to update some of my packages so I do need to get 
>> tlmgr working but 
>> it's not that urgent.
> 
>> Anywhat thanks for all the help so far.
> 
>> 
>
>> 
> 
> *From:* Rainer M Krug >
>> *To:* John Kane > *Cc:* David 
>> L. Johnson
> >; Lyx
>> List > *Sent:* 
>> Tuesday, September 4,
>> 2012
> 3:46:03 AM *Subject:* Re: LyX
>> andTeX Live: How to find and link a new latex version?
> 
>> On 02/09/12 01:26, John Kane wrote:
> 
> 
>>> 
>
>>> 
>>> 
> 
> 
>> *From:* David L. Johnson > 
> >>
>>> *To:* John Kane  
>>>  >> *Sent:* Saturday, September
>>> 1,
>> 2012 1:51:43 PM *Subject:*
>>> Re: LyX andTeX Live: How to find and link a new latex version?
> 
>>> On 09/01/2012 01:33 PM, John Kane wrote:
 Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
 Basically I have
 a dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 
 with apparently
 no problem.
>>> But the system works fine for other 

Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the "ToDo Notes Environments" module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

Thanks,

Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBIqKUACgkQoYgNqgF2egoKdACfWtYqp1KN6O7ykHMTpga8JnxB
G2EAnR6g34hM1lvIRm4PqV32nZOplcWp
=C4ex
-END PGP SIGNATURE-


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread stefano franchi
On Thu, Sep 6, 2012 at 8:34 AM, Rainer M Krug  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>> Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
>> path remove [sudo]
>> password for john: sudo: tlmgr: command not found
>>
>> which I suppose is not surprising.
>
> Exacly.
>
>> Now,  any idea if I can install or find tlmgr?  Otherwise how do I install 
>> or update packages?

You are not supposed to use it, in fact, if you installed texlive with
appcenter/synaptic, etc.

However:
Notice that you may have tlmgr installed (the default if texlive was
installed directly) and it may not be on the  sudo path (this is an
Ubuntu feature, it has to do with how the shell was compiled. You'll
find a lot of detail if you google for "sudo ubuntu PATH"). To find
out if this is the case, just type "which tlmgr" at a prompt. If a
tlmgr is found, you can always run it with sudo by passing the full
path: "sudo /path/to/tlmgr path remove"
On the other hand, if "which tlmgr" does not return anything you have
one fewer problem to worry about.

Cheers,

Stefano

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

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


Re: Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Richard Heck

On 09/06/2012 09:44 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the "ToDo Notes Environments" module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

I am guessing that there is no XHTML-related code in the module. I'll 
try to have a look.


Richard



Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-06 Thread UD
As someone who had used Miktex on Windows for years, I also wanted to 
install tlmgr on my ubuntu machines, in order to manage texlive packages.
But I wonder-- wouldn't ubuntu upgrade texlive packages as they get 
updated?  I like the philosophy of installing everything through one 
package manager.


EK

On 09/06/2012 09:34 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/12 15:21, John Kane wrote:

Hello to Rainer and David Continuing saga

@ David-- yes, of course.  Latex is in /usr/bin not /bin.  Just stupidity on my 
part.

@ Rainer -- looking at my notes I does not look like I ran:  sudo tlmgr path 
remove

Just give it a try this morning and results are john@john-K53U:~$ sudo tlmgr 
path remove [sudo]
password for john: sudo: tlmgr: command not found

which I suppose is not surprising.

Exacly.


john@john-K53U:~$ latex --version pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 
2012/Debian) kpathsea
version 6.1.0

Which looks good.

Now,  any idea if I can install or find tlmgr?  Otherwise how do I install or 
update packages?


If you have installed via synaptic / apt-get / software-centre, then you won't 
have tlmgr
installed (based on debian / ubuntu policies - package management only via 
package manager.)

I guess the problem possibly came because you installed tlmgr and used it on 
your installation via
apt. This might have led to inconsistencies.

Either don't use tlmgr, or install texlive from their website and not via the 
package manager
(apt-get, synaptic, software-centre, ...)

Cheers,

Rainer



Thanks for all the help and handholding.






*From:* Rainer M Krug 

*To:* lyx-users@lists.lyx.org *Cc:* David L. Johnson 
; Lyx List
 *Sent:* Wednesday, September 5, 2012 11:32:28 AM 
*Subject:* Re: LyX
andTeX Live: How to find and link a new latex version?

On 05/09/12 16:40, John Kane wrote:

To David and Rainer,
To continue the saga I renamed my texlive folder in /usr/local to oldtexlive 
and now get :

I assume, you also followed step 1 and 2 and did sudo tlmgr path remove ?



john@john-K53U:~$ texlive --version texlive: command not found

I am not aware of a command named "texlive"


john@john-K53U:~$  tlmgr --version No command 'tlmgr' found, did you mean: 
Command 'vlmgr'
from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' 
(universe)
tlmgr: command not found

Makes sense - as you removed the links o the commands from the path.



john@john-K53U:~$ which latex /usr/bin/latex

This is strange - what gives you

latex --version




Interestingly enough when  I do a ls in /bin I no longer seem to see anything 
called latex
However much to my surprise LyX is still running happily and  the tex 
information shows
/usr/share/texlive/texmf-dist/tex/latex/akletter/akletter.cls so it looks like 
LyX has found
something, presumabley ver.2012 since the old path was usr/local/texlive2011.
Now, presumably I can reinstall a version of tlmgr and have another go at 
installing
leadpar. Or should I expect it to have installed automatically with ver. 2012?
The worst of all this is that I really don't need leadpar, I just was trying to 
do a LyX
sales job on a history graduate student and wanted him to see what some of the 
more
specialized packages could do.  Even he does not really need it but now it's 
got me annoyed
that I cannot do it.
Also I am likely to need to update some of my packages so I do need to get 
tlmgr working but
it's not that urgent.
Anywhat thanks for all the help so far.


*From:* Rainer M Krug >

*To:* John Kane > *Cc:* David L. 
Johnson

>; Lyx

List > *Sent:* 
Tuesday, September 4,
2012

3:46:03 AM *Subject:* Re: LyX

andTeX Live: How to find and link a new latex version?
On 02/09/12 01:26, John Kane wrote:








*From:* David L. Johnson 

>>

*To:* John Kane  
>> *Sent:* Saturday, September

1,

2012 1:51:43 PM *Subject:*

Re: LyX andTeX Live: How to find and link a new latex version?
On 09/01/2012 01:33 PM, John Kane wrote:

Please but in.  I am a newbie with Ubuntu and tend to blunder around.  
Basically I have
a dual boot Ubutu /Window 7. Some time ago I upgraded from 11.? to 12.04 with 
apparently
no problem.

But the system works