Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% LyX 2.3.4.4 created this file. For more info, see http://www.lyx.org/.
- %% Do not edit unless you really know what you are doing.
- \documentclass[twoside,french]{article}
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
- \usepackage{geometry}
- \geometry{verbose,tmargin=1.5cm,bmargin=1.5cm,lmargin=0.5cm,rmargin=0.5cm,headheight=0.5cm,headsep=0.5cm,footskip=0.5cm}
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \usepackage{babel}
- \makeatletter
- \addto\extrasfrench{%
- \providecommand{\og}{\leavevmode\flqq~}%
- \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
- }
- \makeatother
- \usepackage[unicode=true,pdfusetitle,
- bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
- breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
- {hyperref}
- \makeatletter
- \@ifundefined{date}{}{\date{}}
- \makeatother
- \usepackage{listings}
- \renewcommand{\lstlistingname}{\inputencoding{latin9}Listing}
- \begin{document}
- \title{How to insert a code listing with UTF8-encoding?}
- \maketitle
- Here I try to insert an inline listing: \inputencoding{latin9}\lstinline[language=Python]!print("success")!\inputencoding{utf8}
- If I put an accent after, I will not work ('ù' for instance).
- I'm using Lyx 2.3.4.4 on Windows 10.
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement