Re: passing options to bibtopic

2011-06-22 Thread James C. Sutherland
On Wed, Jun 22, 2011 at 3:47 PM, Richard Heck  wrote:

> **
> On 06/22/2011 05:40 PM, James C. Sutherland wrote:
>
> When using the "sectioned bibliography" option, LyX automatically adds:
>   \usepackage[dot]{bibtopic}
> to the preamble.
>
>  Is there a way to add additional options to the bibtopic package, e.g.
>   \usepackage[dot,sectcntreset]{bibtopic}
>
>  You can add "sectcntreset" to the class options, under Document>Settings.
> It will be passed on.
>
> rh
>
>  Great!  I thought those were only passed as options to the document
class.  That is a nice functionality!
James


passing options to bibtopic

2011-06-22 Thread James C. Sutherland
When using the "sectioned bibliography" option, LyX automatically adds:
  \usepackage[dot]{bibtopic}
 to the preamble.

Is there a way to add additional options to the bibtopic package, e.g.
  \usepackage[dot,sectcntreset]{bibtopic}

James


A few suggestions for fixes in LyX 2.0

2011-04-13 Thread James C. Sutherland
I have very much enjoyed using LyX 2.0!  Thanks to the development team for
your efforts!

A few minor things that I have found recently regarding forward/reverse PDF
search on Mac with Skim:

In section 5.6 of "Additional.lyx" on the "Skim" directions for reverse
search, there is a problem with the status quo.  It should read:

"Skim->Preferences->Sync choose 'custom' preset and enter
command /Applications/LyX.app/Contents/MacOS/lyxeditor"


I have not had success in getting forward search to work with Skim on Mac
(using the default commands supplied with LyX for forward search with Skim).
 It opens a file, but does not position itself anywhere near the requested
line.  Can anyone duplicate this?

Best wishes,

James


Re: Poll for the default icon theme in LyX 2.0

2011-03-30 Thread James C. Sutherland
oxygen


Re: using "import" package within LyX?

2011-03-01 Thread James C. Sutherland
On Tue, Mar 1, 2011 at 12:41 AM, Jürgen Spitzmüller  wrote:

> Richard Heck wrote:
> > > 1. create a file "master.lyx" and edit the LaTeX preamble to include
> > > "\usepackage{import}"
> > > 2. Insert ERT "\subimport{subdir}{trythis.tex}"
> > > 3. create "trythis.tex" in subdir
> > > 4. Compile.
> > >
> > > This will fail.
> > >
> > > If you export your "master.lyx" file to a LaTeX file, it will work.
> > >
> > > Is there a way to get this working in LyX?
> >
> > I'm guessing that maybe import.sty needs more LaTeX runs than we do?
>
> You have to remember that the file is copied to and processed in a
> temporary
> directory. So if \subimport points to a relative path, this path will need
> to
> be relative from the temporary directory. Absolute paths should work,
> though.
>
> Jürgen
>

The problem with this is that relative directories are very useful when
sharing documents among various people, since the absolute path will be
broken the moment you move the directory structure to another machine.

Can't LyX sort through this issue in the same manner as it does with
graphics paths, i.e. by transforming relative paths to absolute paths when
the LaTeX is exported to the temporary directory?  So behind the scenes, LyX
could change:
  \subimport{ relative path }
to
  \import{ absolute path }
when it exports the temporary files...

James


using "import" package within LyX?

2011-02-28 Thread James C. Sutherland
I need to use the LaTeX import package to manage hierarchical directory
structures with graphics files distributed throughout the structure.
Furthermore, this is in a mixed LyX/LaTeX environment, where LyX gathers the
LaTeX files to create various "master" documents.

While the "import" package seems to work fine in straight LaTeX, it fails in
even the simplest LyX example, even when the LaTeX-exported file works fine.

Steps:

1. create a file "master.lyx" and edit the LaTeX preamble to include
"\usepackage{import}"
2. Insert ERT "\subimport{subdir}{trythis.tex}"
3. create "trythis.tex" in subdir
4. Compile.

This will fail.

If you export your "master.lyx" file to a LaTeX file, it will work.

Is there a way to get this working in LyX?

James


bug with brackets in subfloat?

2011-02-01 Thread James C. Sutherland
I may have discovered a bug, but it may be in LaTeX itself.

Steps to reproduce:

   1. Create a figure float
   2. create a sub-float within it.
   3. In the subfloat caption, enter (in math mode):  $[A]$, where $
   indicates math mode.
   4. Compile the file.

This results in a LaTeX error that has to due with the right-bracket.  If
you remove it, things compile just fine.  I have attached a very brief LyX
file (2.0beta3 format) that illustrates this problem.

Is there a known work-around for this problem?

Thanks,

James


subfloat_bug.lyx
Description: Binary data


extract all equations in a document?

2010-12-30 Thread James C. Sutherland
Fellow LyX enthusiasts,

Does anyone know if there is a way to extract all of the equations from a
document into a single file?  Along the same lines, is there a way to do
this for tables and figures as well?

James


Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-02 Thread James C. Sutherland
FWIW, I cannot duplicate this on Mac running LyX 1.6.7.
Also, step 6 creates "newfile1" for me, not "newfile2"
James


On Thu, Sep 2, 2010 at 11:01 AM, Todd Denniston <
todd.dennis...@tsb.cranrdte.navy.mil> wrote:

> OS: Centos 5.5 up to date (equivalent to RHEL 5.5)
> LyX: lyx 1.6.7 (lyx-1.6.7-1.el5 from the EPEL repository)
> Also affected lyx 1.6.6.1 from the EPEL repository
>
> simple method to cause crash:
> 1) fire up lyx
> 2) open a file
> 3) turn Outline mode on (get the check beside Document -> Outline), if it
> is not already on
> 4) exit lyx
> 5) fire up lyx
> 6) File -> New (creates newfile2 tab)
> 7) File -> New (creates newfile3 tab)
> 8) select the tab for the first new file (newfile2)
> 9) File -> Close
> 10) see
> -Begin message
> lyx: SIGSEGV signal caught
> Sorry, you have found a bug in LyX. Please read the bug-reporting
> instructions in Help->Introduction
> and send us a bug report, if necessary. Thanks !
> Bye.
> Aborted
> -End message
>
> So is this affecting current lyx 1.6.x on other distros?
>
> bugzilla's hate me right now, not their fault though, so I am sending to
> the list. :]
> --
> Todd Denniston
> Crane Division, Naval Surface Warfare Center (NSWC Crane)
> Harnessing the Power of Technology for the Warfighter
>


Re: Pure Promotion - LyX Talk at University of Utah

2010-08-18 Thread James C. Sutherland
Rob,

You didn't mention a DATE for the event...

By the way, if you are mentioning Mendeley, I know that they have
promotional event support (e.g. handouts, free pizza, etc).  It may be worth
contacting them if you are interested in pursuing that.

James


On Wed, Aug 18, 2010 at 2:45 PM, Rob Oakes  wrote:

>  Dear LyX Users,
>
> This is a pure piece of personal promotion, but ... here goes.
>
> Tonight, I will be giving a talk about LyX to the Salt Lake Linux Users
> Group.  The meeting will be at the University of Utah in the Warnock
> Engineering building.  (See below for directions.)
>
> It will start at just after 7:00 pm.  Free admission.
>
> Though it will focus heavily on LyX (I'm even going to demo a mostly
> functioning LyX-Outline), the talk will also deal with how to research,
> write, and publish using Linux.  For that reason, I'll also be highlighting
> several other programs (Zotero, BibTeX, Mendely, LaTeX, Inkscape and
> Scribus) and describing how they work together.
>
> If this interests you at all, and you are in the Salt Lake area, please
> come.  It would be wonderful to put faces to email addresses.
>
> /End Shameless Self Promotion
>
> Cheers,
>
> Rob
>
>
> Warnock Engineering Building
> 72 South Central Campus Drive
> Salt Lake City
>
> *From Downtown*
>
>1. *Drive East on 400 South:*  As you reach the foothills, 400 South
>will curve so that it's name changes to 500 South by the time you are on 
> top
>of the hill.  Continue driving East on 500 South until you come to the 1300
>East intersection.
>
>2. *Turn left on 1300 East:*  You will now be facing North.  Continue
>driving North on 1300 East until you come to the 100 South intersection.
>
>3. *Turn right on 100 South* (North Campus Drive):  You will now be
>facing East.  Continue driving East on 100 South.  As you go up the hill,
>100 South will abruptly turn to the left (North), at which point it's name
>changes to North Campus Drive.  Later, it will make a large sweeping turn 
> to
>the right (East).  Continue following North Camus Drive until you come to
>Central Campus Drive.
>
>4. *Turn right on Central Campus Drive:*  You will now be facing
>South.  Continue driving South on Central Campus Drive until you come to 
> the
>intersection with the street named Federal Way.
>
>5. *The Warnock Engineering Building* (WEB) is located off the South
>West corner of the intersection of Central Campus Drive and Federal Way.
>
>
> *Parking
> *
>
> There is ample parking in three lots adjacent to WEB.  Additionally, 7:00
> pm is unofficially considered "after hours" by the attendants  With that
> said, the University of Utah parking trolls are evil, aggressive, and can
> magically detect the presence of violators.
>
> (Really.  I have no other explanation for my most recent ticket.  I had to
> drop off an edit to a friend and was away from the car for five minutes.  By
> the time I got back to the car, the attendant was gone and the ticket was on
> my dash.  For this reason, you might consider the purchase of a parking day
> pass (Ithey're $5.00), even though it shouldn't be necessary.
>
>
>


Re: [ANNOUNCE] LyX 1.6.7 is released!

2010-07-15 Thread James C. Sutherland
Sorry all - false alarm.  For whatever reason, when I installed 1.6.7, the
default LyX switched to 2.0alpha4 on my system, and I did not notice this.

So it turns out that scrolling and dialogue boxes work fine in 1.6.7.
Again, sorry for the false alarm.

James



On Thu, Jul 15, 2010 at 11:46 AM, William Bray  wrote:

> I installed Lyx 1.6.7 on my mac running OSX 10.6.4 and encounter no
> problems with mouse scrolling. I have not experimented with Lyx 2.0 as yet.
>
> bill
>
> On Thu, Jul 15, 2010 at 11:09 AM, James C. Sutherland <
> james.sutherl...@utah.edu> wrote:
>
>> It appears that mouse scrolling is broken on the Mac for LyX 1.6.7.  This
>> same problem is present in the alpha versions of 2.0 on the Mac, and it
>> looks like it slipped through the cracks for this release.
>>
>> Any chance of a patch being released in the very near future to fix this
>> serious regression?
>>
>> James
>>
>>
>> On Thu, Jul 15, 2010 at 12:54 AM, Jürgen Spitzmüller wrote:
>>
>>> Public release of LyX version 1.6.7
>>> ===
>>>
>>> We are pleased to announce the release of LyX 1.6.7. This is the eighth
>>> maintenance release in the 1.6.x series.
>>>
>>> >From the list of fixes and improvements, we'd like to highlight
>>> particularly that this release irons out all known stability problems
>>> with
>>> Qt 4.6. LyX 1.6.7 is our first release that is supposed to run smoothly
>>> with Qt 4.6, so we urge all distributors who use that version to upgrade
>>> LyX as well.
>>>
>>> A detailed list of changes is appended below, remaining known problems
>>> are listed in the file RELEASE-NOTES.
>>>
>>> All users are encouraged to upgrade to this version.
>>>
>>> In case you are wondering what LyX is, here is what
>>> http://www.lyx.org/ has to say on the subject:
>>>
>>>   LyX is a document processor that encourages an approach to writing
>>>   based on the structure of your documents, not their appearance. It
>>>   is released under a Free Software/Open Source license.
>>>
>>>   LyX is for people that write and want their writing to look great,
>>>   right out of the box. No more endless tinkering with formatting
>>>   details, 'finger painting' font attributes or futzing around with
>>>   page boundaries. You just write. In the background, Prof. Knuth's
>>>   legendary TeX typesetting engine makes you look good.
>>>
>>>   On screen, LyX looks like any word processor; its printed output --
>>>   or richly cross-referenced PDF, just as readily produced -- looks
>>>   like nothing else. Gone are the days of industrially bland .docs,
>>>   all looking similarly not-quite-right, yet coming out unpredictably
>>>   different on different printer drivers. Gone are the crashes
>>>   'eating' your dissertation the evening before going to press.
>>>
>>>   LyX is stable and fully featured. It is a multi-platform, fully
>>>   internationalized application running natively on Unix/Linux, the
>>>   Macintosh and modern Windows platforms.
>>>
>>> You can download LyX 1.6.7 here (the .bz2 are compressed with bzip2,
>>> which yields smaller files):
>>>
>>>ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/lyx-1.6.7.tar.gz
>>>ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/lyx-1.6.7.tar.bz2
>>>ftp://ftp.devel.lyx.org/pub/lyx/stable/lyx-1.6.7.tar.gz
>>>ftp://ftp.devel.lyx.org/pub/lyx/stable/lyx-1.6.7.tar.bz2
>>>
>>> and it should propagate shortly to the following mirrors (which will
>>> also host the .bz2 versions):
>>>
>>>ftp://ftp.lip6.fr/pub/lyx/stable/1.6.x/lyx-1.6.7.tar.gz
>>>http://lyx.cybermirror.org/stable/1.6.x/lyx-1.6.7.tar.gz
>>>
>>> ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/1.6.x/lyx-1.6.7.tar.gz
>>>ftp://ftp.ntua.gr/pub/X11/LyX/stable/1.6.x/lyx-1.6.7.tar.gz
>>>
>>>
>>> http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/1.6.x/lyx-1.6.7.tar.gz
>>>http://lyx.mirror.fr/stable/1.6.x/lyx-1.6.7.tar.gz
>>>
>>> Prebuilt binaries (rpms for Linux distributions, Mac OS X and Windows
>>> installers) should soon be available at:
>>>
>>>ftp://ftp.lyx.org/pub/lyx/bin/1.6.7/
>>>
>>> If you already have the sources of the previous release (1.6.6.1), you
>>> may
>>> want to apply one of the following

Re: [ANNOUNCE] LyX 1.6.7 is released!

2010-07-15 Thread James C. Sutherland
On Thu, Jul 15, 2010 at 9:24 AM, BH  wrote:

> On Thu, Jul 15, 2010 at 11:12 AM, James C. Sutherland
>  wrote:
> > Another regression on Mac: some of the dialogue boxes (e.g. the spell
> check
> > dialogue box) is not rendered properly.  See the attached image.
> Resizing
> > it does not help.  This was also a problem that I noticed in 2.0 alpha on
> > the Mac.
>
> I believe the screenshot is from the LyX-2.0 alpha, where it is indeed
> a problem. However, are you sure there's a problem with 1.6.7? (I
> don't see it.)
>
> BH
>

Bennett,

The problem shows up for me when I undock the dialogue window.  When docked,
there is no problem.  And yes, this problem is in 1.6.7.

James


Re: [ANNOUNCE] LyX 1.6.7 is released!

2010-07-15 Thread James C. Sutherland
ol, if installed
>  (bug 6658). See http://wiki.lyx.org/Tools/LyXBlogger.
>
>
> * USER INTERFACE
>
> - Layout and template file for document class "article (IEEEtran)" were
>  updated for IEEEtran 1.7a.
>
> - Do not unnecessarily truncate the text of notes, footnotes and marginals
>  (bug 6672, part 1).
>
> - Tooltips are added to the outliner (bug 6672, part 2).
>
> - Add GUI support for big delimiters variants without 'l', 'm' or 'r'
>  endings and for '<' and '>' with all variants.
>
>
> * DOCUMENTATION AND LOCALIZATION
>
> - New Greek translation of the Intro manual.
>
> - Updated Basque, Czech, French, German, Greek, Indonesian, Italian,
>  Japanese and Slovak user interace localizations.
>
> - Major update of the Basque User's Guide, Tutorial and Intro.
>
> - Updated Japanese Additional LyX Features manual.
>
> - Updated French User's Guide, Additional LyX Features, Embedded Objects
>  and Math manual as well as the French LaTeX Configuration overview.
>
> - Updated LaTeX Configuration overview.
>
>
> * BUILD/INSTALLATION
>
> - On cygwin, install lyxprofile and lyxrc.dist by default. This avoids the
>  use of post-install scripts for this task.
>
>
> ** Bug fixes:
> *
>
> * DOCUMENT INPUT/OUTPUT
>
> - Fix a crash when reopening a hidden buffer in another window (bug 6791).
>
> - Fix an assertion when using an empty user macro taking an argument as
>  the base of script inset (bug 6739).
>
> - Fix reverse search when the document name contains a character that is
>  forbidden in LaTeX filenames (such as spaces).
>
> - Improve reverse search for documents containing index insets (bug 6649).
>
> - Honour physical paper size settings on output (bug 5247).
>
> - Fix compilation error in documents containing passages in Arabic and
>  Farsi (bug 6714).
>
> - Fix direction of references to section numbers in documents with
>  right-to-left-languages (bug 6711).
>
> - Safer creation of backup files on ext4 (part of bug 6587).
>
> - Simplify definition of \greektext (bug 6456 and 6458).
>
> - Don't overwrite child .tex documents on latex export (bug 2434).
>
> - Don't allow the creation multiple buffers with same name (bug 6645).
>
> - Don't automatically overwrite files on export from command line,
>  unless the newly introduced -f flag is used (bug 2762).
>
> - Allow to overwrite files without dialog popup on export from GUI
>  (bug 2844).
>
> - Correct the LaTeX output of framed boxes (bug 4776).
>
> - Correctly parse math formulas having a backslash as last character on a
>  line (bug 6756).
>
> - Only use the page margins if the option "Default margins" is not checked
>  (bug 6699).
>
> - Load the package "amsmath" when using cfrac (bug 6787).
>
> - Fix chapter and section label declaration in the Tufte book class.
>
> - Do not swallow an empty last line in matrix or eqnarray types of
>  environments (bug 6595).
>
> - Rerun Latex if Biblatex requests for it.
>
>
> * USER INTERFACE
>
> - Fix a warning and an incidental crash when using the outliner (bug
>  6680).
>
> - Fix an assertion when copying insets from a deleted range of text
>  deleted by a different author (bug 6744).
>
> - Correctly restore a dissolved macro inset on undo (bug 6678).
>
> - Fix cursor positioning in ERT insets with leading blanks (bug 6746).
>
> - Correctly handle empty custom line spacing in settings (bug 6649).
>
> - Correctly display color changes in math formulas (bug 4071).
>
> - Make sure that the '|'-character in headings does not confuse the TOC
>  list in navigate menu (bug 2009).
>
> - Do not report the word count by the spellchecker twice (bug 6254).
>
> - Fix the display of the "Address" environment in LyX when using the
>  elsart layout (bug 3930). (Note: elsart.layout is obsolete, please use
>  elsarticle.layout instead).
>
> - Clear an existing selection when using "Navigate Back" (bug 6686).
>
> - Correctly paint the button for external material when the "Preview"
>  attribute is not defined (bug 6677).
>
> - Box dialog: horizontal box alignment is only possible with a simple
>  frame and without an inner box
>
> - Box dialog: without an inner box the specification of the width is only
>  possible with a simple frame (bug 6721).
>
> - Use correct fonts for rendering the \underbar and \ensuremath macros in
>  math when they are nested in certain environments (bug 6729 and 6745).
>
> - Use display-formatted file name when asking about removing an emergency

Re: LyX 2.0 alpha 4 - Right-Click on Mac broken

2010-07-01 Thread James C. Sutherland
Hmm - it is working again.
Must be some gremlins on my machine.

James


On Thu, Jul 1, 2010 at 10:02 AM, James C. Sutherland <
james.sutherl...@utah.edu> wrote:

> I have found another bug in 2.0 alpha for Mac.  Right-clicking a text
> selection does not work properly.  No context menu comes up when
> right-clicking.  Can anyone else confirm?  If so I can file a bug report.
>
> By the way, I really like the new spell checking capabilities in LyX 2.0.
> I never succeeded in getting a fully functional spell checker with previous
> LyX versions, and this works out of the box!
>
> Thanks to all of the developers for their hard work - 2.0 will surely be a
> major step forward once the kinks are worked out!
>
> James
>


LyX 2.0 alpha 4 - Right-Click on Mac broken

2010-07-01 Thread James C. Sutherland
I have found another bug in 2.0 alpha for Mac.  Right-clicking a text
selection does not work properly.  No context menu comes up when
right-clicking.  Can anyone else confirm?  If so I can file a bug report.

By the way, I really like the new spell checking capabilities in LyX 2.0.  I
never succeeded in getting a fully functional spell checker with previous
LyX versions, and this works out of the box!

Thanks to all of the developers for their hard work - 2.0 will surely be a
major step forward once the kinks are worked out!

James


Re: LyX 2.0 GUI Issue on Mac

2010-06-29 Thread James C. Sutherland
On Tue, Jun 29, 2010 at 5:56 AM, Pavel Sanda  wrote:

> James C. Sutherland wrote:
> > I just started looking at the 2.0 alpha 4 version of LyX.
> >
> > This issue may already be well-known, but there are several parts of the
> GUI
> > that appear improperly on my Mac.  Thus far, I have seen these on:
> >
> >- The advanced find dialogue window
>
> i guess this just needs adding some layout to the dialog... please put it
> into
> bugzilla.
>

Done.  Ticket #6796


>
> >- The "Progress/Debug Messages" window
> >
> > I have attached screenshots illustrating the problem.  Note that the
> > "Progress" window does not have these problems when it is undocked.
>
> you don't get rid of it when you make the progress window vertically
> bigger?
>
> It doesn't fix the advanced find window, but it did fix the Progress
Messages window.


> > *Another issue*: LyX hangs and then crashes reliably if I do the
> following:
> >
> >1. Advanced Search - select "All Manuals"
> >2. In the find box, enter "PDF Command" and then click "Find"
> >3. After getting the "End of manuals reached..." dialogue box, click
> >"Yes"
> >
> > This hangs LyX 2.0 every time and results in a crash.
>
> i'm not able to reproduce the the crash, however the search runs for a
> quite
> long time (i take long time togo through math manual).  it could help if
> you
> provide backtrace from the crash. anyway put it into bugzilla too.
>
> pavel
>

Hmm. Now I cannot reproduce the crash either.  Yesterday I reproduced this
3-4 times in a row.  If I can get it to fail again I will open a ticket.

Thanks,

James


No Mouse scrolling in LyX 2.0 - Mac?

2010-06-28 Thread James C. Sutherland
I just discovered that mouse scrolling does not work in 2.0 alpha 4 on Mac.
Can anyone else confirm?

James


Re: inserting line numbers in lyx document

2010-02-22 Thread James C. Sutherland

On Feb 21, 2010, at 9:57 PM, Willis Gwenzi wrote:

> I am using Lyx 1.6.3 for my thesis. For ease of editing I would like to
> insert line numbers throughout the document. Any suggestions on how to do
> it? The enumerate function cannot do it because it inserts the number only
> at the sart of the section not on every line.
> 
> Willis
> 
Add
\usepackage{lineno}
\linenumbers
to your preamble.


Re: Good layout for note taking for class?

2010-02-11 Thread James C. Sutherland

On Feb 11, 2010, at 7:54 PM, Chris Rackauckas wrote:
> 
> What's a good layout for this? 
> I've looked through many but they were all a bit odd.

I don't know if there is any "great" layout for this, but one thing that will 
help a lot is if you create math macros (see the LyX user manual).  This can 
really speed up equation creation, particularly in situations where you have 
repetitive symbols...
> 
> Also, are there any themes for the typing 
> end like there is for something like Emacs and Notepad++? 
> I love doing my typing on a dark background with light text 
> and was just hoping I could configure it to look like my text editors.
> 
It isn't as configurable as emacs, but you can change color schemes easily from 
LyX -> Preferences -> Look & Feel -> Colors

Re: Editing equations as latex rather than graphically.

2010-02-01 Thread James C. Sutherland

On Feb 1, 2010, at 12:29 PM, Tim Hutt wrote:

> On 1 February 2010 19:22, rgheck  wrote:
>> Try View>Source if you want to *see* the LaTeX.
> 
> Ah yes, I did that in an equation and it is almost exactly what I want
> - just need to be able to edit the text. Without looking at the code,
> it doesn't look like you'd have to do much to make it editable. I
> might have a go some time.
> 
> Cheers.

Note that another option to see the LaTeX code is to copy the math environment 
into a text editor.  That will give you the raw LaTeX.

James

rotated multirow cells with line wrapping

2009-12-24 Thread James C. Sutherland
I would like to create a table that has a multirow cell in it.  However, I need 
to wrap the text and orient it vertically (rotated 90 degrees).

I have attached a LyX file and its associated PDF output for an example of what 
I am trying to do.  I cannot get the text to wrap properly.  Any tips?  
Essentially I need to set the height of the multicolumn cell and force text 
wrapping...

James



table_example.lyx
Description: Binary data


table_example.pdf
Description: Adobe PDF document


Re: Problem with table format

2009-12-04 Thread James C. Sutherland

On Dec 3, 2009, at 9:32 PM,   wrote:

> I have Lyx version 1.6.4.1 on a mac running os x version 10.5.8 and am a
> new user of the Lyx application.  I am having problems with the format of
> a simple table when I generate a pdf file.  Specifically, I get part of an
> extra cell attached to the bottom-left corner of the table I create.  The
> partial extra cell does not exist in the table I created in the Lyx
> document itself, it only exists in the pdf or dvi file I generate from it.
> Any assistance would be greatly appreciated in helping me determine what
> I am doing wrong.
> 
It might help if you post a simple example illustrating the problem.


Re: More equation breaking

2009-12-02 Thread James C . Sutherland
On Dec 2, 2009, at 5:56 AM, Manolo Martí nez wrote:

> is there anyway to break an equation in two lines in a place
> that is inside brackets? I mean something like this:
> 
> a·(b + c +
> d + e)
> 
Look at sectoin 18.1.3 in the math manual included with LyX.



Re: Float (figure) placed in the end of the document

2009-12-01 Thread James C. Sutherland

On Dec 1, 2009, at 7:15 AM, Erez Yerushalmi wrote:

> Hi All,
> 
> I did something, but I don't know what.
> 
> Now, all my figure-floats are placed at the end of the document.
> 
> Last thing I did was to added "start appendix here", and floats were pushed
> to the end.
> I thought this was the problem, so I deleted the appendix, but the floats
> are still at the end.
> 
> Can anyone point me in the right direction?
> 

You could look at Document Settings -> Float Placement to set defaults for 
figures.

Also see the Embedded Objects manual, section 3.5.

Re: CLS file not found anymore after updating LyX and MacTeX

2009-11-16 Thread James C. Sutherland

On Nov 16, 2009, at 9:06 AM, Dan Stark wrote:

> Dear All,
> 
> I updated to MacTeX 2009 and LyX 1.6.4.2 and now LyX cannot locate a CLS file 
> that I was using.  
> 
> I have it located in /usr/share/texmf/tex/latex currently.  
> 
> Is there any way to get LyX to see the CLS file again?
> 
Perhaps a silly question, but did you already try "reconfiguring" LyX  (LyX -> 
Reconfigure)?

Re: Insert \left. (xxxx) \right|

2009-11-12 Thread James C. Sutherland

On Nov 12, 2009, at 6:42 AM, Neal Becker wrote:

> I'm entering this expression:
> 
> \left.\frac{R_{s}}{2f_{s}}(1+\alpha)\right|_{f_{s=4R_{s}}}
> 
> which is a common way of saying (expression) evalated substituting (value).  
> Is there any direct way to enter this without resorting to ERT?
> 

1. You can enter it directly in math mode:  \left. foo \right_bar

2. You can use the math menus to insert many different \left \right 
combinations.  The icon that looks like [] with a blue box in the middle is the 
one you want.

Re: layout files & document frontmatter

2009-11-04 Thread James C. Sutherland


On Nov 4, 2009, at 3:35 PM, Paul A. Rubin wrote:


James C. Sutherland wrote:
On Nov 4, 2009, at 11:40 AM, <2450h...@gmail.com>  
<2450h...@gmail.com> wrote:
I am defining a layout where I need to have a few LaTeX  
definitions made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I  
am using.


In the LyX layout file, I tried the following:

InsetLayout "ReportNumber"
   LyxTypecustom
   LatexTypecommand
   LatexNameICSEnum
   CategoryFrontMatter
   LabelString"Publication Number"
   Alignleft
   Font
 ShapeSlanted
 Colorgreen
   EndFont
   LabelFont
 Colorgreen
 SizeSmall
   EndFont
End

This does correctly define the LaTeX command I need, but it is  
placed in the document body, not in the frontmatter (before \begin 
{document}) where I need it placed.



To be more clear, I meant "preamble" and not "frontmatter"
It doesn't look like there is a way to push information into the  
preamble from within the LyX document, unless you do it in Document- 
>Settings, right?


Customization Manual section 5.3.6: you can include

Preamble
 stuff that goes into the preamble
EndPreamble

to do what you want.

/Paul



I tried this:

InsetLayout "ReportNumber"
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString "Publication Number"
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
Preamble
  \ICSEnum{ICSEnum}
EndPreamble
End

This results in the \ICSEnum{...} being put in the preamble AND the  
body of the document.  How can I make it go ONLY in the preamble?




Re: layout files & document frontmatter

2009-11-04 Thread James C. Sutherland


On Nov 4, 2009, at 11:40 AM, <2450h...@gmail.com> <2450h...@gmail.com>  
wrote:


I am defining a layout where I need to have a few LaTeX definitions  
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I  
am using.


In the LyX layout file, I tried the following:

InsetLayout "ReportNumber"
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString "Publication Number"
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
End

This does correctly define the LaTeX command I need, but it is  
placed in the document body, not in the frontmatter (before \begin 
{document}) where I need it placed.



To be more clear, I meant "preamble" and not "frontmatter"

It doesn't look like there is a way to push information into the  
preamble from within the LyX document, unless you do it in Document- 
>Settings, right?


Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 11:23 AM, Manolo Martí nez wrote:

Thanks for the suggestion. Surprisingly, LaTeX does compile; with a  
bunch of errors in the .log, to be sure, but none of them fatal.


How can I find out what the compiler was doing when it stumbled upon  
the things that LyX finds offending? The part of the .log file that  
seems relevant is:


[168] [169]
! Missing $ inserted.

  $
l.370
   ?
! Extra }, or forgotten $.
\maththreesuperior ->{^3}
  l.370
   ?
! Missing $ inserted.

  $
l.370
   ?
! Missing } inserted.

  }
l.370
   ?

Is any of this indicative of which part of which file the compiler  
was working on?


Thanks again,
Manolo



Typically LaTeX will get confused, print out something that gives you  
a hint of where it went off a cliff, and then print a lot of messages  
like what you are seeing here.  So I would suggest looking for the  
first occurance of an error out of LaTeX and see if you can determine  
what part of the document it was processing when that error occurred.


Given that the error involves "$", I would bet that you either have an  
unterminated math command or you have tried to use a math command  
without enclosing it in the proper "$".  You might also look for mis- 
matched braces {}.




Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the  
master document's preamble and the strange behaviour recurs. Chapter  
5 compiles. Master document w/o Ch. 5 compiles, but Master document  
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary  
for compilation? LyX will use that preamble when you export it  
separately, but only the master preamble when you compile the whole  
thing.


Richard






I suggest that you export everything to LaTeX and try the file include  
there.  You might have more success in tracking down the problem that  
way.

Re: Help needed

2009-11-02 Thread James C. Sutherland


On Nov 2, 2009, at 7:39 AM, Ville Iiskola wrote:


Hi

Houston we have a problem. I writed a formula in the middle of the  
line with lyx  and i tried to put the number of the formula in the  
end of the line but i could not do that. How is that possible???


Ville


You will probably find it worth your time to read the LyX Math user  
manual (Help -> Math).  Specifically, look at section 19 for a  
discussion of numbering.


James


Re: LyX 1.6.4.1 and Snow Leopard

2009-10-29 Thread James C. Sutherland


On Oct 29, 2009, at 5:38 AM, Luca Carlon wrote:


Jan David Hauck  writes:



Referring to the recent discussion on LyX having problems on Snow  
Leopard, I
can state, that the problem solved itself somehow. In fact LyX  
crashed
"really" one time (I think when I accidentally wanted to paste a  
footnote
inside a footnote or something) but after that no more problems  
even with
autosave enabled (and on 3 minutes). I made System Update recently  
maybe

that fixed it. Anybody else resolved it?


I tried to turn off autosave but it seems there is a bug in turning  
it off
(reported). Then I tried to set to 100 minutes the autosave  
interval, so that I
could work without it somehow (seems to me there is a bug there too,  
I had to
restart some times before 100 minutes were actually placed between  
autosavings).
I still get the error message some times, but very rarely. Anyay, I  
suppose the

bug is still there.



The bug is still there.  As far as I know there is not yet a solid fix  
for this.  Bennet had been working on something, but I don't know if  
he has finalized a fix yet...


Re: Developing

2009-10-28 Thread James C. Sutherland


On Oct 28, 2009, at 6:35 AM, Samaneh Soleymoney wrote:


Hi
I need some information about the software architecture of Lyx.
I am going to develop a new open source word processor. But I need  
some basic information about how to start it. Like software structure.

I really appreciate you to give some information about that.
Thanks in advance


LyX is open source.  Download it and look for yourself.


Re: Float/figures width

2009-10-26 Thread James C. Sutherland

I suggest that you look at the user manual that comes with LyX:
Help -> User's Guide
Help -> Embedded Objects
All of your questions should be answered there.

On Oct 26, 2009, at 10:04 AM, ColMatrix wrote:



Hi there,

Just started dabbling with LaTex and Lyx. I understand how to format a
figure in LaTex, for example, to have my diagram the same width as the
column of text, I type something like:

\includegraphics[width=\columnwidth]{figure.jpg}

or to get it x% of the column width

\includegraphics[width=x\columnwidth]{figure.jpg}

But how do I do this in Lyx?

Also, I'd like to know how to get, for example, two separate figures  
side by

side, each 50% (or less) the width of the column of text. Would it be
possible for Lyx to label them Figure 1(a) and (b) automagically?

I tried searching for an answer, but didn't find anything I could
understand. I hope you can help!

Thanks in advance!
--
View this message in context: 
http://n2.nabble.com/Float-figures-width-tp3893045p3893045.html
Sent from the LyX - Users mailing list archive at Nabble.com.




Re: Setting the width of cells

2009-10-12 Thread James C. Sutherland
Ahh.  You are indeed correct.  I can verify that the table over-runs  
the page margins.  I suspect that this may be a LaTeX problem rather  
than a LyX problem, but the LaTeX gurus on the list would need to  
verify that.




On Oct 12, 2009, at 10:59 AM, Luca Carlon wrote:

Yes, the attached works. I attach the LyX file from which I took the  
latex source I gave you and the PDF is the result.


On Mon, Oct 12, 2009 at 6:22 PM, James C. Sutherland > wrote:


On Oct 12, 2009, at 10:12 AM, Luca Carlon wrote:

James C. Sutherland  writes:
I cannot duplicate this with 1.6.4.1 on Mac OSX 10.6.1.  What version
of LyX are you using?  What platform/OS are you on?  Can you post a
minimal example?

I don't know how to post an attachment here. I can post the Latex  
code. Is this

ok? I'm using LyX 1.6.4.1 under 10.6.1 as well.

Does the attached file work for you?  You may have a problem with  
your LaTeX installation?  Your LaTeX example works for me...



--
Luca Carlon
Computer Engineering Student
University of Padua (Italy)





Re: Setting the width of cells

2009-10-12 Thread James C. Sutherland


On Oct 12, 2009, at 10:12 AM, Luca Carlon wrote:


James C. Sutherland  writes:

I cannot duplicate this with 1.6.4.1 on Mac OSX 10.6.1.  What version
of LyX are you using?  What platform/OS are you on?  Can you post a
minimal example?


I don't know how to post an attachment here. I can post the Latex  
code. Is this

ok? I'm using LyX 1.6.4.1 under 10.6.1 as well.

Does the attached file work for you?  You may have a problem with your  
LaTeX installation?  Your LaTeX example works for me...




columns.lyx
Description: Binary data


columns.pdf
Description: Adobe PDF document


Re: Setting the width of cells

2009-10-12 Thread James C. Sutherland


On Oct 12, 2009, at 3:59 AM, Luca Carlon wrote:

Hi! I was trying to set a table so that it takes the entire column  
of my
document. I have 4 columns, so I selected each entire column and I  
set the width
as 20% of the text width. The problem is that, at the end, the table  
doesn't
take 100% of the text width, but it takes far more. Am I doing  
something wrong

or is this a bug?
Thanks!

I cannot duplicate this with 1.6.4.1 on Mac OSX 10.6.1.  What version  
of LyX are you using?  What platform/OS are you on?  Can you post a  
minimal example?


Re: Urgent: Latex error with version 1.6.4.1

2009-10-12 Thread James C. Sutherland


On Oct 12, 2009, at 4:24 AM, Nicola Molinari wrote:


Dear Sir or Madam,
I'm writing my thesis with LyX (version 1.6.4.1 for Mac OS) but I  
have a

problem when I try to compile the DVI file.
The error message is:

*LaTeX Error: \begin{itemize} on input line 313 ended by \end 
{document}.*

*
*
I have installed MacTex2008 and with other documents I can create  
DVI files.




Can you post the document?  If not, I suggest that you try to narrow  
down the document to the offending piece of text.  I often  
troubleshoot this by copying portions of the document into a new  
document until I find the bit that is broken.  If you find that,  
sometimes you can fix it by inspection (viewing latex source can  
occasionally prove helpful).  You can also try posting that smaller  
section as a LyX file to the list...


Re: Small poll about svn

2009-10-08 Thread James C. Sutherland


On Oct 8, 2009, at 9:50 AM, Pavel Sanda wrote:


hi,

i have small question for people using lyx + subversion. i'm  
thinking about
using some svn syntax from version >=1.5 for new lyx commands. how  
big is the
crowd of people still using svn 1.4 or in other words could you drop  
me

version number of subversion you use to have some ratio?

pavel


I am using SVN versions from 1.5.5 to 1.6.5.


Re: Making tables 100% text width

2009-10-07 Thread James C. Sutherland


On Oct 7, 2009, at 4:08 AM, Luca Carlon wrote:

Hi! Is it possible somehow to make the tables take the entire column  
of the
text? I have a sequence of tables and I would like to make them all  
the same
size, the entire column if possible. I see I can do this for  
figures, is is

possible to do this for tables as well?
Thanks!

You can right-click on a cell and then choose "Settings".  There you  
will find an option to specify the cell width.  You can set it as a  
percentage of the text column width.


Re: compile error

2009-10-06 Thread James C. Sutherland


On Oct 6, 2009, at 9:57 AM, Gerard Ranke wrote:


Hi,

When trying to compile lyx 1.6.4 on irix 6.5.30, I get this error  
message:


cc-1005 CC: ERROR File = ./boost/preprocessor/list/fold_left.hpp,  
Line = 37

 The source file "boost/preprocessor/list/detail/edg/fold_left.hpp" is
 unavailable.

 #include 

Indeed, there is no boost/preprocessor/list/detail/edg/ 
fold_left.hpp. What I do

have is:
boost/boost/preprocessor/list/fold_left.hpp
and
boost/boost/preprocessor/list/detail/fold_left.hpp
Any ideas how to solve this?
Sorry for asking basically the same question as a few years ago, but  
I got no
response then, so forgot about lyx for a while... Still would be  
nice to have it.

TIA,

gerard



I am not a LyX developer, but my first guess is that you have an  
incompatible (very old) version of boost.  What version of boost do  
you have installed?


Locating nomenclature items (outline)

2009-09-29 Thread James C. Sutherland
I really like the LyX outline feature that allows you to easily locate  
figures, equations, tables, etc. in your document.  However, there  
doesn't seem to be support for nomenclature entries.  Does anyone know  
if such a feature exists in LyX without resorting to a text editor?


Thanks,

James


Re: LyX 1.6.4.1 and Snow Leopard

2009-09-23 Thread James C. Sutherland




Do you confirm that by disabling autosave LyX 1.6.4.1 works all  
right on MAC OS X 10.6?


No.  It seems that even by disabling autosave, LyX still attempts  
to perform autosaving and the "crash" still occurs.  However, this  
is little more than an annoyance since the app doesn't actually  
crash and no work is lost.


I understand, but this sounds like an annoyance that I am not ready  
to accept. I will delay for a while the upgrade to OS X 10.6. If  
this problem is not solved in a few weeks, I am afraid I will have  
then  to choose between LyX and Snow Leopard. Personally, I have the  
impression that many mac os x users will consider this a serious  
annoyance. Let's wait and see ...


Can any of the developers find a way of completely disabling  
autosave? This would seem to me an acceptable compromise. I am ready  
to manually save my own work, but not to be notified at random times  
that something is going wrong, even if (almost) everything is going  
all right ...


I should also point out that the "crash" only happens when you have  
unsaved work for a period of time.  If you are constantly saving your  
document as you type, then you will rarely experience this annoyance.


Re: LyX 1.6.4.1 and Snow Leopard

2009-09-23 Thread James C. Sutherland


On Sep 23, 2009, at 8:50 AM, Stefano Baroni wrote:

Hi All. It seems that having a version of LyX working poperly on OS  
X 10.6 may require some time.


Do you confirm that the only feature not working properly is autosave?


That has been my observation.


Do you confirm that by disabling autosave LyX 1.6.4.1 works all  
right on MAC OS X 10.6?


No.  It seems that even by disabling autosave, LyX still attempts to  
perform autosaving and the "crash" still occurs.  However, this is  
little more than an annoyance since the app doesn't actually crash and  
no work is lost.


If so, would you please remind us how to disable autosave?

LyX -> Preferences -> Look & Feel -> User Interface -> "Backup  
Documents every XXX Minutes"


Re: Forced floats to stay in their subsection in my "Results section"?

2009-09-23 Thread James C. Sutherland


On Sep 23, 2009, at 6:42 AM, NanoPete wrote:



Hello, I'm writing my masterthesis in lyx and are having problems in  
my

results section.
In this section I have a lot of figures (float figures) and I really  
want
them to stay within their subsection here eventhough there's not  
much text

compared to amount of floats.

Is there any good solution to handle floats in such a results
section/chapter?
I've tried setting floats to "here definitely" but those little  
bandits

still just jump aheard into the next section...


You could also try
 Insert -> Formatting -> Clear Page
This will force all remaining floats to be placed before the  
subsequent text.


Re: Help on 1.5.6 - 1.6.4 windows upgrade please

2009-09-22 Thread James C. Sutherland


On Sep 22, 2009, at 1:13 PM, Richard Strauss wrote:

I have an old working version of Lyx 1.5.6 (LyX-156-3-25- 
AltInstaller-Complete.exe) on windows XP. I now want to upgrade to  
the latest version. Which release do you recommend, without having  
to compile lyx manully.


Thanks. Richard 


The most recent release is 1.6.4 (or 1.6.4.1 which is the same for the  
windows platform).  You should update to one of those two.


Re: LyX 1.6.4.1 and Snow Leopard

2009-09-22 Thread James C. Sutherland


On Sep 22, 2009, at 2:14 AM, Jean-Marc Lasgouttes wrote:


Julio Rojas  writes:


Dear all, does LyX 1.6.4.1 solve the problem with Snow Leopard?


No :(


But fortunately the problem is only an annoyance.  LyX "crashes" (you  
get an OSX crash warning), but the app remains functional and I have  
not experienced any loss of work.  So I would personally not shy away  
from the OS upgrade due to LyX fears.


Now if you are a software developer, that is another story.  The 32  
bit to 64 bit transition can be a bit painful!


James


Re: text size in mac version

2009-09-17 Thread James C. Sutherland


On Sep 16, 2009, at 2:25 AM, Dave Garbutt wrote:


HI,

I have an annoying & frustrating problem-

On the Mac OS - X version I was looking for a shortcut and typed crtl 
+-
several times (don't ask me why, I was in  lemming like panic at the  
time)


this shortcut I cannot find in the Lyx doc or the OS X doc at
http://support.apple.com/kb/HT1343

The effect is to shrink the text size in the document view (but not in
typeset output)
ctrl++ does not reverse it. Every document I open in Lyx is now  
unreadable..


I haven't stumbled on that, but if you hold down the command key and  
use the mouse scroll wheel you can change the font size.  That may  
help you get it back to norma.


Re: Typing lag in Lyx 1.6.4.1, OS X 10.6.0

2009-09-16 Thread James C. Sutherland


On Sep 16, 2009, at 3:18 AM, Josh Whitney wrote:

I'm currently working on an early 2008 Macbook with 4 gb of RAM.  I  
am running OS X 10.6.0 and Lyx 1.6.4.1.  I've been writing some very  
long documents in Lyx and once they are more than a few pages long  
typing becomes excruciatingly slow.  That is, I type and the  
characters appearing on the screen lag the keystrokes by several  
seconds.  I was also having the same issue both with earlier  
versions of Lyx and with OS X 10.5.*, though it seemed a bit more  
mild with Leopard.


I do not have the view source window open.  I started typing the  
document with  instant preview off for math but after reading some  
of the questions on the mailing list I've turned instant preview  
on.  The typing remains very slow and also the preview for math  
doesn't seem to want to work (i.e., all math remains text instead of  
previewed as typeset).


I've read through the mailing list to see if I could find a solution  
to this problem but nothing seemed to work.  Any help would be  
greatly appreciated.


FWIW, I am running LyX 1.6.4.1 on 10.6 and haven't seen any of these  
problems (only the pseudo-crash that has been mentioned previously).   
So this is likely not a universal problem, but perhaps a problem  
related to your system in particular?


Fwd: "eqref" not working properly

2009-09-12 Thread James C. Sutherland



Begin forwarded message:


From: Stefano Baroni 
Date: September 12, 2009 8:27:06 AM MDT
To: James C.Sutherland 
Subject: Re: "eqref" not working properly


On Sep 12, 2009, at 3:47 PM, James C. Sutherland wrote:



On Sep 12, 2009, at 7:06 AM, Uwe Stöhr wrote:


Stefano Baroni schrieb:

Hi! I am editing a file imported from raw LaTeX. After adding  
some text, I started inserting cross-references to equations  
selecting the "()" style. Ti my surprise, the  
subsequent LaTeX compilation gives me errors because it cannot  
find a proper definition of the "\eqref{}" command.


Then AMSTeX is not properly installed. AMS is part of every LaTeX  
distribution so it seems to be a problem with your LaTeX  
distribution.




It is also possible that you have un-checked the "Use AMS math  
package automatically" in Document->Settings->Math Options.


bravo! you got it. Although I did not (consciously) uncheck  
anything. that option must have gone unchecked automaticaly upon  
importing a Latex file.


As a general remark, I really love LyX, but if I can make friendly  
criticism, I find its user interface a bit clumsy, especially in  
what concerns the setting of different options that is often hidden  
where you ("I" !!!) would not expect it.


thanks again for the great piece of software and for willing-to-help  
community of users


Stefano




Re: "eqref" not working properly

2009-09-12 Thread James C. Sutherland


On Sep 12, 2009, at 7:06 AM, Uwe Stöhr wrote:


Stefano Baroni schrieb:

Hi! I am editing a file imported from raw LaTeX. After adding some  
text, I started inserting cross-references to equations selecting  
the "()" style. Ti my surprise, the subsequent LaTeX  
compilation gives me errors because it cannot find a proper  
definition of the "\eqref{}" command.


Then AMSTeX is not properly installed. AMS is part of every LaTeX  
distribution so it seems to be a problem with your LaTeX distribution.




It is also possible that you have un-checked the "Use AMS math package  
automatically" in Document->Settings->Math Options.

Re: Floating Windows for Editing

2009-09-08 Thread James C. Sutherland


On Sep 8, 2009, at 9:14 AM, Rob wrote:


Hi,

I want to be able to view the open files that I'm editing as  
floating windows.
This would be like having multiple files open for editing and being  
able to drag
them around for optimal viewing (like in Excel, UltraEdit, WinEdit  
and a number

of other text editors).  Can I do this?


File -> New Window

or if you want this to be the default behavior,
Preferences -> Look & Feel -> User Interface
then uncheck the "Open documents in tabs" box.



Also, I want to be able to make something like margins in the text  
that I'm
editing so that the text lines don't flow to the width of the LyX  
window.  This
is for editing only, not for the output.  I've read a number of  
requests for

this option in the archive--is there an option or hack for doing this?

Really the only way to do this is to resize the window.  Many of us  
actually really like this feature of LyX - that it doesn't try to  
impose a particular layout (e.g. margins) on you when editing.




Re: Text on right, images on left

2009-08-30 Thread James C. Sutherland


On Aug 30, 2009, at 12:19 PM, L Duperval wrote:


Hi,

I want to create a booklet which has text on the right-hand page,  
while

the left-hand page contains a graph, an image, a table or something
similar.

I suppose I can do this manually by inserting page breaks all over  
but is

there a package that controls such flow automatically?


My personal feeling is that when you need explicit control over  
layout, LaTeX (LyX) is not the right tool.  Something like Apple's  
Pages would be much better suited to the task.


You could try text-wrap floats, but that will probably not give you  
the level of control that you are looking for.


Re: Extra spacing in tables

2009-08-27 Thread James C. Sutherland


On Aug 27, 2009, at 10:59 AM, Uwe Stöhr wrote:


John Coppens schrieb:


I have a table with some math in it. The matrices were touching the
borders,


Have you already had a look at the EmbeddedObjects manual that you  
find in LyX's Help menu? There you find nearly every possible trick  
for tables.


regards Uwe


I have also seen the math-spacing problem in tables, and have tried  
increasing the spacing.  What I usually see is that this creates  
"breaks" in the table borders that are very annoying.

Re: Did something about indexes change between 1.5.x and 1.6.x?

2009-08-26 Thread James C. Sutherland


So, before I devote 4 hours to troubleshooting, does anyone have any
suggestions on what to try either to resolve the problem or how to  
narrow it

down?


4 Hours!?  I thought you were the troubleshooting guru!
(Sorry - couldn't resist)
;-)



Re: text wrap figure misbehaving

2009-08-25 Thread James C. Sutherland


On Aug 22, 2009, at 8:50 AM, James C. Sutherland wrote:

I have a text wrap figure that is inserted at the beginning of a  
paragraph.  After the paragraph, I have an enum environment with  
three items.  These span a page break.  The second item correctly  
wraps around the figure, but the third item is confused.


An example output that illustrates the problem, with some comments  
in the output, is available at

http://drop.io/zkjqlmd
I couldn't attach it because the LyX mail server rejected the  
attachment...


Any suggestions to fix this problem?  Space is at a premium here, so  
I would prefer not to have the figure as a regular float.


James


FWIW, this seems to be due to selecting the "Allow Floating" option in  
the wrap figure environment.  Any ideas of how to allow floating but  
not have the text-wrapping broken?


Re: \renewcommand conflicts with ams?

2009-08-22 Thread James C. Sutherland


On Aug 22, 2009, at 11:39 AM, rgheck wrote:


On 08/22/2009 12:12 PM, James C. Sutherland wrote:

I am trying to alter the format of section headings. [snip]

Perhaps this is one reason to use the interface provided by the  
titlesec package to do this.


rh

Thanks for the tip!  That is a really nice package - I was not aware  
of it previously!  It does solve the AMS package conflict I had earlier.


Re: Equation

2009-08-22 Thread James C. Sutherland


On Aug 22, 2009, at 9:36 AM, Alexis Salcedo wrote:


Hello.
How do I align the equation, with item 1?
See attached file.
Thanks


Can you be more specific?  What do you men by "align?"


\renewcommand conflicts with ams?

2009-08-22 Thread James C. Sutherland
I am trying to alter the format of section headings.  I have something  
like



\renewcommand{\subsection}{ %
  \...@startsection{subsection}{2}{0pt} %
  {1.1ex plus 2.0ex minus 1ex}%
  {1.2ex plus 2.0ex minus 1ex} %
  {\bfseries} %
}


However, if I the AMS math package gets included by LyX, then any  
subsection* constructs break.  Is this a known conflict with AMS?


A simple recipe to reproduce:

1. add the above "renewcommand" to the document LaTeX preamble.
2. create a subsection and subsection* environment
3. In document settings -> math options, disable AMS.

This compiles fine.

Now replace step 3 above by enabling AMS.  Now the subsection*  
environments are broken.


I have attached a simple LyX file that can serve as a basis for  
testing.  It is currently configured to break.


newfile2.lyx
Description: Binary data




text wrap figure misbehaving

2009-08-22 Thread James C. Sutherland
I have a text wrap figure that is inserted at the beginning of a  
paragraph.  After the paragraph, I have an enum environment with three  
items.  These span a page break.  The second item correctly wraps  
around the figure, but the third item is confused.


An example output that illustrates the problem, with some comments in  
the output, is available at

http://drop.io/zkjqlmd
I couldn't attach it because the LyX mail server rejected the  
attachment...


Any suggestions to fix this problem?  Space is at a premium here, so I  
would prefer not to have the figure as a regular float.


James


Re: Problem with table

2009-08-14 Thread James C. Sutherland


On Aug 14, 2009, at 4:37 AM, Matthias Bußjäger wrote:


Hello,

I have a problem to build a table with different rows in the columns.
For Example:
I have 4 rows and 2 columns.
How is it possible to merge the 4 rows in the first column? Or  
something
else to get the text in the first column centered vertically? The  
rows in
the second column should be untouched and with lines because I need  
the

partitioning there.

The only way I know to manage this problem works with an odd number  
of rows:
For example if I have 3 rows, I just write in the second row and  
delete the

lines over and below it. So the text in the first column is centered
vertically. Of course this doesn't work with an even number of rows :(

Any hints to solve this problem? (I bet that it's simple, but I don't
understand :) )


I suggest that you read the user manual.  Specifically, the "Embedded  
Objects" manual, which describes how to do what you are asking.

Re: e.g. and other dots that do not end sentences

2009-08-05 Thread James C. Sutherland


On Aug 5, 2009, at 7:46 AM, Niko Schwarz wrote:


How do you type things like e.g. in lyx? If you do not take special
care, it is translated to latex merely as "e.g." and therefore creates
a giant space after the abbreviation. How to avoid that?


Insert -> Formatting -> Inter-Word Space

or you can insert a "protected" space that will prevent line breaks on  
that space if you want.  You can right-click on the space and change  
its type.


Re: AW: Mac: Refresh of pdf-view?

2009-07-09 Thread James C. Sutherland


On Jul 9, 2009, at 2:23 PM, Jannick Asmus wrote:

"James C. Sutherland"  schrieb im  
Newsbeitrag news:37a1d2d4-5503-40e4-9aac-8067212df...@utah.edu...
You may want to try Skim as a pdf reader (http://skim-app.sourceforge.net 
 ).  I have used it for quite a while and am very pleased.  It  
will  allow auto reloading as well.


To hook it in, go to LyX->Preferences->File Formats and then in the  
drop-down box choose PDF and then in the  "Viewer" box enter:

open -a Skim.app $$i


Thanks !!! The PDF-preview feature works with the Mac-PDF-Previewer  
as described in my latest posting, but the dvi-preview does not seem  
to be very comfortable. I was a bit puzzled since on my Windows  
machine the dvi's are opened by yap shipped with MikTeX, but on the  
iMac the dvi's have the extension .pdf, but are opened by the  
TeXShop-Previewer.


J.

Mac's Preview.app likes to take over for DVI and EPS.  If you install  
a dvi previewer like xdvi you can preview DVI directly without Preview  
trying to take over.


In that case, tell LyX to open the dvi files with xdvi following  
analogous instructions as above, but put "xdvi" in the "Viewer" box.


The easiest way to get xdvi may be through Fink if you are on a mac.   
Or build and install from source...


Re: Mac: Refresh of pdf-view?

2009-07-09 Thread James C. Sutherland
You may want to try Skim as a pdf reader (http://skim-app.sourceforge.net 
).  I have used it for quite a while and am very pleased.  It will  
allow auto reloading as well.


To hook it in, go to LyX->Preferences->File Formats and then in the  
drop-down box choose PDF and then in the  "Viewer" box enter:

open -a Skim.app $$i


On Jul 9, 2009, at 12:58 PM, Jannick Asmus wrote:


Hi,

hitting the dvi or pdf button a second time the TexShop previewer does
not refresh. I need to close the pdf window and hit the dvi button
again. How can this be amended? Is this because I have some weird
configuration?

Details of the machine are:
- Mac OS X 10.5
- TexShop 2.26
- LyX 1.6.3

Thanks !!!

Best wishes,
J.







Re: scrolling=shutdown

2009-07-09 Thread James C. Sutherland

No problems on a Mac running LyX 1.6.3.

On Jul 9, 2009, at 8:36 AM, Marcus Broberg wrote:




2009/7/9 rgheck 
Marcus Broberg wrote:
hi
I have a problem. When a scroll(arrow down) trough a document lyx  
exits. Is

this a know issue?


It probably has something specific to do with some document you are  
using. If you could post it, or better a simplified version, with  
instructions for causing the crash, then we might be able to fix it.


You can also check the trac buglist and see if it's been reported,  
or even better fixed.


rh

I add a copy of the file. The file is i swedish and english, but  
that shouldnt matter









Re: How do I change the citation from [1,2,3,4] to [1-4]?

2009-07-06 Thread James C. Sutherland


On Jul 6, 2009, at 10:55 AM, Randy Tobe wrote:


I have a few parts in my document in Lyx where I cite multiple sources
together and they are all separated by a comma instead of listing  
the first

and last with a dash in between.  My references are in JabRef and my
citation style is ieeetr. Is there another citation style that would  
fix

this problem?



Try adding
\usepackage{cite}
to your preamble.

Also note that this conflicts with the hyperref package, so you will  
need to disable that - see "PDF Properties" in document settings.


copying figures - absolute vs. relative paths

2009-06-30 Thread James C. Sutherland
I have observed a somewhat annoying feature of LyX: when I cut/paste a  
figure (moving it around within a document, for example), the relative  
path of the figure changes to an absolute path.


I can see the merits of this when copying between documents so that  
the figure doesn't get "lost" due to relative paths, but it is  
somewhat inconvenient otherwise.  The biggest problem is that if I  
move the document to another directory then everything can break.


Is there a way to force LyX to keep relative paths when copying figures?

James


Re: new paragraph after enum or list environment

2009-06-26 Thread James C. Sutherland


On Mar 27, 2009, at 4:43 PM, rgheck wrote:


James C. Sutherland wrote:
Does anyone know how to tell LyX to make a new paragraph after a  
list? For example, if I have new paragraphs indented, then one  
immediately following an enum or list will not be indented. How to  
I change that?



Have you tried to put the Separator environment in between?

rh



Is the Separator environment available in the article (Elsevier)  
document class?  It seems that it should be universally available in  
all document classes.  Is there a simple way of getting it into a class?


James


Re: help with lyx

2009-06-15 Thread James C. Sutherland


On Jun 15, 2009, at 6:09 AM, esrone noel wrote:


Good day,
Is there a way to write your name in the background using lyx or an  
option to write your name on every page
without manually inserting your name on every page..I am trying  
to do

this to prevent plagiarism of my documentPlease help


Try using the fancy headers.  Document -> Settings -> Page Layout ->  
Headings style -> fancy


Then add to your preamble:
\lhead{left header text}
\rhead{right header text}

See also the docs on the fancyhdr package:
http://tug.ctan.org/get/macros/latex/contrib/fancyhdr/fancyhdr.pdf


Re: how to skip to next page

2009-06-12 Thread James C. Sutherland


On Jun 12, 2009, at 8:58 AM, Jason Lillywhite wrote:


I have not searched for this answer very well online because I'm not
sure exactly how to ask it in a few words. My problem is simple: I
have a cover page with title and abstract and I want to skip to the
next page to start my Introduction. How do you skip to the next page?
This would be the equivelent of doing Ctrl-Enter in MS-Word.


Insert -> Formatting -> New Page


Re: Inserting C++ code

2009-06-08 Thread James C. Sutherland


On Jun 7, 2009, at 5:55 AM, Sajjad wrote:


Hello forum,

I have installed LyX 2.6.1 and trying to insert C++ code. I am  
trying as

follows:

1. Inserted a float algorithm .
2. Pasted the code snippet inside that


But the code is not well formatted

Any hint on how to keep the format ?




I have noticed that when I copy code from the emacs editor, line  
breaks are not respected when pasted into LyX.  However, if I copy  
code from XCode (Mac) then the problem goes away.  While I don't know  
why this is the case, my suggestion to you is to try to open your C++  
file in a different editor and copy it into LyX.


James


Re: Unavailable document classes

2009-06-05 Thread James C. Sutherland


On Jun 5, 2009, at 3:08 AM, Walter van Holst wrote:


Hello,

I'm a somewhat infrequent user of LyX on Mac OS X. About every other  
update (my current version is 1.6.1), most of the document classes  
become unavailable. That is LyX can edit documents in them, but not  
produce output.


How do I prevent this from happening? This is an exceedingly  
annoying 'feature' of LyX.


Regards,

Walter


This sounds like a problem with your LaTeX installation more than your  
LyX installation.  You might try reinstalling/updating both.


FYI, I use LyX routinely on Mac and have found it to be very stable  
and reliable...


color package options

2009-06-04 Thread James C. Sutherland

It appears that
\usepackage{color}
is automatically placed in the preamble when a program listing with  
coloring options is used.  However, what if I want

\usepackage[usenames]{color}
instead?  Is there a way to do this?  If I put this directly in the  
preamble then I get a LaTeX compile failure due to clashing uses of  
the "color" package


James


Re: adjusting distance before and after figures or tables

2009-06-03 Thread James C. Sutherland


On Jun 3, 2009, at 1:41 PM, Semih Özmen wrote:


Hi,

I couldnot find any setting to adjust distance before and after the  
figures and tables. Can it be defined in latex class?

if so, what parameter should I search for?

Thanks

Semih


You are keeping the list busy today.

Try adding something like the following to the preamble:

% float spacing
\setlength{\textfloatsep}{5mm}
\setlength{\floatsep}{1cm}
\setlength{\abovecaptionskip}{2mm}
\setlength{\belowcaptionskip}{3mm}

A google search could also prove fruitful here.
I seem to remember that you mentioned earlier that you were working on  
a dissertation.  Your university's style file should define float  
separations.




Re: fast label formating

2009-06-03 Thread James C. Sutherland


On Jun 3, 2009, at 11:43 AM, Semih Özmen wrote:


Hi,

I almost finished my thesis and now I recognized that all eqaution  
cross-references are shown as 1.23

I want them all be written as Eq. 1.23 or any other prefix.
Are there any fast way to do this?

thanks in advance..

Semih


This is easily done.

1.  Open the LyX file in a text editor like vim or emacs
2.  Replace instances of "LatexCommand ref" with "LatexCommand  
eqref".  Be sure that you only do this for equation references, not  
for other references (like figures, sections, tables, etc.)

3.  Save the file in your text editor.
4.  Re-open in LyX.

NOTE: you should definitely make a backup of your LyX file before you  
do this, just in case you corrupt something...

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland



Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?





In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose "Add Line to Left/Right"
4. Repeat step 3 for any number of horizontal/vertical lines.

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland


On Jun 2, 2009, at 11:27 AM, Semih Özmen wrote:


Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?




In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose "Add Line to Left/Right"
4. Repeat step 3 for any number of horizontal/vertical lines.

Re: I inserted a figure float on chapter two, but after generated the output it goes to chapter 1

2009-05-28 Thread James C. Sutherland


On May 28, 2009, at 2:11 PM, Marcelo Reis wrote:


Marcelo Reis wrote:
Guys, Maybe I'm to stupid, but is there any trick to insert a  
figure in Lyx?!?!


In editing mode I inserted it on chapter two of my document and it  
is perfect.
After I create the PDF ou DVI file the image automatically goes to  
the Chapter one?!?

Any ideas?

Marcelo


LOL, I ask and I answer.
Discovered(at least I think) there is an option where you chose
*Advanced Placement Options - Here Definitely.

Alternatively, insert a "clear page"  (Insert -> Formatting -> Clear  
Page).  This will dump all remaining floats to the output.  This is  
always a good idea prior to starting a new chapter.


James


Re: align equations

2009-05-13 Thread James C. Sutherland


On May 13, 2009, at 12:08 AM, Guenter Milde wrote:


On 2009-05-12, Paul A. Rubin wrote:

...

4. In the fourth column of each row, type \textrm followed by a  
space,
which will switch you to roman font, then type the explanation.   
You can
also use \textup (upright) in place of \textrm, in case you're not  
using

roman as the base font family.


The LyX-way of declaring text-in-math is pressing Ctrl-M (or typing  
\text).

This will use the current text font.

Günter

I have found \mathrm or \textrm to be a much better option since using  
Ctrl-M in math mode doesn't seem to retain the proper font size.  For  
example, in a super/subscript the text appears much too large if you  
use Ctrl-M.

Re: Can language support be disabled?

2009-05-12 Thread James C. Sutherland


On May 12, 2009, at 2:50 PM, Uwe Stöhr wrote:


James C. Sutherland schrieb:

Is there a way of disabling "Language Support" in LyX?  Every time  
that I paste text between documents I get blue underlining of the  
text and have to "reset" the language to get rid of it.


Then the document language of both LyX documents is not the same. So  
have a look at the document settings and correct the language there  
(and save the right one as the default language that is used for new  
documents).


regards Uwe


I deduced this.  However, I really don't want to have any notion of  
the "language" my documents are written in.  So to repeat my original  
question, can I just turn off all of this language business altogether?

Re: Can language support be disabled?

2009-05-12 Thread James C. Sutherland


On May 12, 2009, at 2:08 PM, Vincent van Ravesteijn wrote:


James C. Sutherland schreef:
Is there a way of disabling "Language Support" in LyX?  Every time  
that I paste text between documents I get blue underlining of the  
text and have to "reset" the language to get rid of it.


In the language settings dialogue box there are a lot of cryptic  
options, but none to just turn it all off.


I don't remember having this problem in prior versions of LyX  
(perhaps it wasn't yet a "feature").

In Tools->Preferences, you can uncheck "Mark foreign languages".


Thank you.  This gets rid of the annoying blue underlining.  However,  
the LyX code still contains all of the language markup.  Can you  
completely disable all of the language "features" in LyX?


Can language support be disabled?

2009-05-12 Thread James C. Sutherland
Is there a way of disabling "Language Support" in LyX?  Every time  
that I paste text between documents I get blue underlining of the text  
and have to "reset" the language to get rid of it.


In the language settings dialogue box there are a lot of cryptic  
options, but none to just turn it all off.


I don't remember having this problem in prior versions of LyX (perhaps  
it wasn't yet a "feature").


Re: hyperref bug with parent/child documents?

2009-05-11 Thread James C. Sutherland

Bug #5941
http://www.lyx.org/trac/ticket/5941


On May 11, 2009, at 1:24 PM, Pavel Sanda wrote:


Jürgen Spitzmüller wrote:

James C. Sutherland wrote:

I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6

1. Create a parent document and turn off hyperref support (Document-

Settings->PDF Properties, deselct hyperref)

2. Create a child document with hyperref support enabled.
3. Include the child in the parent.

At this point, the LaTeX source code for the parent now has hyperref
included in it.  I thought that parent document settings override
child document settings.  Is this a bug?


I'd say so, yes. Hyperref should only be loaded if either turned on  
in the
master or if a master or a child requests it (e.g., when you use a  
href

hyperlink).


unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document  
settings
and it has the same problem (eg use true small caps or background  
color).


i'm not sure about the solution. maybe to change validate prototype  
adding

bool in_child. CC-ing devel list.

Please check whether this is already reported, and if not, file a  
bug report.


yes, please fill the bug report.
pavel




Re: Reference Formatting

2009-05-11 Thread James C. Sutherland


On May 11, 2009, at 7:56 AM, Hesham Kamel wrote:


Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.


Put:
\usepackage{cite}
in the preamble.


hyperref bug with parent/child documents?

2009-05-08 Thread James C. Sutherland

I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6

1. Create a parent document and turn off hyperref support (Document- 
>Settings->PDF Properties, deselct hyperref)

2. Create a child document with hyperref support enabled.
3. Include the child in the parent.

At this point, the LaTeX source code for the parent now has hyperref  
included in it.  I thought that parent document settings override  
child document settings.  Is this a bug?


See attached example files.  The .tex files were generated by  
exporting the parent lyx file to LaTeX.


James


parent.lyx
Description: Binary data


child.lyx
Description: Binary data




child.tex
Description: Binary data


parent.tex
Description: Binary data


Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 5, 2009, at 10:26 PM, Steve Litt wrote:


On Tuesday 05 May 2009 11:07:13 pm James C. Sutherland wrote:

On May 5, 2009, at 6:06 PM, James C. Sutherland wrote:

LyX Module Gurus:

I am trying to create a modified List environment where is counter
is not reset each time the environment begins.  I have created a
module (attached) that does part of this for me - it creates a new
"TaskList" environment in LyX. However, I cannot seem to get the
counter to keep incrementing - it resets with each instantiation of
the environment.

This may be a LaTeX question, since I cannot get it working properly
in LaTeX either.  I just hope someone out there can shed some light
on this...


I have managed to find a solution to this (see attached), although I
could really benefit from knowing how modules work in more depth.   
The

user manual (Customization Ch. 5) is very terse on this topic!


I'm almost positive both of you should have used "LatexType  
Item_Environment"

in the LyX part of your definitions.


Actually it works fine without it.  I tried two things:
LatexType   List_Environment
LatexType   Item_Environment
The "List" option worked better for me since the "Item" one just gives  
a bullet in LyX whereas the List option allows you more control over  
what LyX shows for the enumeration.  However, this is all pretty  
cloudy to me - there is a sore lack of documentation on this really  
nice feature in LyX.


Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 6, 2009, at 12:40 AM, Guenter Milde wrote:


On 2009-05-06, James C. Sutherland wrote:


I am trying to create a modified List environment where is counter is
not reset each time the environment begins.  I have created a module
(attached) that does part of this for me - it creates a new  
"TaskList"

environment in LyX. However, I cannot seem to get the counter to keep
incrementing - it resets with each instantiation of the environment.


You might try the enumitem.module. Search at http://wiki.lyx.org for
"enumitem".

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the  
"enumitem"

package.)

Günter



I have used the enumitem module.  However, I wanted to change the  
enumeration name ("Task 1" rather than "1").  Also, I wanted to be  
able to have enumeration environments in my document and a special  
"TaskItem" environment that was globally incremented.  The enumitem  
module will not quite allow this.


I think that we could benefit from a detailed description of how to  
create modules, and what all of the knobs mean.  For example, I  
struggled with determining how to set a "LabelType" and "LabelString"  
in LyX.  I never got quite what I wanted: something like "Task 1"   
"Task 2"  etc.  The closest I could get was "Task" or "1" but not a  
string and a counter together.  The compiled output looks fine, but in  
LyX it isn't quite what I would like...

Re: module question - modifying list environment

2009-05-05 Thread James C. Sutherland


On May 5, 2009, at 6:06 PM, James C. Sutherland wrote:


LyX Module Gurus:

I am trying to create a modified List environment where is counter  
is not reset each time the environment begins.  I have created a  
module (attached) that does part of this for me - it creates a new  
"TaskList" environment in LyX. However, I cannot seem to get the  
counter to keep incrementing - it resets with each instantiation of  
the environment.


This may be a LaTeX question, since I cannot get it working properly  
in LaTeX either.  I just hope someone out there can shed some light  
on this...


I have managed to find a solution to this (see attached), although I  
could really benefit from knowing how modules work in more depth.  The  
user manual (Customization Ch. 5) is very terse on this topic!




tasklist.module
Description: Binary data




module question - modifying list environment

2009-05-05 Thread James C. Sutherland

LyX Module Gurus:

I am trying to create a modified List environment where is counter is  
not reset each time the environment begins.  I have created a module  
(attached) that does part of this for me - it creates a new "TaskList"  
environment in LyX. However, I cannot seem to get the counter to keep  
incrementing - it resets with each instantiation of the environment.


This may be a LaTeX question, since I cannot get it working properly  
in LaTeX either.  I just hope someone out there can shed some light on  
this...


James



tasklist.module
Description: Binary data




Re: Question about eqnarray environment (multiple = or <> symbols)

2009-05-05 Thread James C. Sutherland


On May 4, 2009, at 5:27 PM, Jim Rockford wrote:

Hello : this is probably more of a latex issue than Lyx, but I would  
like to

do this quickly in Lyx, so...

What I want is a neatly formatted set of relations like

a < S < b
c < T < d

and so forth.  I just need the analog of the usual "3 column"  
equation array
environment so that the various inequality symbols match up  
properly.  In
the above example I want 5 columns instead of the usual 3.  I tried  
to use
the AMS align environment, but had trouble adding the columns (the  
results

came out with way too much spacing).

How do I do this in Lyx?


You could use an array in a regular equation environment.  Then you  
have more control over alignment of each column in the array.


Re: Boxed multiline formula

2009-04-30 Thread James C. Sutherland


On Apr 30, 2009, at 8:12 AM, Luca Carlon wrote:


James C. Sutherland  writes:


I have never figured out how to do this for an eqnarray environment -
only in a regular equation.  One possibility would be to use a
minipage and frame it.  This doesn't look to great, however...


Well... better than nothing! Unfortunately the box is far larger  
than the

equation. This is somehow different from the appearance of \boxed.

You can change the size of the box - right click and choose "settings"  
and change the "width".  Unfortunately, you have to do this manually -  
I don't know how to get the box to fit tightly around a multiline  
equation like \boxed does in math mode...




Re: Boxed multiline formula

2009-04-30 Thread James C. Sutherland


On Apr 30, 2009, at 4:06 AM, Luca Carlon wrote:

Hi! I'm facing this problem: I would like to write long equations  
(two or even
three lines are needed) in which (possibly) each line is center  
aligned in the

page and so that it is possible to box them all together.

I have never figured out how to do this for an eqnarray environment -  
only in a regular equation.  One possibility would be to use a  
minipage and frame it.  This doesn't look to great, however...


Moreover I really need
to have one reference number only (not one for each line). Is this  
possible?


You can just assign a number to one line (e.g. the last line) in the  
equation.  Within the equation, choose Edit->Math->Number This Line


I
tried reading the manual but the methods I read about multiline  
equations seem
not to fit my needs. I have a Tex code which does almost this (it  
lacks the
center alignment), but I would like to know if it is possible to do  
this without
the code to have the good looking equation, and not the inline  
code :-). Is this

possible?
Thanks guys!


See attached for an example.


equation.lyx
Description: Binary data


equation.pdf
Description: Adobe PDF document


Re: 2 or more Figures/examples with convenient numbering

2009-04-28 Thread James C. Sutherland


On Apr 28, 2009, at 12:51 PM, Piero Faustini wrote:


Hello,

I would like to put 2 or more figures of an example in a way that  
they are
somewhat "put together" for comparing them, and I want them to be  
numbered,
instead, let's say of "1.1", "1.2" and "1.3" in a more convenient  
and logical
way, for example "1.1a", "1.1b", "1.1c" (subsequent figures/examples  
should

continue the normal numbering: 1.2, 1.3 etc.)

For the same reason, I would like to have them put in the same line,  
if needed.
I have a link to a html document which have several examples like  
this (sorry,

musicology stuff, my daily bread!):

http://www.rodoni.ch/MITODIFAUST/CD2/boito-mefistofele-girardi.htm

How to achieve this?


You can use subfigures (available in 1.6).  See section 1.2 in the  
"Embedded Objects" help manual.  This will give you exactly what you  
want, I think.


hyperref conflicts with cite package?

2009-04-28 Thread James C. Sutherland
If I turn on hyperref support, then the cite package breaks.   
Specifically, citations that would normally appear as [5-9] now appear  
as [5,6,7,8,9].  If I turn off hyperref then it works again.


Is this a package conflict, or a bug in LyX?

LyX 1.6.2, Mac OSX 10.5.6


Re: blue underline of pasted text

2009-04-28 Thread James C. Sutherland


On Apr 28, 2009, at 8:29 AM, James C. Sutherland wrote:

When I paste text from one document to another, I get blue  
underlines.  I do not have change tracking turned on.  Does anyone  
know how to disable this underlining?


The underlining does not show up in compiled output - only in the  
LyX editor...


LyX 1.6.2 on Mac OSX 10.5.6.


blue underline of pasted text

2009-04-28 Thread James C . Sutherland
When I paste text from one document to another, I get blue  
underlines.  I do not have change tracking turned on.  Does anyone  
know how to disable this underlining?


The underlining does not show up in compiled output - only in the LyX  
editor...


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread James C. Sutherland


This is the typical example for using branches.

(Document->Settings->Branches and Insert->Branch).



I use branches for this purpose as well (creating exams).  They work  
very well, and are scalable to any number of "branches" that you can  
turn on and off to create different compiled documents...


Re: bug in hyperlink and footnote?

2009-04-20 Thread James C. Sutherland


On Apr 19, 2009, at 5:04 AM, Uwe Stöhr wrote:


One important not: you example used an address in this form:
http://www.bla.blub/#1
This is not conform to the URL specification. There must be at least  
a character after the "/" and before the "#". Or do you have an  
example of a valid URL where this is not the case?


regards Uwe


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)

I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.

Re: 3 columns

2009-04-02 Thread James C. Sutherland


looking at lyx it gives me an option for 2 column,  i would guess  
that a

3 column would be an option somewhere, either that or i need to put it
in a pre amble somewhere.



Take a look at the description of using "multicol" in the help manual:
 Help -> Specific Manuals -> Multicol


Re: new paragraph after enum or list environment

2009-03-29 Thread James C. Sutherland


On Mar 27, 2009, at 4:43 PM, rgheck wrote:


James C. Sutherland wrote:
Does anyone know how to tell LyX to make a new paragraph after a  
list? For example, if I have new paragraphs indented, then one  
immediately following an enum or list will not be indented. How to  
I change that?



Have you tried to put the Separator environment in between?

That does the trick - I was not aware of the "separator" environment!   
Thanks!


  1   2   >