On Mon, Jul 18, 2022 at 11:44:05PM +0200, Jean-Marc Lasgouttes wrote:
> commit 96e7fcd4e0c600c3dd99e901ff84ff1480167cf8
> Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
> Date:   Mon Jul 18 00:50:33 2022 +0200
> 
>     When pasting as LaTeX, honor textclass and modules
>     
>     There are several small parts that are needed here:
>     
>     * Implement LayoutModuleList::asString() that returns a comma-separated
>       list of modules.
>     
>     * in Converter::convert(), handle the new tokens $$c for the current
>       textclass and $$m for the list of modules.
>     
>     * in Buffer::importFile(), pass the current buffer as parameter instead
>       of nullptr.
>     
>     * in pasteClipboardText(), copy the parameters of the current buffer to
>       the internal one used for importation, so that the textclass and
>       modules information is available to convert().
>     
>     * finally, modify configure.py to pass "-c $$c -m $$m" to tex2lyx for
>       the latexclipoard->lyx converter.
>     
>     Fixes bug #11312.
> ---

Starting with this commit, "Paste from LaTeX" no longer seems to work
for me. I get the following in the terminal:

  Creating file /tmp/lyx_tmpdir.sJMMXUAnpRwt/Buffer_importStringMMGtph.lyx
  Cannot read layout file `'.
  Error: Could not load module "-f".
  support/Systemcall.cpp (306): Systemcall: 'tex2lyx -fixedenc utf8 -c 
"article" -m "" -f "Buffer_importStringMMGtph.tex" 
"Buffer_importStringMMGtph.lyx"' finished with exit code 1
  Error: Cannot convert file
  ----------------------------------------
  An error occurred while running:
  tex2lyx -fixedenc utf8 -c "article" -m "" -f "Buffer_importStringMMGtph.tex"
  "Buffer_importStringMMGtph.lyx"

Scott

Attachment: signature.asc
Description: PGP signature

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

Reply via email to