I'm writing a book in VimOutliner

2007-12-30 Thread Bob Alvarez
This is quite interesting to me as I am also interested in writing a book
with Lyx. I think I have seen some of your discussions in using VIM, and I
guess now VIM outliner, with Lyx. Could you provide links to documents on
your website and possibly posts on the Lyx user's mailing list where you
discuss the use of VIM with Lyx?

TIA

Bob


Re: help on keyboard shortcut

2008-02-18 Thread Bob Alvarez
If you do not find a suitable style file, you can easily create your own.

Type latex makbst in a console window, and answer the questions.

Jürgen

I tried this on my Windows XP installation and got the following message.
I also searched for files named makbst on my system and with google on
the internet
and could not find anything appropriate. Any suggestions where I can
find this package?

Bob

C:\latex makbst
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
entering extended mode
! I can't find file `makbst'.
* makbst


Re: Problems with Lyx in connection to JabRef

2008-02-18 Thread Bob Alvarez
Whoops, wrong Subject for email


If you do not find a suitable style file, you can easily create your own.

 Type latex makbst in a console window, and answer the questions.

 Jürgen

 I tried this on my Windows XP installation and got the following message.

 I also searched for files named makbst on my system and with google on the 
 internet
 and could not find anything appropriate. Any suggestions where I can find 
 this package?

 Bob

 C:\latex makbst
 This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
 entering extended mode
 ! I can't find file `makbst'.
 * makbst




Installing on Mac--MacTex vs. BasicTex

2011-05-26 Thread Bob Alvarez
I am installing Lyx 1.6.9 on a Macbook Air OSX 10.6 .  Looking through 
the instructions I was dismayed to see that I may have to install the 
1.6 GB MacTex package. This machine only has a 64 GB drive so this is 
quite a lot of overhead not to mention that the download will take many 
hours on my basic DSL connection.


The Wiki suggests BasicTex but this thread suggests that is a bad idea
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg78404.html

Questions:
1. Has anyone had success installing and using Lyx with BasicTex (I am 
mainly interested in koma-script article document class)?


2. Any ideas on using an external USB drive to hold the installation 
package and then selecting the components I need for Lyx?


3. Any other ideas on how to reduce the drive space requirement?

TIA

Bob


keyboard binding for font in math mode

2012-01-06 Thread Bob Alvarez
I use multiple fonts in my equations and it is tedious to type for 
example \mathcal every time I want to insert a character with that font. 
So I wrote a keyboard binding that takes over the control-e in cua.bind


\bind C-emath-insert \mathcal

This works OK but it leaves the cursor to the right of the entry box so 
every time I have to type a left-arrow to get into the box.


Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of 
the window in math mode. But that does the same thing i.e. does not end 
up in the box


pps. I am a mailing list newbie. How do I reply to messages so they end 
up in the same thread with my original. I think I am supposed to have an 
in-reply-to field in the message header but how do I do this with 
thunderbird?


ppps. I am using Lyx 1.6.5 on Windows XP



Re: keyboard binding for font in math mode

2012-01-09 Thread Bob Alvarez
I found that these work. I suggest using these in the Math mode font 
toolbar since the current approach leaves the cursor outside the insert 
text box


# insert in mathbf font or mathcal
\bind C-M-bcommand-sequence math-insert \mathbf; 
char-backward
\bind C-M-ecommand-sequence math-insert \mathcal; 
char-backward


Bob

On 1/6/12 10:48 AM, Bob Alvarez wrote:

I use multiple fonts in my equations and it is tedious to type for
example \mathcal every time I want to insert a character with that font.
So I wrote a keyboard binding that takes over the control-e in cua.bind

\bind C-emath-insert \mathcal

This works OK but it leaves the cursor to the right of the entry box so
every time I have to type a left-arrow to get into the box.

Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of
the window in math mode. But that does the same thing i.e. does not end
up in the box

pps. I am a mailing list newbie. How do I reply to messages so they end
up in the same thread with my original. I think I am supposed to have an
in-reply-to field in the message header but how do I do this with
thunderbird?

ppps. I am using Lyx 1.6.5 on Windows XP





help on keyboard shortcut

2007-06-20 Thread Bob Alvarez

I am trying to add a command to not indent a paragraph in Lyx 1.4.4. I do
this now by inserting ERT \noindent at the start of the paragraph

This works fine but it is tedious since I use this after (almost) every
equation in my paper. So, I am trying to do this with a keyboard shortcut.

I modified cua.bind to use one of the 'Free bindings', by inserting the
following line in the file

\bind C-ycommand-sequence ert-insert; self-insert \noindent;

Now when I type control-y this mostly works but it leaves me in ert-insert
mode. What commands can I use to:

1. get out of ert-insert mode to regular text insert mode

2. insert a space in the text after the ERT.

TIA

Bob


Re: help on keyboard shortcut

2007-06-20 Thread Bob Alvarez

Or perhaps better yet:

command-sequence ert-insert; self-insert \noindent a;
delete-backward; next-inset-toggle
Then you get the space inside ERT, and the inset is collapsed for you.


That works.


Thank you.

Bob


Re: help on keyboard shortcut

2007-06-22 Thread Bob Alvarez

If, as I suspect, Bob wants the space just to keep \noindent from running
into the text, a somewhat simpler solution is

command-sequence ert-insert; self-insert \noindent{}; char-forward;
---

Yes, that is the purpose of the space.
This works but I do not understand the code. Do the braces {} after
\noindent put you back into regular text input mode?

Thanks for your input.

Bob


Insert Float figure keyboard shortcut

2007-07-15 Thread Bob Alvarez

What is the keyboard shortcut to insert a float figure? I am using version
1.4.4 and I get as far as
alt I a
and then I am stuck. This gets me to insert float but there doesn't seem to
be a way to select figure from the popup menu.

Any help appreciated.

Bob


Arrow keys work

2007-07-16 Thread Bob Alvarez

Bob Alvarez wrote:

What is the keyboard shortcut to insert a float figure? I am using version
1.4.4 and I get as far as
alt I a
and then I am stuck. This gets me to insert float but there doesn't seem to
be a way to select figure from the popup menu.

Right, the shortcuts are missing but you can still use right-arrow, down-arrow
and Enter. Or you can edit you stdmenu.inc file and add an '' before the
letter you want to use as a shortcut.

Abdel.

--
Thanks. The arrow keys do work.

But I don't see where to modify the stdmenus.inc file. Could you show
where is the proper place?

Bob


editing a matrix

2013-03-07 Thread Bob Alvarez

Section 4 of the Lyx Detailed Math manual describes how to set a Matrix
characteristics when I create it.

What if I change my mind? Is there any way to edit the Matrix?

In particular, how do I change the horizontal alignment? For example, go
from  to rrcc.

Bob



Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez

 This will NOT be YAHC (Yet Another HTML Converter). It will be a small
 subset of LyX's capabilities, purposed not to turn a document into HTML,
 but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
 It will in no way try to replace the existing HTML Converters, and from
 what I've seen so far, the existing HTML converters would have a hard time
 replacing what I'm trying to make.


Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the Additional and Ch. 5 of the Customization but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




Error converting to loadable format + updating Lyx

2013-09-02 Thread Bob Alvarez
I am getting the dreaded ImageMagick Studio library and utility 
programs has stopped working followed by Error converting to loadable 
format with my LyX Version 2.0.5.1 on a Windows 7 64 bit system. FWIW, 
this has happened to me in past Lyx versions  and seems to start when I 
edit a copy of a Lyx file. Lyx seems to work OK on files I created 
previously.


I searched here and the only solution seems to be to re-install Lyx. I 
have found that approach does work. That's OK because it is time to 
upgrade anyway although it would be good to have a better workaround.


Questions:
1. Are there any improved ways for dealing with the errors?
2. I want to install from a Windows binary. I found the list of files at 
the end of the email on the binaries page but no explanation on what 
they are.
Could someone explain what they are or point me to the proper one to use 
with my computer (Windows 7 64 bit)?
I never know whether to uninstall the previous version. IIRC, in the 
past I have not and the update seems to work OK. What is the suggested 
thing to do?


TIA

Bob

Index of ftp://ftp.lyx.org/pub/lyx/bin/2.0.6/

Up to higher level directory
Name Size Last Modified
File:LyX-2.0.6+qt4.dmg 127478 KB 5/6/13 11:41:00 PM
File:LyX-2.0.6+qt4.dmg.sig 1 KB 5/7/13 4:32:00 PM
File:LyX-2.0.6-Bundle-1.exe 202662 KB 5/3/13 9:55:00 PM
File:LyX-2.0.6-Bundle-1.exe.sig 1 KB 5/4/13 3:01:00 PM
File:LyX-2.0.6-Bundle-2.exe 203706 KB 5/19/13 7:32:00 PM
File:LyX-2.0.6-Bundle-2.exe.sig 1 KB 5/22/13 7:12:00 PM
File:LyX-2.0.6-Installer-1.exe 34286 KB 5/3/13 9:21:00 PM
File:LyX-2.0.6-Installer-1.exe.sig 1 KB 5/4/13 3:01:00 PM
File:LyX-2.0.6-Installer-2.exe 35326 KB 5/19/13 6:52:00 PM
File:LyX-2.0.6-Installer-2.exe.sig 1 KB 5/22/13 7:13:00 PM
File:LyX-2.0.6-cygwin.tar.gz 23975 KB 5/7/13 11:07:00 PM
File:LyX-2.0.6-cygwin.tar.gz.sig 1 KB 5/8/13 11:24:00 PM


Re: Thank you for View-Update

2013-09-09 Thread Bob Alvarez



Thank you very much for View-Update (Ctrl+Shift+R). It's been in LyX
for many, many versions, but now it works, and it's a great help in
keeping the PDF I'm proofreading in sync with the file I'm modifying.



On my Windows 7 system the pdf viewer does not allow updates to the 
file.  Lyx gives me the error message:


I can't write on file ...

Does anyone know a way around this?

Bob


Re: Thank you for View-Update

2013-09-10 Thread Bob Alvarez

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check Always use the 
selected program to open this kind of file then it will work, since TeXworks 
doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper
Thanks, that does work but TexWorks is a limited program, for example it 
does not seem to show bookmarks in pdf documents, so as you mention I 
would have to switch back and forth.


I tried to change the defaults for pdf viewer in Tools|Preferences|File 
Handling|File formats  and then selecting PDF in the Format dropdown menu.


The default in the Viewer: dropdown list is pdfview, which seems to 
choose the system default viewer. I tried selecting Custom and the 
entering the path to the texworks program but that does not work. The 
message box at the bottom of the Lyx window says successful preview 
... but the Texworks program does not open. I even tried using the 
shortened path with no spaces with no luck.

C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the 
system default?


Bob



exporting tex for newbies

2013-09-17 Thread Bob Alvarez
I recently had a paper accepted by an American Institute of Physics 
journal. The paper was reviewed from pdf documents created by Lyx but 
now the AIP emails: Please upload your article file as a Word or Tex 
file. AIP production cannot use a PDF as the article source file. I 
assume they want to reformat the article for the standard of the journal.


I have read several threads on the  User's group and this does not seem 
as simple as doing a  File|export|latex.

Some issues that seem to come up are handling citations, and figures.

Can anyone suggest a step-by-step method for a Tex newbie to create a 
package that I can send them? The package might include the Latex file 
created by one of the export options (please specify which one), my 
bibtex file, plus ???


BTW, my figures are all in eps format and I assume the AIP can use those??

FWIW, I am using Lyx 2.0.6 on a Windows 7 64 bit system.

Bob


Re: exporting tex for newbies

2013-09-17 Thread Bob Alvarez

On 9/17/13 1:01 PM, Murat Yildizoglu wrote:

Dear Bob,
In general, providing the exported latex file (File/Export/Latex menu
item), the bbl file that contains your bibliography (if you use bibtex),
and the figures in a format accepted by the journal  is sufficient.



Thanks for your reply. Some questions:

1. What is a 'bbl' file? Is that the same as my bibtex file? If not,
   how do I produce it?
2. There are multiple latex export options e.g. Latex (Luatex), Latex
   (xetex), ... Which one do you suggest I use?

Bob



Re: exporting tex for newbies

2013-09-30 Thread Bob Alvarez
Here is how exported a tex file for an AIP journal. It was easier than I
thought it would be--thanks Lyx developers!

1. Put Lyx file same directory as the graphics files.Modify the graphics
file addresses in the Lyx file if you, like me, have them in a separate
directory while writing the manuscript.  Make sure the Lyx file works by
previewing the pdf.
2. Do a File|export|pdflatex.
3. I think this automatically converts the graphics files to pdf, which are
needed for the .tex file to work. If not, try running pdflatex from the DOS
command line. It should be in the system path from your Lyx installation.
4. The pdflatex creates several files in the directory including one with a
.bbl extension. Open that one with a text editor like Notepad and select
all of it and copy to the clipboard.
5. Open the .tex file in the text editor, scroll to the end and look for
the two lines starting with bibfiles ... and options ...
6. delete those lines and paste in the contents of the .bbl file in their
place. Save the modified .tex file

That's it. The journal website seems to accept the file.

additional notes:
The journal website converts my .eps graphics files to .pdf so I did not
have to upload them.



On Tue, Sep 17, 2013 at 1:34 PM, Bob Alvarez cobol...@gmail.com wrote:

  On 9/17/13 1:01 PM, Murat Yildizoglu wrote:

 Dear Bob,
 In general, providing the exported latex file (File/Export/Latex menu
 item), the bbl file that contains your bibliography (if you use bibtex),
 and the figures in a format accepted by the journal  is sufficient.



  Thanks for your reply. Some questions:


1. What is a 'bbl' file? Is that the same as my bibtex file? If not,
how do I produce it?
2. There are multiple latex export options e.g. Latex (Luatex), Latex
(xetex), ... Which one do you suggest I use?

 Bob



Re: Error message with bad citation/reference

2015-05-02 Thread Bob Alvarez
Bob Alvarez aprendtech at gmail.com writes:

 
 Is there a way to get Lyx to display an error message when it cannot 
 find a citation in a bibtex database or a cross-reference to a label in 
 the document?
 

Here is the way to do it:
1. In Lyx (my version is 2.1.3 on Windows 7), select View|Messages Pane

2. make a small change in your file so the document will be re-processed

3. Click on View (the two eyes icon) or ctrl-R
You will see many messages appear.

4. Scroll down to the line containing 
bibtex your lyx file name)

5. The lines immediately after that will contain the messages from bibtex
including the error messages.
In my example, they contained the message:
09:24:22.758: Warning--I didn't find a database entry for Anderson1986





Error message with bad citation/reference

2015-04-28 Thread Bob Alvarez
Is there a way to get Lyx to display an error message when it cannot 
find a citation in a bibtex database or a cross-reference to a label in 
the document?


So far, it just silently puts a question mark or some other indication 
in the pdf but this is an important error that I need to correct. In 
small documents these are easy to spot but in large documents like a 
book with multiple child files these can be easy to miss.


TIA

Bob


I'm writing a book in VimOutliner

2007-12-30 Thread Bob Alvarez
This is quite interesting to me as I am also interested in writing a book
with Lyx. I think I have seen some of your discussions in using VIM, and I
guess now VIM outliner, with Lyx. Could you provide links to documents on
your website and possibly posts on the Lyx user's mailing list where you
discuss the use of VIM with Lyx?

TIA

Bob


Re: help on keyboard shortcut

2008-02-18 Thread Bob Alvarez
If you do not find a suitable style file, you can easily create your own.

Type latex makbst in a console window, and answer the questions.

Jürgen

I tried this on my Windows XP installation and got the following message.
I also searched for files named makbst on my system and with google on
the internet
and could not find anything appropriate. Any suggestions where I can
find this package?

Bob

C:\latex makbst
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
entering extended mode
! I can't find file `makbst'.
* makbst


Re: Problems with Lyx in connection to JabRef

2008-02-18 Thread Bob Alvarez
Whoops, wrong Subject for email


If you do not find a suitable style file, you can easily create your own.

 Type latex makbst in a console window, and answer the questions.

 Jürgen

 I tried this on my Windows XP installation and got the following message.

 I also searched for files named makbst on my system and with google on the 
 internet
 and could not find anything appropriate. Any suggestions where I can find 
 this package?

 Bob

 C:\latex makbst
 This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
 entering extended mode
 ! I can't find file `makbst'.
 * makbst




Installing on Mac--MacTex vs. BasicTex

2011-05-26 Thread Bob Alvarez
I am installing Lyx 1.6.9 on a Macbook Air OSX 10.6 .  Looking through 
the instructions I was dismayed to see that I may have to install the 
1.6 GB MacTex package. This machine only has a 64 GB drive so this is 
quite a lot of overhead not to mention that the download will take many 
hours on my basic DSL connection.


The Wiki suggests BasicTex but this thread suggests that is a bad idea
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg78404.html

Questions:
1. Has anyone had success installing and using Lyx with BasicTex (I am 
mainly interested in koma-script article document class)?


2. Any ideas on using an external USB drive to hold the installation 
package and then selecting the components I need for Lyx?


3. Any other ideas on how to reduce the drive space requirement?

TIA

Bob


keyboard binding for font in math mode

2012-01-06 Thread Bob Alvarez
I use multiple fonts in my equations and it is tedious to type for 
example \mathcal every time I want to insert a character with that font. 
So I wrote a keyboard binding that takes over the control-e in cua.bind


\bind C-emath-insert \mathcal

This works OK but it leaves the cursor to the right of the entry box so 
every time I have to type a left-arrow to get into the box.


Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of 
the window in math mode. But that does the same thing i.e. does not end 
up in the box


pps. I am a mailing list newbie. How do I reply to messages so they end 
up in the same thread with my original. I think I am supposed to have an 
in-reply-to field in the message header but how do I do this with 
thunderbird?


ppps. I am using Lyx 1.6.5 on Windows XP



Re: keyboard binding for font in math mode

2012-01-09 Thread Bob Alvarez
I found that these work. I suggest using these in the Math mode font 
toolbar since the current approach leaves the cursor outside the insert 
text box


# insert in mathbf font or mathcal
\bind C-M-bcommand-sequence math-insert \mathbf; 
char-backward
\bind C-M-ecommand-sequence math-insert \mathcal; 
char-backward


Bob

On 1/6/12 10:48 AM, Bob Alvarez wrote:

I use multiple fonts in my equations and it is tedious to type for
example \mathcal every time I want to insert a character with that font.
So I wrote a keyboard binding that takes over the control-e in cua.bind

\bind C-emath-insert \mathcal

This works OK but it leaves the cursor to the right of the entry box so
every time I have to type a left-arrow to get into the box.

Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of
the window in math mode. But that does the same thing i.e. does not end
up in the box

pps. I am a mailing list newbie. How do I reply to messages so they end
up in the same thread with my original. I think I am supposed to have an
in-reply-to field in the message header but how do I do this with
thunderbird?

ppps. I am using Lyx 1.6.5 on Windows XP





help on keyboard shortcut

2007-06-20 Thread Bob Alvarez

I am trying to add a command to not indent a paragraph in Lyx 1.4.4. I do
this now by inserting ERT \noindent at the start of the paragraph

This works fine but it is tedious since I use this after (almost) every
equation in my paper. So, I am trying to do this with a keyboard shortcut.

I modified cua.bind to use one of the 'Free bindings', by inserting the
following line in the file

\bind C-ycommand-sequence ert-insert; self-insert \noindent;

Now when I type control-y this mostly works but it leaves me in ert-insert
mode. What commands can I use to:

1. get out of ert-insert mode to regular text insert mode

2. insert a space in the text after the ERT.

TIA

Bob


Re: help on keyboard shortcut

2007-06-20 Thread Bob Alvarez

Or perhaps better yet:

command-sequence ert-insert; self-insert \noindent a;
delete-backward; next-inset-toggle
Then you get the space inside ERT, and the inset is collapsed for you.


That works.


Thank you.

Bob


Re: help on keyboard shortcut

2007-06-22 Thread Bob Alvarez

If, as I suspect, Bob wants the space just to keep \noindent from running
into the text, a somewhat simpler solution is

command-sequence ert-insert; self-insert \noindent{}; char-forward;
---

Yes, that is the purpose of the space.
This works but I do not understand the code. Do the braces {} after
\noindent put you back into regular text input mode?

Thanks for your input.

Bob


Insert Float figure keyboard shortcut

2007-07-15 Thread Bob Alvarez

What is the keyboard shortcut to insert a float figure? I am using version
1.4.4 and I get as far as
alt I a
and then I am stuck. This gets me to insert float but there doesn't seem to
be a way to select figure from the popup menu.

Any help appreciated.

Bob


Arrow keys work

2007-07-16 Thread Bob Alvarez

Bob Alvarez wrote:

What is the keyboard shortcut to insert a float figure? I am using version
1.4.4 and I get as far as
alt I a
and then I am stuck. This gets me to insert float but there doesn't seem to
be a way to select figure from the popup menu.

Right, the shortcuts are missing but you can still use right-arrow, down-arrow
and Enter. Or you can edit you stdmenu.inc file and add an '' before the
letter you want to use as a shortcut.

Abdel.

--
Thanks. The arrow keys do work.

But I don't see where to modify the stdmenus.inc file. Could you show
where is the proper place?

Bob


editing a matrix

2013-03-07 Thread Bob Alvarez

Section 4 of the Lyx Detailed Math manual describes how to set a Matrix
characteristics when I create it.

What if I change my mind? Is there any way to edit the Matrix?

In particular, how do I change the horizontal alignment? For example, go
from  to rrcc.

Bob



Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez

 This will NOT be YAHC (Yet Another HTML Converter). It will be a small
 subset of LyX's capabilities, purposed not to turn a document into HTML,
 but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
 It will in no way try to replace the existing HTML Converters, and from
 what I've seen so far, the existing HTML converters would have a hard time
 replacing what I'm trying to make.


Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the Additional and Ch. 5 of the Customization but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




Error converting to loadable format + updating Lyx

2013-09-02 Thread Bob Alvarez
I am getting the dreaded ImageMagick Studio library and utility 
programs has stopped working followed by Error converting to loadable 
format with my LyX Version 2.0.5.1 on a Windows 7 64 bit system. FWIW, 
this has happened to me in past Lyx versions  and seems to start when I 
edit a copy of a Lyx file. Lyx seems to work OK on files I created 
previously.


I searched here and the only solution seems to be to re-install Lyx. I 
have found that approach does work. That's OK because it is time to 
upgrade anyway although it would be good to have a better workaround.


Questions:
1. Are there any improved ways for dealing with the errors?
2. I want to install from a Windows binary. I found the list of files at 
the end of the email on the binaries page but no explanation on what 
they are.
Could someone explain what they are or point me to the proper one to use 
with my computer (Windows 7 64 bit)?
I never know whether to uninstall the previous version. IIRC, in the 
past I have not and the update seems to work OK. What is the suggested 
thing to do?


TIA

Bob

Index of ftp://ftp.lyx.org/pub/lyx/bin/2.0.6/

Up to higher level directory
Name Size Last Modified
File:LyX-2.0.6+qt4.dmg 127478 KB 5/6/13 11:41:00 PM
File:LyX-2.0.6+qt4.dmg.sig 1 KB 5/7/13 4:32:00 PM
File:LyX-2.0.6-Bundle-1.exe 202662 KB 5/3/13 9:55:00 PM
File:LyX-2.0.6-Bundle-1.exe.sig 1 KB 5/4/13 3:01:00 PM
File:LyX-2.0.6-Bundle-2.exe 203706 KB 5/19/13 7:32:00 PM
File:LyX-2.0.6-Bundle-2.exe.sig 1 KB 5/22/13 7:12:00 PM
File:LyX-2.0.6-Installer-1.exe 34286 KB 5/3/13 9:21:00 PM
File:LyX-2.0.6-Installer-1.exe.sig 1 KB 5/4/13 3:01:00 PM
File:LyX-2.0.6-Installer-2.exe 35326 KB 5/19/13 6:52:00 PM
File:LyX-2.0.6-Installer-2.exe.sig 1 KB 5/22/13 7:13:00 PM
File:LyX-2.0.6-cygwin.tar.gz 23975 KB 5/7/13 11:07:00 PM
File:LyX-2.0.6-cygwin.tar.gz.sig 1 KB 5/8/13 11:24:00 PM


Re: Thank you for View-Update

2013-09-09 Thread Bob Alvarez



Thank you very much for View-Update (Ctrl+Shift+R). It's been in LyX
for many, many versions, but now it works, and it's a great help in
keeping the PDF I'm proofreading in sync with the file I'm modifying.



On my Windows 7 system the pdf viewer does not allow updates to the 
file.  Lyx gives me the error message:


I can't write on file ...

Does anyone know a way around this?

Bob


Re: Thank you for View-Update

2013-09-10 Thread Bob Alvarez

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select Open with...
- One level deeper, choose Choose default program...
- In my situation, the PDF-viewer TeXworks is visible, if you check Always use the 
selected program to open this kind of file then it will work, since TeXworks 
doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper
Thanks, that does work but TexWorks is a limited program, for example it 
does not seem to show bookmarks in pdf documents, so as you mention I 
would have to switch back and forth.


I tried to change the defaults for pdf viewer in Tools|Preferences|File 
Handling|File formats  and then selecting PDF in the Format dropdown menu.


The default in the Viewer: dropdown list is pdfview, which seems to 
choose the system default viewer. I tried selecting Custom and the 
entering the path to the texworks program but that does not work. The 
message box at the bottom of the Lyx window says successful preview 
... but the Texworks program does not open. I even tried using the 
shortened path with no spaces with no luck.

C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the 
system default?


Bob



exporting tex for newbies

2013-09-17 Thread Bob Alvarez
I recently had a paper accepted by an American Institute of Physics 
journal. The paper was reviewed from pdf documents created by Lyx but 
now the AIP emails: Please upload your article file as a Word or Tex 
file. AIP production cannot use a PDF as the article source file. I 
assume they want to reformat the article for the standard of the journal.


I have read several threads on the  User's group and this does not seem 
as simple as doing a  File|export|latex.

Some issues that seem to come up are handling citations, and figures.

Can anyone suggest a step-by-step method for a Tex newbie to create a 
package that I can send them? The package might include the Latex file 
created by one of the export options (please specify which one), my 
bibtex file, plus ???


BTW, my figures are all in eps format and I assume the AIP can use those??

FWIW, I am using Lyx 2.0.6 on a Windows 7 64 bit system.

Bob


Re: exporting tex for newbies

2013-09-17 Thread Bob Alvarez

On 9/17/13 1:01 PM, Murat Yildizoglu wrote:

Dear Bob,
In general, providing the exported latex file (File/Export/Latex menu
item), the bbl file that contains your bibliography (if you use bibtex),
and the figures in a format accepted by the journal  is sufficient.



Thanks for your reply. Some questions:

1. What is a 'bbl' file? Is that the same as my bibtex file? If not,
   how do I produce it?
2. There are multiple latex export options e.g. Latex (Luatex), Latex
   (xetex), ... Which one do you suggest I use?

Bob



Re: exporting tex for newbies

2013-09-30 Thread Bob Alvarez
Here is how exported a tex file for an AIP journal. It was easier than I
thought it would be--thanks Lyx developers!

1. Put Lyx file same directory as the graphics files.Modify the graphics
file addresses in the Lyx file if you, like me, have them in a separate
directory while writing the manuscript.  Make sure the Lyx file works by
previewing the pdf.
2. Do a File|export|pdflatex.
3. I think this automatically converts the graphics files to pdf, which are
needed for the .tex file to work. If not, try running pdflatex from the DOS
command line. It should be in the system path from your Lyx installation.
4. The pdflatex creates several files in the directory including one with a
.bbl extension. Open that one with a text editor like Notepad and select
all of it and copy to the clipboard.
5. Open the .tex file in the text editor, scroll to the end and look for
the two lines starting with bibfiles ... and options ...
6. delete those lines and paste in the contents of the .bbl file in their
place. Save the modified .tex file

That's it. The journal website seems to accept the file.

additional notes:
The journal website converts my .eps graphics files to .pdf so I did not
have to upload them.



On Tue, Sep 17, 2013 at 1:34 PM, Bob Alvarez cobol...@gmail.com wrote:

  On 9/17/13 1:01 PM, Murat Yildizoglu wrote:

 Dear Bob,
 In general, providing the exported latex file (File/Export/Latex menu
 item), the bbl file that contains your bibliography (if you use bibtex),
 and the figures in a format accepted by the journal  is sufficient.



  Thanks for your reply. Some questions:


1. What is a 'bbl' file? Is that the same as my bibtex file? If not,
how do I produce it?
2. There are multiple latex export options e.g. Latex (Luatex), Latex
(xetex), ... Which one do you suggest I use?

 Bob



Error message with bad citation/reference

2015-04-28 Thread Bob Alvarez
Is there a way to get Lyx to display an error message when it cannot 
find a citation in a bibtex database or a cross-reference to a label in 
the document?


So far, it just silently puts a question mark or some other indication 
in the pdf but this is an important error that I need to correct. In 
small documents these are easy to spot but in large documents like a 
book with multiple child files these can be easy to miss.


TIA

Bob


Re: Error message with bad citation/reference

2015-05-02 Thread Bob Alvarez
Bob Alvarez aprendtech at gmail.com writes:

 
 Is there a way to get Lyx to display an error message when it cannot 
 find a citation in a bibtex database or a cross-reference to a label in 
 the document?
 

Here is the way to do it:
1. In Lyx (my version is 2.1.3 on Windows 7), select View|Messages Pane

2. make a small change in your file so the document will be re-processed

3. Click on View (the two eyes icon) or ctrl-R
You will see many messages appear.

4. Scroll down to the line containing 
bibtex your lyx file name)

5. The lines immediately after that will contain the messages from bibtex
including the error messages.
In my example, they contained the message:
09:24:22.758: Warning--I didn't find a database entry for Anderson1986





:yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?

TIA

Bob


Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

 On Thu, Jul 9, 2015 at 12:34 PM, Bob Alvarez reward...@gmail.com wrote:

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?


Hi Bob,

Does this happen every time when you open LyX? LyX does something
special (it runs configure.py) when it is opened for the first time,
so it will help to figure out if the problem is in that script.

What LyX version did you have before you upgraded? Did you also use
that version on the same machine, with Windows 7 and the flash drive?

Where is your flash drive mounted? Meaning, how do you access a disk
that is in there? e.g. E:\ ?

Please respond to the list (lyx-users@lists.lyx.org), not to me personally.

Best,

Scott


Hi Scott

1. I usually turn my computer off at night. I see the disk scanning when
I first start Lyx after the computer has been off. After the first
opening, I do not see the scanning if I close Lyx and then re-open it

2. The flash drive is I:\ but I am not opening a Lyx file on that drive
when I see the scanning. For what it's worth, the Lyx files are usually
on the L:\ drive.

3. IIRC my previous version was 2.0.6 and it was installed on the same
computer with the same drive configuration i.e. I:\ flash and most files
on L:\

Bob




Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez




1. I usually turn my computer off at night. I see the disk scanning when
I first start Lyx after the computer has been off. After the first
opening, I do not see the scanning if I close Lyx and then re-open it



This is not correct. Lyx seems to scan the flash drive every time I open it.

Bob



Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

On 7/9/15 3:27 PM, Scott Kostyshak wrote:


Can you please go to Help  About LyX and copy/paste the information? I
am particularly interested in the Library directory and User
directory.



LyX Version 2.1.3
(Friday, February 06, 2015)

Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
User directory: ~\AppData\Roaming\LyX2.1\

--

Scott

See the information above. I do not know how the program uses the user 
directory but AFAIK Windows does not define the ~ symbol as the home 
directory. I tried to use it on the Windows command line program cmd.exe 
and it did not recognize it.


C:\Users\bobcd ~
The system cannot find the path specified.

Bob


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

On 7/10/15 4:38 AM, Scott Kostyshak wrote:


The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.




I have cygwin installed on my computer so I tried using its strace 
command to run Lyx.


Unfortunately, this was not very edifying, at least to me. Perhaps 
cygwin is not that well integrated into the windows operating system so 
it does not report internal Windows system calls??


Bob

Here is a capture of the commands and output with my comments:

--- Comment: first I tried to run Lyx with strace using some options 
(V=version, d=debug). It just gave the version without running Lyx

---end comment

$ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
strace (cygwin) 1.7.35
System Trace
Copyright (C) 2000 - 2015 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


--- comment
then I used strace without any options. Now it did run Lyx, I got the 
scan of the flash drive but there was no output while Lyx was running. 
After I exited Lyx (File|exit) I got the few lines of output shown below.

 end comment

$ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
--- Process 1080, exception 401f at 77A4129B

bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
$

--comment
I tried re-directing the output of the strace command but got 
essentially the same result as shown above. The process number was 
different but the memory address of the exception was the same.

--- end comment


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

I did look on the 'recent files' list. None are on the flash drive.



:yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?

TIA

Bob


Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

 On Thu, Jul 9, 2015 at 12:34 PM, Bob Alvarez reward...@gmail.com wrote:

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?


Hi Bob,

Does this happen every time when you open LyX? LyX does something
special (it runs configure.py) when it is opened for the first time,
so it will help to figure out if the problem is in that script.

What LyX version did you have before you upgraded? Did you also use
that version on the same machine, with Windows 7 and the flash drive?

Where is your flash drive mounted? Meaning, how do you access a disk
that is in there? e.g. E:\ ?

Please respond to the list (lyx-users@lists.lyx.org), not to me personally.

Best,

Scott


Hi Scott

1. I usually turn my computer off at night. I see the disk scanning when
I first start Lyx after the computer has been off. After the first
opening, I do not see the scanning if I close Lyx and then re-open it

2. The flash drive is I:\ but I am not opening a Lyx file on that drive
when I see the scanning. For what it's worth, the Lyx files are usually
on the L:\ drive.

3. IIRC my previous version was 2.0.6 and it was installed on the same
computer with the same drive configuration i.e. I:\ flash and most files
on L:\

Bob




Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez




1. I usually turn my computer off at night. I see the disk scanning when
I first start Lyx after the computer has been off. After the first
opening, I do not see the scanning if I close Lyx and then re-open it



This is not correct. Lyx seems to scan the flash drive every time I open it.

Bob



Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

On 7/9/15 3:27 PM, Scott Kostyshak wrote:


Can you please go to Help  About LyX and copy/paste the information? I
am particularly interested in the Library directory and User
directory.



LyX Version 2.1.3
(Friday, February 06, 2015)

Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
User directory: ~\AppData\Roaming\LyX2.1\

--

Scott

See the information above. I do not know how the program uses the user 
directory but AFAIK Windows does not define the ~ symbol as the home 
directory. I tried to use it on the Windows command line program cmd.exe 
and it did not recognize it.


C:\Users\bobcd ~
The system cannot find the path specified.

Bob


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

I did look on the 'recent files' list. None are on the flash drive.



Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

On 7/10/15 4:38 AM, Scott Kostyshak wrote:


The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.




I have cygwin installed on my computer so I tried using its strace 
command to run Lyx.


Unfortunately, this was not very edifying, at least to me. Perhaps 
cygwin is not that well integrated into the windows operating system so 
it does not report internal Windows system calls??


Bob

Here is a capture of the commands and output with my comments:

--- Comment: first I tried to run Lyx with strace using some options 
(V=version, d=debug). It just gave the version without running Lyx

---end comment

$ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
strace (cygwin) 1.7.35
System Trace
Copyright (C) 2000 - 2015 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


--- comment
then I used strace without any options. Now it did run Lyx, I got the 
scan of the flash drive but there was no output while Lyx was running. 
After I exited Lyx (File|exit) I got the few lines of output shown below.

 end comment

$ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
--- Process 1080, exception 401f at 77A4129B

bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
$

--comment
I tried re-directing the output of the strace command but got 
essentially the same result as shown above. The process number was 
different but the memory address of the exception was the same.

--- end comment


I'm writing a book in VimOutliner

2007-12-30 Thread Bob Alvarez
This is quite interesting to me as I am also interested in writing a book
with Lyx. I think I have seen some of your discussions in using VIM, and I
guess now VIM outliner, with Lyx. Could you provide links to documents on
your website and possibly posts on the Lyx user's mailing list where you
discuss the use of VIM with Lyx?

TIA

Bob


Re: help on keyboard shortcut

2008-02-18 Thread Bob Alvarez
"If you do not find a suitable style file, you can easily create your own.

Type "latex makbst" in a console window, and answer the questions.

Jürgen"

I tried this on my Windows XP installation and got the following message.
I also searched for files named makbst on my system and with google on
the internet
and could not find anything appropriate. Any suggestions where I can
find this package?

Bob

C:\>latex makbst
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
entering extended mode
! I can't find file `makbst'.
<*> makbst


Re: Problems with Lyx in connection to JabRef

2008-02-18 Thread Bob Alvarez
Whoops, wrong Subject for email


"If you do not find a suitable style file, you can easily create your own.
>
> Type "latex makbst" in a console window, and answer the questions.
>
> Jürgen"
>
> I tried this on my Windows XP installation and got the following message.
>
> I also searched for files named makbst on my system and with google on the 
> internet
> and could not find anything appropriate. Any suggestions where I can find 
> this package?
>
> Bob
>
> C:\>latex makbst
> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
> entering extended mode
> ! I can't find file `makbst'.
> <*> makbst
>
>


Installing on Mac--MacTex vs. BasicTex

2011-05-26 Thread Bob Alvarez
I am installing Lyx 1.6.9 on a Macbook Air OSX 10.6 .  Looking through 
the instructions I was dismayed to see that I may have to install the 
1.6 GB MacTex package. This machine only has a 64 GB drive so this is 
quite a lot of overhead not to mention that the download will take many 
hours on my basic DSL connection.


The Wiki suggests BasicTex but this thread suggests that is a bad idea
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg78404.html

Questions:
1. Has anyone had success installing and using Lyx with BasicTex (I am 
mainly interested in koma-script article document class)?


2. Any ideas on using an external USB drive to hold the installation 
package and then selecting the components I need for Lyx?


3. Any other ideas on how to reduce the drive space requirement?

TIA

Bob


keyboard binding for font in math mode

2012-01-06 Thread Bob Alvarez
I use multiple fonts in my equations and it is tedious to type for 
example \mathcal every time I want to insert a character with that font. 
So I wrote a keyboard binding that takes over the control-e in cua.bind


\bind "C-e""math-insert \mathcal"

This works OK but it leaves the cursor to the right of the entry box so 
every time I have to type a left-arrow to get into the box.


Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of 
the window in math mode. But that does the same thing i.e. does not end 
up in the box


pps. I am a mailing list newbie. How do I reply to messages so they end 
up in the same thread with my original. I think I am supposed to have an 
"in-reply-to" field in the message header but how do I do this with 
thunderbird?


ppps. I am using Lyx 1.6.5 on Windows XP



Re: keyboard binding for font in math mode

2012-01-09 Thread Bob Alvarez
I found that these work. I suggest using these in the Math mode font 
toolbar since the current approach leaves the cursor outside the insert 
text box


# insert in mathbf font or mathcal
\bind "C-M-b""command-sequence math-insert \mathbf; 
char-backward"
\bind "C-M-e""command-sequence math-insert \mathcal; 
char-backward"


Bob

On 1/6/12 10:48 AM, Bob Alvarez wrote:

I use multiple fonts in my equations and it is tedious to type for
example \mathcal every time I want to insert a character with that font.
So I wrote a keyboard binding that takes over the control-e in cua.bind

\bind "C-e""math-insert \mathcal"

This works OK but it leaves the cursor to the right of the entry box so
every time I have to type a left-arrow to get into the box.

Is there any way to define the binding so I end up inside the box?

TIA

Bob

p.s. I got the command from the font tools that appear at the bottom of
the window in math mode. But that does the same thing i.e. does not end
up in the box

pps. I am a mailing list newbie. How do I reply to messages so they end
up in the same thread with my original. I think I am supposed to have an
"in-reply-to" field in the message header but how do I do this with
thunderbird?

ppps. I am using Lyx 1.6.5 on Windows XP





help on keyboard shortcut

2007-06-20 Thread Bob Alvarez

I am trying to add a command to not indent a paragraph in Lyx 1.4.4. I do
this now by inserting ERT \noindent at the start of the paragraph

This works fine but it is tedious since I use this after (almost) every
equation in my paper. So, I am trying to do this with a keyboard shortcut.

I modified cua.bind to use one of the 'Free bindings', by inserting the
following line in the file

\bind "C-y""command-sequence ert-insert; self-insert \noindent;"

Now when I type control-y this mostly works but it leaves me in ert-insert
mode. What commands can I use to:

1. get out of ert-insert mode to regular text insert mode

2. insert a space in the text after the ERT.

TIA

Bob


Re: help on keyboard shortcut

2007-06-20 Thread Bob Alvarez

Or perhaps better yet:

"command-sequence ert-insert; self-insert \noindent a;
delete-backward; next-inset-toggle"
Then you get the space inside ERT, and the inset is collapsed for you.


That works.


Thank you.

Bob


Re: help on keyboard shortcut

2007-06-22 Thread Bob Alvarez

If, as I suspect, Bob wants the space just to keep \noindent from running
into the text, a somewhat simpler solution is

"command-sequence ert-insert; self-insert \noindent{}; char-forward;"
---

Yes, that is the purpose of the space.
This works but I do not understand the code. Do the braces {} after
\noindent put you back into regular text input mode?

Thanks for your input.

Bob


Insert Float figure keyboard shortcut

2007-07-15 Thread Bob Alvarez

What is the keyboard shortcut to insert a float figure? I am using version
1.4.4 and I get as far as
alt I a
and then I am stuck. This gets me to insert float but there doesn't seem to
be a way to select figure from the popup menu.

Any help appreciated.

Bob


Arrow keys work

2007-07-16 Thread Bob Alvarez

Bob Alvarez wrote:

What is the keyboard shortcut to insert a float figure? I am using version
1.4.4 and I get as far as
alt I a
and then I am stuck. This gets me to insert float but there doesn't seem to
be a way to select figure from the popup menu.

Right, the shortcuts are missing but you can still use right-arrow, down-arrow
and Enter. Or you can edit you stdmenu.inc file and add an '&' before the
letter you want to use as a shortcut.

Abdel.

--
Thanks. The arrow keys do work.

But I don't see where to modify the stdmenus.inc file. Could you show
where is the proper place?

Bob


editing a matrix

2013-03-07 Thread Bob Alvarez

Section 4 of the Lyx Detailed Math manual describes how to set a Matrix
characteristics when I create it.

What if I change my mind? Is there any way to edit the Matrix?

In particular, how do I change the horizontal alignment? For example, go
from  to rrcc.

Bob



Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez
>
> "This will NOT be YAHC (Yet Another HTML Converter). It will be a small
> subset of LyX's capabilities, purposed not to turn a document into HTML,
> but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
> It will in no way try to replace the existing HTML Converters, and from
> what I've seen so far, the existing HTML converters would have a hard time
> replacing what I'm trying to make."
>

Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the "Additional" and Ch. 5 of the "Customization" but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




"Error converting to loadable format" + updating Lyx

2013-09-02 Thread Bob Alvarez
I am getting the dreaded "ImageMagick Studio library and utility 
programs has stopped working" followed by "Error converting to loadable 
format" with my LyX Version 2.0.5.1 on a Windows 7 64 bit system. FWIW, 
this has happened to me in past Lyx versions  and seems to start when I 
edit a copy of a Lyx file. Lyx seems to work OK on files I created 
previously.


I searched here and the only solution seems to be to re-install Lyx. I 
have found that approach does work. That's OK because it is time to 
upgrade anyway although it would be good to have a better workaround.


Questions:
1. Are there any improved ways for dealing with the errors?
2. I want to install from a Windows binary. I found the list of files at 
the end of the email on the binaries page but no explanation on what 
they are.
Could someone explain what they are or point me to the proper one to use 
with my computer (Windows 7 64 bit)?
I never know whether to uninstall the previous version. IIRC, in the 
past I have not and the update seems to work OK. What is the suggested 
thing to do?


TIA

Bob

Index of ftp://ftp.lyx.org/pub/lyx/bin/2.0.6/

Up to higher level directory
Name Size Last Modified
File:LyX-2.0.6+qt4.dmg 127478 KB 5/6/13 11:41:00 PM
File:LyX-2.0.6+qt4.dmg.sig 1 KB 5/7/13 4:32:00 PM
File:LyX-2.0.6-Bundle-1.exe 202662 KB 5/3/13 9:55:00 PM
File:LyX-2.0.6-Bundle-1.exe.sig 1 KB 5/4/13 3:01:00 PM
File:LyX-2.0.6-Bundle-2.exe 203706 KB 5/19/13 7:32:00 PM
File:LyX-2.0.6-Bundle-2.exe.sig 1 KB 5/22/13 7:12:00 PM
File:LyX-2.0.6-Installer-1.exe 34286 KB 5/3/13 9:21:00 PM
File:LyX-2.0.6-Installer-1.exe.sig 1 KB 5/4/13 3:01:00 PM
File:LyX-2.0.6-Installer-2.exe 35326 KB 5/19/13 6:52:00 PM
File:LyX-2.0.6-Installer-2.exe.sig 1 KB 5/22/13 7:13:00 PM
File:LyX-2.0.6-cygwin.tar.gz 23975 KB 5/7/13 11:07:00 PM
File:LyX-2.0.6-cygwin.tar.gz.sig 1 KB 5/8/13 11:24:00 PM


Re: Thank you for View->Update

2013-09-09 Thread Bob Alvarez



Thank you very much for View->Update (Ctrl+Shift+R). It's been in LyX
for many, many versions, but now it works, and it's a great help in
keeping the PDF I'm proofreading in sync with the file I'm modifying.



On my Windows 7 system the pdf viewer does not allow updates to the 
file.  Lyx gives me the error message:


"I can't write on file ..."

Does anyone know a way around this?

Bob


Re: Thank you for View->Update

2013-09-10 Thread Bob Alvarez

On 9/10/13 1:09 AM, Roel Schipper - CITG wrote:

Normally I use Adobe Acrobat, but if I am working on a Lyx file that I want to 
update frequently during editing, I do the following:
- Go to you desktop, right-click a random PDF file
- From the context-menu, select "Open with..."
- One level deeper, choose "Choose default program..."
- In my situation, the PDF-viewer TeXworks is visible, if you check "Always use the 
selected program to open this kind of file" then it will work, since TeXworks 
doesn't lock the PDF down.
- If you don't see TeXworks, try to find it first by browsing to it, from then 
on it will be in the menu
- If you want to go back to Acrobat, follow the same route.

Good luck,
Roel Schipper
Thanks, that does work but TexWorks is a limited program, for example it 
does not seem to show bookmarks in pdf documents, so as you mention I 
would have to switch back and forth.


I tried to change the defaults for pdf viewer in Tools|Preferences|File 
Handling|File formats  and then selecting PDF in the Format dropdown menu.


The default in the Viewer: dropdown list is pdfview, which seems to 
choose the system default viewer. I tried selecting Custom and the 
entering the path to the texworks program but that does not work. The 
message box at the bottom of the Lyx window says "successful preview 
..." but the Texworks program does not open. I even tried using the 
shortened path with no spaces with no luck.

C:\Progra~2\MIKTEX~1.9\miktex\bin\miktex-texworks.exe

Does anyone know how to set the Lyx pdf viewer to be different from the 
system default?


Bob



exporting tex for newbies

2013-09-17 Thread Bob Alvarez
I recently had a paper accepted by an American Institute of Physics 
journal. The paper was reviewed from pdf documents created by Lyx but 
now the AIP emails: "Please upload your article file as a Word or Tex 
file. AIP production cannot use a PDF as the article source file." I 
assume they want to reformat the article for the standard of the journal.


I have read several threads on the  User's group and this does not seem 
as simple as doing a  File|export|latex.

Some issues that seem to come up are handling citations, and figures.

Can anyone suggest a step-by-step method for a Tex newbie to create a 
package that I can send them? The package might include the Latex file 
created by one of the export options (please specify which one), my 
bibtex file, plus ???


BTW, my figures are all in eps format and I assume the AIP can use those??

FWIW, I am using Lyx 2.0.6 on a Windows 7 64 bit system.

Bob


Re: exporting tex for newbies

2013-09-17 Thread Bob Alvarez

On 9/17/13 1:01 PM, Murat Yildizoglu wrote:

Dear Bob,
In general, providing the exported latex file (File/Export/Latex menu
item), the bbl file that contains your bibliography (if you use bibtex),
and the figures in a format accepted by the journal  is sufficient.



Thanks for your reply. Some questions:

1. What is a 'bbl' file? Is that the same as my bibtex file? If not,
   how do I produce it?
2. There are multiple latex export options e.g. Latex (Luatex), Latex
   (xetex), ... Which one do you suggest I use?

Bob



Re: exporting tex for newbies

2013-09-30 Thread Bob Alvarez
Here is how exported a tex file for an AIP journal. It was easier than I
thought it would be--thanks Lyx developers!

1. Put Lyx file same directory as the graphics files.Modify the graphics
file addresses in the Lyx file if you, like me, have them in a separate
directory while writing the manuscript.  Make sure the Lyx file works by
previewing the pdf.
2. Do a File|export|pdflatex.
3. I think this automatically converts the graphics files to pdf, which are
needed for the .tex file to work. If not, try running pdflatex from the DOS
command line. It should be in the system path from your Lyx installation.
4. The pdflatex creates several files in the directory including one with a
.bbl extension. Open that one with a text editor like Notepad and select
all of it and copy to the clipboard.
5. Open the .tex file in the text editor, scroll to the end and look for
the two lines starting with "bibfiles ..." and "options ..."
6. delete those lines and paste in the contents of the .bbl file in their
place. Save the modified .tex file

That's it. The journal website seems to accept the file.

additional notes:
The journal website converts my .eps graphics files to .pdf so I did not
have to upload them.



On Tue, Sep 17, 2013 at 1:34 PM, Bob Alvarez <cobol...@gmail.com> wrote:

>  On 9/17/13 1:01 PM, Murat Yildizoglu wrote:
>
> Dear Bob,
> In general, providing the exported latex file (File/Export/Latex menu
> item), the bbl file that contains your bibliography (if you use bibtex),
> and the figures in a format accepted by the journal  is sufficient.
>
>
>
>  Thanks for your reply. Some questions:
>
>
>1. What is a 'bbl' file? Is that the same as my bibtex file? If not,
>how do I produce it?
>2. There are multiple latex export options e.g. Latex (Luatex), Latex
>(xetex), ... Which one do you suggest I use?
>
> Bob
>


Error message with bad citation/reference

2015-04-28 Thread Bob Alvarez
Is there a way to get Lyx to display an error message when it cannot 
find a citation in a bibtex database or a cross-reference to a label in 
the document?


So far, it just silently puts a question mark or some other indication 
in the pdf but this is an important error that I need to correct. In 
small documents these are easy to spot but in large documents like a 
book with multiple child files these can be easy to miss.


TIA

Bob


Re: Error message with bad citation/reference

2015-05-02 Thread Bob Alvarez
Bob Alvarez  gmail.com> writes:

> 
> Is there a way to get Lyx to display an error message when it cannot 
> find a citation in a bibtex database or a cross-reference to a label in 
> the document?
> 

Here is the way to do it:
1. In Lyx (my version is 2.1.3 on Windows 7), select View|Messages Pane

2. make a small change in your file so the document will be re-processed

3. Click on View (the two eyes icon) or ctrl-R
You will see many messages appear.

4. Scroll down to the line containing 
bibtex 

:yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?

TIA

Bob


Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

> On Thu, Jul 9, 2015 at 12:34 PM, Bob Alvarez <reward...@gmail.com> wrote:

I have Lyx 2.1.3 on a Windows 7 computer. Since I upgraded to 2.1.3, Lyx
has been very slow to open. I have a flash drive connected to the
computer and I noticed that the activity light starts flashing when I
try to open Lyx and then after it stops,  I see the Lyx window.

Is Lyx scanning my disks when it opens?

How can I stop it from doing this?

Any other ideas on the cause of slow opening?


Hi Bob,

Does this happen every time when you open LyX? LyX does something
special (it runs configure.py) when it is opened for the first time,
so it will help to figure out if the problem is in that script.

What LyX version did you have before you upgraded? Did you also use
that version on the same machine, with Windows 7 and the flash drive?

Where is your flash drive mounted? Meaning, how do you access a disk
that is in there? e.g. E:\ ?

Please respond to the list (lyx-users@lists.lyx.org), not to me personally.

Best,

Scott


Hi Scott

1. I usually turn my computer off at night. I see the disk scanning when
I first start Lyx after the computer has been off. After the first
opening, I do not see the scanning if I close Lyx and then re-open it

2. The flash drive is I:\ but I am not opening a Lyx file on that drive
when I see the scanning. For what it's worth, the Lyx files are usually
on the L:\ drive.

3. IIRC my previous version was 2.0.6 and it was installed on the same
computer with the same drive configuration i.e. I:\ flash and most files
on L:\

Bob




Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez




1. I usually turn my computer off at night. I see the disk scanning when
I first start Lyx after the computer has been off. After the first
opening, I do not see the scanning if I close Lyx and then re-open it



This is not correct. Lyx seems to scan the flash drive every time I open it.

Bob



Re: :yx scanning disks on opening

2015-07-09 Thread Bob Alvarez

On 7/9/15 3:27 PM, Scott Kostyshak wrote:


Can you please go to Help > About LyX and copy/paste the information? I
am particularly interested in the "Library directory" and "User
directory".



LyX Version 2.1.3
(Friday, February 06, 2015)

Library directory: C:\Program Files (x86)\LyX 2.1\Resources\
User directory: ~\AppData\Roaming\LyX2.1\

--

Scott

See the information above. I do not know how the program uses the user 
directory but AFAIK Windows does not define the ~ symbol as the home 
directory. I tried to use it on the Windows command line program cmd.exe 
and it did not recognize it.


C:\Users\bob>cd ~
The system cannot find the path specified.

Bob


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

On 7/10/15 4:38 AM, Scott Kostyshak wrote:


The only other idea is that maybe Qt (a GUI toolkit that LyX uses) is
caching something on your flash drive. Again, I have no idea on Windows
how find this out. 'strace' would be what I would use on Linux.

Please keep us updated on this if you figure out the mystery.




I have cygwin installed on my computer so I tried using its strace 
command to run Lyx.


Unfortunately, this was not very edifying, at least to me. Perhaps 
cygwin is not that well integrated into the windows operating system so 
it does not report internal Windows system calls??


Bob

Here is a capture of the commands and output with my comments:

---> Comment: first I tried to run Lyx with strace using some options 
(V=version, d=debug). It just gave the version without running Lyx

--->end comment

$ strace -Vd /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
strace (cygwin) 1.7.35
System Trace
Copyright (C) 2000 - 2015 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2


---> comment
then I used strace without any options. Now it did run Lyx, I got the 
scan of the flash drive but there was no output while Lyx was running. 
After I exited Lyx (File|exit) I got the few lines of output shown below.

> end comment

$ strace /cygdrive/c/PROGRA~2//LYX2~1.1//bin//lyx.exe P58BH3recon2.lyx
--- Process 1080, exception 401f at 77A4129B

bob@ivy /cygdrive/l/Projects/Blog/Posts/P58BH3recon2
$

-->comment
I tried re-directing the output of the strace command but got 
essentially the same result as shown above. The process number was 
different but the memory address of the exception was the same.

---> end comment


Re: :yx scanning disks on opening

2015-07-10 Thread Bob Alvarez

I did look on the 'recent files' list. None are on the flash drive.



Finding common mistakes

2016-05-16 Thread Bob Alvarez
Is there any software tool that finds common mistakes in writing beyond 
spelling errors? I mean things like repeated words, homonym substitutions such 
as their/there, lose/loose, which/that confusion, etc?


I also paste my text into Microsoft Word and use their grammar checker. It 
spots some of these problems but goes overboard with pointing out passive voice 
verbs.


There is a tool called Papyrus Autor which implements the rules of Andreas 
Eschbach but alas so far it is only for German. Here are some of the rules 
(this is from a post on writers stackexchange but I will not post a link 
because it might get this post rejected). These are very sophisticated but it 
would be great to have even simple stuff.


The 10 marking steps by Andreas Eschbach:


First print out your text (yes, you need it on paper). Pick a small text 
passage you can easily overview and go through all of the following 10 points 
with this passage. Then pick the next one. Use different colors for marking 
your text and for editing it.

  1.  Strike through the first paragraph of a scene from upper left to lower 
right.
Think: Do you really need it? Often the first paragraph is used to "warming up" 
while writing. Could you put the info into later sections?
  2.  Strike through all adjectives and adverbs
Think: Can you use a more precise noun/verb instead using the 
adjectives/adverbs?
  3.  Mark all dialog decorators (like he said, he replied, ...) with wavy 
lines.
Think: Can you delete them without puzzling the user? Can you replace them with 
actions (instead of: "Are you sure?" asked Peter => use: "Are you sure?" Peter 
scratched his head. He couldn't believe what he was hearing.)?
  4.  Mark filler words and imprecise words (some, quite, rather, several, few, 
...) by drawing a box around them.
Think: Normally you can just delete them or make them more precise (Only a few 
people ... => Only ten people ...)
  5.  Cross out concurrency indicators (during, while, ...)
Think: Often it could be better to write things that happen simultaneously in 
two different sentences: "She cried while he beat her." => "He beat her. She 
cried."
  6.  Mark passive sentences with a small "P" above them.
Think: Often the active form is better (more action): New Orleans was 
devastated by a hurricane. => The hurricane devastated New Orleans.
  7.  Mark long sentences with an "L" above the sentence.
Think: Make them shorter! No-one likes to read long sentences (except your 
English teacher in school maybe).
  8.  Mark long dialogs with an "LD".
Think: Can you shorten them or divide them into several parts?
  9.  Mark indirect perception with a jagged line, like "watched" and "asked" 
in these examples:
"He watched, how the woman crossed the street joining the spectators there. He 
asked himself, what was going on there."
Think: Do you really need it? Why? Does this sound better: "He watched the 
spectators on the other side. Another woman crossed the street to join them. 
What was going on there?"
  10. Search paragraphs where you wrote the same thing with different wording. 
Mark it with wavy lines at the sheet margin:
"She hit him a second time. Another time she stroke the club on his head."
Think: This looks like you were searching for the right expression while 
writing. Nothing wrong with that, but only keep one of them.






foot note symbol in author listing

2017-02-13 Thread Bob Alvarez
I want to include my institution and email address in a footnote to my 
name on the first page of the article. I did this by inserting a 
footnote from the menu on Lyx.


According to the User's Manual:
The footnote will appear in the output as a superscript number at the 
text position where the footnote box is placed.


A preview (and exporting the pdf output) of lyx file included below 
shows that the footnote appears but there is no footnote symbol after my 
name.


I would like to have a symbol to draw the reader's attention to the 
information.


Ideas on how to do this?

Robert Alvarez

Sample Lyx file below the dashed line
---
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass IEEEtran
\begin_preamble
\pdfminorversion 4
\renewcommand{\fnum@figure}{Fig.~\thefigure}
\end_preamble
\options sort,twocolumn
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans helvet
\font_typewriter default
\font_math auto
\font_default_family sfdefault
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 10
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 3
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1.7cm
\topmargin 1.5cm
\rightmargin 1.7cm
\bottommargin 2cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 2
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Title
paper title
\end_layout

\begin_layout Author
John Q.
 Author
\begin_inset Foot
status open

\begin_layout Plain Layout
\begin_inset CommandInset href
LatexCommand href
name "Lyx organization"
target "http://www.lyx.org;

\end_inset

, l...@lyx.com
\end_layout

\end_inset


\end_layout

\begin_layout Abstract
Blah blah blahBlah blah blahBlah blah blahBlah blah blahBlah blah blahBlah
 blah blahBlah blah blahBlah blah blahBlah blah blahBlah blah blahBlah blah
 blahBlah blah blahBlah blah blahBlah blah blahBlah blah blahBlah blah blah
\end_layout

\begin_layout Abstract
\begin_inset VSpace 0.2cm
\end_inset


\end_layout

\begin_layout Abstract
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
hspace{-0.1cm}
\end_layout

\end_inset

Key Words: Blah blah blahBlah blah blahBlah blah blahBlah blah blahBlah
 blah blah
\end_layout

\begin_layout Section
INTRODUCTION
\end_layout

\begin_layout Standard
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 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 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_layout

\end_body
\end_document




Re: LyX native format stuck in the middle

2017-08-05 Thread Bob Alvarez
I would like to second Steve Litt's plea for a well-formed Lyx native 
format. I wrote a script to create a package to submit to a journal from 
my paper's Lyx file. The package includes a tex file with the 
bibliography and figure files renamed with standardized names such as 
fig1.eps. It makes copies of the re-named figure files in a subdirectory.


As it stands now, the code will break if I upgrade from my current 
version of Lyx. If there were a well formed native format, my script 
could be written once and used with new versions. I could distribute it 
to Lyx users who need to do this common task.


This is just one example of the Lyx add-ons that Steve envisions.

Bob Alvarez


Re: insert listing so it can be copy/pasted from pdf

2019-05-09 Thread Bob Alvarez
Here is an interesting discussion on the topic of this thread
embed-non-pdf-files-e-g-bibtex-into-pdf-with-hyperlink-in-the-pdf

The post lists 9 criteria for a useful embedded file that I mostly agree with. 
Then LateX packages are evaluated against the criteria by testing with several 
pdf readers as I did with Joel's pdf file. The packages are: embedfile, 
navigator, attachfile, and some combinations. None satisfied all the critera 
and this lead to writing a new package, intopdf. Unfortunately the new package 
was not tested.

I am still interested in how to get any of these working with Lyx.


Re: insert listing so it can be copy/pasted from pdf

2019-05-09 Thread Bob Alvarez
It looks like this did not get on the mailing list so I am re-sending


>Unless you will go through a publisher that will prevent it, I would still 
>encourage you to look at the approach I suggested. It is demonstrated here: 
>https://laws.lanl.gov/vhosts/mcnp.lanl.gov/pdf_files/la-ur-19-20291.pdf

Thanks for the example. I used it to test the readers on my Win7 desktop 
computer and was able to extract the downloads with: Adobe Acrobat Reader DC, 
Pdf-Xchange Viewer (free v2.5 2012), and Sumatra 2.3.2.

I like this approach. I doubt that I could use this for a paper with a 
traditional journal but who knows?? I also post papers to ResearchGate etc and 
there it would work since you just have to post a pdf. I don't know whether it 
would work on arXiv where they want tex files but it is also worth a shot.

So how do I implement this with Lyx? You mentioned to use the "Navigator' 
package. I looked at the documentation and AFAIK it allows including links to 
stuff but it is not clear how to add an attachment.

I would appreciate help in getting attachments working from a plain-vanilla 
install of Lyx.

Bob


Re: insert listing so it can be copy/pasted from pdf

2019-05-08 Thread Bob Alvarez
> So I expect this to be a problem of your PDF Viewer or clipboard or OS.

I agree. As I mentioned in a previous post on this thread, putting the code in 
the pdf is not reliable enough to be used. So I have decided not to attempt to 
do it. I will put the code in a supplementary information file for the paper 
and post it online.

Thanks for your help.

Bob



Re: insert listing so it can be copy/pasted from pdf

2019-05-06 Thread Bob Alvarez

>Which fonts does your PDF use?
Here is what Pdf-Xchange viewer reported:

CMSY9 (Embedded Subset)
Type: Type 1 Encoding: Built-in Object Number: 5

LMRomanlO-Regular (Embedded Subset)
Type: Type 1 (CID) Encoding: Identity-H Object Number: 6

LMRoman9- Regular (Embedded Subset)
Type: Type 1 (CID) Encoding: Identity-H Object Number: 4

>Is this with non-TeX fonts or with TeX fonts?
Either one gives same result

>Which output format?
I tried several, luaTex and pdfLatex. All gave same problem.



Re: insert listing so it can be copy/pasted from pdf

2019-05-06 Thread Bob Alvarez
Guenter and Joel

I appreciate your help but I am coming to the conclusion that the pdf file 
format is not well enough defined to be able to reliably embed software 
listings that the reader can copy/paste into a file and then be able to compile 
the results.  I will have to continue as I have done in the past to include a 
listing in the pdf but also to provide a link to a supplementary online zip 
file with the source code in text files.

Bob

p.s.
Guenter, here are the answers to some of the questions in your response:

>Does it show up as hyphen or as question mark in the PDF?
It is displayed as a '-' in the pdf but copy and paste of the 3 characters in 
the listing results in x?y with '?' being 3F hex according to my editor.

>Which fonts does your PDF use?
I do not know how to answer that question. How do I find out what fonts it uses?

>What is the result if your listing contains: ...
Here is what I get if I enter your list into the listing, create a pdf then 
copy and paste the text in the listing.

30 ! " # $ % & '
40 ( ) ? + , ? . / 0 1
50 2 3 4 5 6 7 8 9 : ;
60 < = > ? @ A B C D E
70 F G H I J K L M N O
80 P Q R S T U V W X Y
90 Z [ \ ] ^ _ ` a b c
100 d e f g h i j k l m
110 n o p q r s t u v w
120 x y z { | } ~
160 ½¢¿¤¥¦?¨ c ?
170
a ?¬­
R ?¯°±²³
180 ´µ¶· ¹ o ?¼½
190 ¾¾ÀÁÂÃÄÅÆÇ
200 ÈÉÊËÌÍÎÏÐÑ
210 ÒÓÔÕÖ×ØÙÚÛ
220 ÜÝÞÿàáâãäå
230 æçèéêëìíîï
240 ðñòóôõö÷øù
250 úûüýþ¸




Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Bob Alvarez
Whoops--I inadvertently sent this before I finished. Here is the complete 
question ...

I want to insert text code listings into Lyx  so readers can copy and paste 
from the pdf document into their plain text editor software.

To replicate my problem use the example lyx file belo. Export as pdf (LuaTex). 
In the pdf select the listing text 'x-y', copy onto the clipboard, then paste 
into a text editor.

My editor complains that it cannot represent some of the characters. The '-' 
character in the listing is encoded as 3f hex instead of 2d hex as it would be 
with ASCII.

As you can see in the example, I tried fooling around with the listings 
parameters by setting extendedchars=false
but that did not help.

Any suggestions as to how to fix this?

Bob

 example.lyx--
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\listings_params "extendedchars=false"
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Plain Layout
\begin_inset listings
lstparams "basicstyle={\small},showstringspaces=false"
inline false
status open

\begin_layout Plain Layout

x-y
\end_layout

\end_inset


\end_layout

\end_inset


\end_layout

\end_body
\end_document





Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Bob Alvarez
>>Does using "non-TeX" fonts in Document>Settings>Fonts help?(This allows all 
>>Unicode characters in listings and uses Unicode-encoded fonts in the output.)

There was no change. The '-' character on the clipboard is still encoded as 3f 
hex.

Bob

p.s. I copied the text at the bottom of my email and pasted into a text editor 
then saved as example2.lyx. When I tried to open it with my Lyx 2.1.3 I get a 
pop-up saying

...example2.lyx is not a readable LyX document.

where ... is the path on my computer