Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

Tex2LyxInvokedFromLyx

Please categorize this page.
<< | Page list | >>

To invoke tex2lyx from LyX do the following:

  • Install tex2lyx
  • Include in your PATH the directory where tex2lyx is, so that LyX can find it
  • Inside LyX, in Edit -> Preferences -> Converters, choose LaTeX->LyX and, on the right side, write tex2lyx -f $$i $$o in the Converter field

This assumes that you have at least LyX 1.3.6, and that you upgraded lyx2lyx as explained in LatexToLyx.

To invoke tex2lyx from LyX 1.3.5 and older in Windows do the following:

  • Install tex2lyx
  • Create a tex2lyx.cmd file with the following content:
    @echo off
    set PYTHONPATH=xxxx

    %~dp0tex2lyx.exe -f -sysdir %~dp0..\resources\lyx %1 > temp.lyx

    %PYTHONPATH%\python %~dp0..\resources\lyx\lyx2lyx\lyx2lyx --to 221 --output %2 temp.lyx 
    del temp.lyx
Be sure to substitute xxxx with the correct path for the directory containing python.exe (e.g. C:\Python23 or C:\tools\Python24, etc).
Save this file in the same directory as tex2lyx.exe
  • Include in your PATH the directory where tex2lyx.cmd is, so that LyX can find it
  • Inside LyX, in Edit -> Preferences -> Converters, choose LaTeX->LyX and, on the right side, write tex2lyx.cmd $$i $$o in the Converter field

/Nicolás & Stephen Harris.

PS. See mail/thread LyxUsersThread:22452

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2006-02-16 16:19 CET