Re: Need some help with automatic syntax highlightning of code

2023-03-26 Thread Richard Kimberly Heck

On 3/26/23 17:35, Post Gresql wrote:

Hi.

An update to my problem.

It seems that exporting to LaTeX (pdflatex) gives me a .tex file that 
includes the reference to the a.tex file, that seems to be 
successfully created from the a.sql file when exporting.


The only thing that remains is to get the export to work when I try to 
export or view the pdf file without going through the intermediate 
latex file.


How do I manage to do that?


I wish I had some ideas here, but I'm not sure many people have tried 
this with SQL files.


If the export is working properly, then I'd try running LyX from a 
terminal and see if you get any error messages when trying to export. If 
there are verbosity flags you can set somewhere, try setting those.


Riki


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


Re: Need some help with automatic syntax highlightning of code

2023-03-26 Thread Post Gresql

Hi.

An update to my problem.

It seems that exporting to LaTeX (pdflatex) gives me a .tex file that includes 
the reference to the a.tex file, that seems to be successfully created from the 
a.sql file when exporting.

The only thing that remains is to get the export to work when I try to export 
or view the pdf file without going through the intermediate latex file.

How do I manage to do that?


Best regards

Gunnar

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


Need some help with automatic syntax highlightning of code

2023-03-25 Thread Post Gresql

Hello.

I'm trying to follow this guide

https://wiki.lyx.org/Examples/IncludeExternalProgramListing

But a few things have changed it seems in the last 15 years


So I've followed the guide, changed a few options to the highlight command  (  
highlight -O latex -t 2 -I -S sql -f -r -q $$i -o $$o )


When trying to produce pdf output, I get the error

"LyX: Cannot connvert file
No information for converting sql format files to latex.
Define a converter in the preferences."

But to me, it seems I have defined a converter in Preferences

I have the file  /tmp/a.sql that I want to include and this is the result I get



! LaTeX Error: File `./0_tmp_a.tex' not found.


Type X to quit or  to proceed,
or enter new name. (Default extension: tex)

Enter file name:
! Emergency stop.

 
l.25 {\small \input{./0_tmp_a.tex}

   }^^M
*** (cannot \read from terminal in nonstop modes)




I also see in the terminal window

Execution of "convert" failed.
support/Systemcall.cpp (276): Systemcall: 'python3 -tt "/usr/share/lyx/scripts/convertDefault.py" 
sql "/tmp/lyx_tmpdir.EgnpkfDjxiRq/lyx_tmpbuf0/0_tmp_a.sql" tex 
"/tmp/lyx_tmpdir.EgnpkfDjxiRq/lyx_tmpbuf0/0_tmp_a.sql.tex"' finished with exit code 1
Error: Cannot convert file

No information for converting sql format files to latex.
Define a converter in the preferences.


Can you help me find the error?

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