Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Jean-Marc Lasgouttes
 Ernesto == Ernesto Posse [EMAIL PROTECTED] writes:

Ernesto I have a couple of questions about customizing the toolbar:
Ernesto 1) Is there a lyx function that applies layouts
Ernesto (environments) to a selection or to the current paragraph,
Ernesto which can be used by a (custom) toolbar button? (I didn't
Ernesto find any)

Sure, it is called layout. We even have proper icons for layout
Section and layout LyX-Code. You can add your own icons by
providing a file layout_foo.xpm for layout foo.

Ernesto 2) Are there keyboard shortcuts for layouts (environments)?
Ernesto Where would I find those?

In LYXDIR/bind/menus.bind. I append the list for your reading pleasure.

Note also that when you select a layout from the layout box, you will
see the corresponding keyboard shortcut in the minibuffer (the same
holds for menu entries and icons).

JMarc

#
# Paragraph style menu
#

\bind M-p ~S-0layout Part 
\bind M-p ~S-1layout Chapter 
\bind M-p ~S-2layout Section 
\bind M-p ~S-3layout Subsection  
\bind M-p ~S-4layout Subsubsection
\bind M-p ~S-5layout Paragraph
\bind M-p ~S-6layout Subparagraph
\bind M-p ~S-asterisk ~S-0layout Part* 
\bind M-p ~S-asterisk ~S-1layout Chapter* 
\bind M-p ~S-asterisk ~S-2layout Section* 
\bind M-p ~S-asterisk ~S-3layout Subsection*  
\bind M-p ~S-asterisk ~S-4layout Subsubsection*
\bind M-p ~S-asterisk ~S-5layout Paragraph*
\bind M-p ~S-asterisk ~S-6layout Subparagraph*
\bind M-p a   layout Abstract
\bind M-p S-A layout Author
\bind M-p M-a layout Address
\bind M-p C-a layout Right_Address
\bind M-p b   layout Itemize# bulleted list
\bind M-p S-B layout Bibliography
\bind M-p c   layout LyX-Code
\bind M-p S-C layout Comment
\bind M-p M-c layout Caption
\bind M-p d   layout Description
\bind M-p S-D layout Date
\bind M-p e   layout Enumerate  # numbered list
\bind M-p f   layout ShortFoilhead  # Foils!!
\bind M-p S-F layout Foilhead   # Foils!!
\bind M-p i   layout Itemize# bulleted list
\bind M-p l   layout List
\bind M-p S-L layout LaTeX
\bind M-p n   layout Enumerate  # numbered list
\bind M-p q   layout Quote
\bind M-p S-Q layout Quotation
\bind M-p r   layout ShortRotatefoilhead# Foils!!
\bind M-p S-R layout Rotatefoilhead # Foils!!
\bind M-p s   layout Standard
\bind M-p t   layout Title
\bind M-p space   drop-layouts-choice
\bind M-p v   layout Verse



Re: [OT] PDF permissions

2005-12-02 Thread Helge Hafting

K. Elo wrote:

Without knowing it, you have helped me, too. A couple of day ago I 
received a pdf-formular from a company. After having opened it with my 
acoread 7.0 for linux I noticed that the printing was not possible, 
because the printing permission was diabled (very practical with a 
formular, indeed!). I contacted the company, but they haven't even 
heard about the permissions (because they use 6.0 where the permissions 
are, AFAIK, simply ignored) and didn't know how to fix the formular.


At this point, your mail arrived. I downloaded pdftrans and itext, 
installed them - and voilà!
 


On linux, use xpdf which couldn't care less about permissions.
I use it to copy/paste stuff out of pdf's that are protected against
copying with acrobat.

Having copy protection enforced by the client is such a joke,
just use a client that don't implement it. Anyway, there is no way
to simultaneously allow reading and prevent copying.

Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread H. Peter Gumm
Uwe, thanks for correcting the instant-preview glitch in your installer.

In my eyes, the installer is a great step ahead to make LyX popular amongst
Windows-Users who are typically not willing to install all sorts of auxiliary
programs (MinGW,Imagemagick,  ...) before being able to try out a new unknown
application. Thanks for the great work!

I have the following suggestions for improvement, some may concern the
installer, some LyX itself:

- I am using LyX with slightly larger screen fonts than in the
  default configuration. (Getting old.) Unfortunately, the math
  formulas displayed by instant preview dont scale correspondingly,
  they remain in the small fonts.

- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
  one finds the trick (in the FAQs) of changing the fonts size to ae
  in Document-Layout. Why not making this the default from the beginning ?

- I typically start LyX by doubleclicking on a .lyx-file. This opens LyX with
  the file as expected. When the document is more or less in final form, I
  scrutinize the the dvi-file for error. Unfortunately:

  = each C-d starts a new instance of Yap. This means that each time I have to
adapt Yap again by enlarging fonts, etc.

  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
This opens a new LyX on the same file. At the end I discover that I have
several LyXes open on the same file. Oops!! Which one do I want to save now 
?

== How about an warning message when opening LyX on a file that is already
open in LyX. This behaviour is common in most editors.

Greetings,

H.Peter Gumm




Re: [OT] PDF permissions

2005-12-02 Thread K. Elo
Hej på dig, Helge,

Helge Hafting, 2.12.2005 12:00:
 K. Elo wrote:
 Without knowing it, you have helped me, too. A couple of day ago I
 received a pdf-formular from a company. After having opened it with
  my acoread 7.0 for linux I noticed that the printing was not
  possible, because the printing permission was diabled (very
  practical with a formular, indeed!). I contacted the company, but
  they haven't even heard about the permissions (because they use 6.0
  where the permissions are, AFAIK, simply ignored) and didn't know
  how to fix the formular.
 
 At this point, your mail arrived. I downloaded pdftrans and itext,
 installed them - and voilà!

 On linux, use xpdf which couldn't care less about permissions.
 I use it to copy/paste stuff out of pdf's that are protected against
 copying with acrobat.


Yes, sure. But the problem was I had to fill in the form before printing 
and you just cannot fill in forms with xpdf. You could imagine I was a 
little bit unhappy, when I had filled in the form (with 3 pages) and 
then figured out the printing permission was set to not allowed. 
There was absolutely no way to save the information already filled in. 
*Grr*!

But anyway, thanks for your advice!

Cheers,
Kimmo


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Jean-Marc Lasgouttes
 H == H Peter Gumm [EMAIL PROTECTED] writes:

H - Generating pdf-files, one obtains rather ugly bit-mapped fonts,
H until one finds the trick (in the FAQs) of changing the fonts size
H to ae in Document-Layout. Why not making this the default from
H the beginning ?

Note that the bit-mapped fonts loose much of their ugliness when using
adobe reader 6/7.

H   = each C-d starts a new instance of Yap. This means that each
H time I have to adapt Yap again by enlarging fonts, etc.

What about S-C-d to just update dvi?

JMarc


Re: Writing letters...

2005-12-02 Thread Helge Hafting

[EMAIL PROTECTED] wrote:


I use the Koma-script letter template with some adjustments for my
correspondance. Nice looking. The problem comes with envelopps :
1) Is there a template to print C6/5 envelopps ? If so, where ?
 


A template for printing the address onto the envelope itself?
You can make one like this:
1. Create a document
2. Go into document settings
3. Set the page size to the actual size of your envelope (measure it
   with a ruler)
4. Set the margin so the address gets where you want it
5. Save this into .lyx/templates/envelope.lyx

Now you have a template for envelopes.  Repeat as necessary
for envelopes of different size.


2) I sometimes use windows envelopps (also C6/5). How cant I get the address of
my correspondant to print on the right side of the page, at the window position
?
I dived into scrguen.pdf and almost drowned. So pleease help !
 


Have a look at
http://wiki.lyx.org/Layouts/Brev
This uses brev.cls, which formats letters for A4 paper,
C6/5 window envelopes. There is a template for lyx there also.

Be warned that brev.cls currently doesn't support documents
in the French language, so you will have to select another
language for this to work.  The package authors are interested
in help with translations into more languages though.

Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Helge Hafting

H. Peter Gumm wrote:


Uwe, thanks for correcting the instant-preview glitch in your installer.

In my eyes, the installer is a great step ahead to make LyX popular amongst
Windows-Users who are typically not willing to install all sorts of auxiliary
programs (MinGW,Imagemagick,  ...) before being able to try out a new unknown
application. Thanks for the great work!

I have the following suggestions for improvement, some may concern the
installer, some LyX itself:

- I am using LyX with slightly larger screen fonts than in the
 default configuration. (Getting old.) Unfortunately, the math
 formulas displayed by instant preview dont scale correspondingly,
 they remain in the small fonts.
 


Turn the preview off.  Then the formulas remain in the size used
when editing them.  Perhaps not as pretty, but ok nonetheless.
The previews _can_ be made bigger, but doing so is complicated
and I don't know the details. Basically, change/configure the software
that makes them.


- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
 one finds the trick (in the FAQs) of changing the fonts size to ae
 in Document-Layout. Why not making this the default from the beginning ?
 


The bitmapped fonts are ok - the problem is the broken acrobat
reader so many uses.  Printing the pdf will actually be fine.  Many
people don't make pdf's - they don't need a different default.

After changing the font, consider saving the new setting as a
document default.  Then _you_ never get this problem again.

If you happen to like the look of the computer modern font,
then put \usepackage{lmodern} in the preamble and leave the
font setting at default.  That way you get a non-bitmapped
version of that font.  It looks fine in acrobat.


- I typically start LyX by doubleclicking on a .lyx-file. This opens LyX with
 the file as expected. When the document is more or less in final form, I
 scrutinize the the dvi-file for error. Unfortunately:

 = each C-d starts a new instance of Yap. This means that each time I have to
   adapt Yap again by enlarging fonts, etc.
 


Use update dvi instead then.  It updated the file, and your dvi
viewer will then reload the new file automatically.  (If it doesn't, 
then surely

it has a button or menu for doing that.)


 = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
   This opens a new LyX on the same file. At the end I discover that I have
   several LyXes open on the same file. Oops!! Which one do I want to save now ?
 


Don't do that - it is an approach that doesn't work with lyx.  Switch
to the running lyx instead - it isn't hard to do on windows.

I simply make sure my dvi viewer doesn't obscure the lyx window
completely, that way I can switch back very quickly by single-clicking on
the lyx window.  There is normally no need to maximize the dvi
viewer, as the content it shows is in the shape of A4/letter paper,
and the screen is much wider than that format.


   == How about an warning message when opening LyX on a file that is already
   open in LyX. This behaviour is common in most editors.
 


It is common in most editors _in windows_, which isn't the main
platform for lyx.  Still, it can be done if you can interest a developer 
.  . .


Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Uwe Stöhr

H. Peter Gumm schrieb:


- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
  one finds the trick (in the FAQs) of changing the fonts size to ae
  in Document-Layout. Why not making this the default from the beginning?


Because ae aren't real fonts. For example accents and umlauts like 
ü are made of ¨ + u. This leads to problems when you are searching 
in a PDF-file for a word like über.

Using the latin modern fonts is a better option, see

http://wiki.lyx.org/FAQ/PDF#badFonts

but they aren't in the standard version of all LaTeX-distributions, e.g. 
not im MiKTeX's small version that is shipped with the installer.



  = each C-d starts a new instance of Yap. This means that each time I have to
adapt Yap again by enlarging fonts, etc.


Use C-d only once and the C-S-d or the icon in the menu bar that is 
between the DVI inco and the PDF(Acrobat) icon.


regards Uwe


Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
Hello Helge,

Friday, December 2, 2005, 12:00:06 PM, you wrote:

 On linux, use xpdf which couldn't care less about permissions. I use
 it  to  copy/paste  stuff  out  of  pdf's that are protected against
 copying with acrobat.

 Having copy protection enforced by the client is such a joke,
For most technically unsavvy users it's not a joke, I'm afraid =)

 just  use  a client that don't implement it. Anyway, there is no way
 to simultaneously allow reading and prevent copying.
There's  no  way to simultaneously enable SCREEN-reading/accessibility
AND  disable  copying,  if  this  is what you meant =) You can disable
everything,  including copying, but the document WILL be available for
reading.  This, naturally, might only apply to compliant viewers, such
as Acrobat.

Anyway, yeah, I know this just use xpdf or whatever trick too.

But  isn't a good pdf viewer supposed to implement the pdf standard to
the  full?  Honor  permissions,  allow  form-filling, text-copying and
encryption? I think yes.

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
 Without  knowing  it, you have helped me, too. A couple of day ago I
 received  a pdf-formular from a company. After having opened it with
 my  acoread  7.0  for  linux  I  noticed  that  the printing was not
 possible,   because   the  printing  permission  was  diabled  (very
 practical  with  a  formular, indeed!). I contacted the company, but
 they  haven't even heard about the permissions (because they use 6.0
 where  the  permissions  are, AFAIK, simply ignored) and didn't know
 how to fix the formular.

 At  this  point, your mail arrived. I downloaded pdftrans and itext,
 installed them - and voila!

Yes,  and  pdftrans  also correctly modifies PDF metadata, I tested it
with Russian/Belarusian in cp1251 with good results. I think it should
correctly  handle  most  8-bit  encodings, at least. Pdftk -- although
it's  based  on  iText  as well -- produces garbage in metadata, if it
contains chars beyond ANSI.

I  just  hope  somebody writes a good GTK/QT wrapper for iText or even
pdftrans.  This  would  make  things easier for GUI Linux/Win32 users,
while  keeping  the benefit of good old batch processing via xterm for
everyone else.

 Many thanks again!

You're welcome =)

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



mission lyx ...

2005-12-02 Thread Martin A. Hansen
once again i am being forced to hand over my almost perfect document to the
boss, who wants to edit it in word. that implies a goodbye to the bibtex
references, the cross references, and my all of my good moods.

now i plan to steal his laptop (ibook running max os x) and compile lyx on
it in a hit-and-run mission.

if this is going to succeed - the compilation must be absolutely smooth!!!

so, how to go about this?

requirements:

1) lyx-1.3.6
2) change-bars patch
3) some flavor of TeX



teeth-grinding-desperado



martin


Re: mission lyx ...

2005-12-02 Thread Bennett Helm

On Dec 2, 2005, at 9:25 AM, Martin A. Hansen wrote:

once again i am being forced to hand over my almost perfect  
document to the
boss, who wants to edit it in word. that implies a goodbye to the  
bibtex

references, the cross references, and my all of my good moods.

now i plan to steal his laptop (ibook running max os x) and compile  
lyx on

it in a hit-and-run mission.

if this is going to succeed - the compilation must be absolutely  
smooth!!!


so, how to go about this?

requirements:

1) lyx-1.3.6
2) change-bars patch
3) some flavor of TeX


Download the source, and follow the instructions in INSTALL.MacOSX.  
As the instructions indicate, you'll need to download and compile Qt  
first; sources for that can be found here: ftp://ftp.trolltech.com/ 
qt/source/qt-mac-free-3.3.5.tar.gz. (Note that you do not want Qt  
version 4; 3.3.5 is the latest that works with LyX.)


I don't have experience with the change-bars patch, so I have nothing  
to say here.


For TeX, I'd recommend i-Installer; http://ii2.sourceforge.net/tex- 
index.html has good information on it (scroll about 1/3 of the way  
down the page for the section on TeX i-Packages). Minimally install  
the basic TeX package, Ghostscript 8, and ImageMagick. (TeX,  
Ghostscript, plus the i-Installer application are bundled here:  
ftp://ftp.tug.org/mirror/ftp.nluug.nl/pub/comp/macosx/volumes/tex/ 
TeX-fat.dmg.)


Note that compilation will take hours -- especially Qt. However, you  
don't need to compile the Qt tutorial or examples. (I believe you can  
simply delete those directories -- or, better, move them aside --  
before compiling; you'll get an error that stops compilation, but all  
you need for LyX will have been built by then.)


A final note: I have not tried compiling LyX-1.3.6 with gcc-4.0, and  
I don't know whether you'd encounter any problems. (I do have  
problems -- still unresolved -- compiling the still-being-developed  
lyx-1.3.7 with gcc-4.0.) To be sure things work the first time, make  
sure you use gcc-3.3 when compiling both Qt and LyX. (gcc -v in the  
terminal will tell you the version; if it's anything but gcc-3.3, you  
can change it by entering sudo gcc_select 3.3 followed, when  
prompted, by your admin password.)


Bennett


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread H. Peter Gumm
Thanks for all the advices to my mail. Most of the problem
solutions I knew, my point was to suggest making the default
behaviour for the windows version of LyX reasonable without
the need to tweak the system and to scan the FAQs.

On the unsolved points 

Helge Hafting wrote:

 Turn the preview off.  Then the formulas remain in the size used
 when editing them.  Perhaps not as pretty, but ok nonetheless.

I need instant preview because I am using xypic extensively.
As my first LyX-project I wrote a manual on how to use xypic in LyX:
 http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf
Without instant preview for xy-figures I would not see a compelling
reason for myself to use LyX. I guess I would have used AuCTeX,
TeXMacs or just stayed with WinEdt.

 The bitmapped fonts are ok - the problem is the broken acrobat
 reader so many uses.  Printing the pdf will actually be fine.  Many
 people don't make pdf's - they don't need a different default.

I threw away the new Acrobat Professional and reinstalled the older
one Acrobat 5.0. It is much faster, has everything I need and its
menu structure is better organized. I hear from many people who did
likewise.

 Use update dvi instead then.  It updated the file, and your dvi
 viewer will then reload the new file automatically.  (If it doesn't,
 then surely
 it has a button or menu for doing that.)

C-d is the default action from the View-menu. I just suggest that S-C-d would
be a better default

  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
This opens a new LyX on the same file. At the end I discover that I have
several LyXes open on the same file. Oops!! Which one do I want to save 
 now ?

 Don't do that - it is an approach that doesn't work with lyx.  Switch
 to the running lyx instead - it isn't hard to do on windows.

Well, thanks for telling. However, this happens unintentionally. In the Windows
programs I am used to, this never causes a problem. Why should I have a problem
with LyX ?

 It is common in most editors _in windows_, which isn't the main
 platform for lyx.  Still, it can be done if you can interest a developer

Yes, if you want to make LyX popular under Windows, this should be adapted.
Also, it would be nice if C-v from the Windows Clipboard would work. It took
me a while to find the LyX-equivalent Edit- Paste external selection

That said, LyX is a great system and I'll keep advertising it.

H.Peter




Adding a subsubsubsection?

2005-12-02 Thread Gill, Jack
Most of the document classes have sub-sub sections.  How can I add a
third sub-sub-sub section?

Jack


Re: change tracking

2005-12-02 Thread David M Hunter

Angus Leeming wrote:


David M Hunter wrote:


Hi,

Yesterday I applied the tracking changes patch to my Lyx on my Linux 
box and the tracking works ok with a few caveats.


However I work with a colleague who uses word to write documents and 
he might be convinced to use lyx if tracking were implemented.


Is it possible to apply the tracking change to the windows lyx 
version (he uses windows) or will it be necessary to wait for version 
1.4?



Sure. The source for linux and for Windows is identical, so if the 
patch can be applied on linux it can also be applied on Windows. 
Building takes a while but the scripts in development/Win32/packaging 
should automate the process.


See
http://article.gmane.org/gmane.editors.lyx.devel/49989

for how I go about packaging LyX 1.3.x on Windows.

Angus


Angus, as a windows newbie I have managed to create a new windows Lyx 
with the tracking changes. Compilation was very lengthy and I used the 
MinWG platform and method you outlined in your notes.


Not familiar with making builds I have not made a package but 
created a new Lyx executable based on the stable 1.3.6 source code.


I am stuck on a problem with dvipost. Dvipost is necessary to create a 
final printable document. I don't know how to compile it without errors 
on the MinGW system and I'm also foggy about where it should reside 
should I succeed in compiling it.


A few questions:
Should I try to learn and follow your method for creating a package (is 
it the same as the windows installer package?) and in doing so would it 
solve all my problems, including the dvipost one? I ask these questions 
because things take a long time to compile.


Thanks for your time. Again, at the risk of being tiresome, I wish to 
point out that I am doing this work to try bring windows users (I am not 
a windows user) to Lyx, Linux and opensource software.


Sincerely,
David Hunter



Re: Adding a subsubsubsection?

2005-12-02 Thread Jose' Matos
On Friday 02 December 2005 16:24, Gill, Jack wrote:
 Most of the document classes have sub-sub sections.  How can I add a
 third sub-sub-sub section?

  In latex parlance that is a Paragraph, and its sub is a SubParagraph. :-)

 Jack

-- 
José Abílio


Re: Adding a subsubsubsection?

2005-12-02 Thread Jose' Matos
On Friday 02 December 2005 16:40, Gill, Jack wrote:
 Thanks.

 Via the menu I can make 1) a section, 2) a subsection, and 3)a
 subsubsection.  However I need a fourth level, 4) a subsubsubsection.

  I know. :-)
  If you use the layout you will notice that bellow subsubsection you have 4) 
paragraph and 5) subparagraph. Try it. :-)

  You can then control if the number shows, or not, in the text and in the toc 
playing with Layout-Document-Numbering.

 Jack

-- 
José Abílio


Re: [OT] PDF permissions

2005-12-02 Thread Paul A. Rubin

Andrei Popov wrote:

Hello Paul,

Thursday, December 1, 2005, 1:47:50 AM, you wrote:



I'm  stumped  about  how to generate PDF files from LyX that readers
can  annotate.  As  far  as  I can tell, the problem is that several
permissions  (including annotation) are off by default when pdflatex
emits  its  output. I've tried using pdftk and Multivalent to change
those  permissions,  but  apparently  Acrobat  Reader  uses the more
restrictive  of  the  permissions  on  the  source  document and the
permissions  added/removed  by  the program (e.g., pdftk) generating
the  modified  output. That makes sense; otherwise I could use it to
undo restrictions set by an author.


I  have  successfully  used  iText-based PDFTrans utility from command
line  to  modify  pdf metadata and set the encryption options. You can
also  use  iText  directly  (see  its online manual for details.) Btw,
pdftk also uses a modified version of iText.



If  I'm  right, what I need is a way to generate an initial PDF file
with  all  permissions set on. I can't find anything in the hyperref
manual  about  this, and Google (including Google Groups) has failed
me. Any ideas?





Andrei,

Thanks for the response.  I'm having no success with PDFTrans (or 
pdftk), and I'm not sure whether it has anything to do with being on the 
Windows platform.  I have a document test.pdf that was created from LyX 
using pdflatex.  The security tab of Acrobat Reader's document 
properties page has two sections (Document Security and Document 
Restrictions Summary) that both list permissions.  Empirical evidence 
suggests that the document security section lists what permissions were 
set based on any password used, and the document restrictions summary 
shows what permissions are in effect.  The test.pdf document is 
unprotected, so the button to list permissions in the document security 
section is grayed out.  The document restrictions summary allows 
printing, copying and form fill-in, but not assembly, commenting, 
signing, creating template pages or submitting forms.  That seems to be 
the default permissions for unsecured documents.


If I use PDFTrans to add other permissions, but do not add passwords, 
the output document (test2.pdf) has identical permissions to test.pdf. 
If I use PDFTrans to add both permissions and a user password, then two 
things change in the output file:  (1) the details button of the 
document security section becomes active, and lists the permissions I 
set using PDFTrans (and only those permissions); and (2) the document 
restrictions summary lists the conjunction (AND) of the permissions I 
set and the permissions test.pdf already had.  There's one exception to 
the AND operation:  fill-in remains permitted even if I don't list it as 
one of the permissions in the PDFTrans command.


The restrictions summary seems to govern what Acrobat Reader allows. 
Even if I set a user password and allow modify-annotations (and open the 
document with the user password), I still cannot annotate it in Reader.


A typical (unsuccessful) run looks like this:

pdftrans --user-password abc --permissions 
modify-contents,modify-annotations,print test.pdf test2.pdf


Am I doing something wrong (other than using Reader on Windows, which is 
out of my hands)?


Thanks,

Paul






Re: mission lyx ...

2005-12-02 Thread Andrei Popov
 requirements:

 1) lyx-1.3.6
 2) change-bars patch

Can you please tell me where this patch is available for download?

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



RE: Adding a subsubsubsection?

2005-12-02 Thread Gill, Jack
S-l-o-w-l-y I begin to understand.  :)

It works just like I need.  Thanks!  

Jack

-Original Message-
From: Jose' Matos [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 10:45 AM
To: lyx-users@lists.lyx.org
Subject: Re: Adding a subsubsubsection?


On Friday 02 December 2005 16:40, Gill, Jack wrote:
 Thanks.

 Via the menu I can make 1) a section, 2) a subsection, and 3)a 
 subsubsection.  However I need a fourth level, 4) a subsubsubsection.

  I know. :-)
  If you use the layout you will notice that bellow subsubsection you have 4) 
paragraph and 5) subparagraph. Try it. :-)

  You can then control if the number shows, or not, in the text and in the toc 
playing with Layout-Document-Numbering.

 Jack

-- 
José Abílio


Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
Hello Paul,

Friday, December 2, 2005, 6:44:45 PM, you wrote:

 If I use PDFTrans to add other permissions, but do not add passwords,
 the output document (test2.pdf) has identical permissions to test.pdf.

yes, because you are not using the encryption level option nor the
master or user password option of pdftrans. If I recall correctly,
without any of those the permissions option has no effect.

 The restrictions summary seems to govern what Acrobat Reader allows.
 Even if I set a user password and allow modify-annotations (and open the 
 document with the user password), I still cannot annotate it in Reader.
 
 A typical (unsuccessful) run looks like this:
 
 pdftrans --user-password abc --permissions 
 modify-contents,modify-annotations,print test.pdf test2.pdf
 
 Am I doing something wrong (other than using Reader on Windows, which is 
 out of my hands)?

I'm  afraid  I can't figure it out, I'm not enough of an expert on PDF
security.

I'd say you try encrypting the output pdf with the appropriate option
(can't check right now), instead of setting the user/master password,
and then list ALL permissions that pdftrans can handle after
--permissions. The permissions can be interdependent, so just try
enabling all of them.

I think Adobe Reader seems to be the culprit here. Can you try a
previous version of Acrobat and see if it helps?

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re: mission lyx ...

2005-12-02 Thread Bennett Helm
A final note: I have not tried compiling LyX-1.3.6 with gcc-4.0,  
and I don't know whether you'd encounter any problems. (I do have  
problems -- still unresolved -- compiling the still-being-developed  
lyx-1.3.7 with gcc-4.0.) To be sure things work the first time,  
make sure you use gcc-3.3 when compiling both Qt and LyX. (gcc -v  
in the terminal will tell you the version; if it's anything but  
gcc-3.3, you can change it by entering sudo gcc_select 3.3  
followed, when prompted, by your admin password.)


Correction: I wrote this too quickly. INSTALL.MacOSX instructions say  
to use gcc-2, not gcc-3.3, and those instructions are correct:  
gcc-3.3 does not work with lyx-1.3.x. My apologies for the  
misinformation.


Bennett


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Ernesto Posse
Thanks. I understand how to do it now. However I found a problem: I
want a button to insert a reference. I found the command
reference-insert. Adding the line

  Icon reference-insert

in the Toolbar section of default.ui does add the new button, but it
does not find the icon. There is not such icon in the standard lyx
images directory, so I created my own references-insert.xpm and put it
in my .lyx/images directory, but LyX still doesn't find it. This is
rather strange, since it does find the other icons in that same
directory. What am I doing wrong?


On 12/2/05, Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote:
  Ernesto == Ernesto Posse [EMAIL PROTECTED] writes:

 Ernesto I have a couple of questions about customizing the toolbar:
 Ernesto 1) Is there a lyx function that applies layouts
 Ernesto (environments) to a selection or to the current paragraph,
 Ernesto which can be used by a (custom) toolbar button? (I didn't
 Ernesto find any)

 Sure, it is called layout. We even have proper icons for layout
 Section and layout LyX-Code. You can add your own icons by
 providing a file layout_foo.xpm for layout foo.

 Ernesto 2) Are there keyboard shortcuts for layouts (environments)?
 Ernesto Where would I find those?

 In LYXDIR/bind/menus.bind. I append the list for your reading pleasure.

 Note also that when you select a layout from the layout box, you will
 see the corresponding keyboard shortcut in the minibuffer (the same
 holds for menu entries and icons).

 JMarc

 #
 # Paragraph style menu
 #

 \bind M-p ~S-0layout Part
 \bind M-p ~S-1layout Chapter
 \bind M-p ~S-2layout Section
 \bind M-p ~S-3layout Subsection
 \bind M-p ~S-4layout Subsubsection
 \bind M-p ~S-5layout Paragraph
 \bind M-p ~S-6layout Subparagraph
 \bind M-p ~S-asterisk ~S-0layout Part*
 \bind M-p ~S-asterisk ~S-1layout Chapter*
 \bind M-p ~S-asterisk ~S-2layout Section*
 \bind M-p ~S-asterisk ~S-3layout Subsection*
 \bind M-p ~S-asterisk ~S-4layout Subsubsection*
 \bind M-p ~S-asterisk ~S-5layout Paragraph*
 \bind M-p ~S-asterisk ~S-6layout Subparagraph*
 \bind M-p a   layout Abstract
 \bind M-p S-A layout Author
 \bind M-p M-a layout Address
 \bind M-p C-a layout Right_Address
 \bind M-p b   layout Itemize# bulleted list
 \bind M-p S-B layout Bibliography
 \bind M-p c   layout LyX-Code
 \bind M-p S-C layout Comment
 \bind M-p M-c layout Caption
 \bind M-p d   layout Description
 \bind M-p S-D layout Date
 \bind M-p e   layout Enumerate  # numbered list
 \bind M-p f   layout ShortFoilhead  # Foils!!
 \bind M-p S-F layout Foilhead   # Foils!!
 \bind M-p i   layout Itemize# bulleted list
 \bind M-p l   layout List
 \bind M-p S-L layout LaTeX
 \bind M-p n   layout Enumerate  # numbered list
 \bind M-p q   layout Quote
 \bind M-p S-Q layout Quotation
 \bind M-p r   layout ShortRotatefoilhead# Foils!!
 \bind M-p S-R layout Rotatefoilhead # Foils!!
 \bind M-p s   layout Standard
 \bind M-p t   layout Title
 \bind M-p space   drop-layouts-choice
 \bind M-p v   layout Verse




--
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Jean-Marc Lasgouttes
 Ernesto == Ernesto Posse [EMAIL PROTECTED] writes:

Ernesto There is not such icon in the standard lyx images directory,
Ernesto so I created my own references-insert.xpm and put it in my
Ernesto .lyx/images directory, but LyX still doesn't find it.

If this is really the name of the file, you made a typo (extra 's').

JMarc


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Micha Feigin
On Fri, 2 Dec 2005 16:42:04 +0100 (CET)
H. Peter Gumm [EMAIL PROTECTED] wrote:

 Thanks for all the advices to my mail. Most of the problem
 solutions I knew, my point was to suggest making the default
 behaviour for the windows version of LyX reasonable without
 the need to tweak the system and to scan the FAQs.
 
 On the unsolved points 
 
 Helge Hafting wrote:
 
  Turn the preview off.  Then the formulas remain in the size used
  when editing them.  Perhaps not as pretty, but ok nonetheless.
 
 I need instant preview because I am using xypic extensively.
 As my first LyX-project I wrote a manual on how to use xypic in LyX:
  http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf
 Without instant preview for xy-figures I would not see a compelling
 reason for myself to use LyX. I guess I would have used AuCTeX,
 TeXMacs or just stayed with WinEdt.
 

I think this should be possible somehow. lyxpreview2ppm.py takes as a second
argument a scale factor. I also seem to remember a menu entry or settings file
option that controls the scale factor but I can't seem to find it now.

  The bitmapped fonts are ok - the problem is the broken acrobat
  reader so many uses.  Printing the pdf will actually be fine.  Many
  people don't make pdf's - they don't need a different default.
 
 I threw away the new Acrobat Professional and reinstalled the older
 one Acrobat 5.0. It is much faster, has everything I need and its
 menu structure is better organized. I hear from many people who did
 likewise.
 
  Use update dvi instead then.  It updated the file, and your dvi
  viewer will then reload the new file automatically.  (If it doesn't,
  then surely
  it has a button or menu for doing that.)
 
 C-d is the default action from the View-menu. I just suggest that S-C-d would
 be a better default
 
   = Going back to LyX I sometimes do it by doubleclicking the .lyx-file 
  again.
 This opens a new LyX on the same file. At the end I discover that I have
 several LyXes open on the same file. Oops!! Which one do I want to save 
  now ?
 
  Don't do that - it is an approach that doesn't work with lyx.  Switch
  to the running lyx instead - it isn't hard to do on windows.
 
 Well, thanks for telling. However, this happens unintentionally. In the 
 Windows
 programs I am used to, this never causes a problem. Why should I have a 
 problem
 with LyX ?
 

This requires checking for a running session and checking for the open
documents. Its not completely trivial, especially if you want to do it in a
way that is cross platform. Probably the simplest way is to use a singleton and
implement multiple windows in lyx which is probably also not that simple.

  It is common in most editors _in windows_, which isn't the main
  platform for lyx.  Still, it can be done if you can interest a developer
 
 Yes, if you want to make LyX popular under Windows, this should be adapted.
 Also, it would be nice if C-v from the Windows Clipboard would work. It took
 me a while to find the LyX-equivalent Edit- Paste external selection
 

That is an issue with the fact that lyx works with the underlying latex which
makes treating newlines ambiguous without specific instructions from the user
(not to mention handling images and such).

 That said, LyX is a great system and I'll keep advertising it.
 
 H.Peter
 
 
  
  +++
  This Mail Was Scanned By Mail-seCure System
  at the Tel-Aviv University CC.
 

 
 +++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Paul A. Rubin

Stefano Franchi wrote:


On Dec 1, 2005, at 6:54 PM, Roy Schestowitz wrote:


_/ On Thu 01 Dec 2005 17:23:07 GMT, [Ernesto Posse] wrote : \_




2) Are there keyboard shortcuts for layouts (environments)? Where
would I find those?




Ditto, but see comments below.



Actually there are. I believe the standard shortcut is M-p, which gives 
you a menu in the minibuffer, followed by a letter or number or letter 
plus modifier key. So M-p t, for example, select the Title environment, 
M-p s the standard one, M-p a is abstract, but M-p A (uppercase) is 
Author, etcetera. The  shortcuts are linked to actual keys by the 
binding file, are editable and to a certain extent platform-specific. On 
my Mac, with aqua-bindings, for example, the shortcut for M-P is 
actually Option-P, which means that the title environment is Option-P, t 
. Other platforms may have other bindings. Look in the Customization 
manual (from the help menu), section 3.3 for more info on bindings.


Also, M-p followed by a space is the equivalent of clicking on the 
environment drop-down list, after which typing the first letter of the 
desired environment (repeatedly, if necessary) cycles through choices 
starting with that letter.


Paul



Re: [OT] PDF permissions

2005-12-02 Thread Paul A. Rubin

Hi, Andrei,

Andrei Popov wrote:



I'd say you try encrypting the output pdf with the appropriate option
(can't check right now), instead of setting the user/master password,
and then list ALL permissions that pdftrans can handle after
--permissions. The permissions can be interdependent, so just try
enabling all of them.


Tried that, no joy.


I think Adobe Reader seems to be the culprit here. Can you try a
previous version of Acrobat and see if it helps?



Alas, I'm pretty sure that the ability to insert comments began with 
Acrobat Reader 7 (the current version).  Stephen Harris kindly sent me a 
couple of PDFs in which he had enabled annotation (using Acrobat Pro 7), 
and my copy of Reader allowed me to add comments to them, so at least I 
know that Reader works.  Copious use of Google turned up some threads on 
other news groups suggesting that, at least for the moment, Acrobat Pro 
may be the only way to turn on commenting so that Reader will allow it.  :-(


Unfortunately, my target audience is students equipped with Acrobat 
Reader and no desire to try other programs, so my options are narrow.


Thanks for the help.

Paul



Re: [OT] PDF permissions

2005-12-02 Thread Stephen Harris


- Original Message - 
From: K. Elo [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Cc: [EMAIL PROTECTED]
Sent: Friday, December 02, 2005 2:19 AM
Subject: Re: [OT] PDF permissions



Hej på dig, Helge,

Helge Hafting, 2.12.2005 12:00:

K. Elo wrote:
Without knowing it, you have helped me, too. A couple of day ago I
received a pdf-formular from a company. After having opened it with
 my acoread 7.0 for linux I noticed that the printing was not
 possible, because the printing permission was diabled (very
 practical with a formular, indeed!). I contacted the company, but
 they haven't even heard about the permissions (because they use 6.0
 where the permissions are, AFAIK, simply ignored) and didn't know
 how to fix the formular.

At this point, your mail arrived. I downloaded pdftrans and itext,
installed them - and voilà!

On linux, use xpdf which couldn't care less about permissions.
I use it to copy/paste stuff out of pdf's that are protected against
copying with acrobat.



Yes, sure. But the problem was I had to fill in the form before printing
and you just cannot fill in forms with xpdf. You could imagine I was a
little bit unhappy, when I had filled in the form (with 3 pages) and
then figured out the printing permission was set to not allowed.
There was absolutely no way to save the information already filled in.
*Grr*!

But anyway, thanks for your advice!

Cheers,
Kimmo



For Windows users, there is the intuitive, free PDFFill PDF Tools
http://www.pdfill.com/pdf_tools_free.html
Option #3, Encypt and Decrypt with Security Options, allows:

User Password
Owner Password

Encyption level
40 bit RC4
128 bit RC4

Security Options

Printing  (on or off) Fill In (on or off)
Modity Contents (on or off)Screen Readers (on or off)
Copy (on or off) Assembly (on or off)
Modify Annotations (on or off)   Degraded Printing (on or off)

SH: It is the last option which reflects back to the OPs quest.

The best tool for Windows for annotation is Adobe Pro 7.0,
but it is expensive. Pro allows one to enable commenting for
th free Adobe Acrobat Reader, on the original document.
However, if you try to do any kind of conversion to the file,
then Reader will say the doc has lots its original permissions.
You can turn off annotation in the original doc so that Pro can
not later enable it using the Modify Annotations option above.

Jürgen Spitzmueller suggested in Annotating documents Aug04,2005

...There are other free tools that can annotate PDFs directly, like the
Multivalent browser (http://multivalent.sourceforge.net/). On Windows,
the free eXpert PDF viewer can do it
(http://www.visagesoft.com/products/pdfreader/),
and OSX Tiger's preview also.

The question is what your collaborators are willing to install.
Acroread is quite of Standard, so the most pragmatic solution would
be to find a way to set the annotation permissions.

SH: eXpert PDF viewer works, but has limitations compared to Pro.
flpsed will work with postscript commenting.

WBR,
Stephen






Re: change tracking

2005-12-02 Thread Angus Leeming
David M Hunter wrote:
 Angus, as a windows newbie I have managed to create a new windows Lyx
 with the tracking changes.

Well now, that's an amazing accomplishment. I'm truly impressed.

 Compilation was very lengthy

Indeed.

 and I used the  
 MinWG platform and method you outlined in your notes.

That's Minimal Gnu for Windows (MinGW) together with Minimal SYStem (MSYS).
Together MinGW/MSYS.

 Not familiar with making builds I have not made a package but
 created a new Lyx executable based on the stable 1.3.6 source code.

Is that BRANCH_1_3_X of the lyx-devel repository? If not, you really should
use this. Lots and lots of tiresome little bugs have been squashed.

If you're interested in the packaging, read the README, same directory
which details the steps I take to go on and package it all up. You'll be
especially interested in the package_lyxwin.sh script which, despite its
name, doesn't package anything but indulges in a few tricks to create a
truly useful (working) system on Windows. It transpires that paths with
spaces are a real pain in the LaTeX world and we must jump through a few
hoops to make things less unpleasant. That's package_lyxwin.sh.

 I am stuck on a problem with dvipost. Dvipost is necessary to create a
 final printable document. I don't know how to compile it without errors
 on the MinGW system and I'm also foggy about where it should reside
 should I succeed in compiling it.

Compilation problems: see the bottom of this mail.

Where to put the resulting executable? MiKTeX's binaries appear to live in
  C:\MiKTeX\Main\miktex\bin
Don't put the thing there because Main is for official MiKTeX stuff.
However, there's also a C:\MiKTeX\Local directory tree for your own,
unofficial additions. So
  C:\MiKTeX\Local\miktex\bin

I'm not sure if you need to explicitly add this directory to your PATH for
MikTeX to find executables therein.

FWIW, here's my own personal MSYS .bashrc file (as seen from my linux box)
which tunes my MSYS environment. You could also adjust the PATH from the
Start menu.

$ cat /mnt/windowsJ/MSYS/home/angus/.bashrc
#! /bin/sh

alias ls=ls --color -F
alias rm=rm -i

PATH=$HOME/bin:/j/emacs-21.3/bin:$PATH; export PATH

 A few questions:
 Should I try to learn and follow your method for creating a package (is
 it the same as the windows installer package?) and in doing so would it
 solve all my problems, including the dvipost one? I ask these questions
 because things take a long time to compile.

Running package_lyxwin.sh will take a few seconds and its well worth doing.
Creating the Windows Installer is a useful exercise if you're going to
make this stuff available to others. You'll need to install NSIS, compile
lyx_configure.C and put the resulting lyx_configure.dll in
  C:\Program Files\NSIS\Plugins\
Thereafter, building the installer is as simple as
  C:\Program Files\NSIS\makensis lyx_installer.nsi

 Thanks for your time. Again, at the risk of being tiresome, I wish to
 point out that I am doing this work to try bring windows users (I am not
 a windows user) to Lyx, Linux and opensource software.

You don't need to justify yourself ;-)

You'll notice I haven't answered the dvipost questions. Mail me privately
with more info about your problems.

Regards,
-- 
Angus



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Angus Leeming
Micha Feigin wrote:
 I think this should be possible somehow. lyxpreview2ppm.py takes as a
 second argument a scale factor. I also seem to remember a menu entry or
 settings file option that controls the scale factor but I can't seem to
 find it now.

Add a line
  \preview_scale_factor 1.8
to 
  C:\Documents and Settings\Application Data\LyX\preferences
to exactly double the existing size.


-- 
Angus



Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Roy Schestowitz

_/ On Fri 02 Dec 2005 19:21:50 GMT, [Paul A. Rubin] wrote : \_


Stefano Franchi wrote:


On Dec 1, 2005, at 6:54 PM, Roy Schestowitz wrote:


_/ On Thu 01 Dec 2005 17:23:07 GMT, [Ernesto Posse] wrote : \_




2) Are there keyboard shortcuts for layouts (environments)? Where
would I find those?




Ditto, but see comments below.



Actually there are. I believe the standard shortcut is M-p, which 
gives you a menu in the minibuffer, followed by a letter or number 
or letter plus modifier key. So M-p t, for example, select the Title 
environment, M-p s the standard one, M-p a is abstract, but M-p A 
(uppercase) is Author, etcetera. The  shortcuts are linked to actual 
keys by the binding file, are editable and to a certain extent 
platform-specific. On my Mac, with aqua-bindings, for example, the 
shortcut for M-P is actually Option-P, which means that the title 
environment is Option-P, t . Other platforms may have other 
bindings. Look in the Customization manual (from the help menu), 
section 3.3 for more info on bindings.


Also, M-p followed by a space is the equivalent of clicking on the 
environment drop-down list, after which typing the first letter of 
the desired environment (repeatedly, if necessary) cycles through 
choices starting with that letter.


Paul


Thanks, guys.

I came to realise it only once your clarifications flowed in. By attempting to
answer somebody's question, I learned something new, as I frequently do 
in this

mailing list.

From now on, there will be no need to get hands off the keyboard. I 
guess it was

a matter of experience and familiarity with keyboard accelerators.

Roy



Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Jean-Marc Lasgouttes
 Ernesto == Ernesto Posse [EMAIL PROTECTED] writes:

Ernesto I have a couple of questions about customizing the toolbar:
Ernesto 1) Is there a lyx function that applies layouts
Ernesto (environments) to a selection or to the current paragraph,
Ernesto which can be used by a (custom) toolbar button? (I didn't
Ernesto find any)

Sure, it is called layout. We even have proper icons for layout
Section and layout LyX-Code. You can add your own icons by
providing a file layout_foo.xpm for layout foo.

Ernesto 2) Are there keyboard shortcuts for layouts (environments)?
Ernesto Where would I find those?

In LYXDIR/bind/menus.bind. I append the list for your reading pleasure.

Note also that when you select a layout from the layout box, you will
see the corresponding keyboard shortcut in the minibuffer (the same
holds for menu entries and icons).

JMarc

#
# Paragraph style menu
#

\bind M-p ~S-0layout Part 
\bind M-p ~S-1layout Chapter 
\bind M-p ~S-2layout Section 
\bind M-p ~S-3layout Subsection  
\bind M-p ~S-4layout Subsubsection
\bind M-p ~S-5layout Paragraph
\bind M-p ~S-6layout Subparagraph
\bind M-p ~S-asterisk ~S-0layout Part* 
\bind M-p ~S-asterisk ~S-1layout Chapter* 
\bind M-p ~S-asterisk ~S-2layout Section* 
\bind M-p ~S-asterisk ~S-3layout Subsection*  
\bind M-p ~S-asterisk ~S-4layout Subsubsection*
\bind M-p ~S-asterisk ~S-5layout Paragraph*
\bind M-p ~S-asterisk ~S-6layout Subparagraph*
\bind M-p a   layout Abstract
\bind M-p S-A layout Author
\bind M-p M-a layout Address
\bind M-p C-a layout Right_Address
\bind M-p b   layout Itemize# bulleted list
\bind M-p S-B layout Bibliography
\bind M-p c   layout LyX-Code
\bind M-p S-C layout Comment
\bind M-p M-c layout Caption
\bind M-p d   layout Description
\bind M-p S-D layout Date
\bind M-p e   layout Enumerate  # numbered list
\bind M-p f   layout ShortFoilhead  # Foils!!
\bind M-p S-F layout Foilhead   # Foils!!
\bind M-p i   layout Itemize# bulleted list
\bind M-p l   layout List
\bind M-p S-L layout LaTeX
\bind M-p n   layout Enumerate  # numbered list
\bind M-p q   layout Quote
\bind M-p S-Q layout Quotation
\bind M-p r   layout ShortRotatefoilhead# Foils!!
\bind M-p S-R layout Rotatefoilhead # Foils!!
\bind M-p s   layout Standard
\bind M-p t   layout Title
\bind M-p space   drop-layouts-choice
\bind M-p v   layout Verse



Re: [OT] PDF permissions

2005-12-02 Thread Helge Hafting

K. Elo wrote:

Without knowing it, you have helped me, too. A couple of day ago I 
received a pdf-formular from a company. After having opened it with my 
acoread 7.0 for linux I noticed that the printing was not possible, 
because the printing permission was diabled (very practical with a 
formular, indeed!). I contacted the company, but they haven't even 
heard about the permissions (because they use 6.0 where the permissions 
are, AFAIK, simply ignored) and didn't know how to fix the formular.


At this point, your mail arrived. I downloaded pdftrans and itext, 
installed them - and voilà!
 


On linux, use xpdf which couldn't care less about permissions.
I use it to copy/paste stuff out of pdf's that are protected against
copying with acrobat.

Having copy protection enforced by the client is such a joke,
just use a client that don't implement it. Anyway, there is no way
to simultaneously allow reading and prevent copying.

Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread H. Peter Gumm
Uwe, thanks for correcting the instant-preview glitch in your installer.

In my eyes, the installer is a great step ahead to make LyX popular amongst
Windows-Users who are typically not willing to install all sorts of auxiliary
programs (MinGW,Imagemagick,  ...) before being able to try out a new unknown
application. Thanks for the great work!

I have the following suggestions for improvement, some may concern the
installer, some LyX itself:

- I am using LyX with slightly larger screen fonts than in the
  default configuration. (Getting old.) Unfortunately, the math
  formulas displayed by instant preview dont scale correspondingly,
  they remain in the small fonts.

- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
  one finds the trick (in the FAQs) of changing the fonts size to ae
  in Document-Layout. Why not making this the default from the beginning ?

- I typically start LyX by doubleclicking on a .lyx-file. This opens LyX with
  the file as expected. When the document is more or less in final form, I
  scrutinize the the dvi-file for error. Unfortunately:

  = each C-d starts a new instance of Yap. This means that each time I have to
adapt Yap again by enlarging fonts, etc.

  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
This opens a new LyX on the same file. At the end I discover that I have
several LyXes open on the same file. Oops!! Which one do I want to save now 
?

== How about an warning message when opening LyX on a file that is already
open in LyX. This behaviour is common in most editors.

Greetings,

H.Peter Gumm




Re: [OT] PDF permissions

2005-12-02 Thread K. Elo
Hej på dig, Helge,

Helge Hafting, 2.12.2005 12:00:
 K. Elo wrote:
 Without knowing it, you have helped me, too. A couple of day ago I
 received a pdf-formular from a company. After having opened it with
  my acoread 7.0 for linux I noticed that the printing was not
  possible, because the printing permission was diabled (very
  practical with a formular, indeed!). I contacted the company, but
  they haven't even heard about the permissions (because they use 6.0
  where the permissions are, AFAIK, simply ignored) and didn't know
  how to fix the formular.
 
 At this point, your mail arrived. I downloaded pdftrans and itext,
 installed them - and voilà!

 On linux, use xpdf which couldn't care less about permissions.
 I use it to copy/paste stuff out of pdf's that are protected against
 copying with acrobat.


Yes, sure. But the problem was I had to fill in the form before printing 
and you just cannot fill in forms with xpdf. You could imagine I was a 
little bit unhappy, when I had filled in the form (with 3 pages) and 
then figured out the printing permission was set to not allowed. 
There was absolutely no way to save the information already filled in. 
*Grr*!

But anyway, thanks for your advice!

Cheers,
Kimmo


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Jean-Marc Lasgouttes
 H == H Peter Gumm [EMAIL PROTECTED] writes:

H - Generating pdf-files, one obtains rather ugly bit-mapped fonts,
H until one finds the trick (in the FAQs) of changing the fonts size
H to ae in Document-Layout. Why not making this the default from
H the beginning ?

Note that the bit-mapped fonts loose much of their ugliness when using
adobe reader 6/7.

H   = each C-d starts a new instance of Yap. This means that each
H time I have to adapt Yap again by enlarging fonts, etc.

What about S-C-d to just update dvi?

JMarc


Re: Writing letters...

2005-12-02 Thread Helge Hafting

[EMAIL PROTECTED] wrote:


I use the Koma-script letter template with some adjustments for my
correspondance. Nice looking. The problem comes with envelopps :
1) Is there a template to print C6/5 envelopps ? If so, where ?
 


A template for printing the address onto the envelope itself?
You can make one like this:
1. Create a document
2. Go into document settings
3. Set the page size to the actual size of your envelope (measure it
   with a ruler)
4. Set the margin so the address gets where you want it
5. Save this into .lyx/templates/envelope.lyx

Now you have a template for envelopes.  Repeat as necessary
for envelopes of different size.


2) I sometimes use windows envelopps (also C6/5). How cant I get the address of
my correspondant to print on the right side of the page, at the window position
?
I dived into scrguen.pdf and almost drowned. So pleease help !
 


Have a look at
http://wiki.lyx.org/Layouts/Brev
This uses brev.cls, which formats letters for A4 paper,
C6/5 window envelopes. There is a template for lyx there also.

Be warned that brev.cls currently doesn't support documents
in the French language, so you will have to select another
language for this to work.  The package authors are interested
in help with translations into more languages though.

Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Helge Hafting

H. Peter Gumm wrote:


Uwe, thanks for correcting the instant-preview glitch in your installer.

In my eyes, the installer is a great step ahead to make LyX popular amongst
Windows-Users who are typically not willing to install all sorts of auxiliary
programs (MinGW,Imagemagick,  ...) before being able to try out a new unknown
application. Thanks for the great work!

I have the following suggestions for improvement, some may concern the
installer, some LyX itself:

- I am using LyX with slightly larger screen fonts than in the
 default configuration. (Getting old.) Unfortunately, the math
 formulas displayed by instant preview dont scale correspondingly,
 they remain in the small fonts.
 


Turn the preview off.  Then the formulas remain in the size used
when editing them.  Perhaps not as pretty, but ok nonetheless.
The previews _can_ be made bigger, but doing so is complicated
and I don't know the details. Basically, change/configure the software
that makes them.


- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
 one finds the trick (in the FAQs) of changing the fonts size to ae
 in Document-Layout. Why not making this the default from the beginning ?
 


The bitmapped fonts are ok - the problem is the broken acrobat
reader so many uses.  Printing the pdf will actually be fine.  Many
people don't make pdf's - they don't need a different default.

After changing the font, consider saving the new setting as a
document default.  Then _you_ never get this problem again.

If you happen to like the look of the computer modern font,
then put \usepackage{lmodern} in the preamble and leave the
font setting at default.  That way you get a non-bitmapped
version of that font.  It looks fine in acrobat.


- I typically start LyX by doubleclicking on a .lyx-file. This opens LyX with
 the file as expected. When the document is more or less in final form, I
 scrutinize the the dvi-file for error. Unfortunately:

 = each C-d starts a new instance of Yap. This means that each time I have to
   adapt Yap again by enlarging fonts, etc.
 


Use update dvi instead then.  It updated the file, and your dvi
viewer will then reload the new file automatically.  (If it doesn't, 
then surely

it has a button or menu for doing that.)


 = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
   This opens a new LyX on the same file. At the end I discover that I have
   several LyXes open on the same file. Oops!! Which one do I want to save now ?
 


Don't do that - it is an approach that doesn't work with lyx.  Switch
to the running lyx instead - it isn't hard to do on windows.

I simply make sure my dvi viewer doesn't obscure the lyx window
completely, that way I can switch back very quickly by single-clicking on
the lyx window.  There is normally no need to maximize the dvi
viewer, as the content it shows is in the shape of A4/letter paper,
and the screen is much wider than that format.


   == How about an warning message when opening LyX on a file that is already
   open in LyX. This behaviour is common in most editors.
 


It is common in most editors _in windows_, which isn't the main
platform for lyx.  Still, it can be done if you can interest a developer 
.  . .


Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Uwe Stöhr

H. Peter Gumm schrieb:


- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
  one finds the trick (in the FAQs) of changing the fonts size to ae
  in Document-Layout. Why not making this the default from the beginning?


Because ae aren't real fonts. For example accents and umlauts like 
ü are made of ¨ + u. This leads to problems when you are searching 
in a PDF-file for a word like über.

Using the latin modern fonts is a better option, see

http://wiki.lyx.org/FAQ/PDF#badFonts

but they aren't in the standard version of all LaTeX-distributions, e.g. 
not im MiKTeX's small version that is shipped with the installer.



  = each C-d starts a new instance of Yap. This means that each time I have to
adapt Yap again by enlarging fonts, etc.


Use C-d only once and the C-S-d or the icon in the menu bar that is 
between the DVI inco and the PDF(Acrobat) icon.


regards Uwe


Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
Hello Helge,

Friday, December 2, 2005, 12:00:06 PM, you wrote:

 On linux, use xpdf which couldn't care less about permissions. I use
 it  to  copy/paste  stuff  out  of  pdf's that are protected against
 copying with acrobat.

 Having copy protection enforced by the client is such a joke,
For most technically unsavvy users it's not a joke, I'm afraid =)

 just  use  a client that don't implement it. Anyway, there is no way
 to simultaneously allow reading and prevent copying.
There's  no  way to simultaneously enable SCREEN-reading/accessibility
AND  disable  copying,  if  this  is what you meant =) You can disable
everything,  including copying, but the document WILL be available for
reading.  This, naturally, might only apply to compliant viewers, such
as Acrobat.

Anyway, yeah, I know this just use xpdf or whatever trick too.

But  isn't a good pdf viewer supposed to implement the pdf standard to
the  full?  Honor  permissions,  allow  form-filling, text-copying and
encryption? I think yes.

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
 Without  knowing  it, you have helped me, too. A couple of day ago I
 received  a pdf-formular from a company. After having opened it with
 my  acoread  7.0  for  linux  I  noticed  that  the printing was not
 possible,   because   the  printing  permission  was  diabled  (very
 practical  with  a  formular, indeed!). I contacted the company, but
 they  haven't even heard about the permissions (because they use 6.0
 where  the  permissions  are, AFAIK, simply ignored) and didn't know
 how to fix the formular.

 At  this  point, your mail arrived. I downloaded pdftrans and itext,
 installed them - and voila!

Yes,  and  pdftrans  also correctly modifies PDF metadata, I tested it
with Russian/Belarusian in cp1251 with good results. I think it should
correctly  handle  most  8-bit  encodings, at least. Pdftk -- although
it's  based  on  iText  as well -- produces garbage in metadata, if it
contains chars beyond ANSI.

I  just  hope  somebody writes a good GTK/QT wrapper for iText or even
pdftrans.  This  would  make  things easier for GUI Linux/Win32 users,
while  keeping  the benefit of good old batch processing via xterm for
everyone else.

 Many thanks again!

You're welcome =)

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



mission lyx ...

2005-12-02 Thread Martin A. Hansen
once again i am being forced to hand over my almost perfect document to the
boss, who wants to edit it in word. that implies a goodbye to the bibtex
references, the cross references, and my all of my good moods.

now i plan to steal his laptop (ibook running max os x) and compile lyx on
it in a hit-and-run mission.

if this is going to succeed - the compilation must be absolutely smooth!!!

so, how to go about this?

requirements:

1) lyx-1.3.6
2) change-bars patch
3) some flavor of TeX



teeth-grinding-desperado



martin


Re: mission lyx ...

2005-12-02 Thread Bennett Helm

On Dec 2, 2005, at 9:25 AM, Martin A. Hansen wrote:

once again i am being forced to hand over my almost perfect  
document to the
boss, who wants to edit it in word. that implies a goodbye to the  
bibtex

references, the cross references, and my all of my good moods.

now i plan to steal his laptop (ibook running max os x) and compile  
lyx on

it in a hit-and-run mission.

if this is going to succeed - the compilation must be absolutely  
smooth!!!


so, how to go about this?

requirements:

1) lyx-1.3.6
2) change-bars patch
3) some flavor of TeX


Download the source, and follow the instructions in INSTALL.MacOSX.  
As the instructions indicate, you'll need to download and compile Qt  
first; sources for that can be found here: ftp://ftp.trolltech.com/ 
qt/source/qt-mac-free-3.3.5.tar.gz. (Note that you do not want Qt  
version 4; 3.3.5 is the latest that works with LyX.)


I don't have experience with the change-bars patch, so I have nothing  
to say here.


For TeX, I'd recommend i-Installer; http://ii2.sourceforge.net/tex- 
index.html has good information on it (scroll about 1/3 of the way  
down the page for the section on TeX i-Packages). Minimally install  
the basic TeX package, Ghostscript 8, and ImageMagick. (TeX,  
Ghostscript, plus the i-Installer application are bundled here:  
ftp://ftp.tug.org/mirror/ftp.nluug.nl/pub/comp/macosx/volumes/tex/ 
TeX-fat.dmg.)


Note that compilation will take hours -- especially Qt. However, you  
don't need to compile the Qt tutorial or examples. (I believe you can  
simply delete those directories -- or, better, move them aside --  
before compiling; you'll get an error that stops compilation, but all  
you need for LyX will have been built by then.)


A final note: I have not tried compiling LyX-1.3.6 with gcc-4.0, and  
I don't know whether you'd encounter any problems. (I do have  
problems -- still unresolved -- compiling the still-being-developed  
lyx-1.3.7 with gcc-4.0.) To be sure things work the first time, make  
sure you use gcc-3.3 when compiling both Qt and LyX. (gcc -v in the  
terminal will tell you the version; if it's anything but gcc-3.3, you  
can change it by entering sudo gcc_select 3.3 followed, when  
prompted, by your admin password.)


Bennett


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread H. Peter Gumm
Thanks for all the advices to my mail. Most of the problem
solutions I knew, my point was to suggest making the default
behaviour for the windows version of LyX reasonable without
the need to tweak the system and to scan the FAQs.

On the unsolved points 

Helge Hafting wrote:

 Turn the preview off.  Then the formulas remain in the size used
 when editing them.  Perhaps not as pretty, but ok nonetheless.

I need instant preview because I am using xypic extensively.
As my first LyX-project I wrote a manual on how to use xypic in LyX:
 http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf
Without instant preview for xy-figures I would not see a compelling
reason for myself to use LyX. I guess I would have used AuCTeX,
TeXMacs or just stayed with WinEdt.

 The bitmapped fonts are ok - the problem is the broken acrobat
 reader so many uses.  Printing the pdf will actually be fine.  Many
 people don't make pdf's - they don't need a different default.

I threw away the new Acrobat Professional and reinstalled the older
one Acrobat 5.0. It is much faster, has everything I need and its
menu structure is better organized. I hear from many people who did
likewise.

 Use update dvi instead then.  It updated the file, and your dvi
 viewer will then reload the new file automatically.  (If it doesn't,
 then surely
 it has a button or menu for doing that.)

C-d is the default action from the View-menu. I just suggest that S-C-d would
be a better default

  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
This opens a new LyX on the same file. At the end I discover that I have
several LyXes open on the same file. Oops!! Which one do I want to save 
 now ?

 Don't do that - it is an approach that doesn't work with lyx.  Switch
 to the running lyx instead - it isn't hard to do on windows.

Well, thanks for telling. However, this happens unintentionally. In the Windows
programs I am used to, this never causes a problem. Why should I have a problem
with LyX ?

 It is common in most editors _in windows_, which isn't the main
 platform for lyx.  Still, it can be done if you can interest a developer

Yes, if you want to make LyX popular under Windows, this should be adapted.
Also, it would be nice if C-v from the Windows Clipboard would work. It took
me a while to find the LyX-equivalent Edit- Paste external selection

That said, LyX is a great system and I'll keep advertising it.

H.Peter




Adding a subsubsubsection?

2005-12-02 Thread Gill, Jack
Most of the document classes have sub-sub sections.  How can I add a
third sub-sub-sub section?

Jack


Re: change tracking

2005-12-02 Thread David M Hunter

Angus Leeming wrote:


David M Hunter wrote:


Hi,

Yesterday I applied the tracking changes patch to my Lyx on my Linux 
box and the tracking works ok with a few caveats.


However I work with a colleague who uses word to write documents and 
he might be convinced to use lyx if tracking were implemented.


Is it possible to apply the tracking change to the windows lyx 
version (he uses windows) or will it be necessary to wait for version 
1.4?



Sure. The source for linux and for Windows is identical, so if the 
patch can be applied on linux it can also be applied on Windows. 
Building takes a while but the scripts in development/Win32/packaging 
should automate the process.


See
http://article.gmane.org/gmane.editors.lyx.devel/49989

for how I go about packaging LyX 1.3.x on Windows.

Angus


Angus, as a windows newbie I have managed to create a new windows Lyx 
with the tracking changes. Compilation was very lengthy and I used the 
MinWG platform and method you outlined in your notes.


Not familiar with making builds I have not made a package but 
created a new Lyx executable based on the stable 1.3.6 source code.


I am stuck on a problem with dvipost. Dvipost is necessary to create a 
final printable document. I don't know how to compile it without errors 
on the MinGW system and I'm also foggy about where it should reside 
should I succeed in compiling it.


A few questions:
Should I try to learn and follow your method for creating a package (is 
it the same as the windows installer package?) and in doing so would it 
solve all my problems, including the dvipost one? I ask these questions 
because things take a long time to compile.


Thanks for your time. Again, at the risk of being tiresome, I wish to 
point out that I am doing this work to try bring windows users (I am not 
a windows user) to Lyx, Linux and opensource software.


Sincerely,
David Hunter



Re: Adding a subsubsubsection?

2005-12-02 Thread Jose' Matos
On Friday 02 December 2005 16:24, Gill, Jack wrote:
 Most of the document classes have sub-sub sections.  How can I add a
 third sub-sub-sub section?

  In latex parlance that is a Paragraph, and its sub is a SubParagraph. :-)

 Jack

-- 
José Abílio


Re: Adding a subsubsubsection?

2005-12-02 Thread Jose' Matos
On Friday 02 December 2005 16:40, Gill, Jack wrote:
 Thanks.

 Via the menu I can make 1) a section, 2) a subsection, and 3)a
 subsubsection.  However I need a fourth level, 4) a subsubsubsection.

  I know. :-)
  If you use the layout you will notice that bellow subsubsection you have 4) 
paragraph and 5) subparagraph. Try it. :-)

  You can then control if the number shows, or not, in the text and in the toc 
playing with Layout-Document-Numbering.

 Jack

-- 
José Abílio


Re: [OT] PDF permissions

2005-12-02 Thread Paul A. Rubin

Andrei Popov wrote:

Hello Paul,

Thursday, December 1, 2005, 1:47:50 AM, you wrote:



I'm  stumped  about  how to generate PDF files from LyX that readers
can  annotate.  As  far  as  I can tell, the problem is that several
permissions  (including annotation) are off by default when pdflatex
emits  its  output. I've tried using pdftk and Multivalent to change
those  permissions,  but  apparently  Acrobat  Reader  uses the more
restrictive  of  the  permissions  on  the  source  document and the
permissions  added/removed  by  the program (e.g., pdftk) generating
the  modified  output. That makes sense; otherwise I could use it to
undo restrictions set by an author.


I  have  successfully  used  iText-based PDFTrans utility from command
line  to  modify  pdf metadata and set the encryption options. You can
also  use  iText  directly  (see  its online manual for details.) Btw,
pdftk also uses a modified version of iText.



If  I'm  right, what I need is a way to generate an initial PDF file
with  all  permissions set on. I can't find anything in the hyperref
manual  about  this, and Google (including Google Groups) has failed
me. Any ideas?





Andrei,

Thanks for the response.  I'm having no success with PDFTrans (or 
pdftk), and I'm not sure whether it has anything to do with being on the 
Windows platform.  I have a document test.pdf that was created from LyX 
using pdflatex.  The security tab of Acrobat Reader's document 
properties page has two sections (Document Security and Document 
Restrictions Summary) that both list permissions.  Empirical evidence 
suggests that the document security section lists what permissions were 
set based on any password used, and the document restrictions summary 
shows what permissions are in effect.  The test.pdf document is 
unprotected, so the button to list permissions in the document security 
section is grayed out.  The document restrictions summary allows 
printing, copying and form fill-in, but not assembly, commenting, 
signing, creating template pages or submitting forms.  That seems to be 
the default permissions for unsecured documents.


If I use PDFTrans to add other permissions, but do not add passwords, 
the output document (test2.pdf) has identical permissions to test.pdf. 
If I use PDFTrans to add both permissions and a user password, then two 
things change in the output file:  (1) the details button of the 
document security section becomes active, and lists the permissions I 
set using PDFTrans (and only those permissions); and (2) the document 
restrictions summary lists the conjunction (AND) of the permissions I 
set and the permissions test.pdf already had.  There's one exception to 
the AND operation:  fill-in remains permitted even if I don't list it as 
one of the permissions in the PDFTrans command.


The restrictions summary seems to govern what Acrobat Reader allows. 
Even if I set a user password and allow modify-annotations (and open the 
document with the user password), I still cannot annotate it in Reader.


A typical (unsuccessful) run looks like this:

pdftrans --user-password abc --permissions 
modify-contents,modify-annotations,print test.pdf test2.pdf


Am I doing something wrong (other than using Reader on Windows, which is 
out of my hands)?


Thanks,

Paul






Re: mission lyx ...

2005-12-02 Thread Andrei Popov
 requirements:

 1) lyx-1.3.6
 2) change-bars patch

Can you please tell me where this patch is available for download?

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



RE: Adding a subsubsubsection?

2005-12-02 Thread Gill, Jack
S-l-o-w-l-y I begin to understand.  :)

It works just like I need.  Thanks!  

Jack

-Original Message-
From: Jose' Matos [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 10:45 AM
To: lyx-users@lists.lyx.org
Subject: Re: Adding a subsubsubsection?


On Friday 02 December 2005 16:40, Gill, Jack wrote:
 Thanks.

 Via the menu I can make 1) a section, 2) a subsection, and 3)a 
 subsubsection.  However I need a fourth level, 4) a subsubsubsection.

  I know. :-)
  If you use the layout you will notice that bellow subsubsection you have 4) 
paragraph and 5) subparagraph. Try it. :-)

  You can then control if the number shows, or not, in the text and in the toc 
playing with Layout-Document-Numbering.

 Jack

-- 
José Abílio


Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
Hello Paul,

Friday, December 2, 2005, 6:44:45 PM, you wrote:

 If I use PDFTrans to add other permissions, but do not add passwords,
 the output document (test2.pdf) has identical permissions to test.pdf.

yes, because you are not using the encryption level option nor the
master or user password option of pdftrans. If I recall correctly,
without any of those the permissions option has no effect.

 The restrictions summary seems to govern what Acrobat Reader allows.
 Even if I set a user password and allow modify-annotations (and open the 
 document with the user password), I still cannot annotate it in Reader.
 
 A typical (unsuccessful) run looks like this:
 
 pdftrans --user-password abc --permissions 
 modify-contents,modify-annotations,print test.pdf test2.pdf
 
 Am I doing something wrong (other than using Reader on Windows, which is 
 out of my hands)?

I'm  afraid  I can't figure it out, I'm not enough of an expert on PDF
security.

I'd say you try encrypting the output pdf with the appropriate option
(can't check right now), instead of setting the user/master password,
and then list ALL permissions that pdftrans can handle after
--permissions. The permissions can be interdependent, so just try
enabling all of them.

I think Adobe Reader seems to be the culprit here. Can you try a
previous version of Acrobat and see if it helps?

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re: mission lyx ...

2005-12-02 Thread Bennett Helm
A final note: I have not tried compiling LyX-1.3.6 with gcc-4.0,  
and I don't know whether you'd encounter any problems. (I do have  
problems -- still unresolved -- compiling the still-being-developed  
lyx-1.3.7 with gcc-4.0.) To be sure things work the first time,  
make sure you use gcc-3.3 when compiling both Qt and LyX. (gcc -v  
in the terminal will tell you the version; if it's anything but  
gcc-3.3, you can change it by entering sudo gcc_select 3.3  
followed, when prompted, by your admin password.)


Correction: I wrote this too quickly. INSTALL.MacOSX instructions say  
to use gcc-2, not gcc-3.3, and those instructions are correct:  
gcc-3.3 does not work with lyx-1.3.x. My apologies for the  
misinformation.


Bennett


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Ernesto Posse
Thanks. I understand how to do it now. However I found a problem: I
want a button to insert a reference. I found the command
reference-insert. Adding the line

  Icon reference-insert

in the Toolbar section of default.ui does add the new button, but it
does not find the icon. There is not such icon in the standard lyx
images directory, so I created my own references-insert.xpm and put it
in my .lyx/images directory, but LyX still doesn't find it. This is
rather strange, since it does find the other icons in that same
directory. What am I doing wrong?


On 12/2/05, Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote:
  Ernesto == Ernesto Posse [EMAIL PROTECTED] writes:

 Ernesto I have a couple of questions about customizing the toolbar:
 Ernesto 1) Is there a lyx function that applies layouts
 Ernesto (environments) to a selection or to the current paragraph,
 Ernesto which can be used by a (custom) toolbar button? (I didn't
 Ernesto find any)

 Sure, it is called layout. We even have proper icons for layout
 Section and layout LyX-Code. You can add your own icons by
 providing a file layout_foo.xpm for layout foo.

 Ernesto 2) Are there keyboard shortcuts for layouts (environments)?
 Ernesto Where would I find those?

 In LYXDIR/bind/menus.bind. I append the list for your reading pleasure.

 Note also that when you select a layout from the layout box, you will
 see the corresponding keyboard shortcut in the minibuffer (the same
 holds for menu entries and icons).

 JMarc

 #
 # Paragraph style menu
 #

 \bind M-p ~S-0layout Part
 \bind M-p ~S-1layout Chapter
 \bind M-p ~S-2layout Section
 \bind M-p ~S-3layout Subsection
 \bind M-p ~S-4layout Subsubsection
 \bind M-p ~S-5layout Paragraph
 \bind M-p ~S-6layout Subparagraph
 \bind M-p ~S-asterisk ~S-0layout Part*
 \bind M-p ~S-asterisk ~S-1layout Chapter*
 \bind M-p ~S-asterisk ~S-2layout Section*
 \bind M-p ~S-asterisk ~S-3layout Subsection*
 \bind M-p ~S-asterisk ~S-4layout Subsubsection*
 \bind M-p ~S-asterisk ~S-5layout Paragraph*
 \bind M-p ~S-asterisk ~S-6layout Subparagraph*
 \bind M-p a   layout Abstract
 \bind M-p S-A layout Author
 \bind M-p M-a layout Address
 \bind M-p C-a layout Right_Address
 \bind M-p b   layout Itemize# bulleted list
 \bind M-p S-B layout Bibliography
 \bind M-p c   layout LyX-Code
 \bind M-p S-C layout Comment
 \bind M-p M-c layout Caption
 \bind M-p d   layout Description
 \bind M-p S-D layout Date
 \bind M-p e   layout Enumerate  # numbered list
 \bind M-p f   layout ShortFoilhead  # Foils!!
 \bind M-p S-F layout Foilhead   # Foils!!
 \bind M-p i   layout Itemize# bulleted list
 \bind M-p l   layout List
 \bind M-p S-L layout LaTeX
 \bind M-p n   layout Enumerate  # numbered list
 \bind M-p q   layout Quote
 \bind M-p S-Q layout Quotation
 \bind M-p r   layout ShortRotatefoilhead# Foils!!
 \bind M-p S-R layout Rotatefoilhead # Foils!!
 \bind M-p s   layout Standard
 \bind M-p t   layout Title
 \bind M-p space   drop-layouts-choice
 \bind M-p v   layout Verse




--
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Jean-Marc Lasgouttes
 Ernesto == Ernesto Posse [EMAIL PROTECTED] writes:

Ernesto There is not such icon in the standard lyx images directory,
Ernesto so I created my own references-insert.xpm and put it in my
Ernesto .lyx/images directory, but LyX still doesn't find it.

If this is really the name of the file, you made a typo (extra 's').

JMarc


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Micha Feigin
On Fri, 2 Dec 2005 16:42:04 +0100 (CET)
H. Peter Gumm [EMAIL PROTECTED] wrote:

 Thanks for all the advices to my mail. Most of the problem
 solutions I knew, my point was to suggest making the default
 behaviour for the windows version of LyX reasonable without
 the need to tweak the system and to scan the FAQs.
 
 On the unsolved points 
 
 Helge Hafting wrote:
 
  Turn the preview off.  Then the formulas remain in the size used
  when editing them.  Perhaps not as pretty, but ok nonetheless.
 
 I need instant preview because I am using xypic extensively.
 As my first LyX-project I wrote a manual on how to use xypic in LyX:
  http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf
 Without instant preview for xy-figures I would not see a compelling
 reason for myself to use LyX. I guess I would have used AuCTeX,
 TeXMacs or just stayed with WinEdt.
 

I think this should be possible somehow. lyxpreview2ppm.py takes as a second
argument a scale factor. I also seem to remember a menu entry or settings file
option that controls the scale factor but I can't seem to find it now.

  The bitmapped fonts are ok - the problem is the broken acrobat
  reader so many uses.  Printing the pdf will actually be fine.  Many
  people don't make pdf's - they don't need a different default.
 
 I threw away the new Acrobat Professional and reinstalled the older
 one Acrobat 5.0. It is much faster, has everything I need and its
 menu structure is better organized. I hear from many people who did
 likewise.
 
  Use update dvi instead then.  It updated the file, and your dvi
  viewer will then reload the new file automatically.  (If it doesn't,
  then surely
  it has a button or menu for doing that.)
 
 C-d is the default action from the View-menu. I just suggest that S-C-d would
 be a better default
 
   = Going back to LyX I sometimes do it by doubleclicking the .lyx-file 
  again.
 This opens a new LyX on the same file. At the end I discover that I have
 several LyXes open on the same file. Oops!! Which one do I want to save 
  now ?
 
  Don't do that - it is an approach that doesn't work with lyx.  Switch
  to the running lyx instead - it isn't hard to do on windows.
 
 Well, thanks for telling. However, this happens unintentionally. In the 
 Windows
 programs I am used to, this never causes a problem. Why should I have a 
 problem
 with LyX ?
 

This requires checking for a running session and checking for the open
documents. Its not completely trivial, especially if you want to do it in a
way that is cross platform. Probably the simplest way is to use a singleton and
implement multiple windows in lyx which is probably also not that simple.

  It is common in most editors _in windows_, which isn't the main
  platform for lyx.  Still, it can be done if you can interest a developer
 
 Yes, if you want to make LyX popular under Windows, this should be adapted.
 Also, it would be nice if C-v from the Windows Clipboard would work. It took
 me a while to find the LyX-equivalent Edit- Paste external selection
 

That is an issue with the fact that lyx works with the underlying latex which
makes treating newlines ambiguous without specific instructions from the user
(not to mention handling images and such).

 That said, LyX is a great system and I'll keep advertising it.
 
 H.Peter
 
 
  
  +++
  This Mail Was Scanned By Mail-seCure System
  at the Tel-Aviv University CC.
 

 
 +++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Paul A. Rubin

Stefano Franchi wrote:


On Dec 1, 2005, at 6:54 PM, Roy Schestowitz wrote:


_/ On Thu 01 Dec 2005 17:23:07 GMT, [Ernesto Posse] wrote : \_




2) Are there keyboard shortcuts for layouts (environments)? Where
would I find those?




Ditto, but see comments below.



Actually there are. I believe the standard shortcut is M-p, which gives 
you a menu in the minibuffer, followed by a letter or number or letter 
plus modifier key. So M-p t, for example, select the Title environment, 
M-p s the standard one, M-p a is abstract, but M-p A (uppercase) is 
Author, etcetera. The  shortcuts are linked to actual keys by the 
binding file, are editable and to a certain extent platform-specific. On 
my Mac, with aqua-bindings, for example, the shortcut for M-P is 
actually Option-P, which means that the title environment is Option-P, t 
. Other platforms may have other bindings. Look in the Customization 
manual (from the help menu), section 3.3 for more info on bindings.


Also, M-p followed by a space is the equivalent of clicking on the 
environment drop-down list, after which typing the first letter of the 
desired environment (repeatedly, if necessary) cycles through choices 
starting with that letter.


Paul



Re: [OT] PDF permissions

2005-12-02 Thread Paul A. Rubin

Hi, Andrei,

Andrei Popov wrote:



I'd say you try encrypting the output pdf with the appropriate option
(can't check right now), instead of setting the user/master password,
and then list ALL permissions that pdftrans can handle after
--permissions. The permissions can be interdependent, so just try
enabling all of them.


Tried that, no joy.


I think Adobe Reader seems to be the culprit here. Can you try a
previous version of Acrobat and see if it helps?



Alas, I'm pretty sure that the ability to insert comments began with 
Acrobat Reader 7 (the current version).  Stephen Harris kindly sent me a 
couple of PDFs in which he had enabled annotation (using Acrobat Pro 7), 
and my copy of Reader allowed me to add comments to them, so at least I 
know that Reader works.  Copious use of Google turned up some threads on 
other news groups suggesting that, at least for the moment, Acrobat Pro 
may be the only way to turn on commenting so that Reader will allow it.  :-(


Unfortunately, my target audience is students equipped with Acrobat 
Reader and no desire to try other programs, so my options are narrow.


Thanks for the help.

Paul



Re: [OT] PDF permissions

2005-12-02 Thread Stephen Harris


- Original Message - 
From: K. Elo [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Cc: [EMAIL PROTECTED]
Sent: Friday, December 02, 2005 2:19 AM
Subject: Re: [OT] PDF permissions



Hej på dig, Helge,

Helge Hafting, 2.12.2005 12:00:

K. Elo wrote:
Without knowing it, you have helped me, too. A couple of day ago I
received a pdf-formular from a company. After having opened it with
 my acoread 7.0 for linux I noticed that the printing was not
 possible, because the printing permission was diabled (very
 practical with a formular, indeed!). I contacted the company, but
 they haven't even heard about the permissions (because they use 6.0
 where the permissions are, AFAIK, simply ignored) and didn't know
 how to fix the formular.

At this point, your mail arrived. I downloaded pdftrans and itext,
installed them - and voilà!

On linux, use xpdf which couldn't care less about permissions.
I use it to copy/paste stuff out of pdf's that are protected against
copying with acrobat.



Yes, sure. But the problem was I had to fill in the form before printing
and you just cannot fill in forms with xpdf. You could imagine I was a
little bit unhappy, when I had filled in the form (with 3 pages) and
then figured out the printing permission was set to not allowed.
There was absolutely no way to save the information already filled in.
*Grr*!

But anyway, thanks for your advice!

Cheers,
Kimmo



For Windows users, there is the intuitive, free PDFFill PDF Tools
http://www.pdfill.com/pdf_tools_free.html
Option #3, Encypt and Decrypt with Security Options, allows:

User Password
Owner Password

Encyption level
40 bit RC4
128 bit RC4

Security Options

Printing  (on or off) Fill In (on or off)
Modity Contents (on or off)Screen Readers (on or off)
Copy (on or off) Assembly (on or off)
Modify Annotations (on or off)   Degraded Printing (on or off)

SH: It is the last option which reflects back to the OPs quest.

The best tool for Windows for annotation is Adobe Pro 7.0,
but it is expensive. Pro allows one to enable commenting for
th free Adobe Acrobat Reader, on the original document.
However, if you try to do any kind of conversion to the file,
then Reader will say the doc has lots its original permissions.
You can turn off annotation in the original doc so that Pro can
not later enable it using the Modify Annotations option above.

Jürgen Spitzmueller suggested in Annotating documents Aug04,2005

...There are other free tools that can annotate PDFs directly, like the
Multivalent browser (http://multivalent.sourceforge.net/). On Windows,
the free eXpert PDF viewer can do it
(http://www.visagesoft.com/products/pdfreader/),
and OSX Tiger's preview also.

The question is what your collaborators are willing to install.
Acroread is quite of Standard, so the most pragmatic solution would
be to find a way to set the annotation permissions.

SH: eXpert PDF viewer works, but has limitations compared to Pro.
flpsed will work with postscript commenting.

WBR,
Stephen






Re: change tracking

2005-12-02 Thread Angus Leeming
David M Hunter wrote:
 Angus, as a windows newbie I have managed to create a new windows Lyx
 with the tracking changes.

Well now, that's an amazing accomplishment. I'm truly impressed.

 Compilation was very lengthy

Indeed.

 and I used the  
 MinWG platform and method you outlined in your notes.

That's Minimal Gnu for Windows (MinGW) together with Minimal SYStem (MSYS).
Together MinGW/MSYS.

 Not familiar with making builds I have not made a package but
 created a new Lyx executable based on the stable 1.3.6 source code.

Is that BRANCH_1_3_X of the lyx-devel repository? If not, you really should
use this. Lots and lots of tiresome little bugs have been squashed.

If you're interested in the packaging, read the README, same directory
which details the steps I take to go on and package it all up. You'll be
especially interested in the package_lyxwin.sh script which, despite its
name, doesn't package anything but indulges in a few tricks to create a
truly useful (working) system on Windows. It transpires that paths with
spaces are a real pain in the LaTeX world and we must jump through a few
hoops to make things less unpleasant. That's package_lyxwin.sh.

 I am stuck on a problem with dvipost. Dvipost is necessary to create a
 final printable document. I don't know how to compile it without errors
 on the MinGW system and I'm also foggy about where it should reside
 should I succeed in compiling it.

Compilation problems: see the bottom of this mail.

Where to put the resulting executable? MiKTeX's binaries appear to live in
  C:\MiKTeX\Main\miktex\bin
Don't put the thing there because Main is for official MiKTeX stuff.
However, there's also a C:\MiKTeX\Local directory tree for your own,
unofficial additions. So
  C:\MiKTeX\Local\miktex\bin

I'm not sure if you need to explicitly add this directory to your PATH for
MikTeX to find executables therein.

FWIW, here's my own personal MSYS .bashrc file (as seen from my linux box)
which tunes my MSYS environment. You could also adjust the PATH from the
Start menu.

$ cat /mnt/windowsJ/MSYS/home/angus/.bashrc
#! /bin/sh

alias ls=ls --color -F
alias rm=rm -i

PATH=$HOME/bin:/j/emacs-21.3/bin:$PATH; export PATH

 A few questions:
 Should I try to learn and follow your method for creating a package (is
 it the same as the windows installer package?) and in doing so would it
 solve all my problems, including the dvipost one? I ask these questions
 because things take a long time to compile.

Running package_lyxwin.sh will take a few seconds and its well worth doing.
Creating the Windows Installer is a useful exercise if you're going to
make this stuff available to others. You'll need to install NSIS, compile
lyx_configure.C and put the resulting lyx_configure.dll in
  C:\Program Files\NSIS\Plugins\
Thereafter, building the installer is as simple as
  C:\Program Files\NSIS\makensis lyx_installer.nsi

 Thanks for your time. Again, at the risk of being tiresome, I wish to
 point out that I am doing this work to try bring windows users (I am not
 a windows user) to Lyx, Linux and opensource software.

You don't need to justify yourself ;-)

You'll notice I haven't answered the dvipost questions. Mail me privately
with more info about your problems.

Regards,
-- 
Angus



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Angus Leeming
Micha Feigin wrote:
 I think this should be possible somehow. lyxpreview2ppm.py takes as a
 second argument a scale factor. I also seem to remember a menu entry or
 settings file option that controls the scale factor but I can't seem to
 find it now.

Add a line
  \preview_scale_factor 1.8
to 
  C:\Documents and Settings\Application Data\LyX\preferences
to exactly double the existing size.


-- 
Angus



Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Roy Schestowitz

_/ On Fri 02 Dec 2005 19:21:50 GMT, [Paul A. Rubin] wrote : \_


Stefano Franchi wrote:


On Dec 1, 2005, at 6:54 PM, Roy Schestowitz wrote:


_/ On Thu 01 Dec 2005 17:23:07 GMT, [Ernesto Posse] wrote : \_




2) Are there keyboard shortcuts for layouts (environments)? Where
would I find those?




Ditto, but see comments below.



Actually there are. I believe the standard shortcut is M-p, which 
gives you a menu in the minibuffer, followed by a letter or number 
or letter plus modifier key. So M-p t, for example, select the Title 
environment, M-p s the standard one, M-p a is abstract, but M-p A 
(uppercase) is Author, etcetera. The  shortcuts are linked to actual 
keys by the binding file, are editable and to a certain extent 
platform-specific. On my Mac, with aqua-bindings, for example, the 
shortcut for M-P is actually Option-P, which means that the title 
environment is Option-P, t . Other platforms may have other 
bindings. Look in the Customization manual (from the help menu), 
section 3.3 for more info on bindings.


Also, M-p followed by a space is the equivalent of clicking on the 
environment drop-down list, after which typing the first letter of 
the desired environment (repeatedly, if necessary) cycles through 
choices starting with that letter.


Paul


Thanks, guys.

I came to realise it only once your clarifications flowed in. By attempting to
answer somebody's question, I learned something new, as I frequently do 
in this

mailing list.

From now on, there will be no need to get hands off the keyboard. I 
guess it was

a matter of experience and familiarity with keyboard accelerators.

Roy



Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Jean-Marc Lasgouttes
> "Ernesto" == Ernesto Posse <[EMAIL PROTECTED]> writes:

Ernesto> I have a couple of questions about customizing the toolbar:
Ernesto> 1) Is there a lyx function that applies layouts
Ernesto> (environments) to a selection or to the current paragraph,
Ernesto> which can be used by a (custom) toolbar button? (I didn't
Ernesto> find any)

Sure, it is called "layout". We even have proper icons for "layout
Section" and "layout LyX-Code". You can add your own icons by
providing a file layout_foo.xpm for layout "foo".

Ernesto> 2) Are there keyboard shortcuts for layouts (environments)?
Ernesto> Where would I find those?

In LYXDIR/bind/menus.bind. I append the list for your reading pleasure.

Note also that when you select a layout from the layout box, you will
see the corresponding keyboard shortcut in the minibuffer (the same
holds for menu entries and icons).

JMarc

#
# Paragraph style menu
#

\bind "M-p ~S-0""layout Part" 
\bind "M-p ~S-1""layout Chapter" 
\bind "M-p ~S-2""layout Section" 
\bind "M-p ~S-3""layout Subsection"  
\bind "M-p ~S-4""layout Subsubsection"
\bind "M-p ~S-5""layout Paragraph"
\bind "M-p ~S-6""layout Subparagraph"
\bind "M-p ~S-asterisk ~S-0""layout Part*" 
\bind "M-p ~S-asterisk ~S-1""layout Chapter*" 
\bind "M-p ~S-asterisk ~S-2""layout Section*" 
\bind "M-p ~S-asterisk ~S-3""layout Subsection*"  
\bind "M-p ~S-asterisk ~S-4""layout Subsubsection*"
\bind "M-p ~S-asterisk ~S-5""layout Paragraph*"
\bind "M-p ~S-asterisk ~S-6""layout Subparagraph*"
\bind "M-p a"   "layout Abstract"
\bind "M-p S-A" "layout Author"
\bind "M-p M-a" "layout Address"
\bind "M-p C-a" "layout Right_Address"
\bind "M-p b"   "layout Itemize"# bulleted list
\bind "M-p S-B" "layout Bibliography"
\bind "M-p c"   "layout LyX-Code"
\bind "M-p S-C" "layout Comment"
\bind "M-p M-c" "layout Caption"
\bind "M-p d"   "layout Description"
\bind "M-p S-D" "layout Date"
\bind "M-p e"   "layout Enumerate"  # numbered list
\bind "M-p f"   "layout ShortFoilhead"  # Foils!!
\bind "M-p S-F" "layout Foilhead"   # Foils!!
\bind "M-p i"   "layout Itemize"# bulleted list
\bind "M-p l"   "layout List"
\bind "M-p S-L" "layout LaTeX"
\bind "M-p n"   "layout Enumerate"  # numbered list
\bind "M-p q"   "layout Quote"
\bind "M-p S-Q" "layout Quotation"
\bind "M-p r"   "layout ShortRotatefoilhead"# Foils!!
\bind "M-p S-R" "layout Rotatefoilhead" # Foils!!
\bind "M-p s"   "layout Standard"
\bind "M-p t"   "layout Title"
\bind "M-p space"   "drop-layouts-choice"
\bind "M-p v"   "layout Verse"



Re: [OT] PDF permissions

2005-12-02 Thread Helge Hafting

K. Elo wrote:

Without knowing it, you have helped me, too. A couple of day ago I 
received a pdf-formular from a company. After having opened it with my 
acoread 7.0 for linux I noticed that the printing was not possible, 
because the printing permission was diabled (very practical with a 
formular, indeed!). I contacted the company, but they haven't even 
heard about the permissions (because they use 6.0 where the permissions 
are, AFAIK, simply ignored) and didn't know how to fix the formular.


At this point, your mail arrived. I downloaded pdftrans and itext, 
installed them - and voilà!
 


On linux, use xpdf which couldn't care less about permissions.
I use it to copy/paste stuff out of pdf's that are protected against
copying with acrobat.

Having "copy protection" enforced by the client is such a joke,
just use a client that don't implement it. Anyway, there is no way
to simultaneously allow reading and prevent copying.

Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread H. Peter Gumm
Uwe, thanks for correcting the instant-preview glitch in your installer.

In my eyes, the installer is a great step ahead to make LyX popular amongst
Windows-Users who are typically not willing to install all sorts of auxiliary
programs (MinGW,Imagemagick,  ...) before being able to try out a new unknown
application. Thanks for the great work!

I have the following suggestions for improvement, some may concern the
installer, some LyX itself:

- I am using LyX with slightly larger screen fonts than in the
  default configuration. (Getting old.) Unfortunately, the math
  formulas displayed by instant preview dont scale correspondingly,
  they remain in the small fonts.

- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
  one finds the trick (in the FAQs) of changing the fonts size to "ae"
  in Document->Layout. Why not making this the default from the beginning ?

- I typically start LyX by doubleclicking on a .lyx-file. This opens LyX with
  the file as expected. When the document is more or less in final form, I
  scrutinize the the dvi-file for error. Unfortunately:

  = each C-d starts a new instance of Yap. This means that each time I have to
adapt Yap again by enlarging fonts, etc.

  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
This opens a new LyX on the same file. At the end I discover that I have
several LyXes open on the same file. Oops!! Which one do I want to save now 
?

==> How about an warning message when opening LyX on a file that is already
open in LyX. This behaviour is common in most editors.

Greetings,

H.Peter Gumm




Re: [OT] PDF permissions

2005-12-02 Thread K. Elo
Hej på dig, Helge,

Helge Hafting, 2.12.2005 12:00:
> K. Elo wrote:
> >Without knowing it, you have helped me, too. A couple of day ago I
> >received a pdf-formular from a company. After having opened it with
> > my acoread 7.0 for linux I noticed that the printing was not
> > possible, because the printing permission was diabled (very
> > practical with a formular, indeed!). I contacted the company, but
> > they haven't even heard about the permissions (because they use 6.0
> > where the permissions are, AFAIK, simply ignored) and didn't know
> > how to fix the formular.
> >
> >At this point, your mail arrived. I downloaded pdftrans and itext,
> >installed them - and voilà!
>
> On linux, use xpdf which couldn't care less about permissions.
> I use it to copy/paste stuff out of pdf's that are protected against
> copying with acrobat.
>

Yes, sure. But the problem was I had to fill in the form before printing 
and you just cannot fill in forms with xpdf. You could imagine I was "a 
little bit" unhappy, when I had filled in the form (with 3 pages) and 
then figured out the printing permission was set to "not allowed". 
There was absolutely no way to save the information already filled in. 
*Grr*!

But anyway, thanks for your advice!

Cheers,
Kimmo


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Jean-Marc Lasgouttes
> "H" == H Peter Gumm <[EMAIL PROTECTED]> writes:

H> - Generating pdf-files, one obtains rather ugly bit-mapped fonts,
H> until one finds the trick (in the FAQs) of changing the fonts size
H> to "ae" in Document->Layout. Why not making this the default from
H> the beginning ?

Note that the bit-mapped fonts loose much of their ugliness when using
adobe reader 6/7.

H>   = each C-d starts a new instance of Yap. This means that each
H> time I have to adapt Yap again by enlarging fonts, etc.

What about S-C-d to just update dvi?

JMarc


Re: Writing letters...

2005-12-02 Thread Helge Hafting

[EMAIL PROTECTED] wrote:


I use the Koma-script letter template with some adjustments for my
correspondance. Nice looking. The problem comes with envelopps :
1) Is there a template to print C6/5 envelopps ? If so, where ?
 


A template for printing the address onto the envelope itself?
You can make one like this:
1. Create a document
2. Go into document settings
3. Set the page size to the actual size of your envelope (measure it
   with a ruler)
4. Set the margin so the address gets where you want it
5. Save this into .lyx/templates/envelope.lyx

Now you have a template for envelopes.  Repeat as necessary
for envelopes of different size.


2) I sometimes use windows envelopps (also C6/5). How cant I get the address of
my correspondant to print on the right side of the page, at the window position
?
I dived into scrguen.pdf and almost drowned. So pleease help !
 


Have a look at
http://wiki.lyx.org/Layouts/Brev
This uses brev.cls, which formats letters for A4 paper,
C6/5 window envelopes. There is a template for lyx there also.

Be warned that "brev.cls" currently doesn't support documents
in the French language, so you will have to select another
language for this to work.  The package authors are interested
in help with translations into more languages though.

Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Helge Hafting

H. Peter Gumm wrote:


Uwe, thanks for correcting the instant-preview glitch in your installer.

In my eyes, the installer is a great step ahead to make LyX popular amongst
Windows-Users who are typically not willing to install all sorts of auxiliary
programs (MinGW,Imagemagick,  ...) before being able to try out a new unknown
application. Thanks for the great work!

I have the following suggestions for improvement, some may concern the
installer, some LyX itself:

- I am using LyX with slightly larger screen fonts than in the
 default configuration. (Getting old.) Unfortunately, the math
 formulas displayed by instant preview dont scale correspondingly,
 they remain in the small fonts.
 


Turn the preview off.  Then the formulas remain in the size used
when editing them.  Perhaps not as pretty, but ok nonetheless.
The previews _can_ be made bigger, but doing so is complicated
and I don't know the details. Basically, change/configure the software
that makes them.


- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
 one finds the trick (in the FAQs) of changing the fonts size to "ae"
 in Document->Layout. Why not making this the default from the beginning ?
 


The bitmapped fonts are ok - the problem is the broken acrobat
reader so many uses.  Printing the pdf will actually be fine.  Many
people don't make pdf's - they don't need a different default.

After changing the font, consider saving the new setting as a
"document default".  Then _you_ never get this problem again.

If you happen to like the look of the computer modern font,
then put \usepackage{lmodern} in the preamble and leave the
font setting at "default".  That way you get a non-bitmapped
version of that font.  It looks fine in acrobat.


- I typically start LyX by doubleclicking on a .lyx-file. This opens LyX with
 the file as expected. When the document is more or less in final form, I
 scrutinize the the dvi-file for error. Unfortunately:

 = each C-d starts a new instance of Yap. This means that each time I have to
   adapt Yap again by enlarging fonts, etc.
 


Use "update dvi" instead then.  It updated the file, and your dvi
viewer will then reload the new file automatically.  (If it doesn't, 
then surely

it has a button or menu for doing that.)


 = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
   This opens a new LyX on the same file. At the end I discover that I have
   several LyXes open on the same file. Oops!! Which one do I want to save now ?
 


Don't do that - it is an approach that doesn't work with lyx.  Switch
to the running lyx instead - it isn't hard to do on windows.

I simply make sure my dvi viewer doesn't obscure the lyx window
completely, that way I can switch back very quickly by single-clicking on
the lyx window.  There is normally no need to maximize the dvi
viewer, as the content it shows is in the shape of A4/letter paper,
and the screen is much wider than that format.


   ==> How about an warning message when opening LyX on a file that is already
   open in LyX. This behaviour is common in most editors.
 


It is common in most editors _in windows_, which isn't the main
platform for lyx.  Still, it can be done if you can interest a developer 
.  . .


Helge Hafting



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Uwe Stöhr

H. Peter Gumm schrieb:


- Generating pdf-files, one obtains rather ugly bit-mapped fonts, until
  one finds the trick (in the FAQs) of changing the fonts size to "ae"
  in Document->Layout. Why not making this the default from the beginning?


Because "ae" aren't "real" fonts. For example accents and umlauts like 
"ü" are made of "¨" + "u". This leads to problems when you are searching 
in a PDF-file for a word like "über".

Using the latin modern fonts is a better option, see

http://wiki.lyx.org/FAQ/PDF#badFonts

but they aren't in the standard version of all LaTeX-distributions, e.g. 
not im MiKTeX's small version that is shipped with the installer.



  = each C-d starts a new instance of Yap. This means that each time I have to
adapt Yap again by enlarging fonts, etc.


Use C-d only once and the C-S-d or the icon in the menu bar that is 
between the DVI inco and the PDF(Acrobat) icon.


regards Uwe


Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
Hello Helge,

Friday, December 2, 2005, 12:00:06 PM, you wrote:

> On linux, use xpdf which couldn't care less about permissions. I use
> it  to  copy/paste  stuff  out  of  pdf's that are protected against
> copying with acrobat.

> Having "copy protection" enforced by the client is such a joke,
For most technically unsavvy users it's not a joke, I'm afraid =)

> just  use  a client that don't implement it. Anyway, there is no way
> to simultaneously allow reading and prevent copying.
There's  no  way to simultaneously enable SCREEN-reading/accessibility
AND  disable  copying,  if  this  is what you meant =) You can disable
everything,  including copying, but the document WILL be available for
reading.  This, naturally, might only apply to compliant viewers, such
as Acrobat.

Anyway, yeah, I know this "just use xpdf or whatever" trick too.

But  isn't a good pdf viewer supposed to implement the pdf standard to
the  full?  Honor  permissions,  allow  form-filling, text-copying and
encryption? I think yes.

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
> Without  knowing  it, you have helped me, too. A couple of day ago I
> received  a pdf-formular from a company. After having opened it with
> my  acoread  7.0  for  linux  I  noticed  that  the printing was not
> possible,   because   the  printing  permission  was  diabled  (very
> practical  with  a  formular, indeed!). I contacted the company, but
> they  haven't even heard about the permissions (because they use 6.0
> where  the  permissions  are, AFAIK, simply ignored) and didn't know
> how to fix the formular.

> At  this  point, your mail arrived. I downloaded pdftrans and itext,
> installed them - and voila!

Yes,  and  pdftrans  also correctly modifies PDF metadata, I tested it
with Russian/Belarusian in cp1251 with good results. I think it should
correctly  handle  most  8-bit  encodings, at least. Pdftk -- although
it's  based  on  iText  as well -- produces garbage in metadata, if it
contains chars beyond ANSI.

I  just  hope  somebody writes a good GTK/QT wrapper for iText or even
pdftrans.  This  would  make  things easier for GUI Linux/Win32 users,
while  keeping  the benefit of good old batch processing via xterm for
everyone else.

> Many thanks again!

You're welcome =)

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



mission lyx ...

2005-12-02 Thread Martin A. Hansen
once again i am being forced to hand over my almost perfect document to the
boss, who wants to edit it in word. that implies a goodbye to the bibtex
references, the cross references, and my all of my good moods.

now i plan to steal his laptop (ibook running max os x) and compile lyx on
it in a hit-and-run mission.

if this is going to succeed - the compilation must be absolutely smooth!!!

so, how to go about this?

requirements:

1) lyx-1.3.6
2) change-bars patch
3) some flavor of TeX



teeth-grinding-desperado



martin


Re: mission lyx ...

2005-12-02 Thread Bennett Helm

On Dec 2, 2005, at 9:25 AM, Martin A. Hansen wrote:

once again i am being forced to hand over my almost perfect  
document to the
boss, who wants to edit it in word. that implies a goodbye to the  
bibtex

references, the cross references, and my all of my good moods.

now i plan to steal his laptop (ibook running max os x) and compile  
lyx on

it in a hit-and-run mission.

if this is going to succeed - the compilation must be absolutely  
smooth!!!


so, how to go about this?

requirements:

1) lyx-1.3.6
2) change-bars patch
3) some flavor of TeX


Download the source, and follow the instructions in INSTALL.MacOSX.  
As the instructions indicate, you'll need to download and compile Qt  
first; sources for that can be found here: . (Note that you do not want Qt  
version 4; 3.3.5 is the latest that works with LyX.)


I don't have experience with the change-bars patch, so I have nothing  
to say here.


For TeX, I'd recommend i-Installer;  has good information on it (scroll about 1/3 of the way  
down the page for the section on TeX i-Packages). Minimally install  
the basic TeX package, Ghostscript 8, and ImageMagick. (TeX,  
Ghostscript, plus the i-Installer application are bundled here:  
.)


Note that compilation will take hours -- especially Qt. However, you  
don't need to compile the Qt tutorial or examples. (I believe you can  
simply delete those directories -- or, better, move them aside --  
before compiling; you'll get an error that stops compilation, but all  
you need for LyX will have been built by then.)


A final note: I have not tried compiling LyX-1.3.6 with gcc-4.0, and  
I don't know whether you'd encounter any problems. (I do have  
problems -- still unresolved -- compiling the still-being-developed  
lyx-1.3.7 with gcc-4.0.) To be sure things work the first time, make  
sure you use gcc-3.3 when compiling both Qt and LyX. ("gcc -v" in the  
terminal will tell you the version; if it's anything but gcc-3.3, you  
can change it by entering "sudo gcc_select 3.3" followed, when  
prompted, by your admin password.)


Bennett


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread H. Peter Gumm
Thanks for all the advices to my mail. Most of the problem
solutions I knew, my point was to suggest making the default
behaviour for the windows version of LyX "reasonable" without
the need to tweak the system and to scan the FAQs.

On the unsolved points 

Helge Hafting wrote:

> Turn the preview off.  Then the formulas remain in the size used
> when editing them.  Perhaps not as pretty, but ok nonetheless.

I need instant preview because I am using xypic extensively.
As my first LyX-project I wrote a manual on how to use xypic in LyX:
 http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf
Without instant preview for xy-figures I would not see a compelling
reason for myself to use LyX. I guess I would have used AuCTeX,
TeXMacs or just stayed with WinEdt.

> The bitmapped fonts are ok - the problem is the broken acrobat
> reader so many uses.  Printing the pdf will actually be fine.  Many
> people don't make pdf's - they don't need a different default.

I threw away the new Acrobat Professional and reinstalled the older
one Acrobat 5.0. It is much faster, has everything I need and its
menu structure is better organized. I hear from many people who did
likewise.

> Use "update dvi" instead then.  It updated the file, and your dvi
> viewer will then reload the new file automatically.  (If it doesn't,
> then surely
> it has a button or menu for doing that.)

C-d is the default action from the View-menu. I just suggest that S-C-d would
be a better default

>>  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file again.
>>This opens a new LyX on the same file. At the end I discover that I have
>>several LyXes open on the same file. Oops!! Which one do I want to save 
>> now ?
>>
> Don't do that - it is an approach that doesn't work with lyx.  Switch
> to the running lyx instead - it isn't hard to do on windows.

Well, thanks for telling. However, this happens unintentionally. In the Windows
programs I am used to, this never causes a problem. Why should I have a problem
with LyX ?

> It is common in most editors _in windows_, which isn't the main
> platform for lyx.  Still, it can be done if you can interest a developer

Yes, if you want to make LyX popular under Windows, this should be adapted.
Also, it would be nice if C-v from the Windows Clipboard would work. It took
me a while to find the LyX-equivalent Edit-> Paste external selection

That said, LyX is a great system and I'll keep advertising it.

H.Peter




Adding a subsubsubsection?

2005-12-02 Thread Gill, Jack
Most of the document classes have sub-sub sections.  How can I add a
third sub-sub-sub section?

Jack


Re: change tracking

2005-12-02 Thread David M Hunter

Angus Leeming wrote:


David M Hunter wrote:


Hi,

Yesterday I applied the tracking changes patch to my Lyx on my Linux 
box and the tracking works ok with a few caveats.


However I work with a colleague who uses word to write documents and 
he might be convinced to use lyx if tracking were implemented.


Is it possible to apply the tracking change to the windows lyx 
version (he uses windows) or will it be necessary to wait for version 
1.4?



Sure. The source for linux and for Windows is identical, so if the 
patch can be applied on linux it can also be applied on Windows. 
Building takes a while but the scripts in development/Win32/packaging 
should automate the process.


See
http://article.gmane.org/gmane.editors.lyx.devel/49989

for how I go about packaging LyX 1.3.x on Windows.

Angus


Angus, as a windows newbie I have managed to create a new windows Lyx 
with the tracking changes. Compilation was very lengthy and I used the 
MinWG platform and method you outlined in your notes.


Not familiar with making "builds" I have not made a "package" but 
created a new Lyx executable based on the stable 1.3.6 source code.


I am stuck on a problem with dvipost. Dvipost is necessary to create a 
final printable document. I don't know how to compile it without errors 
on the MinGW system and I'm also foggy about where it should reside 
should I succeed in compiling it.


A few questions:
Should I try to learn and follow your method for creating a package (is 
it the same as the windows installer package?) and in doing so would it 
solve all my problems, including the dvipost one? I ask these questions 
because things take a long time to compile.


Thanks for your time. Again, at the risk of being tiresome, I wish to 
point out that I am doing this work to try bring windows users (I am not 
a windows user) to Lyx, Linux and opensource software.


Sincerely,
David Hunter



Re: Adding a subsubsubsection?

2005-12-02 Thread Jose' Matos
On Friday 02 December 2005 16:24, Gill, Jack wrote:
> Most of the document classes have sub-sub sections.  How can I add a
> third sub-sub-sub section?

  In latex parlance that is a Paragraph, and its sub is a SubParagraph. :-)

> Jack

-- 
José Abílio


Re: Adding a subsubsubsection?

2005-12-02 Thread Jose' Matos
On Friday 02 December 2005 16:40, Gill, Jack wrote:
> Thanks.
>
> Via the menu I can make 1) a section, 2) a subsection, and 3)a
> subsubsection.  However I need a fourth level, 4) a subsubsubsection.

  I know. :-)
  If you use the layout you will notice that bellow subsubsection you have 4) 
paragraph and 5) subparagraph. Try it. :-)

  You can then control if the number shows, or not, in the text and in the toc 
playing with Layout->Document->Numbering.

> Jack

-- 
José Abílio


Re: [OT] PDF permissions

2005-12-02 Thread Paul A. Rubin

Andrei Popov wrote:

Hello Paul,

Thursday, December 1, 2005, 1:47:50 AM, you wrote:



I'm  stumped  about  how to generate PDF files from LyX that readers
can  annotate.  As  far  as  I can tell, the problem is that several
permissions  (including annotation) are off by default when pdflatex
emits  its  output. I've tried using pdftk and Multivalent to change
those  permissions,  but  apparently  Acrobat  Reader  uses the more
restrictive  of  the  permissions  on  the  source  document and the
permissions  added/removed  by  the program (e.g., pdftk) generating
the  modified  output. That makes sense; otherwise I could use it to
undo restrictions set by an author.


I  have  successfully  used  iText-based PDFTrans utility from command
line  to  modify  pdf metadata and set the encryption options. You can
also  use  iText  directly  (see  its online manual for details.) Btw,
pdftk also uses a modified version of iText.



If  I'm  right, what I need is a way to generate an initial PDF file
with  all  permissions set on. I can't find anything in the hyperref
manual  about  this, and Google (including Google Groups) has failed
me. Any ideas?





Andrei,

Thanks for the response.  I'm having no success with PDFTrans (or 
pdftk), and I'm not sure whether it has anything to do with being on the 
Windows platform.  I have a document test.pdf that was created from LyX 
using pdflatex.  The security tab of Acrobat Reader's document 
properties page has two sections ("Document Security" and "Document 
Restrictions Summary") that both list permissions.  Empirical evidence 
suggests that the document security section lists what permissions were 
set based on any password used, and the document restrictions summary 
shows what permissions are in effect.  The test.pdf document is 
unprotected, so the button to list permissions in the document security 
section is grayed out.  The document restrictions summary allows 
printing, copying and form fill-in, but not assembly, commenting, 
signing, creating template pages or submitting forms.  That seems to be 
the default permissions for unsecured documents.


If I use PDFTrans to add other permissions, but do not add passwords, 
the output document (test2.pdf) has identical permissions to test.pdf. 
If I use PDFTrans to add both permissions and a user password, then two 
things change in the output file:  (1) the details button of the 
document security section becomes active, and lists the permissions I 
set using PDFTrans (and only those permissions); and (2) the document 
restrictions summary lists the conjunction (AND) of the permissions I 
set and the permissions test.pdf already had.  There's one exception to 
the AND operation:  fill-in remains permitted even if I don't list it as 
one of the permissions in the PDFTrans command.


The restrictions summary seems to govern what Acrobat Reader allows. 
Even if I set a user password and allow modify-annotations (and open the 
document with the user password), I still cannot annotate it in Reader.


A typical (unsuccessful) run looks like this:

pdftrans --user-password abc --permissions 
modify-contents,modify-annotations,print test.pdf test2.pdf


Am I doing something wrong (other than using Reader on Windows, which is 
out of my hands)?


Thanks,

Paul






Re: mission lyx ...

2005-12-02 Thread Andrei Popov
> requirements:

> 1) lyx-1.3.6
> 2) change-bars patch

Can you please tell me where this patch is available for download?

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



RE: Adding a subsubsubsection?

2005-12-02 Thread Gill, Jack
S-l-o-w-l-y I begin to understand.  :)

It works just like I need.  Thanks!  

Jack

-Original Message-
From: Jose' Matos [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 10:45 AM
To: lyx-users@lists.lyx.org
Subject: Re: Adding a subsubsubsection?


On Friday 02 December 2005 16:40, Gill, Jack wrote:
> Thanks.
>
> Via the menu I can make 1) a section, 2) a subsection, and 3)a 
> subsubsection.  However I need a fourth level, 4) a subsubsubsection.

  I know. :-)
  If you use the layout you will notice that bellow subsubsection you have 4) 
paragraph and 5) subparagraph. Try it. :-)

  You can then control if the number shows, or not, in the text and in the toc 
playing with Layout->Document->Numbering.

> Jack

-- 
José Abílio


Re[2]: [OT] PDF permissions

2005-12-02 Thread Andrei Popov
Hello Paul,

Friday, December 2, 2005, 6:44:45 PM, you wrote:

> If I use PDFTrans to add other permissions, but do not add passwords,
> the output document (test2.pdf) has identical permissions to test.pdf.

yes, because you are not using the encryption level option nor the
master or user password option of pdftrans. If I recall correctly,
without any of those the permissions option has no effect.

> The restrictions summary seems to govern what Acrobat Reader allows.
> Even if I set a user password and allow modify-annotations (and open the 
> document with the user password), I still cannot annotate it in Reader.
> 
> A typical (unsuccessful) run looks like this:
> 
> pdftrans --user-password abc --permissions 
> modify-contents,modify-annotations,print test.pdf test2.pdf
> 
> Am I doing something wrong (other than using Reader on Windows, which is 
> out of my hands)?

I'm  afraid  I can't figure it out, I'm not enough of an expert on PDF
security.

I'd say you try encrypting the output pdf with the appropriate option
(can't check right now), instead of setting the user/master password,
and then list ALL permissions that pdftrans can handle after
--permissions. The permissions can be interdependent, so just try
enabling all of them.

I think Adobe Reader seems to be the culprit here. Can you try a
previous version of Acrobat and see if it helps?

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re: mission lyx ...

2005-12-02 Thread Bennett Helm
A final note: I have not tried compiling LyX-1.3.6 with gcc-4.0,  
and I don't know whether you'd encounter any problems. (I do have  
problems -- still unresolved -- compiling the still-being-developed  
lyx-1.3.7 with gcc-4.0.) To be sure things work the first time,  
make sure you use gcc-3.3 when compiling both Qt and LyX. ("gcc -v"  
in the terminal will tell you the version; if it's anything but  
gcc-3.3, you can change it by entering "sudo gcc_select 3.3"  
followed, when prompted, by your admin password.)


Correction: I wrote this too quickly. INSTALL.MacOSX instructions say  
to use gcc-2, not gcc-3.3, and those instructions are correct:  
gcc-3.3 does not work with lyx-1.3.x. My apologies for the  
misinformation.


Bennett


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Ernesto Posse
Thanks. I understand how to do it now. However I found a problem: I
want a button to insert a reference. I found the command
"reference-insert". Adding the line

  Icon "reference-insert"

in the Toolbar section of default.ui does add the new button, but it
does not find the icon. There is not such icon in the standard lyx
images directory, so I created my own references-insert.xpm and put it
in my .lyx/images directory, but LyX still doesn't find it. This is
rather strange, since it does find the other icons in that same
directory. What am I doing wrong?


On 12/2/05, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:
> > "Ernesto" == Ernesto Posse <[EMAIL PROTECTED]> writes:
>
> Ernesto> I have a couple of questions about customizing the toolbar:
> Ernesto> 1) Is there a lyx function that applies layouts
> Ernesto> (environments) to a selection or to the current paragraph,
> Ernesto> which can be used by a (custom) toolbar button? (I didn't
> Ernesto> find any)
>
> Sure, it is called "layout". We even have proper icons for "layout
> Section" and "layout LyX-Code". You can add your own icons by
> providing a file layout_foo.xpm for layout "foo".
>
> Ernesto> 2) Are there keyboard shortcuts for layouts (environments)?
> Ernesto> Where would I find those?
>
> In LYXDIR/bind/menus.bind. I append the list for your reading pleasure.
>
> Note also that when you select a layout from the layout box, you will
> see the corresponding keyboard shortcut in the minibuffer (the same
> holds for menu entries and icons).
>
> JMarc
>
> #
> # Paragraph style menu
> #
>
> \bind "M-p ~S-0""layout Part"
> \bind "M-p ~S-1""layout Chapter"
> \bind "M-p ~S-2""layout Section"
> \bind "M-p ~S-3""layout Subsection"
> \bind "M-p ~S-4""layout Subsubsection"
> \bind "M-p ~S-5""layout Paragraph"
> \bind "M-p ~S-6""layout Subparagraph"
> \bind "M-p ~S-asterisk ~S-0""layout Part*"
> \bind "M-p ~S-asterisk ~S-1""layout Chapter*"
> \bind "M-p ~S-asterisk ~S-2""layout Section*"
> \bind "M-p ~S-asterisk ~S-3""layout Subsection*"
> \bind "M-p ~S-asterisk ~S-4""layout Subsubsection*"
> \bind "M-p ~S-asterisk ~S-5""layout Paragraph*"
> \bind "M-p ~S-asterisk ~S-6""layout Subparagraph*"
> \bind "M-p a"   "layout Abstract"
> \bind "M-p S-A" "layout Author"
> \bind "M-p M-a" "layout Address"
> \bind "M-p C-a" "layout Right_Address"
> \bind "M-p b"   "layout Itemize"# bulleted list
> \bind "M-p S-B" "layout Bibliography"
> \bind "M-p c"   "layout LyX-Code"
> \bind "M-p S-C" "layout Comment"
> \bind "M-p M-c" "layout Caption"
> \bind "M-p d"   "layout Description"
> \bind "M-p S-D" "layout Date"
> \bind "M-p e"   "layout Enumerate"  # numbered list
> \bind "M-p f"   "layout ShortFoilhead"  # Foils!!
> \bind "M-p S-F" "layout Foilhead"   # Foils!!
> \bind "M-p i"   "layout Itemize"# bulleted list
> \bind "M-p l"   "layout List"
> \bind "M-p S-L" "layout LaTeX"
> \bind "M-p n"   "layout Enumerate"  # numbered list
> \bind "M-p q"   "layout Quote"
> \bind "M-p S-Q" "layout Quotation"
> \bind "M-p r"   "layout ShortRotatefoilhead"# Foils!!
> \bind "M-p S-R" "layout Rotatefoilhead" # Foils!!
> \bind "M-p s"   "layout Standard"
> \bind "M-p t"   "layout Title"
> \bind "M-p space"   "drop-layouts-choice"
> \bind "M-p v"   "layout Verse"
>
>


--
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Jean-Marc Lasgouttes
> "Ernesto" == Ernesto Posse <[EMAIL PROTECTED]> writes:

Ernesto> There is not such icon in the standard lyx images directory,
Ernesto> so I created my own references-insert.xpm and put it in my
Ernesto> .lyx/images directory, but LyX still doesn't find it.

If this is really the name of the file, you made a typo (extra 's').

JMarc


Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Micha Feigin
On Fri, 2 Dec 2005 16:42:04 +0100 (CET)
"H. Peter Gumm" <[EMAIL PROTECTED]> wrote:

> Thanks for all the advices to my mail. Most of the problem
> solutions I knew, my point was to suggest making the default
> behaviour for the windows version of LyX "reasonable" without
> the need to tweak the system and to scan the FAQs.
> 
> On the unsolved points 
> 
> Helge Hafting wrote:
> 
> > Turn the preview off.  Then the formulas remain in the size used
> > when editing them.  Perhaps not as pretty, but ok nonetheless.
> 
> I need instant preview because I am using xypic extensively.
> As my first LyX-project I wrote a manual on how to use xypic in LyX:
>  http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf
> Without instant preview for xy-figures I would not see a compelling
> reason for myself to use LyX. I guess I would have used AuCTeX,
> TeXMacs or just stayed with WinEdt.
> 

I think this should be possible somehow. lyxpreview2ppm.py takes as a second
argument a scale factor. I also seem to remember a menu entry or settings file
option that controls the scale factor but I can't seem to find it now.

> > The bitmapped fonts are ok - the problem is the broken acrobat
> > reader so many uses.  Printing the pdf will actually be fine.  Many
> > people don't make pdf's - they don't need a different default.
> 
> I threw away the new Acrobat Professional and reinstalled the older
> one Acrobat 5.0. It is much faster, has everything I need and its
> menu structure is better organized. I hear from many people who did
> likewise.
> 
> > Use "update dvi" instead then.  It updated the file, and your dvi
> > viewer will then reload the new file automatically.  (If it doesn't,
> > then surely
> > it has a button or menu for doing that.)
> 
> C-d is the default action from the View-menu. I just suggest that S-C-d would
> be a better default
> 
> >>  = Going back to LyX I sometimes do it by doubleclicking the .lyx-file 
> >> again.
> >>This opens a new LyX on the same file. At the end I discover that I have
> >>several LyXes open on the same file. Oops!! Which one do I want to save 
> >> now ?
> >>
> > Don't do that - it is an approach that doesn't work with lyx.  Switch
> > to the running lyx instead - it isn't hard to do on windows.
> 
> Well, thanks for telling. However, this happens unintentionally. In the 
> Windows
> programs I am used to, this never causes a problem. Why should I have a 
> problem
> with LyX ?
> 

This requires checking for a running session and checking for the open
documents. Its not completely trivial, especially if you want to do it in a
way that is cross platform. Probably the simplest way is to use a singleton and
implement multiple windows in lyx which is probably also not that simple.

> > It is common in most editors _in windows_, which isn't the main
> > platform for lyx.  Still, it can be done if you can interest a developer
> 
> Yes, if you want to make LyX popular under Windows, this should be adapted.
> Also, it would be nice if C-v from the Windows Clipboard would work. It took
> me a while to find the LyX-equivalent Edit-> Paste external selection
> 

That is an issue with the fact that lyx works with the underlying latex which
makes treating newlines ambiguous without specific instructions from the user
(not to mention handling images and such).

> That said, LyX is a great system and I'll keep advertising it.
> 
> H.Peter
> 
> 
>  
>  +++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

 
 +++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.


Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Paul A. Rubin

Stefano Franchi wrote:


On Dec 1, 2005, at 6:54 PM, Roy Schestowitz wrote:


_/ On Thu 01 Dec 2005 17:23:07 GMT, [Ernesto Posse] wrote : \_




2) Are there keyboard shortcuts for layouts (environments)? Where
would I find those?




Ditto, but see comments below.



Actually there are. I believe the standard shortcut is M-p, which gives 
you a menu in the minibuffer, followed by a letter or number or letter 
plus modifier key. So M-p t, for example, select the Title environment, 
M-p s the standard one, M-p a is abstract, but M-p A (uppercase) is 
Author, etcetera. The  shortcuts are linked to actual keys by the 
binding file, are editable and to a certain extent platform-specific. On 
my Mac, with aqua-bindings, for example, the shortcut for M-P is 
actually Option-P, which means that the title environment is Option-P, t 
. Other platforms may have other bindings. Look in the Customization 
manual (from the help menu), section 3.3 for more info on bindings.


Also, M-p followed by a space is the equivalent of clicking on the 
environment drop-down list, after which typing the first letter of the 
desired environment (repeatedly, if necessary) cycles through choices 
starting with that letter.


Paul



Re: [OT] PDF permissions

2005-12-02 Thread Paul A. Rubin

Hi, Andrei,

Andrei Popov wrote:



I'd say you try encrypting the output pdf with the appropriate option
(can't check right now), instead of setting the user/master password,
and then list ALL permissions that pdftrans can handle after
--permissions. The permissions can be interdependent, so just try
enabling all of them.


Tried that, no joy.


I think Adobe Reader seems to be the culprit here. Can you try a
previous version of Acrobat and see if it helps?



Alas, I'm pretty sure that the ability to insert comments began with 
Acrobat Reader 7 (the current version).  Stephen Harris kindly sent me a 
couple of PDFs in which he had enabled annotation (using Acrobat Pro 7), 
and my copy of Reader allowed me to add comments to them, so at least I 
know that Reader works.  Copious use of Google turned up some threads on 
other news groups suggesting that, at least for the moment, Acrobat Pro 
may be the only way to turn on commenting so that Reader will allow it.  :-(


Unfortunately, my target audience is students equipped with Acrobat 
Reader and no desire to try other programs, so my options are narrow.


Thanks for the help.

Paul



Re: [OT] PDF permissions

2005-12-02 Thread Stephen Harris


- Original Message - 
From: "K. Elo" <[EMAIL PROTECTED]>

To: 
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 02, 2005 2:19 AM
Subject: Re: [OT] PDF permissions



Hej på dig, Helge,

Helge Hafting, 2.12.2005 12:00:

K. Elo wrote:
>Without knowing it, you have helped me, too. A couple of day ago I
>received a pdf-formular from a company. After having opened it with
> my acoread 7.0 for linux I noticed that the printing was not
> possible, because the printing permission was diabled (very
> practical with a formular, indeed!). I contacted the company, but
> they haven't even heard about the permissions (because they use 6.0
> where the permissions are, AFAIK, simply ignored) and didn't know
> how to fix the formular.
>
>At this point, your mail arrived. I downloaded pdftrans and itext,
>installed them - and voilà!

On linux, use xpdf which couldn't care less about permissions.
I use it to copy/paste stuff out of pdf's that are protected against
copying with acrobat.



Yes, sure. But the problem was I had to fill in the form before printing
and you just cannot fill in forms with xpdf. You could imagine I was "a
little bit" unhappy, when I had filled in the form (with 3 pages) and
then figured out the printing permission was set to "not allowed".
There was absolutely no way to save the information already filled in.
*Grr*!

But anyway, thanks for your advice!

Cheers,
Kimmo



For Windows users, there is the intuitive, free PDFFill PDF Tools
http://www.pdfill.com/pdf_tools_free.html
Option #3, Encypt and Decrypt with Security Options, allows:

User Password
Owner Password

Encyption level
40 bit RC4
128 bit RC4

Security Options

Printing  (on or off) Fill In (on or off)
Modity Contents (on or off)Screen Readers (on or off)
Copy (on or off) Assembly (on or off)
Modify Annotations (on or off)   Degraded Printing (on or off)

SH: It is the last option which reflects back to the OPs quest.

The best tool for Windows for annotation is Adobe Pro 7.0,
but it is expensive. Pro allows one to enable commenting for
th free Adobe Acrobat Reader, on the original document.
However, if you try to do any kind of conversion to the file,
then Reader will say the doc has lots its original permissions.
You can turn off annotation in the original doc so that Pro can
not later enable it using the Modify Annotations option above.

Jürgen Spitzmueller suggested in "Annotating documents" Aug04,2005

..."There are other free tools that can annotate PDFs directly, like the
Multivalent browser (http://multivalent.sourceforge.net/). On Windows,
the free eXpert PDF viewer can do it
(http://www.visagesoft.com/products/pdfreader/),
and OSX Tiger's preview also.

The question is what your collaborators are willing to install.
Acroread is quite of Standard, so the most pragmatic solution would
be to find a way to set the annotation permissions."

SH: eXpert PDF viewer works, but has limitations compared to Pro.
flpsed will work with postscript commenting.

WBR,
Stephen






Re: change tracking

2005-12-02 Thread Angus Leeming
David M Hunter wrote:
> Angus, as a windows newbie I have managed to create a new windows Lyx
> with the tracking changes.

Well now, that's an amazing accomplishment. I'm truly impressed.

> Compilation was very lengthy

Indeed.

> and I used the  
> MinWG platform and method you outlined in your notes.

That's Minimal Gnu for Windows (MinGW) together with Minimal SYStem (MSYS).
Together MinGW/MSYS.

> Not familiar with making "builds" I have not made a "package" but
> created a new Lyx executable based on the stable 1.3.6 source code.

Is that BRANCH_1_3_X of the lyx-devel repository? If not, you really should
use this. Lots and lots of tiresome little bugs have been squashed.

If you're interested in the packaging, read the README, same directory
which details the steps I take to go on and package it all up. You'll be
especially interested in the package_lyxwin.sh script which, despite its
name, doesn't package anything but indulges in a few tricks to create a
truly useful (working) system on Windows. It transpires that "paths with
spaces" are a real pain in the LaTeX world and we must jump through a few
hoops to make things less unpleasant. That's package_lyxwin.sh.

> I am stuck on a problem with dvipost. Dvipost is necessary to create a
> final printable document. I don't know how to compile it without errors
> on the MinGW system and I'm also foggy about where it should reside
> should I succeed in compiling it.

Compilation problems: see the bottom of this mail.

Where to put the resulting executable? MiKTeX's binaries appear to live in
  C:\MiKTeX\Main\miktex\bin
Don't put the thing there because Main is for official MiKTeX stuff.
However, there's also a C:\MiKTeX\Local directory tree for your own,
unofficial additions. So
  C:\MiKTeX\Local\miktex\bin

I'm not sure if you need to explicitly add this directory to your PATH for
MikTeX to find executables therein.

FWIW, here's my own personal MSYS .bashrc file (as seen from my linux box)
which tunes my MSYS environment. You could also adjust the PATH from the
Start menu.

$ cat /mnt/windowsJ/MSYS/home/angus/.bashrc
#! /bin/sh

alias ls="ls --color -F"
alias rm="rm -i"

PATH=$HOME/bin:/j/emacs-21.3/bin:$PATH; export PATH

> A few questions:
> Should I try to learn and follow your method for creating a package (is
> it the same as the windows installer package?) and in doing so would it
> solve all my problems, including the dvipost one? I ask these questions
> because things take a long time to compile.

Running package_lyxwin.sh will take a few seconds and its well worth doing.
Creating the Windows Installer is a useful exercise if you're going to
make this stuff available to others. You'll need to install NSIS, compile
lyx_configure.C and put the resulting lyx_configure.dll in
  C:\Program Files\NSIS\Plugins\
Thereafter, building the installer is as simple as
  C:\Program Files\NSIS\makensis lyx_installer.nsi

> Thanks for your time. Again, at the risk of being tiresome, I wish to
> point out that I am doing this work to try bring windows users (I am not
> a windows user) to Lyx, Linux and opensource software.

You don't need to justify yourself ;-)

You'll notice I haven't answered the dvipost questions. Mail me privately
with more info about your problems.

Regards,
-- 
Angus



Re: lyxwin136-small-04 and instant preview

2005-12-02 Thread Angus Leeming
Micha Feigin wrote:
> I think this should be possible somehow. lyxpreview2ppm.py takes as a
> second argument a scale factor. I also seem to remember a menu entry or
> settings file option that controls the scale factor but I can't seem to
> find it now.

Add a line
  \preview_scale_factor 1.8
to 
  C:\Documents and Settings\Application Data\LyX\preferences
to exactly double the existing size.


-- 
Angus



Re: Configuring toolbars to deal with layouts

2005-12-02 Thread Roy Schestowitz

_/ On Fri 02 Dec 2005 19:21:50 GMT, [Paul A. Rubin] wrote : \_


Stefano Franchi wrote:


On Dec 1, 2005, at 6:54 PM, Roy Schestowitz wrote:


_/ On Thu 01 Dec 2005 17:23:07 GMT, [Ernesto Posse] wrote : \_




2) Are there keyboard shortcuts for layouts (environments)? Where
would I find those?




Ditto, but see comments below.



Actually there are. I believe the standard shortcut is M-p, which 
gives you a menu in the minibuffer, followed by a letter or number 
or letter plus modifier key. So M-p t, for example, select the Title 
environment, M-p s the standard one, M-p a is abstract, but M-p A 
(uppercase) is Author, etcetera. The  shortcuts are linked to actual 
keys by the binding file, are editable and to a certain extent 
platform-specific. On my Mac, with aqua-bindings, for example, the 
shortcut for M-P is actually Option-P, which means that the title 
environment is Option-P, t . Other platforms may have other 
bindings. Look in the Customization manual (from the help menu), 
section 3.3 for more info on bindings.


Also, M-p followed by a space is the equivalent of clicking on the 
environment drop-down list, after which typing the first letter of 
the desired environment (repeatedly, if necessary) cycles through 
choices starting with that letter.


Paul


Thanks, guys.

I came to realise it only once your clarifications flowed in. By attempting to
answer somebody's question, I learned something new, as I frequently do 
in this

mailing list.

From now on, there will be no need to get hands off the keyboard. I 
guess it was

a matter of experience and familiarity with keyboard accelerators.

Roy