Re: Plz help with this Error message: Document class not available

2010-10-25 Thread Waluyo Adi Siswanto
On 25 October 2010 12:38, sherif helmy sherif_...@yahoo.com wrote:

 Thanks for your atention
 I did what you told me but the message is still exisiting
 thanks


Do you see article (IEEEtran) active ?
(from the LyX menu Document-Settings, under Document class)

Regards
Waluyo


Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Hi all,


I'm trying to streamline the inclusion of Haskell code in my documents. 
Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file to 
.tex, which I can then include in LyX using the regular include mechanism.
Ideally, however, I would just include my .lhs file in LyX and have a converter 
execute the lhs2TeX step for me. It might be useful to note that lhs2TeX can 
both write to a file and output the produced LaTeX code to stdout.
Is this possible?

I added a File Format in the LyX File Formats settings dialog with extension 
lhs and Default Output Format LaTeX (pdflatex). I marked it as Document format.
Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
the input $$i to LaTeX and write the results to file $$o .
Unfortunately, it doesn't really do anything useful yet. How can I make this 
converter work?


Thanks!


- Jurriën

Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Hmm... I just figured out I might be able to do this using Templates. However, 
I can't seem to be able to make my custom template appear in the list of 
Templates in the Insert External Material dialog. Where do I place my newly 
created template?
I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.

Cheers,

- Jurriën

On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:

 Hi all,
 
 
 I'm trying to streamline the inclusion of Haskell code in my documents. 
 Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file 
 to .tex, which I can then include in LyX using the regular include mechanism.
 Ideally, however, I would just include my .lhs file in LyX and have a 
 converter execute the lhs2TeX step for me. It might be useful to note that 
 lhs2TeX can both write to a file and output the produced LaTeX code to stdout.
 Is this possible?
 
 I added a File Format in the LyX File Formats settings dialog with extension 
 lhs and Default Output Format LaTeX (pdflatex). I marked it as Document 
 format.
 Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
 converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
 the input $$i to LaTeX and write the results to file $$o .
 Unfortunately, it doesn't really do anything useful yet. How can I make this 
 converter work?
 
 
 Thanks!
 
 
 - Jurriën



Image resize and center

2010-10-25 Thread M DR
Hello to all,

First of all, I am a newbie with LyX, so I would thank an easy language in
explanations.

I have a lot of floating figures inserted in my file with captions. They're
in .png format, with 300dpi.
Since many are too big to fit the default page, I was wondering if there was
any package or command to resize them automatically, to fit in within the
95% of the widthpage, for example. I have tried the scale window that
appears by default, but I don´t know if this compresses the figure or make
any lose in quality. Also this tool doesn´t fit the figure in the LyX page,
but at the exit, which makes much more difficult to write the document. I
have researched in the maling list and in forums, but I did´t find a clear
solution, maybe is such a simple problem.

I was also wondering how to centre the captions with the figure. They' re
slightly displaced

I would additionally ask if this type of figures (.png, 300 dpi) will make a
too-heavy final document, since I'll have many figures (actually, it's a
PhD doc).

Thank you very much in advanced,

MaDro


Re: Image resize and center

2010-10-25 Thread Waluyo Adi Siswanto

 I have a lot of floating figures inserted in my file with captions. They're
 in .png format, with 300dpi.
 Since many are too big to fit the default page, I was wondering if there was
 any package or command to resize them automatically, to fit in within the
 95% of the widthpage, for example. I have tried the scale window that
 appears by default, but I don´t know if this compresses the figure or make
 any lose in quality. Also this tool doesn´t fit the figure in the LyX page,
 but at the exit, which makes much more difficult to write the document. I
 have researched in the maling list and in forums, but I did´t find a clear
 solution, maybe is such a simple problem.

When you insert the image, I think you open LyX Graphics dialog. Below
the file browsing, enable Set Width, enter 95, select Column Width in
the unit selection.



 I was also wondering how to centre the captions with the figure. They' re
 slightly displaced


In the paragraph where your figure is located, right click, select
Paragraph Settings, then in the alignment you can change to Center.
Your picture will be centered.


Regards
Waluyo



Re: Image resize and center

2010-10-25 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote:
  I have a lot of floating figures inserted in my file with captions.
  They're in .png format, with 300dpi.
  Since many are too big to fit the default page, I was wondering if there
  was any package or command to resize them automatically, to fit in
  within the 95% of the widthpage, for example. I have tried the scale
  window that appears by default, but I don´t know if this compresses the
  figure or make any lose in quality. Also this tool doesn´t fit the
  figure in the LyX page, but at the exit, which makes much more difficult
  to write the document. I have researched in the maling list and in
  forums, but I did´t find a clear solution, maybe is such a simple
  problem.
 
 When you insert the image, I think you open LyX Graphics dialog. Below
 the file browsing, enable Set Width, enter 95, select Column Width in
 the unit selection.

And for the scaling inside the LyX work area, go to LaTeX and LyX Options in 
that dialog, and adjust the value via Scale on Screen.

BTW if you need many graphics with excatly the same settings, you can open a 
new graphics group in that tab. Then you can assign new graphics to that group 
via right-click context menu, and they will automatically inherit the settings 
of the group. In other words: if you alter the settings of one graphic of a 
group, it will apply to the whole group.

  I was also wondering how to centre the captions with the figure. They' re
  slightly displaced
 
 In the paragraph where your figure is located, right click, select
 Paragraph Settings, then in the alignment you can change to Center.
 Your picture will be centered.

To center the caption, however, you might need a specific package (depends on 
the document class you use). 

Try if

\usepackage[justification=centering]{caption}

in document  Settings  Preamble is what you want.

Many other related things are described in Help  Embedded Objects.

Jürgen


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 04:32 AM, Jurriën Stutterheim wrote:

Hmm... I just figured out I might be able to do this using Templates. However, 
I can't seem to be able to make my custom template appear in the list of 
Templates in the Insert External Material dialog. Where do I place my newly 
created template?
I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.

   
I'm not sure about this, but I think what you should do is copy the file 
lib/external_templates from LyX's system directory to your local user 
directory, then add your template to the local version. This is not the 
most flexible system, to be sure.


Richard


Cheers,

- Jurriën

On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:

   

Hi all,


I'm trying to streamline the inclusion of Haskell code in my documents. 
Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file to 
.tex, which I can then include in LyX using the regular include mechanism.
Ideally, however, I would just include my .lhs file in LyX and have a converter 
execute the lhs2TeX step for me. It might be useful to note that lhs2TeX can 
both write to a file and output the produced LaTeX code to stdout.
Is this possible?

I added a File Format in the LyX File Formats settings dialog with extension 
lhs and Default Output Format LaTeX (pdflatex). I marked it as Document format.
Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
the input $$i to LaTeX and write the results to file $$o .
Unfortunately, it doesn't really do anything useful yet. How can I make this 
converter work?


Thanks!


- Jurriën
 
   




Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS 
GuiName LHS: $$AbsOrRelPathParent$$Basename
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter *.lhs
AutomaticProduction true
Format LHS
Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
UpdateFormat lhs
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it. 
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?

On 25 Oct, 2010, at 13:43 , Richard Heck wrote:

 On 10/25/2010 04:32 AM, Jurriën Stutterheim wrote:
 Hmm... I just figured out I might be able to do this using Templates. 
 However, I can't seem to be able to make my custom template appear in the 
 list of Templates in the Insert External Material dialog. Where do I place 
 my newly created template?
 I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.
 
   
 I'm not sure about this, but I think what you should do is copy the file 
 lib/external_templates from LyX's system directory to your local user 
 directory, then add your template to the local version. This is not the most 
 flexible system, to be sure.
 
 Richard
 
 Cheers,
 
 - Jurriën
 
 On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:
 
   
 Hi all,
 
 
 I'm trying to streamline the inclusion of Haskell code in my documents. 
 Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) 
 file to .tex, which I can then include in LyX using the regular include 
 mechanism.
 Ideally, however, I would just include my .lhs file in LyX and have a 
 converter execute the lhs2TeX step for me. It might be useful to note that 
 lhs2TeX can both write to a file and output the produced LaTeX code to 
 stdout.
 Is this possible?
 
 I added a File Format in the LyX File Formats settings dialog with 
 extension lhs and Default Output Format LaTeX (pdflatex). I marked it as 
 Document format.
 Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
 converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX 
 convert the input $$i to LaTeX and write the results to file $$o .
 Unfortunately, it doesn't really do anything useful yet. How can I make 
 this converter work?
 
 
 Thanks!
 
 
 - Jurriën
 
   
 



I cannot load 1.6.7-4 due to virus

2010-10-25 Thread Manveru
Hello,

I cannot download Lyx Installer 1.6.7-4 from both ftp and mirror:

http://gd.tuwien.ac.at/publishing/tex/lyx/bin/1.6.7/LyX-1.6.7-4-Installer.exe

In both cases I am blocked due to virus reported in binary file by my
company's firewalls. Any ideas.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:

It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS
 GuiName LHS: $$AbsOrRelPathParent$$Basename
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter *.lhs
 AutomaticProduction true
 Format LHS
 Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
 UpdateFormat lhs
 UpdateResult $$AbsPath$$Basename.tex
 ReferencedFile lhs $$AbsPath$$Basename.tex
 FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?

   
The location is wrong for Mac. I think it's something like ~/Application 
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults 
file, then that is the right directory.


rh



Re: I cannot load 1.6.7-4 due to virus

2010-10-25 Thread Liviu Andronic
On Mon, Oct 25, 2010 at 2:04 PM, Manveru manv...@manveru.pl wrote:
 Hello,

 I cannot download Lyx Installer 1.6.7-4 from both ftp and mirror:

 http://gd.tuwien.ac.at/publishing/tex/lyx/bin/1.6.7/LyX-1.6.7-4-Installer.exe

 In both cases I am blocked due to virus reported in binary file by my
 company's firewalls. Any ideas.

Perhaps report the file as a false positive to the antivirus software
vendor. Regards
Liviu


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Ah, nice! There we go.. it's appearing in the list now.
Strange side-effect: all stock templates are now gone from the list. (not that 
I really care.. I don't use them)
My document still compiles, however, I can't see my Haskell code in the output, 
even when compiling to LaTeX, using pdflatex.
How does it know it should use the settings from the LHS converter I added? See 
screenshots I link below for my current settings. Is my template actually 
correct?

Converters: http://cl.ly/3198899be981beaa633f
File Formats: http://cl.ly/5574480e9555ba16dd57

On 25 Oct, 2010, at 14:10 , Richard Heck wrote:

 On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 It turns out the external_templates file was hidden away in LyX.app itself. 
 In it, it suggests the following:
 # Feel free to create your own External Templates, storing them in
 # .lyx/external_templates
 
 So I created ~/.lyx/external_templates and added this content:
 
 Template LHS
 GuiName LHS: $$AbsOrRelPathParent$$Basename
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter *.lhs
 AutomaticProduction true
 Format LHS
 Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
 UpdateFormat lhs
 UpdateResult $$AbsPath$$Basename.tex
 ReferencedFile lhs $$AbsPath$$Basename.tex
 FormatEnd
 TemplateEnd
 
 Next, I reconfigured LyX and restarted it.
 Unfortunately, it still doesn't show my template.
 Have I misplaced the external_templates file?
 
   
 The location is wrong for Mac. I think it's something like ~/Application 
 Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, 
 then that is the right directory.
 
 rh
 



Off-topic (sort of) Online PDF annotation tools

2010-10-25 Thread Graham Smith
Has anyone any experience of tools such http://a.nnotate.com/index.html 
or https://docq.com/


These allow you to upload a PDF to the web, send someone a link, and 
they can then annotate the PDF online from their browser.


It seems a way of getting some level of collaboration/feedback from 
clients/collaborators, without needing to have a copy of Adobe Acrobat 
Professional to enable the comment feature, forcing them to download one 
of the many third party pdf annotation tools, or giving them a converted 
 Word/HTML version of your Lyx document.


They will see something that looks like a finished document.

As, with one exception, everyone I work with expects a Word document to 
comment on, but is still comfortable with the idea of PDFs as final 
documents, this seems a possible solution, to an ongoing problem I have, 
just because I use Lyx.


It wouldn't be that great for full blown co-author work, but for a lot 
of what I do when its really on-going feedback this sounds like a 
possible solution.



Graham



Re: From Lyx to .tex file

2010-10-25 Thread Manveru
2010/10/15 Richard Heck rgh...@comcast.net:
 On 10/15/2010 08:06 AM, Emil Pavlov wrote:

 На 15.10.2010 13:02, Yurena Mendoza Lemes написа:

 Hi, I need to send a document produced by lyx in latex format (. tex).
 The option of save as is not available. But I'm wondering if copying the
 source code that is producing lyx in a simple text file to save as tex type
 could be works for people who receive it. Do Citations, cross references,
 floating and other lyx procedures work?


 Thanks in advance

 From the file menu select export and then choose whatever you need.

 Specifically, FileExportLaTeX, where there are two choices for that.

Be careful, LyX do not allows you to select the place where that file
should be exported, so if you have pictures or other stuff included,
all preprocessed files will be put into the same directory structure,
so as an effect you will get messy mix of your sources and results.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Solved!

I ended up with the following template:

Template LHS 
GuiName LHS: $$AbsOrRelPathParent$$Basename
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter *.lhs
AutomaticProduction true
Format LaTeX
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
Format PDFLaTeX
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
Format Ascii
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
Format DocBook
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
TemplateEnd

Using a Document file format called LHS, shortname lhs and extension lhs.
I also added a single converter from LHS to LaTeX (pdflatex) with the command 
lhs2TeX $$i -o $$o
LyX devs: please consider adding this template for inclusion in new LyX 
releases :)

Cheers,


Jurriën

P.S.: it has received very limited testing so far, and it works for my 
purposes. The ASCII and DocBook definitions probably don't make a lot of sense 
right now.

On 25 Oct, 2010, at 14:28 , Jurriën Stutterheim wrote:

 Ah, nice! There we go.. it's appearing in the list now.
 Strange side-effect: all stock templates are now gone from the list. (not 
 that I really care.. I don't use them)
 My document still compiles, however, I can't see my Haskell code in the 
 output, even when compiling to LaTeX, using pdflatex.
 How does it know it should use the settings from the LHS converter I added? 
 See screenshots I link below for my current settings. Is my template actually 
 correct?
 
 Converters: http://cl.ly/3198899be981beaa633f
 File Formats: http://cl.ly/5574480e9555ba16dd57
 
 On 25 Oct, 2010, at 14:10 , Richard Heck wrote:
 
 On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 It turns out the external_templates file was hidden away in LyX.app itself. 
 In it, it suggests the following:
 # Feel free to create your own External Templates, storing them in
 # .lyx/external_templates
 
 So I created ~/.lyx/external_templates and added this content:
 
 Template LHS
GuiName LHS: $$AbsOrRelPathParent$$Basename
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter *.lhs
AutomaticProduction true
Format LHS
Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
UpdateFormat lhs
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
 TemplateEnd
 
 Next, I reconfigured LyX and restarted it.
 Unfortunately, it still doesn't show my template.
 Have I misplaced the external_templates file?
 
 
 The location is wrong for Mac. I think it's something like ~/Application 
 Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, 
 then that is the right directory.
 
 rh
 
 



Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 08:28 AM, Jurriën Stutterheim wrote:

Ah, nice! There we go.. it's appearing in the list now.
Strange side-effect: all stock templates are now gone from the list. (not that 
I really care.. I don't use them)

   

You would need to copy the original templates file over and then add yours.


My document still compiles, however, I can't see my Haskell code in the output, 
even when compiling to LaTeX, using pdflatex.
How does it know it should use the settings from the LHS converter I added? See 
screenshots I link below for my current settings. Is my template actually 
correct?

Converters: http://cl.ly/3198899be981beaa633f
File Formats: http://cl.ly/5574480e9555ba16dd57

   
Unfortunately, I do not actually know anything about templates. I'd try 
posting the question to the devel list, where there are some people who 
do. Also, if you can do this, you might try running LyX from a terminal 
and then checking to see if you get any error messages related to the 
template.


Also, you might have a look at the LaTeX source LyX is producing 
(ViewSource), and see if you are at least getting the \input line.


Richard


On 25 Oct, 2010, at 14:10 , Richard Heck wrote:

   

On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 

It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS
 GuiName LHS: $$AbsOrRelPathParent$$Basename
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter *.lhs
 AutomaticProduction true
 Format LHS
 Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
 UpdateFormat lhs
 UpdateResult $$AbsPath$$Basename.tex
 ReferencedFile lhs $$AbsPath$$Basename.tex
 FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?


   

The location is wrong for Mac. I think it's something like ~/Application 
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, then 
that is the right directory.

rh

 
   




dinbrief: less space between closing and signature

2010-10-25 Thread chs748
Hello,

Is there any way to reduce the space between the closing
(Grußformel) line and the signature (Unterschrift) in a
dinbrief? I am sending documents via email so I don't need the space
for the written signature.

Cheers,

Chris


Re: problems with pdflatex

2010-10-25 Thread Liviu Andronic
Hello
The proper list to seek help is lyx-users (cc'ed).

On Mon, Oct 25, 2010 at 10:51 PM, Joao Cortes
joaooneillcor...@hotmail.com wrote:
 Hello,
 I've installed lyx 1.6 some days ago. At the beginning, it worked just fine,
 but now i can´t create pdf files. When i try to, it apperars a error message
 saying that it doesn´t have enough information to export pdf files
 (pdflatex). I think i hadn't disturbed the initial settings, but who knows..
 I'm using MikTex 2.9.

I'm wondering if the document didn't get corrupted. This can happen
sometimes (my last such case was about 1.5 years ago). Otherwise you
should give us the exact error message and if possible a small example
that does not compile on your machine, so that we could test.

Regards
Liviu


 Thanks for the help,
 João Cortes




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Plz help with this Error message: Document class not available

2010-10-25 Thread Waluyo Adi Siswanto
On 25 October 2010 12:38, sherif helmy sherif_...@yahoo.com wrote:

 Thanks for your atention
 I did what you told me but the message is still exisiting
 thanks


Do you see article (IEEEtran) active ?
(from the LyX menu Document-Settings, under Document class)

Regards
Waluyo


Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Hi all,


I'm trying to streamline the inclusion of Haskell code in my documents. 
Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file to 
.tex, which I can then include in LyX using the regular include mechanism.
Ideally, however, I would just include my .lhs file in LyX and have a converter 
execute the lhs2TeX step for me. It might be useful to note that lhs2TeX can 
both write to a file and output the produced LaTeX code to stdout.
Is this possible?

I added a File Format in the LyX File Formats settings dialog with extension 
lhs and Default Output Format LaTeX (pdflatex). I marked it as Document format.
Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
the input $$i to LaTeX and write the results to file $$o .
Unfortunately, it doesn't really do anything useful yet. How can I make this 
converter work?


Thanks!


- Jurriën

Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Hmm... I just figured out I might be able to do this using Templates. However, 
I can't seem to be able to make my custom template appear in the list of 
Templates in the Insert External Material dialog. Where do I place my newly 
created template?
I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.

Cheers,

- Jurriën

On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:

 Hi all,
 
 
 I'm trying to streamline the inclusion of Haskell code in my documents. 
 Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file 
 to .tex, which I can then include in LyX using the regular include mechanism.
 Ideally, however, I would just include my .lhs file in LyX and have a 
 converter execute the lhs2TeX step for me. It might be useful to note that 
 lhs2TeX can both write to a file and output the produced LaTeX code to stdout.
 Is this possible?
 
 I added a File Format in the LyX File Formats settings dialog with extension 
 lhs and Default Output Format LaTeX (pdflatex). I marked it as Document 
 format.
 Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
 converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
 the input $$i to LaTeX and write the results to file $$o .
 Unfortunately, it doesn't really do anything useful yet. How can I make this 
 converter work?
 
 
 Thanks!
 
 
 - Jurriën



Image resize and center

2010-10-25 Thread M DR
Hello to all,

First of all, I am a newbie with LyX, so I would thank an easy language in
explanations.

I have a lot of floating figures inserted in my file with captions. They're
in .png format, with 300dpi.
Since many are too big to fit the default page, I was wondering if there was
any package or command to resize them automatically, to fit in within the
95% of the widthpage, for example. I have tried the scale window that
appears by default, but I don´t know if this compresses the figure or make
any lose in quality. Also this tool doesn´t fit the figure in the LyX page,
but at the exit, which makes much more difficult to write the document. I
have researched in the maling list and in forums, but I did´t find a clear
solution, maybe is such a simple problem.

I was also wondering how to centre the captions with the figure. They' re
slightly displaced

I would additionally ask if this type of figures (.png, 300 dpi) will make a
too-heavy final document, since I'll have many figures (actually, it's a
PhD doc).

Thank you very much in advanced,

MaDro


Re: Image resize and center

2010-10-25 Thread Waluyo Adi Siswanto

 I have a lot of floating figures inserted in my file with captions. They're
 in .png format, with 300dpi.
 Since many are too big to fit the default page, I was wondering if there was
 any package or command to resize them automatically, to fit in within the
 95% of the widthpage, for example. I have tried the scale window that
 appears by default, but I don´t know if this compresses the figure or make
 any lose in quality. Also this tool doesn´t fit the figure in the LyX page,
 but at the exit, which makes much more difficult to write the document. I
 have researched in the maling list and in forums, but I did´t find a clear
 solution, maybe is such a simple problem.

When you insert the image, I think you open LyX Graphics dialog. Below
the file browsing, enable Set Width, enter 95, select Column Width in
the unit selection.



 I was also wondering how to centre the captions with the figure. They' re
 slightly displaced


In the paragraph where your figure is located, right click, select
Paragraph Settings, then in the alignment you can change to Center.
Your picture will be centered.


Regards
Waluyo



Re: Image resize and center

2010-10-25 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote:
  I have a lot of floating figures inserted in my file with captions.
  They're in .png format, with 300dpi.
  Since many are too big to fit the default page, I was wondering if there
  was any package or command to resize them automatically, to fit in
  within the 95% of the widthpage, for example. I have tried the scale
  window that appears by default, but I don´t know if this compresses the
  figure or make any lose in quality. Also this tool doesn´t fit the
  figure in the LyX page, but at the exit, which makes much more difficult
  to write the document. I have researched in the maling list and in
  forums, but I did´t find a clear solution, maybe is such a simple
  problem.
 
 When you insert the image, I think you open LyX Graphics dialog. Below
 the file browsing, enable Set Width, enter 95, select Column Width in
 the unit selection.

And for the scaling inside the LyX work area, go to LaTeX and LyX Options in 
that dialog, and adjust the value via Scale on Screen.

BTW if you need many graphics with excatly the same settings, you can open a 
new graphics group in that tab. Then you can assign new graphics to that group 
via right-click context menu, and they will automatically inherit the settings 
of the group. In other words: if you alter the settings of one graphic of a 
group, it will apply to the whole group.

  I was also wondering how to centre the captions with the figure. They' re
  slightly displaced
 
 In the paragraph where your figure is located, right click, select
 Paragraph Settings, then in the alignment you can change to Center.
 Your picture will be centered.

To center the caption, however, you might need a specific package (depends on 
the document class you use). 

Try if

\usepackage[justification=centering]{caption}

in document  Settings  Preamble is what you want.

Many other related things are described in Help  Embedded Objects.

Jürgen


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 04:32 AM, Jurriën Stutterheim wrote:

Hmm... I just figured out I might be able to do this using Templates. However, 
I can't seem to be able to make my custom template appear in the list of 
Templates in the Insert External Material dialog. Where do I place my newly 
created template?
I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.

   
I'm not sure about this, but I think what you should do is copy the file 
lib/external_templates from LyX's system directory to your local user 
directory, then add your template to the local version. This is not the 
most flexible system, to be sure.


Richard


Cheers,

- Jurriën

On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:

   

Hi all,


I'm trying to streamline the inclusion of Haskell code in my documents. 
Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file to 
.tex, which I can then include in LyX using the regular include mechanism.
Ideally, however, I would just include my .lhs file in LyX and have a converter 
execute the lhs2TeX step for me. It might be useful to note that lhs2TeX can 
both write to a file and output the produced LaTeX code to stdout.
Is this possible?

I added a File Format in the LyX File Formats settings dialog with extension 
lhs and Default Output Format LaTeX (pdflatex). I marked it as Document format.
Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
the input $$i to LaTeX and write the results to file $$o .
Unfortunately, it doesn't really do anything useful yet. How can I make this 
converter work?


Thanks!


- Jurriën
 
   




Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS 
GuiName LHS: $$AbsOrRelPathParent$$Basename
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter *.lhs
AutomaticProduction true
Format LHS
Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
UpdateFormat lhs
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it. 
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?

On 25 Oct, 2010, at 13:43 , Richard Heck wrote:

 On 10/25/2010 04:32 AM, Jurriën Stutterheim wrote:
 Hmm... I just figured out I might be able to do this using Templates. 
 However, I can't seem to be able to make my custom template appear in the 
 list of Templates in the Insert External Material dialog. Where do I place 
 my newly created template?
 I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.
 
   
 I'm not sure about this, but I think what you should do is copy the file 
 lib/external_templates from LyX's system directory to your local user 
 directory, then add your template to the local version. This is not the most 
 flexible system, to be sure.
 
 Richard
 
 Cheers,
 
 - Jurriën
 
 On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:
 
   
 Hi all,
 
 
 I'm trying to streamline the inclusion of Haskell code in my documents. 
 Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) 
 file to .tex, which I can then include in LyX using the regular include 
 mechanism.
 Ideally, however, I would just include my .lhs file in LyX and have a 
 converter execute the lhs2TeX step for me. It might be useful to note that 
 lhs2TeX can both write to a file and output the produced LaTeX code to 
 stdout.
 Is this possible?
 
 I added a File Format in the LyX File Formats settings dialog with 
 extension lhs and Default Output Format LaTeX (pdflatex). I marked it as 
 Document format.
 Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
 converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX 
 convert the input $$i to LaTeX and write the results to file $$o .
 Unfortunately, it doesn't really do anything useful yet. How can I make 
 this converter work?
 
 
 Thanks!
 
 
 - Jurriën
 
   
 



I cannot load 1.6.7-4 due to virus

2010-10-25 Thread Manveru
Hello,

I cannot download Lyx Installer 1.6.7-4 from both ftp and mirror:

http://gd.tuwien.ac.at/publishing/tex/lyx/bin/1.6.7/LyX-1.6.7-4-Installer.exe

In both cases I am blocked due to virus reported in binary file by my
company's firewalls. Any ideas.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:

It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS
 GuiName LHS: $$AbsOrRelPathParent$$Basename
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter *.lhs
 AutomaticProduction true
 Format LHS
 Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
 UpdateFormat lhs
 UpdateResult $$AbsPath$$Basename.tex
 ReferencedFile lhs $$AbsPath$$Basename.tex
 FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?

   
The location is wrong for Mac. I think it's something like ~/Application 
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults 
file, then that is the right directory.


rh



Re: I cannot load 1.6.7-4 due to virus

2010-10-25 Thread Liviu Andronic
On Mon, Oct 25, 2010 at 2:04 PM, Manveru manv...@manveru.pl wrote:
 Hello,

 I cannot download Lyx Installer 1.6.7-4 from both ftp and mirror:

 http://gd.tuwien.ac.at/publishing/tex/lyx/bin/1.6.7/LyX-1.6.7-4-Installer.exe

 In both cases I am blocked due to virus reported in binary file by my
 company's firewalls. Any ideas.

Perhaps report the file as a false positive to the antivirus software
vendor. Regards
Liviu


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Ah, nice! There we go.. it's appearing in the list now.
Strange side-effect: all stock templates are now gone from the list. (not that 
I really care.. I don't use them)
My document still compiles, however, I can't see my Haskell code in the output, 
even when compiling to LaTeX, using pdflatex.
How does it know it should use the settings from the LHS converter I added? See 
screenshots I link below for my current settings. Is my template actually 
correct?

Converters: http://cl.ly/3198899be981beaa633f
File Formats: http://cl.ly/5574480e9555ba16dd57

On 25 Oct, 2010, at 14:10 , Richard Heck wrote:

 On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 It turns out the external_templates file was hidden away in LyX.app itself. 
 In it, it suggests the following:
 # Feel free to create your own External Templates, storing them in
 # .lyx/external_templates
 
 So I created ~/.lyx/external_templates and added this content:
 
 Template LHS
 GuiName LHS: $$AbsOrRelPathParent$$Basename
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter *.lhs
 AutomaticProduction true
 Format LHS
 Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
 UpdateFormat lhs
 UpdateResult $$AbsPath$$Basename.tex
 ReferencedFile lhs $$AbsPath$$Basename.tex
 FormatEnd
 TemplateEnd
 
 Next, I reconfigured LyX and restarted it.
 Unfortunately, it still doesn't show my template.
 Have I misplaced the external_templates file?
 
   
 The location is wrong for Mac. I think it's something like ~/Application 
 Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, 
 then that is the right directory.
 
 rh
 



Off-topic (sort of) Online PDF annotation tools

2010-10-25 Thread Graham Smith
Has anyone any experience of tools such http://a.nnotate.com/index.html 
or https://docq.com/


These allow you to upload a PDF to the web, send someone a link, and 
they can then annotate the PDF online from their browser.


It seems a way of getting some level of collaboration/feedback from 
clients/collaborators, without needing to have a copy of Adobe Acrobat 
Professional to enable the comment feature, forcing them to download one 
of the many third party pdf annotation tools, or giving them a converted 
 Word/HTML version of your Lyx document.


They will see something that looks like a finished document.

As, with one exception, everyone I work with expects a Word document to 
comment on, but is still comfortable with the idea of PDFs as final 
documents, this seems a possible solution, to an ongoing problem I have, 
just because I use Lyx.


It wouldn't be that great for full blown co-author work, but for a lot 
of what I do when its really on-going feedback this sounds like a 
possible solution.



Graham



Re: From Lyx to .tex file

2010-10-25 Thread Manveru
2010/10/15 Richard Heck rgh...@comcast.net:
 On 10/15/2010 08:06 AM, Emil Pavlov wrote:

 На 15.10.2010 13:02, Yurena Mendoza Lemes написа:

 Hi, I need to send a document produced by lyx in latex format (. tex).
 The option of save as is not available. But I'm wondering if copying the
 source code that is producing lyx in a simple text file to save as tex type
 could be works for people who receive it. Do Citations, cross references,
 floating and other lyx procedures work?


 Thanks in advance

 From the file menu select export and then choose whatever you need.

 Specifically, FileExportLaTeX, where there are two choices for that.

Be careful, LyX do not allows you to select the place where that file
should be exported, so if you have pictures or other stuff included,
all preprocessed files will be put into the same directory structure,
so as an effect you will get messy mix of your sources and results.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Solved!

I ended up with the following template:

Template LHS 
GuiName LHS: $$AbsOrRelPathParent$$Basename
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter *.lhs
AutomaticProduction true
Format LaTeX
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
Format PDFLaTeX
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
Format Ascii
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
Format DocBook
Product \\input{$$AbsOrRelPathMaster$$Basename.tex}
UpdateFormat pdflatex
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
TemplateEnd

Using a Document file format called LHS, shortname lhs and extension lhs.
I also added a single converter from LHS to LaTeX (pdflatex) with the command 
lhs2TeX $$i -o $$o
LyX devs: please consider adding this template for inclusion in new LyX 
releases :)

Cheers,


Jurriën

P.S.: it has received very limited testing so far, and it works for my 
purposes. The ASCII and DocBook definitions probably don't make a lot of sense 
right now.

On 25 Oct, 2010, at 14:28 , Jurriën Stutterheim wrote:

 Ah, nice! There we go.. it's appearing in the list now.
 Strange side-effect: all stock templates are now gone from the list. (not 
 that I really care.. I don't use them)
 My document still compiles, however, I can't see my Haskell code in the 
 output, even when compiling to LaTeX, using pdflatex.
 How does it know it should use the settings from the LHS converter I added? 
 See screenshots I link below for my current settings. Is my template actually 
 correct?
 
 Converters: http://cl.ly/3198899be981beaa633f
 File Formats: http://cl.ly/5574480e9555ba16dd57
 
 On 25 Oct, 2010, at 14:10 , Richard Heck wrote:
 
 On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 It turns out the external_templates file was hidden away in LyX.app itself. 
 In it, it suggests the following:
 # Feel free to create your own External Templates, storing them in
 # .lyx/external_templates
 
 So I created ~/.lyx/external_templates and added this content:
 
 Template LHS
GuiName LHS: $$AbsOrRelPathParent$$Basename
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter *.lhs
AutomaticProduction true
Format LHS
Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
UpdateFormat lhs
UpdateResult $$AbsPath$$Basename.tex
ReferencedFile lhs $$AbsPath$$Basename.tex
FormatEnd
 TemplateEnd
 
 Next, I reconfigured LyX and restarted it.
 Unfortunately, it still doesn't show my template.
 Have I misplaced the external_templates file?
 
 
 The location is wrong for Mac. I think it's something like ~/Application 
 Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, 
 then that is the right directory.
 
 rh
 
 



Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 08:28 AM, Jurriën Stutterheim wrote:

Ah, nice! There we go.. it's appearing in the list now.
Strange side-effect: all stock templates are now gone from the list. (not that 
I really care.. I don't use them)

   

You would need to copy the original templates file over and then add yours.


My document still compiles, however, I can't see my Haskell code in the output, 
even when compiling to LaTeX, using pdflatex.
How does it know it should use the settings from the LHS converter I added? See 
screenshots I link below for my current settings. Is my template actually 
correct?

Converters: http://cl.ly/3198899be981beaa633f
File Formats: http://cl.ly/5574480e9555ba16dd57

   
Unfortunately, I do not actually know anything about templates. I'd try 
posting the question to the devel list, where there are some people who 
do. Also, if you can do this, you might try running LyX from a terminal 
and then checking to see if you get any error messages related to the 
template.


Also, you might have a look at the LaTeX source LyX is producing 
(ViewSource), and see if you are at least getting the \input line.


Richard


On 25 Oct, 2010, at 14:10 , Richard Heck wrote:

   

On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 

It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS
 GuiName LHS: $$AbsOrRelPathParent$$Basename
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter *.lhs
 AutomaticProduction true
 Format LHS
 Product \\input{$$AbsOrRelPathMaster$$Basename.tex_t}
 UpdateFormat lhs
 UpdateResult $$AbsPath$$Basename.tex
 ReferencedFile lhs $$AbsPath$$Basename.tex
 FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?


   

The location is wrong for Mac. I think it's something like ~/Application 
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, then 
that is the right directory.

rh

 
   




dinbrief: less space between closing and signature

2010-10-25 Thread chs748
Hello,

Is there any way to reduce the space between the closing
(Grußformel) line and the signature (Unterschrift) in a
dinbrief? I am sending documents via email so I don't need the space
for the written signature.

Cheers,

Chris


Re: problems with pdflatex

2010-10-25 Thread Liviu Andronic
Hello
The proper list to seek help is lyx-users (cc'ed).

On Mon, Oct 25, 2010 at 10:51 PM, Joao Cortes
joaooneillcor...@hotmail.com wrote:
 Hello,
 I've installed lyx 1.6 some days ago. At the beginning, it worked just fine,
 but now i can´t create pdf files. When i try to, it apperars a error message
 saying that it doesn´t have enough information to export pdf files
 (pdflatex). I think i hadn't disturbed the initial settings, but who knows..
 I'm using MikTex 2.9.

I'm wondering if the document didn't get corrupted. This can happen
sometimes (my last such case was about 1.5 years ago). Otherwise you
should give us the exact error message and if possible a small example
that does not compile on your machine, so that we could test.

Regards
Liviu


 Thanks for the help,
 João Cortes




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Plz help with this Error message: Document class not available

2010-10-25 Thread Waluyo Adi Siswanto
On 25 October 2010 12:38, sherif helmy  wrote:

> Thanks for your atention
> I did what you told me but the message is still exisiting
> thanks
>

Do you see article (IEEEtran) active ?
(from the LyX menu Document->Settings, under Document class)

Regards
Waluyo


Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Hi all,


I'm trying to streamline the inclusion of Haskell code in my documents. 
Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file to 
.tex, which I can then include in LyX using the regular include mechanism.
Ideally, however, I would just include my .lhs file in LyX and have a converter 
execute the lhs2TeX step for me. It might be useful to note that lhs2TeX can 
both write to a file and output the produced LaTeX code to stdout.
Is this possible?

I added a File Format in the LyX File Formats settings dialog with extension 
lhs and Default Output Format LaTeX (pdflatex). I marked it as Document format.
Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
the input $$i to LaTeX and write the results to file $$o .
Unfortunately, it doesn't really do anything useful yet. How can I make this 
converter work?


Thanks!


- Jurriën

Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Hmm... I just figured out I might be able to do this using Templates. However, 
I can't seem to be able to make my custom template appear in the list of 
Templates in the Insert External Material dialog. Where do I place my newly 
created template?
I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.

Cheers,

- Jurriën

On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:

> Hi all,
> 
> 
> I'm trying to streamline the inclusion of Haskell code in my documents. 
> Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file 
> to .tex, which I can then include in LyX using the regular include mechanism.
> Ideally, however, I would just include my .lhs file in LyX and have a 
> converter execute the lhs2TeX step for me. It might be useful to note that 
> lhs2TeX can both write to a file and output the produced LaTeX code to stdout.
> Is this possible?
> 
> I added a File Format in the LyX File Formats settings dialog with extension 
> lhs and Default Output Format LaTeX (pdflatex). I marked it as Document 
> format.
> Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
> converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
> the input $$i to LaTeX and write the results to file $$o .
> Unfortunately, it doesn't really do anything useful yet. How can I make this 
> converter work?
> 
> 
> Thanks!
> 
> 
> - Jurriën



Image resize and center

2010-10-25 Thread M DR
Hello to all,

First of all, I am a newbie with LyX, so I would thank an easy language in
explanations.

I have a lot of floating figures inserted in my file with captions. They're
in .png format, with 300dpi.
Since many are too big to fit the default page, I was wondering if there was
any package or command to resize them automatically, to fit in within the
95% of the widthpage, for example. I have tried the scale window that
appears by default, but I don´t know if this compresses the figure or make
any lose in quality. Also this tool doesn´t fit the figure in the LyX page,
but at the exit, which makes much more difficult to write the document. I
have researched in the maling list and in forums, but I did´t find a clear
solution, maybe is such a simple problem.

I was also wondering how to centre the captions with the figure. They' re
slightly displaced

I would additionally ask if this type of figures (.png, 300 dpi) will make a
"too-heavy" final document, since I'll have many figures (actually, it's a
PhD doc).

Thank you very much in advanced,

MaDro


Re: Image resize and center

2010-10-25 Thread Waluyo Adi Siswanto
>
> I have a lot of floating figures inserted in my file with captions. They're
> in .png format, with 300dpi.
> Since many are too big to fit the default page, I was wondering if there was
> any package or command to resize them automatically, to fit in within the
> 95% of the widthpage, for example. I have tried the scale window that
> appears by default, but I don´t know if this compresses the figure or make
> any lose in quality. Also this tool doesn´t fit the figure in the LyX page,
> but at the exit, which makes much more difficult to write the document. I
> have researched in the maling list and in forums, but I did´t find a clear
> solution, maybe is such a simple problem.

When you insert the image, I think you open LyX Graphics dialog. Below
the file browsing, enable Set Width, enter 95, select Column Width in
the unit selection.


>
> I was also wondering how to centre the captions with the figure. They' re
> slightly displaced
>

In the paragraph where your figure is located, right click, select
Paragraph Settings, then in the alignment you can change to Center.
Your picture will be centered.


Regards
Waluyo



Re: Image resize and center

2010-10-25 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote:
> > I have a lot of floating figures inserted in my file with captions.
> > They're in .png format, with 300dpi.
> > Since many are too big to fit the default page, I was wondering if there
> > was any package or command to resize them automatically, to fit in
> > within the 95% of the widthpage, for example. I have tried the scale
> > window that appears by default, but I don´t know if this compresses the
> > figure or make any lose in quality. Also this tool doesn´t fit the
> > figure in the LyX page, but at the exit, which makes much more difficult
> > to write the document. I have researched in the maling list and in
> > forums, but I did´t find a clear solution, maybe is such a simple
> > problem.
> 
> When you insert the image, I think you open LyX Graphics dialog. Below
> the file browsing, enable Set Width, enter 95, select Column Width in
> the unit selection.

And for the scaling inside the LyX work area, go to "LaTeX and LyX Options" in 
that dialog, and adjust the value via "Scale on Screen".

BTW if you need many graphics with excatly the same settings, you can open a 
new graphics group in that tab. Then you can assign new graphics to that group 
via right-click context menu, and they will automatically inherit the settings 
of the group. In other words: if you alter the settings of one graphic of a 
group, it will apply to the whole group.

> > I was also wondering how to centre the captions with the figure. They' re
> > slightly displaced
> 
> In the paragraph where your figure is located, right click, select
> Paragraph Settings, then in the alignment you can change to Center.
> Your picture will be centered.

To center the caption, however, you might need a specific package (depends on 
the document class you use). 

Try if

\usepackage[justification=centering]{caption}

in document > Settings > Preamble is what you want.

Many other related things are described in Help > Embedded Objects.

Jürgen


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 04:32 AM, Jurriën Stutterheim wrote:

Hmm... I just figured out I might be able to do this using Templates. However, 
I can't seem to be able to make my custom template appear in the list of 
Templates in the Insert External Material dialog. Where do I place my newly 
created template?
I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.

   
I'm not sure about this, but I think what you should do is copy the file 
lib/external_templates from LyX's system directory to your local user 
directory, then add your template to the local version. This is not the 
most flexible system, to be sure.


Richard


Cheers,

- Jurriën

On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:

   

Hi all,


I'm trying to streamline the inclusion of Haskell code in my documents. 
Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) file to 
.tex, which I can then include in LyX using the regular include mechanism.
Ideally, however, I would just include my .lhs file in LyX and have a converter 
execute the lhs2TeX step for me. It might be useful to note that lhs2TeX can 
both write to a file and output the produced LaTeX code to stdout.
Is this possible?

I added a File Format in the LyX File Formats settings dialog with extension 
lhs and Default Output Format LaTeX (pdflatex). I marked it as Document format.
Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX convert 
the input $$i to LaTeX and write the results to file $$o .
Unfortunately, it doesn't really do anything useful yet. How can I make this 
converter work?


Thanks!


- Jurriën
 
   




Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS 
GuiName "LHS: $$AbsOrRelPathParent$$Basename"
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter "*.lhs"
AutomaticProduction true
Format LHS
Product "\\input{$$AbsOrRelPathMaster$$Basename.tex_t}"
UpdateFormat lhs
UpdateResult "$$AbsPath$$Basename.tex"
ReferencedFile lhs "$$AbsPath$$Basename.tex"
FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it. 
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?

On 25 Oct, 2010, at 13:43 , Richard Heck wrote:

> On 10/25/2010 04:32 AM, Jurriën Stutterheim wrote:
>> Hmm... I just figured out I might be able to do this using Templates. 
>> However, I can't seem to be able to make my custom template appear in the 
>> list of Templates in the Insert External Material dialog. Where do I place 
>> my newly created template?
>> I'm using LyX 2.0 alpha 6 on Mac OS X 10.6.4.
>> 
>>   
> I'm not sure about this, but I think what you should do is copy the file 
> lib/external_templates from LyX's system directory to your local user 
> directory, then add your template to the local version. This is not the most 
> flexible system, to be sure.
> 
> Richard
> 
>> Cheers,
>> 
>> - Jurriën
>> 
>> On 25 Oct, 2010, at 09:57 , Jurriën Stutterheim wrote:
>> 
>>   
>>> Hi all,
>>> 
>>> 
>>> I'm trying to streamline the inclusion of Haskell code in my documents. 
>>> Currently, I use the lhs2TeX tool to convert my .lhs (Literate Haskell) 
>>> file to .tex, which I can then include in LyX using the regular include 
>>> mechanism.
>>> Ideally, however, I would just include my .lhs file in LyX and have a 
>>> converter execute the lhs2TeX step for me. It might be useful to note that 
>>> lhs2TeX can both write to a file and output the produced LaTeX code to 
>>> stdout.
>>> Is this possible?
>>> 
>>> I added a File Format in the LyX File Formats settings dialog with 
>>> extension lhs and Default Output Format LaTeX (pdflatex). I marked it as 
>>> Document format.
>>> Next, I added a converter from Literate Haskell to LaTeX (pdflatex). The 
>>> converter command is lhs2TeX $$i -o $$o . This command makes lhs2TeX 
>>> convert the input $$i to LaTeX and write the results to file $$o .
>>> Unfortunately, it doesn't really do anything useful yet. How can I make 
>>> this converter work?
>>> 
>>> 
>>> Thanks!
>>> 
>>> 
>>> - Jurriën
>>> 
>>   
> 



I cannot load 1.6.7-4 due to virus

2010-10-25 Thread Manveru
Hello,

I cannot download Lyx Installer 1.6.7-4 from both ftp and mirror:

http://gd.tuwien.ac.at/publishing/tex/lyx/bin/1.6.7/LyX-1.6.7-4-Installer.exe

In both cases I am blocked due to virus reported in binary file by my
company's firewalls. Any ideas.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:

It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS
 GuiName "LHS: $$AbsOrRelPathParent$$Basename"
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter "*.lhs"
 AutomaticProduction true
 Format LHS
 Product "\\input{$$AbsOrRelPathMaster$$Basename.tex_t}"
 UpdateFormat lhs
 UpdateResult "$$AbsPath$$Basename.tex"
 ReferencedFile lhs "$$AbsPath$$Basename.tex"
 FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?

   
The location is wrong for Mac. I think it's something like ~/Application 
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults 
file, then that is the right directory.


rh



Re: I cannot load 1.6.7-4 due to virus

2010-10-25 Thread Liviu Andronic
On Mon, Oct 25, 2010 at 2:04 PM, Manveru  wrote:
> Hello,
>
> I cannot download Lyx Installer 1.6.7-4 from both ftp and mirror:
>
> http://gd.tuwien.ac.at/publishing/tex/lyx/bin/1.6.7/LyX-1.6.7-4-Installer.exe
>
> In both cases I am blocked due to virus reported in binary file by my
> company's firewalls. Any ideas.
>
Perhaps report the file as a false positive to the antivirus software
vendor. Regards
Liviu


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Ah, nice! There we go.. it's appearing in the list now.
Strange side-effect: all stock templates are now gone from the list. (not that 
I really care.. I don't use them)
My document still compiles, however, I can't see my Haskell code in the output, 
even when compiling to LaTeX, using pdflatex.
How does it know it should use the settings from the LHS converter I added? See 
screenshots I link below for my current settings. Is my template actually 
correct?

Converters: http://cl.ly/3198899be981beaa633f
File Formats: http://cl.ly/5574480e9555ba16dd57

On 25 Oct, 2010, at 14:10 , Richard Heck wrote:

> On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
>> It turns out the external_templates file was hidden away in LyX.app itself. 
>> In it, it suggests the following:
>> # Feel free to create your own External Templates, storing them in
>> # .lyx/external_templates
>> 
>> So I created ~/.lyx/external_templates and added this content:
>> 
>> Template LHS
>> GuiName "LHS: $$AbsOrRelPathParent$$Basename"
>> HelpText
>> Including Literate Haskell
>> HelpTextEnd
>> InputFormat lhs
>> FileFilter "*.lhs"
>> AutomaticProduction true
>> Format LHS
>> Product "\\input{$$AbsOrRelPathMaster$$Basename.tex_t}"
>> UpdateFormat lhs
>> UpdateResult "$$AbsPath$$Basename.tex"
>> ReferencedFile lhs "$$AbsPath$$Basename.tex"
>> FormatEnd
>> TemplateEnd
>> 
>> Next, I reconfigured LyX and restarted it.
>> Unfortunately, it still doesn't show my template.
>> Have I misplaced the external_templates file?
>> 
>>   
> The location is wrong for Mac. I think it's something like ~/Application 
> Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, 
> then that is the right directory.
> 
> rh
> 



Off-topic (sort of) Online PDF annotation tools

2010-10-25 Thread Graham Smith
Has anyone any experience of tools such http://a.nnotate.com/index.html 
or https://docq.com/


These allow you to upload a PDF to the web, send someone a link, and 
they can then annotate the PDF online from their browser.


It seems a way of getting some level of collaboration/feedback from 
clients/collaborators, without needing to have a copy of Adobe Acrobat 
Professional to enable the comment feature, forcing them to download one 
of the many third party pdf annotation tools, or giving them a converted 
 Word/HTML version of your Lyx document.


They will see something that looks like a finished document.

As, with one exception, everyone I work with expects a Word document to 
comment on, but is still comfortable with the idea of PDFs as "final" 
documents, this seems a possible solution, to an ongoing problem I have, 
just because I use Lyx.


It wouldn't be that great for full blown co-author work, but for a lot 
of what I do when its really on-going feedback this sounds like a 
possible solution.



Graham



Re: From Lyx to .tex file

2010-10-25 Thread Manveru
2010/10/15 Richard Heck :
> On 10/15/2010 08:06 AM, Emil Pavlov wrote:
>>
>> На 15.10.2010 13:02, Yurena Mendoza Lemes написа:
>>>
>>> Hi, I need to send a document produced by lyx in latex format (. tex).
>>> The option of "save as" is not available. But I'm wondering if copying the
>>> source code that is producing lyx in a simple text file to save as tex type
>>> could be works for people who receive it. Do Citations, cross references,
>>> floating and other lyx procedures work?
>>>
>>>
>>> Thanks in advance
>>
>> >From the file menu select export and then choose whatever you need.
>>
> Specifically, File>Export>LaTeX, where there are two choices for that.

Be careful, LyX do not allows you to select the place where that file
should be exported, so if you have pictures or other stuff included,
all preprocessed files will be put into the same directory structure,
so as an effect you will get messy mix of your sources and results.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Automatically convert external files during PDF creation

2010-10-25 Thread Jurriën Stutterheim
Solved!

I ended up with the following template:

Template LHS 
GuiName "LHS: $$AbsOrRelPathParent$$Basename"
HelpText
Including Literate Haskell
HelpTextEnd
InputFormat lhs
FileFilter "*.lhs"
AutomaticProduction true
Format LaTeX
Product "\\input{$$AbsOrRelPathMaster$$Basename.tex}"
UpdateFormat pdflatex
UpdateResult "$$AbsPath$$Basename.tex"
ReferencedFile lhs "$$AbsPath$$Basename.tex"
FormatEnd
Format PDFLaTeX
Product "\\input{$$AbsOrRelPathMaster$$Basename.tex}"
UpdateFormat pdflatex
UpdateResult "$$AbsPath$$Basename.tex"
ReferencedFile lhs "$$AbsPath$$Basename.tex"
FormatEnd
Format Ascii
Product "\\input{$$AbsOrRelPathMaster$$Basename.tex}"
UpdateFormat pdflatex
UpdateResult "$$AbsPath$$Basename.tex"
ReferencedFile lhs "$$AbsPath$$Basename.tex"
FormatEnd
Format DocBook
Product "\\input{$$AbsOrRelPathMaster$$Basename.tex}"
UpdateFormat pdflatex
UpdateResult "$$AbsPath$$Basename.tex"
ReferencedFile lhs "$$AbsPath$$Basename.tex"
FormatEnd
TemplateEnd

Using a Document file format called LHS, shortname lhs and extension lhs.
I also added a single converter from LHS to LaTeX (pdflatex) with the command 
lhs2TeX $$i -o $$o
LyX devs: please consider adding this template for inclusion in new LyX 
releases :)

Cheers,


Jurriën

P.S.: it has received very limited testing so far, and it works for my 
purposes. The ASCII and DocBook definitions probably don't make a lot of sense 
right now.

On 25 Oct, 2010, at 14:28 , Jurriën Stutterheim wrote:

> Ah, nice! There we go.. it's appearing in the list now.
> Strange side-effect: all stock templates are now gone from the list. (not 
> that I really care.. I don't use them)
> My document still compiles, however, I can't see my Haskell code in the 
> output, even when compiling to LaTeX, using pdflatex.
> How does it know it should use the settings from the LHS converter I added? 
> See screenshots I link below for my current settings. Is my template actually 
> correct?
> 
> Converters: http://cl.ly/3198899be981beaa633f
> File Formats: http://cl.ly/5574480e9555ba16dd57
> 
> On 25 Oct, 2010, at 14:10 , Richard Heck wrote:
> 
>> On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
>>> It turns out the external_templates file was hidden away in LyX.app itself. 
>>> In it, it suggests the following:
>>> # Feel free to create your own External Templates, storing them in
>>> # .lyx/external_templates
>>> 
>>> So I created ~/.lyx/external_templates and added this content:
>>> 
>>> Template LHS
>>>GuiName "LHS: $$AbsOrRelPathParent$$Basename"
>>>HelpText
>>>Including Literate Haskell
>>>HelpTextEnd
>>>InputFormat lhs
>>>FileFilter "*.lhs"
>>>AutomaticProduction true
>>>Format LHS
>>>Product "\\input{$$AbsOrRelPathMaster$$Basename.tex_t}"
>>>UpdateFormat lhs
>>>UpdateResult "$$AbsPath$$Basename.tex"
>>>ReferencedFile lhs "$$AbsPath$$Basename.tex"
>>>FormatEnd
>>> TemplateEnd
>>> 
>>> Next, I reconfigured LyX and restarted it.
>>> Unfortunately, it still doesn't show my template.
>>> Have I misplaced the external_templates file?
>>> 
>>> 
>> The location is wrong for Mac. I think it's something like ~/Application 
>> Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, 
>> then that is the right directory.
>> 
>> rh
>> 
> 



Re: Automatically convert external files during PDF creation

2010-10-25 Thread Richard Heck

On 10/25/2010 08:28 AM, Jurriën Stutterheim wrote:

Ah, nice! There we go.. it's appearing in the list now.
Strange side-effect: all stock templates are now gone from the list. (not that 
I really care.. I don't use them)

   

You would need to copy the original templates file over and then add yours.


My document still compiles, however, I can't see my Haskell code in the output, 
even when compiling to LaTeX, using pdflatex.
How does it know it should use the settings from the LHS converter I added? See 
screenshots I link below for my current settings. Is my template actually 
correct?

Converters: http://cl.ly/3198899be981beaa633f
File Formats: http://cl.ly/5574480e9555ba16dd57

   
Unfortunately, I do not actually know anything about templates. I'd try 
posting the question to the devel list, where there are some people who 
do. Also, if you can do this, you might try running LyX from a terminal 
and then checking to see if you get any error messages related to the 
template.


Also, you might have a look at the LaTeX source LyX is producing 
(View>Source), and see if you are at least getting the \input line.


Richard


On 25 Oct, 2010, at 14:10 , Richard Heck wrote:

   

On 10/25/2010 07:55 AM, Jurriën Stutterheim wrote:
 

It turns out the external_templates file was hidden away in LyX.app itself. In 
it, it suggests the following:
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

So I created ~/.lyx/external_templates and added this content:

Template LHS
 GuiName "LHS: $$AbsOrRelPathParent$$Basename"
 HelpText
 Including Literate Haskell
 HelpTextEnd
 InputFormat lhs
 FileFilter "*.lhs"
 AutomaticProduction true
 Format LHS
 Product "\\input{$$AbsOrRelPathMaster$$Basename.tex_t}"
 UpdateFormat lhs
 UpdateResult "$$AbsPath$$Basename.tex"
 ReferencedFile lhs "$$AbsPath$$Basename.tex"
 FormatEnd
TemplateEnd

Next, I reconfigured LyX and restarted it.
Unfortunately, it still doesn't show my template.
Have I misplaced the external_templates file?


   

The location is wrong for Mac. I think it's something like ~/Application 
Support/LyX 1.6/external_templates. If you find your lyxrc.defaults file, then 
that is the right directory.

rh

 
   




dinbrief: less space between closing and signature

2010-10-25 Thread chs748
Hello,

Is there any way to reduce the space between the closing
(Grußformel) line and the signature (Unterschrift) in a
dinbrief? I am sending documents via email so I don't need the space
for the written signature.

Cheers,

Chris


Re: problems with pdflatex

2010-10-25 Thread Liviu Andronic
Hello
The proper list to seek help is lyx-users (cc'ed).

On Mon, Oct 25, 2010 at 10:51 PM, Joao Cortes
 wrote:
> Hello,
> I've installed lyx 1.6 some days ago. At the beginning, it worked just fine,
> but now i can´t create pdf files. When i try to, it apperars a error message
> saying that it doesn´t have enough information to export pdf files
> (pdflatex). I think i hadn't disturbed the initial settings, but who knows..
> I'm using MikTex 2.9.
>
I'm wondering if the document didn't get corrupted. This can happen
sometimes (my last such case was about 1.5 years ago). Otherwise you
should give us the exact error message and if possible a small example
that does not compile on your machine, so that we could test.

Regards
Liviu


> Thanks for the help,
> João Cortes
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail