Re: Program Listing -- programming language, etc.

2019-02-11 Thread Paul A. Rubin

On 2/11/19 8:44 AM, Bernt Lie wrote:


I use LyX 2.3.1-1 on Windows 10. Two questions related to LyX and 
inserted Program Listing:


In the Settings, I can choose Language:

  * If I make my own definition for syntax highlighting of a
programming language (say, Julia or Modelica), where in the
directory tree to I put that definition so that it shows up in the
pull-down menu of “Language”?
  * If I want to insert a link to a file instead of the code itself in
the Program Listing window, how do I do that?

Any hints are welcome, e.g., which help manual to look into, etc.

-B

The program listings feature uses a LaTeX package (listings by default, 
minted if you so choose) to handle the syntax highlighting. If you are 
using listings, the manual gives information on how to add your own 
language style (and where to store it). If you switch to minted (which 
requires the Python package Pygments and maybe some other software), I 
think you can also create your own definition ... but Pygments 
 supports both Julia and Modelica (among some 300 
languages).


I have no idea if it's possible to link to an external document inside a 
program listing inset. I suspect not.


Paul



Program Listing -- programming language, etc.

2019-02-11 Thread Bernt Lie
I use LyX 2.3.1-1 on Windows 10. Two questions related to LyX and inserted 
Program Listing:

In the Settings, I can choose Language:
[cid:image002.jpg@01D4C218.4CF8E290]


  *   If I make my own definition for syntax highlighting of a programming 
language (say, Julia or Modelica), where in the directory tree to I put that 
definition so that it shows up in the pull-down menu of "Language"?
  *   If I want to insert a link to a file instead of the code itself in the 
Program Listing window, how do I do that?

Any hints are welcome, e.g., which help manual to look into, etc.

-B





Re: Beamer and Bibliography > Solved

2019-02-11 Thread Jürgen Spitzmüller
Am Montag, den 11.02.2019, 09:12 +0100 schrieb Wolfgang Engelmann:
> Jürgen, I did not find allowframebreaks in LyX. If I insert this as
> tex 
> in the Lyx file

When in the frame heading: Insert > Frame Options. Enter
"allowframebreaks" there.

HTH
Jürgen


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


Re: Beamer and Bibliography > Solved

2019-02-11 Thread Wolfgang Engelmann



On 10.02.19 16:34, Jürgen Spitzmüller wrote:

Am Sonntag, den 10.02.2019, 14:35 +0100 schrieb Wolfgang Engelmann:

it was quite easy > see attached screenshot. Just the BibTex
generated Bibliography at the end did it, covering several frames.

No, this does not output frames, but content _outside frames_. You
should rather use the "allowframebreaks" approach, as yours will result
in wrong margins and vertical spacing issues.

Jürgen
Jürgen, I did not find allowframebreaks in LyX. If I insert this as tex 
in the Lyx file


\begin{frame}[allowframebreaks]{References}
\def\newblock{}
\bibliographystyle{plain}
\bibliography{./cancer}
\end{frame}

I get


The top-level auxiliary file: Carus20190228-WE-c.aux
The style file: plain.bst
I couldn't open database file ./cancer.bib
---line 264 of file Carus20190228-WE-c.aux
  : \bibdata{./cancer
  :  }
I'm skipping whatever remains of this command
I found no database files---while reading file Carus20190228-WE-c.aux
Warning--I didn't find a database entry for "Woolum1991"
Warning--I didn't find a database entry for "Sweeney1961"
I


although the aux file is in the same folder as the terminal from which I 
started LyX. What is wrong?


Wolfgang