Triangle of Tartaglia with Lyx

2011-10-13 Thread Rubén Jiménez
Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?

I searched the forums but have not found the answer.

thank you very much

Rubén Jiménez


Re: LyX slowness

2011-10-13 Thread Helge Hafting

On 12. okt. 2011 18:45, Torquil Macdonald Sørensen wrote:

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow
at pretty much everything. Typing, scrolling, moving the cursor around
using arrow keys, highlighting sections of texts, etc. Even for small
documents.

This is strange, since my computer is quite fast. It is slow botjh when
using the proprietary NVIDIA and the open-source Nouveau graphics card
driver. I'm running LyX on an XFCE desktop on Debian Sid, using Linux
3.0.4 on a dual-core Asus laptop.



I see the same problem on a pc with nvidia graphics, and have given up 
on it.


Nvidia drivers for linux are simply awful - that is the problem. LyX is 
slow on my work laptop, with 2.4GHz 64-bit dual core. It is much much 
faster on my own travel laptop which is a cheap thing with a 1.8GHz atom
processor, less memory, but it has Intel integrated graphics. With 
linux, Intel graphics beats nvidia everytime for 2D work like document 
processing. Nvidia is a total loss, don't buy it for a linux workstation!


It is not LyX only either, but it may seem like it. Some apps are fast, 
some are not. This because there are several different graphics toolkits 
for linux, with different ways of doing things. LyX uses qt, and qt 
seems to trigger some of the really bad issues with the nvidia drivers.


Nouveau is even worse, and will probably always be. Nouveau is 
open-source, but lack of documentation means they reverse-engineer the 
proprietary driver. So they probably won't come up with something 
better. More compliant with the latest x.org standards perhaps, but no 
significantly better performance.


nvidia may be ok on the 3D side - I wouldn't know because I don't use 
much 3D stuff. When buying graphics for linux, go for Intel graphics. Or 
perhaps the amd/ati cards for fancy cases. Never nvidia!


2D performance is important, that is where everything is except some 
gaming/visualization.



It is not extremely slow, but slow enough to affect the user experience
negatively. And I'm not one of those users that need everything to be
lightning-fast :-) It is sort of like running modern programs on an old
computer.

I have gone through these points:
http://wiki.lyx.org/Tips/PerformanceIssues

My comments on the points raised there:

* My LyX uses more CPU than X. Total CPU usage is less than 100%.
* I don't use the outliner or source view.
* Cursor movement is slow, at least compared to most other programs.
* The Ctrl+Alt+F1 trick has no effect on the slowness.

Any other ways to improve speed? I am willing to recompile LyX myself
with special options, or even modify the source code to deactivate stuff
that is inaccessible from the preferences, if someone would kindly guide
me any suggestion on what might help.

I will try to go back to the proprietary Nvidia driver now and check out
the nvidia-settings command given on the page I referred to above. Or
perhaps the newer Nvidia driver will allow LyX to speed up, if I'm
lucky! :-)


A better driver could solve everything. LyX can be fast on very moderate
hardware. You may even try out the vesa driver or the framebuffer 
driver. These drivers just uses the framebuffer, taking NO advantage of 
the fancy hardware acceleration you have. Some things will be slower,
some things (like 3D) just won't happen. But no nvidia-specific 
slowdowns either...


Complaining to nvidia about bad performance in scrolling and text 
rendering might also help. LyX draws a lot of text, and calls into X to 
get the width of strings and characters. Moving the cursor involves such 
calls all the time, and is vulnerable to bad implementations by people 
who think that 3D is the only that matters.


Helge Hafting


Re: replace upper case acronyms with small caps case

2011-10-13 Thread Helge Hafting

On 12. okt. 2011 23:24, e-letter wrote:

On 12/10/2011, Liviu Androniclandronim...@gmail.com  wrote:

On Wed, Oct 12, 2011 at 10:36 PM, e-letterinp...@gmail.com  wrote:

Readers,

Is it possible to select an acronym e.g. ABC and replace all copies in
a document with the latex code \textsc{abc}?


It should be possible. Look into advanced search  replace. Otherwise,
use regexp and a text editor.


Tried to use advanced find and replace; the result was \textsc{abc} in
the pdf document!


Don't type\ t e x t s c { a b c}   into advanced search/replace

In search, type abc

In replace, type abc, then *format* it to small caps using 
edit-textstyle. Just as you can format a single entry in the main window.


In advanced replace, you can do all the formatting you can do in the 
document itself. And you do it using the same menus. I.e. 
Edit-whatever... Shortcuts work too, like ctrl+b for bold.


Helge Hafting


Re: classicthesis spacing in list of figures

2011-10-13 Thread PhilipPirrip

On 10/11/2011 06:08 AM, PhilipPirrip wrote:

Abbildung 1.10text -  is the second number two-digit, no space
between number and text
how can i change this?


You might be interested:
http://code.google.com/p/classicthesis/issues/detail?id=35



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Richard Heck
On 10/13/2011 05:32 AM, Rubén Jiménez wrote:
 Hi

 Will you show me how I can draw the triangle of Tartaglia with Lyx?

In most of the world, it is known as Pascal's triangle. Perhaps that
is why you couldn't find an answer.

 I searched the forums but have not found the answer.

http://forum.mackichan.com/node/274
http://www.bedroomlan.org/coding/pascals-triangle-latex

Richard



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread David L. Johnson

On 10/13/2011 10:54 AM, Richard Heck wrote:

On 10/13/2011 05:32 AM, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?


In most of the world, it is known as Pascal's triangle.
I was hoping for something really exotic.  The links you gave look 
essentially like a table, so why not use a table or a matrix.  I tried 
it, and they both look pretty good, with perhaps a little more space 
than would be ideal.


--

David L. Johnson

If all economists were laid end to end, they would not reach a
conclusion.
-- George Bernard Shaw



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Torquil Macdonald Sørensen

On 13/10/11 11:32, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?



If it indeed is the same as Pascal's triangle, you can use tikz and copy the 
code from here:


http://www.texample.net/tikz/examples/pascals-triangle-and-sierpinski-triangle/

Just do some searching about how to use tikz in lyx. Tikz is fantastic!

Best regards
Torquil Sørensen


Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
I'm trying to get bold text from a cat() statement within a Sweave chunk
(results=tex).  None of the tricks I know to get boldface text from R or
LaTeX are not working.  Ideas?

-- 
Shane


Marginal Notes Font Size

2011-10-13 Thread Tim Wescott
How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka  Daly, and the only thing I found on
a web search was this, which isn't helping:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19731.html

TIA.

-- 

Tim Wescott
www.wescottdesign.com
Control  Communications systems, circuit  software design.



SV: Marginal Notes Font Size

2011-10-13 Thread Ingar Pareliussen
Hi

I use this in the preamble:

\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]%
{\raggedright\footnotesize #1}}

and it works like a charm :). I guess you could use another size instead of 
footnotesize, but it seem to about right for me :)

HTH
Ingar Pareliussen

Re: Marginal Notes Font Size

2011-10-13 Thread PhilipPirrip

On 10/13/2011 06:59 PM, Tim Wescott wrote:

How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka  Daly, and the only thing I found on
a web search was this, which isn't helping:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19731.html

TIA.



Find some inspiration here:

\def\mparsetup{%
   \slshape\footnotesize%
   \parindent=0pt \lineskip=0pt \lineskiplimit=0pt %
   \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%
   \doublehyphendemerits=10%
   \finalhyphendemerits=\doublehyphendemerits}

\let\oldmarginpar\marginpar

\renewcommand{\marginpar}[1]{\oldmarginpar[\mparsetup\raggedleft\hspace{0pt}{#1}]{\mparsetup\raggedright\hspace{0pt}{#1}}}



Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Tim, hello all together,

Tim write:

How do I change the font size in marginal notes?


What’s your problem? Write any text and put your cursor at any place in 
your text. Click “insert” - “marginal note”, type any text in the red 
framed box, mark this text, click “Edit” - “Text Style” - “Customized 
...” - “Size” - “Very tiny”, click “OK” and be lucky. :-)


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


Re: Marginal Notes Font Size

2011-10-13 Thread PhilipPirrip

On 10/13/2011 07:36 PM, Marcus Glöder wrote:

What’s your problem? Write any text and put your cursor at any place in
your text. Click “insert” - “marginal note”, type any text in the red
framed box, mark this text, click “Edit” - “Text Style” - “Customized
...” - “Size” - “Very tiny”, click “OK” and be lucky. :-)


The problem is that this is not the way of doing things in LaTeX  LyX. 
How do you format your chapter and section headings? Don't misuse 
“Edit” - “Text Style”...




Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Tim, hello all together,

of course, my proposed solution is only practical if you have a short 
text with a few marginal notes. For a text with many marginal notes, 
you'll do not come around to put LaTeX code in Document - Settings 
 - LaTeX Preamble. In this case have a look at the other answers in 
this thread.


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Philip, hello all together,

you write:

The problem is that this is not the way of doing things in LaTeX  LyX.
How do you format your chapter and section headings? Don't misuse “Edit”
- “Text Style”...


That's right, at least in principle. But for a short text with only a 
few marginal notes you can make it so (even if it's dirty). See my 
second posting.


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


How to shorten captions in table and figure lists

2011-10-13 Thread Gian Maria Niccolò Benucci
Hi all,

I am using ClassisThesis style. How to reduce the length or shorten the
Figure and Table captions in the Table and Figure lists?
Thank you in advance,


Gian


Re: SV: Marginal Notes Font Size

2011-10-13 Thread Tim Wescott
Thanks Ingar.  I just want tiny little marginal notes (so I used 'tiny')
in a document to point out where I have inadequate information and must
correct things before I'm really done.

It worked perfectly with

\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\tiny #1]%
{\raggedright\tiny #1}}

On Thu, 2011-10-13 at 17:02 +, Ingar Pareliussen wrote:
 Hi
 
 I use this in the preamble:
 
 \let\oldmarginpar\marginpar
 \renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]%
 {\raggedright\footnotesize #1}}
 
 and it works like a charm :). I guess you could use another size instead of 
 footnotesize, but it seem to about right for me :)
 
 HTH
 Ingar Pareliussen

-- 

Tim Wescott
www.wescottdesign.com
Control  Communications systems, circuit  software design.



natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Hi,
 I am using Lyx 2.0.0 and have written a paper using natbib and the
authordate3 bib style. All is well, apart from et al. citations in the
body which appear with an extra whitespace before the comma and date,
i.e  (Ahrens et al. , 2000)

 How do I get rid of this space before the comma? I have tried going
in the authordate3.bst , but can't find any spurious spaces. Anyone
else having this problem?

Thanks in advance!

-Simon


Re: Bold text from Sweave chunk

2011-10-13 Thread Yihui Xie
You have to tell us how or what on earth you cat()ed. I do not think
you need R tricks (are you talking about the tricks in
demo(plotmath)?). I believe something like this should work:

results=tex=
cat('\\textbf{abc}')
@

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com wrote:
 I'm trying to get bold text from a cat() statement within a Sweave chunk
 (results=tex).  None of the tricks I know to get boldface text from R or
 LaTeX are not working.  Ideas?

 --
 Shane




Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Richard Heck
On 10/13/2011 02:50 PM, Simon Mushi wrote:
 Hi,
  I am using Lyx 2.0.0 and have written a paper using natbib and the
 authordate3 bib style. All is well, apart from et al. citations in the
 body which appear with an extra whitespace before the comma and date,
 i.e  (Ahrens et al. , 2000)

  How do I get rid of this space before the comma? I have tried going
 in the authordate3.bst , but can't find any spurious spaces. Anyone
 else having this problem?

So you get it with authordate3 but not with any other style? If so, then
it's in that bst file somewhere.

rh



Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
Sorry, I'll be sure to include examples in the future.  Here is my current
example, trying your suggestion:

missingdata, results=tex=
misssvl-length(data.ind$svl[svl==NA])
if(misssvl0){
  cat(\\texbf{SVL file://texbf%7bsvl/},: Of ,length(data.ind$svl),
 snakes tested, snout-vent length data are missing on , ...

Returns an error Undefined control sequence:
*\texbf*

*{SVL} : Of 50 snakes tested, snout-vent length data are missin...*

*The control sequence at the end of the top line*

*of your error message was never \def'ed. If you have*

*misspelled it (e.g., `\hobx'), type `I' and the correct*

*spelling (e.g., `I\hbox'). Otherwise just continue,*

*and I'll forget about whatever was undefined.*

**

Everything else works, just can't get the SVL title in bold.



On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie x...@yihui.name wrote:

 You have to tell us how or what on earth you cat()ed. I do not think
 you need R tricks (are you talking about the tricks in
 demo(plotmath)?). I believe something like this should work:

 results=tex=
 cat('\\textbf{abc}')
 @

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA



 On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com
 wrote:
  I'm trying to get bold text from a cat() statement within a Sweave chunk
  (results=tex).  None of the tricks I know to get boldface text from R or
  LaTeX are not working.  Ideas?
 
  --
  Shane
 
 




-- 
Shane


Re: LyX slowness

2011-10-13 Thread Paul Rubin
For what it's worth, I have LyX installed on three machines (Dell desktop, Dell
laptop, Acer desktop).  All run Linux Mint with the Gnome desktop.  The Dells
are both Intel 32; the Acer is AMD 64.  Both desktops have nVidia displays with
nVidia proprietary drivers.  I'm not sure about the laptop, but I think that too
is nVidia.  I've had no problems with display speed on any of them.  The math
toolbars are both set to open automatically when in a math inset, close when 
not.

Paul 



Re: Bold text from Sweave chunk

2011-10-13 Thread Liviu Andronic
On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers shanesi...@gmail.com wrote:
 Sorry, I'll be sure to include examples in the future.  Here is my current
 example, trying your suggestion:

 missingdata, results=tex=
 misssvl-length(data.ind$svl[svl==NA])
 if(misssvl0){
   cat(\\texbf{SVL},: Of ,length(data.ind$svl),

I guess this should read: 'textbf' (note the additional 't').

Liviu


      snakes tested, snout-vent length data are missing on , ...

 Returns an error Undefined control sequence:
 \texbf

 {SVL} : Of 50 snakes tested, snout-vent length data are missin...

 The control sequence at the end of the top line

 of your error message was never \def'ed. If you have

 misspelled it (e.g., `\hobx'), type `I' and the correct

 spelling (e.g., `I\hbox'). Otherwise just continue,

 and I'll forget about whatever was undefined.



 Everything else works, just can't get the SVL title in bold.


 On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie x...@yihui.name wrote:

 You have to tell us how or what on earth you cat()ed. I do not think
 you need R tricks (are you talking about the tricks in
 demo(plotmath)?). I believe something like this should work:

 results=tex=
 cat('\\textbf{abc}')
 @

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA



 On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com
 wrote:
  I'm trying to get bold text from a cat() statement within a Sweave chunk
  (results=tex).  None of the tricks I know to get boldface text from R or
  LaTeX are not working.  Ideas?
 
  --
  Shane
 
 



 --
 Shane





-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Richard,
  Coincidentally, this happens with all the authordate family of
styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
system? Using the APA style gives Ahrens et al., 2000, which is
_correct_, but I prefered authordate3's presentation of the bib
itself.

Line 268 of authordate3.bst has the following entry

{ , {\em et~al.\}\relax * }

 no spurious spaces here...anywhere else to look?

Thanks,
 -Simon


On 10/13/11, Richard Heck rgh...@comcast.net wrote:
 On 10/13/2011 02:50 PM, Simon Mushi wrote:
 Hi,
  I am using Lyx 2.0.0 and have written a paper using natbib and the
 authordate3 bib style. All is well, apart from et al. citations in the
 body which appear with an extra whitespace before the comma and date,
 i.e  (Ahrens et al. , 2000)

  How do I get rid of this space before the comma? I have tried going
 in the authordate3.bst , but can't find any spurious spaces. Anyone
 else having this problem?

 So you get it with authordate3 but not with any other style? If so, then
 it's in that bst file somewhere.

 rh




Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
How embarassing.  Yes, this works.  Many thanks.

Shane

On Thu, Oct 13, 2011 at 3:02 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers shanesi...@gmail.com
 wrote:
  Sorry, I'll be sure to include examples in the future.  Here is my
 current
  example, trying your suggestion:
 
  missingdata, results=tex=
  misssvl-length(data.ind$svl[svl==NA])
  if(misssvl0){
cat(\\texbf{SVL},: Of ,length(data.ind$svl),
 
 I guess this should read: 'textbf' (note the additional 't').

 Liviu


   snakes tested, snout-vent length data are missing on , ...
 
  Returns an error Undefined control sequence:
  \texbf
 
  {SVL} : Of 50 snakes tested, snout-vent length data are missin...
 
  The control sequence at the end of the top line
 
  of your error message was never \def'ed. If you have
 
  misspelled it (e.g., `\hobx'), type `I' and the correct
 
  spelling (e.g., `I\hbox'). Otherwise just continue,
 
  and I'll forget about whatever was undefined.
 
 
 
  Everything else works, just can't get the SVL title in bold.
 
 
  On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie x...@yihui.name wrote:
 
  You have to tell us how or what on earth you cat()ed. I do not think
  you need R tricks (are you talking about the tricks in
  demo(plotmath)?). I believe something like this should work:
 
  results=tex=
  cat('\\textbf{abc}')
  @
 
  Regards,
  Yihui
  --
  Yihui Xie xieyi...@gmail.com
  Phone: 515-294-2465 Web: http://yihui.name
  Department of Statistics, Iowa State University
  2215 Snedecor Hall, Ames, IA
 
 
 
  On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com
  wrote:
   I'm trying to get bold text from a cat() statement within a Sweave
 chunk
   (results=tex).  None of the tricks I know to get boldface text from R
 or
   LaTeX are not working.  Ideas?
  
   --
   Shane
  
  
 
 
 
  --
  Shane
 
 



 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail




-- 
Shane


Branch names with spaces

2011-10-13 Thread Graeme
According to ticket #5806 (http://www.lyx.org/trac/ticket/5806), the bug 
preventing branch names with spaces was fixed in version 1.6.3, but it 
is still present in 2.0 (on Windows at least).


As the attached LyX file shows, Branches with spaces in the names can be 
created, but after the LyX file has been closed and re-opened, such 
branches do not display correctly on screen as the part of the name 
after the space has been stripped off.


Strangely, the full branch name, including the part after the space, 
still appears in the Document Settings/Branches menu page.


Graeme


BranchNameProblems.lyx
Description: application/lyx


Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Julien Rioux

On 13/10/2011 11:20 PM, Simon Mushi wrote:

Richard,
   Coincidentally, this happens with all the authordate family of
styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
system? Using the APA style gives Ahrens et al., 2000, which is
_correct_, but I prefered authordate3's presentation of the bib
itself.

Line 268 of authordate3.bst has the following entry

 { , {\em et~al.\}\relax * }

  no spurious spaces here...anywhere else to look?

Thanks,
  -Simon



There certainly is an extra space on that line when I open 
authordate3.bst from my tex distribution. To remove it delete the 
backslash and the space that come after et~al.


--
Julien



Re: How to shorten captions in table and figure lists

2011-10-13 Thread Julien Rioux

On 13/10/2011 8:27 PM, Gian Maria Niccolò Benucci wrote:

Hi all,

I am using ClassisThesis style. How to reduce the length or shorten the
Figure and Table captions in the Table and Figure lists?
Thank you in advance,


Gian



Position your cursor somewhere within the caption and click Insert  
Short title. Type a shorter description in there. This description will 
appear in the list of figure instead of the longer one.


--
Julien



Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Julien,
 Thanks, after fixing that line I was still having the same problem so
kept looking in the style file and found  a similar statement on line
1038 and took out space there too. All good now.

-Simon

On 10/13/11, Julien Rioux jri...@physics.utoronto.ca wrote:
 On 13/10/2011 11:20 PM, Simon Mushi wrote:
 Richard,
Coincidentally, this happens with all the authordate family of
 styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
 system? Using the APA style gives Ahrens et al., 2000, which is
 _correct_, but I prefered authordate3's presentation of the bib
 itself.

 Line 268 of authordate3.bst has the following entry

  { , {\em et~al.\}\relax * }

   no spurious spaces here...anywhere else to look?

 Thanks,
   -Simon


 There certainly is an extra space on that line when I open
 authordate3.bst from my tex distribution. To remove it delete the
 backslash and the space that come after et~al.

 --
 Julien




Re: Linking

2011-10-13 Thread E . Lewis
Liviu Andronic landronimirc at gmail.com writes:

 
 On Fri, Oct 22, 2010 at 2:48 AM, Pavel Sanda sanda at lyx.org wrote:
  Liviu Andronic wrote:
  If I understand correctly your question, it has been discussed several
  times in the past and there was even a patch integrating Gnumeric into
  LyX. But I think that it never got applied and that the request is
  frozen at the moment. [1]
 
  the last message in thread is still valid ;)
  pavel
 
 [1] Oh, well, crossing my fingers, perhaps Helge has something new on
 this front. :)
 Liviu
 
 [1] http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg160372.html
 

Obtain and install the exceltex package from CTAN. Exceltex consists of a macro
package as well as a stand-alone executable. Read its instructions for proper
installation.

Preferably (not required, but makes life easier) use evince as your PDF viewer
in LyX.

Add the line: \usepackage{exceltex} to the LyX document
preamble. documentsettingslatex preamble

Identify a cell in a .xls spreadsheet desired for linking to LyX.

Insert ert into LyX as follows:

\inccell{full path to spreadsheet/file_name.xls!sheet_name!cell_reference}

for example:

\inccell{/home/administrator/Desktop/111005ar.xls!Sheet1!A1}

Click on the 'view' icon in LyX (assumes version 2.0).

From Evince, elect 'fileopen containing folder. This will show you the path
to the temporary files LyX produces.

Open a terminal (command line interface)

Change directory to the directory containing the .tex temporary file LyX
produces.

Run pdflatex against the .tex temporary file LyX produces. For example: pdflatex
newfile1.tex

Run exceltex against the .tex temporary file. For example: exceltex newfile1.tex

Run pdflatex against the .tex temporary file again.

Go back to LyX and continue your editing session. The links will all work
properly throughout (current) LyX editing session.

If you link more cells, cell values change, or if you start a new LyX session,
repeat the above steps for proper linking and display.

Linking tables involves a similar procedure as follows:

ert: \begin{longtable}{ll} (or whatever column specification is needed) ert:
\inctab{/home/administrator/Desktop/111005_ar.xls!AR!A1:C3} ert: \end{longtable}

LyX: View (icon) Evince: open folder containing Command: cd
/tmp/lyx_tmpdir.TJ3347/lyx_tmpbuf2 Command: pdflatex newfile1.tex Command:
exceltex newfile1.tex Command: pdflatex newfile1.tex

Return to LyX session.






Re: Marginal Notes Font Size

2011-10-13 Thread Uwe Stöhr

Am 13.10.2011 18:59, schrieb Tim Wescott:


How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka  Daly,


Well, have a look at the lyX documentation first ;-): Sec. 4.3 of the EmbeddedObjects manual you 
find in LyX's Help menu has some examples how to modify margin notes.


To change the font size for a certain not, simply highlight it and use the text style dialog. If you 
want to define a size for ALL margin notes in your document, have a look at the last example and replace


 \hspace{0pt}\textsf{\textbf{\underbar{Attention!}}}% \vspace{1.5mm}\\

by

\tiny

or whatever size you like.

regards Uwe


Re: LyX slowness

2011-10-13 Thread Uwe Stöhr

Am 12.10.2011 18:45, schrieb Torquil Macdonald Sørensen:


While LyX is fantastic in almost every way, it is slow... My LyX is slow at 
pretty much everything.
Typing, scrolling, moving the cursor around using arrow keys, highlighting 
sections of texts, etc.
Even for small documents.


Besides configuration problems with graphics drivers on your PC the only thing where LyX is known to 
be slow is the preview of the LaTeX code, if you use the option to view the whole source code. Using 
the default (only to display the current paragraph) fixes this.


regards Uwe


Re: Marginal Notes Font Size

2011-10-13 Thread Uwe Stöhr

Am 14.10.2011 02:25, schrieb Uwe Stöhr:


To change the font size for a certain note, simply highlight it and use the 
text style dialog.


I meant to highlight its content, not the note box.

regards Uwe


Re: Linking

2011-10-13 Thread Liviu Andronic
On Thu, Oct 13, 2011 at 9:41 PM, E. Lewis ed.le...@enlewis.com wrote:
 Liviu Andronic landronimirc at gmail.com writes:
 [1] Oh, well, crossing my fingers, perhaps Helge has something new on
 this front. :)
 Liviu

 [1] http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg160372.html


 Obtain and install the exceltex package from CTAN. Exceltex consists of a 
 macro
 package as well as a stand-alone executable. Read its instructions for proper
 installation.

I'm not sure, but if you're still trying to dynamically insert a
spreadsheet into a LyX document, you should know that Helge's patch
has been implemented and released with 2.0.0. You simply need to
insert external material 'gnumeric spreadsheet'. Search the wiki.

Liviu


Triangle of Tartaglia with Lyx

2011-10-13 Thread Rubén Jiménez
Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?

I searched the forums but have not found the answer.

thank you very much

Rubén Jiménez


Re: LyX slowness

2011-10-13 Thread Helge Hafting

On 12. okt. 2011 18:45, Torquil Macdonald Sørensen wrote:

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow
at pretty much everything. Typing, scrolling, moving the cursor around
using arrow keys, highlighting sections of texts, etc. Even for small
documents.

This is strange, since my computer is quite fast. It is slow botjh when
using the proprietary NVIDIA and the open-source Nouveau graphics card
driver. I'm running LyX on an XFCE desktop on Debian Sid, using Linux
3.0.4 on a dual-core Asus laptop.



I see the same problem on a pc with nvidia graphics, and have given up 
on it.


Nvidia drivers for linux are simply awful - that is the problem. LyX is 
slow on my work laptop, with 2.4GHz 64-bit dual core. It is much much 
faster on my own travel laptop which is a cheap thing with a 1.8GHz atom
processor, less memory, but it has Intel integrated graphics. With 
linux, Intel graphics beats nvidia everytime for 2D work like document 
processing. Nvidia is a total loss, don't buy it for a linux workstation!


It is not LyX only either, but it may seem like it. Some apps are fast, 
some are not. This because there are several different graphics toolkits 
for linux, with different ways of doing things. LyX uses qt, and qt 
seems to trigger some of the really bad issues with the nvidia drivers.


Nouveau is even worse, and will probably always be. Nouveau is 
open-source, but lack of documentation means they reverse-engineer the 
proprietary driver. So they probably won't come up with something 
better. More compliant with the latest x.org standards perhaps, but no 
significantly better performance.


nvidia may be ok on the 3D side - I wouldn't know because I don't use 
much 3D stuff. When buying graphics for linux, go for Intel graphics. Or 
perhaps the amd/ati cards for fancy cases. Never nvidia!


2D performance is important, that is where everything is except some 
gaming/visualization.



It is not extremely slow, but slow enough to affect the user experience
negatively. And I'm not one of those users that need everything to be
lightning-fast :-) It is sort of like running modern programs on an old
computer.

I have gone through these points:
http://wiki.lyx.org/Tips/PerformanceIssues

My comments on the points raised there:

* My LyX uses more CPU than X. Total CPU usage is less than 100%.
* I don't use the outliner or source view.
* Cursor movement is slow, at least compared to most other programs.
* The Ctrl+Alt+F1 trick has no effect on the slowness.

Any other ways to improve speed? I am willing to recompile LyX myself
with special options, or even modify the source code to deactivate stuff
that is inaccessible from the preferences, if someone would kindly guide
me any suggestion on what might help.

I will try to go back to the proprietary Nvidia driver now and check out
the nvidia-settings command given on the page I referred to above. Or
perhaps the newer Nvidia driver will allow LyX to speed up, if I'm
lucky! :-)


A better driver could solve everything. LyX can be fast on very moderate
hardware. You may even try out the vesa driver or the framebuffer 
driver. These drivers just uses the framebuffer, taking NO advantage of 
the fancy hardware acceleration you have. Some things will be slower,
some things (like 3D) just won't happen. But no nvidia-specific 
slowdowns either...


Complaining to nvidia about bad performance in scrolling and text 
rendering might also help. LyX draws a lot of text, and calls into X to 
get the width of strings and characters. Moving the cursor involves such 
calls all the time, and is vulnerable to bad implementations by people 
who think that 3D is the only that matters.


Helge Hafting


Re: replace upper case acronyms with small caps case

2011-10-13 Thread Helge Hafting

On 12. okt. 2011 23:24, e-letter wrote:

On 12/10/2011, Liviu Androniclandronim...@gmail.com  wrote:

On Wed, Oct 12, 2011 at 10:36 PM, e-letterinp...@gmail.com  wrote:

Readers,

Is it possible to select an acronym e.g. ABC and replace all copies in
a document with the latex code \textsc{abc}?


It should be possible. Look into advanced search  replace. Otherwise,
use regexp and a text editor.


Tried to use advanced find and replace; the result was \textsc{abc} in
the pdf document!


Don't type\ t e x t s c { a b c}   into advanced search/replace

In search, type abc

In replace, type abc, then *format* it to small caps using 
edit-textstyle. Just as you can format a single entry in the main window.


In advanced replace, you can do all the formatting you can do in the 
document itself. And you do it using the same menus. I.e. 
Edit-whatever... Shortcuts work too, like ctrl+b for bold.


Helge Hafting


Re: classicthesis spacing in list of figures

2011-10-13 Thread PhilipPirrip

On 10/11/2011 06:08 AM, PhilipPirrip wrote:

Abbildung 1.10text -  is the second number two-digit, no space
between number and text
how can i change this?


You might be interested:
http://code.google.com/p/classicthesis/issues/detail?id=35



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Richard Heck
On 10/13/2011 05:32 AM, Rubén Jiménez wrote:
 Hi

 Will you show me how I can draw the triangle of Tartaglia with Lyx?

In most of the world, it is known as Pascal's triangle. Perhaps that
is why you couldn't find an answer.

 I searched the forums but have not found the answer.

http://forum.mackichan.com/node/274
http://www.bedroomlan.org/coding/pascals-triangle-latex

Richard



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread David L. Johnson

On 10/13/2011 10:54 AM, Richard Heck wrote:

On 10/13/2011 05:32 AM, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?


In most of the world, it is known as Pascal's triangle.
I was hoping for something really exotic.  The links you gave look 
essentially like a table, so why not use a table or a matrix.  I tried 
it, and they both look pretty good, with perhaps a little more space 
than would be ideal.


--

David L. Johnson

If all economists were laid end to end, they would not reach a
conclusion.
-- George Bernard Shaw



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Torquil Macdonald Sørensen

On 13/10/11 11:32, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?



If it indeed is the same as Pascal's triangle, you can use tikz and copy the 
code from here:


http://www.texample.net/tikz/examples/pascals-triangle-and-sierpinski-triangle/

Just do some searching about how to use tikz in lyx. Tikz is fantastic!

Best regards
Torquil Sørensen


Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
I'm trying to get bold text from a cat() statement within a Sweave chunk
(results=tex).  None of the tricks I know to get boldface text from R or
LaTeX are not working.  Ideas?

-- 
Shane


Marginal Notes Font Size

2011-10-13 Thread Tim Wescott
How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka  Daly, and the only thing I found on
a web search was this, which isn't helping:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19731.html

TIA.

-- 

Tim Wescott
www.wescottdesign.com
Control  Communications systems, circuit  software design.



SV: Marginal Notes Font Size

2011-10-13 Thread Ingar Pareliussen
Hi

I use this in the preamble:

\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]%
{\raggedright\footnotesize #1}}

and it works like a charm :). I guess you could use another size instead of 
footnotesize, but it seem to about right for me :)

HTH
Ingar Pareliussen

Re: Marginal Notes Font Size

2011-10-13 Thread PhilipPirrip

On 10/13/2011 06:59 PM, Tim Wescott wrote:

How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka  Daly, and the only thing I found on
a web search was this, which isn't helping:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19731.html

TIA.



Find some inspiration here:

\def\mparsetup{%
   \slshape\footnotesize%
   \parindent=0pt \lineskip=0pt \lineskiplimit=0pt %
   \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%
   \doublehyphendemerits=10%
   \finalhyphendemerits=\doublehyphendemerits}

\let\oldmarginpar\marginpar

\renewcommand{\marginpar}[1]{\oldmarginpar[\mparsetup\raggedleft\hspace{0pt}{#1}]{\mparsetup\raggedright\hspace{0pt}{#1}}}



Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Tim, hello all together,

Tim write:

How do I change the font size in marginal notes?


What’s your problem? Write any text and put your cursor at any place in 
your text. Click “insert” - “marginal note”, type any text in the red 
framed box, mark this text, click “Edit” - “Text Style” - “Customized 
...” - “Size” - “Very tiny”, click “OK” and be lucky. :-)


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


Re: Marginal Notes Font Size

2011-10-13 Thread PhilipPirrip

On 10/13/2011 07:36 PM, Marcus Glöder wrote:

What’s your problem? Write any text and put your cursor at any place in
your text. Click “insert” - “marginal note”, type any text in the red
framed box, mark this text, click “Edit” - “Text Style” - “Customized
...” - “Size” - “Very tiny”, click “OK” and be lucky. :-)


The problem is that this is not the way of doing things in LaTeX  LyX. 
How do you format your chapter and section headings? Don't misuse 
“Edit” - “Text Style”...




Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Tim, hello all together,

of course, my proposed solution is only practical if you have a short 
text with a few marginal notes. For a text with many marginal notes, 
you'll do not come around to put LaTeX code in Document - Settings 
 - LaTeX Preamble. In this case have a look at the other answers in 
this thread.


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Philip, hello all together,

you write:

The problem is that this is not the way of doing things in LaTeX  LyX.
How do you format your chapter and section headings? Don't misuse “Edit”
- “Text Style”...


That's right, at least in principle. But for a short text with only a 
few marginal notes you can make it so (even if it's dirty). See my 
second posting.


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


How to shorten captions in table and figure lists

2011-10-13 Thread Gian Maria Niccolò Benucci
Hi all,

I am using ClassisThesis style. How to reduce the length or shorten the
Figure and Table captions in the Table and Figure lists?
Thank you in advance,


Gian


Re: SV: Marginal Notes Font Size

2011-10-13 Thread Tim Wescott
Thanks Ingar.  I just want tiny little marginal notes (so I used 'tiny')
in a document to point out where I have inadequate information and must
correct things before I'm really done.

It worked perfectly with

\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\tiny #1]%
{\raggedright\tiny #1}}

On Thu, 2011-10-13 at 17:02 +, Ingar Pareliussen wrote:
 Hi
 
 I use this in the preamble:
 
 \let\oldmarginpar\marginpar
 \renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]%
 {\raggedright\footnotesize #1}}
 
 and it works like a charm :). I guess you could use another size instead of 
 footnotesize, but it seem to about right for me :)
 
 HTH
 Ingar Pareliussen

-- 

Tim Wescott
www.wescottdesign.com
Control  Communications systems, circuit  software design.



natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Hi,
 I am using Lyx 2.0.0 and have written a paper using natbib and the
authordate3 bib style. All is well, apart from et al. citations in the
body which appear with an extra whitespace before the comma and date,
i.e  (Ahrens et al. , 2000)

 How do I get rid of this space before the comma? I have tried going
in the authordate3.bst , but can't find any spurious spaces. Anyone
else having this problem?

Thanks in advance!

-Simon


Re: Bold text from Sweave chunk

2011-10-13 Thread Yihui Xie
You have to tell us how or what on earth you cat()ed. I do not think
you need R tricks (are you talking about the tricks in
demo(plotmath)?). I believe something like this should work:

results=tex=
cat('\\textbf{abc}')
@

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com wrote:
 I'm trying to get bold text from a cat() statement within a Sweave chunk
 (results=tex).  None of the tricks I know to get boldface text from R or
 LaTeX are not working.  Ideas?

 --
 Shane




Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Richard Heck
On 10/13/2011 02:50 PM, Simon Mushi wrote:
 Hi,
  I am using Lyx 2.0.0 and have written a paper using natbib and the
 authordate3 bib style. All is well, apart from et al. citations in the
 body which appear with an extra whitespace before the comma and date,
 i.e  (Ahrens et al. , 2000)

  How do I get rid of this space before the comma? I have tried going
 in the authordate3.bst , but can't find any spurious spaces. Anyone
 else having this problem?

So you get it with authordate3 but not with any other style? If so, then
it's in that bst file somewhere.

rh



Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
Sorry, I'll be sure to include examples in the future.  Here is my current
example, trying your suggestion:

missingdata, results=tex=
misssvl-length(data.ind$svl[svl==NA])
if(misssvl0){
  cat(\\texbf{SVL file://texbf%7bsvl/},: Of ,length(data.ind$svl),
 snakes tested, snout-vent length data are missing on , ...

Returns an error Undefined control sequence:
*\texbf*

*{SVL} : Of 50 snakes tested, snout-vent length data are missin...*

*The control sequence at the end of the top line*

*of your error message was never \def'ed. If you have*

*misspelled it (e.g., `\hobx'), type `I' and the correct*

*spelling (e.g., `I\hbox'). Otherwise just continue,*

*and I'll forget about whatever was undefined.*

**

Everything else works, just can't get the SVL title in bold.



On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie x...@yihui.name wrote:

 You have to tell us how or what on earth you cat()ed. I do not think
 you need R tricks (are you talking about the tricks in
 demo(plotmath)?). I believe something like this should work:

 results=tex=
 cat('\\textbf{abc}')
 @

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA



 On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com
 wrote:
  I'm trying to get bold text from a cat() statement within a Sweave chunk
  (results=tex).  None of the tricks I know to get boldface text from R or
  LaTeX are not working.  Ideas?
 
  --
  Shane
 
 




-- 
Shane


Re: LyX slowness

2011-10-13 Thread Paul Rubin
For what it's worth, I have LyX installed on three machines (Dell desktop, Dell
laptop, Acer desktop).  All run Linux Mint with the Gnome desktop.  The Dells
are both Intel 32; the Acer is AMD 64.  Both desktops have nVidia displays with
nVidia proprietary drivers.  I'm not sure about the laptop, but I think that too
is nVidia.  I've had no problems with display speed on any of them.  The math
toolbars are both set to open automatically when in a math inset, close when 
not.

Paul 



Re: Bold text from Sweave chunk

2011-10-13 Thread Liviu Andronic
On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers shanesi...@gmail.com wrote:
 Sorry, I'll be sure to include examples in the future.  Here is my current
 example, trying your suggestion:

 missingdata, results=tex=
 misssvl-length(data.ind$svl[svl==NA])
 if(misssvl0){
   cat(\\texbf{SVL},: Of ,length(data.ind$svl),

I guess this should read: 'textbf' (note the additional 't').

Liviu


      snakes tested, snout-vent length data are missing on , ...

 Returns an error Undefined control sequence:
 \texbf

 {SVL} : Of 50 snakes tested, snout-vent length data are missin...

 The control sequence at the end of the top line

 of your error message was never \def'ed. If you have

 misspelled it (e.g., `\hobx'), type `I' and the correct

 spelling (e.g., `I\hbox'). Otherwise just continue,

 and I'll forget about whatever was undefined.



 Everything else works, just can't get the SVL title in bold.


 On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie x...@yihui.name wrote:

 You have to tell us how or what on earth you cat()ed. I do not think
 you need R tricks (are you talking about the tricks in
 demo(plotmath)?). I believe something like this should work:

 results=tex=
 cat('\\textbf{abc}')
 @

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA



 On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com
 wrote:
  I'm trying to get bold text from a cat() statement within a Sweave chunk
  (results=tex).  None of the tricks I know to get boldface text from R or
  LaTeX are not working.  Ideas?
 
  --
  Shane
 
 



 --
 Shane





-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Richard,
  Coincidentally, this happens with all the authordate family of
styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
system? Using the APA style gives Ahrens et al., 2000, which is
_correct_, but I prefered authordate3's presentation of the bib
itself.

Line 268 of authordate3.bst has the following entry

{ , {\em et~al.\}\relax * }

 no spurious spaces here...anywhere else to look?

Thanks,
 -Simon


On 10/13/11, Richard Heck rgh...@comcast.net wrote:
 On 10/13/2011 02:50 PM, Simon Mushi wrote:
 Hi,
  I am using Lyx 2.0.0 and have written a paper using natbib and the
 authordate3 bib style. All is well, apart from et al. citations in the
 body which appear with an extra whitespace before the comma and date,
 i.e  (Ahrens et al. , 2000)

  How do I get rid of this space before the comma? I have tried going
 in the authordate3.bst , but can't find any spurious spaces. Anyone
 else having this problem?

 So you get it with authordate3 but not with any other style? If so, then
 it's in that bst file somewhere.

 rh




Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
How embarassing.  Yes, this works.  Many thanks.

Shane

On Thu, Oct 13, 2011 at 3:02 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers shanesi...@gmail.com
 wrote:
  Sorry, I'll be sure to include examples in the future.  Here is my
 current
  example, trying your suggestion:
 
  missingdata, results=tex=
  misssvl-length(data.ind$svl[svl==NA])
  if(misssvl0){
cat(\\texbf{SVL},: Of ,length(data.ind$svl),
 
 I guess this should read: 'textbf' (note the additional 't').

 Liviu


   snakes tested, snout-vent length data are missing on , ...
 
  Returns an error Undefined control sequence:
  \texbf
 
  {SVL} : Of 50 snakes tested, snout-vent length data are missin...
 
  The control sequence at the end of the top line
 
  of your error message was never \def'ed. If you have
 
  misspelled it (e.g., `\hobx'), type `I' and the correct
 
  spelling (e.g., `I\hbox'). Otherwise just continue,
 
  and I'll forget about whatever was undefined.
 
 
 
  Everything else works, just can't get the SVL title in bold.
 
 
  On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie x...@yihui.name wrote:
 
  You have to tell us how or what on earth you cat()ed. I do not think
  you need R tricks (are you talking about the tricks in
  demo(plotmath)?). I believe something like this should work:
 
  results=tex=
  cat('\\textbf{abc}')
  @
 
  Regards,
  Yihui
  --
  Yihui Xie xieyi...@gmail.com
  Phone: 515-294-2465 Web: http://yihui.name
  Department of Statistics, Iowa State University
  2215 Snedecor Hall, Ames, IA
 
 
 
  On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers shanesi...@gmail.com
  wrote:
   I'm trying to get bold text from a cat() statement within a Sweave
 chunk
   (results=tex).  None of the tricks I know to get boldface text from R
 or
   LaTeX are not working.  Ideas?
  
   --
   Shane
  
  
 
 
 
  --
  Shane
 
 



 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail




-- 
Shane


Branch names with spaces

2011-10-13 Thread Graeme
According to ticket #5806 (http://www.lyx.org/trac/ticket/5806), the bug 
preventing branch names with spaces was fixed in version 1.6.3, but it 
is still present in 2.0 (on Windows at least).


As the attached LyX file shows, Branches with spaces in the names can be 
created, but after the LyX file has been closed and re-opened, such 
branches do not display correctly on screen as the part of the name 
after the space has been stripped off.


Strangely, the full branch name, including the part after the space, 
still appears in the Document Settings/Branches menu page.


Graeme


BranchNameProblems.lyx
Description: application/lyx


Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Julien Rioux

On 13/10/2011 11:20 PM, Simon Mushi wrote:

Richard,
   Coincidentally, this happens with all the authordate family of
styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
system? Using the APA style gives Ahrens et al., 2000, which is
_correct_, but I prefered authordate3's presentation of the bib
itself.

Line 268 of authordate3.bst has the following entry

 { , {\em et~al.\}\relax * }

  no spurious spaces here...anywhere else to look?

Thanks,
  -Simon



There certainly is an extra space on that line when I open 
authordate3.bst from my tex distribution. To remove it delete the 
backslash and the space that come after et~al.


--
Julien



Re: How to shorten captions in table and figure lists

2011-10-13 Thread Julien Rioux

On 13/10/2011 8:27 PM, Gian Maria Niccolò Benucci wrote:

Hi all,

I am using ClassisThesis style. How to reduce the length or shorten the
Figure and Table captions in the Table and Figure lists?
Thank you in advance,


Gian



Position your cursor somewhere within the caption and click Insert  
Short title. Type a shorter description in there. This description will 
appear in the list of figure instead of the longer one.


--
Julien



Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Julien,
 Thanks, after fixing that line I was still having the same problem so
kept looking in the style file and found  a similar statement on line
1038 and took out space there too. All good now.

-Simon

On 10/13/11, Julien Rioux jri...@physics.utoronto.ca wrote:
 On 13/10/2011 11:20 PM, Simon Mushi wrote:
 Richard,
Coincidentally, this happens with all the authordate family of
 styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
 system? Using the APA style gives Ahrens et al., 2000, which is
 _correct_, but I prefered authordate3's presentation of the bib
 itself.

 Line 268 of authordate3.bst has the following entry

  { , {\em et~al.\}\relax * }

   no spurious spaces here...anywhere else to look?

 Thanks,
   -Simon


 There certainly is an extra space on that line when I open
 authordate3.bst from my tex distribution. To remove it delete the
 backslash and the space that come after et~al.

 --
 Julien




Re: Linking

2011-10-13 Thread E . Lewis
Liviu Andronic landronimirc at gmail.com writes:

 
 On Fri, Oct 22, 2010 at 2:48 AM, Pavel Sanda sanda at lyx.org wrote:
  Liviu Andronic wrote:
  If I understand correctly your question, it has been discussed several
  times in the past and there was even a patch integrating Gnumeric into
  LyX. But I think that it never got applied and that the request is
  frozen at the moment. [1]
 
  the last message in thread is still valid ;)
  pavel
 
 [1] Oh, well, crossing my fingers, perhaps Helge has something new on
 this front. :)
 Liviu
 
 [1] http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg160372.html
 

Obtain and install the exceltex package from CTAN. Exceltex consists of a macro
package as well as a stand-alone executable. Read its instructions for proper
installation.

Preferably (not required, but makes life easier) use evince as your PDF viewer
in LyX.

Add the line: \usepackage{exceltex} to the LyX document
preamble. documentsettingslatex preamble

Identify a cell in a .xls spreadsheet desired for linking to LyX.

Insert ert into LyX as follows:

\inccell{full path to spreadsheet/file_name.xls!sheet_name!cell_reference}

for example:

\inccell{/home/administrator/Desktop/111005ar.xls!Sheet1!A1}

Click on the 'view' icon in LyX (assumes version 2.0).

From Evince, elect 'fileopen containing folder. This will show you the path
to the temporary files LyX produces.

Open a terminal (command line interface)

Change directory to the directory containing the .tex temporary file LyX
produces.

Run pdflatex against the .tex temporary file LyX produces. For example: pdflatex
newfile1.tex

Run exceltex against the .tex temporary file. For example: exceltex newfile1.tex

Run pdflatex against the .tex temporary file again.

Go back to LyX and continue your editing session. The links will all work
properly throughout (current) LyX editing session.

If you link more cells, cell values change, or if you start a new LyX session,
repeat the above steps for proper linking and display.

Linking tables involves a similar procedure as follows:

ert: \begin{longtable}{ll} (or whatever column specification is needed) ert:
\inctab{/home/administrator/Desktop/111005_ar.xls!AR!A1:C3} ert: \end{longtable}

LyX: View (icon) Evince: open folder containing Command: cd
/tmp/lyx_tmpdir.TJ3347/lyx_tmpbuf2 Command: pdflatex newfile1.tex Command:
exceltex newfile1.tex Command: pdflatex newfile1.tex

Return to LyX session.






Re: Marginal Notes Font Size

2011-10-13 Thread Uwe Stöhr

Am 13.10.2011 18:59, schrieb Tim Wescott:


How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka  Daly,


Well, have a look at the lyX documentation first ;-): Sec. 4.3 of the EmbeddedObjects manual you 
find in LyX's Help menu has some examples how to modify margin notes.


To change the font size for a certain not, simply highlight it and use the text style dialog. If you 
want to define a size for ALL margin notes in your document, have a look at the last example and replace


 \hspace{0pt}\textsf{\textbf{\underbar{Attention!}}}% \vspace{1.5mm}\\

by

\tiny

or whatever size you like.

regards Uwe


Re: LyX slowness

2011-10-13 Thread Uwe Stöhr

Am 12.10.2011 18:45, schrieb Torquil Macdonald Sørensen:


While LyX is fantastic in almost every way, it is slow... My LyX is slow at 
pretty much everything.
Typing, scrolling, moving the cursor around using arrow keys, highlighting 
sections of texts, etc.
Even for small documents.


Besides configuration problems with graphics drivers on your PC the only thing where LyX is known to 
be slow is the preview of the LaTeX code, if you use the option to view the whole source code. Using 
the default (only to display the current paragraph) fixes this.


regards Uwe


Re: Marginal Notes Font Size

2011-10-13 Thread Uwe Stöhr

Am 14.10.2011 02:25, schrieb Uwe Stöhr:


To change the font size for a certain note, simply highlight it and use the 
text style dialog.


I meant to highlight its content, not the note box.

regards Uwe


Re: Linking

2011-10-13 Thread Liviu Andronic
On Thu, Oct 13, 2011 at 9:41 PM, E. Lewis ed.le...@enlewis.com wrote:
 Liviu Andronic landronimirc at gmail.com writes:
 [1] Oh, well, crossing my fingers, perhaps Helge has something new on
 this front. :)
 Liviu

 [1] http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg160372.html


 Obtain and install the exceltex package from CTAN. Exceltex consists of a 
 macro
 package as well as a stand-alone executable. Read its instructions for proper
 installation.

I'm not sure, but if you're still trying to dynamically insert a
spreadsheet into a LyX document, you should know that Helge's patch
has been implemented and released with 2.0.0. You simply need to
insert external material 'gnumeric spreadsheet'. Search the wiki.

Liviu


Triangle of Tartaglia with Lyx

2011-10-13 Thread Rubén Jiménez
Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?

I searched the forums but have not found the answer.

thank you very much

Rubén Jiménez


Re: LyX slowness

2011-10-13 Thread Helge Hafting

On 12. okt. 2011 18:45, Torquil Macdonald Sørensen wrote:

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow
at pretty much everything. Typing, scrolling, moving the cursor around
using arrow keys, highlighting sections of texts, etc. Even for small
documents.

This is strange, since my computer is quite fast. It is slow botjh when
using the proprietary NVIDIA and the open-source Nouveau graphics card
driver. I'm running LyX on an XFCE desktop on Debian Sid, using Linux
3.0.4 on a dual-core Asus laptop.



I see the same problem on a pc with nvidia graphics, and have given up 
on it.


Nvidia drivers for linux are simply awful - that is the problem. LyX is 
slow on my work laptop, with 2.4GHz 64-bit dual core. It is much much 
faster on my own travel laptop which is a cheap thing with a 1.8GHz atom
processor, less memory, but it has Intel integrated graphics. With 
linux, Intel graphics beats nvidia everytime for 2D work like document 
processing. Nvidia is a total loss, don't buy it for a linux workstation!


It is not LyX only either, but it may seem like it. Some apps are fast, 
some are not. This because there are several different graphics toolkits 
for linux, with different ways of doing things. LyX uses qt, and qt 
seems to trigger some of the really bad issues with the nvidia drivers.


Nouveau is even worse, and will probably always be. Nouveau is 
open-source, but lack of documentation means they reverse-engineer the 
proprietary driver. So they probably won't come up with something 
better. More compliant with the latest x.org standards perhaps, but no 
significantly better performance.


nvidia may be ok on the 3D side - I wouldn't know because I don't use 
much 3D stuff. When buying graphics for linux, go for Intel graphics. Or 
perhaps the amd/ati cards for fancy cases. Never nvidia!


2D performance is important, that is where everything is except some 
gaming/visualization.



It is not extremely slow, but slow enough to affect the user experience
negatively. And I'm not one of those users that need everything to be
lightning-fast :-) It is sort of like running modern programs on an old
computer.

I have gone through these points:
http://wiki.lyx.org/Tips/PerformanceIssues

My comments on the points raised there:

* My LyX uses more CPU than X. Total CPU usage is less than 100%.
* I don't use the outliner or source view.
* Cursor movement is slow, at least compared to most other programs.
* The Ctrl+Alt+F1 trick has no effect on the slowness.

Any other ways to improve speed? I am willing to recompile LyX myself
with special options, or even modify the source code to deactivate stuff
that is inaccessible from the preferences, if someone would kindly guide
me any suggestion on what might help.

I will try to go back to the proprietary Nvidia driver now and check out
the "nvidia-settings" command given on the page I referred to above. Or
perhaps the newer Nvidia driver will allow LyX to speed up, if I'm
lucky! :-)


A better driver could solve everything. LyX can be fast on very moderate
hardware. You may even try out the vesa driver or the framebuffer 
driver. These drivers just uses the framebuffer, taking NO advantage of 
the fancy hardware acceleration you have. Some things will be slower,
some things (like 3D) just won't happen. But no nvidia-specific 
slowdowns either...


Complaining to nvidia about bad performance in scrolling and text 
rendering might also help. LyX draws a lot of text, and calls into X to 
get the width of strings and characters. Moving the cursor involves such 
calls all the time, and is vulnerable to bad implementations by people 
who think that 3D is the only that matters.


Helge Hafting


Re: replace upper case acronyms with small caps case

2011-10-13 Thread Helge Hafting

On 12. okt. 2011 23:24, e-letter wrote:

On 12/10/2011, Liviu Andronic  wrote:

On Wed, Oct 12, 2011 at 10:36 PM, e-letter  wrote:

Readers,

Is it possible to select an acronym e.g. ABC and replace all copies in
a document with the latex code \textsc{abc}?


It should be possible. Look into advanced search&  replace. Otherwise,
use regexp and a text editor.


Tried to use advanced find and replace; the result was \textsc{abc} in
the pdf document!


Don't type\ t e x t s c { a b c}   into advanced search/replace

In "search", type "abc"

In "replace", type "abc", then *format* it to small caps using 
edit->textstyle. Just as you can format a single entry in the main window.


In advanced replace, you can do all the formatting you can do in the 
document itself. And you do it using the same menus. I.e. 
"Edit->whatever..." Shortcuts work too, like ctrl+b for bold.


Helge Hafting


Re: classicthesis spacing in list of figures

2011-10-13 Thread PhilipPirrip

On 10/11/2011 06:08 AM, PhilipPirrip wrote:

"Abbildung 1.10text" ->  is the second number two-digit, no space
between number and text
how can i change this?


You might be interested:
http://code.google.com/p/classicthesis/issues/detail?id=35



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Richard Heck
On 10/13/2011 05:32 AM, Rubén Jiménez wrote:
> Hi
>
> Will you show me how I can draw the triangle of Tartaglia with Lyx?
>
In most of the world, it is known as "Pascal's triangle". Perhaps that
is why you couldn't find an answer.

> I searched the forums but have not found the answer.
>
http://forum.mackichan.com/node/274
http://www.bedroomlan.org/coding/pascals-triangle-latex

Richard



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread David L. Johnson

On 10/13/2011 10:54 AM, Richard Heck wrote:

On 10/13/2011 05:32 AM, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?


In most of the world, it is known as "Pascal's triangle".
I was hoping for something really exotic.  The links you gave look 
essentially like a table, so why not use a table or a matrix.  I tried 
it, and they both look pretty good, with perhaps a little more space 
than would be ideal.


--

David L. Johnson

If all economists were laid end to end, they would not reach a
conclusion.
-- George Bernard Shaw



Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Torquil Macdonald Sørensen

On 13/10/11 11:32, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?



If it indeed is the same as Pascal's triangle, you can use tikz and copy the 
code from here:


http://www.texample.net/tikz/examples/pascals-triangle-and-sierpinski-triangle/

Just do some searching about how to use tikz in lyx. Tikz is fantastic!

Best regards
Torquil Sørensen


Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
I'm trying to get bold text from a cat() statement within a Sweave chunk
(results=tex).  None of the tricks I know to get boldface text from R or
LaTeX are not working.  Ideas?

-- 
Shane


Marginal Notes Font Size

2011-10-13 Thread Tim Wescott
How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka & Daly, and the only thing I found on
a web search was this, which isn't helping:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19731.html

TIA.

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.



SV: Marginal Notes Font Size

2011-10-13 Thread Ingar Pareliussen
Hi

I use this in the preamble:

\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]%
{\raggedright\footnotesize #1}}

and it works like a charm :). I guess you could use another size instead of 
footnotesize, but it seem to about right for me :)

HTH
Ingar Pareliussen

Re: Marginal Notes Font Size

2011-10-13 Thread PhilipPirrip

On 10/13/2011 06:59 PM, Tim Wescott wrote:

How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka&  Daly, and the only thing I found on
a web search was this, which isn't helping:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg19731.html

TIA.



Find some inspiration here:

\def\mparsetup{%
   \slshape\footnotesize%
   \parindent=0pt \lineskip=0pt \lineskiplimit=0pt %
   \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%
   \doublehyphendemerits=10%
   \finalhyphendemerits=\doublehyphendemerits}

\let\oldmarginpar\marginpar

\renewcommand{\marginpar}[1]{\oldmarginpar[\mparsetup\raggedleft\hspace{0pt}{#1}]{\mparsetup\raggedright\hspace{0pt}{#1}}}



Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Tim, hello all together,

Tim write:

How do I change the font size in marginal notes?


What’s your problem? Write any text and put your cursor at any place in 
your text. Click “insert” -> “marginal note”, type any text in the red 
framed box, mark this text, click “Edit” -> “Text Style” -> “Customized 
...” -> “Size” -> “Very tiny”, click “OK” and be lucky. :-)


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


Re: Marginal Notes Font Size

2011-10-13 Thread PhilipPirrip

On 10/13/2011 07:36 PM, Marcus Glöder wrote:

What’s your problem? Write any text and put your cursor at any place in
your text. Click “insert” -> “marginal note”, type any text in the red
framed box, mark this text, click “Edit” -> “Text Style” -> “Customized
...” -> “Size” -> “Very tiny”, click “OK” and be lucky. :-)


The problem is that this is not the way of doing things in LaTeX & LyX. 
How do you format your chapter and section headings? Don't misuse 
“Edit” -> “Text Style”...




Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Tim, hello all together,

of course, my proposed solution is only practical if you have a short 
text with a few marginal notes. For a text with many marginal notes, 
you'll do not come around to put LaTeX code in "Document" -> "Settings" 
 -> "LaTeX Preamble". In this case have a look at the other answers in 
this thread.


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


Re: Marginal Notes Font Size

2011-10-13 Thread Marcus Glöder

Hello Philip, hello all together,

you write:

The problem is that this is not the way of doing things in LaTeX & LyX.
How do you format your chapter and section headings? Don't misuse “Edit”
-> “Text Style”...


That's right, at least in principle. But for a short text with only a 
few marginal notes you can make it so (even if it's dirty). See my 
second posting.


Kind regards
Marcus

--
E-Mail:  m.gloe...@gmx.de


How to shorten captions in table and figure lists

2011-10-13 Thread Gian Maria Niccolò Benucci
Hi all,

I am using ClassisThesis style. How to reduce the length or shorten the
Figure and Table captions in the Table and Figure lists?
Thank you in advance,


Gian


Re: SV: Marginal Notes Font Size

2011-10-13 Thread Tim Wescott
Thanks Ingar.  I just want tiny little marginal notes (so I used 'tiny')
in a document to point out where I have inadequate information and must
correct things before I'm really "done".

It worked perfectly with

\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\tiny #1]%
{\raggedright\tiny #1}}

On Thu, 2011-10-13 at 17:02 +, Ingar Pareliussen wrote:
> Hi
> 
> I use this in the preamble:
> 
> \let\oldmarginpar\marginpar
> \renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]%
> {\raggedright\footnotesize #1}}
> 
> and it works like a charm :). I guess you could use another size instead of 
> footnotesize, but it seem to about right for me :)
> 
> HTH
> Ingar Pareliussen

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.



natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Hi,
 I am using Lyx 2.0.0 and have written a paper using natbib and the
authordate3 bib style. All is well, apart from et al. citations in the
body which appear with an extra whitespace before the comma and date,
i.e  "(Ahrens et al. , 2000)"

 How do I get rid of this space before the comma? I have tried going
in the authordate3.bst , but can't find any spurious spaces. Anyone
else having this problem?

Thanks in advance!

-Simon


Re: Bold text from Sweave chunk

2011-10-13 Thread Yihui Xie
You have to tell us how or what on earth you cat()ed. I do not think
you need R tricks (are you talking about the tricks in
demo(plotmath)?). I believe something like this should work:


Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Richard Heck
On 10/13/2011 02:50 PM, Simon Mushi wrote:
> Hi,
>  I am using Lyx 2.0.0 and have written a paper using natbib and the
> authordate3 bib style. All is well, apart from et al. citations in the
> body which appear with an extra whitespace before the comma and date,
> i.e  "(Ahrens et al. , 2000)"
>
>  How do I get rid of this space before the comma? I have tried going
> in the authordate3.bst , but can't find any spurious spaces. Anyone
> else having this problem?
>
So you get it with authordate3 but not with any other style? If so, then
it's in that bst file somewhere.

rh



Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
Sorry, I'll be sure to include examples in the future.  Here is my current
example, trying your suggestion:

<>=
misssvl<-length(data.ind$svl[svl=="NA"])
if(misssvl>0){
  cat("\\texbf{SVL }",": Of ",length(data.ind$svl),
" snakes tested, snout-vent length data are missing on ", ...

Returns an error "Undefined control sequence":
*\texbf*

*{SVL} : Of 50 snakes tested, snout-vent length data are missin...*

*The control sequence at the end of the top line*

*of your error message was never \def'ed. If you have*

*misspelled it (e.g., `\hobx'), type `I' and the correct*

*spelling (e.g., `I\hbox'). Otherwise just continue,*

*and I'll forget about whatever was undefined.*

**

Everything else works, just can't get the "SVL" title in bold.



On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie  wrote:

> You have to tell us how or what on earth you cat()ed. I do not think
> you need R tricks (are you talking about the tricks in
> demo(plotmath)?). I believe something like this should work:
>
> 

Re: LyX slowness

2011-10-13 Thread Paul Rubin
For what it's worth, I have LyX installed on three machines (Dell desktop, Dell
laptop, Acer desktop).  All run Linux Mint with the Gnome desktop.  The Dells
are both Intel 32; the Acer is AMD 64.  Both desktops have nVidia displays with
nVidia proprietary drivers.  I'm not sure about the laptop, but I think that too
is nVidia.  I've had no problems with display speed on any of them.  The math
toolbars are both set to open automatically when in a math inset, close when 
not.

Paul 



Re: Bold text from Sweave chunk

2011-10-13 Thread Liviu Andronic
On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers  wrote:
> Sorry, I'll be sure to include examples in the future.  Here is my current
> example, trying your suggestion:
>
> <>=
> misssvl<-length(data.ind$svl[svl=="NA"])
> if(misssvl>0){
>   cat("\\texbf{SVL}",": Of ",length(data.ind$svl),
>
I guess this should read: 'textbf' (note the additional 't').

Liviu


>     " snakes tested, snout-vent length data are missing on ", ...
>
> Returns an error "Undefined control sequence":
> \texbf
>
> {SVL} : Of 50 snakes tested, snout-vent length data are missin...
>
> The control sequence at the end of the top line
>
> of your error message was never \def'ed. If you have
>
> misspelled it (e.g., `\hobx'), type `I' and the correct
>
> spelling (e.g., `I\hbox'). Otherwise just continue,
>
> and I'll forget about whatever was undefined.
>
>
>
> Everything else works, just can't get the "SVL" title in bold.
>
>
> On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie  wrote:
>>
>> You have to tell us how or what on earth you cat()ed. I do not think
>> you need R tricks (are you talking about the tricks in
>> demo(plotmath)?). I believe something like this should work:
>>
>> 

Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Richard,
  Coincidentally, this happens with all the authordate family of
styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
system? Using the APA style gives "Ahrens et al., 2000", which is
_correct_, but I prefered authordate3's presentation of the bib
itself.

Line 268 of authordate3.bst has the following entry

{ ", {\em et~al.\}\relax" * }

 no spurious spaces here...anywhere else to look?

Thanks,
 -Simon


On 10/13/11, Richard Heck  wrote:
> On 10/13/2011 02:50 PM, Simon Mushi wrote:
>> Hi,
>>  I am using Lyx 2.0.0 and have written a paper using natbib and the
>> authordate3 bib style. All is well, apart from et al. citations in the
>> body which appear with an extra whitespace before the comma and date,
>> i.e  "(Ahrens et al. , 2000)"
>>
>>  How do I get rid of this space before the comma? I have tried going
>> in the authordate3.bst , but can't find any spurious spaces. Anyone
>> else having this problem?
>>
> So you get it with authordate3 but not with any other style? If so, then
> it's in that bst file somewhere.
>
> rh
>
>


Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
How embarassing.  Yes, this works.  Many thanks.

Shane

On Thu, Oct 13, 2011 at 3:02 PM, Liviu Andronic wrote:

> On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers 
> wrote:
> > Sorry, I'll be sure to include examples in the future.  Here is my
> current
> > example, trying your suggestion:
> >
> > <>=
> > misssvl<-length(data.ind$svl[svl=="NA"])
> > if(misssvl>0){
> >   cat("\\texbf{SVL}",": Of ",length(data.ind$svl),
> >
> I guess this should read: 'textbf' (note the additional 't').
>
> Liviu
>
>
> > " snakes tested, snout-vent length data are missing on ", ...
> >
> > Returns an error "Undefined control sequence":
> > \texbf
> >
> > {SVL} : Of 50 snakes tested, snout-vent length data are missin...
> >
> > The control sequence at the end of the top line
> >
> > of your error message was never \def'ed. If you have
> >
> > misspelled it (e.g., `\hobx'), type `I' and the correct
> >
> > spelling (e.g., `I\hbox'). Otherwise just continue,
> >
> > and I'll forget about whatever was undefined.
> >
> >
> >
> > Everything else works, just can't get the "SVL" title in bold.
> >
> >
> > On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie  wrote:
> >>
> >> You have to tell us how or what on earth you cat()ed. I do not think
> >> you need R tricks (are you talking about the tricks in
> >> demo(plotmath)?). I believe something like this should work:
> >>
> >> 

Branch names with spaces

2011-10-13 Thread Graeme
According to ticket #5806 (http://www.lyx.org/trac/ticket/5806), the bug 
preventing branch names with spaces was fixed in version 1.6.3, but it 
is still present in 2.0 (on Windows at least).


As the attached LyX file shows, Branches with spaces in the names can be 
created, but after the LyX file has been closed and re-opened, such 
branches do not display correctly on screen as the part of the name 
after the space has been stripped off.


Strangely, the full branch name, including the part after the space, 
still appears in the Document Settings/Branches menu page.


Graeme


BranchNameProblems.lyx
Description: application/lyx


Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Julien Rioux

On 13/10/2011 11:20 PM, Simon Mushi wrote:

Richard,
   Coincidentally, this happens with all the authordate family of
styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
system? Using the APA style gives "Ahrens et al., 2000", which is
_correct_, but I prefered authordate3's presentation of the bib
itself.

Line 268 of authordate3.bst has the following entry

 { ", {\em et~al.\}\relax" * }

  no spurious spaces here...anywhere else to look?

Thanks,
  -Simon



There certainly is an extra space on that line when I open 
authordate3.bst from my tex distribution. To remove it delete the 
backslash and the space that come after et~al.


--
Julien



Re: How to shorten captions in table and figure lists

2011-10-13 Thread Julien Rioux

On 13/10/2011 8:27 PM, Gian Maria Niccolò Benucci wrote:

Hi all,

I am using ClassisThesis style. How to reduce the length or shorten the
Figure and Table captions in the Table and Figure lists?
Thank you in advance,


Gian



Position your cursor somewhere within the caption and click Insert > 
Short title. Type a shorter description in there. This description will 
appear in the list of figure instead of the longer one.


--
Julien



Re: natbib/authordate extra white space after et al.

2011-10-13 Thread Simon Mushi
Julien,
 Thanks, after fixing that line I was still having the same problem so
kept looking in the style file and found  a similar statement on line
1038 and took out space there too. All good now.

-Simon

On 10/13/11, Julien Rioux  wrote:
> On 13/10/2011 11:20 PM, Simon Mushi wrote:
>> Richard,
>>Coincidentally, this happens with all the authordate family of
>> styles, i.e. 1,2,3 and 4. Do you observe the same behaviour on your
>> system? Using the APA style gives "Ahrens et al., 2000", which is
>> _correct_, but I prefered authordate3's presentation of the bib
>> itself.
>>
>> Line 268 of authordate3.bst has the following entry
>>
>>  { ", {\em et~al.\}\relax" * }
>>
>>   no spurious spaces here...anywhere else to look?
>>
>> Thanks,
>>   -Simon
>>
>
> There certainly is an extra space on that line when I open
> authordate3.bst from my tex distribution. To remove it delete the
> backslash and the space that come after et~al.
>
> --
> Julien
>
>


Re: Linking

2011-10-13 Thread E . Lewis
Liviu Andronic  gmail.com> writes:

> 
> On Fri, Oct 22, 2010 at 2:48 AM, Pavel Sanda  lyx.org> wrote:
> > Liviu Andronic wrote:
> >> If I understand correctly your question, it has been discussed several
> >> times in the past and there was even a patch integrating Gnumeric into
> >> LyX. But I think that it never got applied and that the request is
> >> frozen at the moment. [1]
> >
> > the last message in thread is still valid ;)
> > pavel
> >
> [1] Oh, well, crossing my fingers, perhaps Helge has something new on
> this front. :)
> Liviu
> 
> [1] http://www.mail-archive.com/lyx-devel  lists.lyx.org/msg160372.html
> 

Obtain and install the exceltex package from CTAN. Exceltex consists of a macro
package as well as a stand-alone executable. Read its instructions for proper
installation.

Preferably (not required, but makes life easier) use evince as your PDF viewer
in LyX.

Add the line: \usepackage{exceltex} to the LyX document
preamble. 

Identify a cell in a .xls spreadsheet desired for linking to LyX.

Insert ert into LyX as follows:

\inccell{/file_name.xls!sheet_name!cell_reference}

for example:

\inccell{/home/administrator/Desktop/111005ar.xls!Sheet1!A1}

Click on the 'view' icon in LyX (assumes version 2.0).

>From Evince, elect '. This will show you the path
to the temporary files LyX produces.

Open a terminal (command line interface)

Change directory to the directory containing the .tex temporary file LyX
produces.

Run pdflatex against the .tex temporary file LyX produces. For example: pdflatex
newfile1.tex

Run exceltex against the .tex temporary file. For example: exceltex newfile1.tex

Run pdflatex against the .tex temporary file again.

Go back to LyX and continue your editing session. The links will all work
properly throughout (current) LyX editing session.

If you link more cells, cell values change, or if you start a new LyX session,
repeat the above steps for proper linking and display.

Linking tables involves a similar procedure as follows:

ert: \begin{longtable}{ll} (or whatever column specification is needed) ert:
\inctab{/home/administrator/Desktop/111005_ar.xls!AR!A1:C3} ert: \end{longtable}

LyX: View (icon) Evince:  Command: cd
/tmp/lyx_tmpdir.TJ3347/lyx_tmpbuf2 Command: pdflatex newfile1.tex Command:
exceltex newfile1.tex Command: pdflatex newfile1.tex

Return to LyX session.






Re: Marginal Notes Font Size

2011-10-13 Thread Uwe Stöhr

Am 13.10.2011 18:59, schrieb Tim Wescott:


How do I change the font size in marginal notes?  I've looked around --
I don't see much guidance in Kopka&  Daly,


Well, have a look at the lyX documentation first ;-): Sec. 4.3 of the EmbeddedObjects manual you 
find in LyX's Help menu has some examples how to modify margin notes.


To change the font size for a certain not, simply highlight it and use the text style dialog. If you 
want to define a size for ALL margin notes in your document, have a look at the last example and replace


 \hspace{0pt}\textsf{\textbf{\underbar{Attention!}}}% \vspace{1.5mm}\\

by

\tiny

or whatever size you like.

regards Uwe


Re: LyX slowness

2011-10-13 Thread Uwe Stöhr

Am 12.10.2011 18:45, schrieb Torquil Macdonald Sørensen:


While LyX is fantastic in almost every way, it is slow... My LyX is slow at 
pretty much everything.
Typing, scrolling, moving the cursor around using arrow keys, highlighting 
sections of texts, etc.
Even for small documents.


Besides configuration problems with graphics drivers on your PC the only thing where LyX is known to 
be slow is the preview of the LaTeX code, if you use the option to view the whole source code. Using 
the default (only to display the current paragraph) fixes this.


regards Uwe


  1   2   >