Re: editing source code / resume enumerate

2010-10-08 Thread Beth Skwarecki
On Fri, Oct 8, 2010 at 4:24 PM, Richard Heck  wrote:

> the enumitem module provides the Enumerate-Resume environment for this
> purpose. See the attached.


 That's exactly the module I'm trying to use. I understand the syntax that
needs to be present, but my problem is getting that syntax into the page.

I have a list, an image, and then another list. How can I make the second
list resume from the first? The second list starts with "\begin{enumerate}"
- how can I change that to "\begin{enumerate}[resume]"? I can view the
source but can't edit it.

Adding ERT doesn't change the existing \begin line.

Typing "\begin{enumerate}[resume]" as ERT after the image, then typing more
list items, doesn't result in any of those nice blue numbers like in your
attachment.

What am I missing?

Thanks,
Beth


Re: image not centered

2010-10-08 Thread Enrico Forestieri
Guenter Milde writes:
> However, this method inserts additional vertical space before and
> after the image, as it creates a LaTeX environment. See the Source:
> 
>\begin{figure}
>\begin{centering}
>\includegraphics[width=0.9\textwidth]{E-to-T}
>\par\end{centering}
> 
> The LaTeX FAQ recommends using the \centering macro instead:
> 
>\begin{figure}
>\centering
>\includegraphics[width=0.9\textwidth]{E-to-T}

This is equivalent to what LyX uses and no extra vertical space is added.
What you say would be true for \begin{center}...\end{center}, but LyX
is using "centering" here.

-- 
Enrico



Re: 2.0 sweave module installation on windows?

2010-10-08 Thread Liviu Andronic
On Sun, Sep 26, 2010 at 9:56 PM, Liviu Andronic  wrote:
> Dear all
> I am trying to configure the LyX 2.0 Sweave module on Windows 7
> (64bit) with R 2.11.1 (32bit), but I'm stumped in the config process.
>
Apparently Rob managed to solve this [1].
Liviu

[1] http://blog.oak-tree.us/index.php/2010/10/08/sweave-lyx2


Re: editing source code / resume enumerate

2010-10-08 Thread Richard Heck

On 10/08/2010 03:01 PM, Beth Skwarecki wrote:
Hi, I'm new to LyX. I installed enumitem.module so that I can resume 
enumerations, but I can't figure out how to insert the resume command.



In general, you can insert raw LaTeX using Insert>TeX Code. However, ...

I know I can view the source, but how can I edit it within LyX? (I 
need to change \begin{enumerate} to \begin{enumerate}[resume] ) Or is 
there a smarter way to do this?


the enumitem module provides the Enumerate-Resume environment for this 
purpose. See the attached.


rh



enum.lyx
Description: application/lyx


Re: editing source code / resume enumerate

2010-10-08 Thread Paul A . Rubin
Beth Skwarecki  gmail.com> writes:

> 
> Hi, I'm new to LyX. I installed enumitem.module so that I can resume
enumerations, but I can't figure out how to insert the resume command. I know I
can view the source, but how can I edit it within LyX? (I need to change
\begin{enumerate} to \begin{enumerate}[resume] ) Or is there a smarter way to do
this? 

You cannot edit the LaTeX code directly.  You can add "raw" LaTeX (also known as
ERT) to the document with the TeX button (or cntrl-L), but you cannot add
[resume] to the \begin{enumerate} command by that route.

A workable solution is to use mdwlist.sty (part of the mdwtools package) rather
than enumitem. I don't know if anyone has written a module for it, but I am
attaching an example below.  Note that the intervening text needs to be
nested under the suspended item.

/Paul

#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage{mdwlist}
\end_preamble
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\end_header

\begin_body

\begin_layout Standard
blah blah
\end_layout

\begin_layout Enumerate
a
\end_layout

\begin_layout Enumerate
b
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
suspend{enumerate}
\end_layout

\end_inset


\end_layout

\begin_deeper
\begin_layout Standard
blah blah
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
resume{enumerate}
\end_layout

\end_inset


\end_layout

\end_deeper
\begin_layout Enumerate
c
\end_layout

\begin_layout Enumerate
d
\end_layout

\end_body
\end_document



editing source code / resume enumerate

2010-10-08 Thread Beth Skwarecki
Hi, I'm new to LyX. I installed enumitem.module so that I can resume
enumerations, but I can't figure out how to insert the resume command.

I know I can view the source, but how can I edit it within LyX? (I need to
change \begin{enumerate} to \begin{enumerate}[resume] ) Or is there a
smarter way to do this?


SV: Long Table

2010-10-08 Thread Ingar Pareliussen
Hi
>
>Hi, I'm using excel2latex
 >to transfer a table of 1700 rows and 14 columns to lyx and compile
> the document gives me error. The file is attached.

Looking at your file, you have put the \begin tabualr behind a %, where latex 
can not find it. In addition there seem to be some more problems with 
linebreaks. However, cutting the tex-code out and put in a plain text file, put 
the \begin{tabular} on a new line. Importing the file into lyx with the import 
LaTeX(plain)  works flawlessly.

You probably need to use longtable, and change the orientation of the table, 
and perhaps change the size of the font to make it fit.

Ingar

Re: Long Table

2010-10-08 Thread Tennessee Carmel-Veilleux
On 8 October 2010 04:07, Yurena Mendoza Lemes wrote:

> Hi, I'm using excel2latex to transfer a table of 1700 rows and 14 columns
> to lyx and compile the document gives me error. The file is attached.
>

For a table this big, an alternative I would suggest is to format the table
as you want it in Excel directly, and then save it as a PDF. You can then
use Insert>File>External Material and use the PDF pages options to import
the PDF in the document in an appendix.

Best regards,

Tennessee Carmel-Veilleux, ing. jr (OIQ)
Electrical engineering masters student, ETS (http://www.etsmtl.ca)
Project AREXIMAS (http://areximas.etsmtl.ca)


Re: image not centered

2010-10-08 Thread Guenter Milde
On 2010-10-07, Julien Rioux wrote:
> On 06/10/2010 10:47 PM, Joel Schiff wrote:
>> When I insert an image into a float box, I have the cursor to the left
>> of the Figure #, and press return, insert the image, but the image
>> always ends up on the left hand side of the box, even in the dvi file.
>> Of course I want all images centered on the page but cannot get this to
>> happen.

>> I must be doing something wrong as this is very basic. Sorry if this has
>> been asked before.

This is the LaTeX default setting and therefore also LyX's default.
(There has been a long discussion about this some years ago.)

> With the cursor next to the image, hit menu "Edit > Paragraph settings" 
> and select centered alignment.

However, this method inserts additional vertical space before and
after the image, as it creates a LaTeX environment. See the Source:

   \begin{figure}
   \begin{centering}
   \includegraphics[width=0.9\textwidth]{E-to-T}
   \par\end{centering}

The LaTeX FAQ recommends using the \centering macro instead:

   \begin{figure}
   \centering
   \includegraphics[width=0.9\textwidth]{E-to-T}

Unfortunately, this must be written as raw LaTeX code (ERT).

It would be nice if LyX could support this or, at least, document it
in the Embedded Objects manual.

Günter



Re: block matrices

2010-10-08 Thread Uwe Stöhr

Am 06.10.2010 21:02, schrieb Justin Bradley:


I can't seem to be able to figure out how to insert a block matrix into
LyX. I see how to add a vertical bar between columns, but not a
horizontal bar between rows.  Any suggestions?


A matrix with horizontal lines is in LaTeX's definition a table. How to 
handle tables and their lines is described in detail in sec. 2 of the 
EmbeddedObjects manual that you find in LyX's Help menu.


regards Uwe


Re: Long Table

2010-10-08 Thread Liviu Andronic
Hello
Try to go via the CSV route. You can import CSV documents into LyX.

Liviu

On Fri, Oct 8, 2010 at 10:07 AM, Yurena Mendoza Lemes
 wrote:
> Hi, I'm using excel2latex to transfer a table of 1700 rows and 14 columns to
> lyx and compile the document gives me error. The file is attached.
>
> Thanks
>



-- 
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