Re: Local Layouts - Additional Features manual?

2012-01-26 Thread Liviu Andronic
On Thu, Jan 12, 2012 at 8:07 AM, Andrew Parsloe apars...@clear.net.nz wrote:
 Dear LyX documenters,

 I recently needed to turn a big LyX document into a number of Word documents
 (one for each chapter). Because the export to OpenOffice format no longer
 worked on my system (I can't find oolatex in a new install of MiKTeX 2.9),
 and time was short, I resorted to pasting from the pdf to Word. Using

If the document isn't sensitive, you could always try your luck with
one of teh free on-line PDF to Word conversion services. [1] Often the
results are surprisingly accurate.

Regards
Liviu

[1] 
http://alternativeto.net/software/free-pdf-to-word-converter-online/?platform=online
[2] https://duckduckgo.com/?q=pdf+to+word



 non-default fonts in LyX this meant that all bolding (section headings) and
 emphasis (as italic) was preserved. The big problem in pasting from a pdf is
 that each line in the pdf is treated by Word as a separate paragraph. I
 worked around that by noting that the final line of most paragraphs was
 shorter than the lines in the paragraph body, but there were enough
 exceptions to make the process only semi-automatic. Thinking about this
 later, it would have helped if the first word or letter of each paragraph
 was a different colour -- say, red -- and I could have searched for that.
 Colour, like bolding and emphasis, is preserved on pasting into Word (at
 least for non-default fonts). (The alternative of putting a special symbol
 at the start of each paragraph disturbs line length, and hence, possibly,
 pagination.)

 After much huffing and puffing I managed to create a module that did this
 colouring most of the time, but it was ugly. Richard Heck suggested using
 Local Layouts instead, and gave some helpful hints. The local layout below
 does exactly what I want, colouring the first letter of a Standard style
 paragraph red.

 Many users might find it valuable to have some of these tricks, special
 features, quirky variations, perhaps like the Firstred Local Layout,
 collected in one place. Looking at the LyX documents, the Additional
 Features manual, in Chapter 8, Special Features, is getting close to this
 territory (strange paragraph shapes, columns within columns). A listing of
 selected Local Layouts with a paragraph of description (see the example)
 seems fully in keeping with this chapter. I'm sure many of you will have
 little LyX tricks that you handle in this way and which should be given an
 airing.

 A reader/user could simply copy and paste the code from the manual into the
 Local Layout pane, and use it as is, or experiment or adjust further. For
 someone who isn't constantly immersed in TeX or Latex code, seeing other
 people's efforts and adjusting them is a good and satisfying way of
 achieving a desired result.

 Andrew Parsloe

 Local Layouts
 *

 Name: Firstred

 Action: Colours the first letter of every Standard paragraph red.

 Purpose: For pasting from a pdf into Word etc. Provided non-default fonts
 are used in LyX, character formatting (bold, emphasis, colour) is preserved
 when pasted. However, each line of the pdf is treated by Word as a separate
 paragraph. The red letter shows where each *real* paragraph begins.

 Format 35

 AddToPreamble
    \usepackage{color}
    \def\firstred#1{\textcolor{red}#1}
 EndPreamble

 Style Standard
   LatexName firstred
   LatexType command
 End



-- 
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: Local Layouts -> Additional Features manual?

2012-01-26 Thread Liviu Andronic
On Thu, Jan 12, 2012 at 8:07 AM, Andrew Parsloe  wrote:
> Dear LyX documenters,
>
> I recently needed to turn a big LyX document into a number of Word documents
> (one for each chapter). Because the export to OpenOffice format no longer
> worked on my system (I can't find oolatex in a new install of MiKTeX 2.9),
> and time was short, I resorted to pasting from the pdf to Word. Using
>
If the document isn't sensitive, you could always try your luck with
one of teh free on-line PDF to Word conversion services. [1] Often the
results are surprisingly accurate.

Regards
Liviu

[1] 
http://alternativeto.net/software/free-pdf-to-word-converter-online/?platform=online
[2] https://duckduckgo.com/?q=pdf+to+word



> non-default fonts in LyX this meant that all bolding (section headings) and
> emphasis (as italic) was preserved. The big problem in pasting from a pdf is
> that each line in the pdf is treated by Word as a separate paragraph. I
> worked around that by noting that the final line of most paragraphs was
> shorter than the lines in the paragraph body, but there were enough
> exceptions to make the process only semi-automatic. Thinking about this
> later, it would have helped if the first word or letter of each paragraph
> was a different colour -- say, red -- and I could have searched for that.
> Colour, like bolding and emphasis, is preserved on pasting into Word (at
> least for non-default fonts). (The alternative of putting a special symbol
> at the start of each paragraph disturbs line length, and hence, possibly,
> pagination.)
>
> After much huffing and puffing I managed to create a module that did this
> colouring most of the time, but it was ugly. Richard Heck suggested using
> Local Layouts instead, and gave some helpful hints. The local layout below
> does exactly what I want, colouring the first letter of a Standard style
> paragraph red.
>
> Many users might find it valuable to have some of these "tricks", special
> features, quirky variations, perhaps like the Firstred Local Layout,
> collected in one place. Looking at the LyX documents, the Additional
> Features manual, in Chapter 8, Special Features, is getting close to this
> territory (strange paragraph shapes, columns within columns). A listing of
> selected Local Layouts with a paragraph of description (see the example)
> seems fully in keeping with this chapter. I'm sure many of you will have
> little LyX tricks that you handle in this way and which should be given an
> airing.
>
> A reader/user could simply copy and paste the code from the manual into the
> Local Layout pane, and use it as is, or experiment or adjust further. For
> someone who isn't constantly immersed in TeX or Latex code, seeing other
> people's efforts and adjusting them is a good and satisfying way of
> achieving a desired result.
>
> Andrew Parsloe
>
> Local Layouts
> *
>
> Name: Firstred
>
> Action: Colours the first letter of every Standard paragraph red.
>
> Purpose: For pasting from a pdf into Word etc. Provided non-default fonts
> are used in LyX, character formatting (bold, emphasis, colour) is preserved
> when pasted. However, each line of the pdf is treated by Word as a separate
> paragraph. The red letter shows where each *real* paragraph begins.
>
> Format 35
>
> AddToPreamble
>    \usepackage{color}
>    \def\firstred#1{\textcolor{red}#1}
> EndPreamble
>
> Style Standard
>   LatexName firstred
>   LatexType command
> End



-- 
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: Local Layouts - Additional Features manual?

2012-01-12 Thread John R Hudson
On Thursday 12 January 2012 07:07:02 Andrew Parsloe wrote:
 Dear LyX documenters,
 
 I recently needed to turn a big LyX document into a number of Word
 documents (one for each chapter). Because the export to OpenOffice
 format no longer worked on my system (I can't find oolatex in a new
 install of MiKTeX 2.9), and time was short, I resorted to pasting from
 the pdf to Word. Using non-default fonts in LyX this meant that all
 bolding (section headings) and emphasis (as italic) was preserved. The
 big problem in pasting from a pdf is that each line in the pdf is
 treated by Word as a separate paragraph. I worked around that by noting
 that the final line of most paragraphs was shorter than the lines in the
 paragraph body, but there were enough exceptions to make the process
 only semi-automatic. Thinking about this later, it would have helped if
 the first word or letter of each paragraph was a different colour --
 say, red -- and I could have searched for that. Colour, like bolding and
 emphasis, is preserved on pasting into Word (at least for non-default
 fonts). (The alternative of putting a special symbol at the start of
 each paragraph disturbs line length, and hence, possibly, pagination.)
 
 After much huffing and puffing I managed to create a module that did
 this colouring most of the time, but it was ugly. Richard Heck suggested
 using Local Layouts instead, and gave some helpful hints. The local
 layout below does exactly what I want, colouring the first letter of a
 Standard style paragraph red.
 
 Many users might find it valuable to have some of these tricks,
 special features, quirky variations, perhaps like the Firstred Local
 Layout, collected in one place. Looking at the LyX documents, the
 Additional Features manual, in Chapter 8, Special Features, is getting
 close to this territory (strange paragraph shapes, columns within
 columns). A listing of selected Local Layouts with a paragraph of
 description (see the example) seems fully in keeping with this chapter.
 I'm sure many of you will have little LyX tricks that you handle in this
 way and which should be given an airing.
 
 A reader/user could simply copy and paste the code from the manual into
 the Local Layout pane, and use it as is, or experiment or adjust
 further. For someone who isn't constantly immersed in TeX or Latex code,
 seeing other people's efforts and adjusting them is a good and
 satisfying way of achieving a desired result.
 
 Andrew Parsloe
 
 Local Layouts
 *
 
 Name: Firstred
 
 Action: Colours the first letter of every Standard paragraph red.
 
 Purpose: For pasting from a pdf into Word etc. Provided non-default
 fonts are used in LyX, character formatting (bold, emphasis, colour) is
 preserved when pasted. However, each line of the pdf is treated by Word
 as a separate paragraph. The red letter shows where each *real*
 paragraph begins.
 
 Format 35
 
 AddToPreamble
  \usepackage{color}
  \def\firstred#1{\textcolor{red}#1}
 EndPreamble
 
 Style Standard
 LatexName firstred
 LatexType command
 End
Hi Andrew

Thanks for sharing your rather elegant solution. I have in fact found an 
alternative way round the problem you describe, namely to export to HTML. 
Sometimes this results in some unwanted material at the start of the HTML file 
but simply copying and pasting the contents of the HTML file into an Office 
document normally produces a satisfactory docuemnt.

I have found a small number of situations where further editing is required 
but for most documents little further needs to be done.

I am assuming that in due course there will be a straightforward way to export 
to odt.

John
--


Re: Local Layouts - Additional Features manual?

2012-01-12 Thread Jean-Pierre Chrétien

Le 12/01/2012 08:07, Andrew Parsloe a écrit :

Dear LyX documenters,

I recently needed to turn a big LyX document into a number of Word
documents (one for each chapter). Because the export to OpenOffice
format no longer worked on my system (I can't find oolatex in a new
install of MiKTeX 2.9), and time was short, I resorted to pasting from
the pdf to Word.


Up to my own experience, I found latex2rtf
http://latex2rtf.sourceforge.net/
to be the best solution to turn à LyX document into office stuff (open the 
result in Word, not in OpenOffice).
Math constructs are correctly translated (but alas cannot be edited, but for 
simple ones).


--
Jean-Pierre


Re: Local Layouts -> Additional Features manual?

2012-01-12 Thread John R Hudson
On Thursday 12 January 2012 07:07:02 Andrew Parsloe wrote:
> Dear LyX documenters,
> 
> I recently needed to turn a big LyX document into a number of Word
> documents (one for each chapter). Because the export to OpenOffice
> format no longer worked on my system (I can't find oolatex in a new
> install of MiKTeX 2.9), and time was short, I resorted to pasting from
> the pdf to Word. Using non-default fonts in LyX this meant that all
> bolding (section headings) and emphasis (as italic) was preserved. The
> big problem in pasting from a pdf is that each line in the pdf is
> treated by Word as a separate paragraph. I worked around that by noting
> that the final line of most paragraphs was shorter than the lines in the
> paragraph body, but there were enough exceptions to make the process
> only semi-automatic. Thinking about this later, it would have helped if
> the first word or letter of each paragraph was a different colour --
> say, red -- and I could have searched for that. Colour, like bolding and
> emphasis, is preserved on pasting into Word (at least for non-default
> fonts). (The alternative of putting a special symbol at the start of
> each paragraph disturbs line length, and hence, possibly, pagination.)
> 
> After much huffing and puffing I managed to create a module that did
> this colouring most of the time, but it was ugly. Richard Heck suggested
> using Local Layouts instead, and gave some helpful hints. The local
> layout below does exactly what I want, colouring the first letter of a
> Standard style paragraph red.
> 
> Many users might find it valuable to have some of these "tricks",
> special features, quirky variations, perhaps like the Firstred Local
> Layout, collected in one place. Looking at the LyX documents, the
> Additional Features manual, in Chapter 8, Special Features, is getting
> close to this territory (strange paragraph shapes, columns within
> columns). A listing of selected Local Layouts with a paragraph of
> description (see the example) seems fully in keeping with this chapter.
> I'm sure many of you will have little LyX tricks that you handle in this
> way and which should be given an airing.
> 
> A reader/user could simply copy and paste the code from the manual into
> the Local Layout pane, and use it as is, or experiment or adjust
> further. For someone who isn't constantly immersed in TeX or Latex code,
> seeing other people's efforts and adjusting them is a good and
> satisfying way of achieving a desired result.
> 
> Andrew Parsloe
> 
> Local Layouts
> *
> 
> Name: Firstred
> 
> Action: Colours the first letter of every Standard paragraph red.
> 
> Purpose: For pasting from a pdf into Word etc. Provided non-default
> fonts are used in LyX, character formatting (bold, emphasis, colour) is
> preserved when pasted. However, each line of the pdf is treated by Word
> as a separate paragraph. The red letter shows where each *real*
> paragraph begins.
> 
> Format 35
> 
> AddToPreamble
>  \usepackage{color}
>  \def\firstred#1{\textcolor{red}#1}
> EndPreamble
> 
> Style Standard
> LatexName firstred
> LatexType command
> End
Hi Andrew

Thanks for sharing your rather elegant solution. I have in fact found an 
alternative way round the problem you describe, namely to export to HTML. 
Sometimes this results in some unwanted material at the start of the HTML file 
but simply copying and pasting the contents of the HTML file into an Office 
document normally produces a satisfactory docuemnt.

I have found a small number of situations where further editing is required 
but for most documents little further needs to be done.

I am assuming that in due course there will be a straightforward way to export 
to odt.

John
--


Re: Local Layouts -> Additional Features manual?

2012-01-12 Thread Jean-Pierre Chrétien

Le 12/01/2012 08:07, Andrew Parsloe a écrit :

Dear LyX documenters,

I recently needed to turn a big LyX document into a number of Word
documents (one for each chapter). Because the export to OpenOffice
format no longer worked on my system (I can't find oolatex in a new
install of MiKTeX 2.9), and time was short, I resorted to pasting from
the pdf to Word.


Up to my own experience, I found latex2rtf

to be the best solution to turn à LyX document into office stuff (open the 
result in Word, not in OpenOffice).
Math constructs are correctly translated (but alas cannot be edited, but for 
simple ones).


--
Jean-Pierre


Local Layouts - Additional Features manual?

2012-01-11 Thread Andrew Parsloe

Dear LyX documenters,

I recently needed to turn a big LyX document into a number of Word 
documents (one for each chapter). Because the export to OpenOffice 
format no longer worked on my system (I can't find oolatex in a new 
install of MiKTeX 2.9), and time was short, I resorted to pasting from 
the pdf to Word. Using non-default fonts in LyX this meant that all 
bolding (section headings) and emphasis (as italic) was preserved. The 
big problem in pasting from a pdf is that each line in the pdf is 
treated by Word as a separate paragraph. I worked around that by noting 
that the final line of most paragraphs was shorter than the lines in the 
paragraph body, but there were enough exceptions to make the process 
only semi-automatic. Thinking about this later, it would have helped if 
the first word or letter of each paragraph was a different colour -- 
say, red -- and I could have searched for that. Colour, like bolding and 
emphasis, is preserved on pasting into Word (at least for non-default 
fonts). (The alternative of putting a special symbol at the start of 
each paragraph disturbs line length, and hence, possibly, pagination.)


After much huffing and puffing I managed to create a module that did 
this colouring most of the time, but it was ugly. Richard Heck suggested 
using Local Layouts instead, and gave some helpful hints. The local 
layout below does exactly what I want, colouring the first letter of a 
Standard style paragraph red.


Many users might find it valuable to have some of these tricks, 
special features, quirky variations, perhaps like the Firstred Local 
Layout, collected in one place. Looking at the LyX documents, the 
Additional Features manual, in Chapter 8, Special Features, is getting 
close to this territory (strange paragraph shapes, columns within 
columns). A listing of selected Local Layouts with a paragraph of 
description (see the example) seems fully in keeping with this chapter. 
I'm sure many of you will have little LyX tricks that you handle in this 
way and which should be given an airing.


A reader/user could simply copy and paste the code from the manual into 
the Local Layout pane, and use it as is, or experiment or adjust 
further. For someone who isn't constantly immersed in TeX or Latex code, 
seeing other people's efforts and adjusting them is a good and 
satisfying way of achieving a desired result.


Andrew Parsloe

Local Layouts
*

Name: Firstred

Action: Colours the first letter of every Standard paragraph red.

Purpose: For pasting from a pdf into Word etc. Provided non-default 
fonts are used in LyX, character formatting (bold, emphasis, colour) is 
preserved when pasted. However, each line of the pdf is treated by Word 
as a separate paragraph. The red letter shows where each *real* 
paragraph begins.


Format 35

AddToPreamble
\usepackage{color}
\def\firstred#1{\textcolor{red}#1}
EndPreamble

Style Standard
   LatexName firstred
   LatexType command
End


Local Layouts -> Additional Features manual?

2012-01-11 Thread Andrew Parsloe

Dear LyX documenters,

I recently needed to turn a big LyX document into a number of Word 
documents (one for each chapter). Because the export to OpenOffice 
format no longer worked on my system (I can't find oolatex in a new 
install of MiKTeX 2.9), and time was short, I resorted to pasting from 
the pdf to Word. Using non-default fonts in LyX this meant that all 
bolding (section headings) and emphasis (as italic) was preserved. The 
big problem in pasting from a pdf is that each line in the pdf is 
treated by Word as a separate paragraph. I worked around that by noting 
that the final line of most paragraphs was shorter than the lines in the 
paragraph body, but there were enough exceptions to make the process 
only semi-automatic. Thinking about this later, it would have helped if 
the first word or letter of each paragraph was a different colour -- 
say, red -- and I could have searched for that. Colour, like bolding and 
emphasis, is preserved on pasting into Word (at least for non-default 
fonts). (The alternative of putting a special symbol at the start of 
each paragraph disturbs line length, and hence, possibly, pagination.)


After much huffing and puffing I managed to create a module that did 
this colouring most of the time, but it was ugly. Richard Heck suggested 
using Local Layouts instead, and gave some helpful hints. The local 
layout below does exactly what I want, colouring the first letter of a 
Standard style paragraph red.


Many users might find it valuable to have some of these "tricks", 
special features, quirky variations, perhaps like the Firstred Local 
Layout, collected in one place. Looking at the LyX documents, the 
Additional Features manual, in Chapter 8, Special Features, is getting 
close to this territory (strange paragraph shapes, columns within 
columns). A listing of selected Local Layouts with a paragraph of 
description (see the example) seems fully in keeping with this chapter. 
I'm sure many of you will have little LyX tricks that you handle in this 
way and which should be given an airing.


A reader/user could simply copy and paste the code from the manual into 
the Local Layout pane, and use it as is, or experiment or adjust 
further. For someone who isn't constantly immersed in TeX or Latex code, 
seeing other people's efforts and adjusting them is a good and 
satisfying way of achieving a desired result.


Andrew Parsloe

Local Layouts
*

Name: Firstred

Action: Colours the first letter of every Standard paragraph red.

Purpose: For pasting from a pdf into Word etc. Provided non-default 
fonts are used in LyX, character formatting (bold, emphasis, colour) is 
preserved when pasted. However, each line of the pdf is treated by Word 
as a separate paragraph. The red letter shows where each *real* 
paragraph begins.


Format 35

AddToPreamble
\usepackage{color}
\def\firstred#1{\textcolor{red}#1}
EndPreamble

Style Standard
   LatexName firstred
   LatexType command
End