problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread marcela palomino
Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have 
tried other formats too). I need to have the (author, year) format 
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or 
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.
Marcela




problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread soltrino

Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have 
tried other formats too). I need to have the (author, year) format 
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or 
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.
Marcela

-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/problem-while-referencing-in-the-text-appears-as-in-the-pdf-and-dpi-format-tp5353995p5353995.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
Paul Cvancara cvanc...@faw.uni-freiburg.de wrote:

 ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
 ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
 ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
 einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
 ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5p=28364

HTH

--
Wilfried Hennings



Re: insert a pdf in image float problem

2010-07-30 Thread Tennessee Carmel-Veilleux
On 29 July 2010 21:58, Alex Leith alexgle...@gmail.com wrote:

 Hi

 I am using LyX 1.6.6.1 on OSX and I have an issue where I can't insert a
 pdf image (loaded as a file external material) into an image float. If I
 place it as a stand alone object, outside an image float the document
 compiles fine. But, if I place it inside an image float LyX complains with
 an error in a later paragraph.

 I just noticed that if I view source, the outside pdf give this:

 % Preview source code for paragraph 75


 \includepdf[pages=-]{/Users/alex/Dropbox/Honours/Documents/Thesis/Images/percent_pop_change_hob}


 whereas the inside image float pddf gives this:


 % Preview source code for paragraph 75
 %

 \begin{figure}

 \includepdf[pages=-]{Images/percent_pop_change_hob}

 \caption{Population change in the Greater Hobart region between 2001 and
 2006

 (image source: \citep{statistics2006hobart})}

 \end{figure}

 Note the relative path in the second bit. Why would this cause a problem
 though?

 The relative path is not the problem.

The pdfpages package (which provides \includepdf) is used when inserting
external material. That package basically outputs directly into the PDF
output file with some transformations. It is usually used to import many
pages from other documents for appendices or similar tasks. It cannot be
used in a float, since that would mean LaTeX would need to change the
typesetting by itself to displace it where it ends up.

If you want to put a PDF figure in a float, simply use the Insert:Graphics
menu in the float as usual (like you would do for PNG or JPEG images) and
choose your PDF file.

Best regards,

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


Re: searching for double quotes?

2010-07-30 Thread stefano franchi
On Thu, Jul 29, 2010 at 7:11 PM, Richard Heck rgh...@comcast.net wrote:

 On 07/29/2010 03:59 PM, stefano franchi wrote:

 Dear all,

 I need to do an extensive search and replace that would change all
 occurrences of . to . (rightdoublequotes + period --
 period+rightdoublequotes). Is there any way to do this in Lyx? 1.6 does not
 seem to even see the double quotes (i.e. a find for  fails.) I tried the
 advanced search of Lyx 2.alpha 5, but got no results there either. Is there
 some special trick I I should be using?

  This is precisely the sort of thing for which advanced search is supposed
 to work.

 I can get it to find a double quote, and to do the replacement. You might
 need to make sure you have the right double quote. Typing . will get you a
 LEFT quote plus a period. So you have to type , then type  again, to get a
 right quote, delete the first one, then type the period, and search for
 that. Same with the replacement.

 rh

 Aha! That was the trick. It works fine indeed

Thx,

S.





-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.

Sincerely,
Dave Hopkins

% This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2
% see http://writer2latex.sourceforge.net for more info
\documentclass[letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue,
filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=David
{\textless}hopkins{\textgreater}, pdfsubject=, pdfkeywords=}
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{0.7874in}
\setlength\oddsidemargin{0.7874in}
\setlength\textheight{9.4251995in}
\setlength\textwidth{6.9251995in}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.0469in}
\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt
plus 
1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\makeatletter
\newcommand...@standard{
  \renewcomma...@oddhead{}
  \renewcomma...@evenhead{}
  \renewcomma...@oddfoot{}
  \renewcomma...@evenfoot{}
  \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\title{}
\author{David {\textless}hopkins{\textgreater}}
\date{2010-07-30}
\begin{document}
This is a simple one line document.
\end{document}


Re: problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread Richard Heck

On 07/30/2010 03:09 AM, soltrino wrote:

Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have
tried other formats too). I need to have the (author, year) format
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.

   
Almost every time this comes up, the reason is the same: Unicode in the 
BibTeX file, usually in some author name that has been cut and pasted 
from the web. *BibTeX cannot handle Unicode.* Sometimes it will work, 
but only by sheer luck. Try opening the file in a text editor and then 
saving it in ISO-8859-1 format.


Richard



Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 10:25 AM, David Hopkins wrote:

If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


I'm not sure I understand the problem. I just imported the document into 
LyX (FileImportLaTeX). It's attached, and it compiles just fine. All 
the preamble stuff just ends up at DocumentSettingsLaTeX Preamble. 
Most of that is junk that can just be deleted anyway. Why writer2latex 
insists upon setting footskip, e.g., is pretty unclear.


rh


=


% This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2
% see http://writer2latex.sourceforge.net for more info
\documentclass[letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue,
filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=David
{\textless}hopkins{\textgreater}, pdfsubject=, pdfkeywords=}
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{0.7874in}
\setlength\oddsidemargin{0.7874in}
\setlength\textheight{9.4251995in}
\setlength\textwidth{6.9251995in}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.0469in}
\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt
plus 
1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\makeatletter
\newcommand...@standard{
   \renewcomma...@oddhead{}
   \renewcomma...@evenhead{}
   \renewcomma...@oddfoot{}
   \renewcomma...@evenfoot{}
   \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\title{}
\author{David {\textless}hopkins{\textgreater}}
\date{2010-07-30}
\begin{document}
This is a simple one line document.
\end{document}






t.lyx
Description: application/lyx


Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 10:58 AM, Richard Heck rgh...@comcast.net wrote:
 On 07/30/2010 10:25 AM, David Hopkins wrote:

 If I export an OOo document using writer2latex.oxt, it outputs a tex
 file which has all the necessary tex/latex commands to compile
 directly. However, I'd like to then import that document into LyX.  My
 issue is that I seem to need to create a layout that uses everthing
 between the \documentclass and \begindocument in the tex file?  I've
 tried reading notes on the wiki and searching this list but I have not
 understood what I need to do.  For instance, if I have a very simple
 document (just a line of text), writer2latex.oxt produces the
 following, but I can't just import this into LyX. If someone can point
 me at the correct tutorial on how to 'split out' this document so that
 it can be used with LyX, I'd be very grateful. Note: My actual
 document has \usepackage, \newcommand, etc but I'm assuming the
 process for something simple like the following would apply for a more
 complicated document as well.


 I'm not sure I understand the problem. I just imported the document into LyX
 (FileImportLaTeX). It's attached, and it compiles just fine. All the
 preamble stuff just ends up at DocumentSettingsLaTeX Preamble. Most of
 that is junk that can just be deleted anyway. Why writer2latex insists upon
 setting footskip, e.g., is pretty unclear.

Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.


Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 11:16 AM, David Hopkins wrote:

On Fri, Jul 30, 2010 at 10:58 AM, Richard Heckrgh...@comcast.net  wrote:
   

On 07/30/2010 10:25 AM, David Hopkins wrote:
 

If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


   

I'm not sure I understand the problem. I just imported the document into LyX
(FileImportLaTeX). It's attached, and it compiles just fine. All the
preamble stuff just ends up at DocumentSettingsLaTeX Preamble. Most of
that is junk that can just be deleted anyway. Why writer2latex insists upon
setting footskip, e.g., is pretty unclear.
 

Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.

   

What sort of failure do you get?

I have generally found that things like writer2latex produce really ugly 
LaTeX, and that is likely to confuse tex2lyx. Not to mention that your 
document will be littered with ERT. My experience was mostly with 
wp2latex (for WordPerfect), and I ended up writing a sed script that 
went through and cleaned up the file in various ways. If I had it to do 
again, I'd probably do it in Perl or Python, but you get the idea.


Richard




Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 11:22 AM, Richard Heck rgh...@comcast.net wrote:
 On 07/30/2010 11:16 AM, David Hopkins wrote:

 On Fri, Jul 30, 2010 at 10:58 AM, Richard Heckrgh...@comcast.net  wrote:


 On 07/30/2010 10:25 AM, David Hopkins wrote:


 If I export an OOo document using writer2latex.oxt, it outputs a tex
 file which has all the necessary tex/latex commands to compile
 directly. However, I'd like to then import that document into LyX.  My
 issue is that I seem to need to create a layout that uses everthing
 between the \documentclass and \begindocument in the tex file?  I've
 tried reading notes on the wiki and searching this list but I have not
 understood what I need to do.  For instance, if I have a very simple
 document (just a line of text), writer2latex.oxt produces the
 following, but I can't just import this into LyX. If someone can point
 me at the correct tutorial on how to 'split out' this document so that
 it can be used with LyX, I'd be very grateful. Note: My actual
 document has \usepackage, \newcommand, etc but I'm assuming the
 process for something simple like the following would apply for a more
 complicated document as well.




 I'm not sure I understand the problem. I just imported the document into
 LyX
 (FileImportLaTeX). It's attached, and it compiles just fine. All the
 preamble stuff just ends up at DocumentSettingsLaTeX Preamble. Most of
 that is junk that can just be deleted anyway. Why writer2latex insists
 upon
 setting footskip, e.g., is pretty unclear.


 Hmmm ... you're right.  I guess that is what happens when I try to
 send the simplest example I can put together.  I'm not sure how to
 send a better example e.g. writer2latex's user-manual.odt exported
 using writer2latex's filter. It does not work if I simply import it
 into LyX.



 What sort of failure do you get?

 I have generally found that things like writer2latex produce really ugly
 LaTeX, and that is likely to confuse tex2lyx. Not to mention that your
 document will be littered with ERT. My experience was mostly with wp2latex
 (for WordPerfect), and I ended up writing a sed script that went through and
 cleaned up the file in various ways. If I had it to do again, I'd probably
 do it in Perl or Python, but you get the idea.


There are two issues:

1) if I use writer2latex and get the 'ugly' LaTex. The first error is
a misplaced \noalign in a table which seems to cascade into a lot of
other errors.

2) the second concerns an in-house tex template that is used for
internal reports. I can use Texworks, open the file, add text,
equations, tables, and such without issues. I can also use WinEdt (on
a PC) with the tex file and it works as well.  However, importing this
tex file into LyX fails miserably.  LaTex preamble seems to capture
everything before the begin{document}, but LyX can't create the
document.  The first issue seems to be the use of

\def\PREPARETYPE {\MYTR} where MYTR is later defined via

\newcommand{\MYTR}{
  \documentclass{myarticle}
  \usepackage{boxhandler}
  \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
  \def\UserDL{mystencil.dls}%User Distribution List File
  \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
%appendix figures .OR.  99 figures
  \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
%appendix figures .OR.  99 figures
  \def\CaptionJustification{\raggedright}
  \usepackage[T1]{fontenc}
  \usepackage{times}
}

%insert another \newcommand for a different TYPE here ... not included
in this email

\PREPARETYPE%

I get errors about having multiple documentclass definitions.  If I
simply remove the documentclass, I still get errors about
\addtolength, and others.  boxhandler is found  as are the other LaTex
classes and styles that are referenced which were added to my local
texmf directory and texhash was run, at least LyX shows them under Tex
Info.  I'm trying to convert the template to work with LyX although it
does show up with a lot of TeX commands embedded in it. (lots of red
sections).

Sincerely,
Dave Hopkins


Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 11:50 AM, David Hopkins wrote:


There are two issues:

1) if I use writer2latex and get the 'ugly' LaTex. The first error is
a misplaced \noalign in a table which seems to cascade into a lot of
other errors.

   

This is the kind of thing for which a perl script is helpful.


2) the second concerns an in-house tex template that is used for
internal reports. I can use Texworks, open the file, add text,
equations, tables, and such without issues. I can also use WinEdt (on
a PC) with the tex file and it works as well.  However, importing this
tex file into LyX fails miserably.  LaTex preamble seems to capture
everything before the begin{document}, but LyX can't create the
document.  The first issue seems to be the use of

\def\PREPARETYPE {\MYTR} where MYTR is later defined via

\newcommand{\MYTR}{
   \documentclass{myarticle}
   \usepackage{boxhandler}
   \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
   \def\UserDL{mystencil.dls}%User Distribution List File
   \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
%appendix figures .OR.  99 figures
   \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
%appendix figures .OR.  99 figures
   \def\CaptionJustification{\raggedright}
   \usepackage[T1]{fontenc}
   \usepackage{times}
}

%insert another \newcommand for a different TYPE here ... not included
in this email

\PREPARETYPE%

I get errors about having multiple documentclass definitions.

   
Because LyX adds \documentclass itself. To use this with LyX, you'll 
definitely need to disentangle some of this. The \usepackage stuff 
should really go in the preamble, BEFORE \documentclass is issued, and 
I'd think the \defs are more natural there, too.



If I simply remove the documentclass, I still get errors about
\addtolength, and others.

   
I'm not so sure why you see this, but, again, disentangling is surely 
the key.



I'm trying to convert the template to work with LyX although it
does show up with a lot of TeX commands embedded in it. (lots of red
sections).

   
This can probably be cleaned up some, but it has to be done manually. 
You may be able to write new layout styles, or character styles, to 
replace some of this.


Richard



Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 11:56 AM, Richard Heck rgh...@comcast.net wrote:
 On 07/30/2010 11:50 AM, David Hopkins wrote:

 There are two issues:

 1) if I use writer2latex and get the 'ugly' LaTex. The first error is
 a misplaced \noalign in a table which seems to cascade into a lot of
 other errors.



 This is the kind of thing for which a perl script is helpful.

 2) the second concerns an in-house tex template that is used for
 internal reports. I can use Texworks, open the file, add text,
 equations, tables, and such without issues. I can also use WinEdt (on
 a PC) with the tex file and it works as well.  However, importing this
 tex file into LyX fails miserably.  LaTex preamble seems to capture
 everything before the begin{document}, but LyX can't create the
 document.  The first issue seems to be the use of

 \def\PREPARETYPE {\MYTR} where MYTR is later defined via

 \newcommand{\MYTR}{
   \documentclass{myarticle}
   \usepackage{boxhandler}
   \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
   \def\UserDL{mystencil.dls}%User Distribution List File
   \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
 %appendix figures .OR.  99 figures
   \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
 %appendix figures .OR.  99 figures
   \def\CaptionJustification{\raggedright}
   \usepackage[T1]{fontenc}
   \usepackage{times}
 }

 %insert another \newcommand for a different TYPE here ... not included
 in this email

 \PREPARETYPE%

 I get errors about having multiple documentclass definitions.



 Because LyX adds \documentclass itself. To use this with LyX, you'll
 definitely need to disentangle some of this. The \usepackage stuff should
 really go in the preamble, BEFORE \documentclass is issued, and I'd think
 the \defs are more natural there, too.

 If I simply remove the documentclass, I still get errors about
 \addtolength, and others.



 I'm not so sure why you see this, but, again, disentangling is surely the
 key.

 I'm trying to convert the template to work with LyX although it
 does show up with a lot of TeX commands embedded in it. (lots of red
 sections).



 This can probably be cleaned up some, but it has to be done manually. You
 may be able to write new layout styles, or character styles, to replace some
 of this.


Thanks!  It looks like I have my work cut out for me if I want to get
this working with LyX. Nothing like jumping directly from casual user
to writing templates.

Sincerely,
Dave Hopkins


turn off blinking cursor?

2010-07-30 Thread Tom Goldring
Is there any way to get a non-blinking cursor? I find it most distracting.


Re: how can I disable automatic graphics EPS conversion (it is making output PDFs fail!)

2010-07-30 Thread Nicholas Tung
Hi all,

Can I provide more information? I partially corrected the bug with a
Python script (replacing the command line for the Latex - PDF operation),
but it's not an ideal solution.

Thanks,
Nicholas — ntung at ntung —  https://ntung.com — CS major @ UC Berkeley

On Mon, Jul 26, 2010 at 12:29 PM, Nicholas Tung nt...@ntung.com wrote:

 Thanks. I am running OpenSuSE 11.3 final x86_64, and LyX 1.6.7.

 A test file is at
 http://cobol.cs.berkeley.edu/gatoatigrado/files/hw4.lyx.7z .

 thanks,
 Nicholas — ntung at ntung —  https://ntung.com — CS major @ UC Berkeley

 On Sun, Jul 25, 2010 at 6:03 AM, Uwe Stöhr uwesto...@web.de wrote:
  Am 25.07.2010 07:20, schrieb Nicholas Tung:
 
  Is there a way I can disable the automatic conversion of images
  (added via Insert  Graphics) to the EPS format? xelatex does not work
  with the EPS images for whatever reason, and works fine with the
  source jpg or png images.
 
  This should not happen if your output format is PDF. DVI and PS can only
  handle EPS images so that LyX must in this case convert all images to
 EPS.
 
  If the problems occurs for you also with PDF output, can you please send
 a
  LyX example file? What is your OS and what your LyX version?
 
  regards Uwe
 



Re: turn off blinking cursor?

2010-07-30 Thread Tennessee Carmel-Veilleux
On 30 July 2010 15:01, Tom Goldring tom.goldr...@gmail.com wrote:

 Is there any way to get a non-blinking cursor? I find it most distracting.


If you are under Windows: Control Panel:Keyboard:Cursor Blink Rate and set
to none. Under Linux, there are equivalents depending on whether you are
under KDE, GNOME or other windows manager.

Best regards,

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


problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread marcela palomino
Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have 
tried other formats too). I need to have the (author, year) format 
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or 
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.
Marcela




problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread soltrino

Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have 
tried other formats too). I need to have the (author, year) format 
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or 
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.
Marcela

-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/problem-while-referencing-in-the-text-appears-as-in-the-pdf-and-dpi-format-tp5353995p5353995.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
Paul Cvancara cvanc...@faw.uni-freiburg.de wrote:

 ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
 ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
 ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
 einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
 ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5p=28364

HTH

--
Wilfried Hennings



Re: insert a pdf in image float problem

2010-07-30 Thread Tennessee Carmel-Veilleux
On 29 July 2010 21:58, Alex Leith alexgle...@gmail.com wrote:

 Hi

 I am using LyX 1.6.6.1 on OSX and I have an issue where I can't insert a
 pdf image (loaded as a file external material) into an image float. If I
 place it as a stand alone object, outside an image float the document
 compiles fine. But, if I place it inside an image float LyX complains with
 an error in a later paragraph.

 I just noticed that if I view source, the outside pdf give this:

 % Preview source code for paragraph 75


 \includepdf[pages=-]{/Users/alex/Dropbox/Honours/Documents/Thesis/Images/percent_pop_change_hob}


 whereas the inside image float pddf gives this:


 % Preview source code for paragraph 75
 %

 \begin{figure}

 \includepdf[pages=-]{Images/percent_pop_change_hob}

 \caption{Population change in the Greater Hobart region between 2001 and
 2006

 (image source: \citep{statistics2006hobart})}

 \end{figure}

 Note the relative path in the second bit. Why would this cause a problem
 though?

 The relative path is not the problem.

The pdfpages package (which provides \includepdf) is used when inserting
external material. That package basically outputs directly into the PDF
output file with some transformations. It is usually used to import many
pages from other documents for appendices or similar tasks. It cannot be
used in a float, since that would mean LaTeX would need to change the
typesetting by itself to displace it where it ends up.

If you want to put a PDF figure in a float, simply use the Insert:Graphics
menu in the float as usual (like you would do for PNG or JPEG images) and
choose your PDF file.

Best regards,

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


Re: searching for double quotes?

2010-07-30 Thread stefano franchi
On Thu, Jul 29, 2010 at 7:11 PM, Richard Heck rgh...@comcast.net wrote:

 On 07/29/2010 03:59 PM, stefano franchi wrote:

 Dear all,

 I need to do an extensive search and replace that would change all
 occurrences of . to . (rightdoublequotes + period --
 period+rightdoublequotes). Is there any way to do this in Lyx? 1.6 does not
 seem to even see the double quotes (i.e. a find for  fails.) I tried the
 advanced search of Lyx 2.alpha 5, but got no results there either. Is there
 some special trick I I should be using?

  This is precisely the sort of thing for which advanced search is supposed
 to work.

 I can get it to find a double quote, and to do the replacement. You might
 need to make sure you have the right double quote. Typing . will get you a
 LEFT quote plus a period. So you have to type , then type  again, to get a
 right quote, delete the first one, then type the period, and search for
 that. Same with the replacement.

 rh

 Aha! That was the trick. It works fine indeed

Thx,

S.





-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.

Sincerely,
Dave Hopkins

% This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2
% see http://writer2latex.sourceforge.net for more info
\documentclass[letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue,
filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=David
{\textless}hopkins{\textgreater}, pdfsubject=, pdfkeywords=}
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{0.7874in}
\setlength\oddsidemargin{0.7874in}
\setlength\textheight{9.4251995in}
\setlength\textwidth{6.9251995in}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.0469in}
\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt
plus 
1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\makeatletter
\newcommand...@standard{
  \renewcomma...@oddhead{}
  \renewcomma...@evenhead{}
  \renewcomma...@oddfoot{}
  \renewcomma...@evenfoot{}
  \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\title{}
\author{David {\textless}hopkins{\textgreater}}
\date{2010-07-30}
\begin{document}
This is a simple one line document.
\end{document}


Re: problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread Richard Heck

On 07/30/2010 03:09 AM, soltrino wrote:

Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have
tried other formats too). I need to have the (author, year) format
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.

   
Almost every time this comes up, the reason is the same: Unicode in the 
BibTeX file, usually in some author name that has been cut and pasted 
from the web. *BibTeX cannot handle Unicode.* Sometimes it will work, 
but only by sheer luck. Try opening the file in a text editor and then 
saving it in ISO-8859-1 format.


Richard



Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 10:25 AM, David Hopkins wrote:

If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


I'm not sure I understand the problem. I just imported the document into 
LyX (FileImportLaTeX). It's attached, and it compiles just fine. All 
the preamble stuff just ends up at DocumentSettingsLaTeX Preamble. 
Most of that is junk that can just be deleted anyway. Why writer2latex 
insists upon setting footskip, e.g., is pretty unclear.


rh


=


% This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2
% see http://writer2latex.sourceforge.net for more info
\documentclass[letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue,
filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=David
{\textless}hopkins{\textgreater}, pdfsubject=, pdfkeywords=}
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{0.7874in}
\setlength\oddsidemargin{0.7874in}
\setlength\textheight{9.4251995in}
\setlength\textwidth{6.9251995in}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.0469in}
\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt
plus 
1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\makeatletter
\newcommand...@standard{
   \renewcomma...@oddhead{}
   \renewcomma...@evenhead{}
   \renewcomma...@oddfoot{}
   \renewcomma...@evenfoot{}
   \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\title{}
\author{David {\textless}hopkins{\textgreater}}
\date{2010-07-30}
\begin{document}
This is a simple one line document.
\end{document}






t.lyx
Description: application/lyx


Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 10:58 AM, Richard Heck rgh...@comcast.net wrote:
 On 07/30/2010 10:25 AM, David Hopkins wrote:

 If I export an OOo document using writer2latex.oxt, it outputs a tex
 file which has all the necessary tex/latex commands to compile
 directly. However, I'd like to then import that document into LyX.  My
 issue is that I seem to need to create a layout that uses everthing
 between the \documentclass and \begindocument in the tex file?  I've
 tried reading notes on the wiki and searching this list but I have not
 understood what I need to do.  For instance, if I have a very simple
 document (just a line of text), writer2latex.oxt produces the
 following, but I can't just import this into LyX. If someone can point
 me at the correct tutorial on how to 'split out' this document so that
 it can be used with LyX, I'd be very grateful. Note: My actual
 document has \usepackage, \newcommand, etc but I'm assuming the
 process for something simple like the following would apply for a more
 complicated document as well.


 I'm not sure I understand the problem. I just imported the document into LyX
 (FileImportLaTeX). It's attached, and it compiles just fine. All the
 preamble stuff just ends up at DocumentSettingsLaTeX Preamble. Most of
 that is junk that can just be deleted anyway. Why writer2latex insists upon
 setting footskip, e.g., is pretty unclear.

Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.


Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 11:16 AM, David Hopkins wrote:

On Fri, Jul 30, 2010 at 10:58 AM, Richard Heckrgh...@comcast.net  wrote:
   

On 07/30/2010 10:25 AM, David Hopkins wrote:
 

If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


   

I'm not sure I understand the problem. I just imported the document into LyX
(FileImportLaTeX). It's attached, and it compiles just fine. All the
preamble stuff just ends up at DocumentSettingsLaTeX Preamble. Most of
that is junk that can just be deleted anyway. Why writer2latex insists upon
setting footskip, e.g., is pretty unclear.
 

Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.

   

What sort of failure do you get?

I have generally found that things like writer2latex produce really ugly 
LaTeX, and that is likely to confuse tex2lyx. Not to mention that your 
document will be littered with ERT. My experience was mostly with 
wp2latex (for WordPerfect), and I ended up writing a sed script that 
went through and cleaned up the file in various ways. If I had it to do 
again, I'd probably do it in Perl or Python, but you get the idea.


Richard




Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 11:22 AM, Richard Heck rgh...@comcast.net wrote:
 On 07/30/2010 11:16 AM, David Hopkins wrote:

 On Fri, Jul 30, 2010 at 10:58 AM, Richard Heckrgh...@comcast.net  wrote:


 On 07/30/2010 10:25 AM, David Hopkins wrote:


 If I export an OOo document using writer2latex.oxt, it outputs a tex
 file which has all the necessary tex/latex commands to compile
 directly. However, I'd like to then import that document into LyX.  My
 issue is that I seem to need to create a layout that uses everthing
 between the \documentclass and \begindocument in the tex file?  I've
 tried reading notes on the wiki and searching this list but I have not
 understood what I need to do.  For instance, if I have a very simple
 document (just a line of text), writer2latex.oxt produces the
 following, but I can't just import this into LyX. If someone can point
 me at the correct tutorial on how to 'split out' this document so that
 it can be used with LyX, I'd be very grateful. Note: My actual
 document has \usepackage, \newcommand, etc but I'm assuming the
 process for something simple like the following would apply for a more
 complicated document as well.




 I'm not sure I understand the problem. I just imported the document into
 LyX
 (FileImportLaTeX). It's attached, and it compiles just fine. All the
 preamble stuff just ends up at DocumentSettingsLaTeX Preamble. Most of
 that is junk that can just be deleted anyway. Why writer2latex insists
 upon
 setting footskip, e.g., is pretty unclear.


 Hmmm ... you're right.  I guess that is what happens when I try to
 send the simplest example I can put together.  I'm not sure how to
 send a better example e.g. writer2latex's user-manual.odt exported
 using writer2latex's filter. It does not work if I simply import it
 into LyX.



 What sort of failure do you get?

 I have generally found that things like writer2latex produce really ugly
 LaTeX, and that is likely to confuse tex2lyx. Not to mention that your
 document will be littered with ERT. My experience was mostly with wp2latex
 (for WordPerfect), and I ended up writing a sed script that went through and
 cleaned up the file in various ways. If I had it to do again, I'd probably
 do it in Perl or Python, but you get the idea.


There are two issues:

1) if I use writer2latex and get the 'ugly' LaTex. The first error is
a misplaced \noalign in a table which seems to cascade into a lot of
other errors.

2) the second concerns an in-house tex template that is used for
internal reports. I can use Texworks, open the file, add text,
equations, tables, and such without issues. I can also use WinEdt (on
a PC) with the tex file and it works as well.  However, importing this
tex file into LyX fails miserably.  LaTex preamble seems to capture
everything before the begin{document}, but LyX can't create the
document.  The first issue seems to be the use of

\def\PREPARETYPE {\MYTR} where MYTR is later defined via

\newcommand{\MYTR}{
  \documentclass{myarticle}
  \usepackage{boxhandler}
  \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
  \def\UserDL{mystencil.dls}%User Distribution List File
  \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
%appendix figures .OR.  99 figures
  \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
%appendix figures .OR.  99 figures
  \def\CaptionJustification{\raggedright}
  \usepackage[T1]{fontenc}
  \usepackage{times}
}

%insert another \newcommand for a different TYPE here ... not included
in this email

\PREPARETYPE%

I get errors about having multiple documentclass definitions.  If I
simply remove the documentclass, I still get errors about
\addtolength, and others.  boxhandler is found  as are the other LaTex
classes and styles that are referenced which were added to my local
texmf directory and texhash was run, at least LyX shows them under Tex
Info.  I'm trying to convert the template to work with LyX although it
does show up with a lot of TeX commands embedded in it. (lots of red
sections).

Sincerely,
Dave Hopkins


Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 11:50 AM, David Hopkins wrote:


There are two issues:

1) if I use writer2latex and get the 'ugly' LaTex. The first error is
a misplaced \noalign in a table which seems to cascade into a lot of
other errors.

   

This is the kind of thing for which a perl script is helpful.


2) the second concerns an in-house tex template that is used for
internal reports. I can use Texworks, open the file, add text,
equations, tables, and such without issues. I can also use WinEdt (on
a PC) with the tex file and it works as well.  However, importing this
tex file into LyX fails miserably.  LaTex preamble seems to capture
everything before the begin{document}, but LyX can't create the
document.  The first issue seems to be the use of

\def\PREPARETYPE {\MYTR} where MYTR is later defined via

\newcommand{\MYTR}{
   \documentclass{myarticle}
   \usepackage{boxhandler}
   \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
   \def\UserDL{mystencil.dls}%User Distribution List File
   \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
%appendix figures .OR.  99 figures
   \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
%appendix figures .OR.  99 figures
   \def\CaptionJustification{\raggedright}
   \usepackage[T1]{fontenc}
   \usepackage{times}
}

%insert another \newcommand for a different TYPE here ... not included
in this email

\PREPARETYPE%

I get errors about having multiple documentclass definitions.

   
Because LyX adds \documentclass itself. To use this with LyX, you'll 
definitely need to disentangle some of this. The \usepackage stuff 
should really go in the preamble, BEFORE \documentclass is issued, and 
I'd think the \defs are more natural there, too.



If I simply remove the documentclass, I still get errors about
\addtolength, and others.

   
I'm not so sure why you see this, but, again, disentangling is surely 
the key.



I'm trying to convert the template to work with LyX although it
does show up with a lot of TeX commands embedded in it. (lots of red
sections).

   
This can probably be cleaned up some, but it has to be done manually. 
You may be able to write new layout styles, or character styles, to 
replace some of this.


Richard



Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 11:56 AM, Richard Heck rgh...@comcast.net wrote:
 On 07/30/2010 11:50 AM, David Hopkins wrote:

 There are two issues:

 1) if I use writer2latex and get the 'ugly' LaTex. The first error is
 a misplaced \noalign in a table which seems to cascade into a lot of
 other errors.



 This is the kind of thing for which a perl script is helpful.

 2) the second concerns an in-house tex template that is used for
 internal reports. I can use Texworks, open the file, add text,
 equations, tables, and such without issues. I can also use WinEdt (on
 a PC) with the tex file and it works as well.  However, importing this
 tex file into LyX fails miserably.  LaTex preamble seems to capture
 everything before the begin{document}, but LyX can't create the
 document.  The first issue seems to be the use of

 \def\PREPARETYPE {\MYTR} where MYTR is later defined via

 \newcommand{\MYTR}{
   \documentclass{myarticle}
   \usepackage{boxhandler}
   \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
   \def\UserDL{mystencil.dls}%User Distribution List File
   \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
 %appendix figures .OR.  99 figures
   \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
 %appendix figures .OR.  99 figures
   \def\CaptionJustification{\raggedright}
   \usepackage[T1]{fontenc}
   \usepackage{times}
 }

 %insert another \newcommand for a different TYPE here ... not included
 in this email

 \PREPARETYPE%

 I get errors about having multiple documentclass definitions.



 Because LyX adds \documentclass itself. To use this with LyX, you'll
 definitely need to disentangle some of this. The \usepackage stuff should
 really go in the preamble, BEFORE \documentclass is issued, and I'd think
 the \defs are more natural there, too.

 If I simply remove the documentclass, I still get errors about
 \addtolength, and others.



 I'm not so sure why you see this, but, again, disentangling is surely the
 key.

 I'm trying to convert the template to work with LyX although it
 does show up with a lot of TeX commands embedded in it. (lots of red
 sections).



 This can probably be cleaned up some, but it has to be done manually. You
 may be able to write new layout styles, or character styles, to replace some
 of this.


Thanks!  It looks like I have my work cut out for me if I want to get
this working with LyX. Nothing like jumping directly from casual user
to writing templates.

Sincerely,
Dave Hopkins


turn off blinking cursor?

2010-07-30 Thread Tom Goldring
Is there any way to get a non-blinking cursor? I find it most distracting.


Re: how can I disable automatic graphics EPS conversion (it is making output PDFs fail!)

2010-07-30 Thread Nicholas Tung
Hi all,

Can I provide more information? I partially corrected the bug with a
Python script (replacing the command line for the Latex - PDF operation),
but it's not an ideal solution.

Thanks,
Nicholas — ntung at ntung —  https://ntung.com — CS major @ UC Berkeley

On Mon, Jul 26, 2010 at 12:29 PM, Nicholas Tung nt...@ntung.com wrote:

 Thanks. I am running OpenSuSE 11.3 final x86_64, and LyX 1.6.7.

 A test file is at
 http://cobol.cs.berkeley.edu/gatoatigrado/files/hw4.lyx.7z .

 thanks,
 Nicholas — ntung at ntung —  https://ntung.com — CS major @ UC Berkeley

 On Sun, Jul 25, 2010 at 6:03 AM, Uwe Stöhr uwesto...@web.de wrote:
  Am 25.07.2010 07:20, schrieb Nicholas Tung:
 
  Is there a way I can disable the automatic conversion of images
  (added via Insert  Graphics) to the EPS format? xelatex does not work
  with the EPS images for whatever reason, and works fine with the
  source jpg or png images.
 
  This should not happen if your output format is PDF. DVI and PS can only
  handle EPS images so that LyX must in this case convert all images to
 EPS.
 
  If the problems occurs for you also with PDF output, can you please send
 a
  LyX example file? What is your OS and what your LyX version?
 
  regards Uwe
 



Re: turn off blinking cursor?

2010-07-30 Thread Tennessee Carmel-Veilleux
On 30 July 2010 15:01, Tom Goldring tom.goldr...@gmail.com wrote:

 Is there any way to get a non-blinking cursor? I find it most distracting.


If you are under Windows: Control Panel:Keyboard:Cursor Blink Rate and set
to none. Under Linux, there are equivalents depending on whether you are
under KDE, GNOME or other windows manager.

Best regards,

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


problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread marcela palomino
Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have 
tried other formats too). I need to have the (author, year) format 
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or 
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.
Marcela




problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread soltrino

Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have 
tried other formats too). I need to have the (author, year) format 
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or 
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.
Marcela

-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/problem-while-referencing-in-the-text-appears-as-in-the-pdf-and-dpi-format-tp5353995p5353995.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
"Paul Cvancara"  wrote:

> ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
> ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
> ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
> einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
> ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5=28364

HTH

--
Wilfried Hennings



Re: insert a pdf in image float problem

2010-07-30 Thread Tennessee Carmel-Veilleux
On 29 July 2010 21:58, Alex Leith  wrote:

> Hi
>
> I am using LyX 1.6.6.1 on OSX and I have an issue where I can't insert a
> pdf image (loaded as a "file" "external material") into an image float. If I
> place it as a stand alone object, outside an image float the document
> compiles fine. But, if I place it inside an image float LyX complains with
> an error in a later paragraph.
>
> I just noticed that if I view source, the outside pdf give this:
>
> % Preview source code for paragraph 75
>
>
> \includepdf[pages=-]{/Users/alex/Dropbox/Honours/Documents/Thesis/Images/percent_pop_change_hob}
>
>
> whereas the inside image float pddf gives this:
>
>
> % Preview source code for paragraph 75
> %
>
> \begin{figure}
>
> \includepdf[pages=-]{Images/percent_pop_change_hob}
>
> \caption{Population change in the Greater Hobart region between 2001 and
> 2006
>
> (image source: \citep{statistics2006hobart})}
>
> \end{figure}
>
> Note the relative path in the second bit. Why would this cause a problem
> though?
>
> The relative path is not the problem.

The pdfpages package (which provides \includepdf) is used when inserting
external material. That package basically outputs directly into the PDF
output file with some transformations. It is usually used to import many
pages from other documents for appendices or similar tasks. It cannot be
used in a float, since that would mean LaTeX would need to change the
typesetting by itself to displace it where it ends up.

If you want to put a PDF figure in a float, simply use the "Insert:Graphics"
menu in the float as usual (like you would do for PNG or JPEG images) and
choose your PDF file.

Best regards,

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


Re: searching for double quotes?

2010-07-30 Thread stefano franchi
On Thu, Jul 29, 2010 at 7:11 PM, Richard Heck  wrote:

> On 07/29/2010 03:59 PM, stefano franchi wrote:
>
>> Dear all,
>>
>> I need to do an extensive search and replace that would change all
>> occurrences of ". to ." (rightdoublequotes + period -->
>> period+rightdoublequotes). Is there any way to do this in Lyx? 1.6 does not
>> seem to even see the double quotes (i.e. a find for " fails.) I tried the
>> advanced search of Lyx 2.alpha 5, but got no results there either. Is there
>> some special trick I I should be using?
>>
>>  This is precisely the sort of thing for which advanced search is supposed
> to work.
>
> I can get it to find a double quote, and to do the replacement. You might
> need to make sure you have the right double quote. Typing ". will get you a
> LEFT quote plus a period. So you have to type ", then type " again, to get a
> right quote, delete the first one, then type the period, and search for
> that. Same with the replacement.
>
> rh
>
> Aha! That was the trick. It works fine indeed

Thx,

S.





-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas A University Fax: (1) 979 845-0458
College Station, Texas, USA


question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.

Sincerely,
Dave Hopkins

% This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2
% see http://writer2latex.sourceforge.net for more info
\documentclass[letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue,
filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=David
{\textless}hopkins{\textgreater}, pdfsubject=, pdfkeywords=}
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{0.7874in}
\setlength\oddsidemargin{0.7874in}
\setlength\textheight{9.4251995in}
\setlength\textwidth{6.9251995in}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.0469in}
\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt
plus 
1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\makeatletter
\newcommand...@standard{
  \renewcomma...@oddhead{}
  \renewcomma...@evenhead{}
  \renewcomma...@oddfoot{}
  \renewcomma...@evenfoot{}
  \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\title{}
\author{David {\textless}hopkins{\textgreater}}
\date{2010-07-30}
\begin{document}
This is a simple one line document.
\end{document}


Re: problem while referencing in the text, appears as (?) in the pdf and dpi format

2010-07-30 Thread Richard Heck

On 07/30/2010 03:09 AM, soltrino wrote:

Hi, I can't solve this problem which is becoming quite frustrating.
I'm using JabRef to reference in my thesis, using Natlib and agsm (have
tried other formats too). I need to have the (author, year) format
in the document.
When I do it, looks fine in the LyX version, but when I convert it to PDF or
PDI files, it appears as (? ), although the reference list is perfect.
Can't find the reason, and would really appreciate any help.

   
Almost every time this comes up, the reason is the same: Unicode in the 
BibTeX file, usually in some author name that has been cut and pasted 
from the web. *BibTeX cannot handle Unicode.* Sometimes it will work, 
but only by sheer luck. Try opening the file in a text editor and then 
saving it in ISO-8859-1 format.


Richard



Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 10:25 AM, David Hopkins wrote:

If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


I'm not sure I understand the problem. I just imported the document into 
LyX (File>Import>LaTeX). It's attached, and it compiles just fine. All 
the preamble stuff just ends up at Document>Settings>LaTeX Preamble. 
Most of that is junk that can just be deleted anyway. Why writer2latex 
insists upon setting footskip, e.g., is pretty unclear.


rh


=


% This file was converted to LaTeX by Writer2LaTeX ver. 1.0.2
% see http://writer2latex.sourceforge.net for more info
\documentclass[letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue,
filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=David
{\textless}hopkins{\textgreater}, pdfsubject=, pdfkeywords=}
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{0.7874in}
\setlength\oddsidemargin{0.7874in}
\setlength\textheight{9.4251995in}
\setlength\textwidth{6.9251995in}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.0469in}
\renewcommand\footnoterule{\vspace*{-0.0071in}\setlength\leftskip{0pt}\setlength\rightskip{0pt
plus 
1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.0071in}}\vspace*{0.0398in}}
% Pages styles
\makeatletter
\newcommand...@standard{
   \renewcomma...@oddhead{}
   \renewcomma...@evenhead{}
   \renewcomma...@oddfoot{}
   \renewcomma...@evenfoot{}
   \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\title{}
\author{David {\textless}hopkins{\textgreater}}
\date{2010-07-30}
\begin{document}
This is a simple one line document.
\end{document}






t.lyx
Description: application/lyx


Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 10:58 AM, Richard Heck  wrote:
> On 07/30/2010 10:25 AM, David Hopkins wrote:
>>
>> If I export an OOo document using writer2latex.oxt, it outputs a tex
>> file which has all the necessary tex/latex commands to compile
>> directly. However, I'd like to then import that document into LyX.  My
>> issue is that I seem to need to create a layout that uses everthing
>> between the \documentclass and \begindocument in the tex file?  I've
>> tried reading notes on the wiki and searching this list but I have not
>> understood what I need to do.  For instance, if I have a very simple
>> document (just a line of text), writer2latex.oxt produces the
>> following, but I can't just import this into LyX. If someone can point
>> me at the correct tutorial on how to 'split out' this document so that
>> it can be used with LyX, I'd be very grateful. Note: My actual
>> document has \usepackage, \newcommand, etc but I'm assuming the
>> process for something simple like the following would apply for a more
>> complicated document as well.
>>
>>
> I'm not sure I understand the problem. I just imported the document into LyX
> (File>Import>LaTeX). It's attached, and it compiles just fine. All the
> preamble stuff just ends up at Document>Settings>LaTeX Preamble. Most of
> that is junk that can just be deleted anyway. Why writer2latex insists upon
> setting footskip, e.g., is pretty unclear.

Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.


Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 11:16 AM, David Hopkins wrote:

On Fri, Jul 30, 2010 at 10:58 AM, Richard Heck  wrote:
   

On 07/30/2010 10:25 AM, David Hopkins wrote:
 

If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


   

I'm not sure I understand the problem. I just imported the document into LyX
(File>Import>LaTeX). It's attached, and it compiles just fine. All the
preamble stuff just ends up at Document>Settings>LaTeX Preamble. Most of
that is junk that can just be deleted anyway. Why writer2latex insists upon
setting footskip, e.g., is pretty unclear.
 

Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.

   

What sort of failure do you get?

I have generally found that things like writer2latex produce really ugly 
LaTeX, and that is likely to confuse tex2lyx. Not to mention that your 
document will be littered with ERT. My experience was mostly with 
wp2latex (for WordPerfect), and I ended up writing a sed script that 
went through and cleaned up the file in various ways. If I had it to do 
again, I'd probably do it in Perl or Python, but you get the idea.


Richard




Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 11:22 AM, Richard Heck  wrote:
> On 07/30/2010 11:16 AM, David Hopkins wrote:
>>
>> On Fri, Jul 30, 2010 at 10:58 AM, Richard Heck  wrote:
>>
>>>
>>> On 07/30/2010 10:25 AM, David Hopkins wrote:
>>>

 If I export an OOo document using writer2latex.oxt, it outputs a tex
 file which has all the necessary tex/latex commands to compile
 directly. However, I'd like to then import that document into LyX.  My
 issue is that I seem to need to create a layout that uses everthing
 between the \documentclass and \begindocument in the tex file?  I've
 tried reading notes on the wiki and searching this list but I have not
 understood what I need to do.  For instance, if I have a very simple
 document (just a line of text), writer2latex.oxt produces the
 following, but I can't just import this into LyX. If someone can point
 me at the correct tutorial on how to 'split out' this document so that
 it can be used with LyX, I'd be very grateful. Note: My actual
 document has \usepackage, \newcommand, etc but I'm assuming the
 process for something simple like the following would apply for a more
 complicated document as well.



>>>
>>> I'm not sure I understand the problem. I just imported the document into
>>> LyX
>>> (File>Import>LaTeX). It's attached, and it compiles just fine. All the
>>> preamble stuff just ends up at Document>Settings>LaTeX Preamble. Most of
>>> that is junk that can just be deleted anyway. Why writer2latex insists
>>> upon
>>> setting footskip, e.g., is pretty unclear.
>>>
>>
>> Hmmm ... you're right.  I guess that is what happens when I try to
>> send the simplest example I can put together.  I'm not sure how to
>> send a better example e.g. writer2latex's user-manual.odt exported
>> using writer2latex's filter. It does not work if I simply import it
>> into LyX.
>>
>>
>
> What sort of failure do you get?
>
> I have generally found that things like writer2latex produce really ugly
> LaTeX, and that is likely to confuse tex2lyx. Not to mention that your
> document will be littered with ERT. My experience was mostly with wp2latex
> (for WordPerfect), and I ended up writing a sed script that went through and
> cleaned up the file in various ways. If I had it to do again, I'd probably
> do it in Perl or Python, but you get the idea.
>

There are two issues:

1) if I use writer2latex and get the 'ugly' LaTex. The first error is
a misplaced \noalign in a table which seems to cascade into a lot of
other errors.

2) the second concerns an in-house tex template that is used for
internal reports. I can use Texworks, open the file, add text,
equations, tables, and such without issues. I can also use WinEdt (on
a PC) with the tex file and it works as well.  However, importing this
tex file into LyX fails miserably.  LaTex preamble seems to capture
everything before the begin{document}, but LyX can't create the
document.  The first issue seems to be the use of

\def\PREPARETYPE {\MYTR} where MYTR is later defined via

\newcommand{\MYTR}{
  \documentclass{myarticle}
  \usepackage{boxhandler}
  \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
  \def\UserDL{mystencil.dls}%User Distribution List File
  \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
%appendix figures .OR. > 99 figures
  \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
%appendix figures .OR. > 99 figures
  \def\CaptionJustification{\raggedright}
  \usepackage[T1]{fontenc}
  \usepackage{times}
}

%insert another \newcommand for a different TYPE here ... not included
in this email

\PREPARETYPE%

I get errors about having multiple documentclass definitions.  If I
simply remove the documentclass, I still get errors about
\addtolength, and others.  boxhandler is found  as are the other LaTex
classes and styles that are referenced which were added to my local
texmf directory and texhash was run, at least LyX shows them under Tex
Info.  I'm trying to convert the template to work with LyX although it
does show up with a lot of TeX commands embedded in it. (lots of red
sections).

Sincerely,
Dave Hopkins


Re: question about overriding Lyx default document class

2010-07-30 Thread Richard Heck

On 07/30/2010 11:50 AM, David Hopkins wrote:


There are two issues:

1) if I use writer2latex and get the 'ugly' LaTex. The first error is
a misplaced \noalign in a table which seems to cascade into a lot of
other errors.

   

This is the kind of thing for which a perl script is helpful.


2) the second concerns an in-house tex template that is used for
internal reports. I can use Texworks, open the file, add text,
equations, tables, and such without issues. I can also use WinEdt (on
a PC) with the tex file and it works as well.  However, importing this
tex file into LyX fails miserably.  LaTex preamble seems to capture
everything before the begin{document}, but LyX can't create the
document.  The first issue seems to be the use of

\def\PREPARETYPE {\MYTR} where MYTR is later defined via

\newcommand{\MYTR}{
   \documentclass{myarticle}
   \usepackage{boxhandler}
   \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
   \def\UserDL{mystencil.dls}%User Distribution List File
   \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
%appendix figures .OR.>  99 figures
   \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
%appendix figures .OR.>  99 figures
   \def\CaptionJustification{\raggedright}
   \usepackage[T1]{fontenc}
   \usepackage{times}
}

%insert another \newcommand for a different TYPE here ... not included
in this email

\PREPARETYPE%

I get errors about having multiple documentclass definitions.

   
Because LyX adds \documentclass itself. To use this with LyX, you'll 
definitely need to disentangle some of this. The \usepackage stuff 
should really go in the preamble, BEFORE \documentclass is issued, and 
I'd think the \defs are more natural there, too.



If I simply remove the documentclass, I still get errors about
\addtolength, and others.

   
I'm not so sure why you see this, but, again, disentangling is surely 
the key.



I'm trying to convert the template to work with LyX although it
does show up with a lot of TeX commands embedded in it. (lots of red
sections).

   
This can probably be cleaned up some, but it has to be done manually. 
You may be able to write new layout styles, or character styles, to 
replace some of this.


Richard



Re: question about overriding Lyx default document class

2010-07-30 Thread David Hopkins
On Fri, Jul 30, 2010 at 11:56 AM, Richard Heck  wrote:
> On 07/30/2010 11:50 AM, David Hopkins wrote:
>>
>> There are two issues:
>>
>> 1) if I use writer2latex and get the 'ugly' LaTex. The first error is
>> a misplaced \noalign in a table which seems to cascade into a lot of
>> other errors.
>>
>>
>
> This is the kind of thing for which a perl script is helpful.
>
>> 2) the second concerns an in-house tex template that is used for
>> internal reports. I can use Texworks, open the file, add text,
>> equations, tables, and such without issues. I can also use WinEdt (on
>> a PC) with the tex file and it works as well.  However, importing this
>> tex file into LyX fails miserably.  LaTex preamble seems to capture
>> everything before the begin{document}, but LyX can't create the
>> document.  The first issue seems to be the use of
>>
>> \def\PREPARETYPE {\MYTR} where MYTR is later defined via
>>
>> \newcommand{\MYTR}{
>>   \documentclass{myarticle}
>>   \usepackage{boxhandler}
>>   \def\MandatoryDL{MY.dls}% Mandatory Distribution List File
>>   \def\UserDL{mystencil.dls}%User Distribution List File
>>   \addtolength{\cftfignumwidth}{0.0ex}%Extend width of lof label if using
>> %appendix figures .OR.>  99 figures
>>   \addtolength{\cfttabnumwidth}{0.0ex}%Extend width of lot label if using
>> %appendix figures .OR.>  99 figures
>>   \def\CaptionJustification{\raggedright}
>>   \usepackage[T1]{fontenc}
>>   \usepackage{times}
>> }
>>
>> %insert another \newcommand for a different TYPE here ... not included
>> in this email
>>
>> \PREPARETYPE%
>>
>> I get errors about having multiple documentclass definitions.
>>
>>
>
> Because LyX adds \documentclass itself. To use this with LyX, you'll
> definitely need to disentangle some of this. The \usepackage stuff should
> really go in the preamble, BEFORE \documentclass is issued, and I'd think
> the \defs are more natural there, too.
>
>> If I simply remove the documentclass, I still get errors about
>> \addtolength, and others.
>>
>>
>
> I'm not so sure why you see this, but, again, disentangling is surely the
> key.
>
>> I'm trying to convert the template to work with LyX although it
>> does show up with a lot of TeX commands embedded in it. (lots of red
>> sections).
>>
>>
>
> This can probably be cleaned up some, but it has to be done manually. You
> may be able to write new layout styles, or character styles, to replace some
> of this.
>

Thanks!  It looks like I have my work cut out for me if I want to get
this working with LyX. Nothing like jumping directly from casual user
to writing templates.

Sincerely,
Dave Hopkins


turn off blinking cursor?

2010-07-30 Thread Tom Goldring
Is there any way to get a non-blinking cursor? I find it most distracting.


Re: how can I disable automatic graphics EPS conversion (it is making output PDFs fail!)

2010-07-30 Thread Nicholas Tung
Hi all,

Can I provide more information? I partially corrected the bug with a
Python script (replacing the command line for the Latex -> PDF operation),
but it's not an ideal solution.

Thanks,
Nicholas — ntung at ntung —  https://ntung.com — CS major @ UC Berkeley

On Mon, Jul 26, 2010 at 12:29 PM, Nicholas Tung  wrote:

> Thanks. I am running OpenSuSE 11.3 final x86_64, and LyX 1.6.7.
>
> A test file is at
> http://cobol.cs.berkeley.edu/gatoatigrado/files/hw4.lyx.7z .
>
> thanks,
> Nicholas — ntung at ntung —  https://ntung.com — CS major @ UC Berkeley
>
> On Sun, Jul 25, 2010 at 6:03 AM, Uwe Stöhr  wrote:
> > Am 25.07.2010 07:20, schrieb Nicholas Tung:
> >
> >> Is there a way I can disable the automatic conversion of images
> >> (added via Insert>  Graphics) to the EPS format? xelatex does not work
> >> with the EPS images for whatever reason, and works fine with the
> >> source jpg or png images.
> >
> > This should not happen if your output format is PDF. DVI and PS can only
> > handle EPS images so that LyX must in this case convert all images to
> EPS.
> >
> > If the problems occurs for you also with PDF output, can you please send
> a
> > LyX example file? What is your OS and what your LyX version?
> >
> > regards Uwe
> >
>


Re: turn off blinking cursor?

2010-07-30 Thread Tennessee Carmel-Veilleux
On 30 July 2010 15:01, Tom Goldring  wrote:

> Is there any way to get a non-blinking cursor? I find it most distracting.
>

If you are under Windows: "Control Panel:Keyboard:Cursor Blink Rate" and set
to none. Under Linux, there are equivalents depending on whether you are
under KDE, GNOME or other windows manager.

Best regards,

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