Re: best route for org-mode --> LyX

2021-02-08 Thread Dr Eberhard W Lisse
If org-mode can produce LaTeX which tex2lyx can import easily then I
would not go the pandoc route. Note-Taking should produce "predictable"
LaTeX so tex2lyx should get this done.

However, if not, pandoc is very configurable especially through the
template. I modified it extensively and still had to massage the
resulting LyX file a little with Perl (younglings will prefer Python
of course :-)-O) especially when creating beamer files.

BTW here is the link I was talking about

https://github.com/Wandmalfarbe/pandoc-latex-template

There was a pandoc project a while back which aimed at producing LyX
but I could never get that to work so I gave up.

greetings, el


On 2021-02-08 08:53 , Saša Janiška wrote:
> On Sun, 7 Feb 2021 19:43:41 +0100
> Jean-Marc Lasgouttes  wrote:
>
>> I know that org-mode can export to LaTeX. LyX can import that.
>> Assuming that you know how to export org-mode to latex by command
>> line, it would not be difficult to create an org-mode importer.
>
> I know that, but wonder if anything special should be considered?
>
> Do you believe that direct org-mode --> LaTeX would provide better
> results than going through Pandoc?
>
>
> Sincerely,
> Gour
>



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: best route for org-mode --> LyX

2021-02-08 Thread Jean-Marc Lasgouttes

Le 08/02/2021 à 07:53, Saša Janiška a écrit :

On Sun, 7 Feb 2021 19:43:41 +0100
Jean-Marc Lasgouttes  wrote:


I know that org-mode can export to LaTeX. LyX can import that.
Assuming that you know how to export org-mode to latex by command
line, it would not be difficult to create an org-mode importer.


I know that, but wonder if anything special should be considered?

Do you believe that direct org-mode --> LaTeX would provide better results than
going through Pandoc?


I know nothing about pandoc. I am just a naïve user of emavs/org-mode.

JMarc

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: best route for org-mode --> LyX

2021-02-07 Thread Saša Janiška
On Sun, 7 Feb 2021 19:42:04 +0200
Dr Eberhard W Lisse  wrote:

> Creating a template which exports LaTeX that translates 1-1 to LyX
> has been done and been discussed here recently.

OK, will take a look in the archive.


Sincerely,
Gour

-- 
As a strong wind sweeps away a boat on the water,
even one of the roaming senses on which the mind
focuses can carry away a man's intelligence.


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: best route for org-mode --> LyX

2021-02-07 Thread Saša Janiška
On Sun, 7 Feb 2021 19:43:41 +0100
Jean-Marc Lasgouttes  wrote:

> I know that org-mode can export to LaTeX. LyX can import that.
> Assuming that you know how to export org-mode to latex by command
> line, it would not be difficult to create an org-mode importer.

I know that, but wonder if anything special should be considered?

Do you believe that direct org-mode --> LaTeX would provide better results than
going through Pandoc?


Sincerely,
Gour

-- 
The senses, the mind and the intelligence are the sitting places
of this lust. Through them lust covers the real knowledge of the
living entity and bewilders him.


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: best route for org-mode --> LyX

2021-02-07 Thread Jean-Marc Lasgouttes

Le 06/02/2021 à 17:40, Saša Janiška a écrit :

Hello,

I'm about to start taking notees using org-roam (https://www.orgroam.com/) to
be used for articles/presentations along with the Bib(la)tex bibliography.

Considering that org-roam is depending on Emacs' org-mode, I wonder what would
be recommended way to utilize those notes and use them in LyX?


I know that org-mode can export to LaTeX. LyX can import that. Assuming 
that you know how to export org-mode to latex by command line, it would 
not be difficult to create an org-mode importer.


JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: best route for org-mode --> LyX

2021-02-07 Thread Dr Eberhard W Lisse
If you can get it read by pandoc you are halfway there


https://pandoc.org/org.html

Creating a template which exports LaTeX that translates 1-1 to LyX
has been done and been discussed here recently.

el


On 2021-02-06 18:40 , Saša Janiška wrote:
> Hello,
> 
> I'm about to start taking notees using org-roam (https://www.orgroam.com/) to
> be used for articles/presentations along with the Bib(la)tex bibliography.
> 
> Considering that org-roam is depending on Emacs' org-mode, I wonder what would
> be recommended way to utilize those notes and use them in LyX?
> 
> 
> Sincerely,
> Gour
> 


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: best route for org-mode --> LyX

2021-02-07 Thread Steve Litt
On Sat, 6 Feb 2021 17:40:25 +0100
Saša Janiška  wrote:

> Hello,
> 
> I'm about to start taking notees using org-roam
> (https://www.orgroam.com/) to be used for articles/presentations
> along with the Bib(la)tex bibliography.
> 
> Considering that org-roam is depending on Emacs' org-mode, I wonder
> what would be recommended way to utilize those notes and use them in
> LyX?

I can't answer for org-mode, but I can answer it for VimOutliner, which
uses a simple tab indented outline as its native format, plus any line
prefaced with a colon and space is body text.

In the case of VimOutliner, you make a program to count tabs, use the
tab count to select the proper header for your Document Class (for
instance, in the Book class 0 tabs is part, 1 tab is chapter, 2 tabs is
section, ...

You basically have a canned LyX header, then make the body with your
program. I've done this to make most of the headers in a 50,000 word
book.

I suspect it would be as easy to write such a program for org-mode as
it would be for VimOutliner. I'd recommend using Python3 to write the
program.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


best route for org-mode --> LyX

2021-02-06 Thread Saša Janiška
Hello,

I'm about to start taking notees using org-roam (https://www.orgroam.com/) to
be used for articles/presentations along with the Bib(la)tex bibliography.

Considering that org-roam is depending on Emacs' org-mode, I wonder what would
be recommended way to utilize those notes and use them in LyX?


Sincerely,
Gour

-- 
The embodied soul may be restricted from sense enjoyment,
though the taste for sense objects remains. But, ceasing
such engagements by experiencing a higher taste,
he is fixed in consciousness.


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users