1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/Graphics_and_Insets/
10 \definecolor{lgray}{rgb}{0.95, 0.95, 0.95}
13 \newlength{\boxheight}
14 \setlength{\boxwidth}{\paperwidth}
15 \setlength{\boxheight}{\paperheight}
16 \addtolength{\boxwidth}{-1.2cm}
17 \addtolength{\boxheight}{-2.5cm}
18 \AddToShipoutPicture{%
19 \setlength{\@tempdimb}{0.5cm}%
20 \setlength{\@tempdimc}{1.0cm}%
21 \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
22 \hbox{\fboxrule=0.6pt\fbox{\vbox to \boxheight{%
23 \vss\hbox to \boxwidth{\hss}\vss}}}}%
24 \addtolength{\@tempdimc}{\boxheight}%
25 \addtolength{\@tempdimc}{6.5pt}%
26 \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
27 \hbox{\fboxrule=0.6pt\fcolorbox{black}{lgray}{\vbox to 3.5mm{%
28 \vss\hbox to \boxwidth{\hss\textbf{\textsf{\small\titlename}}\hss%
29 \hbox to 0pt{\hss\textsf{\footnotesize Page \arabic{page}/\pageref{lastpage}~}}}\vss}}}}%
32 \use_default_options true
33 \maintain_unincluded_children no
35 \language_package default
38 \font_roman "times" "DejaVu Sans Mono"
39 \font_sans "helvet" "DejaVu Sans"
40 \font_typewriter "courier" "DejaVu Sans Mono"
41 \font_math "auto" "default"
42 \font_default_family default
43 \use_non_tex_fonts true
46 \font_typewriter_osf false
49 \font_tt_scale 110 110
51 \use_dash_ligatures true
53 \default_output_format pdf4
55 \bibtex_command default
56 \index_command default
62 \use_package amsmath 1
63 \use_package amssymb 1
66 \use_package mathdots 1
67 \use_package mathtools 1
69 \use_package stackrel 1
70 \use_package stmaryrd 1
71 \use_package undertilde 1
73 \cite_engine_type default
77 \paperorientation landscape
93 \paragraph_separation indent
94 \paragraph_indentation default
96 \math_numbering_side default
101 \paperpagestyle empty
102 \tracking_changes false
103 \postpone_fragile_content false
104 \output_changes false
107 \html_be_strict false
112 \begin_layout Standard
113 \begin_inset Note Note
116 \begin_layout Plain Layout
117 This example shows a possible use of the minted package (version 2.1 or later)
118 for typesetting listings containing unicode characters.
119 For this reason, the default output format is
124 The listing is typeset using the DejaVu font.
125 If this font is not installed on your system, you need to choose a different
126 one in Document\SpecialChar menuseparator
127 Settings\SpecialChar menuseparator
131 \begin_layout Plain Layout
132 Other than the minted latex package, you also need the pygments python module.
133 See the minted documentation for directions on how to install it and what
134 you have to do for using it with LaTeX.
135 If you use a linux system, you can possibly install a suitable package
136 through your package manager.
137 Look for python packages named
144 \begin_layout Plain Layout
145 Another required package is the
149 latex package, so you also need to install it.
150 It is used to draw a page frame around the listing.
158 \begin_layout Standard
162 \begin_layout Plain Layout
174 \begin_inset Note Note
177 \begin_layout Plain Layout
178 This is the title of the listing appearing in the headers.
186 \begin_layout Standard
187 \begin_inset CommandInset include
188 LatexCommand inputminted
189 filename "../../scripts/lyxpak.py"
190 lstparams "language=python,style=bw,fontsize={\\tiny},baselinestretch={1.05},frame=leftline,framesep=10pt,breaklines,breakanywhere"
198 \begin_layout Standard
199 \begin_inset CommandInset label
206 \begin_inset Note Note
209 \begin_layout Plain Layout
210 This label is needed to show the total number of pages in upper-right corner