Re: Does LyX have an xhtml *import*?

2019-06-19 Thread Dr Eberhard Lisse
I even have a workflow for taking a Mind Map and making a Beamer 
presentation in LyX :-)-O

I have never tried to convert HTML or XHTML, but this should be possible in a
way not requiring manual editing...

el

On 18/06/2019 17:23, Richard Kimberly Heck wrote:
> On 6/18/19 11:11 AM, Dr Eberhard Lisse wrote:
>> What I am saying is that there are some mentions on google about
>> converting XHTML to Markdown.  
>>
>> Pandoc can convert Markdown into LaTeX.
>>
>> If you are careful in designing the template Pandoc uses, the LaTeX
>> converts with minimal fuss to LyX.
> 
> Pandoc can convert HTML directly to LaTeX, so no need for an
> intermediate step to Markdown. Cleaning up the LaTeX output is probably
> a good idea, though. I had to do this years ago when converting
> WordPerfect to LaTeX.
> 
> Riki
> 
> 
> 




Re: Does LyX have an xhtml *import*?

2019-06-18 Thread Richard Kimberly Heck
On 6/18/19 11:11 AM, Dr Eberhard Lisse wrote:
> What I am saying is that there are some mentions on google about
> converting XHTML to Markdown.  
>
> Pandoc can convert Markdown into LaTeX.
>
> If you are careful in designing the template Pandoc uses, the LaTeX
> converts with minimal fuss to LyX.

Pandoc can convert HTML directly to LaTeX, so no need for an
intermediate step to Markdown. Cleaning up the LaTeX output is probably
a good idea, though. I had to do this years ago when converting
WordPerfect to LaTeX.

Riki




Re: Does LyX have an xhtml *import*?

2019-06-18 Thread Dr Eberhard Lisse
What I am saying is that there are some mentions on google about
converting XHTML to Markdown.  

Pandoc can convert Markdown into LaTeX.

If you are careful in designing the template Pandoc uses, the LaTeX
converts with minimal fuss to LyX.

Minimal fuss means something like 

perl -i -p -e 's/\\tightlist//g;s/\\\w*{verbatim}//g' f.tex
tex2lyx f.tex

el

On 17/06/2019 23:27, Steve Litt wrote:
> On Mon, 17 Jun 2019 15:14:56 +0200
> Dr Eberhard Lisse  wrote:
> 
>> There are some mentions on google about converting XHTML to Markdown.
>> That you can get into any form of LyXable TeX with Pandoc.
>>
>> el
> 
> Hi el,
> 
> I want to make sure I understand you...
> 
> Are you saying that any XHTML style I create can be represented, as a
> style and not as an appearance, in Markdown? How?
>  
> SteveT
> 
> Steve Litt 
> June 2019 featured book: Thriving in Tough Times
> http://www.troubleshooters.com/thrive
> 




Re: Does LyX have an xhtml *import*?

2019-06-17 Thread Steve Litt
On Mon, 17 Jun 2019 15:14:56 +0200
Dr Eberhard Lisse  wrote:

> There are some mentions on google about converting XHTML to Markdown.
> That you can get into any form of LyXable TeX with Pandoc.
> 
> el

Hi el,

I want to make sure I understand you...

Are you saying that any XHTML style I create can be represented, as a
style and not as an appearance, in Markdown? How?
 
SteveT

Steve Litt 
June 2019 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive


Re: Does LyX have an xhtml *import*?

2019-06-17 Thread Dr Eberhard Lisse
There are some mentions on google about converting XHTML to Markdown.
That you can get into any form of LyXable TeX with Pandoc.

el


On 17/06/2019 12:54, Pavel Sanda wrote:
> On Sat, Jun 15, 2019 at 02:36:27AM -0400, Steve Litt wrote:
>> Hi all,
>>
>> Does LyX have an xhtml import? If so, does it keep styles as styles, or
>> does it try to apply appearances to those styles on the way in?
> 
> No it does not. The best you could probably get is either to find
> xhtml->tex->lyx conversion route or open xhtml in browser/editor
> and try copy/paste into LyX window.
> 
> Pavel
> 




Re: Does LyX have an xhtml *import*?

2019-06-17 Thread Pavel Sanda
On Sat, Jun 15, 2019 at 02:36:27AM -0400, Steve Litt wrote:
> Hi all,
> 
> Does LyX have an xhtml import? If so, does it keep styles as styles, or
> does it try to apply appearances to those styles on the way in?

No it does not. The best you could probably get is either to find
xhtml->tex->lyx conversion route or open xhtml in browser/editor
and try copy/paste into LyX window.

Pavel


Does LyX have an xhtml *import*?

2019-06-15 Thread Steve Litt
Hi all,

Does LyX have an xhtml import? If so, does it keep styles as styles, or
does it try to apply appearances to those styles on the way in?

Thanks,

SteveT

Steve Litt 
June 2019 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive