Re: Templates g-brief, g-brief2

2012-09-20 Thread Max Funk
My previous post did apparently not arrive. I repeat it with only the 
patch file attached.



This is a patch of an issue with the g-brief-de.lyx, g-brief-en.lyx and
g-brief2.lyx templates.

I fixed the following Problems:
- The g-brief templates require latex package europs. However, since
g-brief Version 4.0, this dependency has been removed in latex, so it
can be removed in lyx. (Package europs is not contained in the texlive
and miktex distributions)
- The file latexconfig.lyx searches for the classes g-brief-de.cls and
g-brief-en.cls. These do not exist, instead there is only g-brief.cls.
- The template g-brief2.lyx has a more detailed description for the
document settings in the beginning.

The previous discussion of the issue is on lyx-doc.

20.09.2012 21:03, Richard Heck:


Max, could you produce corrected versions of these files and post them
here?



I attach the unified diff from tortoise GIT against 2.0.x.


Actually, this should all be moved to lyx-devel, so post them there
including some of this explanation. That'll get the attention of the
right people. This list is more for discussion of LyX's documentation.



Sorry, I thought the template issues would belong to lyx-doc...

Max








 lib/doc/LaTeXConfig.lyx |  39 +++--
 lib/layouts/g-brief.layout  |   2 +-
 lib/layouts/g-brief2.layout |   2 +-
 lib/templates/g-brief2.lyx  | 134 +++-
 4 files changed, 143 insertions(+), 34 deletions(-)

diff --git a/lib/doc/LaTeXConfig.lyx b/lib/doc/LaTeXConfig.lyx
index 0112c30..5db9ad9 100644
--- a/lib/doc/LaTeXConfig.lyx
+++ b/lib/doc/LaTeXConfig.lyx
@@ -1865,14 +1865,14 @@ seminar
 \end_layout
 
 \begin_layout Subsection
-g-brief-en
+g-brief
 \end_layout
 
 \begin_layout Description
 Found: 
 \begin_inset Info
 type  textclass
-arg   g-brief-en
+arg   g-brief
 \end_inset
 
 
@@ -1887,41 +1887,18 @@ macros/latex/contrib/g-brief/
 \begin_layout Description
 Notes: The document class 
 \family sans
-g-brief-en
+g-brief
 \family default
  can be used to type commercial letters with a nice outfit.
-\end_layout
-
-\begin_layout Subsection
-g-brief-de
-\end_layout
-
-\begin_layout Description
-Found: 
-\begin_inset Info
-type  textclass
-arg   g-brief-de
-\end_inset
-
-
-\end_layout
-
-\begin_layout Description
-CTAN: 
-\family typewriter
-macros/latex/contrib/g-brief/
-\end_layout
-
-\begin_layout Description
-Notes: The document class 
+ There is a template document
 \family sans
-g-brief-de
+ g-brief-en
 \family default
- is the same as the above 
+ with english labels and a template document
 \family sans
-g-brief-en
+ g-brief-de
 \family default
- only with german labels.
+ with german labels.
 \end_layout
 
 \begin_layout Subsection
diff --git a/lib/layouts/g-brief.layout b/lib/layouts/g-brief.layout
index 222a992..8c3e8bb 100644
--- a/lib/layouts/g-brief.layout
+++ b/lib/layouts/g-brief.layout
@@ -1,5 +1,5 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[g-brief,europs.sty]{letter (g-brief)}
+#  \DeclareLaTeXClass[g-brief]{letter (g-brief)}
 # Letter textclass definition file.
 # Author : Thomas Hartkens tho...@hartkens.de
 
diff --git a/lib/layouts/g-brief2.layout b/lib/layouts/g-brief2.layout
index ff0ec6a..fa2b547 100644
--- a/lib/layouts/g-brief2.layout
+++ b/lib/layouts/g-brief2.layout
@@ -1,5 +1,5 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[g-brief2,europs.sty]{letter (g-brief2)}
+#  \DeclareLaTeXClass[g-brief2]{letter (g-brief2)}
 # Letter textclass definition file.
 # Author : Felix Kurth l...@fkurth.de based on work from
 #  Thomas Hartkens tho...@hartkens.de
diff --git a/lib/templates/g-brief2.lyx b/lib/templates/g-brief2.lyx
index 91c2911..e2da08c 100644
--- a/lib/templates/g-brief2.lyx
+++ b/lib/templates/g-brief2.lyx
@@ -72,7 +72,139 @@
 status open
 
 \begin_layout Plain Layout
-Note also the document preamble settings.
+Commercial letter with a nice outfit
+\end_layout
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\begin_layout Plain Layout
+Languages: 
+\begin_inset Newline newline
+\end_inset
+
+English
+\begin_inset space \quad{}
+\end_inset
+
+(write 
+\begin_inset Quotes eld
+\end_inset
+
+english
+\begin_inset Quotes erd
+\end_inset
+
+ into Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Document Class\SpecialChar \menuseparator
+Custom)
+\begin_inset Newline newline
+\end_inset
+
+English (USA)
+\begin_inset Newline newline
+\end_inset
+
+German
+\begin_inset Newline newline
+\end_inset
+
+German (old spelling)
+\end_layout
+
+\begin_layout Plain Layout
+Lines / markers: 
+\begin_inset Newline newline
+\end_inset
+
+See document preamble settings
+\end_layout
+
+\begin_layout Plain Layout
+Symbols (if package 
+\begin_inset Quotes eld
+\end_inset
+
+marvosym
+\begin_inset Quotes erd
+\end_inset
+
+ installed):
+\begin_inset Newline newline
+\end_inset
+
+

Re: Templates g-brief, g-brief2

2012-09-20 Thread Max Funk
My previous post did apparently not arrive. I repeat it with only the 
patch file attached.



This is a patch of an issue with the g-brief-de.lyx, g-brief-en.lyx and
g-brief2.lyx templates.

I fixed the following Problems:
- The g-brief templates require latex package europs. However, since
g-brief Version 4.0, this dependency has been removed in latex, so it
can be removed in lyx. (Package europs is not contained in the texlive
and miktex distributions)
- The file latexconfig.lyx searches for the classes g-brief-de.cls and
g-brief-en.cls. These do not exist, instead there is only g-brief.cls.
- The template g-brief2.lyx has a more detailed description for the
document settings in the beginning.

The previous discussion of the issue is on lyx-doc.

20.09.2012 21:03, Richard Heck:


Max, could you produce corrected versions of these files and post them
here?



I attach the unified diff from tortoise GIT against 2.0.x.


Actually, this should all be moved to lyx-devel, so post them there
including some of this explanation. That'll get the attention of the
right people. This list is more for discussion of LyX's documentation.



Sorry, I thought the template issues would belong to lyx-doc...

Max








 lib/doc/LaTeXConfig.lyx |  39 +++--
 lib/layouts/g-brief.layout  |   2 +-
 lib/layouts/g-brief2.layout |   2 +-
 lib/templates/g-brief2.lyx  | 134 +++-
 4 files changed, 143 insertions(+), 34 deletions(-)

diff --git a/lib/doc/LaTeXConfig.lyx b/lib/doc/LaTeXConfig.lyx
index 0112c30..5db9ad9 100644
--- a/lib/doc/LaTeXConfig.lyx
+++ b/lib/doc/LaTeXConfig.lyx
@@ -1865,14 +1865,14 @@ seminar
 \end_layout
 
 \begin_layout Subsection
-g-brief-en
+g-brief
 \end_layout
 
 \begin_layout Description
 Found: 
 \begin_inset Info
 type  "textclass"
-arg   "g-brief-en"
+arg   "g-brief"
 \end_inset
 
 
@@ -1887,41 +1887,18 @@ macros/latex/contrib/g-brief/
 \begin_layout Description
 Notes: The document class 
 \family sans
-g-brief-en
+g-brief
 \family default
  can be used to type commercial letters with a nice outfit.
-\end_layout
-
-\begin_layout Subsection
-g-brief-de
-\end_layout
-
-\begin_layout Description
-Found: 
-\begin_inset Info
-type  "textclass"
-arg   "g-brief-de"
-\end_inset
-
-
-\end_layout
-
-\begin_layout Description
-CTAN: 
-\family typewriter
-macros/latex/contrib/g-brief/
-\end_layout
-
-\begin_layout Description
-Notes: The document class 
+ There is a template document
 \family sans
-g-brief-de
+ g-brief-en
 \family default
- is the same as the above 
+ with english labels and a template document
 \family sans
-g-brief-en
+ g-brief-de
 \family default
- only with german labels.
+ with german labels.
 \end_layout
 
 \begin_layout Subsection
diff --git a/lib/layouts/g-brief.layout b/lib/layouts/g-brief.layout
index 222a992..8c3e8bb 100644
--- a/lib/layouts/g-brief.layout
+++ b/lib/layouts/g-brief.layout
@@ -1,5 +1,5 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[g-brief,europs.sty]{letter (g-brief)}
+#  \DeclareLaTeXClass[g-brief]{letter (g-brief)}
 # Letter textclass definition file.
 # Author : Thomas Hartkens 
 
diff --git a/lib/layouts/g-brief2.layout b/lib/layouts/g-brief2.layout
index ff0ec6a..fa2b547 100644
--- a/lib/layouts/g-brief2.layout
+++ b/lib/layouts/g-brief2.layout
@@ -1,5 +1,5 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[g-brief2,europs.sty]{letter (g-brief2)}
+#  \DeclareLaTeXClass[g-brief2]{letter (g-brief2)}
 # Letter textclass definition file.
 # Author : Felix Kurth  based on work from
 #  Thomas Hartkens 
diff --git a/lib/templates/g-brief2.lyx b/lib/templates/g-brief2.lyx
index 91c2911..e2da08c 100644
--- a/lib/templates/g-brief2.lyx
+++ b/lib/templates/g-brief2.lyx
@@ -72,7 +72,139 @@
 status open
 
 \begin_layout Plain Layout
-Note also the document preamble settings.
+Commercial letter with a nice outfit
+\end_layout
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\begin_layout Plain Layout
+Languages: 
+\begin_inset Newline newline
+\end_inset
+
+English
+\begin_inset space \quad{}
+\end_inset
+
+(write 
+\begin_inset Quotes eld
+\end_inset
+
+english
+\begin_inset Quotes erd
+\end_inset
+
+ into Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Document Class\SpecialChar \menuseparator
+Custom)
+\begin_inset Newline newline
+\end_inset
+
+English (USA)
+\begin_inset Newline newline
+\end_inset
+
+German
+\begin_inset Newline newline
+\end_inset
+
+German (old spelling)
+\end_layout
+
+\begin_layout Plain Layout
+Lines / markers: 
+\begin_inset Newline newline
+\end_inset
+
+See document preamble settings
+\end_layout
+
+\begin_layout Plain Layout
+Symbols (if package 
+\begin_inset Quotes eld
+\end_inset
+
+marvosym
+\begin_inset Quotes erd
+\end_inset
+
+ installed):
+\begin_inset Newline newline

Re: Feature request: Latex file in Lyx archive

2012-05-21 Thread Max Funk

Thanks for help;

If this feature will be implemented, my request is already done.

It's not the same as my suggestion (put a latex file into every lyx 
archive, in the format used for the compilation) but certainly also a 
good way.


Regards, Max



On 11.05.2012 02:37,  Tommaso Cucinotta wrote:

On 09/05/12 14:09, Max Funk wrote:

Hallo,

I wanted to suggest, that it would be great if Lyx would store not
only the lyx file and the graphics in an exported lyx archive (tar.gz
or zip), but also the created latex file.

In my understanding, one of the major functions of the archive is
to give away the document to another user or to a journal in a
single file. If this other user does not prefer lyx, he / she can
optionally use also the latex source after unzip.

Also, if the exported archive is used as backup, the exported
latex file would be useful in case of any long-time compatibility
issues.


Hi,

in the upcoming releases of LyX, you can export to latex using a 
custom destination, e.g., from the command-line


lyx -E [--export-to] fmt filename
  fmt is the export format of choice (see --export),
  and filename is the destination filename.

This causes the export of all the needed dependency files. So, if you 
export to latex, then you'll get in the same folder also all the 
images, .bib, etc After the export, all you need to do is to 
compress the folder with your favourite tool and send it to whoever 
you wish.


I hope this helps,

Tommaso




Re: Feature request: Latex file in Lyx archive

2012-05-21 Thread Max Funk

Thanks for help;

If this feature will be implemented, my request is already done.

It's not the same as my suggestion (put a latex file into every lyx 
archive, in the format used for the compilation) but certainly also a 
good way.


Regards, Max



On 11.05.2012 02:37,  Tommaso Cucinotta wrote:

On 09/05/12 14:09, Max Funk wrote:

Hallo,

I wanted to suggest, that it would be great if Lyx would store not
only the lyx file and the graphics in an exported lyx archive (tar.gz
or zip), but also the created latex file.

In my understanding, one of the major functions of the archive is
to give away the document to another user or to a journal in a
single file. If this other user does not prefer lyx, he / she can
optionally use also the latex source after unzip.

Also, if the exported archive is used as backup, the exported
latex file would be useful in case of any long-time compatibility
issues.


Hi,

in the upcoming releases of LyX, you can export to latex using a 
custom destination, e.g., from the command-line


lyx -E [--export-to] fmt filename
  fmt is the export format of choice (see --export),
  and filename is the destination filename.

This causes the export of all the needed dependency files. So, if you 
export to latex, then you'll get in the same folder also all the 
images, .bib, etc After the export, all you need to do is to 
compress the folder with your favourite tool and send it to whoever 
you wish.


I hope this helps,

Tommaso




Feature request: Latex file in Lyx archive

2012-05-09 Thread Max Funk

Hallo,

I wanted to suggest, that it would be great if Lyx would store not
only the lyx file and the graphics in an exported lyx archive (tar.gz
or zip), but also the created latex file.

In my understanding, one of the major functions of the archive is
to give away the document to another user or to a journal in a
single file. If this other user does not prefer lyx, he / she can
optionally use also the latex source after unzip.

Also, if the exported archive is used as backup, the exported
latex file would be useful in case of any long-time compatibility
issues.

Regards, mf




Feature request: Latex file in Lyx archive

2012-05-09 Thread Max Funk

Hallo,

I wanted to suggest, that it would be great if Lyx would store not
only the lyx file and the graphics in an exported lyx archive (tar.gz
or zip), but also the created latex file.

In my understanding, one of the major functions of the archive is
to give away the document to another user or to a journal in a
single file. If this other user does not prefer lyx, he / she can
optionally use also the latex source after unzip.

Also, if the exported archive is used as backup, the exported
latex file would be useful in case of any long-time compatibility
issues.

Regards, mf




GPL

2011-05-28 Thread Max Funk
 mf, can you send a quick note to the devel list indicating that you
license your contributions 

 to LyX under GPL v2 or any later varsion?

 

Hallo,

 

I hereby grant, that if I can make improvements to the LyX program, 

you can use them for for free according to the GPL license 

 

Regards,

 

Max Funk



GPL

2011-05-28 Thread Max Funk
> mf, can you send a quick note to the devel list indicating that you
license your contributions 

> to LyX under GPL v2 or any later varsion?

 

Hallo,

 

I hereby grant, that if I can make improvements to the LyX program, 

you can use them for for free according to the GPL license 

 

Regards,

 

Max Funk



bug in htlatex windows settings

2011-01-07 Thread Max Funk
Hallo,

 

I wanted to report a bug in Lyx 1.6.8 for Windows: 

 

The default setting of htlatex in the converter option (Latex - HTML,WORD
must be

 

   htlatex $$i html,word symbol/! -cvalidate

 

instead of the current

 

   htlatex $$i 'html,word' 'symbol/!' '-cvalidate'

 

otherwise htlatex crashes (Windows needs double quotes)

 

 

As a further remark: In section 4.3.3. of the extended user guide, it could
be mentioned, that

in current Miktex, the batch file htlatex.bat has to be edited, so that the
paths given in the last two 

lines point to the right files / directories. Otherwise the html,word export
will not work in windows

 

 

Regards

 

 

 



bug in htlatex windows settings

2011-01-07 Thread Max Funk
Hallo,

 

I wanted to report a bug in Lyx 1.6.8 for Windows: 

 

The default setting of htlatex in the converter option (Latex -> HTML,WORD
must be

 

   htlatex $$i "html,word" "symbol/!" "-cvalidate"

 

instead of the current

 

   htlatex $$i 'html,word' 'symbol/!' '-cvalidate'

 

otherwise htlatex crashes (Windows needs double quotes)

 

 

As a further remark: In section 4.3.3. of the extended user guide, it could
be mentioned, that

in current Miktex, the batch file htlatex.bat has to be edited, so that the
paths given in the last two 

lines point to the right files / directories. Otherwise the html,word export
will not work in windows

 

 

Regards