Re: Import unicode in TeX

2025-10-29 Thread Neal Becker
Oh, never mind, I just needed to quote the $ with \$!
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import unicode in TeX

2025-10-29 Thread Neal Becker
On Wed, Oct 29, 2025 at 9:32 AM Jürgen Spitzmüller 
wrote:

> Neal Becker schrieb am 29.10.2025 13:28 (GMT +01:00):
> >> Can you give me an example of the text that gets mangled, so I can try
> >> it here?
>
> Since it does not have concrete hints, tex2lyx assumes latin1 encoding
> here.
>
> You have the following possibilities:
>
> * call tex2lyx with the respective option (tex2lyx -e utf8)
> * use a complete tex file and give an encoding specification:
>
> \documentclass{article}
>
> \usepackage[utf8]{inputenc}
>
> \begin{document}
>
> ...
>
>
> \end{document}
>
>
> Whether tex2lyx should rather assume utf8 as default nowadays is a
> different question.
>
> The tex2lyx source has this to say about it:
>
> // Always start with ISO-8859-1, (formerly known by its latex name
> // latin1), since ISO-8859-1 does not cause an iconv error if the
> // actual encoding is different (bug 7509).
>
>
> Jürgen
>
>
Thanks!  That helps, I prepared a complete .tex file to import,
although the final column of the table did something quite strange
\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{tabularx}

\begin{document}
% Requires in preamble:

\begin{frame}{Summary at a Glance}
\scriptsize
\setlength{\tabcolsep}{4pt}
\renewcommand{\arraystretch}{1.25}

\begin{tabularx}{\linewidth}{l c c c c c}
\toprule
\textbf{Approach} & \textbf{Coverage} & \textbf{Throughput} & \textbf{MIMO} & \textbf{Complexity} & \textbf{Cost}\\
\midrule
Distributed Small Cells & ★★☆  & ★★★  & ★★★  & High  & $$$ \\
Passive DAS & ★★★  & ★★   & ★ & Low   & $$  \\
Active DAS / RF-over-Fiber  & ★★★  & ★★★  & ★★★  & High  & \\
Leaky Coax (Radiating)  &  & ★& ★ & Low   & $$  \\
Hybrid (Mixed)  & ★★★  & ★★★  & ★★☆  & Med   & $$$ \\
\bottomrule
\end{tabularx}

\vspace{0.6em}
\footnotesize
\textbf{Legend:} ★–★★★ (more is better); Cost: \$ (lower) to \$\$\$\$ (higher).
\end{frame}
\end{document}


test_table.lyx
Description: application/lyx
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import unicode in TeX

2025-10-29 Thread Neal Becker
On Tue, Oct 28, 2025 at 10:44 PM Richard Kimberly Heck 
wrote:

> On 10/28/25 2:05 PM, Neal Becker wrote:
> > Hi,
> > When I try Import LateX (plain), and that contains unicode characters,
> > those characters are mangled.  This is often a workflow I use when I
> > ask my favorite LLM to write some text, and it often throws in unicode
> > characters for symbols.  Why does it get mangled and how can I prevent
> > this from happening?
>
> Can you give me an example of the text that gets mangled, so I can try
> it here?
>
> Riki
>
>
>

-- 
*Those who don't understand recursion are doomed to repeat it*
% Requires in preamble:
% \usepackage{booktabs}
% \usepackage{tabularx}

\begin{frame}{Summary at a Glance}
\scriptsize
\setlength{\tabcolsep}{4pt}
\renewcommand{\arraystretch}{1.25}

\begin{tabularx}{\linewidth}{l c c c c c}
\toprule
\textbf{Approach} & \textbf{Coverage} & \textbf{Throughput} & \textbf{MIMO} & \textbf{Complexity} & \textbf{Cost}\\
\midrule
Distributed Small Cells & ★★☆  & ★★★  & ★★★  & High  & $$$ \\
Passive DAS & ★★★  & ★★   & ★ & Low   & $$  \\
Active DAS / RF-over-Fiber  & ★★★  & ★★★  & ★★★  & High  & \\
Leaky Coax (Radiating)  &  & ★& ★ & Low   & $$  \\
Hybrid (Mixed)  & ★★★  & ★★★  & ★★☆  & Med   & $$$ \\
\bottomrule
\end{tabularx}

\vspace{0.6em}
\footnotesize
\textbf{Legend:} ★–★★★ (more is better); Cost: \$ (lower) to \$\$\$\$ (higher).
\end{frame}
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import unicode in TeX

2025-10-28 Thread Richard Kimberly Heck

On 10/28/25 2:05 PM, Neal Becker wrote:

Hi,
When I try Import LateX (plain), and that contains unicode characters, 
those characters are mangled.  This is often a workflow I use when I 
ask my favorite LLM to write some text, and it often throws in unicode 
characters for symbols.  Why does it get mangled and how can I prevent 
this from happening?


Can you give me an example of the text that gets mangled, so I can try 
it here?


Riki


--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document

2024-10-09 Thread Rich Shepard

On Wed, 9 Oct 2024, Eberhard W Lisse wrote:


You could look at pandoc as advised further down the thread, but I woder
why you don't write your presentations with LyX?

LyX can do Beamer and I use that all the time with a modified Metropilis
theme (in the preamble)


el,

I use Beamer for the visuals and typeset the text with LyX, but when
writing, at least the first draft, I prefer to use Emacs because I'm a touch
typist and can keep my hands on the keyboard and ignore LyX environments
while producing text. Fewer interruptions in my thinking.

Regards,

Rich

--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document

2024-10-09 Thread Eberhard W Lisse
You could look at pandoc as advised further down the thread, but I woder
why you don't write your presentations with LyX?

LyX can do Beamer and I use that all the time with a modified Metropilis
theme (in the preamble)

el


On 2024-10-07 18:13, Rich Shepard wrote:
> I'm preparing a presentation using Emacs' outline mode. Is there a
> way to import the document into Lyx so Emacs headings are translated
> to LyX sections appropriately? A web search didn't find any relevant
> hit.
> 
> TIA,
> 
> Rich


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document [RESOLVED]

2024-10-07 Thread Rich Shepard

On Mon, 7 Oct 2024, Jean-Marc Lasgouttes wrote:


Have a look at the Org>Export/Publish menu entry


JMarc,

Will do. Thanks.

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document [RESOLVED]

2024-10-07 Thread Jean-Marc Lasgouttes

Le 07/10/2024 à 20:09, Rich Shepard a écrit :

On Mon, 7 Oct 2024, Jean-Marc Lasgouttes wrote:


Can emacs' org-mode read outline mode? Then you can export to latex


JMarc,

I converted the outline (.txt) file to org-mode (.org) and will learn 
how to

export it to LaTeX.


Have a look at the Org>Export/Publish menu entry

JMarc

--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document [RESOLVED]

2024-10-07 Thread Rich Shepard

On Mon, 7 Oct 2024, José Matos wrote:


I think that pandoc can deal with org-mode and so it can export it to
latex: https://pandoc.org/org.html

We have several examples in LyX's converters of the use of pandoc.


Thanks, Josè.

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document [RESOLVED]

2024-10-07 Thread José Matos
On Mon, 2024-10-07 at 11:09 -0700, Rich Shepard wrote:
> JMarc,
> 
> I converted the outline (.txt) file to org-mode (.org) and will learn
> how to
> export it to LaTeX.
> 
> Many thanks,
> 
> Rich

I think that pandoc can deal with org-mode and so it can export it to
latex:
https://pandoc.org/org.html

We have several examples in LyX's converters of the use of pandoc.
-- 
José Abílio
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Emacs outline-mode document [RESOLVED]

2024-10-07 Thread Rich Shepard

On Mon, 7 Oct 2024, Jean-Marc Lasgouttes wrote:


Can emacs' org-mode read outline mode? Then you can export to latex


JMarc,

I converted the outline (.txt) file to org-mode (.org) and will learn how to
export it to LaTeX.

Many thanks,

Rich


--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-03 Thread Dr Eberhard W Lisse
That requires the use of Word. And costs money.

el


On 02/06/2023 17:57, Jack Lyon wrote:
> LyXConverter does a great job:
>
> https://www.editorium.com/lyxconverter.htm
>
> Full disclosure: I wrote it. :)
>
> Best wishes,
> Jack Lyon

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-03 Thread Dr Eberhard W Lisse
Use the Ultra-Clean option :-)-O

el
On 02/06/2023 14:51, Rich Shepard wrote:
> On Fri, 2 Jun 2023, Dr Eberhard W Lisse wrote:
> 
>> Have you tried Libre Office and the Writer2Latex plug in?
> 
> el,
> 
> Thank you. I didn't know about that plug-in, which will be useful for me,
> too.
> 
> Best regards,
> 
> Rich


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-02 Thread Jack Lyon

LyXConverter does a great job:

https://www.editorium.com/lyxconverter.htm

Full disclosure: I wrote it. :)

Best wishes,
Jack Lyon

On 6/2/2023 6:54 AM, Benedict Holland wrote:
I've tried it. If it works for you, I think that's great. It generated 
really bad formatting for me in my use cases, which is why I forgot 
about it.


Thanks,
Ben

On Fri, Jun 2, 2023, 8:51 AM Rich Shepard  
wrote:


On Fri, 2 Jun 2023, Dr Eberhard W Lisse wrote:

> Have you tried Libre Office and the Writer2Latex plug in?

el,

Thank you. I didn't know about that plug-in, which will be useful
for me,
too.

Best regards,

Rich
-- 
lyx-users mailing list

[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-02 Thread Rich Shepard

On Fri, 2 Jun 2023, Benedict Holland wrote:


I've tried it. If it works for you, I think that's great. It generated
really bad formatting for me in my use cases, which is why I forgot about
it.


Ben,

It's rare for me to need to transfer a Word doc to LaTeX. I'll keep the
plug-in in mind should the need arise.

Thanks for sharing your experiences,

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-02 Thread Benedict Holland
I've tried it. If it works for you, I think that's great. It generated
really bad formatting for me in my use cases, which is why I forgot about
it.

Thanks,
Ben

On Fri, Jun 2, 2023, 8:51 AM Rich Shepard  wrote:

> On Fri, 2 Jun 2023, Dr Eberhard W Lisse wrote:
>
> > Have you tried Libre Office and the Writer2Latex plug in?
>
> el,
>
> Thank you. I didn't know about that plug-in, which will be useful for me,
> too.
>
> Best regards,
>
> Rich
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-02 Thread Rich Shepard

On Fri, 2 Jun 2023, Dr Eberhard W Lisse wrote:


Have you tried Libre Office and the Writer2Latex plug in?


el,

Thank you. I didn't know about that plug-in, which will be useful for me,
too.

Best regards,

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-02 Thread Dr Eberhard W Lisse
Have you tried Libre Office and the Writer2Latex plug in?

And, LyX (or rather LateX) doesn't use (multiple) blank lines.

el


On 01/06/2023 20:58, Matthias Schmidt wrote:
> Hello,
> 
>  
> 
> I want to convert a Word docx-document into a Lyx document. 
> 
> I have tried several online converters that convert docx to tex. When I
> import these tex files into Lyx, the result is reasonably okay, but all
> these online converters cannot recognise blank lines.
> 
> Is there a way to transfer a docx document with all formatting, spaces
> an blanc lines to Lyx?


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import docx to lyx

2023-06-01 Thread Benedict Holland
>From experience, no. It is really not hard to format a docx to latex though.

Really, you are only thinking about lines and some special formatting.
Tables, images, headers, footers, and more make it very complicated. The
formats are diametrically opposite. Docx keeps information on every glif on
the page. Latex keeps markup and text separately with packages to fill in
blanks like biblatex and tables.

If you really need to, I would just do it manually. It's not too much work.
I've had to do it a few times on even large documents.

Thanks
Ben

On Thu, Jun 1, 2023, 6:21 PM Matthias Schmidt  wrote:

> Hello,
>
>
>
> I want to convert a Word docx-document into a Lyx document.
>
> I have tried several online converters that convert docx to tex. When I
> import these tex files into Lyx, the result is reasonably okay, but all
> these online converters cannot recognise blank lines.
>
> Is there a way to transfer a docx document with all formatting, spaces an
> blanc lines to Lyx?
>
>
>
> *-- *Mit freundlichen Grüßen
>
> *Matthias Schmidt *mailto:[email protected] 
> 
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import utf-8 encoded latex

2019-11-19 Thread Guenter Milde
On 2019-11-18, Guenter Milde wrote:
> On 2019-11-18, Neal Becker wrote:
>> I'm trying to import a latex table that is in utf-8 and includes some 
>> non-ascii
>> (specifically, the π character).

>> When I try to import to lyx, this character is mangled.

>> If I run tex2lyx manually I get the same result.

>> Both emacs and 'file' say my latex is utf-8.

>> Any ideas?

> Manually convert with `tex2lyx -e utf8` ?

Also, while the preamble line 

   \usepackage[utf8]{inputenc}
   
is no longer required since utf8 became the fallback encoding, it is still
wise to include it to clearly mark the intended encoding.


Günter


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import utf-8 encoded latex

2019-11-19 Thread Jean-Marc Lasgouttes

Le 18/11/2019 à 19:43, Neal Becker a écrit :

I'm trying to import a latex table that is in utf-8 and includes some non-ascii
(specifically, the π character).

When I try to import to lyx, this character is mangled.

If I run tex2lyx manually I get the same result.

Both emacs and 'file' say my latex is utf-8.


Could you show an example file to us? What TeX engine do you use with it?

JMarc
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import utf-8 encoded latex

2019-11-18 Thread Guenter Milde
On 2019-11-18, Neal Becker wrote:
> I'm trying to import a latex table that is in utf-8 and includes some 
> non-ascii
> (specifically, the π character).

> When I try to import to lyx, this character is mangled.

> If I run tex2lyx manually I get the same result.

> Both emacs and 'file' say my latex is utf-8.

> Any ideas?

Manually convert with `tex2lyx -e utf8` ?

Günter

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import LaTeX (plain) dialog

2019-03-04 Thread Maria Gouskova
On Fri, Mar 1, 2019 at 1:50 PM Paul A. Rubin  wrote:
>
> On 3/1/19 2:08 AM, Kornel Benko wrote:
> > Am Donnerstag, 28. Februar 2019 23:22:06 CET schrieb Paul A. Rubin 
> > :
> >> On 2/28/19 5:48 PM, Jean-Marc Lasgouttes wrote:
> >>> Le 28/02/2019 à 21:58, Paul A. Rubin a écrit :
>  I'm on my laptop now, which is running a newer version of Mint (19.1
>  Tessa) than my desktop but the same desktop environment (MATE) and
>  the same version of LyX (2.3.2, installed from Liviu's repo), and on
>  my laptop I see the same phenomenon that you do. Not only does the
>  file dialog not show the .tex files, the layout of the dialog matches
>  your screen shot (and not my screen shot from Sylvia).
> 
>  As time permits, I'll try to run the desktop and laptop side by side
>  and see if I can figure out where the difference occurs.
> >>> Could it be a metter of using native file dialogs or not? This is the
> >>> newish \use_native_filedialog setting in preferences (or in lyxrc.dist).
> >>>
> >>> Sorry, I cannot check right now.
> >>>
> >>> JMarc
> >>>
> >> JMarc:
> >>
> >> Where would I find that setting. I don't see it anywhere in the
> >> preferences dialog, and it's not in any file I can find.
> > In preferences add the line
> >   \use_native_filedialog false
> > or
> >   \use_native_filedialog true
> >
> >> Paul
> >   Kornel
> >
> JMarc and Kornel (and Riki and Scott on the dev list): Thanks. This has
> no effect on my desktop, but eliminates the symptoms on the laptop.
>
> Maria and John: If you care to, try adding "\use_native_dialog false" to
> ~/.lyx/preferences and see if that helps. It fixed my laptop.

This did it, thanks!

Maria


Re: Import LaTeX (plain) dialog

2019-03-01 Thread Paul A. Rubin

On 3/1/19 2:08 AM, Kornel Benko wrote:

Am Donnerstag, 28. Februar 2019 23:22:06 CET schrieb Paul A. Rubin 
:

On 2/28/19 5:48 PM, Jean-Marc Lasgouttes wrote:

Le 28/02/2019 à 21:58, Paul A. Rubin a écrit :

I'm on my laptop now, which is running a newer version of Mint (19.1
Tessa) than my desktop but the same desktop environment (MATE) and
the same version of LyX (2.3.2, installed from Liviu's repo), and on
my laptop I see the same phenomenon that you do. Not only does the
file dialog not show the .tex files, the layout of the dialog matches
your screen shot (and not my screen shot from Sylvia).

As time permits, I'll try to run the desktop and laptop side by side
and see if I can figure out where the difference occurs.

Could it be a metter of using native file dialogs or not? This is the
newish \use_native_filedialog setting in preferences (or in lyxrc.dist).

Sorry, I cannot check right now.

JMarc


JMarc:

Where would I find that setting. I don't see it anywhere in the
preferences dialog, and it's not in any file I can find.

In preferences add the line
\use_native_filedialog false
or
\use_native_filedialog true


Paul

Kornel

JMarc and Kornel (and Riki and Scott on the dev list): Thanks. This has 
no effect on my desktop, but eliminates the symptoms on the laptop.


Maria and John: If you care to, try adding "\use_native_dialog false" to 
~/.lyx/preferences and see if that helps. It fixed my laptop.


Paul



Re: Import LaTeX (plain) dialog

2019-02-28 Thread Kornel Benko
Am Donnerstag, 28. Februar 2019 23:22:06 CET schrieb Paul A. Rubin 
:
> On 2/28/19 5:48 PM, Jean-Marc Lasgouttes wrote:
> > Le 28/02/2019 à 21:58, Paul A. Rubin a écrit :
> >> I'm on my laptop now, which is running a newer version of Mint (19.1 
> >> Tessa) than my desktop but the same desktop environment (MATE) and 
> >> the same version of LyX (2.3.2, installed from Liviu's repo), and on 
> >> my laptop I see the same phenomenon that you do. Not only does the 
> >> file dialog not show the .tex files, the layout of the dialog matches 
> >> your screen shot (and not my screen shot from Sylvia).
> >>
> >> As time permits, I'll try to run the desktop and laptop side by side 
> >> and see if I can figure out where the difference occurs.
> >
> > Could it be a metter of using native file dialogs or not? This is the 
> > newish \use_native_filedialog setting in preferences (or in lyxrc.dist).
> >
> > Sorry, I cannot check right now.
> >
> > JMarc
> >
> JMarc:
> 
> Where would I find that setting. I don't see it anywhere in the 
> preferences dialog, and it's not in any file I can find.

In preferences add the line
\use_native_filedialog false
or
\use_native_filedialog true

> Paul

Kornel




signature.asc
Description: This is a digitally signed message part.


Re: Import LaTeX (plain) dialog

2019-02-28 Thread Paul A. Rubin

On 2/28/19 5:48 PM, Jean-Marc Lasgouttes wrote:

Le 28/02/2019 à 21:58, Paul A. Rubin a écrit :
I'm on my laptop now, which is running a newer version of Mint (19.1 
Tessa) than my desktop but the same desktop environment (MATE) and 
the same version of LyX (2.3.2, installed from Liviu's repo), and on 
my laptop I see the same phenomenon that you do. Not only does the 
file dialog not show the .tex files, the layout of the dialog matches 
your screen shot (and not my screen shot from Sylvia).


As time permits, I'll try to run the desktop and laptop side by side 
and see if I can figure out where the difference occurs.


Could it be a metter of using native file dialogs or not? This is the 
newish \use_native_filedialog setting in preferences (or in lyxrc.dist).


Sorry, I cannot check right now.

JMarc


JMarc:

Where would I find that setting. I don't see it anywhere in the 
preferences dialog, and it's not in any file I can find.


Paul



Re: Import LaTeX (plain) dialog

2019-02-28 Thread Jean-Marc Lasgouttes

Le 28/02/2019 à 21:58, Paul A. Rubin a écrit :
I'm on my laptop now, which is running a newer version of Mint (19.1 
Tessa) than my desktop but the same desktop environment (MATE) and the 
same version of LyX (2.3.2, installed from Liviu's repo), and on my 
laptop I see the same phenomenon that you do. Not only does the file 
dialog not show the .tex files, the layout of the dialog matches your 
screen shot (and not my screen shot from Sylvia).


As time permits, I'll try to run the desktop and laptop side by side and 
see if I can figure out where the difference occurs.


Could it be a metter of using native file dialogs or not? This is the 
newish \use_native_filedialog setting in preferences (or in lyxrc.dist).


Sorry, I cannot check right now.

JMarc



Re: Import LaTeX (plain) dialog

2019-02-28 Thread Paul A. Rubin

On 2/28/19 8:24 AM, Maria Gouskova wrote:

Hi all,

Hopefully a quickie--I cannot tell if it's an OS issue or a LyX GUI
issue. I'm on Linux Mint Sarah, LyX 2.3.2. When I go to
File>Import>LaTeX (plain), and the LaTeX file type is chosen in the
drop-down menu in the file open dialog, no .tex files show up. All
files (including .tex ones) are visible when I choose "All Files".

And unrelatedly, in the Export As dialog, the drop-down file type menu
has a number of duplicates: six different LaTeX options, unlabeled,
four Plain Texts, and several Open Documents.

Maria
I'm on my laptop now, which is running a newer version of Mint (19.1 
Tessa) than my desktop but the same desktop environment (MATE) and the 
same version of LyX (2.3.2, installed from Liviu's repo), and on my 
laptop I see the same phenomenon that you do. Not only does the file 
dialog not show the .tex files, the layout of the dialog matches your 
screen shot (and not my screen shot from Sylvia).


As time permits, I'll try to run the desktop and laptop side by side and 
see if I can figure out where the difference occurs.


Paul



Re: Import LaTeX (plain) dialog

2019-02-28 Thread Maria Gouskova
On Thu, Feb 28, 2019 at 1:34 PM Paul A. Rubin  wrote:
>
> On 2/28/19 12:50 PM, Maria Gouskova wrote:
> > On Thu, Feb 28, 2019 at 11:00 AM Paul A. Rubin  wrote:
> >> On 2/28/19 10:39 AM, Maria Gouskova wrote:
> >>> On Thu, Feb 28, 2019 at 9:36 AM Paul A. Rubin  wrote:
> >>>
> >> Interesting. What version of Qt do you use (4.8.7 here), and what
> >> desktop environment for Sarah (MATE here)? Did you compile LyX yourself
> >> or get a binary somewhere?
> > The desktop environment is Cinnamon.  But it's not Cinnamon vs.
> > MATE--I just logged into MATE and it's got the same issue here.
> Does your file dialog look the same in MATE, or does it look like mine?
> In particular, in MATE does the file filter ("Files of type:") show the
> full details ("LaTeX (plain) (*.tex)")?
> >

No, I am having the same problem regardless of the desktop
environment. MATE and Cinnamon both show an empty window and no .tex
files are visible until I select "All files".

> I wonder if this could be a MIME-type issue? If you go to the relevant
> directory in your file manager (Caja in my case), right click one of the
> .tex files and click on "Properties", what type is it? On my system, the
> MIME type is "TeX document (text/x-tex)".

No, the MIME type is correct (same as yours)--.tex files are TeX documents.


Re: Import LaTeX (plain) dialog

2019-02-28 Thread John Kane
I never noticed before but I am seeing the same blank vs All files display
with Lyx 2.3.2 with Ubuntu 18.04

On Thu, 28 Feb 2019 at 13:35, Paul A. Rubin  wrote:

> On 2/28/19 12:50 PM, Maria Gouskova wrote:
> > On Thu, Feb 28, 2019 at 11:00 AM Paul A. Rubin 
> wrote:
> >> On 2/28/19 10:39 AM, Maria Gouskova wrote:
> >>> On Thu, Feb 28, 2019 at 9:36 AM Paul A. Rubin 
> wrote:
> >>>
> >> Interesting. What version of Qt do you use (4.8.7 here), and what
> >> desktop environment for Sarah (MATE here)? Did you compile LyX yourself
> >> or get a binary somewhere?
> > The desktop environment is Cinnamon.  But it's not Cinnamon vs.
> > MATE--I just logged into MATE and it's got the same issue here.
> Does your file dialog look the same in MATE, or does it look like mine?
> In particular, in MATE does the file filter ("Files of type:") show the
> full details ("LaTeX (plain) (*.tex)")?
> >
> > Here is the LyX build Info, in case that helps:
> >
> > LyX 2.3.2 (2018-12-08)
> > Configuration
> > Host type: x86_64-pc-linux-gnu
> > Special build flags: build=release std-regex use-hunspell use-aspell
> use-enchant
> > Bundled libraries: (none)
> > C++ Compiler: g++ (5.4.0)
> > C++ Compiler flags: -O2 -std=c++14
> > C++ Compiler user flags:
> > Linker flags:
> > Linker user flags:
> > Qt Frontend:
> > Qt version: 4.8.7
> > Packaging: posix
> > LyX binary dir: /usr/bin
> > LyX files dir: /usr/share/lyx
> That's an exact match to what I have.
> >
> > I cannot remember how I installed LyX originally, to be honest. But I
> > have this in my var/lib/apt/lists:
> >
> > ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_InRelease
> >
> ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_binary-amd64_Packages
> >
> ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_binary-i386_Packages
> >
> ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_i18n_Translation-en
> >
> ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_source_Sources
> >
> > Which I think means that at some point I added Liviu's PPA and have
> > been just getting it with apt updates.
> I use Liviu's PPA, and I have all the same files except the last one. I
> install binaries from the PPA.
> >
> >> Your file dialog looks substantially different from mine (screen shot
> >> attached). Some of that may be MATE v. Cinnamon (or whatever you're
> >> using), but I find it interesting that your filter drop-down just says
> >> "LaTeX" whereas mine is specific as to the "flavor" of LaTeX. The window
> >> title is properly specific (and matches what I get). The reason I'm so
> >> interested in the filter button is that I'm wondering whether the filter
> >> you are getting is incorrect (for instance, fails to specify .tex as the
> >> extension it wants).
> > I am fairly sure this is a virgin install, without any configuration
> > tinkering--I don't do much personalizing because I switch between
> > machines so much.
> >
> > Maria
> >
> >
> I wonder if this could be a MIME-type issue? If you go to the relevant
> directory in your file manager (Caja in my case), right click one of the
> .tex files and click on "Properties", what type is it? On my system, the
> MIME type is "TeX document (text/x-tex)".
>
> Paul
>
>

-- 
John Kane
Kingston ON Canada


Re: Import LaTeX (plain) dialog

2019-02-28 Thread Paul A. Rubin

On 2/28/19 12:50 PM, Maria Gouskova wrote:

On Thu, Feb 28, 2019 at 11:00 AM Paul A. Rubin  wrote:

On 2/28/19 10:39 AM, Maria Gouskova wrote:

On Thu, Feb 28, 2019 at 9:36 AM Paul A. Rubin  wrote:


Interesting. What version of Qt do you use (4.8.7 here), and what
desktop environment for Sarah (MATE here)? Did you compile LyX yourself
or get a binary somewhere?

The desktop environment is Cinnamon.  But it's not Cinnamon vs.
MATE--I just logged into MATE and it's got the same issue here.
Does your file dialog look the same in MATE, or does it look like mine? 
In particular, in MATE does the file filter ("Files of type:") show the 
full details ("LaTeX (plain) (*.tex)")?


Here is the LyX build Info, in case that helps:

LyX 2.3.2 (2018-12-08)
Configuration
Host type: x86_64-pc-linux-gnu
Special build flags: build=release std-regex use-hunspell use-aspell use-enchant
Bundled libraries: (none)
C++ Compiler: g++ (5.4.0)
C++ Compiler flags: -O2 -std=c++14
C++ Compiler user flags:
Linker flags:
Linker user flags:
Qt Frontend:
Qt version: 4.8.7
Packaging: posix
LyX binary dir: /usr/bin
LyX files dir: /usr/share/lyx

That's an exact match to what I have.


I cannot remember how I installed LyX originally, to be honest. But I
have this in my var/lib/apt/lists:

ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_InRelease
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_binary-amd64_Packages
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_binary-i386_Packages
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_i18n_Translation-en
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_source_Sources

Which I think means that at some point I added Liviu's PPA and have
been just getting it with apt updates.
I use Liviu's PPA, and I have all the same files except the last one. I 
install binaries from the PPA.



Your file dialog looks substantially different from mine (screen shot
attached). Some of that may be MATE v. Cinnamon (or whatever you're
using), but I find it interesting that your filter drop-down just says
"LaTeX" whereas mine is specific as to the "flavor" of LaTeX. The window
title is properly specific (and matches what I get). The reason I'm so
interested in the filter button is that I'm wondering whether the filter
you are getting is incorrect (for instance, fails to specify .tex as the
extension it wants).

I am fairly sure this is a virgin install, without any configuration
tinkering--I don't do much personalizing because I switch between
machines so much.

Maria


I wonder if this could be a MIME-type issue? If you go to the relevant 
directory in your file manager (Caja in my case), right click one of the 
.tex files and click on "Properties", what type is it? On my system, the 
MIME type is "TeX document (text/x-tex)".


Paul



Re: Import LaTeX (plain) dialog

2019-02-28 Thread Maria Gouskova
On Thu, Feb 28, 2019 at 11:00 AM Paul A. Rubin  wrote:
>
> On 2/28/19 10:39 AM, Maria Gouskova wrote:
> > On Thu, Feb 28, 2019 at 9:36 AM Paul A. Rubin  wrote:
> >> On 2/28/19 8:24 AM, Maria Gouskova wrote:
> >>> Hi all,
> >>>
> >>> Hopefully a quickie--I cannot tell if it's an OS issue or a LyX GUI
> >>> issue. I'm on Linux Mint Sarah, LyX 2.3.2. When I go to
> >>> File>Import>LaTeX (plain), and the LaTeX file type is chosen in the
> >>> drop-down menu in the file open dialog, no .tex files show up. All
> >>> files (including .tex ones) are visible when I choose "All Files".
> >>>
> >>> And unrelatedly, in the Export As dialog, the drop-down file type menu
> >>> has a number of duplicates: six different LaTeX options, unlabeled,
> >>> four Plain Texts, and several Open Documents.
> >>>
> >>> Maria
> >> Maria,
> >>
> >> I'm also on Mint Sarah, LyX 2.3.2. When I select File > Import > LaTeX
> >> (plain) and navigate to a folder containing .tex files, I see them (with
> >> the filter set to "LaTeX (plain) (*.tex)"). Can you upload a screen shot
> >> of what you are seeing (or not seeing)? It would help if you used a
> >> small directory, so that all the files appeared in the window (no
> >> scrolling required).
> > Screenshots attached.
> >
> > I've verified that this is an issue on both of my Mint Sarah
> > installations. I didn't copy the configurations between these, so it's
> > independent. (And the one that the screenshots are from is barely
> > configured--not my main machine for writing).
> >
> >
> Interesting. What version of Qt do you use (4.8.7 here), and what
> desktop environment for Sarah (MATE here)? Did you compile LyX yourself
> or get a binary somewhere?

The desktop environment is Cinnamon.  But it's not Cinnamon vs.
MATE--I just logged into MATE and it's got the same issue here.

Here is the LyX build Info, in case that helps:

LyX 2.3.2 (2018-12-08)
Configuration
Host type: x86_64-pc-linux-gnu
Special build flags: build=release std-regex use-hunspell use-aspell use-enchant
Bundled libraries: (none)
C++ Compiler: g++ (5.4.0)
C++ Compiler flags: -O2 -std=c++14
C++ Compiler user flags:
Linker flags:
Linker user flags:
Qt Frontend:
Qt version: 4.8.7
Packaging: posix
LyX binary dir: /usr/bin
LyX files dir: /usr/share/lyx

I cannot remember how I installed LyX originally, to be honest. But I
have this in my var/lib/apt/lists:

ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_InRelease
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_binary-amd64_Packages
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_binary-i386_Packages
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_i18n_Translation-en
ppa.launchpad.net_lyx-devel_release_ubuntu_dists_xenial_main_source_Sources

Which I think means that at some point I added Liviu's PPA and have
been just getting it with apt updates.

> Your file dialog looks substantially different from mine (screen shot
> attached). Some of that may be MATE v. Cinnamon (or whatever you're
> using), but I find it interesting that your filter drop-down just says
> "LaTeX" whereas mine is specific as to the "flavor" of LaTeX. The window
> title is properly specific (and matches what I get). The reason I'm so
> interested in the filter button is that I'm wondering whether the filter
> you are getting is incorrect (for instance, fails to specify .tex as the
> extension it wants).

I am fairly sure this is a virgin install, without any configuration
tinkering--I don't do much personalizing because I switch between
machines so much.

Maria


> Also, I misspoke (slightly) -- I forgot I had upgraded from Sarah to
> Sylvia. It made no difference in how LyX works, at least for me.
>
> Paul
>


Re: Import LaTeX (plain) dialog

2019-02-28 Thread Kornel Benko
Am Donnerstag, 28. Februar 2019 10:39:11 CET schrieb Maria Gouskova 
:
> > I'm also on Mint Sarah, LyX 2.3.2. When I select File > Import > LaTeX
> > (plain) and navigate to a folder containing .tex files, I see them (with
> > the filter set to "LaTeX (plain) (*.tex)"). Can you upload a screen shot
> > of what you are seeing (or not seeing)? It would help if you used a
> > small directory, so that all the files appeared in the window (no
> > scrolling required).
> 
> Screenshots attached.
> 
> I've verified that this is an issue on both of my Mint Sarah
> installations. I didn't copy the configurations between these, so it's
> independent. (And the one that the screenshots are from is barely
> configured--not my main machine for writing).
> 

I use mint too, and here it works with lyx2.3 and also with lyx2.4.dev.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Import LaTeX (plain) dialog

2019-02-28 Thread Paul A. Rubin

On 2/28/19 10:39 AM, Maria Gouskova wrote:

On Thu, Feb 28, 2019 at 9:36 AM Paul A. Rubin  wrote:

On 2/28/19 8:24 AM, Maria Gouskova wrote:

Hi all,

Hopefully a quickie--I cannot tell if it's an OS issue or a LyX GUI
issue. I'm on Linux Mint Sarah, LyX 2.3.2. When I go to
File>Import>LaTeX (plain), and the LaTeX file type is chosen in the
drop-down menu in the file open dialog, no .tex files show up. All
files (including .tex ones) are visible when I choose "All Files".

And unrelatedly, in the Export As dialog, the drop-down file type menu
has a number of duplicates: six different LaTeX options, unlabeled,
four Plain Texts, and several Open Documents.

Maria

Maria,

I'm also on Mint Sarah, LyX 2.3.2. When I select File > Import > LaTeX
(plain) and navigate to a folder containing .tex files, I see them (with
the filter set to "LaTeX (plain) (*.tex)"). Can you upload a screen shot
of what you are seeing (or not seeing)? It would help if you used a
small directory, so that all the files appeared in the window (no
scrolling required).

Screenshots attached.

I've verified that this is an issue on both of my Mint Sarah
installations. I didn't copy the configurations between these, so it's
independent. (And the one that the screenshots are from is barely
configured--not my main machine for writing).


Interesting. What version of Qt do you use (4.8.7 here), and what 
desktop environment for Sarah (MATE here)? Did you compile LyX yourself 
or get a binary somewhere?


Your file dialog looks substantially different from mine (screen shot 
attached). Some of that may be MATE v. Cinnamon (or whatever you're 
using), but I find it interesting that your filter drop-down just says 
"LaTeX" whereas mine is specific as to the "flavor" of LaTeX. The window 
title is properly specific (and matches what I get). The reason I'm so 
interested in the filter button is that I'm wondering whether the filter 
you are getting is incorrect (for instance, fails to specify .tex as the 
extension it wants).


Also, I misspoke (slightly) -- I forgot I had upgraded from Sarah to 
Sylvia. It made no difference in how LyX works, at least for me.


Paul



Re: Import LaTeX (plain) dialog

2019-02-28 Thread Maria Gouskova
On Thu, Feb 28, 2019 at 9:36 AM Paul A. Rubin  wrote:
>
> On 2/28/19 8:24 AM, Maria Gouskova wrote:
> > Hi all,
> >
> > Hopefully a quickie--I cannot tell if it's an OS issue or a LyX GUI
> > issue. I'm on Linux Mint Sarah, LyX 2.3.2. When I go to
> > File>Import>LaTeX (plain), and the LaTeX file type is chosen in the
> > drop-down menu in the file open dialog, no .tex files show up. All
> > files (including .tex ones) are visible when I choose "All Files".
> >
> > And unrelatedly, in the Export As dialog, the drop-down file type menu
> > has a number of duplicates: six different LaTeX options, unlabeled,
> > four Plain Texts, and several Open Documents.
> >
> > Maria
> Maria,
>
> I'm also on Mint Sarah, LyX 2.3.2. When I select File > Import > LaTeX
> (plain) and navigate to a folder containing .tex files, I see them (with
> the filter set to "LaTeX (plain) (*.tex)"). Can you upload a screen shot
> of what you are seeing (or not seeing)? It would help if you used a
> small directory, so that all the files appeared in the window (no
> scrolling required).

Screenshots attached.

I've verified that this is an issue on both of my Mint Sarah
installations. I didn't copy the configurations between these, so it's
independent. (And the one that the screenshots are from is barely
configured--not my main machine for writing).



> Regarding the Export As dialog, the file filter options there match the
> file formats recognized by LyX (Tools > Preferences... > File Handling >
> Formats > Format:). I don't use most of them, but I presume the
> assumption is that source files for various formats might contain some
> differences. If the length of the filter list is bothersome, I suppose
> you could always delete the ones you do not anticipate using (Remove
> button in the file handling dialog).
>
> Paul
>
>


Re: Import LaTeX (plain) dialog

2019-02-28 Thread Jean-Marc Lasgouttes

Le 28/02/2019 à 15:36, Paul A. Rubin a écrit :
Regarding the Export As dialog, the file filter options there match the 
file formats recognized by LyX (Tools > Preferences... > File Handling > 
Formats > Format:). I don't use most of them, but I presume the 
assumption is that source files for various formats might contain some 
differences. If the length of the filter list is bothersome, I suppose 
you could always delete the ones you do not anticipate using (Remove 
button in the file handling dialog).


If the formats have been created by Reconfigure, I suspect that removing 
them will not help.


And indeed, there are differences with some of the variants (but not all 
pf them).


JMarc


Re: Import LaTeX (plain) dialog

2019-02-28 Thread Paul A. Rubin

On 2/28/19 8:24 AM, Maria Gouskova wrote:

Hi all,

Hopefully a quickie--I cannot tell if it's an OS issue or a LyX GUI
issue. I'm on Linux Mint Sarah, LyX 2.3.2. When I go to
File>Import>LaTeX (plain), and the LaTeX file type is chosen in the
drop-down menu in the file open dialog, no .tex files show up. All
files (including .tex ones) are visible when I choose "All Files".

And unrelatedly, in the Export As dialog, the drop-down file type menu
has a number of duplicates: six different LaTeX options, unlabeled,
four Plain Texts, and several Open Documents.

Maria

Maria,

I'm also on Mint Sarah, LyX 2.3.2. When I select File > Import > LaTeX 
(plain) and navigate to a folder containing .tex files, I see them (with 
the filter set to "LaTeX (plain) (*.tex)"). Can you upload a screen shot 
of what you are seeing (or not seeing)? It would help if you used a 
small directory, so that all the files appeared in the window (no 
scrolling required).


Regarding the Export As dialog, the file filter options there match the 
file formats recognized by LyX (Tools > Preferences... > File Handling > 
Formats > Format:). I don't use most of them, but I presume the 
assumption is that source files for various formats might contain some 
differences. If the length of the filter list is bothersome, I suppose 
you could always delete the ones you do not anticipate using (Remove 
button in the file handling dialog).


Paul




Re: Import Literatur /Citation

2016-03-22 Thread Dr Eberhard Lisse
Steffi,

RTFM :-)-O

And if it does not work, you must make a minimal example, ie copy the
work into a new file, and remove everything from it which does not
produce the error.

If that doesn't lead to a solution you post that file with a
corresponding BIB file of a few entries and probably someone will
figure it out.


el

On 2016-03-18 18:41, Steffi Meindl wrote:
> Hi!
> 
> I am new user of lyx.  I Need it to write scientific publicaitons
> thus I have to insert citations every now and then in my test and
> make Literaturlist at the end of the document.
> 
> For my literatur I use Mendeley.
> 
>  
> 
> But how can I insert citations ?  I don´t find my Literatur/ papers
> though I have already syncronized my mendeley library with bibTex
> 
> I don´t have any Literatur in my LYX file ( see below)
> 
>  
> 
>  
> 
> And there is also nothing about this in the tutorial
> 
>  
> 
> Hope you can help me
> 
>  
> 
> Sincerely
> 
> Stefanie Meindl



Re: Import Literatur /Citation

2016-03-19 Thread Joel Kulesza
Stefanie,

The UserGuide has a section on Bibliography and BibTeX — this is probably
what you want.

Short version: Insert -> List/TOC -> BibTeX Bibliography, Add, Browse, , choose style, OK.

Then, Insert -> Citation.

Hope this helps,
Joel

On Fri, Mar 18, 2016 at 12:41 PM, Steffi Meindl  wrote:

> Hi!
>
> I am new user of lyx. I Need it to write scientific publicaitons thus I
> have to insert citations every now and then in my test and make
> Literaturlist at the end of the document.
>
> For my literatur I use Mendeley.
>
>
>
> But how can I insert citations ? I don´t find my Literatur/ papers though
> I  have already syncronized my mendeley library with bibTex
>
> I don´t have any Literatur in my LYX file ( see below)
>
>
>
>
>
> And there is also nothing about this in the tutorial
>
>
>
> Hope you can help me
>
>
>
> Sincerely
>
> Stefanie Meindl
>
>
>
> Gesendet von Mail  für
> Windows 10
>
>
>


Re: Import LaTeX macros into LyX Math Macros

2015-05-06 Thread Scott Kostyshak
On Wed, May 6, 2015 at 3:27 AM, Reuven Segev  wrote:
> Hi,
> How can import a LaTeX file into LyX so that the LaTeX macros are imported
> into LyX math macros?
>

Cross-posted at http://latex-community.org/forum/viewtopic.php?f=19&t=26277

Scott


Re: Import of text in a Lyx Tex section (ctrl-L) omits carriage returns

2014-11-07 Thread aldus 85
It worked !

Thank you so much !


> Le 7 nov. 2014 à 21:18, "Liviu Andronic"  a écrit :
> 
>> On Fri, Nov 7, 2014 at 7:03 PM, aldus 85  wrote:
>> Hello !
>> 
>> 
>> 
>> Sorry for this stupid question :
>> 
>> 
>> 
>> I frequently import Tex fragments in a Tex insert (ctrl-L). The shame is
>> that it looses all the carriage returns (CR) in the process : I have to
>> enter them manually …
>> 
>> I tried a find/replace but I can’t replace with a CR nor I can easily
>> identify where to make the replacement.
>> 
>> 
>> 
>> Is there a way to proceed such as “Paste special” or anything else easy not
>> to loose the CR ?
> Try ctrl+shift+v.
> 
> Liviu
> 
> 
>> 
>> 
>> Thanks !
> 
> 
> 
> -- 
> Do you think you know what math is?
> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> Or what it means to be intelligent?
> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
> Think again:
> http://www.ideasroadshow.com/library



Re: Import of text in a Lyx Tex section (ctrl-L) omits carriage returns

2014-11-07 Thread Liviu Andronic
On Fri, Nov 7, 2014 at 7:03 PM, aldus 85  wrote:
> Hello !
>
>
>
> Sorry for this stupid question :
>
>
>
> I frequently import Tex fragments in a Tex insert (ctrl-L). The shame is
> that it looses all the carriage returns (CR) in the process : I have to
> enter them manually …
>
> I tried a find/replace but I can’t replace with a CR nor I can easily
> identify where to make the replacement.
>
>
>
> Is there a way to proceed such as “Paste special” or anything else easy not
> to loose the CR ?
>
Try ctrl+shift+v.

Liviu


>
>
> Thanks !



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


Re: Import Docbook into LyX?

2013-09-12 Thread José Matos
On Wednesday 11 September 2013 03:56:21 Jerry wrote:
> Is it possible to import Docbook files into LyX?
> 
> Jerry

Nope. :-)

At least not directly. And all the other options imply to loose the semantic 
markup.

-- 
José Abílio


Re: Import tex file and reinterpret layout structure

2013-05-31 Thread Richard Heck

On 05/31/2013 11:51 AM, Yann Le Du wrote:

Hello,

I've unsuccessfully tried to find a solution to that problem: I write 
in Lyx using AMS book. I export to tex and reimport. The layout is 
lost, replaced by ERT. How may I ask Lyx to parse the file and 
interpret the layout nicely ?


All layouts or lost, or some?

rh



Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Uwe Stöhr

Am 16.05.2013 22:07, schrieb Tino Langer:


I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't 
it. Have it to be
marked as one command?


You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached 
TeX file. When you import the TeX file (which contains your command), you get the attached result. 
And in the result the square brackets are indeed not in TeX-code so the document is uncompilable.

Could you please report this bug to our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome
(set the component to "tex2lyx" and CC "uwestoehr")

regards Uwe
%% LyX 2.0.6 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\makeatletter

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%% User specified LaTeX commands.
\usepackage{colortbl}

\makeatother

\usepackage{babel}
\begin{document}
\begin{tabular}{|cc|}
\multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
 &  &  &  &  & \tabularnewline
\end{tabular}
\end{document}


tex2lyx-original.lyx
Description: application/lyx


tex2lyx-test.lyx
Description: application/lyx


Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Tino Langer

Hello Uwe,

I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX 
it isn't it. Have it to be marked as one command?


Many thanks - Tino

Am 15.05.2013 23:55, schrieb Uwe Stöhr:

Am 15.05.2013 11:07, schrieb Tino Langer:

from an own delevolped softwaretool I export statistics via 
tex-files, which I then import in lyx to
use it in different documents. In a special case I generate tables 
and I want to format some table
cells with the latex command \cellcolor. When I do this in lyx, I 
insert an ERT and insert the latex

code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an

ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the 
easiest way is to leave everything as it is.
For the LaTeX code generated by LyX for your table, use the menu 
View->View Source.


regards Uwe




Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View->View 
Source.

regards Uwe


Re: Import plain latex from Scientific word

2013-02-28 Thread Scott Kostyshak
On Tue, Feb 26, 2013 at 7:53 AM, Mark Salmon  wrote:
> Hi Scott,
> Its a MAC OSX 10.8.2, ermmm-- let me think more about the saving issue and
> if I find anything more I'll get back. Got to get my lecture ready first
> tho now I am back in business- somewhat!  I close down the whole machine
> and try again completely from fresh.
> Thanks for your help and Gyorgy and Murat
> Cheers,
> Mark

Hi Mark,

I updated the bug report
(http://www.lyx.org/trac/ticket/8236#comment:6) to mention that the
bug you're reporting might be related. If you have anything to add or
are able to figure out more about what's going on (e.g. when the bug
is triggered and when not), please add it to the report.

Thanks,

Scott


Re: Import plain latex from Scientific word

2013-02-26 Thread Mark Salmon
Hi Scott,
Its a MAC OSX 10.8.2, ermmm-- let me think more about the saving issue and
if I find anything more I'll get back. Got to get my lecture ready first
tho now I am back in business- somewhat!  I close down the whole machine
and try again completely from fresh.
Thanks for your help and Gyorgy and Murat
Cheers,
Mark

On 26/02/2013 11:58, "Scott Kostyshak"  wrote:

>On Tue, Feb 26, 2013 at 6:46 AM, Mark Salmon 
>wrote:
>> OK - I have more information on my problemŠ
>> If I close down Lyx and start up again I can import the files- AS LONG
>>AS
>> I DO NOT OPEN A NEW FILE. If I try and  open a new file and import into
>> that it fails again as I have described.However if I just directly
>>import
>> then it works fine. I now have to close down Lyx each time and open it
>> again I need to input a file as I can only do this -- i.e. Import once
>> each time.-- otherwise I get the flash glance of my folder and return to
>> the newly opened empty file.
>> Thanks
>> Mark
>
>Glad to hear that you can import the files. That's great news. It
>sounds like you might be right -- that the saving is the problem. I
>wonder if LyX is trying to save to the same file as one of the
>documents that is already open.
>
>What operating system are you on?
>
>Scott




Re: Import plain latex from Scientific word

2013-02-26 Thread Murat Yildizoglu
Mark,

If you have several files to import, maybe the command line tex2lyx utility can be more 
convenient.
It lives somewhere inside the Lyx installation folder (on OSX: 
/Applications/LyX.app/Contents/MacOS/tex2lyx).

Here is the help page I get when I do tex2lyx -h :

Usage: tex2lyx [options] 
infile.tex [outfile.lyx]
Options:
    -c textclass   Declare the
 textclass.
    -e encoding    Set the 
default encoding (latex name).
    -f Force 
overwrite of .lyx files.
    -help  Print this 
message and quit.
    -n translate a
 noweb (aka literate programming) file.
    -roundtrip re-export 
created .lyx file infile.lyx.lyx to infile.lyx.tex.
    -s syntaxfile  read 
additional syntax file.
    -sysdir SYSDIR Set system 
directory to SYSDIR.
       Default: 
/Applications/LyX.app/Contents/Resources/
    -userdir USERDIR   Set user 
directory to USERDIR.
       Default: 
/Users/myildi/Library/Application Support/LyX-2.0/
    -version   Summarize 
version and build info.
Paths:
    The program searches for the 
files "encodings", "lyxmodules.lst",
    "textclass.lst", 
"syntax.default", and "unicodesymbols", first in
    "USERDIR", then in "SYSDIR". 
The subdirectories "USERDIR/layouts"
    and "SYSDIR/layouts" are 
searched for layout and module files.
Check the tex2lyx man page for 
more details.



   	   
   	Mark Salmon  
  26 février 2013 
12:46
  OK - I have more 
information on my problemŠIf I close down Lyx and start up again I 
can import the files- AS LONG ASI DO NOT OPEN A NEW FILE. If I try 
and  open a new file and import intothat it fails again as I have 
described.However if I just directly importthen it works fine. I now
 have to close down Lyx each time and open itagain I need to input a
 file as I can only do this -- i.e. Import onceeach time.-- 
otherwise I get the flash glance of my folder and return tothe newly
 opened empty file.ThanksMark
   	   
   	Scott Kostyshak  
  26 février 2013 
12:14
  Hi Mark,LyX
 does try to save after importing:http://www.lyx.org/trac/ticket/8236But
 I'm not sure that's the problem. Is it a problem that it tries tosave?
 Is the folder write-protected? Do you get an error?In general, 
it's difficult to import non-simple LaTeX into LyX. Therehave been a
 lot of improvements to LaTeX importing recently. If youhappen to be
 using Ubuntu, you can try the newest development version:http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3(If
 I had to guess, though, I do not think this would solve your problem).Best,Scott


-- Prof. Murat YildizogluUniversité
 Montesquieu Bordeaux IV GREThA (UMR CNRS 5113)Avenue Léon 
Duguit33608 Pessac cedexFranceBureau :
 E-331
Mail: yildi-at-u-bordeaux4.fr
Web: yildizoglu.info







Re: Import plain latex from Scientific word

2013-02-26 Thread Scott Kostyshak
On Tue, Feb 26, 2013 at 6:46 AM, Mark Salmon  wrote:
> OK - I have more information on my problemŠ
> If I close down Lyx and start up again I can import the files- AS LONG AS
> I DO NOT OPEN A NEW FILE. If I try and  open a new file and import into
> that it fails again as I have described.However if I just directly import
> then it works fine. I now have to close down Lyx each time and open it
> again I need to input a file as I can only do this -- i.e. Import once
> each time.-- otherwise I get the flash glance of my folder and return to
> the newly opened empty file.
> Thanks
> Mark

Glad to hear that you can import the files. That's great news. It
sounds like you might be right -- that the saving is the problem. I
wonder if LyX is trying to save to the same file as one of the
documents that is already open.

What operating system are you on?

Scott


Re: Import plain latex from Scientific word

2013-02-26 Thread Mark Salmon
OK - I have more information on my problemŠ
If I close down Lyx and start up again I can import the files- AS LONG AS
I DO NOT OPEN A NEW FILE. If I try and  open a new file and import into
that it fails again as I have described.However if I just directly import
then it works fine. I now have to close down Lyx each time and open it
again I need to input a file as I can only do this -- i.e. Import once
each time.-- otherwise I get the flash glance of my folder and return to
the newly opened empty file.
Thanks
Mark



On 26/02/2013 11:14, "Scott Kostyshak"  wrote:

>Hi Mark,
>
>On Tue, Feb 26, 2013 at 5:41 AM, Mark Salmon 
>wrote:
>> Hi,
>> I would be grateful for some urgent help. I am trying to transfer
>>lecture
>> slides  (Beamer) from Scientific word into Lyx 2.0.5. I have followed
>>the
>> wiki advice and saved from Sci word as plain latex. Then  I open a new
>>file
>> in Lyx and try and import the file- a see for about 2 seconds the
>>folder in
>> which I have stored my old sci word files and then it closes and takes
>>me
>> back to the empty Lyx file- so I cannot actually select the file I want
>>to
>> import. Its almost as if Lyx is immediately trying to save the new
>>file- I
>> don't know whats going on but it just doesn't give me the chance to
>>import
>> th file after I select import.
>
>LyX does try to save after importing:
>http://www.lyx.org/trac/ticket/8236
>
>But I'm not sure that's the problem. Is it a problem that it tries to
>save? Is the folder write-protected? Do you get an error?
>
>In general, it's difficult to import non-simple LaTeX into LyX. There
>have been a lot of improvements to LaTeX importing recently. If you
>happen to be using Ubuntu, you can try the newest development version:
>http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
>(If I had to guess, though, I do not think this would solve your problem).
>
>Best,
>
>Scott




Re: Import plain latex from Scientific word

2013-02-26 Thread Mark Salmon
Buffer import latex appears in the bottom left hand corner of the screen
for a few more seconds when it goes away and is replaced by font
default
Thanks

On 26/02/2013 11:27, "Gyorgy SZEIDL"  wrote:

>hi mark,
>have you used the portable option when saving the file
>in swp?
>best regards
>györgy
>> Hi Mark,
>>
>> On Tue, Feb 26, 2013 at 5:41 AM, Mark Salmon 
>>wrote:
>>> Hi,
>>> I would be grateful for some urgent help. I am trying to transfer
>>>lecture
>>> slides  (Beamer) from Scientific word into Lyx 2.0.5. I have followed
>>>the
>>> wiki advice and saved from Sci word as plain latex. Then  I open a new
>>>file
>>> in Lyx and try and import the file- a see for about 2 seconds the
>>>folder in
>>> which I have stored my old sci word files and then it closes and takes
>>>me
>>> back to the empty Lyx file- so I cannot actually select the file I
>>>want to
>>> import. Its almost as if Lyx is immediately trying to save the new
>>>file- I
>>> don't know whats going on but it just doesn't give me the chance to
>>>import
>>> th file after I select import.
>> LyX does try to save after importing:
>> http://www.lyx.org/trac/ticket/8236
>>
>> But I'm not sure that's the problem. Is it a problem that it tries to
>> save? Is the folder write-protected? Do you get an error?
>>
>> In general, it's difficult to import non-simple LaTeX into LyX. There
>> have been a lot of improvements to LaTeX importing recently. If you
>> happen to be using Ubuntu, you can try the newest development version:
>> http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
>> (If I had to guess, though, I do not think this would solve your
>>problem).
>>
>> Best,
>>
>> Scott
>>
>




Re: Import plain latex from Scientific word

2013-02-26 Thread Mark Salmon
Hi Gyorgy,
Yes I did use the portable tex option when coming out of Sciword. I is a
problem with all my files not just one.
Thanks,
Mark

On 26/02/2013 11:27, "Gyorgy SZEIDL"  wrote:

>hi mark,
>have you used the portable option when saving the file
>in swp?
>best regards
>györgy
>> Hi Mark,
>>
>> On Tue, Feb 26, 2013 at 5:41 AM, Mark Salmon 
>>wrote:
>>> Hi,
>>> I would be grateful for some urgent help. I am trying to transfer
>>>lecture
>>> slides  (Beamer) from Scientific word into Lyx 2.0.5. I have followed
>>>the
>>> wiki advice and saved from Sci word as plain latex. Then  I open a new
>>>file
>>> in Lyx and try and import the file- a see for about 2 seconds the
>>>folder in
>>> which I have stored my old sci word files and then it closes and takes
>>>me
>>> back to the empty Lyx file- so I cannot actually select the file I
>>>want to
>>> import. Its almost as if Lyx is immediately trying to save the new
>>>file- I
>>> don't know whats going on but it just doesn't give me the chance to
>>>import
>>> th file after I select import.
>> LyX does try to save after importing:
>> http://www.lyx.org/trac/ticket/8236
>>
>> But I'm not sure that's the problem. Is it a problem that it tries to
>> save? Is the folder write-protected? Do you get an error?
>>
>> In general, it's difficult to import non-simple LaTeX into LyX. There
>> have been a lot of improvements to LaTeX importing recently. If you
>> happen to be using Ubuntu, you can try the newest development version:
>> http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
>> (If I had to guess, though, I do not think this would solve your
>>problem).
>>
>> Best,
>>
>> Scott
>>
>




Re: Import plain latex from Scientific word

2013-02-26 Thread Gyorgy SZEIDL

hi mark,
have you used the portable option when saving the file
in swp?
best regards
györgy

Hi Mark,

On Tue, Feb 26, 2013 at 5:41 AM, Mark Salmon  wrote:

Hi,
I would be grateful for some urgent help. I am trying to transfer lecture
slides  (Beamer) from Scientific word into Lyx 2.0.5. I have followed the
wiki advice and saved from Sci word as plain latex. Then  I open a new file
in Lyx and try and import the file- a see for about 2 seconds the folder in
which I have stored my old sci word files and then it closes and takes me
back to the empty Lyx file- so I cannot actually select the file I want to
import. Its almost as if Lyx is immediately trying to save the new file- I
don't know whats going on but it just doesn't give me the chance to import
th file after I select import.

LyX does try to save after importing:
http://www.lyx.org/trac/ticket/8236

But I'm not sure that's the problem. Is it a problem that it tries to
save? Is the folder write-protected? Do you get an error?

In general, it's difficult to import non-simple LaTeX into LyX. There
have been a lot of improvements to LaTeX importing recently. If you
happen to be using Ubuntu, you can try the newest development version:
http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
(If I had to guess, though, I do not think this would solve your problem).

Best,

Scott





Re: Import plain latex from Scientific word

2013-02-26 Thread Mark Salmon
Hi Scott,
Thanks for your reply. I don't know if it is saving the file or not-
that¹s just my reasoning. The problem is that as soon as I click on
import- plain latex- within a second it flashes to the folder where the
file I want to import is and immediately closes that window and returns me
to the virgin new file without giving me the chance to select the file to
import. It all happens so fast. I just select import- plain latex and
within a second I am back in the new empty file!!!
Thanks
Mark

On 26/02/2013 11:14, "Scott Kostyshak"  wrote:

>Hi Mark,
>
>On Tue, Feb 26, 2013 at 5:41 AM, Mark Salmon 
>wrote:
>> Hi,
>> I would be grateful for some urgent help. I am trying to transfer
>>lecture
>> slides  (Beamer) from Scientific word into Lyx 2.0.5. I have followed
>>the
>> wiki advice and saved from Sci word as plain latex. Then  I open a new
>>file
>> in Lyx and try and import the file- a see for about 2 seconds the
>>folder in
>> which I have stored my old sci word files and then it closes and takes
>>me
>> back to the empty Lyx file- so I cannot actually select the file I want
>>to
>> import. Its almost as if Lyx is immediately trying to save the new
>>file- I
>> don't know whats going on but it just doesn't give me the chance to
>>import
>> th file after I select import.
>
>LyX does try to save after importing:
>http://www.lyx.org/trac/ticket/8236
>
>But I'm not sure that's the problem. Is it a problem that it tries to
>save? Is the folder write-protected? Do you get an error?
>
>In general, it's difficult to import non-simple LaTeX into LyX. There
>have been a lot of improvements to LaTeX importing recently. If you
>happen to be using Ubuntu, you can try the newest development version:
>http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
>(If I had to guess, though, I do not think this would solve your problem).
>
>Best,
>
>Scott




Re: Import plain latex from Scientific word

2013-02-26 Thread Scott Kostyshak
Hi Mark,

On Tue, Feb 26, 2013 at 5:41 AM, Mark Salmon  wrote:
> Hi,
> I would be grateful for some urgent help. I am trying to transfer lecture
> slides  (Beamer) from Scientific word into Lyx 2.0.5. I have followed the
> wiki advice and saved from Sci word as plain latex. Then  I open a new file
> in Lyx and try and import the file- a see for about 2 seconds the folder in
> which I have stored my old sci word files and then it closes and takes me
> back to the empty Lyx file- so I cannot actually select the file I want to
> import. Its almost as if Lyx is immediately trying to save the new file- I
> don't know whats going on but it just doesn't give me the chance to import
> th file after I select import.

LyX does try to save after importing:
http://www.lyx.org/trac/ticket/8236

But I'm not sure that's the problem. Is it a problem that it tries to
save? Is the folder write-protected? Do you get an error?

In general, it's difficult to import non-simple LaTeX into LyX. There
have been a lot of improvements to LaTeX importing recently. If you
happen to be using Ubuntu, you can try the newest development version:
http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
(If I had to guess, though, I do not think this would solve your problem).

Best,

Scott


Re: Import Latex vs AMS Layout

2012-11-15 Thread Scott Kostyshak
On Thu, Nov 15, 2012 at 4:06 AM,   wrote:
> Dear Richard,
>
> Attached please find the files: the original lyx file (sample1.lyx), the 
> exported latex file (sampletex.tex), and the imported back lyx file 
> (sampletex.lyx). The Theorem module is not compiled and appear as \begin{lem}.

>From what I understand, this depends on
http://www.lyx.org/trac/ticket/5702 . This bug is fixed in trunk, so
you will have to wait until 2.1 or possibly 2.0.6. If you happen to be
using Ubuntu, it's very easy to install the PPA and get the
development version. Otherwise, you would need to compile LyX.

Scott


RE: Import Latex vs AMS Layout

2012-11-15 Thread R.Prihatin
Dear Richard,

Attached please find the files: the original lyx file (sample1.lyx), the 
exported latex file (sampletex.tex), and the imported back lyx file 
(sampletex.lyx). The Theorem module is not compiled and appear as \begin{lem}.

Thank you in advance for your help.

Regards,

Rahayu


From: Richard Heck [[email protected]]
Sent: Tuesday, November 13, 2012 7:18 PM
To: Prihatin, R. (Rahayu); lyx-users
Subject: Re: Import Latex vs AMS Layout

On 10/22/2012 10:16 AM, Rahayu wrote:
> I enjoy working with LyX very much,
> however I have to exchange .tex files with my colleagues,
> because Latex is the common format for them.
> So I export my work in LyX to .tex format, however when I get my
> file back, and I need to import the .tex file to LyX again,
> it doesn't recognize the Theorem and appear in
> ERT or latex box, which is so inconvenient.
>
> Anyone could help please?
>
What version of LyX are you using? Can you post the simplest possible
example file that causes this problem for you?

Richard



sample1.lyx
Description: sample1.lyx


sampletex.lyx
Description: sampletex.lyx


sampletex.tex
Description: sampletex.tex


Re: Import Latex vs AMS Layout

2012-11-13 Thread Richard Heck

On 11/13/2012 02:25 PM, Georg Baum wrote:

Richard Heck wrote:


On 10/22/2012 10:16 AM, Rahayu wrote:

I enjoy working with LyX very much,
however I have to exchange .tex files with my colleagues,
because Latex is the common format for them.
So I export my work in LyX to .tex format, however when I get my
file back, and I need to import the .tex file to LyX again,
it doesn't recognize the Theorem and appear in
ERT or latex box, which is so inconvenient.

Anyone could help please?


What version of LyX are you using? Can you post the simplest possible
example file that causes this problem for you?

Not needed, this is bug http://www.lyx.org/trac/ticket/5702. He sent the
same mail privately to me on october 23rd, and I already answered. If I had
known that others got the same mail my answer would have been different.


Ahh, that one again. Looks like I answered an old email

rh



Re: Import Latex vs AMS Layout

2012-11-13 Thread Georg Baum
Richard Heck wrote:

> On 10/22/2012 10:16 AM, Rahayu wrote:
>> I enjoy working with LyX very much,
>> however I have to exchange .tex files with my colleagues,
>> because Latex is the common format for them.
>> So I export my work in LyX to .tex format, however when I get my
>> file back, and I need to import the .tex file to LyX again,
>> it doesn't recognize the Theorem and appear in
>> ERT or latex box, which is so inconvenient.
>>
>> Anyone could help please?
>>
> What version of LyX are you using? Can you post the simplest possible
> example file that causes this problem for you?

Not needed, this is bug http://www.lyx.org/trac/ticket/5702. He sent the 
same mail privately to me on october 23rd, and I already answered. If I had 
known that others got the same mail my answer would have been different.


Georg



Re: Import Latex vs AMS Layout

2012-11-13 Thread Richard Heck

On 10/22/2012 10:16 AM, Rahayu wrote:

I enjoy working with LyX very much,
however I have to exchange .tex files with my colleagues,
because Latex is the common format for them.
So I export my work in LyX to .tex format, however when I get my
file back, and I need to import the .tex file to LyX again,
it doesn't recognize the Theorem and appear in
ERT or latex box, which is so inconvenient.

Anyone could help please?


What version of LyX are you using? Can you post the simplest possible
example file that causes this problem for you?

Richard



Re: import ms word

2012-09-19 Thread Richard Heck

On 09/19/2012 08:05 AM, Csikos Bela wrote:

Hello:

In openSUSE 11.2 system lyx 2.0.2 had File->
Import->MS Word option. In openSUSE 12.1 lyx
2.0.4 this option is missing.
Was it removed from lyx, or does it require some
dependency?

Seems to require wvCleanLatex.

rh



Re: Import .html

2012-05-02 Thread Rich Shepard

On Wed, 2 May 2012, Richard Heck wrote:


You can't change this in the widget? Here, there is a combo box at the
bottom that shows "*.txt" and that can be changed.


Richard,

  I missed the wildcard option in the combo box list.

Thanks,



Re: Import .html

2012-05-02 Thread Richard Heck

On 05/02/2012 11:26 AM, Rich Shepard wrote:
  I read in the Users Guide that .html files can be imported using 
File ->

Import -> Plain text (join lines). However, when I try to find the .html
file in the file chooser widget, only .txt files are displayed.

You can't change this in the widget? Here, there is a combo box at the 
bottom

that shows "*.txt" and that can be changed.

Richard



Re: Import/Export Error Information (word2lyx)

2012-03-06 Thread Richard Heck

On 03/06/2012 01:23 PM, Rob Oakes wrote:

Dear Developers,

I'm getting ready to publish the source for Word2LyX, but ran into one
last problem. I created an input filter/filetype to completely automate
the conversion of Word documents.

However, when run, I'm getting an error:

An error occurred while running:

python "inputfile.docx" "outputfile.lyx"

Is there any way to look at the debug output to try and track what might
be causing the error.

If that's the error, then the problem looks to be a missing command. 
You're asking python to run the docx file. I'd check the definition of 
the converter.


The file format and the definition of the converter should probably 
happen within LyX, anyway. I'll be happy to add this to 2.0.4.


Richard



Re: Import into LyX

2012-02-03 Thread Murat Yildizoglu
Hi Rob,

Very nice initiative, thank you very much! Even importing/exporting only docx 
would be wonderful for collaboration with Oird people. 

Do you also plan a clean import option with which even these local styles would 
be dropped in order to have a clean Lyx document with just the structure and 
the components (body text, references, figures, tables and math)?

Murat

--
Murat Yildizoglu
[email protected]

Le 2 févr. 2012 à 19:53, Rob Oakes  a écrit :

> 
> On Feb 2, 2012, at 11:26 AM, Les Denham wrote:
> 
>> Supporting Styles and Figures is a major achievement as far as I am
>> concerned. I assume you don't do much in deciphering the fingerpainting
>> favored by most Word users. Such crass formatting is probably best left
>> as Standard in LyX anyway.
> 
> Right, I'm not getting into the game where I'm going to try and support all 
> of the formatting combinations that Word users can come up with. But I do 
> intend to support styles in all of their incarnations: paragraph, character, 
> and otherwise. To make this possible, what I'll probably do is use the 
> book/article classes as a basis for the import and then generate placeholder 
> entries for other styles in the LyX local layout.
> 
> That will prevent errors and problems and allow for you to convert to the 
> document class of your choice without problems. Once there, you remove the 
> placeholder entries, or define them further.
> 
> Cheers,
> 
> Rob


Re: Import into LyX

2012-02-02 Thread Liviu Andronic
On Thu, Feb 2, 2012 at 9:19 PM, Guenter Milde  wrote:
> How good/bad is the doc <-> docx conversion in OpenOffice/LibreOffice?
>
My experience with OpenOffice and .docx isn't very good: I always had
the feeling that .doc support was better than .docx. The issues
concerned mainly disappearing formatting.

Liviu


Re: Import into LyX

2012-02-02 Thread Guenter Milde
On 2012-02-02, Rob Oakes wrote:

> How important is support of .doc?

IMO, you should concentrate on docx <-> lyx. One tool for one task.
If it turns out that parts can be reused for doc<->lyx later, fine.

How good/bad is the doc <-> docx conversion in OpenOffice/LibreOffice?

> If I go ahead with support for docx, I think I can write a full
> featured import/export plugin, including:

Good news.


> How to deal with maths is still up in the air. LyX offers the ability
> to typeset nearly anything mathematical, which means there's a very
> large set of markup to support. Exporting to MathML might be one
> option, but that would require Word users to install a plugin.

MathML is already implemented in LyX, so this would be a start.

A converter between (La)TeX math and the `Unicode Nearly Plain Text
Encoding of Mathematics` (http://www.unicode.org/notes/tn28/) would be a
much valued tool also outside of LyX.


Thanks,

Günter



Re: Import into LyX

2012-02-02 Thread Rob Oakes

On Feb 2, 2012, at 11:26 AM, Les Denham wrote:

> Supporting Styles and Figures is a major achievement as far as I am
> concerned. I assume you don't do much in deciphering the fingerpainting
> favored by most Word users. Such crass formatting is probably best left
> as Standard in LyX anyway.

Right, I'm not getting into the game where I'm going to try and support all of 
the formatting combinations that Word users can come up with. But I do intend 
to support styles in all of their incarnations: paragraph, character, and 
otherwise. To make this possible, what I'll probably do is use the book/article 
classes as a basis for the import and then generate placeholder entries for 
other styles in the LyX local layout.

That will prevent errors and problems and allow for you to convert to the 
document class of your choice without problems. Once there, you remove the 
placeholder entries, or define them further.

Cheers,

Rob

Re: Import into LyX

2012-02-02 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/02/12 19:27, Liviu Andronic wrote:
> On Thu, Feb 2, 2012 at 6:50 PM, Rob Oakes 
> wrote:
>> very nice. Hearing your opinions about doc support (versus only
>> docx support) would also be very helpful.
>> 
> If .docx-only support simplifies your task and helps ensure that
> your tool would support a good deal of functionality, then I'm all
> for it. Support for .doc can be worked around, not least by
> resaving the document in LibreOffice.

+1

Rainer

> 
> Liviu


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  [email protected]

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8q23YACgkQoYgNqgF2egoqZgCeODGYVqc4jZaEvQUMyvnaVNXX
8awAnRjij2X9+qCDqatbz7BiAxYcukh0
=HXNt
-END PGP SIGNATURE-


Re: Import into LyX

2012-02-02 Thread stefano franchi
On Thu, Feb 2, 2012 at 12:27 PM, Liviu Andronic  wrote:
> On Thu, Feb 2, 2012 at 6:50 PM, Rob Oakes  wrote:
>> very nice. Hearing your opinions about doc support (versus only docx
>> support) would also be very helpful.
>>
> If .docx-only support simplifies your task and helps ensure that your
> tool would support a good deal of functionality, then I'm all for it.
> Support for .doc can be worked around, not least by resaving the
> document in LibreOffice.
>

Absolutely. Go for docx. Converting between .doc and .docx is
relatively painless.


Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

[email protected]
http://stefano.cleinias.org


Re: Import into LyX

2012-02-02 Thread Liviu Andronic
On Thu, Feb 2, 2012 at 6:50 PM, Rob Oakes  wrote:
> very nice. Hearing your opinions about doc support (versus only docx
> support) would also be very helpful.
>
If .docx-only support simplifies your task and helps ensure that your
tool would support a good deal of functionality, then I'm all for it.
Support for .doc can be worked around, not least by resaving the
document in LibreOffice.

Liviu


Re: Import into LyX

2012-02-02 Thread Les Denham
On Thu, 2 Feb 2012 10:50:05 -0700
Rob Oakes  wrote:

> In the meantime, hearing about what features should be supported
> would be very nice. Hearing your opinions about doc support (versus
> only docx support) would also be very helpful.

I would be quite happy with only .docx support. As time goes by more
and more of the people who insist on sending me Word documents get new
versions of Word which default to that format. For the .doc format
documents I can always use LibreOffice to convert to .docx.

Supporting Styles and Figures is a major achievement as far as I am
concerned. I assume you don't do much in deciphering the fingerpainting
favored by most Word users. Such crass formatting is probably best left
as Standard in LyX anyway.

Les


Re: Import into LyX

2012-02-02 Thread Rob Oakes
Thank you everyone for the comments so far. I really appreciate hearing from 
others as it helps me to build out a more detailed use-case. In addition to the 
earlier questions, I have one more:

How important is support of .doc?

I know that it is the standard upon which the publishing industry is built, but 
… It's a real pain to parse. In contrast, docx (the default file format in Word 
2007 and 2010) is very parse. It's basically an XML document in a zipped folder 
with assets.

I've already got a working prototype that can take a very simple LyX document 
and converts it to docx. Here's what supported:

1.) Syles
2.) Images/Figures

Expanding this prototype is pretty easy. Trying to support doc is hard 
(painfully hard). There are pretty good import filters for OpenOffice and 
AbiWord for docx. docx is supported in Microsoft Word 2007 and 2010, and users 
of 2003 can download a plugin which is capable of reading it.

If I go ahead with support for docx, I think I can write a full featured 
import/export plugin, including:

1.) Bibliographies using Word's native format and (maybe) Endnote (I've found a 
python library that can parse BibTeX and building export for these two formats 
is do-able)
2.) Cross-references (I still need to figure out how this is done in Word, but 
so-far, the docx standard is pretty easy to follow)
3.) Comments and Change Tracking

How to deal with maths is still up in the air. LyX offers the ability to 
typeset nearly anything mathematical, which means there's a very large set of 
markup to support. Exporting to MathML might be one option, but that would 
require Word users to install a plugin. Exporting to Office Math Language (the 
new math language in Office 2007 and 2010) is another, but proprietary. 
Exporting to MathType is a third, which is both proprietary and requires that 
users install an add-in (which they have to pay for). I'm not particularly 
thrilled about any of the above. I'll continue to research and report what I 
find.

In the meantime, hearing about what features should be supported would be very 
nice. Hearing your opinions about doc support (versus only docx support) would 
also be very helpful.

Cheers,

Rob

Re: Import into LyX

2012-02-02 Thread Liviu Andronic
Hello Rob
To echo others, it's great that you'd like to work on this.


On Wed, Feb 1, 2012 at 8:59 PM, Rob Oakes  wrote:
> What features would you consider essential?
>
> (Right now, styles based conversion looks pretty easy -- going from Heading
> 1 in Word to Chapter, for example. But I'm not sure how well it would
> convert maths. This is something I'll still need to look at, and may require
> writing an additional module.)
>
Reasonably fussless import of .doc in LyX, and reasonably fussless
export from LyX to .doc.


> Does the script need to support special cases, such as importing Word "track
> changes"?
>
Although I do appreciate others' arguments for having this, I would
believe that it's more of a perk. If your tool can simply translate
from Word to LyX, and vice-versa (I'm not talking of 'round-trip'),
the it would already be a great achievement. Accepting track changes
can be done in Word (and LibreOffice, I assume).


> Just how important do you consider "round-tripping" a document, e.g., going
> from LyX to Word and back to LyX.
>
I'm afraid this is more like chasing a wild goose. If LyX has a hard
time to round-trip to LaTeX, as it currently is more or less, then I'm
sceptical that round-trips to Word can be more reliable. It would be
great, however, to be able to reasonably import .doc in LyX, and
reasonably export from LyX to .doc. Reliable round-tripping should be
more of a secondary goal.

Regards
Liviu


Re: Import into LyX

2012-02-02 Thread Les Denham
On Wed, 01 Feb 2012 12:59:33 -0700
Rob Oakes  wrote:

> Any thoughts would be greatly appreciated.

One thing you do not mention is handling figures. The documents I work
with tend to be very heavily illustrated, and I like LyX because it
handles figures so much better than Word that there is no comparison.
But most of my collaborators refuse to consider anything but Word, and
hand me their contributions -- replete with figures on every page -- in
the form of a .docx file which is so messed up LibreOffice renders it
in a barely recognizable form. I usually end up asking for a PDF file,
and I go through it copying text from it and pasting it into LyX, and
using Acrobat Reader's snapshot tool to get the figures into Gimp.

A tool which could import figure-heavy Word documents into LyX would be
wonderful. A tool which would allow export of such documents into Word
would be even more wonderful (and also a miracle). The client for a
project currently near completion would like the final report (a 250
page document with over 200 figures, an index, and a bibtex
bibliography) in Word format as well as in PDF format and paper. My
current plan for that is to export the LyX to HTML and try to import it
into LibreOffice, but I'm not very hopeful about getting a useful
result.

Les


Re: Import into LyX

2012-02-02 Thread David L. Johnson

On 02/02/2012 11:04 AM, UD wrote:
IMHO it is unlikely that math-heavy documents are produced by anything 
but Latex/Lyx.
I applaud the initiative to make MS-WORD/Lyx conversion easier.  I am 
sure it will have

many appreciative users.


Unfortunately, there are math-heavy documents that are produced using 
Word.  And not only is it difficult to translate such things into LyX or 
even LaTeX, they also don't load into Abiword or Open Office.  I 
actually am a co-author of a math paper that I could not read except 
when my collaborator printed it out for me, since he only used Word -- 
and he is a prolific writer, having written at least 4 advanced 
mathematical texts, all of which I am sure the publishers had to typeset 
from scratch into LaTeX in order to publish.  But I suspect that Word 
math translation will be a very difficult task which in the end will be 
pointless, anyway, since I am sure MS will continually change the 
encoding to prevent precisely this procedure.


--

David L. Johnson

"A foolish consistency is the hobgoblin of little minds, adored by
little statesmen and philosophers and divines."
--Ralph Waldo Emerson



Re: Import into LyX

2012-02-02 Thread UD
IMHO it is unlikely that math-heavy documents are produced by anything 
but Latex/Lyx.
I applaud the initiative to make MS-WORD/Lyx conversion easier.  I am 
sure it will have

many appreciative users.
EK

On 02/02/2012 10:55 AM, Richard Heck wrote:

On 02/01/2012 03:11 PM, Xu Wang wrote:

Hey Rob, that sounds like quite a nice project you have in mind!

My two cents: it's not worth carrying it out if you can't get the 
math to import somewhat well. That seems to be the biggest problem 
with most ways of converting doc to lyx. I understand it's very 
difficult, but I think it's also the most important.


As far as I remember, the main complaint about writer2latex has been 
that it produces ugly LaTeX. In the latest versions of LibreOffice, 
however, there is an option to export "Ultra-clean" LaTeX, which works 
pretty well. Of course, this relies upon Libre's importing Word's math 
well. So for math heavy documents, that seems a good way to go at the 
moment.


Richard



--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*Director*, The laboratory of Visual & Computational Neuroscience
*Director*, Center for Excellence in Computational & Systems Neuroscience
/Friedman Brain Institute/
Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology,
The Mount Sinai School of Medicine
One Gustave Levy Place,
NY, NY, 10029


Re: Import into LyX

2012-02-02 Thread Richard Heck

On 02/01/2012 03:11 PM, Xu Wang wrote:

Hey Rob, that sounds like quite a nice project you have in mind!

My two cents: it's not worth carrying it out if you can't get the math 
to import somewhat well. That seems to be the biggest problem with 
most ways of converting doc to lyx. I understand it's very difficult, 
but I think it's also the most important.


As far as I remember, the main complaint about writer2latex has been 
that it produces ugly LaTeX. In the latest versions of LibreOffice, 
however, there is an option to export "Ultra-clean" LaTeX, which works 
pretty well. Of course, this relies upon Libre's importing Word's math 
well. So for math heavy documents, that seems a good way to go at the 
moment.


Richard



Re: Import into LyX

2012-02-02 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/02/12 04:25, stefano franchi wrote:
> Hi Rob,

Hi Rob

I reply to Stefano's mail, as I agree with many points and don't want
to repeat them.
> 
> first: great project! I constantly struggle with converting file
> to and from MS Word. I now use the Word-->OOffice--> Latex--> Lyx
> Route, with the needed manual cleanup of Latex code and an
> additional cleanup of ERT code from LyX after LaTeX import. It is
> not fun. A project like yours would make LyX much, much easier to
> use in an academic environment.

Absolutely - I am working in biological sciences, and one can convince
some Journals to accept submission in LaTeX, but one can not convince
co-authors to use LyX 

> 
> I am going to address your questions from the perspective of a 
> Humanities scholar. My observations may not be representative of
> the vast majority of current LyX/LaTeX users. On the other hand, a
> project like yours may potentially expand LyX's user base by an
> order of magnitude, in my opinion. So here we go:
> 
>> Is this a tool that would prove useful to yourselves, your
>> collaborators, and others? What features would you consider
>> essential?
> 
>> 
>> (Right now, styles based conversion looks pretty easy -- going
>> from Heading 1 in Word to Chapter, for example. But I'm not sure
>> how well it would convert maths. This is something I'll still
>> need to look at, and may require writing an additional module.)
>> 
> 
> As I said, it would be very important. In my experience, there are 
> three main scenarios where the tool would be precious:
> 
> 1. Conversion of personal legacy documents (all the stuff you
> wrote before you discovered LyX) 2. Collaboration with colleagues
> and students 3. Submission to journals (I don't know of a single
> journal in my field and related fields that accepts Latex. They all
> want MS Word.)

For me, scenarios 2 and 3 are the most important, and 2 would require
roundtrip conversion *with preservation of change tracking and
comments* would be *very* important! In addition, highlioghting should
also be maintained.

> 
> 
> 1 and 3 are obviously one way (in opposite direction). 2 requires
> a Word<-->LyX roundtrip
> 
> I think the most important scenarios are 2 and 3. And obviously 2 
> includes 3 and 1, so solving the collaboration scenario would be 
> optimal.
> 
> Features:
> 
> I think a good starting assumption is that final formatting will
> NOT be provided by MS Word. If you (or your team) has to produce 
> camera-ready output at the end of the collaborative work, LyX is a 
> much better tool. If you submit to a journal or a press, they will
> do the formatting.This means most Word-based typography can be 
> eliminated. I mean: margins, typefaces, font sizes, etc, with the 
> exception of different scripts, which are of course crucial
> (although with Unicode this problem should be solved now).  Only
> semantic formatting should be kept: emphasis/italics, sectioning
> info, lists, footnotes, etc. Plus all info about pictures and
> picture placement, tables (these are not trivial, I guess) and
> similar floats, and, mostly for books, indexing information.

Agreed here - Section <-> Heading 1 and so on, formating of individual
words (referred as semantic formatting) has to be maintained (italics
for species names *very* important.

> 
> Preserving tracking info wold also be very useful.

See above.

> 
> Cross-referencing would also be important (I have no idea how Word 
> does it, if at all).

Agreed.

> 
> Math, on the other hand, would not be very important. That is: I 
> assume math would be finally produced by Latex, if camera-ready is 
> required, or by the publishing house. A rough approximation would
> be sufficient (this from a Humanities perspective, of course).

Also agreed - could be to image, from whatever source, and the
original one could be maintained in a special comment field behind, so
that on re-import this could be used? In Word, the LaTeX code could
even be edited.

> 
> References would be very very important.

Essential I would say.
Problem might be to maintain BiBeX.

> 
>> What is the best tool to look at for guidance in creating a new
>> script for word2lyx? tex2lyx?
> 
> I would look at Word2Tex, which is proprietary, however. In
> general, though, most existing tools try hard to preserve the look
> of a document instead of following the approach I recommend,
> thereby getting into all sort of complications. There was a very
> useful tool for Framemaker <--> LyX conversion that stuck to the
> semantic-only approach and worked pretty well (I was a Framemaker
> user before mo

Re: Import into LyX

2012-02-02 Thread Guenter Milde
On 2012-02-02, stefano franchi wrote:

>> Is this a tool that would prove useful to yourselves, your collaborators,
>> and others?
>> What features would you consider essential?

...

> Math, on the other hand, would not be very important. That is: I
> assume math would be finally produced by Latex, if camera-ready is
> required, or by the publishing house. A rough approximation would be
> sufficient (this from a Humanities perspective, of course).

As a physicist, I'd say math import is the most problematic part of the
Word-LyX interaction now and most needed.

(But you realize that even without math, there are users that would like to
see the tool.)

Günter



Re: Import into LyX

2012-02-01 Thread stefano franchi
Hi Rob,

first: great project! I constantly struggle with converting file to
and from MS Word. I now use the Word-->OOffice--> Latex--> Lyx Route,
with the needed manual cleanup of Latex code and an additional cleanup
of ERT code from LyX after LaTeX import. It is not fun. A project like
yours would make LyX much, much easier to use in an academic
environment.

I am going to address your questions from the perspective of a
Humanities scholar. My observations may not be representative of the
vast majority of current LyX/LaTeX users. On the other hand, a project
like yours may potentially expand LyX's user base by an order of
magnitude, in my opinion. So here we go:

> Is this a tool that would prove useful to yourselves, your collaborators,
> and others?
> What features would you consider essential?

>
> (Right now, styles based conversion looks pretty easy -- going from Heading
> 1 in Word to Chapter, for example. But I'm not sure how well it would
> convert maths. This is something I'll still need to look at, and may require
> writing an additional module.)
>

As I said, it would be very important. In my experience, there are
three main scenarios where the tool would be precious:

1. Conversion of personal legacy documents (all the stuff you wrote
before you discovered LyX)
2. Collaboration with colleagues and students
3. Submission to journals (I don't know of a single journal in my
field and related fields that accepts Latex. They all want MS Word.)


1 and 3 are obviously one way (in opposite direction). 2 requires a
Word<-->LyX roundtrip

I think the most important scenarios are 2 and 3. And obviously 2
includes 3 and 1, so solving the collaboration scenario would be
optimal.

Features:

I think a good starting assumption is that final formatting will NOT
be provided by MS Word. If you (or your team) has to produce
camera-ready output at the end of the collaborative work, LyX is a
much better tool. If you submit to a journal or a press, they will do
the formatting.This means most Word-based typography can be
eliminated. I mean: margins, typefaces, font sizes, etc, with the
exception of different scripts, which are of course crucial (although
with Unicode this problem should be solved now).  Only semantic
formatting should be kept: emphasis/italics, sectioning info, lists,
footnotes, etc. Plus all info about pictures and picture placement,
tables (these are not trivial, I guess) and similar floats, and,
mostly for books, indexing information.

Preserving tracking info wold also be very useful.

Cross-referencing would also be important (I have no idea how Word
does it, if at all).

Math, on the other hand, would not be very important. That is: I
assume math would be finally produced by Latex, if camera-ready is
required, or by the publishing house. A rough approximation would be
sufficient (this from a Humanities perspective, of course).

References would be very very important.

> What is the best tool to look at for guidance in creating a new script for
> word2lyx? tex2lyx?

I would look at Word2Tex, which is proprietary, however. In general,
though, most existing tools try hard to preserve the look of a
document instead of following the approach I recommend, thereby
getting into all sort of complications. There was a very useful tool
for Framemaker <--> LyX conversion that stuck to the semantic-only
approach and worked pretty well (I was a Framemaker user before moving
to LyX). It was very simple and I believe it is still available:
http://pages.cs.brandeis.edu/~pablo/mif2lyx. It is a Perl script.


> Does the script need to support special cases, such as importing Word "track
> changes"?

See above

> Just how important do you consider "round-tripping" a document, e.g., going
> from LyX to Word and back to LyX.

Yes!

> Is there anyone who might be interested in collaborating on this?
>

I am afraid I cannot help with coding. But I am willing to help in
other ways if needed.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

[email protected]
http://stefano.cleinias.org


Re: Import into LyX

2012-02-01 Thread Xu Wang
Hey Rob, that sounds like quite a nice project you have in mind!

My two cents: it's not worth carrying it out if you can't get the math to
import somewhat well. That seems to be the biggest problem with most ways
of converting doc to lyx. I understand it's very difficult, but I think
it's also the most important.

I don't mean to discourage you, just my two cents. I don't think importing
track changes is important at all (they should be able to go through the
changes in word and get rid of them). And I don't think round-tripping is
important. Of course, if you could pull these features off they would be
nice additions.

I looked at the google code project and it looks like it's still under
development. Is that correct? It would be nice to choose a library that is
still being actively developed.

Good luck with it all and thanks for your effort on this. I think in the
end it would indeed help a lot of would-be LyXers or already-LyXers but
need to collaborate with a Word-er.

Xu

On Wed, Feb 1, 2012 at 2:59 PM, Rob Oakes  wrote:

>  Dear Users and Developers,
>
> Some time ago, I was experimenting with importing documents into LyX
> (specifically about how to crack the import MS Word to LyX nut). In the
> process, I got really excited about using OpenOffice to convert the word
> document to HTML, running tidy on the HTML and then importing that way.
> (The original blog article about this can be found at
> http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.)
>
> Since I'm (re)writing a book chapter about this topic, I thought that I
> would look at alternative strategies for importing Word (and other file
> formats) into LyX. While doing research, I came across a (potentially) much
> better solution.
>
> Somewhat recently (in 2010), a group of Python libraries were written that
> handle document conversions. They are part of the epub-tools library (
> http://code.google.com/p/epub-tools/). (I've been experimenting with ePub
> document creation from LyX, which is how I found them.)
>
> One of the tools in the library is able to parse Microsoft word documents
> and convert them to XHTML in preparation for generating an ePub file. I
> think that the tool can be adapted for directly converting Word docs to
> LyX. Not to LaTeX and then to LyX, but *directly to LyX*.
>
> I'm putting together a library to experiment with direct conversions (this
> is ostensibly being done for the never-ending book project, but will be
> released as open code), but before getting too deep into development, I
> wanted to poll:
>
>1. Is this a tool that would prove useful to yourselves, your
>collaborators, and others?
>2. What features would you consider essential?
>
>(Right now, styles based conversion looks pretty easy -- going from
>Heading 1 in Word to Chapter, for example. But I'm not sure how well it
>would convert maths. This is something I'll still need to look at, and may
>require writing an additional module.)
>
> 3. What is the best tool to look at for guidance in creating a new
>script for word2lyx? tex2lyx?
>4. Does the script need to support special cases, such as importing
>Word "track changes"?
>5. Just how important do you consider "round-tripping" a document,
>e.g., going from LyX to Word and back to LyX.
>6. Is there anyone who might be interested in collaborating on this?
>
> Any thoughts would be greatly appreciated.
>
> Cheers,
>
> Rob Oakes
>


Re: import tex error

2011-04-26 Thread Richard Heck

On 04/26/2011 12:02 PM, Sebastian Krämer wrote:

On 04/24/2011 09:20 PM, Richard Heck wrote:

This could be some kind of configuration issue. Try removing the
preferences file from your LyX user directory (or just renaming it). Or
try running LyX with the -userdir option, specifying some totally new
directory, e.g.:
 # lyx -userdir /tmp/lyx
should work for Linux and OSX.

The error message stays the same even with a fresh configuration.


Hmm.

What's the path to the tex2lyx file? Is there a space in the pathname 
somewhere? I'm a bit at a loss


Richard




Re: import tex error

2011-04-26 Thread Sebastian Krämer
On 04/24/2011 09:20 PM, Richard Heck wrote:
> This could be some kind of configuration issue. Try removing the
> preferences file from your LyX user directory (or just renaming it). Or
> try running LyX with the -userdir option, specifying some totally new
> directory, e.g.:
> # lyx -userdir /tmp/lyx
> should work for Linux and OSX.

The error message stays the same even with a fresh configuration.


Re: import tex error

2011-04-24 Thread Richard Heck

On 04/24/2011 08:26 AM, Sebastian Krämer wrote:

On 04/23/2011 03:33 PM, Richard Heck wrote:

Is this a bug?


Sounds like it. There have been changes in tex2lyx since 1.6.

Hello Richard,

I re-ran the procedure from terminal and found the following output:


sh: -f: Kommando nicht gefunden. (= "command not found")
Error: Cannot convert file

An error occurred whilst running  -f 'ml1_3.tex' 'ml1_3.lyx'

So it appears to be a problem with spawning the command in the shell (?)

I'll probably open a ticket about it (if not vetoed).

This could be some kind of configuration issue. Try removing the 
preferences file from your LyX user directory (or just renaming it). Or 
try running LyX with the -userdir option, specifying some totally new 
directory, e.g.:

# lyx -userdir /tmp/lyx
should work for Linux and OSX.

Richard



Re: import tex error

2011-04-24 Thread Sebastian Krämer
On 04/23/2011 03:33 PM, Richard Heck wrote:
>> Is this a bug?
>>
> Sounds like it. There have been changes in tex2lyx since 1.6.

Hello Richard,

I re-ran the procedure from terminal and found the following output:

> sh: -f: Kommando nicht gefunden. (= "command not found")
> Error: Cannot convert file
> 
> An error occurred whilst running  -f 'ml1_3.tex' 'ml1_3.lyx'

So it appears to be a problem with spawning the command in the shell (?)

I'll probably open a ticket about it (if not vetoed).


Sebastian


Re: import tex error

2011-04-23 Thread Richard Heck

On 04/23/2011 04:40 AM, Sebastian Krämer wrote:

Hi there!

I'm getting an error when I try to import a tex source file to lyx:


Cannot convert file
An error occurred whilst running  -f 'ml1_3.tex' 'ml1_3.lyx'

If however I do the convertion with the tex2lyx1.6 script, a lyx file is
created successfully.

I'm using latest svn (r38473) from 1_6_X branch, running the lyx binary
via script which calls
~/src/lyx-svn/build/bin/lyx1.6 -sysdir ~/src/lyx-svn/lib "$@"
(I do that because I don't want to install this self-compiled lyx
version system-wide. There appears to be something missing with the
package that cpack creates but that's another issue.)

If interested, I can provide the tex file.

Is this a bug?


Sounds like it. There have been changes in tex2lyx since 1.6.

What would really be helpful is if you could provide a MINIMAL file that 
causes the problem. I.e., erase as much as you can until you don't get 
it any more. Then we'll actually know what the issue is.


You might open a bug on the bug tracker and attach that file.

Richard



Re: Import LyX File

2011-02-13 Thread Liviu Andronic
On Sun, 13 Feb 2011 20:21:55 +0100, Bruce Pourciau  
 wrote:


I attached a file created with LyX 1.5.7 at home to an email and sent it  
to my office, where it arrived with its LyX code displayed (with first  
line "#LyX 1.5.7 created this file" following five lines of Apple Mail  
content information). How do I open this file in LyX 1.6.5 at my office?



Unless I'm missing something obvious, this should be simple.
- Copy all the lines starting with "#LyX 1.5.7 created this file" until  
the end, and paste them into a text editor.

- If Apple Mail added unnecessary lines, remove them
- Save the text file as 'file.lyx'.

Then 1.6.5 should recognise it as a valid LyX file. Regards
Liviu




Re: Import/export errors

2011-01-24 Thread Michelle Bottorff

On Jan 23, 2011, at 12:15 AM, Dr Eberhard W Lisse wrote:

> Michelle,
> 
> open the RTF in OpenOffice (or NeoOffice on the Mac :-)-O) into
> which you have installed the Writer2LateX extension. Then you
> export it to Latex, paying attention to the screen that comes up
> by way of using the Ultra-Clean export.


Thank you for your reply.

Alas, I do not currently have NeoOffice installed on my machine.

I think my personal preference would be to run Lyx or even just rtf2latex2e 
from the terminal, so I could get the better error messages and maybe have a 
chance of finding out what is going wrong. Fixing the problems that I'm having 
with Lyx seems like a better long-time solution than merely working around 
them.  (Especially if all that is wrong is that I need to alter a few 
configuration files, or reinstall a package or two.)

But someone would need to do a little hand-holding for me, because, this is 
entirely out of my area of expertise.  (Although, FWIW, I am good at following 
directions.  I have successfully installed php and mysql and done a number of 
other command line tasks, using instructions found online.)

I guess in lieu of that, I will be hunting down a copy of NeoOffice.



Re: Import/export errors

2011-01-22 Thread Dr Eberhard W Lisse
Michelle,

open the RTF in OpenOffice (or NeoOffice on the Mac :-)-O) into
which you have installed the Writer2LateX extension. Then you
export it to Latex, paying attention to the screen that comes up
by way of using the Ultra-Clean export.

Then you run tex2lyx and have a look for evil red text, which you
then replace in the TeX file and run tex2lyx again (with the -f
option).

For each chapter of my wife's Honors thesis the cycle took about 15
minutes, even with a few iteration, and it worked very well.

el


On 1/23/11 1:41 AM, Michelle Bottorff wrote:
> 
> On Jan 22, 2011, at 5:32 PM, Richard Heck wrote:
> 
>> My main suggestion, if you are able, would be to run LyX from a
>> terminal, as you will then get much more detailed error messages.
>> It is possible that there is some configuration problem with
>> these programs, but I am not on Mac and so cannot say for sure.
> 
> I have access to a terminal, but I would need instructions telling
> me how to do whatever it is I'm supposed to be doing.
> 
>> I'm not sure why you are converting to and from rtf, but if you
>> just want to import some old documents of your own, you might
>> also try running rtf2latex2e from a terminal and see how that
>> goes.
> 
> I do want to import some "old documents", yes.
> 
> But rtf is the favored format for emailing manuscripts to people
> for beta-reading amoung my writer friends.  It would be nice to
> have it available to me.
> 
> 
> 
> 




Re: Import/export errors

2011-01-22 Thread Michelle Bottorff

On Jan 22, 2011, at 5:32 PM, Richard Heck wrote:

> My main suggestion, if you are able, would be to run LyX from a terminal, as 
> you will then get much more detailed error messages. It is possible that 
> there is some configuration problem with these programs, but I am not on Mac 
> and so cannot say for sure.

I have access to a terminal, but I would need instructions telling me how to do 
whatever it is I'm supposed to be doing.

> I'm not sure why you are converting to and from rtf, but if you just want to 
> import some old documents of your own, you might also try running rtf2latex2e 
> from a terminal and see how that goes.

I do want to import some "old documents", yes.

But rtf is the favored format for emailing manuscripts to people for 
beta-reading amoung my writer friends.  It would be nice to have it available 
to me. 





Re: Import/export errors

2011-01-22 Thread Richard Heck

On 01/22/2011 03:58 PM, Michelle Bottorff wrote:

Hi, new user here. I really liked what it sounded like Lyx was supposed to do, 
so I installed Tex (which I had never used before) just so I could try it out.

I'm using Lyx 1.6.8 on Mac OS 10.6.5 and an installation of Tex Live 2010

When I try import any rtf files I get an error message that says:

An error occurred whilst running rtf2latex2e 'NAMEOFFILE.rtf'

When I try save as rtf I get:
An error occurred whilst running latex2rtf '_NAMEOFFILE.tex'

I tried importing html files and I got:

An error occurred whilst running java -jar htmltolatex.jar -input
'NAMEOFFILE.html' -

I created an html file from a lyx document, so the html export does seem to be 
working, but when I tried to import those files -- I get the same error as I do 
from my own html files.

If someone could help me figure out how to get my files imported, I'd be very 
grateful.

My main suggestion, if you are able, would be to run LyX from a 
terminal, as you will then get much more detailed error messages. It is 
possible that there is some configuration problem with these programs, 
but I am not on Mac and so cannot say for sure.


I'm not sure why you are converting to and from rtf, but if you just 
want to import some old documents of your own, you might also try 
running rtf2latex2e from a terminal and see how that goes.


Richard








Re: Import track changes from LaTeX?

2010-11-15 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
> True - then I will see that I push the conversion of writer2latex, so
> that track changes in odt files are convertible to the LyX commands
> \lyxadded{} and \lyxdeleted{}. Probably one can push the update of
> tex2lyx through that?

The problem is that we will have to add support for the features one by one, 
in the order they appeared in LyX (due to the file format changes these 
features entailed).

And, as it were, this seems to be not the most attractive part of LyX for many 
developers. I have only seen two developers working really hard on tex2lyx 
during the last months, Uwe and Jean-Marc. I suggest you try to catch the 
attention of either of them.

Jürgen


Re: Import track changes from LaTeX?

2010-11-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/15/2010 11:32 AM, Jürgen Spitzmüller wrote:
> Rainer M Krug wrote:
>> I exported the attached LyX file (ChangeTracking.lyx) to LaTeX (with
>> "Show changes in output" enabled) (ChangeTracking.tex) and re-imported
>> it from LaTeX into LyX (ChangeTracking_after_re-import.lyx), but the
>> changes are not imported as changes, but as ERT boxes.
>>
>> Is there a way of re-importing from LaTeX, so that the changes as
>> exported are reflected in the re-import?
> 
> No. See:
> http://www.lyx.org/trac/ticket/4213

Thanks - I haven't checked there.

> 
> Alas, tex2lyx is still lagging behind LyX's feature expansion.

True - then I will see that I push the conversion of writer2latex, so
that track changes in odt files are convertible to the LyX commands
\lyxadded{} and \lyxdeleted{}. Probably one can push the update of
tex2lyx through that?

Thanks

Rainer


> 
> Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  [email protected]

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzhDhQACgkQoYgNqgF2egop4wCbBx0GWShOdm8vjjRIrnzvrRSe
1n0An0o/aeBBDRoAkbWjd9J0M3xQKAu4
=K0Zk
-END PGP SIGNATURE-


Re: Import track changes from LaTeX?

2010-11-15 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
> I exported the attached LyX file (ChangeTracking.lyx) to LaTeX (with
> "Show changes in output" enabled) (ChangeTracking.tex) and re-imported
> it from LaTeX into LyX (ChangeTracking_after_re-import.lyx), but the
> changes are not imported as changes, but as ERT boxes.
> 
> Is there a way of re-importing from LaTeX, so that the changes as
> exported are reflected in the re-import?

No. See:
http://www.lyx.org/trac/ticket/4213

Alas, tex2lyx is still lagging behind LyX's feature expansion.

Jürgen


Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
"Paul Cvancara"  wrote:

> ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
> ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
> ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
> einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
> ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5&p=28364

HTH

--
Wilfried Hennings



Re: Import von Excel-Tabellen in Lyx

2010-07-28 Thread Yago

Open-source, of course...
- Original Message - 
From: "Liviu Andronic" 

To: 
Sent: Wednesday, July 28, 2010 10:10 AM
Subject: Re: Import von Excel-Tabellen in Lyx



On Tue, 27 Jul 2010 18:32:27 +0200
"Yago"  wrote:


You can also use the LaTeX2RTF freeware program.


Open-source, I believe. Some may get picky on the differences from
freeware. 
Liviu


Re: Import von Excel-Tabellen in Lyx

2010-07-28 Thread Liviu Andronic
On Tue, 27 Jul 2010 10:16:00 -0400
Tennessee Carmel-Veilleux  wrote:
> To import a table in LyX, you have to use the Import submenu of the
> File menu. There, you can import a "CSV" file (comma-separated
> values) which Excel can write. This will create a new LyX file with
> the table in it. From there you can cut and paste it.
> 
Other than the CSV route, there was some recent discussions about
incorporating an external inset for spreadsheets. Search the archives
for more info. 
Liviu



  1   2   3   >