Re: how to set further readings

2007-04-24 Thread Jürgen Spitzmüller
Tim Michelsen wrote:
 This was exactly what I wanted.

 But I latex shows now errors for all my bibtex entries. I even tried it
 the same bibtex-file that I use for normal references from text citations.
 Why does that occour?

What errors? Can you post a minimal example, including two bib files?

 Another question is:
 How do I rename the second databes to futher readings?
 The solution in
 Couple of questions about writing reports -
 http://article.gmane.org/gmane.editors.lyx.general/37956
 wouldn't apply here.

If you use bibtopic, you will have to put a section/subsection heading over 
each bibliography item manually.

Jürgen


extrarowheight in table cell

2007-04-24 Thread Ignacio García

Hi

I open a new document.
I insert in it one, two, three... empty (or not) tables.
I put in the preamble of the document:
\setlength{extrarowheight}{2pt} for add extra height (e.g. 2pt)
to all cells of all tables.
View-pdflatex (or dvi...) don't compiles and gives error:
Undefined control sequence.
Latex Error: Missing \begin{document}

Now, if I put any Column_width (in Table Settings) in whatever cell
in whatever of the tables, the error takes away and the View-...
works OK, and all cells of all tables shows the additional space.

(Using the \renewcommand\arraystretch{x} (where x=number) in the
preamble or before a table, there is no need for that to get the same)

All that is correct? There is some mistake?

Regards
Ignacio Garcia


Table borders

2007-04-24 Thread Julio Rojas

Hi, I would like to have a table with vertical borders in each other
row. If I try to do it with LyX dialog, when I remove the vertical
borders of a cell, the border is removed from all the cells in that
column. Any way to do this?

--
-
Julio Rojas
[EMAIL PROTECTED]


Re: help adding Devanagari unicode symbols?

2007-04-24 Thread Georg Baum
Stacia Hartleben wrote:

 So the combining character feature wouldn't help with Devanagari?

Yes, I don't think so, since you wrote that several characters need to be
put into the {\dn ...} command.


Georg



LyX/Mac 1.5.0 beta 2 posted

2007-04-24 Thread Bennett Helm
A universal binary of LyX/Mac 1.5.0 beta 2 has now been posted. You  
can find a link to it off the wiki:


http://wiki.lyx.org/Mac/Mac#toc1

Note that this beta will produce a LyX user's directory at ~/Library/ 
Application Support/LyX-1.5svn. When the final version of LyX-1.5 is  
released, the user's directory will be moved to ~/Library/Application  
Support/LyX-1.5. Also, as noted on the wiki:


* This is a beta: an incomplete, buggy version of the software  
that may unexpectedly crash causing you to lose work. It is  
recommended to be used for testing purposes only. (I have been using  
it successfully for real work for a while without problems, but then  
I'm reckless.)
* The file format used by 1.5 is incompatible with that used by  
1.4. A future release of 1.4 will be able to read files produced by  
1.5, but that is currently not the case. (1.5 can save files in the  
1.4 format, however.)



Bennett


Anyone using DITA with Lyx?

2007-04-24 Thread Hollis, David
This e-mail is subject to the disclaimer set out below.
---
Hi, all.

Before I start evaluating Lyx, I'd like to know if anyone is using Lyx
in conjunction with DITA? Is there any fundamental reason why I should
not be using Lyx for DITA?

(Apologies for the Sagentia nonsense which will be appended to this
email!)

Many thanks,

David

This e-mail message is confidential and for use by the addressee only.
If you are not the intended recipient, you must not use, disclose, copy
or forward this transmission. Please return the message to the sender by
replying to it and then delete the message from your computer. Sagentia
provides e-mail services for both itself and a number of its independent
spin-out companies. Sagentia shall not be held liable to any person
resulting from the use of any information contained in this e-mail and
shall not be liable to any person who acts or omits to do anything in
reliance upon it. Sagentia does not accept responsibility for changes
made to this message after it was sent. 

Company Information: Name: Sagentia Limited. 
Registered Address: Harston Mill, Harston Cambridge CB22 7GG. Registered
as a Company in England: 2081960 VAT Number: 432214202. Website hosted
by: Sagentia Limited Harston Mill, Harston, Cambridge, UK.
CB22 7GG [EMAIL PROTECTED]


batch conversion

2007-04-24 Thread Dr Vaibhav Banait
Hi
I have many lyx files. I want to batch convert them to pdf. how can i do it on 
windows/ubuntu. 
please help.

vaibhav 

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

Re: batch conversion

2007-04-24 Thread Gunnar Lindholm
 I have many lyx files. I want to batch convert them to pdf. how can i do it
 on windows/ubuntu. please help.
On the command line

lyx -e pdf  *.lyx


Re: help adding Devanagari unicode symbols? + CJK and TIPA similarities?

2007-04-24 Thread Stacia Hartleben

I just realized that this could work if you were to manually put the
\dn around all unicode text. This vaguely rings a bell about how
someone solved the CJK problem, but I can't seem to find the mail
right now...something like that CJK was solved by manually putting the
\being{CJK} command in front of everything? I don't remember how this
was resolved but if the developers added something to account for
certain blocks of unicode text (CJK, Devanagari, etc) or even a manual
switch to turn on marking of the text as CJK/Devang/etc  we could
probably solve this problem. I would be happy to write out a file for
the Devanag package when I have time.

Also did you ever post your IPA file on linguistlyx? I can take a look
at that and see if I can add any symbols..although honestly I hardly
ever have use for most of those really bizarre ones in there (though
strangely enough I needed a symbol in there once that I couldn't find!
And no, it wasn't the labiodental flap.)

On 4/24/07, Georg Baum [EMAIL PROTECTED] wrote:

Stacia Hartleben wrote:

 So the combining character feature wouldn't help with Devanagari?

Yes, I don't think so, since you wrote that several characters need to be
put into the {\dn ...} command.


Georg




Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
Thanks Richard,

I just filed this as bugzilla bug 3501. It's assigned to Jean-Marc 
Lasgouttes. 

Jean-Marc -- if I can help in any way I can help, please let me know. I can 
compile 1.4.3 on my machine (although it takes forever and a day -- 15 
minutes from scratch), I found the code that does the reconfigure, and found 
the code that does the -x.

I can write a Reconfigure_and_exit() in lyx_cb.C, add an 
LFUN_RECONFIG_AND_EXIT in lyxfunc.C and LyXAction.C, with the latter invoking 
on -x reconfig_and_exit or whatever you think is best. The remaining problem 
is turning the gui off --  parse_execute() does not set is_gui to false. 
Perhaps a brand new command line argument would be in order, unless the new 
Reconfigure_and_exit() can somehow turn it off, or an ugly case statement is 
put in parse_execute().

Anyway, I don't have the latest source code, but perhaps I can help in some 
minor way.

Thanks

SteveT

On Monday 23 April 2007 16:06, Richard Heck wrote:
 Just go to bugzilla.lyx.org. You'll need to establish an account---this
 is trivial---and then you can log in and file the bug. If you want to
 call it an enhancement, you'll have that option.

 rh

 Steve Litt wrote:
  On Monday 23 April 2007 14:21, José Matos wrote:
  On Sunday 22 April 2007 10:43:25 pm Steve Litt wrote:
  I use Vim for authoring LaTeX (or LyX layouts), and I make a
  compile-display shellscript to see the results. The fact that you must
  reconfigure LyX every time, which consumes enormous time. Perhaps in a
  future version the developers could include a reconfigure option,
  callable from lyx -x, that would not display the you need to restart
  LyX dialog box, and instead simply reconfigure and then exit LyX. In
  other words, instead of:
 
  lyx -x reconfigure
 
  perhaps they could have an option like:
 
  lyx -x reconfigure-and-exit
 
  That would save lots of people lots of time, and could be comfortably
  inserted into a shellscript.
 
Steve, have you filled any bugzilla entry about this?
 
If not this is a bug (to me) and it would interesting to have it
  archived in a place where is not forgotten so that it can be fixed. :-)
 
  Thanks José,
 
  It's not a bug -- it's a feature request, and probably a fairly easy one
  to code. I've never used Bugzilla before -- I just asked for something on
  lyx-users, and magically it happened.
 
  How would I fill out a bugzilla report on this?


Re: How to modify latex classes?

2007-04-24 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Thanks Richard, I just filed this as bugzilla bug 3501. It's
Steve assigned to Jean-Marc Lasgouttes.

Steve Jean-Marc -- if I can help in any way I can help, please let me
Steve know. I can compile 1.4.3 on my machine (although it takes
Steve forever and a day -- 15 minutes from scratch), I found the code
Steve that does the reconfigure, and found the code that does the -x.

Did you see my answer on this bug?

JMarc



Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve Thanks Richard, I just filed this as bugzilla bug 3501. It's
 Steve assigned to Jean-Marc Lasgouttes.

 Steve Jean-Marc -- if I can help in any way I can help, please let me
 Steve know. I can compile 1.4.3 on my machine (although it takes
 Steve forever and a day -- 15 minutes from scratch), I found the code
 Steve that does the reconfigure, and found the code that does the -x.

 Did you see my answer on this bug?

 JMarc

Excellent JMarc!

When I get back from my bicycle ride I'll document your answer so everyone can 
use it. You've just saved me a fortune in layout debugging time.

Thanks so much.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: batch conversion

2007-04-24 Thread Abdelrazak Younes

Gunnar Lindholm wrote:

I have many lyx files. I want to batch convert them to pdf. how can i do it
on windows/ubuntu. please help.

On the command line

lyx -e pdf  *.lyx


AFAIK this won't work with 1.4.x but it will with 1.5.0. With 1.4 you'll 
need to give one file per export command. Something using 'find' and 
pipe it to lyx -e pdflatex should do the trick. Or use 1.5.0beta2 ;-)


Abdel.



Re: Table borders

2007-04-24 Thread Paul A. Rubin

Julio Rojas wrote:

Hi, I would like to have a table with vertical borders in each other
row. If I try to do it with LyX dialog, when I remove the vertical
borders of a cell, the border is removed from all the cells in that
column. Any way to do this?



The only way I know to do this is a bit of a PITA.  Start by eliminating 
all the vertical borders. Now put the cursor in cells where you do want 
a vertical border, set the cell to multicolumn, and add the border. 
(Note that you cannot use the table toolbar to add the border; you need 
to do it in the table dialog, by right-clicking in the cell.)


/Paul




Re: Table borders

2007-04-24 Thread Julio Rojas

Thx Paul, I decided to go the other way around. I used separated
tables with fixed width cells. A line break (Ctrl-Enter) was used
between tables to reduce the space between tables.

On 4/24/07, Paul A. Rubin [EMAIL PROTECTED] wrote:

Julio Rojas wrote:
 Hi, I would like to have a table with vertical borders in each other
 row. If I try to do it with LyX dialog, when I remove the vertical
 borders of a cell, the border is removed from all the cells in that
 column. Any way to do this?


The only way I know to do this is a bit of a PITA.  Start by eliminating
all the vertical borders. Now put the cursor in cells where you do want
a vertical border, set the cell to multicolumn, and add the border.
(Note that you cannot use the table toolbar to add the border; you need
to do it in the table dialog, by right-clicking in the cell.)

/Paul






--
-
Julio Rojas
[EMAIL PROTECTED]


Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 11:07, Steve Litt wrote:
 On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote:
   Steve == Steve Litt [EMAIL PROTECTED] writes:
 
  Steve Thanks Richard, I just filed this as bugzilla bug 3501. It's
  Steve assigned to Jean-Marc Lasgouttes.
 
  Steve Jean-Marc -- if I can help in any way I can help, please let me
  Steve know. I can compile 1.4.3 on my machine (although it takes
  Steve forever and a day -- 15 minutes from scratch), I found the code
  Steve that does the reconfigure, and found the code that does the -x.
 
  Did you see my answer on this bug?
 
  JMarc

 Excellent JMarc!

 When I get back from my bicycle ride I'll document your answer so everyone
 can use it. You've just saved me a fortune in layout debugging time.

 Thanks so much.

 SteveT

Hi all,

This is documentation for JMarc's answer. I'm not good with wikis. Could 
somebody please put this up on the Wiki somewhere? Also, can someone 
knowledgeable in Windows please translate my shellscripts to batch files or 
whatever Windows uses these days?

I believe Marc's solution will speed layout debugging by at least a factor of 
2, probably more. To reconfigure LyX, use the following shellscript, which I 
called lyx_reconfigure.sh, and placed on my executable path:


#!/bin/bash
LYXDIR=/usr/share/lyx  # CHANGE THIS TO SUIT YOUR SYSTEM
cd ~/.lyx
$LYXDIR/configure.py
cd -


Once you have the preceding script on your path, here's an example on how you 
use it:

===
#!/bin/bash
MYDVIVIEWER=xdvi# CHANGE THIS AS APPROPRIATE
MYPDFVIEWER=acroread# CHANGE THIS AS APPROPRIATE
MYLYXFILEPREFIX=vimtonight  # CHANGE THIS AS APPROPRIATE

MYLYXFILE=$MYLYXFILEPREFIX.lyx
MYTEXFILE=$MYLYXFILEPREFIX.tex
MYDVIFILE=$MYLYXFILEPREFIX.dvi
MYPSFILE=$MYLYXFILEPREFIX.ps
MYPDFFILE=$MYLYXFILEPREFIX.pdf


### REMOVE OLD INTERMEDIATE AND OUTPUT FILES ###
### TO PREVENT BEING FOOLED BY COMPILE FAILURES ###
rm -f $MYTEXFILE
rm -f $MYDVIFILE
rm -f $MYPSFILE
rm -f $MYPDFFILE

### REBUILD AND VIEW OUTPUT FILE ###
lyx_reconfigure.sh
lyx -e latex $MYLYXFILE
latex $MYTEXFILE
$MYDVIVIEWER $MYDVIFILE


### CREATE PDF FILE (CAN BE DONE DIRECTLY ALSO) ###
### FOR DEBUGGING AND EXPERIMENTATION, ###
### THE FOLLOWING IS UNNECESSARY AND ###
### CAN BE COMMENTED OUT ###
#dvips -o $MYPSFILE $MYDVIFILE 
#ps2pdf $MYPSFILE
#$MYPDFVIEWER $MYPDFFILE
===

Using the preceding script, one can change a layout file, run the script, and 
view the result. No need to mouse around with GUI LyX. This will 
significantly increase productivity in layout troubleshooting and 
experimentation.

Note that the example shellscript above is simple. If your content needs to 
rebuild indices, it might be more complex, but even so, you can now 
experiment with a layout without the need to manually reconfigure each time.

HTH

SteveT


[announce] LyX 1.5beta2 (21-04-2007) for Windows

2007-04-24 Thread Uwe Stöhr

Hello LyXers,

the installer for Lyx 1.5beta2 can be found here:
https://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12671

Changelog to last development snapshot from 15-04-2007:

Version LyX 1.5beta2-21-04-2007
 - LyX 1.5 beta2 from 21-04-2007
 - math-macro fixes
 - math delimiter changed again
 - new math sidebar that replaces the math panel dialog

Installer changes:
 - Update installer: require to close LyX before it can be updated
 - Update installer: fix bug that sessions files weren't actualized while 
updating
 - Update installer: fix uninstalling (not fully tested yet)

The new Update installer version allows you to update your existing LyX 
installation to the latest
version. To use this installer you must have my last development snaphot LyX 
1.5svn-15-04-2007
installed.

(More infos about the installer can be found here:
http://wiki.lyx.org/Windows/LyXWinInstaller )

--- disclaimer ---
The LyX 1.5beta2 build is for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX 1.5 is in beta state, that means that it is still under very
active development. So don't use LyX1.5beta2 for production!

happy testing and best regards
Uwe






Orientation Problem With Output

2007-04-24 Thread Rich Shepard

  Last autumn, you folks helped me with the correct syntax for a .tex file
(originally written in LyX) to add specific information to a pre-printed
stock certificate form. It worked like a charm. Since then I've upgraded my
distribution from Slackware-10.2 to -11.0

  I now have need to print another certificate, but the process is not
working properly. After making the appropriate changes to the .tex file, I
run it through latex and dvips, but when I use gv to view the results, the
page is in portrait orientation rather than landscape. Here's the preamble:

\documentclass[oneside,english]{article}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\geometry{verbose,landscape,letterpaper,tmargin=1.5cm,bmargin=1.5cm,lmargin=1.5c
m,rmargin=1.5cm}
\pagestyle{empty}

\makeatletter

\date{}
\setlength\headsep{4.4cm}
\setlength{\textheight}{18.5cm}
\setlength{\textwidth}{25.0cm}

\usepackage{babel}
\makeatother

  I've posted requests for insight on both comp.text.tex and
alt.os.linux.slackware but there's no solution so far.

  Based on a suggestion on the first newsgroup, I upgraded ghostscript here
from epsgs-8.15.3svn to -8.15.4. Now the compiled file doesn't display. GV
pops up an error box showing, Unknown device x11 and Error: PostScript
interpreter failed in main window.

  Any thoughts, suggestions, ideas, and solutions would be greatly
appreciated. I'm looking everywhere for insight.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


How to make boxtitle and boxtext

2007-04-24 Thread Steve Litt
Hi all,

I want to put a title and text inside a box, probably a bordered or shaded 
minipage. The title is defined by the LyX document's author when he's writing 
the content.

I could just ERT \dev\boxtitle{This is my latest title}, and then have the 
\boxtext environment print \boxtitle at the top. However, that would require 
ERT, and the boxtitle text would not show up in the LyX document itself.

So what I'd rather do is somehow have a \boxtitle ENVIRONMENT and a \boxtext 
environment, such that the box is properly printed with the title text at the 
top. This would look good in LyX and the finished product, and would not 
require the author to insert any ERT. Unfortunately, I don't know of a clean 
way of doing it.

As an ultimate kludge, I could do something like this:

\newenvironment{boxtext}{~\vskip 1in}{~\vskip -1in}

That would print the title an inch too low, after which the boxtext 
environment could leave its top 1 inch blank, and it would show the title at 
the top :-) :-) ;-)

I could have two different miniboxes -- one for the title and one for the 
text. If I have a border, that will split the two, so that's no good.

I tried this:

\newenvironment{callouttitle}{
\begin{minipage}{3in}
}{
}

\newenvironment{callouttext}{
}{
\end{minipage}
}

Of course it gripes like this:

! LaTeX Error: \begin{minipage} on input line 21 ended by \end{callouttitle}.

I know it can be done because a lot of LyX environments do similar stuff. How 
can it be done?

Thanks

STeveT
-- 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.


Re: Orientation Problem With Output

2007-04-24 Thread Uwe Stöhr

Rich Shepard schrieb:


  I now have need to print another certificate, but the process is not
working properly. After making the appropriate changes to the .tex file, I
run it through latex and dvips, but when I use gv to view the results, the
page is in portrait orientation rather than landscape.


This is bug 2721 I guess:
http://bugzilla.lyx.org/show_bug.cgi?id=2721

You need to add the option dvips to the call of the geometry package to get 
landscape output.

regards Uwe



Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Uwe Stöhr wrote:


You need to add the option dvips to the call of the geometry package to
get landscape output.


Uwe,

  This does turn the PS display into landscape mode, but for some reason,
it's still not displaying.

  When I tried adding a dvips option to the following line in the preamble,
it changed the orientation to landscape, but kept the text the same so it
displayed vertically rather than horizontally.

  Wonder what broke gv.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

Re: Orientation Problem With Output

2007-04-24 Thread Paul A. Rubin

Rich Shepard wrote:



  This does turn the PS display into landscape mode, but for some reason,
it's still not displaying.

  When I tried adding a dvips option to the following line in the preamble,
it changed the orientation to landscape, but kept the text the same so it
displayed vertically rather than horizontally.

  Wonder what broke gv.



Not sure what the following line is.  Did you try adding 
\geometry{dvips} to the preamble?  It works for me (and the resulting 
file displays in GSView 4.8 correctly).


/Paul



Suppress figures in output

2007-04-24 Thread Jim Rockford

Sorry, not a lyx specific question, but more of a latex one.  What I want to
do is preserve my figure captions and labels, so that they can be properly
referred to in the latex (lyx) document, but I do not want the figure
graphics shown in the final output.  Is there any way to do this, some extra
flag in the float environment that says don't show this figure?  I need to
do this because some journals have very annoying automated systems for
taking uploaded latex and generating documents for reviewers, but yet they
want figures uploaded separately.  I want to avoid having the generated
output showing my figures twice!

Generally, is there any way to add figure labels (that is, labels within the
figure float environment) without actually showing any figures?  No matter
how I do it, I seem to find some residue in the final output related to my
attempts to do this (for instance, if I do a \begin{figure} and
\end{figure}, and put a caption label in between, I will still see  figure
1:  etcetera in the final output).

Thanks,
Jim


Re: Suppress figures in output

2007-04-24 Thread Uwe Stöhr

Jim Rockford schrieb:


What I want to
do is preserve my figure captions and labels, so that they can be properly
referred to in the latex (lyx) document, but I do not want the figure
graphics shown in the final output.  Is there any way to do this, some 
extra

flag in the float environment that says don't show this figure?


You can set the draft flag to the images, then only a placeholder is shown, see section 1.1 of the 
EmbeddedObjects manual that comes with LyX 1.4.4.


regards Uwe


Re: How to make boxtitle and boxtext

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 16:23, Steve Litt wrote:
 Hi all,

 I want to put a title and text inside a box, probably a bordered or shaded
 minipage. The title is defined by the LyX document's author when he's
 writing the content.

 I could just ERT \dev\boxtitle{This is my latest title}, and then have the
 \boxtext environment print \boxtitle at the top. However, that would
 require ERT, and the boxtitle text would not show up in the LyX document
 itself.

 So what I'd rather do is somehow have a \boxtitle ENVIRONMENT and a
 \boxtext environment, such that the box is properly printed with the title
 text at the top. This would look good in LyX and the finished product, and
 would not require the author to insert any ERT. Unfortunately, I don't know
 of a clean way of doing it.

 As an ultimate kludge, I could do something like this:

 \newenvironment{boxtext}{~\vskip 1in}{~\vskip -1in}

 That would print the title an inch too low, after which the boxtext
 environment could leave its top 1 inch blank, and it would show the title
 at the top :-) :-) ;-)

 I could have two different miniboxes -- one for the title and one for the
 text. If I have a border, that will split the two, so that's no good.

 I tried this:

 \newenvironment{callouttitle}{
   \begin{minipage}{3in}
 }{
 }

 \newenvironment{callouttext}{
 }{
   \end{minipage}
 }

 Of course it gripes like this:

 ! LaTeX Error: \begin{minipage} on input line 21 ended by
 \end{callouttitle}.

 I know it can be done because a lot of LyX environments do similar stuff.
 How can it be done?

 Thanks

 STeveT


Hi all,

I finally succeeded by making the BoxTitle LyX environment LatexType Command. 
I haven't actually put it in a minibox yet, but it should be trivial to do. 
Right now I just bring in the margins, and put a dotted line above and below 
the callout box. 

It looks great in the finished dvi, and in LyX it you can easily see what it 
is. I'm stoked!

Here's the code:

Preamble
%%% LOTS OF OTHER STUFF

\newcommand{\callouttitleL}[1]{\def\callouttitleT{#1}}

\newenvironment{callouttextL}{
~\vskip 0.1in
\begingroup
\leftskip 0.6in\rightskip 0.6in
\noindent{.\dotfill{}.\par}
~\vskip -0.1in
{\LARGE\centerline{\callouttitleT}}
~\vskip 0.0in
\it
}{
~\\
~\vskip -0.2in
\par\noindent{.\dotfill{}.\par}
\endgroup
~\vskip 0.2in
}

EndPreamble

### CALLOUT LYX STYLES
Style CalloutTitle
Font
Series  Bold
Size Larger
EndFont
LatexName   callouttitleL
LatexType   Command
  Align Center
End

Style CalloutText
  LatexType Environment
  LatexName callouttextL
  LeftMarginMM
  RightMargin   MM
  ParIndent MMM
  TopSep1.4
  ItemSep   0.7
  ParSep0.7
  BottomSep 0.7
  Align Block
  AlignPossible Block

  Font 
   Series   Medium
   Size Normal
  EndFont
End



Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Paul A. Rubin wrote:


Did you try adding geometry{dvips} to the preamble?  It works for me (and
the resulting file  displays in GSView 4.8 correctly).


Paul,

  I took Uwe's suggestion and added dvips as an option to the
\usepackage{geometry} line. It works. GV no longer does, but when I run the
PostScript file through ps2pdf, xpdf displays it properly.

  What a time consumer this has been.

Thanks, all,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Kenward Vaughan
On Tue, 2007-04-24 at 16:33 -0700, Rich Shepard wrote:
 On Tue, 24 Apr 2007, Paul A. Rubin wrote:
 
  Did you try adding geometry{dvips} to the preamble?  It works for me (and
  the resulting file  displays in GSView 4.8 correctly).
 
 Paul,
 
I took Uwe's suggestion and added dvips as an option to the
 \usepackage{geometry} line. It works. GV no longer does, but when I run the
 PostScript file through ps2pdf, xpdf displays it properly.
 
What a time consumer this has been.
 
 Thanks, all,
 
 Rich

What gets me constantly is how helpful the people on this list are with
questions of all levels.  Sorry for using the thread, Rich, but it leapt
to mind with your trials, and seeing how quickly it seemed to get
resolved here...



Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Kenward Vaughan wrote:


What gets me constantly is how helpful the people on this list are with
questions of all levels.  Sorry for using the thread, Rich, but it leapt
to mind with your trials, and seeing how quickly it seemed to get resolved
here...


Kenward,

  The subscribers to most mail lists are equally helpful. It's part of the
F/OSS philosophy; those who cannot contribute directly to application code
help with documetation and support via mail lists and newsgroups. Best tech
support there is.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Kenward Vaughan
On Tue, 2007-04-24 at 16:49 -0700, Rich Shepard wrote:
 On Tue, 24 Apr 2007, Kenward Vaughan wrote:
 
  What gets me constantly is how helpful the people on this list are with
  questions of all levels.  Sorry for using the thread, Rich, but it leapt
  to mind with your trials, and seeing how quickly it seemed to get resolved
  here...
 
 Kenward,
 
The subscribers to most mail lists are equally helpful. It's part of the
 F/OSS philosophy; those who cannot contribute directly to application code
 help with documetation and support via mail lists and newsgroups. Best tech
 support there is.
 
 Rich

I've seen mixed results, frankly.  I like to occasionally remind ones
like this list how appreciated they are... :)

Cheers,


Kenward
-- 
With or without (religion) you would have good people doing good things
and evil people doing evil things. But for good people to do evil
things, that takes religion.  --Physicist and Nobel Laureate Steven
Weinberg



Long Equation

2007-04-24 Thread Dan Kaplan

Dear Lyx Users,

I am writing an article and I want to follow IEEE format guidelines. So I'm
making my article two columns. However, I have an equation which is too long
for a single column. Rather than break the equation in two, the IEEE has the
equation move to the bottom of the page where it can span across both
columns without breaking. It is further separated from the text by a
horizontal line. How can I create this with LaTeX?

Sincerely,
Dan Kaplan


Re: how to set further readings

2007-04-24 Thread Jürgen Spitzmüller
Tim Michelsen wrote:
 This was exactly what I wanted.

 But I latex shows now errors for all my bibtex entries. I even tried it
 the same bibtex-file that I use for normal references from text citations.
 Why does that occour?

What errors? Can you post a minimal example, including two bib files?

 Another question is:
 How do I rename the second databes to futher readings?
 The solution in
 Couple of questions about writing reports -
 http://article.gmane.org/gmane.editors.lyx.general/37956
 wouldn't apply here.

If you use bibtopic, you will have to put a section/subsection heading over 
each bibliography item manually.

Jürgen


extrarowheight in table cell

2007-04-24 Thread Ignacio García

Hi

I open a new document.
I insert in it one, two, three... empty (or not) tables.
I put in the preamble of the document:
\setlength{extrarowheight}{2pt} for add extra height (e.g. 2pt)
to all cells of all tables.
View-pdflatex (or dvi...) don't compiles and gives error:
Undefined control sequence.
Latex Error: Missing \begin{document}

Now, if I put any Column_width (in Table Settings) in whatever cell
in whatever of the tables, the error takes away and the View-...
works OK, and all cells of all tables shows the additional space.

(Using the \renewcommand\arraystretch{x} (where x=number) in the
preamble or before a table, there is no need for that to get the same)

All that is correct? There is some mistake?

Regards
Ignacio Garcia


Table borders

2007-04-24 Thread Julio Rojas

Hi, I would like to have a table with vertical borders in each other
row. If I try to do it with LyX dialog, when I remove the vertical
borders of a cell, the border is removed from all the cells in that
column. Any way to do this?

--
-
Julio Rojas
[EMAIL PROTECTED]


Re: help adding Devanagari unicode symbols?

2007-04-24 Thread Georg Baum
Stacia Hartleben wrote:

 So the combining character feature wouldn't help with Devanagari?

Yes, I don't think so, since you wrote that several characters need to be
put into the {\dn ...} command.


Georg



LyX/Mac 1.5.0 beta 2 posted

2007-04-24 Thread Bennett Helm
A universal binary of LyX/Mac 1.5.0 beta 2 has now been posted. You  
can find a link to it off the wiki:


http://wiki.lyx.org/Mac/Mac#toc1

Note that this beta will produce a LyX user's directory at ~/Library/ 
Application Support/LyX-1.5svn. When the final version of LyX-1.5 is  
released, the user's directory will be moved to ~/Library/Application  
Support/LyX-1.5. Also, as noted on the wiki:


* This is a beta: an incomplete, buggy version of the software  
that may unexpectedly crash causing you to lose work. It is  
recommended to be used for testing purposes only. (I have been using  
it successfully for real work for a while without problems, but then  
I'm reckless.)
* The file format used by 1.5 is incompatible with that used by  
1.4. A future release of 1.4 will be able to read files produced by  
1.5, but that is currently not the case. (1.5 can save files in the  
1.4 format, however.)



Bennett


Anyone using DITA with Lyx?

2007-04-24 Thread Hollis, David
This e-mail is subject to the disclaimer set out below.
---
Hi, all.

Before I start evaluating Lyx, I'd like to know if anyone is using Lyx
in conjunction with DITA? Is there any fundamental reason why I should
not be using Lyx for DITA?

(Apologies for the Sagentia nonsense which will be appended to this
email!)

Many thanks,

David

This e-mail message is confidential and for use by the addressee only.
If you are not the intended recipient, you must not use, disclose, copy
or forward this transmission. Please return the message to the sender by
replying to it and then delete the message from your computer. Sagentia
provides e-mail services for both itself and a number of its independent
spin-out companies. Sagentia shall not be held liable to any person
resulting from the use of any information contained in this e-mail and
shall not be liable to any person who acts or omits to do anything in
reliance upon it. Sagentia does not accept responsibility for changes
made to this message after it was sent. 

Company Information: Name: Sagentia Limited. 
Registered Address: Harston Mill, Harston Cambridge CB22 7GG. Registered
as a Company in England: 2081960 VAT Number: 432214202. Website hosted
by: Sagentia Limited Harston Mill, Harston, Cambridge, UK.
CB22 7GG [EMAIL PROTECTED]


batch conversion

2007-04-24 Thread Dr Vaibhav Banait
Hi
I have many lyx files. I want to batch convert them to pdf. how can i do it on 
windows/ubuntu. 
please help.

vaibhav 

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

Re: batch conversion

2007-04-24 Thread Gunnar Lindholm
 I have many lyx files. I want to batch convert them to pdf. how can i do it
 on windows/ubuntu. please help.
On the command line

lyx -e pdf  *.lyx


Re: help adding Devanagari unicode symbols? + CJK and TIPA similarities?

2007-04-24 Thread Stacia Hartleben

I just realized that this could work if you were to manually put the
\dn around all unicode text. This vaguely rings a bell about how
someone solved the CJK problem, but I can't seem to find the mail
right now...something like that CJK was solved by manually putting the
\being{CJK} command in front of everything? I don't remember how this
was resolved but if the developers added something to account for
certain blocks of unicode text (CJK, Devanagari, etc) or even a manual
switch to turn on marking of the text as CJK/Devang/etc  we could
probably solve this problem. I would be happy to write out a file for
the Devanag package when I have time.

Also did you ever post your IPA file on linguistlyx? I can take a look
at that and see if I can add any symbols..although honestly I hardly
ever have use for most of those really bizarre ones in there (though
strangely enough I needed a symbol in there once that I couldn't find!
And no, it wasn't the labiodental flap.)

On 4/24/07, Georg Baum [EMAIL PROTECTED] wrote:

Stacia Hartleben wrote:

 So the combining character feature wouldn't help with Devanagari?

Yes, I don't think so, since you wrote that several characters need to be
put into the {\dn ...} command.


Georg




Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
Thanks Richard,

I just filed this as bugzilla bug 3501. It's assigned to Jean-Marc 
Lasgouttes. 

Jean-Marc -- if I can help in any way I can help, please let me know. I can 
compile 1.4.3 on my machine (although it takes forever and a day -- 15 
minutes from scratch), I found the code that does the reconfigure, and found 
the code that does the -x.

I can write a Reconfigure_and_exit() in lyx_cb.C, add an 
LFUN_RECONFIG_AND_EXIT in lyxfunc.C and LyXAction.C, with the latter invoking 
on -x reconfig_and_exit or whatever you think is best. The remaining problem 
is turning the gui off --  parse_execute() does not set is_gui to false. 
Perhaps a brand new command line argument would be in order, unless the new 
Reconfigure_and_exit() can somehow turn it off, or an ugly case statement is 
put in parse_execute().

Anyway, I don't have the latest source code, but perhaps I can help in some 
minor way.

Thanks

SteveT

On Monday 23 April 2007 16:06, Richard Heck wrote:
 Just go to bugzilla.lyx.org. You'll need to establish an account---this
 is trivial---and then you can log in and file the bug. If you want to
 call it an enhancement, you'll have that option.

 rh

 Steve Litt wrote:
  On Monday 23 April 2007 14:21, José Matos wrote:
  On Sunday 22 April 2007 10:43:25 pm Steve Litt wrote:
  I use Vim for authoring LaTeX (or LyX layouts), and I make a
  compile-display shellscript to see the results. The fact that you must
  reconfigure LyX every time, which consumes enormous time. Perhaps in a
  future version the developers could include a reconfigure option,
  callable from lyx -x, that would not display the you need to restart
  LyX dialog box, and instead simply reconfigure and then exit LyX. In
  other words, instead of:
 
  lyx -x reconfigure
 
  perhaps they could have an option like:
 
  lyx -x reconfigure-and-exit
 
  That would save lots of people lots of time, and could be comfortably
  inserted into a shellscript.
 
Steve, have you filled any bugzilla entry about this?
 
If not this is a bug (to me) and it would interesting to have it
  archived in a place where is not forgotten so that it can be fixed. :-)
 
  Thanks José,
 
  It's not a bug -- it's a feature request, and probably a fairly easy one
  to code. I've never used Bugzilla before -- I just asked for something on
  lyx-users, and magically it happened.
 
  How would I fill out a bugzilla report on this?


Re: How to modify latex classes?

2007-04-24 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Thanks Richard, I just filed this as bugzilla bug 3501. It's
Steve assigned to Jean-Marc Lasgouttes.

Steve Jean-Marc -- if I can help in any way I can help, please let me
Steve know. I can compile 1.4.3 on my machine (although it takes
Steve forever and a day -- 15 minutes from scratch), I found the code
Steve that does the reconfigure, and found the code that does the -x.

Did you see my answer on this bug?

JMarc



Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve Thanks Richard, I just filed this as bugzilla bug 3501. It's
 Steve assigned to Jean-Marc Lasgouttes.

 Steve Jean-Marc -- if I can help in any way I can help, please let me
 Steve know. I can compile 1.4.3 on my machine (although it takes
 Steve forever and a day -- 15 minutes from scratch), I found the code
 Steve that does the reconfigure, and found the code that does the -x.

 Did you see my answer on this bug?

 JMarc

Excellent JMarc!

When I get back from my bicycle ride I'll document your answer so everyone can 
use it. You've just saved me a fortune in layout debugging time.

Thanks so much.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: batch conversion

2007-04-24 Thread Abdelrazak Younes

Gunnar Lindholm wrote:

I have many lyx files. I want to batch convert them to pdf. how can i do it
on windows/ubuntu. please help.

On the command line

lyx -e pdf  *.lyx


AFAIK this won't work with 1.4.x but it will with 1.5.0. With 1.4 you'll 
need to give one file per export command. Something using 'find' and 
pipe it to lyx -e pdflatex should do the trick. Or use 1.5.0beta2 ;-)


Abdel.



Re: Table borders

2007-04-24 Thread Paul A. Rubin

Julio Rojas wrote:

Hi, I would like to have a table with vertical borders in each other
row. If I try to do it with LyX dialog, when I remove the vertical
borders of a cell, the border is removed from all the cells in that
column. Any way to do this?



The only way I know to do this is a bit of a PITA.  Start by eliminating 
all the vertical borders. Now put the cursor in cells where you do want 
a vertical border, set the cell to multicolumn, and add the border. 
(Note that you cannot use the table toolbar to add the border; you need 
to do it in the table dialog, by right-clicking in the cell.)


/Paul




Re: Table borders

2007-04-24 Thread Julio Rojas

Thx Paul, I decided to go the other way around. I used separated
tables with fixed width cells. A line break (Ctrl-Enter) was used
between tables to reduce the space between tables.

On 4/24/07, Paul A. Rubin [EMAIL PROTECTED] wrote:

Julio Rojas wrote:
 Hi, I would like to have a table with vertical borders in each other
 row. If I try to do it with LyX dialog, when I remove the vertical
 borders of a cell, the border is removed from all the cells in that
 column. Any way to do this?


The only way I know to do this is a bit of a PITA.  Start by eliminating
all the vertical borders. Now put the cursor in cells where you do want
a vertical border, set the cell to multicolumn, and add the border.
(Note that you cannot use the table toolbar to add the border; you need
to do it in the table dialog, by right-clicking in the cell.)

/Paul






--
-
Julio Rojas
[EMAIL PROTECTED]


Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 11:07, Steve Litt wrote:
 On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote:
   Steve == Steve Litt [EMAIL PROTECTED] writes:
 
  Steve Thanks Richard, I just filed this as bugzilla bug 3501. It's
  Steve assigned to Jean-Marc Lasgouttes.
 
  Steve Jean-Marc -- if I can help in any way I can help, please let me
  Steve know. I can compile 1.4.3 on my machine (although it takes
  Steve forever and a day -- 15 minutes from scratch), I found the code
  Steve that does the reconfigure, and found the code that does the -x.
 
  Did you see my answer on this bug?
 
  JMarc

 Excellent JMarc!

 When I get back from my bicycle ride I'll document your answer so everyone
 can use it. You've just saved me a fortune in layout debugging time.

 Thanks so much.

 SteveT

Hi all,

This is documentation for JMarc's answer. I'm not good with wikis. Could 
somebody please put this up on the Wiki somewhere? Also, can someone 
knowledgeable in Windows please translate my shellscripts to batch files or 
whatever Windows uses these days?

I believe Marc's solution will speed layout debugging by at least a factor of 
2, probably more. To reconfigure LyX, use the following shellscript, which I 
called lyx_reconfigure.sh, and placed on my executable path:


#!/bin/bash
LYXDIR=/usr/share/lyx  # CHANGE THIS TO SUIT YOUR SYSTEM
cd ~/.lyx
$LYXDIR/configure.py
cd -


Once you have the preceding script on your path, here's an example on how you 
use it:

===
#!/bin/bash
MYDVIVIEWER=xdvi# CHANGE THIS AS APPROPRIATE
MYPDFVIEWER=acroread# CHANGE THIS AS APPROPRIATE
MYLYXFILEPREFIX=vimtonight  # CHANGE THIS AS APPROPRIATE

MYLYXFILE=$MYLYXFILEPREFIX.lyx
MYTEXFILE=$MYLYXFILEPREFIX.tex
MYDVIFILE=$MYLYXFILEPREFIX.dvi
MYPSFILE=$MYLYXFILEPREFIX.ps
MYPDFFILE=$MYLYXFILEPREFIX.pdf


### REMOVE OLD INTERMEDIATE AND OUTPUT FILES ###
### TO PREVENT BEING FOOLED BY COMPILE FAILURES ###
rm -f $MYTEXFILE
rm -f $MYDVIFILE
rm -f $MYPSFILE
rm -f $MYPDFFILE

### REBUILD AND VIEW OUTPUT FILE ###
lyx_reconfigure.sh
lyx -e latex $MYLYXFILE
latex $MYTEXFILE
$MYDVIVIEWER $MYDVIFILE


### CREATE PDF FILE (CAN BE DONE DIRECTLY ALSO) ###
### FOR DEBUGGING AND EXPERIMENTATION, ###
### THE FOLLOWING IS UNNECESSARY AND ###
### CAN BE COMMENTED OUT ###
#dvips -o $MYPSFILE $MYDVIFILE 
#ps2pdf $MYPSFILE
#$MYPDFVIEWER $MYPDFFILE
===

Using the preceding script, one can change a layout file, run the script, and 
view the result. No need to mouse around with GUI LyX. This will 
significantly increase productivity in layout troubleshooting and 
experimentation.

Note that the example shellscript above is simple. If your content needs to 
rebuild indices, it might be more complex, but even so, you can now 
experiment with a layout without the need to manually reconfigure each time.

HTH

SteveT


[announce] LyX 1.5beta2 (21-04-2007) for Windows

2007-04-24 Thread Uwe Stöhr

Hello LyXers,

the installer for Lyx 1.5beta2 can be found here:
https://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12671

Changelog to last development snapshot from 15-04-2007:

Version LyX 1.5beta2-21-04-2007
 - LyX 1.5 beta2 from 21-04-2007
 - math-macro fixes
 - math delimiter changed again
 - new math sidebar that replaces the math panel dialog

Installer changes:
 - Update installer: require to close LyX before it can be updated
 - Update installer: fix bug that sessions files weren't actualized while 
updating
 - Update installer: fix uninstalling (not fully tested yet)

The new Update installer version allows you to update your existing LyX 
installation to the latest
version. To use this installer you must have my last development snaphot LyX 
1.5svn-15-04-2007
installed.

(More infos about the installer can be found here:
http://wiki.lyx.org/Windows/LyXWinInstaller )

--- disclaimer ---
The LyX 1.5beta2 build is for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX 1.5 is in beta state, that means that it is still under very
active development. So don't use LyX1.5beta2 for production!

happy testing and best regards
Uwe






Orientation Problem With Output

2007-04-24 Thread Rich Shepard

  Last autumn, you folks helped me with the correct syntax for a .tex file
(originally written in LyX) to add specific information to a pre-printed
stock certificate form. It worked like a charm. Since then I've upgraded my
distribution from Slackware-10.2 to -11.0

  I now have need to print another certificate, but the process is not
working properly. After making the appropriate changes to the .tex file, I
run it through latex and dvips, but when I use gv to view the results, the
page is in portrait orientation rather than landscape. Here's the preamble:

\documentclass[oneside,english]{article}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\geometry{verbose,landscape,letterpaper,tmargin=1.5cm,bmargin=1.5cm,lmargin=1.5c
m,rmargin=1.5cm}
\pagestyle{empty}

\makeatletter

\date{}
\setlength\headsep{4.4cm}
\setlength{\textheight}{18.5cm}
\setlength{\textwidth}{25.0cm}

\usepackage{babel}
\makeatother

  I've posted requests for insight on both comp.text.tex and
alt.os.linux.slackware but there's no solution so far.

  Based on a suggestion on the first newsgroup, I upgraded ghostscript here
from epsgs-8.15.3svn to -8.15.4. Now the compiled file doesn't display. GV
pops up an error box showing, Unknown device x11 and Error: PostScript
interpreter failed in main window.

  Any thoughts, suggestions, ideas, and solutions would be greatly
appreciated. I'm looking everywhere for insight.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


How to make boxtitle and boxtext

2007-04-24 Thread Steve Litt
Hi all,

I want to put a title and text inside a box, probably a bordered or shaded 
minipage. The title is defined by the LyX document's author when he's writing 
the content.

I could just ERT \dev\boxtitle{This is my latest title}, and then have the 
\boxtext environment print \boxtitle at the top. However, that would require 
ERT, and the boxtitle text would not show up in the LyX document itself.

So what I'd rather do is somehow have a \boxtitle ENVIRONMENT and a \boxtext 
environment, such that the box is properly printed with the title text at the 
top. This would look good in LyX and the finished product, and would not 
require the author to insert any ERT. Unfortunately, I don't know of a clean 
way of doing it.

As an ultimate kludge, I could do something like this:

\newenvironment{boxtext}{~\vskip 1in}{~\vskip -1in}

That would print the title an inch too low, after which the boxtext 
environment could leave its top 1 inch blank, and it would show the title at 
the top :-) :-) ;-)

I could have two different miniboxes -- one for the title and one for the 
text. If I have a border, that will split the two, so that's no good.

I tried this:

\newenvironment{callouttitle}{
\begin{minipage}{3in}
}{
}

\newenvironment{callouttext}{
}{
\end{minipage}
}

Of course it gripes like this:

! LaTeX Error: \begin{minipage} on input line 21 ended by \end{callouttitle}.

I know it can be done because a lot of LyX environments do similar stuff. How 
can it be done?

Thanks

STeveT
-- 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.


Re: Orientation Problem With Output

2007-04-24 Thread Uwe Stöhr

Rich Shepard schrieb:


  I now have need to print another certificate, but the process is not
working properly. After making the appropriate changes to the .tex file, I
run it through latex and dvips, but when I use gv to view the results, the
page is in portrait orientation rather than landscape.


This is bug 2721 I guess:
http://bugzilla.lyx.org/show_bug.cgi?id=2721

You need to add the option dvips to the call of the geometry package to get 
landscape output.

regards Uwe



Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Uwe Stöhr wrote:


You need to add the option dvips to the call of the geometry package to
get landscape output.


Uwe,

  This does turn the PS display into landscape mode, but for some reason,
it's still not displaying.

  When I tried adding a dvips option to the following line in the preamble,
it changed the orientation to landscape, but kept the text the same so it
displayed vertically rather than horizontally.

  Wonder what broke gv.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

Re: Orientation Problem With Output

2007-04-24 Thread Paul A. Rubin

Rich Shepard wrote:



  This does turn the PS display into landscape mode, but for some reason,
it's still not displaying.

  When I tried adding a dvips option to the following line in the preamble,
it changed the orientation to landscape, but kept the text the same so it
displayed vertically rather than horizontally.

  Wonder what broke gv.



Not sure what the following line is.  Did you try adding 
\geometry{dvips} to the preamble?  It works for me (and the resulting 
file displays in GSView 4.8 correctly).


/Paul



Suppress figures in output

2007-04-24 Thread Jim Rockford

Sorry, not a lyx specific question, but more of a latex one.  What I want to
do is preserve my figure captions and labels, so that they can be properly
referred to in the latex (lyx) document, but I do not want the figure
graphics shown in the final output.  Is there any way to do this, some extra
flag in the float environment that says don't show this figure?  I need to
do this because some journals have very annoying automated systems for
taking uploaded latex and generating documents for reviewers, but yet they
want figures uploaded separately.  I want to avoid having the generated
output showing my figures twice!

Generally, is there any way to add figure labels (that is, labels within the
figure float environment) without actually showing any figures?  No matter
how I do it, I seem to find some residue in the final output related to my
attempts to do this (for instance, if I do a \begin{figure} and
\end{figure}, and put a caption label in between, I will still see  figure
1:  etcetera in the final output).

Thanks,
Jim


Re: Suppress figures in output

2007-04-24 Thread Uwe Stöhr

Jim Rockford schrieb:


What I want to
do is preserve my figure captions and labels, so that they can be properly
referred to in the latex (lyx) document, but I do not want the figure
graphics shown in the final output.  Is there any way to do this, some 
extra

flag in the float environment that says don't show this figure?


You can set the draft flag to the images, then only a placeholder is shown, see section 1.1 of the 
EmbeddedObjects manual that comes with LyX 1.4.4.


regards Uwe


Re: How to make boxtitle and boxtext

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 16:23, Steve Litt wrote:
 Hi all,

 I want to put a title and text inside a box, probably a bordered or shaded
 minipage. The title is defined by the LyX document's author when he's
 writing the content.

 I could just ERT \dev\boxtitle{This is my latest title}, and then have the
 \boxtext environment print \boxtitle at the top. However, that would
 require ERT, and the boxtitle text would not show up in the LyX document
 itself.

 So what I'd rather do is somehow have a \boxtitle ENVIRONMENT and a
 \boxtext environment, such that the box is properly printed with the title
 text at the top. This would look good in LyX and the finished product, and
 would not require the author to insert any ERT. Unfortunately, I don't know
 of a clean way of doing it.

 As an ultimate kludge, I could do something like this:

 \newenvironment{boxtext}{~\vskip 1in}{~\vskip -1in}

 That would print the title an inch too low, after which the boxtext
 environment could leave its top 1 inch blank, and it would show the title
 at the top :-) :-) ;-)

 I could have two different miniboxes -- one for the title and one for the
 text. If I have a border, that will split the two, so that's no good.

 I tried this:

 \newenvironment{callouttitle}{
   \begin{minipage}{3in}
 }{
 }

 \newenvironment{callouttext}{
 }{
   \end{minipage}
 }

 Of course it gripes like this:

 ! LaTeX Error: \begin{minipage} on input line 21 ended by
 \end{callouttitle}.

 I know it can be done because a lot of LyX environments do similar stuff.
 How can it be done?

 Thanks

 STeveT


Hi all,

I finally succeeded by making the BoxTitle LyX environment LatexType Command. 
I haven't actually put it in a minibox yet, but it should be trivial to do. 
Right now I just bring in the margins, and put a dotted line above and below 
the callout box. 

It looks great in the finished dvi, and in LyX it you can easily see what it 
is. I'm stoked!

Here's the code:

Preamble
%%% LOTS OF OTHER STUFF

\newcommand{\callouttitleL}[1]{\def\callouttitleT{#1}}

\newenvironment{callouttextL}{
~\vskip 0.1in
\begingroup
\leftskip 0.6in\rightskip 0.6in
\noindent{.\dotfill{}.\par}
~\vskip -0.1in
{\LARGE\centerline{\callouttitleT}}
~\vskip 0.0in
\it
}{
~\\
~\vskip -0.2in
\par\noindent{.\dotfill{}.\par}
\endgroup
~\vskip 0.2in
}

EndPreamble

### CALLOUT LYX STYLES
Style CalloutTitle
Font
Series  Bold
Size Larger
EndFont
LatexName   callouttitleL
LatexType   Command
  Align Center
End

Style CalloutText
  LatexType Environment
  LatexName callouttextL
  LeftMarginMM
  RightMargin   MM
  ParIndent MMM
  TopSep1.4
  ItemSep   0.7
  ParSep0.7
  BottomSep 0.7
  Align Block
  AlignPossible Block

  Font 
   Series   Medium
   Size Normal
  EndFont
End



Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Paul A. Rubin wrote:


Did you try adding geometry{dvips} to the preamble?  It works for me (and
the resulting file  displays in GSView 4.8 correctly).


Paul,

  I took Uwe's suggestion and added dvips as an option to the
\usepackage{geometry} line. It works. GV no longer does, but when I run the
PostScript file through ps2pdf, xpdf displays it properly.

  What a time consumer this has been.

Thanks, all,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Kenward Vaughan
On Tue, 2007-04-24 at 16:33 -0700, Rich Shepard wrote:
 On Tue, 24 Apr 2007, Paul A. Rubin wrote:
 
  Did you try adding geometry{dvips} to the preamble?  It works for me (and
  the resulting file  displays in GSView 4.8 correctly).
 
 Paul,
 
I took Uwe's suggestion and added dvips as an option to the
 \usepackage{geometry} line. It works. GV no longer does, but when I run the
 PostScript file through ps2pdf, xpdf displays it properly.
 
What a time consumer this has been.
 
 Thanks, all,
 
 Rich

What gets me constantly is how helpful the people on this list are with
questions of all levels.  Sorry for using the thread, Rich, but it leapt
to mind with your trials, and seeing how quickly it seemed to get
resolved here...



Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Kenward Vaughan wrote:


What gets me constantly is how helpful the people on this list are with
questions of all levels.  Sorry for using the thread, Rich, but it leapt
to mind with your trials, and seeing how quickly it seemed to get resolved
here...


Kenward,

  The subscribers to most mail lists are equally helpful. It's part of the
F/OSS philosophy; those who cannot contribute directly to application code
help with documetation and support via mail lists and newsgroups. Best tech
support there is.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Kenward Vaughan
On Tue, 2007-04-24 at 16:49 -0700, Rich Shepard wrote:
 On Tue, 24 Apr 2007, Kenward Vaughan wrote:
 
  What gets me constantly is how helpful the people on this list are with
  questions of all levels.  Sorry for using the thread, Rich, but it leapt
  to mind with your trials, and seeing how quickly it seemed to get resolved
  here...
 
 Kenward,
 
The subscribers to most mail lists are equally helpful. It's part of the
 F/OSS philosophy; those who cannot contribute directly to application code
 help with documetation and support via mail lists and newsgroups. Best tech
 support there is.
 
 Rich

I've seen mixed results, frankly.  I like to occasionally remind ones
like this list how appreciated they are... :)

Cheers,


Kenward
-- 
With or without (religion) you would have good people doing good things
and evil people doing evil things. But for good people to do evil
things, that takes religion.  --Physicist and Nobel Laureate Steven
Weinberg



Long Equation

2007-04-24 Thread Dan Kaplan

Dear Lyx Users,

I am writing an article and I want to follow IEEE format guidelines. So I'm
making my article two columns. However, I have an equation which is too long
for a single column. Rather than break the equation in two, the IEEE has the
equation move to the bottom of the page where it can span across both
columns without breaking. It is further separated from the text by a
horizontal line. How can I create this with LaTeX?

Sincerely,
Dan Kaplan


Re: how to set "further readings"

2007-04-24 Thread Jürgen Spitzmüller
Tim Michelsen wrote:
> This was exactly what I wanted.
>
> But I latex shows now errors for all my bibtex entries. I even tried it
> the same bibtex-file that I use for normal references from text citations.
> Why does that occour?

What errors? Can you post a minimal example, including two bib files?

> Another question is:
> How do I rename the second databes to "futher readings"?
> The solution in
> Couple of questions about writing reports -
> http://article.gmane.org/gmane.editors.lyx.general/37956
> wouldn't apply here.

If you use bibtopic, you will have to put a section/subsection heading over 
each bibliography item manually.

Jürgen


extrarowheight in table cell

2007-04-24 Thread Ignacio García

Hi

I open a new document.
I insert in it one, two, three... empty (or not) tables.
I put in the preamble of the document:
"\setlength{extrarowheight}{2pt}" for add extra height (e.g. 2pt)
to all cells of all tables.
View->pdflatex (or dvi...) don't compiles and gives error:
"Undefined control sequence.
Latex Error: Missing \begin{document}"

Now, if I put any Column_width (in Table Settings) in whatever cell
in whatever of the tables, the error takes away and the View->...
works OK, and all cells of all tables shows the additional space.

(Using the "\renewcommand\arraystretch{x}" (where x=number) in the
preamble or before a table, there is no need for that to get the same)

All that is correct? There is some mistake?

Regards
Ignacio Garcia


Table borders

2007-04-24 Thread Julio Rojas

Hi, I would like to have a table with vertical borders in each other
row. If I try to do it with LyX dialog, when I remove the vertical
borders of a cell, the border is removed from all the cells in that
column. Any way to do this?

--
-
Julio Rojas
[EMAIL PROTECTED]


Re: help adding Devanagari unicode symbols?

2007-04-24 Thread Georg Baum
Stacia Hartleben wrote:

> So the combining character feature wouldn't help with Devanagari?

Yes, I don't think so, since you wrote that several characters need to be
put into the {\dn ...} command.


Georg



LyX/Mac 1.5.0 beta 2 posted

2007-04-24 Thread Bennett Helm
A universal binary of LyX/Mac 1.5.0 beta 2 has now been posted. You  
can find a link to it off the wiki:




Note that this beta will produce a LyX user's directory at ~/Library/ 
Application Support/LyX-1.5svn. When the final version of LyX-1.5 is  
released, the user's directory will be moved to ~/Library/Application  
Support/LyX-1.5. Also, as noted on the wiki:


* This is a beta: an incomplete, buggy version of the software  
that may unexpectedly crash causing you to lose work. It is  
recommended to be used for testing purposes only. (I have been using  
it successfully for real work for a while without problems, but then  
I'm reckless.)
* The file format used by 1.5 is incompatible with that used by  
1.4. A future release of 1.4 will be able to read files produced by  
1.5, but that is currently not the case. (1.5 can save files in the  
1.4 format, however.)



Bennett


Anyone using DITA with Lyx?

2007-04-24 Thread Hollis, David
This e-mail is subject to the disclaimer set out below.
---
Hi, all.

Before I start evaluating Lyx, I'd like to know if anyone is using Lyx
in conjunction with DITA? Is there any fundamental reason why I should
not be using Lyx for DITA?

(Apologies for the Sagentia nonsense which will be appended to this
email!)

Many thanks,

David

This e-mail message is confidential and for use by the addressee only.
If you are not the intended recipient, you must not use, disclose, copy
or forward this transmission. Please return the message to the sender by
replying to it and then delete the message from your computer. Sagentia
provides e-mail services for both itself and a number of its independent
spin-out companies. Sagentia shall not be held liable to any person
resulting from the use of any information contained in this e-mail and
shall not be liable to any person who acts or omits to do anything in
reliance upon it. Sagentia does not accept responsibility for changes
made to this message after it was sent. 

Company Information: Name: Sagentia Limited. 
Registered Address: Harston Mill, Harston Cambridge CB22 7GG. Registered
as a Company in England: 2081960 VAT Number: 432214202. Website hosted
by: Sagentia Limited Harston Mill, Harston, Cambridge, UK.
CB22 7GG [EMAIL PROTECTED]


batch conversion

2007-04-24 Thread Dr Vaibhav Banait
Hi
I have many lyx files. I want to batch convert them to pdf. how can i do it on 
windows/ubuntu. 
please help.

vaibhav 

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: batch conversion

2007-04-24 Thread Gunnar Lindholm
> I have many lyx files. I want to batch convert them to pdf. how can i do it
> on windows/ubuntu. please help.
On the command line

lyx -e pdf  *.lyx


Re: help adding Devanagari unicode symbols? + CJK and TIPA similarities?

2007-04-24 Thread Stacia Hartleben

I just realized that this could work if you were to manually put the
\dn around all unicode text. This vaguely rings a bell about how
someone solved the CJK problem, but I can't seem to find the mail
right now...something like that CJK was solved by manually putting the
\being{CJK} command in front of everything? I don't remember how this
was resolved but if the developers added something to account for
certain blocks of unicode text (CJK, Devanagari, etc) or even a manual
switch to "turn on" marking of the text as CJK/Devang/etc  we could
probably solve this problem. I would be happy to write out a file for
the Devanag package when I have time.

Also did you ever post your IPA file on linguistlyx? I can take a look
at that and see if I can add any symbols..although honestly I hardly
ever have use for most of those really bizarre ones in there (though
strangely enough I needed a symbol in there once that I couldn't find!
And no, it wasn't the labiodental flap.)

On 4/24/07, Georg Baum <[EMAIL PROTECTED]> wrote:

Stacia Hartleben wrote:

> So the combining character feature wouldn't help with Devanagari?

Yes, I don't think so, since you wrote that several characters need to be
put into the {\dn ...} command.


Georg




Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
Thanks Richard,

I just filed this as bugzilla "bug" 3501. It's assigned to Jean-Marc 
Lasgouttes. 

Jean-Marc -- if I can help in any way I can help, please let me know. I can 
compile 1.4.3 on my machine (although it takes forever and a day -- 15 
minutes from scratch), I found the code that does the reconfigure, and found 
the code that does the -x.

I can write a Reconfigure_and_exit() in lyx_cb.C, add an 
LFUN_RECONFIG_AND_EXIT in lyxfunc.C and LyXAction.C, with the latter invoking 
on -x reconfig_and_exit or whatever you think is best. The remaining problem 
is turning the gui off --  parse_execute() does not set is_gui to false. 
Perhaps a brand new command line argument would be in order, unless the new 
Reconfigure_and_exit() can somehow turn it off, or an ugly case statement is 
put in parse_execute().

Anyway, I don't have the latest source code, but perhaps I can help in some 
minor way.

Thanks

SteveT

On Monday 23 April 2007 16:06, Richard Heck wrote:
> Just go to bugzilla.lyx.org. You'll need to establish an account---this
> is trivial---and then you can log in and file the bug. If you want to
> call it an "enhancement", you'll have that option.
>
> rh
>
> Steve Litt wrote:
> > On Monday 23 April 2007 14:21, José Matos wrote:
> >> On Sunday 22 April 2007 10:43:25 pm Steve Litt wrote:
> >>> I use Vim for authoring LaTeX (or LyX layouts), and I make a
> >>> compile->display shellscript to see the results. The fact that you must
> >>> reconfigure LyX every time, which consumes enormous time. Perhaps in a
> >>> future version the developers could include a reconfigure option,
> >>> callable from lyx -x, that would not display the "you need to restart
> >>> LyX" dialog box, and instead simply reconfigure and then exit LyX. In
> >>> other words, instead of:
> >>>
> >>> lyx -x reconfigure
> >>>
> >>> perhaps they could have an option like:
> >>>
> >>> lyx -x reconfigure-and-exit
> >>>
> >>> That would save lots of people lots of time, and could be comfortably
> >>> inserted into a shellscript.
> >>
> >>   Steve, have you filled any bugzilla entry about this?
> >>
> >>   If not this is a bug (to me) and it would interesting to have it
> >> archived in a place where is not forgotten so that it can be fixed. :-)
> >
> > Thanks José,
> >
> > It's not a bug -- it's a feature request, and probably a fairly easy one
> > to code. I've never used Bugzilla before -- I just asked for something on
> > lyx-users, and magically it happened.
> >
> > How would I fill out a bugzilla report on this?


Re: How to modify latex classes?

2007-04-24 Thread Jean-Marc Lasgouttes
> "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:

Steve> Thanks Richard, I just filed this as bugzilla "bug" 3501. It's
Steve> assigned to Jean-Marc Lasgouttes.

Steve> Jean-Marc -- if I can help in any way I can help, please let me
Steve> know. I can compile 1.4.3 on my machine (although it takes
Steve> forever and a day -- 15 minutes from scratch), I found the code
Steve> that does the reconfigure, and found the code that does the -x.

Did you see my answer on this bug?

JMarc



Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote:
> > "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:
>
> Steve> Thanks Richard, I just filed this as bugzilla "bug" 3501. It's
> Steve> assigned to Jean-Marc Lasgouttes.
>
> Steve> Jean-Marc -- if I can help in any way I can help, please let me
> Steve> know. I can compile 1.4.3 on my machine (although it takes
> Steve> forever and a day -- 15 minutes from scratch), I found the code
> Steve> that does the reconfigure, and found the code that does the -x.
>
> Did you see my answer on this bug?
>
> JMarc

Excellent JMarc!

When I get back from my bicycle ride I'll document your answer so everyone can 
use it. You've just saved me a fortune in layout debugging time.

Thanks so much.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: batch conversion

2007-04-24 Thread Abdelrazak Younes

Gunnar Lindholm wrote:

I have many lyx files. I want to batch convert them to pdf. how can i do it
on windows/ubuntu. please help.

On the command line

lyx -e pdf  *.lyx


AFAIK this won't work with 1.4.x but it will with 1.5.0. With 1.4 you'll 
need to give one file per export command. Something using 'find' and 
pipe it to lyx -e pdflatex should do the trick. Or use 1.5.0beta2 ;-)


Abdel.



Re: Table borders

2007-04-24 Thread Paul A. Rubin

Julio Rojas wrote:

Hi, I would like to have a table with vertical borders in each other
row. If I try to do it with LyX dialog, when I remove the vertical
borders of a cell, the border is removed from all the cells in that
column. Any way to do this?



The only way I know to do this is a bit of a PITA.  Start by eliminating 
all the vertical borders. Now put the cursor in cells where you do want 
a vertical border, set the cell to multicolumn, and add the border. 
(Note that you cannot use the table toolbar to add the border; you need 
to do it in the table dialog, by right-clicking in the cell.)


/Paul




Re: Table borders

2007-04-24 Thread Julio Rojas

Thx Paul, I decided to go the other way around. I used separated
tables with fixed width cells. A line break (Ctrl-Enter) was used
between tables to reduce the space between tables.

On 4/24/07, Paul A. Rubin <[EMAIL PROTECTED]> wrote:

Julio Rojas wrote:
> Hi, I would like to have a table with vertical borders in each other
> row. If I try to do it with LyX dialog, when I remove the vertical
> borders of a cell, the border is removed from all the cells in that
> column. Any way to do this?
>

The only way I know to do this is a bit of a PITA.  Start by eliminating
all the vertical borders. Now put the cursor in cells where you do want
a vertical border, set the cell to multicolumn, and add the border.
(Note that you cannot use the table toolbar to add the border; you need
to do it in the table dialog, by right-clicking in the cell.)

/Paul






--
-
Julio Rojas
[EMAIL PROTECTED]


Re: How to modify latex classes?

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 11:07, Steve Litt wrote:
> On Tuesday 24 April 2007 10:44, Jean-Marc Lasgouttes wrote:
> > > "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:
> >
> > Steve> Thanks Richard, I just filed this as bugzilla "bug" 3501. It's
> > Steve> assigned to Jean-Marc Lasgouttes.
> >
> > Steve> Jean-Marc -- if I can help in any way I can help, please let me
> > Steve> know. I can compile 1.4.3 on my machine (although it takes
> > Steve> forever and a day -- 15 minutes from scratch), I found the code
> > Steve> that does the reconfigure, and found the code that does the -x.
> >
> > Did you see my answer on this bug?
> >
> > JMarc
>
> Excellent JMarc!
>
> When I get back from my bicycle ride I'll document your answer so everyone
> can use it. You've just saved me a fortune in layout debugging time.
>
> Thanks so much.
>
> SteveT

Hi all,

This is documentation for JMarc's answer. I'm not good with wikis. Could 
somebody please put this up on the Wiki somewhere? Also, can someone 
knowledgeable in Windows please translate my shellscripts to batch files or 
whatever Windows uses these days?

I believe Marc's solution will speed layout debugging by at least a factor of 
2, probably more. To reconfigure LyX, use the following shellscript, which I 
called lyx_reconfigure.sh, and placed on my executable path:


#!/bin/bash
LYXDIR=/usr/share/lyx  # CHANGE THIS TO SUIT YOUR SYSTEM
cd ~/.lyx
$LYXDIR/configure.py
cd -


Once you have the preceding script on your path, here's an example on how you 
use it:

===
#!/bin/bash
MYDVIVIEWER=xdvi# CHANGE THIS AS APPROPRIATE
MYPDFVIEWER=acroread# CHANGE THIS AS APPROPRIATE
MYLYXFILEPREFIX=vimtonight  # CHANGE THIS AS APPROPRIATE

MYLYXFILE=$MYLYXFILEPREFIX.lyx
MYTEXFILE=$MYLYXFILEPREFIX.tex
MYDVIFILE=$MYLYXFILEPREFIX.dvi
MYPSFILE=$MYLYXFILEPREFIX.ps
MYPDFFILE=$MYLYXFILEPREFIX.pdf


### REMOVE OLD INTERMEDIATE AND OUTPUT FILES ###
### TO PREVENT BEING FOOLED BY COMPILE FAILURES ###
rm -f $MYTEXFILE
rm -f $MYDVIFILE
rm -f $MYPSFILE
rm -f $MYPDFFILE

### REBUILD AND VIEW OUTPUT FILE ###
lyx_reconfigure.sh
lyx -e latex $MYLYXFILE
latex $MYTEXFILE
$MYDVIVIEWER $MYDVIFILE


### CREATE PDF FILE (CAN BE DONE DIRECTLY ALSO) ###
### FOR DEBUGGING AND EXPERIMENTATION, ###
### THE FOLLOWING IS UNNECESSARY AND ###
### CAN BE COMMENTED OUT ###
#dvips -o $MYPSFILE $MYDVIFILE 
#ps2pdf $MYPSFILE
#$MYPDFVIEWER $MYPDFFILE
===

Using the preceding script, one can change a layout file, run the script, and 
view the result. No need to mouse around with GUI LyX. This will 
significantly increase productivity in layout troubleshooting and 
experimentation.

Note that the example shellscript above is simple. If your content needs to 
rebuild indices, it might be more complex, but even so, you can now 
experiment with a layout without the need to manually reconfigure each time.

HTH

SteveT


[announce] LyX 1.5beta2 (21-04-2007) for Windows

2007-04-24 Thread Uwe Stöhr

Hello LyXers,

the installer for Lyx 1.5beta2 can be found here:
https://developer.berlios.de/project/showfiles.php?group_id=5117_id=12671

Changelog to last development snapshot from 15-04-2007:

Version LyX 1.5beta2-21-04-2007
 - LyX 1.5 beta2 from 21-04-2007
 - math-macro fixes
 - math delimiter changed again
 - new math sidebar that replaces the math panel dialog

Installer changes:
 - Update installer: require to close LyX before it can be updated
 - Update installer: fix bug that sessions files weren't actualized while 
updating
 - Update installer: fix uninstalling (not fully tested yet)

The new Update installer version allows you to update your existing LyX 
installation to the latest
version. To use this installer you must have my last development snaphot LyX 
1.5svn-15-04-2007
installed.

(More infos about the installer can be found here:
http://wiki.lyx.org/Windows/LyXWinInstaller )

--- disclaimer ---
The LyX 1.5beta2 build is for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX 1.5 is in beta state, that means that it is still under very
active development. So don't use LyX1.5beta2 for production!

happy testing and best regards
Uwe






Orientation Problem With Output

2007-04-24 Thread Rich Shepard

  Last autumn, you folks helped me with the correct syntax for a .tex file
(originally written in LyX) to add specific information to a pre-printed
stock certificate form. It worked like a charm. Since then I've upgraded my
distribution from Slackware-10.2 to -11.0

  I now have need to print another certificate, but the process is not
working properly. After making the appropriate changes to the .tex file, I
run it through latex and dvips, but when I use gv to view the results, the
page is in portrait orientation rather than landscape. Here's the preamble:

\documentclass[oneside,english]{article}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\geometry{verbose,landscape,letterpaper,tmargin=1.5cm,bmargin=1.5cm,lmargin=1.5c
m,rmargin=1.5cm}
\pagestyle{empty}

\makeatletter

\date{}
\setlength\headsep{4.4cm}
\setlength{\textheight}{18.5cm}
\setlength{\textwidth}{25.0cm}

\usepackage{babel}
\makeatother

  I've posted requests for insight on both comp.text.tex and
alt.os.linux.slackware but there's no solution so far.

  Based on a suggestion on the first newsgroup, I upgraded ghostscript here
from epsgs-8.15.3svn to -8.15.4. Now the compiled file doesn't display. GV
pops up an error box showing, "Unknown device x11" and "Error: PostScript
interpreter failed in main window."

  Any thoughts, suggestions, ideas, and solutions would be greatly
appreciated. I'm looking everywhere for insight.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


How to make boxtitle and boxtext

2007-04-24 Thread Steve Litt
Hi all,

I want to put a title and text inside a box, probably a bordered or shaded 
minipage. The title is defined by the LyX document's author when he's writing 
the content.

I could just ERT \dev\boxtitle{This is my latest title}, and then have the 
\boxtext environment print \boxtitle at the top. However, that would require 
ERT, and the boxtitle text would not show up in the LyX document itself.

So what I'd rather do is somehow have a \boxtitle ENVIRONMENT and a \boxtext 
environment, such that the box is properly printed with the title text at the 
top. This would look good in LyX and the finished product, and would not 
require the author to insert any ERT. Unfortunately, I don't know of a clean 
way of doing it.

As an ultimate kludge, I could do something like this:

\newenvironment{boxtext}{~\vskip 1in}{~\vskip -1in}

That would print the title an inch too low, after which the boxtext 
environment could leave its top 1 inch blank, and it would show the title at 
the top :-) :-) ;-)

I could have two different miniboxes -- one for the title and one for the 
text. If I have a border, that will split the two, so that's no good.

I tried this:

\newenvironment{callouttitle}{
\begin{minipage}{3in}
}{
}

\newenvironment{callouttext}{
}{
\end{minipage}
}

Of course it gripes like this:

! LaTeX Error: \begin{minipage} on input line 21 ended by \end{callouttitle}.

I know it can be done because a lot of LyX environments do similar stuff. How 
can it be done?

Thanks

STeveT
-- 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.


Re: Orientation Problem With Output

2007-04-24 Thread Uwe Stöhr

Rich Shepard schrieb:


  I now have need to print another certificate, but the process is not
working properly. After making the appropriate changes to the .tex file, I
run it through latex and dvips, but when I use gv to view the results, the
page is in portrait orientation rather than landscape.


This is bug 2721 I guess:
http://bugzilla.lyx.org/show_bug.cgi?id=2721

You need to add the option "dvips" to the call of the geometry package to get 
landscape output.

regards Uwe



Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Uwe Stöhr wrote:


You need to add the option "dvips" to the call of the geometry package to
get landscape output.


Uwe,

  This does turn the PS display into landscape mode, but for some reason,
it's still not displaying.

  When I tried adding a dvips option to the following line in the preamble,
it changed the orientation to landscape, but kept the text the same so it
displayed vertically rather than horizontally.

  Wonder what broke gv.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863

Re: Orientation Problem With Output

2007-04-24 Thread Paul A. Rubin

Rich Shepard wrote:



  This does turn the PS display into landscape mode, but for some reason,
it's still not displaying.

  When I tried adding a dvips option to the following line in the preamble,
it changed the orientation to landscape, but kept the text the same so it
displayed vertically rather than horizontally.

  Wonder what broke gv.



Not sure what "the following line" is.  Did you try adding 
\geometry{dvips} to the preamble?  It works for me (and the resulting 
file displays in GSView 4.8 correctly).


/Paul



Suppress figures in output

2007-04-24 Thread Jim Rockford

Sorry, not a lyx specific question, but more of a latex one.  What I want to
do is preserve my figure captions and labels, so that they can be properly
referred to in the latex (lyx) document, but I do not want the figure
graphics shown in the final output.  Is there any way to do this, some extra
flag in the float environment that says "don't show this figure?"  I need to
do this because some journals have very annoying automated systems for
taking uploaded latex and generating documents for reviewers, but yet they
want figures uploaded separately.  I want to avoid having the generated
output showing my figures twice!

Generally, is there any way to add figure labels (that is, labels within the
figure float environment) without actually showing any figures?  No matter
how I do it, I seem to find some residue in the final output related to my
attempts to do this (for instance, if I do a \begin{figure} and
\end{figure}, and put a caption label in between, I will still see  figure
1:  etcetera in the final output).

Thanks,
Jim


Re: Suppress figures in output

2007-04-24 Thread Uwe Stöhr

Jim Rockford schrieb:


What I want to
do is preserve my figure captions and labels, so that they can be properly
referred to in the latex (lyx) document, but I do not want the figure
graphics shown in the final output.  Is there any way to do this, some 
extra

flag in the float environment that says "don't show this figure?"


You can set the "draft" flag to the images, then only a placeholder is shown, see section 1.1 of the 
EmbeddedObjects manual that comes with LyX 1.4.4.


regards Uwe


Re: How to make boxtitle and boxtext

2007-04-24 Thread Steve Litt
On Tuesday 24 April 2007 16:23, Steve Litt wrote:
> Hi all,
>
> I want to put a title and text inside a box, probably a bordered or shaded
> minipage. The title is defined by the LyX document's author when he's
> writing the content.
>
> I could just ERT \dev\boxtitle{This is my latest title}, and then have the
> \boxtext environment print \boxtitle at the top. However, that would
> require ERT, and the boxtitle text would not show up in the LyX document
> itself.
>
> So what I'd rather do is somehow have a \boxtitle ENVIRONMENT and a
> \boxtext environment, such that the box is properly printed with the title
> text at the top. This would look good in LyX and the finished product, and
> would not require the author to insert any ERT. Unfortunately, I don't know
> of a clean way of doing it.
>
> As an ultimate kludge, I could do something like this:
>
> \newenvironment{boxtext}{~\vskip 1in}{~\vskip -1in}
>
> That would print the title an inch too low, after which the boxtext
> environment could leave its top 1 inch blank, and it would show the title
> at the top :-) :-) ;-)
>
> I could have two different miniboxes -- one for the title and one for the
> text. If I have a border, that will split the two, so that's no good.
>
> I tried this:
>
> \newenvironment{callouttitle}{
>   \begin{minipage}{3in}
> }{
> }
>
> \newenvironment{callouttext}{
> }{
>   \end{minipage}
> }
>
> Of course it gripes like this:
>
> ! LaTeX Error: \begin{minipage} on input line 21 ended by
> \end{callouttitle}.
>
> I know it can be done because a lot of LyX environments do similar stuff.
> How can it be done?
>
> Thanks
>
> STeveT


Hi all,

I finally succeeded by making the BoxTitle LyX environment LatexType Command. 
I haven't actually put it in a minibox yet, but it should be trivial to do. 
Right now I just bring in the margins, and put a dotted line above and below 
the callout box. 

It looks great in the finished dvi, and in LyX it you can easily see what it 
is. I'm stoked!

Here's the code:

Preamble
%%% LOTS OF OTHER STUFF

\newcommand{\callouttitleL}[1]{\def\callouttitleT{#1}}

\newenvironment{callouttextL}{
~\vskip 0.1in
\begingroup
\leftskip 0.6in\rightskip 0.6in
\noindent{.\dotfill{}.\par}
~\vskip -0.1in
{\LARGE\centerline{\callouttitleT}}
~\vskip 0.0in
\it
}{
~\\
~\vskip -0.2in
\par\noindent{.\dotfill{}.\par}
\endgroup
~\vskip 0.2in
}

EndPreamble

### CALLOUT LYX STYLES
Style CalloutTitle
Font
Series  Bold
Size Larger
EndFont
LatexName   callouttitleL
LatexType   Command
  Align Center
End

Style CalloutText
  LatexType Environment
  LatexName callouttextL
  LeftMarginMM
  RightMargin   MM
  ParIndent MMM
  TopSep1.4
  ItemSep   0.7
  ParSep0.7
  BottomSep 0.7
  Align Block
  AlignPossible Block

  Font 
   Series   Medium
   Size Normal
  EndFont
End



Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Paul A. Rubin wrote:


Did you try adding geometry{dvips} to the preamble?  It works for me (and
the resulting file > displays in GSView 4.8 correctly).


Paul,

  I took Uwe's suggestion and added dvips as an option to the
\usepackage{geometry} line. It works. GV no longer does, but when I run the
PostScript file through ps2pdf, xpdf displays it properly.

  What a time consumer this has been.

Thanks, all,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Kenward Vaughan
On Tue, 2007-04-24 at 16:33 -0700, Rich Shepard wrote:
> On Tue, 24 Apr 2007, Paul A. Rubin wrote:
> 
> > Did you try adding geometry{dvips} to the preamble?  It works for me (and
> > the resulting file > displays in GSView 4.8 correctly).
> 
> Paul,
> 
>I took Uwe's suggestion and added dvips as an option to the
> \usepackage{geometry} line. It works. GV no longer does, but when I run the
> PostScript file through ps2pdf, xpdf displays it properly.
> 
>What a time consumer this has been.
> 
> Thanks, all,
> 
> Rich

What gets me constantly is how helpful the people on this list are with
questions of all levels.  Sorry for using the thread, Rich, but it leapt
to mind with your trials, and seeing how quickly it seemed to get
resolved here...



Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca



Re: Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Rich Shepard

On Tue, 24 Apr 2007, Kenward Vaughan wrote:


What gets me constantly is how helpful the people on this list are with
questions of all levels.  Sorry for using the thread, Rich, but it leapt
to mind with your trials, and seeing how quickly it seemed to get resolved
here...


Kenward,

  The subscribers to most mail lists are equally helpful. It's part of the
F/OSS philosophy; those who cannot contribute directly to application code
help with documetation and support via mail lists and newsgroups. Best tech
support there is.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Thanks to All LyXers/developers here! Re: Orientation Problem With Output

2007-04-24 Thread Kenward Vaughan
On Tue, 2007-04-24 at 16:49 -0700, Rich Shepard wrote:
> On Tue, 24 Apr 2007, Kenward Vaughan wrote:
> 
> > What gets me constantly is how helpful the people on this list are with
> > questions of all levels.  Sorry for using the thread, Rich, but it leapt
> > to mind with your trials, and seeing how quickly it seemed to get resolved
> > here...
> 
> Kenward,
> 
>The subscribers to most mail lists are equally helpful. It's part of the
> F/OSS philosophy; those who cannot contribute directly to application code
> help with documetation and support via mail lists and newsgroups. Best tech
> support there is.
> 
> Rich

I've seen mixed results, frankly.  I like to occasionally remind ones
like this list how appreciated they are... :)

Cheers,


Kenward
-- 
With or without (religion) you would have good people doing good things
and evil people doing evil things. But for good people to do evil
things, that takes religion.  --Physicist and Nobel Laureate Steven
Weinberg



Long Equation

2007-04-24 Thread Dan Kaplan

Dear Lyx Users,

I am writing an article and I want to follow IEEE format guidelines. So I'm
making my article two columns. However, I have an equation which is too long
for a single column. Rather than break the equation in two, the IEEE has the
equation move to the bottom of the page where it can span across both
columns without breaking. It is further separated from the text by a
horizontal line. How can I create this with LaTeX?

Sincerely,
Dan Kaplan