Re: Paste external

2005-07-27 Thread Stephen Buonopane


On Jul 27, 2005, at 8:57 AM, Bennett Helm wrote:


On Jul 26, 2005, at 9:51 PM, [EMAIL PROTECTED] wrote:


There are two "Paste External" features in LyX -- "as lines" and "as
paragraphs."  What, exactly, is the difference supposed to be?  Both 
of them

seem to do the exact same thing.

On a related note, why don't carriage returns make the transfer from 
whatever

external document I'm copying from to the paste into LyX?


The problem you're encountering is that Mac and *nix have different 
conventions for how to signal the end of a line. (Mac uses a carriage 
return character, whereas *nix uses a line feed character.) LyX uses 
the *nix convention, whereas I suspect that the program you're copying 
from uses the Mac convention.


When I have a large text file I'm trying to import into a LyX 
document, I run it through a converter like Linebreak 
() to convert to 
*nix linebreaks, and then import into LyX.




Other Mac options for converting linebreaks with only a few clicks of 
the mouse are TexEdit Plus or TextWrangler, both freeware or shareware.




PS -- Are there any plans to integrate LyX's paste function with the
system-wide paste function?  It sure would be nice to just type Cmd-V 
and have

it actually paste the last thing I copied.


I agree.


Me too, but I'm guessing that it's a limitation of the QT/Mac interface 
and not LyX? For example, how would it handle the two concurrent 
clipboards that LyX maintains (one text and one inside math mode)?




Bennett





Re: Aspell personal dictionnaires OsX 10.4.2

2005-10-18 Thread Stephen Buonopane


On Oct 18, 2005, at 10:00 AM, Alexander Gahr wrote:


Ok tried this again.

I created a new Lyx file with two words, one was new for apell.

So i entered a name for my personal dict 
/users/gahr/Documents/test.ispell. Klicked save button.


But after checking adding a new word to personal dic and 
spellchecking completed there was no file  
/users/gahr/Documents/test.ispell


So i tried another way and i created manually a new empty text file 
named it /users/gahr/Documents/test.ispell.

But after checking and adding one word this file still remains empty.

I'm using coco aspell, is this possible that the error is in coco 
aspell???


It could be. As I've said in another recent post, I've never had luck 
with cocoAspell since the 2.0 beta came out. I'd recommend aspell 
itself. For instructions on how to install it, go here: 
.


Bennett


I have been using cocoAspell  version 1.4.2 with LyX 1.3.5 on OS X 
10.3.6.

The personal dictionary file  is ".aspell.english.pws".
Under LyX Preferences I have "aspell" set in the pull down menu, and 
personal dictionary is blank.
I assume that cocoAspell finds the personal dictionary independent of  
the LyX setting.

Seems to work for me.

Steve



Re: citing organisations

2005-11-17 Thread Stephen Buonopane

On Nov 17, 2005, at 6:56 AM, [EMAIL PROTECTED] wrote:


Hi everyone!

I'm using author-year citation style with the apa style for the 
bibliography. I am referencing articles/studies of some organisations, 
like for example the "World Heath Organisation" and I would like it to 
appear as "WHO, year" in the text and as "WHO, World Health 
Organisation (year) ect" in the bibliography. Does anyone have any 
idea which field to use? With @article and WHO as author I get WHO, 
W.H.O...


Thank you!

Liliann


Try using the \citealias command.

Here's an example from  my bibtex file
@techreport{FEMA350,
author = {{Federal Emergency Management Agency (FEMA)}},
	title = {Recommended seismic design criteria for new steel 
moment-frame buildings},

year = 2000,
number = {FEMA-350},
address = {Washington, D.C.}
}

At the beginning of my LyX file I have in ERT
\defcitealias{FEMA350}{FEMA}

At the location of my citation I use in ERT
\citetalias{FEMA350}
Followed by a normal LyX citation reference to FEMA350 with Citation 
Style selected to only give the date


The result is
"FEMA 2000" in the text
and
"Federal Emergency Management Agency (FEMA)..." in the bibliography

Hope that works for you.
Steve



Re: Controling indentation of lists

2005-11-29 Thread Stephen Buonopane

On Nov 29, 2005, at 8:14 AM, James Kebinger wrote:

Thanks a lot! As a followup,is there a way to indent and/or single 
space a

list/enumeration?


Try the mdwlist package. It gives easier control over spacing and other 
options.
I have used it to define a new LyX environment so that it is available 
directly from the pull-down menu.






Re: Re[2]: Controling indentation of lists

2005-11-29 Thread Stephen Buonopane


On Nov 29, 2005, at 8:53 AM, Andrei Popov wrote:


Hello Stephen,

Tuesday, November 29, 2005, 3:37:32 PM, you wrote:

Try the mdwlist package. It gives easier control over spacing and 
other

options.
I have used it to define a new LyX environment so that it is available
directly from the pull-down menu.


Could you please share it? I think a lot of people could find that
useful.



I should have been a bit more specific...
mdwlists has  predefined compact environments called itemize* 
enumerate* and description* which reduce the interline spacing from the 
normal LaTex defaults. To enable these in LyX I made a LyX layout file 
called mdwlists.inc (attached) and then added the line "Input 
mdwlists.inc" to the stdclass.inc file. The result is that itemize* 
enumerate* and description* show up in the LyX pull-down menu for 
environment. Another useful feature is that the numbering does not 
automatically reset when you stop an enumerate* environment.


mdwlists has many other features that you can access via ERT.




mdwlists.inc
Description: Binary data


Re: problem with minipages...

2006-01-26 Thread Stephen Buonopane
1/ Under my name, I would like to draw a line across the page. I 
couldn't find an option to insert such a line. I went around this 
problem by inserting many hyphens. It does the trick but something 
tells me that Lyx has another better way to draw a line ;-)




Layout ->Paragraph->Lines & Breaks->Line below



Re: OT: Converter matrix to picture

2006-02-02 Thread Stephen Buonopane


On Feb 2, 2006, at 9:00 AM, Herbert Voss wrote:


Paul Smith wrote:

This may be a bit out of topic. I have a matrix of ones and zeros with
which I would like to produce a picture in such a way that the ones
would be represented in black, say, and the zeros in yellow. Does
somebody know of a program (for Linux) to create my picture?


what kind of matrix?


Matlab will do that with the 'spy' command



Re: LyX is getting... very annoying.

2006-02-02 Thread Stephen Buonopane

David L. Johnson wrote:

On Thu, 02 Feb 2006 10:30:16 +0100
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:

"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes:


Herbert> this is nonsense! How did you insert it? 2^{Q} is a math
Herbert> expression, it cannot be part of \textrm, it should be an
Herbert> argument of\mathrm

Herbert, while we are at it, does it ever make sense to use \textrm 
in

math? I am a bit puzzled about what this really does. I would tend to
use \mathrm{} for a variable name in upright shape, and \mbox{} or
\text{} for something which is more like a word.
I believe the advantage will be for entering more than one word, with 
spaces
and all.  At any rate, the simple toggle to insert text this way 
means that

that is what I have been doing for years with it, to no ill effect.


this is what I wanted to say, if you know what you are
doing, \textrm is a nice macro inside math ...



I find \textrm inside math mode very useful.
I particular I use it when I need to add hyphenated units at the end of 
an equation, e.g. L=10 kN-m.
\mathrm will substitute the longer minus sign while \textrm leaves the 
short hyphen


Steve



Re: OT: Converter matrix to picture

2006-02-02 Thread Stephen Buonopane

On 2/2/06, Stephen Buonopane <[EMAIL PROTECTED]> wrote:
This may be a bit out of topic. I have a matrix of ones and zeros 
with

which I would like to produce a picture in such a way that the ones
would be represented in black, say, and the zeros in yellow. Does
somebody know of a program (for Linux) to create my picture?



Matlab will do that with the 'spy' command


Yes, that is what I mean. An illustration is at

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html

but, unfortunately, I do not have Matlab.



And unfortunately this command is not in Octave (the open source 
version of Matlab)

I think you are going to have to do some programming.



Re: Lyx and algorithm

2006-02-03 Thread Stephen Buonopane


On Feb 3, 2006, at 12:39 PM, Bruno Pinaud wrote:


Hi,
Is it possible to have the algorithms number working like figures 
number or
tables number ? i.e. The number of the chapter followed by the number 
of the

figure for example and resetting the counter at the beginning of each
chapter.


Add the following to your preamble

\numberwithin{algorithm}{chapter}



Re: Sequential numbering, not AMS

2006-02-03 Thread Stephen Buonopane


On Feb 3, 2006, at 1:05 PM, Maria Gouskova wrote:


Hi,

I was wondering whether it is possible to modify the behavior of the 
Enumerate style in LyX so that numbering is sequential throughout the 
document without embedding other environments in the Enumerate 
environment. Most importantly, I need numbering to not restart after 
new Sections and Subsections. Here is an example of what I need to 
accomplish:


1 Section 1

1. example 1
2. example 2
   a. subexample 2a
   b. subexample 2b

Standard text between examples, not embedded. After this paragraph, 
numbering continues:


3. example 3
4. example 4

2 Section 2

Standard text

5. example 5
6. example 6

and so on.

I am aware of the packages covington.sty and gb4e.sty, but they 
conflict with some other packages I need to use on a regular basis... 
I even created a modified article.layout file with covington.sty as a 
special Numbered environment, but i was wondering if there is 
something simpler that I could do with \setcounter in the preamble, 
for example.


I have tried using the document class article (AMS, sequential 
numbering), but it doesn't seem to do what I described above, either.


Thanks in advance, and sorry if I missed something obvious. (I'm a 
LyX/LaTeX newbie.)


Maria



Try the mdwlist package
Search the archives for some previous posts about how to incorporate it 
into LyX




Re: how to force a straight quote (") ??

2006-02-08 Thread Stephen Buonopane

On Feb 8, 2006, at 11:37 AM, Kevin Pfeiffer wrote:


Hi all,

(in a bit of a panic here)

How do I force straight quote marks? As in:   5'-0"

I used the Insert -> Special Character -> Ordinary Quote

... and this worked fine in a simple test doc, but while checking the
last book proof I discovered that these (which are inside a table) were
converted to _closing  curly_ quotes (English).

(Help, please?)

-Kevin



--
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations



you can also use in ERT
\textquotesingle
and
\textquotedbl



Re: pdfpages \includepdf not working

2006-05-04 Thread Stephen Buonopane


My LyX document and the PDF are saved in the same folder, and I'm 
using the following in an ERT:

\includepdf[pages==-]{Questionnaire.pdf}



I have had trouble in the past with the dash to indicate all pages.
Try putting the first and last page numbers, e.g. [pages=1-5]



Re: mdwlist

2006-05-22 Thread Stephen Buonopane

On May 22, 2006, at 4:14 PM, Christian Beermann wrote:


Hi,
I hope I#m right with my question on this list. I use lyx since some 
year for

nearly all stuff at university.
Because the itemize list consumes a lot of space i use the package 
"mdwlist"
in my lyx doc's. But then I have to use ERT to produce a list in lyx 
like:


\begin{itemize*}
\item asdfsdf
\item asdfsdfsa
\item asdfasdf
\end{itemize*}

Is there any way to replace in the lyx doc itemize by itemize* ?



Search in the archives. I previously posted a layout file that allows 
mdwlists to be created without ERT.




Re: LyX and TeXShop

2006-06-02 Thread Stephen Buonopane
Does TeXShop make a better previewer than the default (Preview) for 
LyX/Mac? To change the viewer to TeXShop in LyX/Mac 1.4.1, I put -a 
texshop in the viewer space after doing Preferences > File formats > 
PDF (pdflatex). But viewing a LyX file then gave an error. Does 
texshop have to be by itself in the Applications folder? downloading 
mactex left TeXShop in a folder called TeX in the Applications folder, 
and not having sufficient authority I can't move it.


I use TexShop as my pdf viewer for LyX. It is the only OS X viewer that 
I know of that will update automatically when the pdf file changes. 
This way you can leave the pdf open in TexShop and use View->Update in 
LyX.


I installed TexXhop directly, so it is in the top level of my 
Applications folder. But you can put the full path name in the LyX 
preferences. Not sure where it looks by default. I have open -a 
'TeXShop'  Maybe you need the single quotes? Did you try a 
Reconfigure...Quit...Relaunch?





Re: Printing from LyX on a mac

2008-02-08 Thread Stephen Buonopane


Hi, I've been using LyX for years -- since maybe 1.2 or earlier.  
I've always been able to print well-formatted out-put directly from  
LyX. But now on 1.5.3 I cannot.
I have dvips defined as the print command in preferences. And it  
does print but it cuts off the footer no matter what I do.
I can print from the dvi directly where this is not a problem but  
then I can't specify odd or even pages like I can by printing  
directly from LyX.
Does anyone know what I missing here that I might be able to  
recover my ability to print fully formatted docs in LyX 1.5.3?




I have never had a problem printing from LyX on a mac. I have not  
changed any of the defaults in the preferences.
You might try printing to a ps file from the LyX print dialog and  
then opening it in Preview. If the footer is visible then I would say  
the problem is with your printer driver, not LyX setup.

I have had footers cut off when printing from other programs like Word.
good luck








Re: Mac OSX LyX Install: No templates included

2008-02-19 Thread Stephen Buonopane


On Feb 19, 2008, at 9:33 PM, James Miller wrote:


Hi all,

After attempting to read through the tutorial, I noticed it  
mentioned that LyX included sample templates to edit and get a  
running start. When I go to File...New from Template the  
directory is empty.


Am I doing something wrong? Or did something go wrong with my install?



You should have a directory at
username/Library/Application Support/LyX-1.5/templates/

The default path for File...New from Template is set from  
Preferences->Paths


hope that helps


Re: Mac OSX LyX Install: No templates included

2008-02-19 Thread Stephen Buonopane


On Feb 19, 2008, at 9:49 PM, James Miller wrote:






On Feb 19, 2008, at 9:33 PM, James Miller wrote:


Hi all,

After attempting to read through the tutorial, I noticed it  
mentioned that LyX included sample templates to edit and get a  
running start. When I go to File...New from Template the  
directory is empty.


Am I doing something wrong? Or did something go wrong with my  
install?




You should have a directory at
username/Library/Application Support/LyX-1.5/templates/

The default path for File...New from Template is set from  
Preferences->Paths


hope that helps



Thanks for the quick reply Stephen,

Unfortunately that directory is empty. I popped over to it in  
terminal and also saw that the permissions were set correctly.


Any ideas? Bug in the installer? Is there a place to download just  
the contents of the template dir? Everything else seems to be  
working just fine.



Sounds like the installer did not put things in the right place.   
Maybe try running the installer set-up script again.

Does it leave a text file somewhere with the details of the install?
Bennett is the expert on the Mac installer so hopefully he will have  
some ideas.
You might be able to extract and copy the templates directory from  
the install package. I don't think there is anything special about them.






Re: WRB - Problems with LaTeX

2008-03-19 Thread Stephen Buonopane


I need an italic *s* character which has a prime symbol above
it.

I have tried variations of

\emph\skew9\acute sand  \it\skew9\acute s



how about
\acute{s}
in math mode?


Re: Postscript preview

2006-08-09 Thread Stephen Buonopane


On Aug 9, 2006, at 2:28 PM, TechTonics wrote:

LB wrote:
Having already generated the image files in MATLAB, try temporarily 
hiding all the Cygwin and Matlab copies of the GS executable (say by 
adding a $ to the start of their names, which is easy to undo 
afterward).  Then run LyX and see if the images load properly.

No they don't.
Leo




I haven't been following this thread so I'm not sure what the original 
problem was, but I saw Matlab and preview in the above posting.
Make sure you are saving your Matlab graphics as eps  _without_ the 
tiff preview. LyX makes its own preview with gs. The embedded tiff 
preview does not work with LyX, or plain old LaTeX.




LyX 1.4.2 on Mac Troubles

2006-09-06 Thread Stephen Buonopane
I have finally upgraded from LyX 1.3.5 to 1.4.2 after finishing a big  
project in 1.3. LyX 1.4.2 seems to launch fine, but when I try to  
open a new document I get the "Can't load document class error".  
Eventually a new document opens, but every click or keystroke brings  
up the spinning beach ball and eventually LyX hangs. Activity viewer  
shows a python script running  and eating up 75-80% of the CPU before  
it hangs. I presume it is configure.py? But I'm not sure what the  
problem is? I've tried reconfigure, rehash and all the text classes  
show up in the TeX Info window.  Any ideas?


Steve


Re: LyX 1.4.2 on Mac Troubles

2006-09-06 Thread Stephen Buonopane


On Sep 6, 2006, at 10:44 AM, Bennett Helm wrote:


On Sep 6, 2006, at 9:05 AM, Stephen Buonopane wrote:

I have finally upgraded from LyX 1.3.5 to 1.4.2 after finishing a  
big project in 1.3. LyX 1.4.2 seems to launch fine, but when I try  
to open a new document I get the "Can't load document class  
error". Eventually a new document opens, but every click or  
keystroke brings up the spinning beach ball and eventually LyX  
hangs. Activity viewer shows a python script running  and eating  
up 75-80% of the CPU before it hangs. I presume it is  
configure.py? But I'm not sure what the problem is? I've tried  
reconfigure, rehash and all the text classes show up in the TeX  
Info window.  Any ideas?


Is there any output in Console.app as this happens?

You might also try running LyX from the Terminal to show debugging  
information. The following will spit out too much info, but it  
would be interesting to see what it says when you try then to open  
a new document:


/Applications/LyX.app/Contents/MacOS/lyx -dbg any

(Of course, substitute the appropriate path to LyX.app for / 
Applications if you have LyX somewhere else.)


Bennett


Below is what I get in the console, similar output from lyx -dbg.
It just keeps sending out the same error output over and over until I  
force quit.

I noticed that my permissions on ~/Library/ are set to "rwx--".
Does that prevent lyx.app from reading the layout files?


= Wednesday, September 6, 2006 12:06:31 PM US/Eastern =
LyXComm: Pipe /Users/sbuonopa/Library/Application Support/ 
LyX-1.4/.lyxpipe.in already exists.
If no other LyX program is active, please delete the pipe by hand and  
try again.

Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 49 of file /tmp/ 
lyx_tmpdir689V3CzBN/689LjeaBh]
LyX: Error reading inputfile: /Users/sbuonopa/Library/Application  
Support/LyX-1.4/layouts/stdclass.inc [around line 9 of file / 
Applications/LyX.app/Contents/Resources/layouts/article.layout]
Error reading `/Applications/LyX.app/Contents/Resources/layouts/ 
article.layout'

(Check `article')
Check your installation and try Options/Reconfigure...
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation



Re: LyX 1.4.2 on Mac Troubles

2006-09-06 Thread Stephen Buonopane


On Sep 6, 2006, at 12:30 PM, Bennett Helm wrote:


On Sep 6, 2006, at 12:14 PM, Stephen Buonopane wrote:


On Sep 6, 2006, at 10:44 AM, Bennett Helm wrote:


On Sep 6, 2006, at 9:05 AM, Stephen Buonopane wrote:

I have finally upgraded from LyX 1.3.5 to 1.4.2 after finishing  
a big project in 1.3. LyX 1.4.2 seems to launch fine, but when I  
try to open a new document I get the "Can't load document class  
error". Eventually a new document opens, but every click or  
keystroke brings up the spinning beach ball and eventually LyX  
hangs. Activity viewer shows a python script running  and eating  
up 75-80% of the CPU before it hangs. I presume it is  
configure.py? But I'm not sure what the problem is? I've tried  
reconfigure, rehash and all the text classes show up in the TeX  
Info window.  Any ideas?


Is there any output in Console.app as this happens?

You might also try running LyX from the Terminal to show  
debugging information. The following will spit out too much info,  
but it would be interesting to see what it says when you try then  
to open a new document:


/Applications/LyX.app/Contents/MacOS/lyx -dbg any

(Of course, substitute the appropriate path to LyX.app for / 
Applications if you have LyX somewhere else.)


Bennett


Below is what I get in the console, similar output from lyx -dbg.
It just keeps sending out the same error output over and over  
until I force quit.

I noticed that my permissions on ~/Library/ are set to "rwx--".
Does that prevent lyx.app from reading the layout files?


= Wednesday, September 6, 2006 12:06:31 PM US/Eastern =
LyXComm: Pipe /Users/sbuonopa/Library/Application Support/ 
LyX-1.4/.lyxpipe.in already exists.
If no other LyX program is active, please delete the pipe by hand  
and try again.

Cannot read layout file `'.
LyX: Error reading inputfile:  [around line 49 of file /tmp/ 
lyx_tmpdir689V3CzBN/689LjeaBh]
LyX: Error reading inputfile: /Users/sbuonopa/Library/Application  
Support/LyX-1.4/layouts/stdclass.inc [around line 9 of file / 
Applications/LyX.app/Contents/Resources/layouts/article.layout]
Error reading `/Applications/LyX.app/Contents/Resources/layouts/ 
article.layout'


This tells me that you've got stdclass.inc in your LyX *User's*  
folder, which I'm assuming you must have customized for your 1.3.x  
installation. When you upgraded to 1.4.2, the LyX-Installer copied  
your LyX User's folder from ~/Library/Application Support/LyX to ~/ 
Library/Application Support/LyX-1.4. However, I suspect the problem  
is the resulting incompatibility between the layout files (and  
hence stdclass.inc) between 1.3.x and 1.4.x.


So, if you move stdclass.inc out of the LyX-1.4 User's folder and  
restart LyX, this problem should be solved. (I hope!)


Bennett





Yes, that was the problem. I removed my customized stdclass.inc from  
the Users layout folder and everything works fine.
What is the difference with the new layout format? Do I just need to  
add "Format 2" at the beginning? I have a number of other customized  
layout files that I would like to keep using. Thanks for the help.




Re: LyX 1.4.2 on Mac Troubles

2006-09-06 Thread Stephen Buonopane


On Sep 6, 2006, at 1:04 PM, Georg Baum wrote:


Am Mittwoch, 6. September 2006 18:42 schrieb Stephen Buonopane:


Yes, that was the problem. I removed my customized stdclass.inc from
the Users layout folder and everything works fine.
What is the difference with the new layout format? Do I just need to
add "Format 2" at the beginning? I have a number of other customized
layout files that I would like to keep using. Thanks for the help.


No, there are more changes. Actually the missing "Format 2" line  
tells LyX
that it is an old layout file and it will convert it on the fly to  
the new

format before reading it.
Your modified old layouts should still work, as long as you did not  
modify
one of the standard .inc files. If they don't, look at the console  
output

and post it here. If you want to convert them permanently to the new
format, use the layout2layout python script that comes in the scripts
folder of your LyX installation:

python layout2layout.py old.layout new.layout


Georg



Thanks. I ran one of my layout files through layout2layout and all it  
seemed to do was add Format 2 at the beginning. But I guess it was a  
pretty simple layout. I looked at a few of the standard layout files  
and they all had Format 2. Can you point me to a 1.4 layout file in  
the new format? Just curious to see some of the differences.


Steve



Re: Filename in document

2006-09-08 Thread Stephen Buonopane


On Sep 8, 2006, at 6:55 AM, Susanne Gütter wrote:


Dear lyx-user,

how can I get the name of my document into the document or into the  
preview?

I don't find any solution in the references.

Regards

Susanne


The latex command is \jobname

I use the following in ERT to put it in the lower right corner (with  
fancy pagestyle)

\rfoot{\textrm{\tiny \jobname}}

Re: EPS Shrinks Numerals

2006-10-04 Thread Stephen Buonopane


On Oct 4, 2006, at 10:14 AM, Bruce Pourciau wrote:

Using Mathematica I created a figure that contains axes labeled  
with numerals. When this figure was saved as an eps file, included  
a lyx file, and then printed (after View > pdflatex), the numerals  
in the output appear to be about twice the size of the originals in  
the Mathematica file.


Does anyone know what's going on here and whether this behavior can  
be stopped or controlled? I would have tried saving the figure as a  
pdf file, rather than an eps file, to see if that helped, but  
Mathematica does not offer that option.


Bruce


You might try View -> ps2pdf instead of pdflatex.


Re: Accents in LyX/Mac

2006-12-06 Thread Stephen Buonopane


On Dec 6, 2006, at 4:55 PM, Maria Gouskova wrote:


> Depending on the accent you want (acute or grave), insert the
> following in ERT:
>
> \'e
> \`e
>



This *shouldn't* be required. I can type accents in LyX just like I
can in any other application on Mac (with the exception that when I
hit -e initially in LyX, I don't see the acute accent
appearing above the cursor as is normal for other applications,
though when I hit the second e (without the  key), I get the
"é" character).


This is very cool (I'm relatively new to Macs, so I didn't know about
this input method). But it doesn't work for me, either. Details below.



I have the same behavior as Maria. No accents.
I am using OS X 10.4.8 and LyX 1.4.2 with mac.bind.



Re: Help with mis-converted accents

2006-12-20 Thread Stephen Buonopane


On Dec 20, 2006, at 4:48 PM, Stefano Franchi wrote:



On 20 Dec, 2006, at 1:26 PM, Bennett Helm wrote:


On Dec 20, 2006, at 2:22 PM, Charles de Miramon wrote:


Stefano Franchi wrote:



Oops! here it is:


It works here. It must eb a Mac specific bug.


Works for me, too (Intel Mac).



More and more frustrating...can anyone on a PowerPC Mac please give  
it a try? Try exporting to LaTeX the enclosed lyx file and  
reimporting into into LyX. Does it work?
Perhaps the problems I am encountering have to do with my TeX  
setup. Although, I did try to open the .tex file in TeXShop and it  
compiles all right.


S.






Works fine for me on LyX1.4.2 PowerBook 12" OS X10.4.8.



Re: Help with mis-converted accents

2006-12-20 Thread Stephen Buonopane




More and more frustrating...can anyone on a PowerPC Mac please  
give it a try? Try exporting to LaTeX the enclosed lyx file and  
reimporting into into LyX. Does it work?
Perhaps the problems I am encountering have to do with my TeX  
setup. Although, I did try to open the .tex file in TeXShop and  
it compiles all right.


S.
No issues here either. Under LyX 1.3.7 & 1.4.3 with PowerPC Mac  
and Fink (tetex).


Well, I have LyX 1.4.3 and a TeX system installed with the  
iInstaller . Here is what shows up in the console when I try to  
reimport the file into LyX:


Unable to determine the system directory having searched
/usr/local/Resources/lyx/
Try the '-sysdir' command line parameter or set the environment  
variable LYX_DIR_14x to the LyX system directory containing the  
file `chkconfig.ltx'.




It seems to me that it should be looking in
/Applications/LyX/Resources


Bullets menu on LyX/Mac

2007-01-18 Thread Stephen Buonopane

I just noticed that the menu for changing bullet types
Documents Settings Bullets
has the bullet icons inverted with white characters on a black  
background which makes it very difficult to see.

Can anyone else confirm this?
I am using LyX 1.4.2 on Mac OS X 10.4.8

steve


Repost: Bullets menu on LyX/Mac

2007-01-19 Thread Stephen Buonopane
Sorry for the repost, but the original thread seems to have been  
'captured' by another poster who changed the topic.
The problem with the bullets described below has been confirmed by  
two others on Mac.


Does it occur in Windows? Linux?
I looked in Preferences...Colors and did not see a way to change the  
button background.

Can it be changed in the default ui file?
The xpm files for the bullets menu have a transparent background.  
Perhaps that is related to the problem?

Should I report it at bugzilla?

Steve


I just noticed that the menu for changing bullet types
Documents Settings Bullets
has the bullet icons inverted with white characters on a black  
background which makes it very difficult to see.

Can anyone else confirm this?
I am using LyX 1.4.2 on Mac OS X 10.4.8

steve



Same for me under LyX 1.4.3 on Mac OS X 10.4.8.


Same for me, LyX 1.4.3, Mac OS X 10.4.8


strange insert graphics behavior

2007-01-22 Thread Stephen Buonopane

1) Open a new file in LyX 1.4.
2) Press the insert graphics button on the toolbar
3) Select a graphics file (anything will do)
4) Press Apply and wait for the preview to appear in the LyX window.  
Don't close the graphics window or bring the main LyX window to the  
foreground.

5) Now change the Show in LyX scale to something other than 100%.
6) Press Apply again.

Rather than changing the scale of the previous graphic LyX inserts a  
second copy of the graphic with the new scale!
Previous versions of LyX would just rescale the existing graphic.  
That seems preferrable behavior to me, rather than have to go back to  
LyX and click on the image before rescaling.


LyX 1.4.3 on Mac OS X 10.4.8

Steve


Re: FancyHDR and Horizontal Line

2007-04-17 Thread Stephen Buonopane


I've used fancy header to create decorative lines at the top and  
bottom of pages in a new book, but when I insert Sections first  
thing on my new page (followed by a horizontal line) the white  
space between the header and the section is bigger than the white  
space between the section and the horizontal rule. Ideally, I would  
like to decrease the upper white space, but redefining through  
fancyhdr doesn't seem to be within my grasp.


**Example**

Header: 

Section: Section Title
H.Rule:  


The extra white space above Section is probably associated with the  
Section environment. So you might try redefining the section  
environment, or using a package like "titlesec" which makes it a bit  
easier. A more crude hack might be to add a negative vertical space  
above the section.


Re: 1.5.0b2 binary for Mac?

2007-04-25 Thread Stephen Buonopane

Works for me, too.
PPC OS 10.4.8


On Apr 25, 2007, at 9:07 AM, James wrote:


I successfully downloaded, decompressed, and executed the binary.

James



On 4/25/07 6:56 AM, "Bennett Helm" <[EMAIL PROTECTED]> wrote:


On Apr 25, 2007, at 8:37 AM, Maria Gouskova wrote:


Dear LyX users,

I tried to download LyX-1.5.0b2-Mac-Universal.zip from
ftp://ftp.devel.lyx.org/pub/lyx/pre/, but I get the following error:

"The Finder cannot complete the operation because some data in
"LyX-1.5.0b2-Mac_Universal.zip" could not be read or written."

This happens with 1.5.0b1, as well, and I can reproduce it on two
different Macs (Intel 10.4.9 and PowerPC 10.4.9). Neither  
computer has

any problems with other zip files.

Any thoughts on what's causing this?

Maria


It works for me (but then I created the package: Intel, 10.4.9). Is
the problem in downloading or in unzipping?

Is anyone else having this problem?

Bennett


--
James C. Sutherland, Asst. Professor, Dept. of Chemical Engineering
The University of Utah
50 S. Central Campus Dr, 3290 MEB
Salt Lake City, UT 84112-9203
Tel: (801) 585-1246
http://www.che.utah.edu/~sutherland




Re: path to .lyx on MAC

2010-05-26 Thread Stephen Buonopane
I am using Lyx 1.6.6 on Mac, I noticed I do not have  $HOME/.lyx/ 
layouts/, so I am wondering where I put a custom made module?


/Users/username/Library/Application\ Support/LyX-1.6





Re: Dumb Captioning Question

2010-06-03 Thread Stephen Buonopane


I want to have some tables in a document, and I want the tables to  
have captions.


But I want the positions of the tables to be pinned down -- i.e. I  
don't want to use normal floats.


So -- is there a way to have a "non-floating float" to contain my  
table and caption, or is there a way to pin a caption onto a table  
without a float?  Or is there a Third Way that I'm not imagining?




Insert your float and table
Edit > Float Settings > Here Definitely




Re: EPS Files Without Preview

2010-07-21 Thread Stephen Buonopane

On Jul 21, 2010, at 3:16 PM, Bruce Pourciau wrote:

In the past, inserting graphics in eps format has worked beautifully  
in LyX, as long as the files were saved with no preview attached to  
them. Eps files with a preview cause an error ("An error occurred  
whilst running epstopdf"), and the pdf compiles with an empty space  
where the figure should be. Someone has scanned in some figures for  
me, cleaned them up (using In Design, I think), and then saved them  
as eps files. They say they have saved them without any preview  
attached, but when I insert them and try to view the document, I get  
the same error I always have gotten when there's a preview.


Any thoughts? Could there be some kind of preview still attached?

Bruce



A few things to try...
1. If you are using pdflatex in LyX, then save the files from Adobe as  
pdf instead of eps. I think this will avoid the preview issue  
altogether.

2. In Adobe use Print to PDF or Print to Postscript instead of Save As.
3. From the terminal, try eps2eps or ps2ps on your file. This may  
strip the preview.


Steve


Re: pdfpages: remove blank page between two included pdfs?

2010-11-04 Thread Stephen Buonopane


On Nov 1, 2010, at 5:08 PM, Liviu Andronic wrote:


Dear all
I am using pdfpages to include pdf pages into my LyX document.
However, when I have two pdf files included this way, one immediately
after the other, the resulting pdf will include a blank page between
the two included pdfs. Is there a way to remove the blank page?



Have you tried reducing the page size with the scale command
for example
\includepdf[pages={-},scale=0.85]{myfile.pdf}



Re: People can't read my pdf's

2011-04-12 Thread Stephen Buonopane


On Apr 12, 2011, at 7:06 PM, Maria Gouskova wrote:


On Tue, Apr 12, 2011 at 2:43 PM, David L. Johnson
 wrote:

On 04/12/2011 01:52 PM, Maria Gouskova wrote:


Dear LyX users,

For the past week or so, people have been having trouble opening and
printing PDF files I generate with LyX. I am trying to figure out  
what

changed. My details:

LyX 1.6.9
Mac OS 10.6.7
PDF viewer: Preview.app 5.0.3

With this setup, I can view my PDFs just fine, and they print fine  
as

well. People using Acrobat Reader (9 or 10, both Mac and Windows)
report that everything but the title of the file comes out looking
like dots, and I verified this on another Mac that has Acrobat
installed. Preview.app worked fine. The Acrobat error message reads,

"Cannot extract the embedded font 'TXVCLW+SFRM1095'. Some characters
may not display or print correctly."


There are several different ways to export as pdf, and the pdf files
generated by various methods are not the same.  This one probably  
depended
upon specific fonts that your people did not have installed. This  
is common
for us linux users.  pstopdf gives, usually, readable output, but  
text may

not be selectable.

--

David L. Johnson


Oh, I should have mentioned that I've tried:

pdflatex
ps2pdf
DVI
dvipdfm

So it's something that is either a problem introduced by an update of
Mac OS, or it's an Acrobat problem.






Widespread font problem with Mac OS X10.6.7
See here...
http://discussions.apple.com/thread.jspa?threadID=2792142&start=0&tstart=0

No known resolution yet other than downgrading to 10.6.6.




Re: place figure at the end

2011-07-27 Thread Stephen Buonopane



In my lyx document I wish to put the figure approximatively where
they should be in the final document. However, I wish, in a draft
version, to have all the figures coming at the end of the document.
Is there an option to do so ?


Try the endfloat package. In the preamble put
\usepackage{endfloat}

Or if you do not have a lot of figures you could manually select the  
float setting and change to "Here definitely"





Re: More space for document

2023-01-13 Thread Stephen Buonopane


> On Jan 13, 2023, at 2:54 PM, Paul Stansell  wrote:
> 
> 
> On Fri, 13 Jan 2023 at 18:44, Richard Kimberly Heck  > wrote:
> 
> FYI, Paul, there's also a full screen mode in LyX (which I think Pavel 
> implemented), if you really want more space.
> 
> I didn't know about that either (I'm learning so much from the answers to my 
> simple question).  It would be nice is to be able to fully customise the 
> toolbars, then I could add just the icons I use regularly, which would easily 
> fit in a single row. 

Yes, you can fully customize the toolbars
https://wiki.lyx.org/LyX/UserInterface 

It’s been a long time since I have done it, but I recall it was just editing 
some text files.
I have even made my own toolbar icons for functions that I use a lot, but that 
were not included in the default set.

Good luck,
Steve

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Removing period following section reference

2017-09-29 Thread Stephen Buonopane

> On Sep 28, 2017, at 11:09 PM, Christos Makridis  wrote:
> 
> Hey Lyx Community,
> 
> I've spent some time searching online for a resolution to this, but haven't 
> found much.
> 
> The issue is as follows.
> 
> Suppose I write a section in the appendix (insert appendix here) like:
> 
> \section{data details}
> \label{sec:data}
> 
> But then I refer to:
> 
> Appendix Section \label{sec:data}
> 
> It will show up as Appendix Section A1.
> 
> Note that lyx places the period there automatically even if I do not put one.
> 
> Does anyone know how to remove that?
> 
> Thank you as always for your expertise!


I believe that you will need to use commands from the titlesec package in ERT 
and/or the preamble. 
I don’t think there is anyway to do it directly with LyX commands or menus.

steve




Re: Formatting name/date to be filled by others

2018-04-10 Thread Stephen Buonopane
On Apr 10, 2018, at 7:49 PM, Rich Shepard  wrote:
> 
> On Tue, 10 Apr 2018, Rich Shepard wrote:
> 
>> Of course, \hspace{} and \vspace{} will place these appropriately. What I
>> seek is a way to add the solid underline for a defined length and at a
>> specified place. Would \hfill{} be the appropriate macro? I've used it to
>> place spaces but not baselines.
> 
>  Forgot to mention I found nothing relevant in The LaTeX Companion (2nd Ed)
> or the LaTeX Graphics Companion.
> 
>  I suppose I could create a PSTricks .pdf and insert it on the page.
> 
> Rich

Try following command in ERT
\rule{3in}{0.5pt}



Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Stephen Buonopane



> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
> 
> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
>> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
>>> On 11/11/2018 19:14, Paul A. Rubin wrote:
 On 11/10/18 9:45 PM, Baris Erkus wrote:
> Hello,
> 
> PDF graphics appears to be blurred in LyX when scaled from Graphics
> Options --> LaTeX and LyX options --> Show in LyX --> Scale on Screen.
> 
> I am not sure if this is a feature to reduce CPU rendering workload or
> smtg, but it would be really nice to have a clear view of the PDF
> while working on the document rather than looking at it using a PDF
> viewer.
> 
> See MWE and the view from LyX below.
> 
> Baris
> 
> 
 The image in your PDF file is a bitmap (PNG), so I don't hold out much
 hope for being able to zoom it without loss of fidelity.
>>> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
>>> it and never got any pixels to see. At least it must be an extremely
>>> high resolution bitmap then.
>>> 
>>> Daniel
>>> 
>> Because PNG format is bitmap?
>>  PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>> 
>>  Kornel
>> 
> The external graphics is in PDF, which is attached to the original 
> e-mail; it was generated in Tikz, so it is a vector graphics. No 
> question about it.  When inserted into LyX, maybe LyX creates a 
> temporary bitmap or PNG file to show to the user, I am not sure.
> 
> It should not be a big thing to show a higher resolution graphics or to 
> let the user decide for possible performance issues. One day I will be 
> doing all these small modification by myself, but when that I do not 
> know... :-)
> 
> Baris


Yes LyX creates a PNG file for the on-screen preview within LyX (It also does 
this for the math preview)
If you dig into the LyX temp directory you will find all of the PNG files.

I recall that an older version of LyX (on Mac) did not use PNG for on-screen 
previews, in which case it may be possible to revert to the older behavior even 
in 2.3.X?






Re: Ventura graphics Mac

2023-01-23 Thread Stephen Buonopane


> On Jan 21, 2023, at 4:02 PM, Christopher Menzel  
> wrote:
> 
> Udi wrote:
>> I think this bug is already reported here 
>> , it seems that you can enter the 
>> Unix file path into the "File:" field manually. 
>> 
>> It's not a perfect solution, but it might solve your problem in the meantime.
> 
> Can confirm.
> 
> This definitely appears to be a Ventura thing. I can’t insert graphics on my 
> 2021 MacBook Pro using either 2.3.6.2 or 2.3.7 but both versions work just 
> fine on my old iMac under Big Sur. You can mitigate the pain of the kludgy 
> workaround a little bit by locating your desired graphic in the Finder, right 
> clicking and selecting “Get Info”. This will bring up an info window that 
> contains the full Unix path to the containing directory that you can copy and 
> paste into the “file:” field in the LyX pop-up for inserting graphics. You’ll 
> still have to type in the file name, but the process is still easier than 
> typing in the whole path, especially if you use cloud storage, which buries 
> your files pretty deeply under your home directory.

For those of you facing this issue, here are two other ways to copy the full 
path and file name, which I think are fewer mouse clicks than opening the Get 
Info..

1) In the Finder, right click on the file to bring up the contextual menu. Then 
press the option key. You will then see Copy “my file.pdf” change to Copy “my 
file.pdf” as Pathname. Paste into LyX Insert Graphics file field. Includes full 
path and file name. 

2) Make an Automator script for the above, so it shows up in the “Services” 
contextual menu.  Described here for an earlier version of MacOS
https://automationpanda.com/2017/09/07/copying-file-paths-from-finder-in-macos/ 

 Then you can just right click and select your automation script without the 
need to press the option key.

(I am not on Ventura yet, so I am assuming these still work in Ventura).

Steve-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Ventura graphics Mac

2023-01-23 Thread Stephen Buonopane


> On Jan 23, 2023, at 3:19 PM, Chris Menzel  wrote:
> 
> For those of you facing this issue, here are two other ways to copy the full 
> path and file name, which I think are fewer mouse clicks than opening the Get 
> Info..
> 
> 1) In the Finder, right click on the file to bring up the contextual menu. 
> Then press the option key. You will then see Copy “my file.pdf” change to 
> Copy “my file.pdf” as Pathname. Paste into LyX Insert Graphics file field. 
> Includes full path and file name. 
> 
> Holy smoke, I've been using MacOS since OS X 10.0 and (I'm embarrassed to 
> admit) I didn't know about this! It's massively better than my suggestion, 
> obviously. Any idea how long it's been around?

No idea. I have been using an automator script for this for the last 5 years or 
so. (Highly doubt it was there from OS X day one.)
In general if one “copies” or “drags" a file from Finder into a text based 
application (eg Terminal) you get the path and file name. Even works using the 
little icon in title bar of most apps (eg Preview). This has worked for on the 
order of 10 years.  


> 
> Just to note, I found another workaround for users of the fantastic utility 
> Launchbar that doesn't require using the Finder at all. If you call up 
> Launchbar with your hotkey, typing a few characters unique to your graphic's 
> filename will bring the filename up in your Launchbar window. Hitting 
> right-arrow or Ctrl-F will then bring up a list where the second item is the 
> full pathname for the file, which can be copied to the clipboard with a Cmd-C.
> 
> -chris 

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problems with insert Graphics on MacOS

2023-07-18 Thread Stephen Buonopane
On Jul 18, 2023, at 8:43 AM, Sarah Stelter via lyx-users 
 wrote:
> 
> Dear Lyx Team, 
> 
> I installed a new version of Lyx Version 2.3.7 on my MacOS Ventura Version 
> 13.3.1. 
> It worked before but now I can’t insert Graphics anymore without tipping the 
> path manually. 
> Basacly the browse function opens the finder, I select the graphic, click on 
> open, the window closes but nothing else happened. 
> If I insert the path manually there is no issue. 
> 
> Could you explain/ help me with the problem? 
> 

This is an unfortunately known bug under Ventura. 

There is a thread on it starting here 
http://lists.lyx.org/pipermail/lyx-users/2023-January/004830.html 

which includes some tips on copying and pasting the full path and file name 
using right-click and option key in the finder
http://lists.lyx.org/pipermail/lyx-users/2023-January/004871.html 


I am not sure if the developers have a fix in the works. 

Best of luck,
Steve

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Convert Mac Word and Thesis to LyX

2024-04-18 Thread Stephen Buonopane


> On Apr 17, 2024, at 4:57 PM, Brian Kneller via lyx-users 
>  wrote:
> 
> Hi, 
> 
> I hope I am in the correct space. — I have prepared a thesis for a PhD  (75K 
> words)and approx 80 figures, the text in Mac-word and the figures are in 
> Adobe Illustrator so I have some flexibility in Format. Also there are many 
> references. I hold all my references and comments on them in Bookends. I 
> regret not looking at lyx/latex and using them much earlier so I am looking 
> for an easy way to migrate this info into Lyx and I am also looking for a 
> Thesis  template. I have dowloaded and installed Lyx on my Macbook Pro 
> (Mavericks) and been thro the intro etc. I am trying to minimise the effort 
> in migration to Lyx so any comments and advice is most welcome.
> 

Here is a page with thesis templates for LyX
https://wiki.lyx.org/Examples/Thesis

If your university has a latex template, you can usually adapt that to LyX with 
some combination of using the Document->Settings->Preamble and the LyX layout 
file. 

Best,
Steve-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Help installing Lyx 1.2.1 on Mac OS X 10.1

2002-10-20 Thread Stephen Buonopane
I have been very pleased using Lyx on RedHat 7.3 on my work PC over the last 
6 months. I want to install it on my home computer which is Mac OS X 10.1.
I followed the directions listed on Herbert Voss's tips page and associated 
links. I have installed fink, XFree86, Orobor, Tetex and Xforms. Since the 
fink version of Lyx is still 1.6, I decided to compile Lyx 1.2.1 directly 
from the source. When I run configure I get the following result:

Configuration
  Host type:  powerpc-apple-darwin5.3
  Special build flags:included-libsigc
  C   Compiler:   cc
  C   Compiler flags: -g -O2
  C++ Compiler:   c++ (2.95.2)
  C++ Compiler flags: -O -fno-rtti -fno-exceptions
  Linker flags:   
  Frontend:   xforms
libXpm version:   4.11
libforms version: 0.89.8
  LyX binary dir: /usr/local/bin
  LyX files dir:  /usr/local/share/lyx
 The following problems have been detected by configure.
 Please check the messages below before running 'make'.
 (see the section 'Problems' in the INSTALL file)
** Cannot find libforms or libxforms. Please check that the xforms library
   is correctly installed on your system.

I believe that xforms is installed properly, and I have tried reinstalling it 
several times. I have also tried the options on configure to pass it the 
directories for xforms. The only xforms files I seem to have are "forms.h" 
and "libforms.a" Does anyone know what files it is looking for?

PS I have also tried the various environment variables suggested by Ronald 
FLorence and Jeff Whittaker, but I get the same error.

Thanks,
Steve Buonopane
Baltimore MD USA



Two LyX and Bibtex questions

2002-11-11 Thread Stephen Buonopane
1) Is there any way to control placement of parentheses in citations within 
LyX? i.e. can I get /shortciteN without using ERT?

2) How do I get Lyx/Bibtex to recongize *.bst files that are not in the 
standard  texmf directory? I have a bst file in 
/usr/local/share/texmf/bibtex/bst/mystyle.bst. When I run texhash it finds it 
and it is listed in ls-R. When I go under "View...TeX information" it is not 
listed, although other custom *.cls and *.sty fils are found. BibTex from 
command line also does not find mystyle.bst Is there some BibTex 
configuration that I need to run?

Thanks,
Steve Buonopane
Baltimore, MD USA



Re: insert filename

2011-09-23 Thread Stephen Buonopane


On Sep 23, 2011, at 7:31 AM, Horst Jurkat wrote:

i use "info-insert buffer name" to insert the current filename in  
the document.

Is there a possibility to do that without the fileextension (*.lyx)?



in TexCode (ERT)
\jobname




Re: LyX 2.0.1 (OS X): file with relative path name not found

2011-09-27 Thread Stephen Buonopane

On Sep 27, 2011, at 4:47 PM, Patrick De Visschere wrote:


Hello,

Including a .pdf file with \includegraphics and with a relative  
pathname like


\includegraphics{../path/to/file/starting/from/parent/directory/ 
some_file.pdf}


results in a "file not found" error from the pdftex.def package.

When exporting as .tex and processing with e.g. TeXShop there is no  
problem.


This problem occurs with LyX 2.0.1 under OS X; (not with LyX 2.0.0)

Regards,

P. De Visschere


Are you using \includegraphics in a TeX Code box?
Or through the insert graphics LyX interface?

The former will cause problems because of the way LyX does the Tex  
compile in a temporary directory, which is not where your relative  
path is pointing.
If you use the LyX interface,  it resolves all of the paths before  
passing it off to the latex command.


I have the same issue with the \includepdf command and have just  
learned to use full path strings.

(Yes I know there is now a LyX dialog for this command)
Or I think you can define a default pathname in the preamble, but it  
is kind of messy.


I am a bit puzzled why the behavior switched between 2.0.0 and 2.0.1?
But maybe someone on the dev team can help.

HTH
Steve


Re: LyX 2.0.1 (OS X): file with relative path name not found

2011-09-27 Thread Stephen Buonopane


On Sep 27, 2011, at 5:11 PM, Richard Heck wrote:


On 09/27/2011 04:47 PM, Patrick De Visschere wrote:

Hello,

Including a .pdf file with \includegraphics and with a relative  
pathname like


\includegraphics{../path/to/file/starting/from/parent/directory/ 
some_file.pdf}


results in a "file not found" error from the pdftex.def package.

When exporting as .tex and processing with e.g. TeXShop there is no  
problem.


This problem occurs with LyX 2.0.1 under OS X; (not with LyX 2.0.0)


There have been some changes to how LyX handles external paths. These
are noted in the RELEASE NOTES file. I would guess that is the  
source of

the problem. If you can't resolve it, post a note to the devel list.



Yes indeed, a welcome improvement!
See info here
http://www.lyx.org/announce/2_0_1.txt

I guess it is time for me to upgrade to 2.0.1
(and ignore my previous reply to this thread!)


Re: Lyx 2.0.1 not working on Lion

2011-10-01 Thread Stephen Buonopane


On Oct 1, 2011, at 1:22 PM, Steve Litt wrote:


On Saturday, October 01, 2011 06:33:14 AM Mark wrote:

Stephen,

the error message is:
   "You can't open the application lyx because PowerPC
applications are no longer supported."

And I checked through some other applications and I do have
Universal applications that run successfully so that's not it.

Mark


I know nothing about Mac, so an obvious question emerges in my mind:
What IN THE WORLD makes the computer think LyX is a PowerPC app? I
know nothing about Mac but I bet if you find the answer to that
question you'll be a lot closer to a solution.


I don't know if this option still exists in Lion, but try

select LyX.app icon in Finder
File -> Get Info
make sure "Open using Rosetta" is unchecked


Re: Adjusting LyX to do things by default

2011-11-17 Thread Stephen Buonopane


On Nov 16, 2011, at 11:01 PM, Kenedy Torcatt wrote:


1- How to center sections, subsections and table of content tittles by
default? nothing more the rest I need it on left side (no prob with
that)

2- How to establish size "normalsize" for subsections and table of
contents tittles by default instead of that bigger size that Lyx uses?



Try the titlesec package.
I used it on my thesis to do similar things.
You won't see the formatting on the LyX screen but the pdf output will  
be as desired.










Re: Adjusting LyX to do things by default

2011-11-17 Thread Stephen Buonopane


On Nov 17, 2011, at 6:08 PM, Kenedy Torcatt wrote:


Thankyou for your response, but I'm newbie at this, could let me know
how please? how to customize that code?



Here is what I have in my preamble (Document  > Settings > Latex  
Preamble)

to set all the section font sizes to 12pt

\usepackage{titlesec}
\titleformat{\section}[hang]{\normalfont\normalsize\bfseries} 
{\thesection}{12pt}{}
\titleformat{\subsection}[hang]{\normalfont\normalsize\bfseries} 
{\thesubsection}{12pt}{}
 \titleformat{\subsubsection}[hang]{\normalfont\normalsize\bfseries} 
{\thesubsubsection}{12pt}{}


titlesec has many other features, see the online docs at
http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/




Re: BibDesk: how to show references that are not used in text?

2012-07-30 Thread Stephen Buonopane

On Jul 30, 2012, at 11:07 AM, CP wrote:

> CP  gmail.com> writes:
> 
>> I'm using BibDesk for my literature and am trying to add more references to
> the reference list at the end of a paper without having referenced them in the
> text. Any ideas?
>> Thanks!
> 
> My current 'dirty' solution is to add the references that were not used in the
> text separately somewhere in the document and white them out. I'm still hoping
> for a better solution..
> 

Not sure if the can be done from BiBDesk or even LyX Gui, 
but the bibtex command you need is \nocite{}.
I have done it with ERT in LyX with no problems.




Re: Find and Replace window bug

2012-09-03 Thread Stephen Buonopane

On Sep 3, 2012, at 10:36 AM, Anders Høg wrote:

> In mac osx, the Find and Replace (Advanced) window's upper part gets stuck 
> under the menubar when opened. It's extremely annoying as the only way I seem 
> to be able to close it, is by changing resolution. Is this is a known bug?
> 
> Regards
> Anders
> 
> 

I can confirm same behavior on Mac OS X 10.7.4, LyX 2.0.4.
It is possible to dock the window in the main LyX window, so there must be a 
setting somewhere to make that the default.

Re: Put figures in figure float in center - the best way?

2012-09-12 Thread Stephen Buonopane
You can add something like this to your preamble
(does not affect how they appear in LyX preview of course)…

\renewenvironment{figure}[1][]{
 \@float{figure}
 \centering
 \singlespacing}
 {\end@float}
 
 \renewenvironment{table}[1][]{
 \@float{table}
 \centering
 \singlespacing}
 {\end@float}

On Sep 12, 2012, at 7:23 AM, Liviu Andronic wrote:

> On Wed, Sep 12, 2012 at 12:58 PM, Rainer M Krug  wrote:
>> There are (at least) two ways of centering a single figure / graphic 
>> horizontally in a figure float:
>> 
>> 1) using paragrahh properties - alignment - center
>> 
> I'm no expert, but this is what I usually do. And to me this seems the
> less hacky approach.
> 
> Liviu
> 
> 
>> 2) using a \hfill left and right of the figure
>> 
>> What is the better / more robust / more LaTeX way of doing this?
>> 
>> Thanks,
>> 
>> Rainer
>> 
>> - --
>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
>> UCT), Dipl. Phys.
>> (Germany)
>> 
>> Centre of Excellence for Invasion Biology
>> Stellenbosch University
>> South Africa
>> 
>> Tel :   +33 - (0)9 53 10 27 44
>> Cell:   +33 - (0)6 85 62 59 98
>> Fax :   +33 - (0)9 58 10 27 44
>> 
>> Fax (D):+49 - (0)3 21 21 25 22 44
>> 
>> email:  rai...@krugs.de
>> 
>> Skype:  RMkrug
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.11 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>> 
>> iEYEARECAAYFAlBQau0ACgkQoYgNqgF2egp7FgCeIHyhYT/x+bJzqoANM9Muapeo
>> vi4An28oDskmG/XKqdTgVLKPvJlhfRiZ
>> =88Df
>> -END PGP SIGNATURE-
> 
> 
> 
> -- 
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



Re: Put figures in figure float in center - the best way?

2012-09-12 Thread Stephen Buonopane

On Sep 12, 2012, at 9:21 AM, Rainer M Krug wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 12/09/12 15:15, Rainer M Krug wrote:
>> On 12/09/12 14:19, Stephen Buonopane wrote:
>>> You can add something like this to your preamble (does not affect how they 
>>> appear in LyX 
>>> preview of course)…
>> 
>>> \renewenvironment{figure}[1][]{ \@float{figure} \centering \singlespacing} 
>>> {\end@float} 
>>> \renewenvironment{table}[1][]{ \@float{table} \centering \singlespacing} 
>>> {\end@float}
>> 
>> Now this is a neat idea - haven't thought about that. Saves me quite some 
>> work.
> 
> But I was to fast. I get an error:
> 
> ! Undefined control sequence.
> \\figure ...at {figure} \centering \singlespacing
> 
> l.177 \begin{figure}[H]
> 
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., `\hobx'), type `I' and the correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
> 
> Any suggestions?
> 
> Rainer
> 

I have not used it recently, but I get the same error you do.
I copied it from Herbert Voss' tips and tricks page many years ago. 
It worked then, but I am not sure what has changed.

Actually…it looks like the /singlespacing command is causing the problem.
Delete that and the centering still works.

Steve

>> 
>> Thanks,
>> 
>> Rainer
>> 
>> 
>>> On Sep 12, 2012, at 7:23 AM, Liviu Andronic wrote:
>> 
>>>> On Wed, Sep 12, 2012 at 12:58 PM, Rainer M Krug  wrote:
>>>>> There are (at least) two ways of centering a single figure / graphic 
>>>>> horizontally in a 
>>>>> figure float:
>>>>> 
>>>>> 1) using paragrahh properties - alignment - center
>>>>> 
>>>> I'm no expert, but this is what I usually do. And to me this seems the 
>>>> less hacky
>>>> approach.
>>>> 
>>>> Liviu
>>>> 
>>>> 
>>>>> 2) using a \hfill left and right of the figure
>>>>> 
>>>>> What is the better / more robust / more LaTeX way of doing this?
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> Rainer
>>>>> 
>>>>> - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation 
>>>>> Biology, UCT), 
>>>>> Dipl. Phys. (Germany)
>>>>> 
>>>>> Centre of Excellence for Invasion Biology Stellenbosch University South 
>>>>> Africa
>>>>> 
>>>>> Tel :   +33 - (0)9 53 10 27 44 Cell:   +33 - (0)6 85 62 59 98 Fax 
>>>>> :   +33 - 
>>>>> (0)9 58 10 27 44
>>>>> 
>>>>> Fax (D):+49 - (0)3 21 21 25 22 44
>>>>> 
>>>>> email:  rai...@krugs.de
>>>>> 
>>>>> Skype:  RMkrug
> 
>> 
> 
> - -- 
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
> UCT), Dipl. Phys.
> (Germany)
> 
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
> 
> Tel :   +33 - (0)9 53 10 27 44
> Cell:   +33 - (0)6 85 62 59 98
> Fax :   +33 - (0)9 58 10 27 44
> 
> Fax (D):+49 - (0)3 21 21 25 22 44
> 
> email:  rai...@krugs.de
> 
> Skype:  RMkrug
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> 
> iEYEARECAAYFAlBQjD8ACgkQoYgNqgF2egrUSACfapSbOg4k++TnoErSLBpLA3Hq
> Yf8AmwUh5HpGyGw+nRPkTRyqYToGwqYl
> =caSn
> -END PGP SIGNATURE-



Re: Put figures in figure float in center - the best way?

2012-09-12 Thread Stephen Buonopane

On Sep 12, 2012, at 10:55 AM, Rainer M Krug wrote:

>>> I have not used it recently, but I get the same error you do. I copied it 
>>> from Herbert Voss'
>>> tips and tricks page many years ago. It worked then, but I am not sure what 
>>> has changed.
>> 
>>> Actually…it looks like the /singlespacing command is causing the problem. 
>>> Delete that and the
>>> centering still works.
> 
> Great - thanks

\singlespacing requires the setspace package
not really sure what it was intended to do in this context.

pdf cropping

2012-09-19 Thread Stephen Buonopane
I have a pdf file that has  /MediaBox [0 0 630 376]
when I ask LyX to get the bounding box from the file it returns [0 0 611 376]
which means the right edge of the image is cut off in both the LyX preview and 
the pdf output, unless I change the 611 to 630. 

I searched the pdf file in a text editor and cannot find 611 anywhere.
Anyone know where LyX gets the bounding box values from?

Thanks
Steve

Re: Excess Space With Tables and Figures at Chapter's End

2013-01-03 Thread Stephen Buonopane
On Jan 3, 2013, at 8:01 PM, Rich Shepard wrote:

>  I've a short paragraph that concludes a chapter and this paragraph
> includes two table floats and two figure floats. TeX spreads these out over
> 4 pages with too much white space. The first page has the paragraph, a lot
> of space, then one table; the second page has two figures (including one
> from an earlier paragraph), and so on.
> 
>  Should I copy these out of the floats and place them manually? I've not
> seen this before so I don't know all my options.
> 
> Rich


Put the floats where you want them to appear relative to the text, then right 
click on the float:Figure or float:Table box and select Settings...Here 
Definitely.
Or with the cursor in the float frame select Edit..Float Settings.

Re: Caption-Figure Alignment

2013-03-09 Thread Stephen Buonopane

On Mar 8, 2013, at 9:28 AM, James Sutherland wrote:

> 
> On Fri, Mar 8, 2013 at 1:43 AM, Wolfgang Engelmann 
>  wrote:
> 
> This has always been a source of frustration to me.  It seems like the 
> default behavior should be for the paragraph style in a float to be centered. 
>  This should be for tables and figures.
> 
> Is there any reason why the current behavior is favored over centering? 
> 
> James 
> 

This question comes up frequently and multiple solutions have been offered, 
e.g. …
http://comments.gmane.org/gmane.editors.lyx.general/76613

I believe LyX just adopts the LaTeX default. 
But a nice feature request would be for a checkbox in LyX to center align items 
in floats.

lyx/mac and texshop

2008-07-09 Thread Stephen Buonopane

I have just upgraded to LyX/Mac 1.5.5 and TeXShop 2.14 on OS X 10.5.3
I use TeXShop as my pdf viewer since it automatically updates when I  
do View->Update in LyX.

Or at least it used to automatically update.

In my prior set-up (Lyx 1.4 and OS X 10.4),  View->Update would  
automatically show the updated pdf in TexShop and bring the window to  
the front if it was hidden.
Now in order to see the updated pdf in TeXShop I have to click on the  
pdf window.


I have the viewer preference set as
open -a 'texshop.app'

I do have the Automatic Update preference checked in TexShop.
Note that if I am manually editing a Latex file in TexShop then the  
pdf window updates as expected with no extra clicks required.


Just wondering if any other LyX/Mac folks can confirm this behavior.

Steve


Re: lyx/mac and texshop

2008-07-09 Thread Stephen Buonopane
Skim.app udpates in the background and leaves the LyX window in front,  
no clicks of any sort required

So that would seem to be the best choice.
I guess the change must be due to TeXShop? I will report it there.

On Jul 9, 2008, at 1:14 PM, Stephen Buonopane wrote:


I have just upgraded to LyX/Mac 1.5.5 and TeXShop 2.14 on OS X 10.5.3
I use TeXShop as my pdf viewer since it automatically updates when I  
do View->Update in LyX.

Or at least it used to automatically update.

In my prior set-up (Lyx 1.4 and OS X 10.4),  View->Update would  
automatically show the updated pdf in TexShop and bring the window  
to the front if it was hidden.
Now in order to see the updated pdf in TeXShop I have to click on  
the pdf window.


I have the viewer preference set as
open -a 'texshop.app'

I do have the Automatic Update preference checked in TexShop.
Note that if I am manually editing a Latex file in TexShop then the  
pdf window updates as expected with no extra clicks required.


Just wondering if any other LyX/Mac folks can confirm this behavior.

Steve




Re: Lyx/MacTex Integration

2008-07-14 Thread Stephen Buonopane


On Jul 14, 2008, at 2:38 PM, Jean-Marc Lasgouttes wrote:


Alan Kellogg <[EMAIL PROTECTED]> writes:


Start by determining what isn't necessary in an integrated app, then
work out how to put everything together in a package. All things
considered I think you'll find such a Lyx Grand a smaller file than
what you have to deal with now, and so easier to deal with.


We could propose to the mactex people to distribute LyX along with the
rest...

JMarc


It is already distributed in the MacTeXtras distribution
http://www.tug.org/mactex/
scroll down to the bottom




Re: Figure Numbering

2008-08-06 Thread Stephen Buonopane




I'm fairly new to LyX only used it this past 6 months for my masters
thesis.  I have not come across a way to have it sequentially  
number all

figures in a document.


Zan,

 I believe that you're correct, and that my memory is faulty.  
Looking at my
book (published 2005 and written using LyX) I see that figures and  
tables
are numbered by the chapter. It's just been so long since I've  
included

either of those in my articles or white papers that I mis-remembered.



In the preamble...

\usepackage{remreset}
[EMAIL PROTECTED]
\renewcommand{\thefigure}{\arabic{figure}}


pdfpages and filenames

2008-08-31 Thread Stephen Buonopane
 In LyX 1.4 I used to be able to just use the filename with the  
includepdf command in ERT, \includepdf{myfile}


In LyX 1.5.5 it seems that I need to put the full pathname and  
filename, \includepdf{\very\long\path\myfile}
which is inconvenient because the pathname is very long and some of  
the directories may contain spaces.


If I export to latex and compile outside of lyx the  
\includepdf{myfile} works fine.

Any way to just use \includepdf{myfile} in LyX 1.5.5?

thanks
steve



Re: pdfpages and filenames

2008-09-01 Thread Stephen Buonopane

This problem has been previously reported as bug 1751
http://bugzilla.lyx.org/show_bug.cgi?id=1751

when i looked at the tex file created in /tmp i found
\makeatletter
[EMAIL PROTECTED]/Users/my/path//}}
\makeatother

Note the double // at the end. That seemed odd to me.

If I go back to my lyx file and put in the preamble
\makeatletter
[EMAIL PROTECTED]/Users/my/path}}
\makeatother

with no // at the end, then everything works fine again and I can use  
relative paths in the includepdf command


So it seems like something in the LyX code is producing the // in the  
path command?

I am using LyX/Mac 1.5.5 with tex-live 2007

The preamble definition is an easier workaround since you only need  
the full path once.




On Aug 31, 2008, at 9:21 PM, Stephen Buonopane wrote:

In LyX 1.4 I used to be able to just use the filename with the  
includepdf command in ERT, \includepdf{myfile}


In LyX 1.5.5 it seems that I need to put the full pathname and  
filename, \includepdf{\very\long\path\myfile}
which is inconvenient because the pathname is very long and some of  
the directories may contain spaces.


If I export to latex and compile outside of lyx the  
\includepdf{myfile} works fine.

Any way to just use \includepdf{myfile} in LyX 1.5.5?

thanks
steve





Re: Adding a new class in Mac version

2008-09-06 Thread Stephen Buonopane

On Sep 6, 2008, at 11:25 AM, Martin Lesmana wrote:


Hi there,

I have followed the installation instruction here http://wiki.lyx.org/Mac/Mac 
 (option 2)

to install tetex, ghostscript and imagemagick using fink.
And then I get the .dmg file for Lyx and drag that into my  
applications folder.


I am happy that the standard stuffs works fine, however I am trying  
to add this class file (uw-report.cls) that I have downloaded to  
show up on Lyx.


Here is what I've done:
Placed uw-report.cls under /sw/share/texmf-local/tex/latex/uw-report/
Create a simple uw-report.layout file containing:

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[uw-report]{article (uw-report)}
# Input general definitions
Input stdclass.inc

and placed it in /sw/share/texmf-local/source/latex/uw-report/lyx/ 
layouts/





the lyx layout file should be in the directory
/Users/yourusername/Library/Application Support/LyX-1.5/layouts




Re: OT: post-process postscript or PDF document to add page numbering and footer

2008-09-07 Thread Stephen Buonopane


On Sep 6, 2008, at 9:27 PM, Jeremy C. Reed wrote:


Off topic:

I am looking for a solution to add running page numbering to a  
postscript
or PDF document and maybe add a footer or header (maybe with a  
horizontal

rule).



This may not be the slickest way, but I think you can do it all right  
in Lyx  (or just  latex) with pdfpages


in the preamble...
\usepackage{pdfpages}
\includepdfset{pagecommand={\thispagestyle{fancy}}}

in the document...
define what you want in the headers in ERT with \lhead{} etc.

 \includepdf[pages=-]{filename.pdf}




Re: Raising a Figure

2008-09-11 Thread Stephen Buonopane


On Sep 11, 2008, at 11:53 AM, Bruce Pourciau wrote:

I have two figures placed side by side, but the left hand figure is  
taller than the right hand figure, so when they line up along their  
baselines, the right hand figure looks much lower. How can I move  
the right hand figure up, so its center lines up with the center of  
the left hand figure?


Try making a table that is two cells wide by one cell high
Insert each figure inside the table cells.
And set the vertical alignment in each to center.

I think I have gotten this to work in the past, but I can't remember.




Re: bibtex issues with format of authors

2008-09-17 Thread Stephen Buonopane


On Sep 17, 2008, at 6:54 PM, Tim Michelsen wrote:


Hello,
although this is not a core latex list I would like to ask for your  
advice on an issue with author entries in Bibtex databases.


Sometimes, the author (or editor) can be an institution or  
organisation which could be abbreviated in text like:


Balabla blub (FAO, 2007)

But still one wants to appear the whole name in the bibliography:

FAO, Food and Agricultural Organisation (2007): reference guide for  
planing new trees.


How could this be achived?

Another exmaple id given in this post here:
http://www.cqf.info/forum/viewtopic.php?t=3726

Thanks in advance and kind regards,
Timmie





You need to use the citealias command
see my previous post
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg43232.html


Re: bibtex issues with format of authors

2008-09-18 Thread Stephen Buonopane


On Sep 18, 2008, at 11:29 AM, Dave Hewitt wrote:


You need to use the citealias command
see my previous post
http://www.mail-archive.com/lyx-users-UqbJ+GOpo4+hPH1hqNUYSQ 

public.gmane.org/msg43232.html

This link does not work for me. Can you give the date so we can  
track down the
post. This would be a useful tip to put on the Wiki... I've always  
gotten by

in these situations somehow but not in any correct way.



Date: 2005/11/17
Subj: Citing organisations
original poster: liliann

I noticed that the link you show is different than what i posted  
(repeated below)?
Not sure why, but it would be nice to be able to link directly to  
messages in the archive, or to search by message number.


http://www.mail-archive.com/lyx-users@lists.lyx.org/msg43232.html



Re: bibtex issues with format of authors

2008-09-19 Thread Stephen Buonopane


On Sep 18, 2008, at 4:24 PM, Tim Michelsen wrote:



This link does not work for me. Can you give the date so we can  
track down the post. This would be a useful tip to put on the  
Wiki... I've always gotten by in these situations somehow but not  
in any correct way.

I entered the tip in the wiki at:
http://wiki.lyx.org/BibTeX/Tips#toc4

I added a feature request here:
* add option for citealias to the bibtex dialog
http://bugzilla.lyx.org/show_bug.cgi?id=5266

Thanks to Stephen B. for the tip!!!


One additional tip...
If you are likely to use the aliases in many documents, you can put a  
list of the \defcitealias commands in a tex file and then use Insert->  
File->Child Document in LyX.


Thanks for putting this on the wiki.

I asked this same question about 10 years ago on a latex message board  
and got the tip from  Oren Patashnik (author of bibtex) himself! So  
obviously it is not a well known command.


Re: bibtex issues with format of authors

2008-09-19 Thread Stephen Buonopane


On Sep 19, 2008, at 4:15 PM, Dave Hewitt wrote:


One additional tip...
If you are likely to use the aliases in many documents, you can put a
list of the \defcitealias commands in a tex file and then use  
Insert->

File->Child Document in LyX.


I noticed that you can put the \defcitealias in the main document or  
the
Preamble. Both work, so I guess it depends on what suits you. The  
child

document tip is great too.


Thanks for putting this on the wiki.


Ditto. Worked like a charm for me. It might be worth making that "t"  
in
cite_t_alias bold... I thought it was a typo on Stephen's part and  
it derailed

me for 5 minutes.  :)



The commands are in the natbib documentation
There is both a \citetalias (text only) and a \citepalias (parentheses  
around text)


I found that I had to use \citetalias followed by the LyX citation to  
get the overall style I wanted. 


Re: LyX like LaTeXiT?

2008-10-22 Thread Stephen Buonopane


On Oct 22, 2008, at 8:09 PM, Giorgio Zavarise wrote:

Is there any possibility to use LyX just as a tool to generate  
equations to be included in Keynote?
I am using LaTeXiT for this scope, but there you have to type the  
LaTeX commands (and I am using LyX just to avoid it).




You can copy an equation from Lyx and paste it into Latexit and you  
will get the latex code.

Then typeset and paste into keynote.

It would be nice if you could do it in one step, but I think that  
would require an alteration to keynote.




Re: Graphics in LyX

2009-02-18 Thread Stephen Buonopane


On Feb 18, 2009, at 10:25 AM, Juergen Spitzmueller wrote:


Hubert Christiaen wrote:


It' s indeed a bit strange that float figures are not automatically
centered.


LyX outputs whatever the class defines, and most classes define it  
to be

raggedright (by default).


You may do it yourself by entering in an ERT frame
'\begin{center}' before and '\end{center}' after the code for the  
picture.

That's the way I solved the problem.


Better use \centering, because the center environment adds extra  
whitespace
around the figure (LyX itself inserts \begin{centering... 
\end{centering} if

you use the paragraph dialog, which is equivalent to \centering).

Jürgen

An easier solution for centering all your floats is given by Herbert  
Voss' Tips and Tricks page

add the lines below to your preamble

Centering all floats
If you want to center for example all of your uncentered figures, you  
can do this with

\makeatletter
  \renewenvironment{figure}[1][]{%
   \...@float{figure}%
 \centering
   }{%
  \...@float
   }
\makeatother

Re: Extra spacing in tables

2009-08-27 Thread Stephen Buonopane



On Aug 27, 2009, at 12:29 PM, John Coppens wrote:


Hello all.

I have a table with some math in it. The matrices were touching the
borders, so I defined a default 'extra bottom space' in the  
properties. It

seems this extra space is only added to the (bottom of) last row (even
though all rows are selected on enabling the spacing, and, on- 
screen, the

spacing increases for all rows).

I also tried to increase this spacing line by line with the same  
result.


Adding extra top space works on all rows, but breaks the borders.

This is LyX 1.6.3. Sorry if this was already repaired. I'm off  
trying to

compile the latest version.

John

PS: No, 1.6.4 still shows the same problems.


Did you try in ERT
\renewcommand\arraystretch{1.5}




Re: Extra spacing in tables

2009-08-27 Thread Stephen Buonopane


On Aug 27, 2009, at 8:50 PM, John Coppens wrote:


On Thu, 27 Aug 2009 14:18:41 -0400
Stephen Buonopane  wrote:


Did you try in ERT
\renewcommand\arraystretch{1.5}


Hi Stephem.

That command seems to resize the entire table, with contents. It does
nothing to the row-to-border spacing.

I have [] around matrices in the table, and the [] touch the cell
borders. This look positively ugly.

I'd prefer to maintain the borders, but if nothing else works,  
removing

the borders looks better.

Cheers,
John


I was afraid that would be the case since it stretches both the math  
and table rows.


Another possible workaround might be to set the column width to a  
fixed value and then you can use hard line breaks (command-return on  
the mac) at the end of the cell.


Re: Single Spacing in Caption

2009-08-28 Thread Stephen Buonopane


On Aug 27, 2009, at 6:44 PM, Daniel Joshua Stark wrote:


Dear All,

I'm trying to make up my thesis, and the captions to figures are  
double-spaced as opposed to single-spaced, which is how the CLS  
directs it should be.




I know I succeeded in getting single spaced subfigure captions in my  
thesis, but I don't remember how I did it specifically.

I do know I used the hangcaption package

Here are a few relevant lines from my preamble (not sure of the  
difference between the last two lines)


%Decrease space around subfigure captions
\renewcommand{\subfigcapskip}{3pt}
\renewcommand{\subfigbottomskip}{6pt}   


%Caption revision as suggested by cornell class
\usepackage{hangcaption}
%\renewcommand{\caption}[1]{\singlespacing 
\hangcaption{#1}\normalspacing}

\renewcommand{\caption}[1]{\hangcaption{#1}}




graphics preview on Mac

2010-01-18 Thread Stephen Buonopane

I recently upgraded to TeXLive 2009 and LyX 1.6.5 on Mac.
On screen LyX preview of pdf graphics no longer works (other formats  
seem to work).

convert *.pdf *.ppm works fine from the command line
below is the error output
Any ideas?

Thanks
Steve


Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/var/folders/oQ/oQgNvHsZ2Ras4+ 
+8ZRE7qU+++TI/-Tmp-/lyx_tmpdir.L14418/gconvert1.K14418.pdf': No such  
file or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `ppm:/var/folders/oQ/oQgNvHsZ2Ras4+ 
+8ZRE7qU+++TI/-Tmp-/lyx_tmpdir.L14418/CacheItem.M14418.ppm' @  
convert.c/ConvertImageCommand/2838.

/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
Execution of "convert" failed.


Re: graphics preview on Mac

2010-01-18 Thread Stephen Buonopane


On Jan 18, 2010, at 4:49 PM, Stephen Buonopane wrote:


I recently upgraded to TeXLive 2009 and LyX 1.6.5 on Mac.
On screen LyX preview of pdf graphics no longer works (other formats  
seem to work).

convert *.pdf *.ppm works fine from the command line
below is the error output
Any ideas?

Thanks
Steve


Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/var/folders/oQ/oQgNvHsZ2Ras4+ 
+8ZRE7qU+++TI/-Tmp-/lyx_tmpdir.L14418/gconvert1.K14418.pdf': No such  
file or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `ppm:/var/folders/oQ/ 
oQgNvHsZ2Ras4++8ZRE7qU+++TI/-Tmp-/lyx_tmpdir.L14418/ 
CacheItem.M14418.ppm' @ convert.c/ConvertImageCommand/2838.
/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py  
ERROR

Execution of "convert" failed.


This seems to be a result of the bug reported here
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637

Copy the script convertDefault.py from  /Applications/LyX.app/Contents/ 
Resources/scripts


Comment out the lines
if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm):
opts = '-define pdf:use-cropbox=true ' + opts

On a Mac, the script goes in
/Users/username/Library/Application\ Support/LyX-1.6/scripts





Re: graphics preview on Mac

2010-01-18 Thread Stephen Buonopane


On Jan 18, 2010, at 6:40 PM, Pavel Sanda wrote:


BH wrote:

I can confirm: graphics on screen cannot be viewed, though printed
output is fine.

I have gs version 8.70 (as does Stephen).


i believe its fixed in ghostscript trunk by
http://code.google.com/p/ghostscript/source/detail?r=10560

you have to wait for 8.71 or try svn...

pavel


Or see my follow-up post for a workaround by changing the script  
convertDefault.py





Re: lyx 1.6.5 can't load pdf images on Mac OS X 10.6.2

2010-02-16 Thread Stephen Buonopane

On Feb 16, 2010, at 8:36 AM, Francesco Turci wrote:


Hallo,
	i’m using Lyx on Mac OS X 10.6.2. Everything seems to work  
properly, but the  image converters don’t seem to work: i’ve  
included some pdf images in my document (i tried with sme ps too)  
but Lyx doesn’t load them (it says “Error converting to loadable  
format”). Nevertheless, if i export to a pdf the Lyx document, i  
obtain the correct file with the original figures. What’s going on?





If none of the graphics formats work then you have a problem with the  
ImageMagick package and convert command

Does the convert command work from the terminal window?
Try posting some of the error messages that show up in the terminal  
window.


If only pdf files won't preview, and you have TexLive 2009 and gs  
8.70, the here is the problem and work-around from a previous thread...


This seems to be a result of the bug reported here
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637

Copy the script convertDefault.py from  /Applications/LyX.app/Contents/ 
Resources/scripts


Comment out the lines
if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm):
   opts = '-define pdf:use-cropbox=true ' + opts

On a Mac, the script goes in
/Users/username/Library/Application\ Support/LyX-1.6/scripts



Re: Graphics Insert

2010-03-01 Thread Stephen Buonopane

This is a behavior I've not seen with previous versions of LyX but which 
appears more often than not with 1.6.5. 

When I insert a graphics figure (either pdf or jpg) and change the edges 
in the clipping tab of the settings dialog box, both the original and 
changed figure are displayed side-by-side. I need to delete the original one 
manually. After a couple of times like this, LyX gives up and just makes the 
changes in place. 

Now and then it surprises me and doesn't display both versions. 

It's a minor annoyance, but probably an unintended consequence of code 
changes; that is, a bug. 


-- 
Rich, 


I noted this change in behavior several years back. I posted a message to the 
devel list but I think it was misunderstood. 


If you insert a graphic with the "apply" button and then change the cropping 
and hit "apply" again you will get a second graphic inserted with the crop. You 
need to hit OK and then click the image to get the graphics dialog box back 
(and associated with that image). Alternatively you can insert the original 
graphic, press "Apply" and then click on the image and then make your cropping 
changes. 


I, too, wish the previous behavior would be restored such that any changes you 
made in the graphics dialog would apply to the current image _until_ you 
clicked outside the graphics dialog. But apparently when you press Apply, Lyx 
loses the connection between the image and the dialog box. 


The response to my previous post on the devel list (I can't seem to find it in 
the archives) seemed to suggest that the previous behavior was impossible, so 
I'm guessing the problem was misunderstood. Since it is minor annoyance 
(although I do a lot of cropping!) I just let the issue drop. 


I'm glad someone else finally noticed it. 


Steve 



Re: PDF error converting to loadable format

2010-03-04 Thread Stephen Buonopane
- Original Message - 
>I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
>Lyx won't show PDF images in the document (they compile OK). 

>They show up on Windows OK, so I assume its some set up on Linux that I 
>need to tweak. 
-- 

If you have ghostscript version 8.70, then the issue is a bug in gs. 
Here is a workaround from a previous post 


This seems to be a result of the bug reported here 
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637 

Copy the script convertDefault.py from 
/Applications/LyX.app/Contents/Resources/scripts 

Comment out the lines 
if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm): 
opts = '-define pdf:use-cropbox=true ' + opts 

On a Mac, the script goes in 
/Users/username/Library/Application\ Support/LyX-1.6/scripts 




Re: PDF error converting to loadable format

2010-03-22 Thread Stephen Buonopane


On Mar 22, 2010, at 11:52 AM, Richard Brown wrote:


I do > Insert External Files > PDF and select my pdf. I add the pages
options for all of the pages (there are 2). Lyx burbles a little,  
and then

spits the error message at me:
error converting to loadable format. The file was prepared by a  
friend on

Windows from a  Sibelius music notation file.

If I examine the pdf file properties  I see the following:
Format PDF-1.4
Producer GPL Ghostscript 8.70
Creator PDFCreator Version 0.9.9


Export to PDF should work fine, it is just the preview.
If you have ghostscript version 8.70, then the issue is a bug in gs.
Here is a workaround from a previous post

This seems to be a result of the bug reported here
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637

Copy the script convertDefault.py from /Applications/LyX.app/Contents/ 
Resources/scripts


Comment out the lines
if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm):
opts = '-define pdf:use-cropbox=true ' + opts

On a Mac, the script goes in
/Users/username/Library/Application\ Support/LyX-1.6/scripts 


Re: mdwlist question

2004-03-11 Thread Stephen Buonopane
> Hello.
> How can I have an enumeration list and then use the mdwlist package to
> suspend enumeration, insert some  lyx code  (yes, new enivornment), and
> then resume the enumeration? It seems like that the enumeration is ended,
> and then the resume command is operating outside of any
> \begin¥enumerate]...\end{enumerate}
> 
> Is that possible?
> Please send LyX file to show me, because I can't get it to work.
> Is there any other way to get enumeration (without using the
> \setcounter{enumi}{3}, I want automatical enumeration ) like this
> 
The simplest way I found to incorporate mdwlists was to make a new layout
file. Since LyX automatically inserts \begin{enumerate} ... \end{enumerate}
it is not easy (or even possible?) to change to \begin{enumerate*} ...
\end{enumerate*}. 

The attached layout file duplicates the article class with mdwlists added as
additional environments. Should be easy to adapt for other classes. Put the
file in ~/.lyx/layouts/ and run reconfigure. The you should have a new class
in Layout..Document and the new environments in the pull-down menu. Of
course you need mdwlist.sty in your Latex tree.

Steve



mdw.layout
Description: Binary data


Re: cite a bitex file in a float

2004-03-31 Thread Stephen Buonopane
> 
> Is it possible to cite in floats?
> thx
> derNette
If you mean in the caption of a float.
I have done this successfully with Lyx 1.3.4 on OSX.
I just used Insert Citation. Nothing special that I can remember.

Here is a snippet of the resulting LaTex

\begin{figure}
\includegraphics[%
bb = 0 0 200 100, draft,
type=eps]{/Users/sbuonopane/Documents/Thesis/_figures/3_chap/3_figUP36HAplas
tic.tiff}
\caption{Load-displacement responses of frame UP36HA for plastic hinge and
plastic zone analyses (reproduced from
\citealt{ZiemPhD90}).\label{cap:Ziemplastic}}
\end{figure}


Steve



Re: Two pictures side by side

2004-03-31 Thread Stephen Buonopane
> Hi,
> 
> i want to have two (or more) pitures side by side placed in my document. I
> already searched the net with "tex picture side by side" and found a lot of
> links, but they are not wat i want.
> I'm using a figure float for pictures so i can set a title for the picture,
> and it will allso apeare in the list of figures.
> I tried to use a minipage with two figure floats in it, but inside a minipage
> it is only possible to use a "Wrap figure" float.

If you want two figures side by side with a single caption, you can just
insert two graphics inside a single float.

If you want to have separate captions...it is called subfigure...
Insert>Graphics>ExtraOptions tab
More info at   http://latex.s-v-p.de/floats/subfigure.phtml

Steve



Re: stacking of figures at the end of the document

2004-04-01 Thread Stephen Buonopane
> Im writing a bit big AMS unnumbered article (~20
> pages), and figures arent distributed among the
> document, but they tend to stack at the end of it. I
> would like that at least, figures belonging to a
> section enviroment will not  be displayed further than
> the end of the section (ie: that i wont have figures
> of previous sections in another section)

In ERT use \clearpage
This will force LaTeX to empty its buffer of all the floats it is "waiting"
to place.

 



Re: Alignment of a 'word equation'

2004-04-06 Thread Stephen Buonopane
How about the attached using the multline environment?



> Andre Poenitz wrote:
>> Exact alignment is out-of-scope for TeX math as math always has
>> 'unbounded width'. So you have to fake it by something like
>> 
>>$Right hand side of equation in words$ \\
>>\hfill$LHS of equation in words$
>> 
>> [Not tested. Idea is to produce the 'flushright' outside math mode]
> 
> I hate to sound pathetic, but it doesn't work. LaTeX file attached.

\documentclass{amsart}
\begin{document}
Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

\begin{multline}
\textrm{Right hand side of equation}=\\
\textrm{Left hand side of equation}
\end{multline}

Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

\end{document}



Re: Table formating questions

2004-04-15 Thread Stephen Buonopane
> However, I cannot get the column label "Standard Deviation" to be placed
> on two lines so I abbreviated it to "Std. Dev.". Also, the columns are too
> narrow so the numbers are difficult to read. Do I fix this by specifying
> each column width manually?

If you set a fixed column width, you can then use a manual linebreak (under
insert->special characters) to get the text on two lines.




Re: How to visually divide between Picture Captions and Test

2004-04-27 Thread Stephen Buonopane

> When I add a picture in a float this picture may be set as top on a side.
> Unfortunately the caption has to be below the picture and is in the same style
> as the "normal" text, so it's sometimes difficult to see where to read
> further.

The following will control the whitespace between the caption and text
below:
\setlength{\belowcaptionskip}{3pt}
\setlength{\textfloatsep}{1.0cm}
Put them in the preamble and adjust the lengths to your liking.

There are also several packages (caption2, hangcaption) for more complicated
caption layouts.

good luck, 
Steve



Re: Dot and Cross Products

2004-06-29 Thread Stephen Buonopane
Any one know how to get a dot which is bigger than \cdot but smaller
than \bullet? I need this to represent the dot product of vectors in
mathematics. And how about a heavier version of \times, to represent 
the
cross product of vectors? Can I get this by doing \times in bold? (I'd
test this right now, but I'm not at the moment at a machine with LaTeX 
installed.)

Bruce Pourciau
How about /centerdot ?
Steve


Re: centering figures

2004-07-06 Thread Stephen Buonopane

Also is there a way i can set this as a rule for all figures.
AFAIK, unfortunately, not.
As a hack, you can redefine the latex command that insets the graphics 
to
include a center.
From Herbert Voss' Tips & Tricks, (http://www.texnik.de)
add the following to your preamble
\makeatletter
\renewenvironment{figure}[1][]{%
  [EMAIL PROTECTED]
\centering
  }{%
[EMAIL PROTECTED]
  }
\makeatother
Cheers,
Steve


Re: textcomp and symbols

2004-07-12 Thread Stephen Buonopane
On Jul 12, 2004, at 12:06 PM, Rich Shepard wrote:
  So, in the book preamble I inserted '\usepackage{textcomp}'. However 
the
circled-R is still too low

I think you still need to put the circle-R into a superscript.
I am not sure how to do that outside of math mode?
I have always just made an inline equation with  a single 
character--the circle-R as a superscript

Steve


Re: Font problem

2004-07-20 Thread Stephen Buonopane
On Jul 20, 2004, at 9:13 AM, Bennett Helm wrote:
On Jul 20, 2004, at 5:54 AM, Uwe Stöhr wrote:
Jan Peters wrote:
My problem is actually a problem with the on-screen fonts only - 
after
compiling it looks nice; already in the instant-preview!
Only on screen it will always replace my greek characters - and
changing the screen fonts does not help!
I'm getting the same problem here.
You need to install the LaTeX XFT-fonts.
Things are actually a bit more complicated than this. LaTeX XFT-fonts 
are installed by default in LyX/Mac in the LyX/Mac bundle, but for 
some reason these fonts are not being recognized. When I reconfigure 
LyX, I get the following output in console:

checking for TeX fonts
+checking for cmex10... yes (pfb)
+checking for cmmi10... yes (pfb)
+checking for cmr10... yes (pfb)
+checking for cmsy10... yes (pfb)
+checking for eufm10... yes (pfb)
+checking for msam10... yes (pfb)
+checking for msbm10... yes (pfb)
+checking for wasy10... yes (pfb)
removing xfonts/fonts.dir, which is identical to the system global 
version
removing font links

In my teTeX installation, I have duplicate versions of all these fonts 
as .tfm and .pfb files; that's causing the conflict, right?

How can we get LyX to recognize the .ttf fonts in the LyX.app bundle?
Bennett
I have had no such problems with my Lyx/Mac. On both OS X 10.2 and 10.3.
I get the same output in the console and I also have both .tfm and .pfb 
fonts installed.
Must be something else?

Steve


  1   2   >