On Saturday, March 3, 2018 at 6:50:31 AM UTC-6, Israel Hands wrote:

> Content - for me content is king. Manipulate it - tag it - filter it - 
anything you like but it's about content.

Imo, this is true for programmers as well as non-programmers.  There has 
been a lot of talk about a "self-fulfilling prophesy" that Leo is only for 
programmers.  The "content is king" principle is the antidote! 

>I'm a writer and generally my output is PDFs via Latex. I have looked at 
the info on a workflow from Leo and just not found the energy to tackle it.
...
>but if someone wrote a Latex plugin that simple folk like me could use 
that would be great.
...
> Whereas in Leo I could just reference the document.tex file and edit it 
directly from within Leo or just make the final edits in TexStudio know 
that Leo will be able to reflect those edits in the referenced file. 
 
Ok. Let's discuss what would work for you. 

First, have you tried @clean with @language latex?

Here is the test I use:



*Root node*@clean c:\test\latex_test.tex (head)
@language latex
@others



*First child*Part 1 (head)
\paragraph{one}
This is paragraph 1.
With another line.



*Second child*Part 2 (head)
\paragraph{two}
This is paragraph 2.

*Work flow*

1. Create the outline just describe in Leo.
2. Save the outline, and open it in Typora. *Leave Leo open.*
3. Make changes in Typora and save the file.
4. Leo will ask whether you want to change the outline.  Say ye.

You will now see the changes in Leo that you made in Typora. Leo's @clean 
might put the changes in the "wrong" node. If so, put them in the proper 
node and save the file.  Chances are, there will be no changes, but now Leo 
will remember where you want the lines the next time you open Leo.  That's 
the magic of @clean.

If you don't mind Leo sentinels, you could use @file instead of @clean.  
This ensure that changes you make in Typora will *always* go to the right 
node.  Having said that, you will probably want to use @clean.

Let me know if you want something more than this.  If not, I'll close #774 
<https://github.com/leo-editor/leo-editor/issues/774>.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to