Re: sub/superscipts

2000-07-06 Thread Kenward Vaughan

On Wed, Jul 05, 2000 at 09:16:53PM +0200, Martijn Brouwer wrote:
> Hello,
> Is there an other way to insert sub/superscipts than going into math mode?
> I would like to enter chemical formulas in plain text and text mode in math
> is quite cumbersome.

Hmm... I actually find it quite usable as is.  I do Not write the entire
formula in math mode, opting instead to use that only for the
super/subscripts.  It helps to learn the shortcut keys for this (ctrl-m to
enter math mode, cap (^) to go superscript, and underline to go subscript. 
You need to hit the space bar to exit either. In this fashion you don't have
to worry about the italicizing of the letters in math mode.

I found after practicing on one or two equations that it worked quite
smoothly for me.

Nice thing about the editor is that isotopic symbols are properly set up
(mass over charge) (you might need spaces in one or the other to line them
up nicely if you get picky about it.. :).

HTH,

Kenward Vaughan
Chemistry
Bakersfield College
(Thankfully off for the summer!  ;-)
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: sub/superscipts

2000-07-06 Thread Kenward Vaughan

Hi Herbert,

That eliminates the italics, yes?  The reason I didn't address that is
because most chemical formulae I use have numbers rather than letters. 
A simple example is water (H2O).  Most inorganic equations fall nicely into
this.  More complicated examples tend to be schematic organics, at which 
point I use the Ochem package and my macros.

Kenward

On Thu, Jul 06, 2000 at 09:31:44PM +, Herbert Voss wrote:
> Kenward Vaughan wrote:
> > 
> > On Wed, Jul 05, 2000 at 09:16:53PM +0200, Martijn Brouwer wrote:
> > > Hello,
> > > Is there an other way to insert sub/superscipts than going into math mode?
> > > I would like to enter chemical formulas in plain text and text mode in math
> > > is quite cumbersome.
> > 
> 
> as an example we want to write 8th Floor with th in superscript: 
> 
> if you don't like this writing in mathmode ($...$) 
> choose \raisebox
> 
> 8\raisebox{1ex}{\small th} Floor
> 
> or define a new command \sups{} 
> 
> \newcommand\sups[1]{\raisebox{1ex}{\small #1}} %<- in latex preamble
> 
> and than 8\sups{th} Floor
>   ^  in tex (red)
> 
> 
> Herbert
> 
> 
> -- 
> [EMAIL PROTECTED]
> http://perce.de/voss
> 

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: Feature Suggestion: Highlighting large blocks of text

2000-08-02 Thread Kenward Vaughan

I usually handle them with the ole' shift-arrow or shift-pg. up[down] combo
followed by a ctrl-X, etc.  Hard to guess if either way is faster, since I
don't get slowed down trying to grab my mouse (which is often in the cabinet
eating cheese crackers...  :)

Kenward

On Wed, Aug 02, 2000 at 09:44:09AM -0500, Chris Eliasmith wrote:
> Hi,
> 
> I imagine this has been suggested already, but couldn't
> find the message. As great as LyX is, I find it 
> annoying to move large blocks of text around. This is
> mainly because you have to drag the cursor over the
> entire text you want to select (i.e., you can't specify
> start and end points - to my knowledge). Perhaps the
> standard 'click once for start, shift-click for end' 
> would be a nice addition.
> 
> Hope this is the place to put feature suggestions.
> 
> Best, chris.
> 

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: Surefire method to crash Lyx 1.15fix1

2000-08-08 Thread Kenward Vaughan

On Tue, Aug 08, 2000 at 09:57:16AM +0300, David Martin wrote:
> 
> I have just compiled and installed 1.15fix1 under Redhat Linux 6.2 x86
> with version 0.89 of the XForms library on my new laptop. About midnight
> last night I discovered, much to my surprise, that an accidental  middle
> mouse button click over the information bar at the bottom of the Lyx
> window will produce a core dump - every time, without fail.  Thank god
> for emergency saves  I have not yet dissected the core file, so I
> don't know where it is falling over, but if any of the developers want
> more information I can provide it.  Anybody else able to reproduce this?
> 
> FYI I am running it under XFree86 3.3.6 with the KDE window manager
> v0.14 patch level 3.

Hmm.. quick shortcut to close the app, eh?  It does the same thing on
1.1.4fix3 (I'm running Debian potato and haven't upgraded to the 1.1.5
version yet).

I don't know where to check for core dumps, sorry.  Lyx simply disappears
on me.

I'm running under Gnome/XFree 3.3.6/icewm-gnome.

Someone mentioned xforms.. here's a partial list of ldd ...

daddy:/usr/X11R6/bin# ldd lyx
libforms.so.0.89 => /usr/X11R6/lib/libforms.so.0.89 (0x40018000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x400f1000)
(...)

Kenward
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: Graphics insert - question

2000-08-19 Thread Kenward Vaughan

On Fri, Aug 18, 2000 at 10:13:34AM +, thomas schönhoff wrote:

> Baruch Even wrote:
> > My question pertains to priority settings, the current code does not yet
> > support inline viewing of the image file in the document, that is it
> > leaves a rectangle saying that here will be an image. I'm currently
...
> > the next version of LyX, what would you prefer?
 
> Hello,
> at the moment the ability of handling different
> graphic formats seems to me much more important
> than inline viewing althought this might also be a
> nice feature for future versinons of Lyx !

I agree with this!  Thanks for writing it for me, Thomas.  :-) 

Kenward
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: booktabs -- please, comment

2000-08-25 Thread Kenward Vaughan

Sounds like someone's opinion to me.  Depending on the type of document,
audience, etc., they should be perfectly acceptable and serve distinct purposes
(as your example implies).  I don't recall ever seeing rules on their use in
my grammar book either... :)

Kenward

On Fri, Aug 25, 2000 at 10:54:54PM +0200, Matej Cepl wrote:
...
> make me confused. The author seems to be rather 
> radical and quite strange to my taste. Would be 
> willing and ready knowingly comment on his two 
> doctrines?
> 
> 1) You should NEVER (literarily) use vertical 
> rules in a table.
> 
> 2) You should NEVER (nearly) use double rules in 
> a table.
> 
> The second issue doesn't bother me, but the 
> first one seems to me quite strange. What about 
> following table?
> 
> --
>  |head head2  head3
> --
> 1st item | datadata2  data3
> 2nd item | datadata2  data3
> 3rd item | datadata2  data3
> 4th item | datadata2  data3
> --

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: Debian package

2000-09-20 Thread Kenward Vaughan

On Wed, Sep 20, 2000 at 10:17:23PM +0200, Andre Poenitz wrote:
> > BTW Debian 2.2 doesn't contain the newest version
> > of Lyx
... the latest is typically in the unstable area (Woody).

 
> I wonder that Debian includes LyX at all.
> 
> After all, LyX is linked to the Dark Side by using xforms.
> (ok, I don't seem to remember Richard's words exactly, but ...)
> 
> Andre'

Ahhh!  Knife in the heart! ... cough... cough... 

I'm just glad Debian had the sense to continue their support of All those
things treasured by us lusers, including part of the underpinnings of 
this superb program. 

Kenward
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: form document

2000-11-15 Thread Kenward Vaughan

On Wed, Nov 15, 2000 at 10:17:55PM +0100, Alberto Meroni wrote:
> SOrry to ask such a stupid thing but how can I create a form document
> with underlined space to fill, box to check and so on? I need it for
> a school test document.

My "hack" for underlined spaces is to define them using Ctrl-space followed
by changing their characteristics to underbar (Layout->Character->Misc).

My "find" of the week was discovering that these work well in concert with
List mode to create great True/False questions on my exams.  :-)

Kenward
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Re: form document

2000-11-15 Thread Kenward Vaughan

Ha!  I'll have to give that one a try.  I've fallen in love with Lyx after
finding out how easy it is to create very complex exams in my field
(chemistry).  And there's so much more to learn...

Kenward

On Wed, Nov 15, 2000 at 06:42:33PM -0500, Roger Williams wrote:
...
> My favourite approach to True/False and multiple-choice is to use
> itemised lists with box-shaped bullet symbols (e.g. \large(\Box)).

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--



Old pkg. no good-changes in file format over last year??

2001-01-16 Thread Kenward Vaughan

Hi,

I've been completely mystified by the flukey behavior of a drawing package
called ochem that I use for an organic class.  It worked quite well 8-12 mo.
ago for me, but now (with class starting tonight... :) I've suddenly
discovered some old files which no longer get processed correctly, as well
as new ones not working at all. Yet other files Do work fine.

The Latex package (ochem) first runs latex once on the exported file, then
pulls information out for its sections using a perl script.  It is at this
point that failure occurs.  

Has there been any change to the format of the Latex files exported (or the
Lyx files, which may affect the contents  of the Latex files) over this
time?  I'm simply trying to get an idea where the problem may be...

Thanks,

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Grr... Is this _Real_?? Solution <-> Re: Old pkg. no good-changes...

2001-01-17 Thread Kenward Vaughan

Thanks for the reply, Jean-Marc.  As usual, I went back to my files and beat
on them for another 1-2 hours before addressing your note, as I am quite
bull-headed about things like this...

Well, I finally weaseled out the answer to my problem. It has nothing to do
with _anything_ Except the following difference between working/non-working
files:

\begin{chemspecial}
define('bndlen_', 'N')   vs.  define('bndlen_' , 'N')
\end{chemspecial} ^ causes failure.. !!!

(the left quotes are wrong, but I've never figured out how to get Joe to
print that character)

Is this "for real??"  One space Outside of the quote delimiters which I
(think I) threw in for readability??  

Is there an FMM (Freq. Made Mistakes :-) around for stuff like this?  Or
FMRookieM ??

The package uses m4 to preprocess macros (in which the above definition is
used).  Does anyone have any idea whether this seeming idiosyncrasy is a
Latex thing, an m4 thing, or what?  The "what" part might include the perl
script the author uses, of course.  He is being relayed this.

Sorry about having this thrown out on the list.  I guess it's pretty OT, but
I was really quite stumped...

Kenward

On Wed, Jan 17, 2001 at 10:38:01AM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Kenward" == Kenward Vaughan <[EMAIL PROTECTED]> writes:
> 
> Kenward> The Latex package (ochem) first runs latex once on the
> Kenward> exported file, then pulls information out for its sections
> Kenward> using a perl script. It is at this point that failure occurs.
> 
> Kenward> Has there been any change to the format of the Latex files
> Kenward> exported (or the Lyx files, which may affect the contents of
> Kenward> the Latex files) over this time? I'm simply trying to get an
> Kenward> idea where the problem may be...
> 
> Yes, there have been some small changes. I guess we will need more
> details on the error to try to help you a bit.
> 
> JMarc
> 

-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Can I pipe a text region to a shell command?

2001-01-21 Thread Kenward Vaughan

On Sun, Jan 21, 2001 at 01:35:25PM +0100, Jan Ulrich Hasecke wrote:
> Hi!
> 
> Is it possible to pipe a text region to a shell command like wc?
> 
> I need to know how many chars a paragraph uses, so I would like to
> mark it and then pipe the text to wc.

>From a non-guru (I expect there's a more glamorous solution out there.. :)..

You _could_ just copy the the text (simply dragging over it does not work),
then change focus to a terminal window. There, type 
wc -w -  
then paste the text in (I use gpm, so a middle mouse button click does the
trick).

Hit the return once (giving yourself a clean return for wc to read), then
ctrl-d.

If there is a variable within lyx which represents copied areas then you
should be able to do this within lyx.

M(aybe)TH?

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



trying 1.1.16.. custom export??

2001-02-26 Thread Kenward Vaughan

Hi,

I've DL'd 1.1.16fix1 and compiled/installed it into /usr/local to stay ahead
of the older 1.1.15 package already installed by .deb oackage.  One of the
major things I need to accomplish in my work is a custom export using a
script which before ran perfectly well under 1.1.15.  However it seems to
have disappeared despite its existence in ~/.lyx/preferences.

There is no custom export selection under file>export.  I looked at the
edit>preferences possibilities but have seen nothing obviously applicable. 

What have I obviously missed here? 

I have also noted that files like the Customization help file take an
abnormal amount of time to view/print.  Is this related to the installation
(plain vanilla AFAIK)?

Thanks,

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: trying 1.1.16.. custom export??

2001-02-26 Thread Kenward Vaughan

On Mon, Feb 26, 2001 at 12:54:22AM -0800, Kenward Vaughan wrote:
> Hi,
> 
> I've DL'd 1.1.16fix1 and compiled/installed it into /usr/local to stay ahead
> of the older 1.1.15 package already installed by .deb oackage.  One of the
> major things I need to accomplish in my work is a custom export using a
> script which before ran perfectly well under 1.1.15.  However it seems to
> have disappeared despite its existence in ~/.lyx/preferences.

BTW, the script does not create a new type of file.  Its purpose is to
process documents containing code for a particular organic chemistry drawing
package I use on handouts/exams/etc.  The end result is a ps/dvi file which
is thrown into gv, which I then print out after inspection. It's listed
below:

daddy:~# cat /usr/local/bin/ochemppLyx
#!/bin/sh
cp /usr/local/share/texmf/tex/latex/ochem/*.inc .
latex $1
perl /usr/local/bin/chemie.pl -pp $1.chm
latex $1
latex $1
dvips -o $1.ps $1.dvi
rm *.ctx *.aux *.chm
gv $1.ps

and it is called (under Lyx 1.1.15) with the line:

\custom_export_command "ochemppLyx `Basename '$$FName' .tex "


Thanks,

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Bug/change in exporting? was Re: trying 1.1.16.. custom export??

2001-02-26 Thread Kenward Vaughan

On Mon, Feb 26, 2001 at 09:32:00AM -0800, Kenward Vaughan wrote:
> On Mon, Feb 26, 2001 at 12:54:22AM -0800, Kenward Vaughan wrote:
...
> > I've DL'd 1.1.16fix1 and compiled/installed it into /usr/local to stay ahead
> > of the older 1.1.15 package already installed by .deb oackage.  One of the
> > major things I need to accomplish in my work is a custom export using a
> > script which before ran perfectly well under 1.1.15.  However it seems to
> > have disappeared despite its existence in ~/.lyx/preferences.
> 
> BTW, the script does not create a new type of file.  Its purpose is to
> process documents containing code for a particular organic chemistry drawing
...

OK.  On my own I got to the point of trying to create a phantom ochem
filetype with my script as a converter.  The relevent lines within
~/.lyx/preferences are the following:

#
# FORMATS SECTION ##
#

\format "ochem" "tex" "Ochem" ""
\viewer "ochem" "/bin/true"

#
# CONVERTERS SECTION ##
#

\converter "latex" "ochem" "ochemppLyx $$b" ""

The reason for using /bin/true for a viewer is that the script uses gv
internally to view the created ps file.  These definitions were created
using the Edit>Preferences popup.

Now I can see Ochem as a choice under both the export and view menus, and
the script runs when either is chosen.  However, the results die part way
through processing with a runaway text error involving the imbedded code. 
Bear in mind that this file (and code) works PERFECTLY with lyx 1.1.15 using
the script as a custom exporter.

The exported tex files from the two lyx versions differ, but only in the
text parts.  

I am completely stumped about this.  

Does anyone know if the installation makes any difference by being installed
locally vs. through the Debian package system?  

What differences exist in how a script is called using the new format vs.
the old in 1.1.15?  

I'd really appreciate any help on this, as I'd like to move toward 1.1.16
for other features.  But this problem makes no sense to me.

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Bug/change in exporting? was Re: trying 1.1.16.. custom export??

2001-02-27 Thread Kenward Vaughan

On Mon, Feb 26, 2001 at 03:45:42PM -0800, Kenward Vaughan wrote:
...
> Does anyone know if the installation makes any difference by being installed
> locally vs. through the Debian package system?  
> 
> What differences exist in how a script is called using the new format vs.
> the old in 1.1.15?  
> 
> I'd really appreciate any help on this, as I'd like to move toward 1.1.16
> for other features.  But this problem makes no sense to me.
...

Sorry to run this on, but I haven't gotten any responses to my last posts,
and I'm trying to zoom in on the source of the export problem with 1.1.16. I
am certain now that Lyx changes the headers/format of the Latex files on exportation
through the converters, which somehow messes up the latex package I use by
presenting the file in a different manner.  

1) If I simply export the lyx file to Latex, the Latex file works by itself
with the script in a term window.

2) If I first try to export through the converter script (which fails), then
export to Latex, the "new" Latex file fails (apparently a new Latex file is
not created).

3) If I export to Latex, then try the converter, it fails.  The Latex file
then also fails (it apparently is copied over by the one which fails from
the /tmp/lyx* dir).

I ran diff on the two Latex files, getting the following:

00:53:32
daddy:/tmp/ochemwork# diff 1.tex 2.tex
1,2c1,4
< %% LyX 1.1 created this file.  For more info, see http://www.lyx.org/.
< %% Do not edit unless you really know what you are doing.
---
> \batchmode
> \makeatletter
> \def\input@path{{/home/daddy/Chemistry/Ochem//}}
> \makeatother

00:57:01
daddy:/tmp/ochemwork# ls -l [12].tex
-rw-r--r--1 daddydaddy   16076 Feb 27 00:48 1.tex
-rw-r--r--1 daddydaddy   16034 Feb 27 00:49 2.tex

1.tex is the exported Latex file which works.  2.tex is the Latex file
passed to my script which fails. As can be seen, they are reasonably sized
files.

What has happened to the Latex file to change it?  The change occurs before
my script has done any processing (I saved a copy of it before those steps,
deliberately to test this). I'm very interested in knowing what the new
lines do to the processing done on the file by Latex, as this is what causes
the Latex drawing package to fail on the file's first pass through Latex.


Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Bug/change in exporting? was Re: trying 1.1.16.. custom export??

2001-02-27 Thread Kenward Vaughan

On Tue, Feb 27, 2001 at 12:55:52PM +0200, Dekel Tsur wrote:
> On Mon, Feb 26, 2001 at 03:45:42PM -0800, Kenward Vaughan wrote:
> > #
> > # FORMATS SECTION ##
> > #
> > 
> > \format "ochem" "tex" "Ochem" ""
> > \viewer "ochem" "/bin/true"
> > 
> > #
> > # CONVERTERS SECTION ##
> > #
> > 
> > \converter "latex" "ochem" "ochemppLyx $$b" ""
> 
> > Now I can see Ochem as a choice under both the export and view menus, and
> > the script runs when either is chosen.  However, the results die part way
> > through processing with a runaway text error involving the imbedded code. 
> > Bear in mind that this file (and code) works PERFECTLY with lyx 1.1.15 using
> > the script as a custom exporter.
> > 
> > The exported tex files from the two lyx versions differ, but only in the
> > text parts.  
> 
> Try exporting to latex (in 1.1.6) and then run ochemppLyx manually. Does it
> work ?
> Also, what is the output (in stdout) you get when you try to export to
> "Ochem" ?
...

I got your note later this morning.  Thanks for the reply.  Yes, a manual
run on a Latex export works.  I've put the results of my "scrounging around"
in (yet) another note to the group.

The output I see when trying to use the converter says something like
"Exporting Latex to Ochem" followed by a line showing the call to the
script, followed by the Latex log output I normally see when the script is
run, which shows the error being generated during the first Latex run (where
the drawing package extracts the code from the file for processing).

That last part I confirmed by manually running latex on the file (as done in
the script).
 
> PS: It is better to remove the gv line from your script, and then put
> the following in ~/.lyx/preferences:
> 
> \format ps2  ps  "Postscript (Ochem)" ""
> \converter "latex" "ps2" "ochemppLyx $$b" ""
> 
> but it probably won't solve your problem.

I'll give it a try.  Thanks!

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



The offending line in export. was Re: Bug/change in exporting? ...

2001-02-27 Thread Kenward Vaughan

On Tue, Feb 27, 2001 at 01:26:35AM -0800, Kenward Vaughan wrote:
...
> 1) If I simply export the lyx file to Latex, the Latex file works by itself
> with the script in a term window.
> 
> 2) If I first try to export through the converter script (which fails), then
> export to Latex, the "new" Latex file fails (apparently a new Latex file is
> not created).
...
> I ran diff on the two Latex files, getting the following:
> 
> 00:53:32
> daddy:/tmp/ochemwork# diff 1.tex 2.tex
> 1,2c1,4
> < %% LyX 1.1 created this file.  For more info, see http://www.lyx.org/.
> < %% Do not edit unless you really know what you are doing.
> ---
> > \batchmode
> > \makeatletter
> > \def\input@path{{/home/daddy/Chemistry/Ochem//}}
> > \makeatother
...
> What has happened to the Latex file to change it?  The change occurs before
> my script has done any processing (I saved a copy of it before those steps,
...


The offending line in the "bad" file is:

   \def\input@path{{/home/daddy/Chemistry/Ochem//}}

If I comment this out using %% then the script succeeds.

Surely someone knows what this does, its purpose, etc??  Obviously it's tied
to the 1.1.16 converter methodology, since a plain Latex export doesn't have
it (nor the other 3 lines at the beginning).  

Why is it inserted; is it important?  I know nearly zilch about
Latex/Tex/Lyx code.  

Is the ochem drawing package the only one likely to be bothered by this, or
could it mess up other scripts used for other purposes?

Can I turn off its generation?  or hope that someone adds a "use plain Latex
file" button in the converter section to do just that?

Thanks,

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Solved: Re: The offending line in export.

2001-02-27 Thread Kenward Vaughan

On Tue, Feb 27, 2001 at 11:33:59AM -0800, Kenward Vaughan wrote:
...
> The offending line in the "bad" file is:
> 
>\def\input@path{{/home/daddy/Chemistry/Ochem//}}
> 
> If I comment this out using %% then the script succeeds.
> 
> Surely someone knows what this does, its purpose, etc??  Obviously it's tied
> to the 1.1.16 converter methodology, since a plain Latex export doesn't have
> it (nor the other 3 lines at the beginning).  
> 
> Why is it inserted; is it important?  I know nearly zilch about
> Latex/Tex/Lyx code.  
> 
> Is the ochem drawing package the only one likely to be bothered by this, or
> could it mess up other scripts used for other purposes?
> 
> Can I turn off its generation?  or hope that someone adds a "use plain Latex
> file" button in the converter section to do just that?


I just visited the land of Serendip... :)

After my last post I decided to check out Herbert's 2 Mb file.  While
visiting the site, I happened to be scrolling down the page and saw the
entry concerning a Path to Files, and lo! there was **that line**.

I do not fully understand what function it serves except possibly creating a
Latex-based addition to a path that is searchable by things, or perhaps a
return path for movement of files by Latex scripts.  ANYWAY...

The package I use generates a file for each drawing in the document. If they
already exist, and match what's in the document then things are cool.  But
if they aren't complete files (say--left over from a run which had an error
in the code, or from another document), then an error can occur. I reran my
"bad" Latex file and noted in the log a reference to one of these files,
with my home path attached to it.  That file actually existed, dated over a
month ago.

I toasted the old drawing files in that directory (I don't usually keep
them, as my script attests), and viola!  Things worked normally.

I'm still don't know how to use that pathway, as an attempt to put some
other, required accessory files into that directory (instead of copying them
into the tmp dir as done in the script) failed.  Is there a way to point to
this path in ERT areas in my document?  I don't know if the package would
accept it, but that would be nice.

I apologize for the near-monologue generated by this issue on the list. 
Tracking down the source of this problem has been quite a learning (and
taxing) experience!  I hope that the posts wind up being helpful to someone
else at some point down the road.

BTW, Dekel, your suggestion concerning my definitions for converter and
format do seem to be much slicker, and now I understand what happens when I
export things (in the sense of what Lyx does to identify and move a
formatter's product back into the working directory).  Thanks very much!

I like what I've seen so far in 1.1.16 a Lot!  My thanks to the Lyx team for
the effort you obviously put into this work.  I have never looked back since
beginning to work with Lyx.  


Kenward Vaughan
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Finding figures

2001-03-01 Thread Kenward Vaughan

Herbert,

Now that I understand the function of this line :) can it be used multiple
times in the same document?  I have repository directories for several
types of things which I use in documents found in different places.

Thanks,

Kenward

On Thu, Mar 01, 2001 at 01:24:31PM +, Herbert Voss wrote:
> "Kevin W. Bowman" wrote:
> > 
> > Hello,
> > 
> > I am working on a paper with multiple authors.  As a result we have two
> > copies of the same lyx file.  However,  the location of figures are
> > referenced with respect to the location of the lyx file.  If the
> > directory structure is
> > user1/dir1/dir2/
> > and the lyx file is in /user1/dir1/dir2/file.lyx  but the graphics file
> > is under /user1/dir1/figure.eps then the figure's location is referenced
> > in the menu as
> > ../figure.eps
> > 
> > So the pathname is relative to the location of the lyx file.  However,
> > because the other author is modifying his copy of the lyx file in
> > another directory, he needs an absolute pathname for the figures.
> 
> try in latex preamble
> 
> \def\input@path{{yourInputPathForTheFiles/}} 
> 
> Herbert
> 
> -- 
> [EMAIL PROTECTED]
> http://perce.de/lyx/
> 
> 

-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



[Re: OT: Any scriptwriting (movies) software out there?]

2001-03-08 Thread Kenward Vaughan

Does anyone out here in lyx-list-land :) use these layouts, and wouldn't
mind "chatting" with Jonathan about it?  He knows nothing about lyx in
general (I pointed him to the homepage).


Kenward

- Forwarded message from Kenward Vaughan <[EMAIL PROTECTED]> -

Date: Thu, 8 Mar 2001 08:57:49 -0800
From: Kenward Vaughan <[EMAIL PROTECTED]>
To: Jonathan Gift <[EMAIL PROTECTED]>
Subject: Re: OT: Any scriptwriting (movies) software out there?
User-Agent: Mutt/1.3.15i
In-Reply-To: <[EMAIL PROTECTED]>; from [EMAIL PROTECTED] on Thu, Mar 08, 
2001 at 08:05:51AM +0100

On Thu, Mar 08, 2001 at 08:05:51AM +0100, Jonathan Gift wrote:
> Kenward Vaughan wrote:
> > > 
> > > I've made the move to Linux a while back now and intend to stay. I
> > > have some vimrc F-Keys set up to duplicate script formatting. I just
> > > miss my Final Draft and wonder if anyone has done anything along those
> > > lines...? Hoping against hope, but worth a shot.
> > 
> > Not sure what you are looking for, but if you want something to write
> > movie- or play-styled scripts, then perhaps lyx will do the trick.  It
> > has both "hollywood" and "broadway" document classes, which appear to
> > provide environments for stuff which goes into such things.
> 
> Interesting. I'll have to look in what format you write in, etc. But
> yes, I would like both movie and play.


Well, I use it for chemistry documents, so I have no examples for you
directly. But I can list the environments I see for hollywood. They are
Dialogue, Narrative, FADE IN:, INT., EXT., Speaker, Transition,
Parenthetical, FADE OUT:, Right Address, Author, Title, and Standard (a
standard paragraph). 

"Broadway" is somewhat similar, but with other references to acts, scenes,
and curtains. 

BTW, the Lyx mailing list is one of the very best I've run across for people
looking for help. 
 

> > Debian has a package for it, of course (slightly behind the latest version,
> > but that too can be DL'd from the home site if really needed--won't make any
> > difference to what you're interested in..).
> 
> I found tetex, latex, all sorts of them, but no lyx. Does it go by
> another name on potato or the debian home site?


No.  I checked there and found it listed directly. 

I'll forward this to that list to see if someone else uses those classes,
who might be able to send you a postscript or pdf "sample."

HTH,

Kenward

 
> Thanks,
> 
> Jonathan
> 
> -- 
> 
> /* Jonathan Gift 
> [EMAIL PROTECTED] */
> 

- End forwarded message -

-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Concerning \(...\) and $...$

2001-05-05 Thread Kenward Vaughan

On Sat, May 05, 2001 at 01:08:15PM +0200, Herbert Voss wrote:
> "Joao B. Oliveira" wrote:
> > 
> > Once again Herbert scores a point... I was using another form of abbreviation,
> > including it in a .loa file:
> > 
> > \newcommand{\abbrev}[2]{%
> >   \if@abbrlistmissing
> >  \listofabbreviations
> >  \@abbrlistmissingfalse
> >   \fi
> >  \addtocontents{loa}{\protect\makebox[8em][l]{#1}{#2}\newline}
> > }
> > 
> > The problem was that calling \addtocontents with the unprotected first
> > argument did not work at all. Interestingly, Herbert's solution works
> > quite differently and avoids the problem.
> > 
> > On the other hand, now all abbreviations must be together in the
> > beginning of the file, and cannot be apreaded around the text.
> 
> in this case you should use package nomencl. it does what you want!
> have a look at the attached dvi and lyx-file.
> 
> the only problem is, that you have to run latex by hand!
> 1. file->export->latex
> 2. from shell run twice: latex myFile.tex
> 2a. makeindex -p -s myFile.tex if you have an index in text
> 3. makeindex myFile.glo -s myFile.ist -o myFile.gls 
> 4. latex myFile.tex


...or create a shell script which does the above and call that as a
converter for your "new" file type.


Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Chemical substance in LaTeX

2001-05-11 Thread Kenward Vaughan

On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
> Hello lyxers,
>  I am trying to write a figure with some chemical 
> substances, something like :
>   _
> /  \\
> \\_/ 
> and I was wondering if there is some (exotic) package
> available for this kind of figures.If not, I'll have
> to draw iy myself, but I was hoping somebody did that
> already .

Ochem works quite well.  It makes chemical structures which IMHO are
distinctly superior to regular drawing programs.  The syntax takes some
effort to learn, but I have also created some macros which simplify certain
types.  It has the drawback of not (yet) working with files which contain
other image type (eps, etc.).  

If your requirements are really simple then it should work well without a
lot of effort.  I would suggest this route if you are going to be doing this
a lot.

I have created a script for exporting Lyx files to PS under (1.1.16fix1),
both for viewing and printing.  If you wish I can send it to you.

There are also a number of drawing programs which can export to ps, which
you can place as an image.  Look on SAL for these.  While I may not prefer
their results over Ochem, most people aren't sticklers (sp?) like me about
the results.  :-) 

http://sal.kachinatech.com/Z/2/index.shtml
 
Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: Chemical substance in LaTeX

2001-05-14 Thread Kenward Vaughan

On Mon, May 14, 2001 at 05:32:26PM -0400, Kevin Gross wrote:
> On Friday 11 May 2001 16:52, you wrote:
> > Ochem works quite well.  It makes chemical structures which IMHO are
> > distinctly superior to regular drawing programs.  The syntax takes some
...
 
> Regarding Ochem, is there a manual available in English? Perhaps a website 
> explaining how it is used? It looks quite promising, but I can't read German. 
> I, too, am a stickler about results and would like get Ochem working.

Hi, Kevin!

Yes, Ingo does have a partially (mostly) translated English version.  His
more recent changes I got out of the German version.  I'll scrounge around
and see if I can find/send it to you.  I will be writing him soon myself as
I am updating my macros, and will be suggesting its inclusion in the
distribution.

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Re: The degrees symbol

2001-09-17 Thread Kenward Vaughan

ctrl-m ^ \circ
(enter math mode, go superscript, print a circle)

is a sequence which works well for me.  The backslash won't show up when you
press it, but the circ will be in red.

Kenward

On Tue, Sep 18, 2001 at 06:42:08AM +1000, Laurie Savage wrote:
> How can I include a degree symbol (small superscript circle) as in degC?
> 
> -- 
> Laurie Savage
> Earth Science @ Orange High School
> Orange, NSW, Australia
> 
> 
> 

-- 
Small is the number of them that see with their own eyes and 
feel with their own hearts.  Albert Einstein



OT: Ochem manual in English now available

2001-10-04 Thread Kenward Vaughan

I apologize for this OT mail but there were a number of requests some time
ago for the English version of the Ochem manual for drawing chemical
structures. I did not have it myself then, and the author was unavailable as
well.

He just sent out a note about the latest distributon, and it now has a fully
translated English manual.  It can be found at
http://www.2k-software.de/ingo/ochem.html 

I am beginning to work on updating my own Ochem macros and documentation as
well. I'll gladly pass on the converter scripts I use with the package if
anyone wants them.

Kenward
-- 
Small is the number of them that see with their own eyes and 
feel with their own hearts.  Albert Einstein



Can one create a novel list for enumeration?

2001-10-30 Thread Kenward Vaughan

I use multiple choice questions in some of my exams which are graded by
machine (scantron). The form is limited to 5 choices (A-E), but one can
extend this by allowing choices such as AB, AC, or BCE (all the way out to
ABCDE :).

Is there any way to define such a sequence which would then get used when
enumeration is chosen for my questions?  (Yes, there are times when I have
_many_ answers offered, much to my students' dismay.  :(

Currently I find myself defining tables to manage the issue. 

Many thanks,

Kenward
-- 
Small is the number of them that see with their own eyes and 
feel with their own hearts.  Albert Einstein



Re: Can one create a novel list for enumeration?

2001-10-30 Thread Kenward Vaughan

On Tue, Oct 30, 2001 at 05:24:50PM +0100, Herbert Voss wrote:
> Kenward Vaughan wrote:
> > 
> > I use multiple choice questions in some of my exams which are graded by
> > machine (scantron). The form is limited to 5 choices (A-E), but one can
> > extend this by allowing choices such as AB, AC, or BCE (all the way out to
> > ABCDE :).
> > 
> > Is there any way to define such a sequence which would then get used when
> > enumeration is chosen for my questions?  (Yes, there are times when I have
> > _many_ answers offered, much to my students' dismay.  :(
> > 
> > Currently I find myself defining tables to manage the issue.
> 
> in preamble or in text in red
> 
> \renewcommand\labelenumi{\Alph{enumi}}
> \renewcommand\labelenumii{\Alph{enumi}\Alph{enumii}}
> and so on ...

Thanks, Herbert!  I was sure there was no way to approach this, but your
suggestion gets really close. I found that including the second line
(slightly modified) at the end of the point where I want this to happen
nearly gives the desired results. Here's the result:

1. test 1
   (a) ans 1
   (b) ans 2
   (c) ans 3
   (d) ans 4
   (e) ans 5\renewcommand\labelenumii{(\alph{enumi}\alph{enumii})}
   (f) ans 6
   (g) ans 7

comes out as

1. test 1
   (a) ans 1
   (b) ans 2
   (c) ans 3
   (d) ans 4
   (e) ans 5
  (af) ans 6
  (ag) ans 7

where I need

1. test 1
   (a) ans 1
   (b) ans 2
   (c) ans 3
   (d) ans 4
   (e) ans 5
  (ab) ans 6
  (ac) ans 7
...
  (bc) ---
  (bd) ---
...
  (cd) ---
  (ce) ---
... 
  (abc) ---
  (abd) ---
etc.

I recognize it may be painful, but I have no problem defining shortcut latex
commands in the preamble to make life much easier in the body of the text.
(Most questions I write have only 5 choices.) It would become a template, of
course..  :)

Thanks,

Kenward
--
Small is the number of them that see with their own eyes and 
feel with their own hearts.  Albert Einstein



Re: Can one create a novel list for enumeration?

2001-10-31 Thread Kenward Vaughan

Obviously I should have asked this question a long time ago.  I am very
appreciative of Herbert's and Dekel's help.  The two approaches have taught
me several things about both Lyx and Latex, which should help with other
isues when they arise as my documents mature in structure. (I learn on the
fly, since my time is limited.)

Both accomplish my objective. Dekel's is completely transparent to me, the
user, after its inclusion in the preamble, so it is the one I'll use.
Nonetheless, Herbert's suggestions have made me think again about how to
manage other things such as keeping counters from resetting themselves when
there is a break in a list.  I expect something on his help page addresses
this sort of thing.

My hat's off to both of you.  Many thanks!  And I thank all who are keeping
Lyx running.  It is a wondeful application.


Kenward

On Tue, Oct 30, 2001 at 09:56:12PM +0100, Herbert Voss wrote:
> Kenward Vaughan wrote:
> > 
> > On Tue, Oct 30, 2001 at 05:24:50PM +0100, Herbert Voss wrote:
> > > Kenward Vaughan wrote:
> > > >
> > > > I use multiple choice questions in some of my exams which are graded by
> > > > machine (scantron). The form is limited to 5 choices (A-E), but one can
> > > > extend this by allowing choices such as AB, AC, or BCE (all the way out to
> > > > ABCDE :).
...
> > > in preamble or in text in red
> > >
> > > \renewcommand\labelenumi{\Alph{enumi}}
> > > \renewcommand\labelenumii{\Alph{enumi}\Alph{enumii}}
> > > and so on ...
> > 
> > Thanks, Herbert!  I was sure there was no way to approach this, but your
> > suggestion gets really close. I found that including the second line
...
> play araound with the counters:
> 
> \setcounter{enumii}{1}
> \renewcommand\labelenumii{(\alph{enumi}\alph{enumii})}
> 
> it's nearly the same for the counter enumiii and so on.
> 
> Herbert
 

-- 
Small is the number of them that see with their own eyes and 
feel with their own hearts.  Albert Einstein