xelatex produces off-by-one error in listings package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
texlive-base (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The following LaTeX code produces good PDF with pdflatex, but the \lstinline adds one to each character (e.g., "abc" -> "bcd") with the \listingsfont from the listings package.
\documentclass{
\usepackage{bera}
\usepackage{
\usepackage{
\ifxetex
\usepackage{
\newfontface
\else
\edef\
\renewcomman
\renewcomman
\fi
\lstset{
\begin{document}
An example that uses the listingfont to render ``int hms 0123'': \lstinline?int hms 0123?
Now for a program not using the listingfont:
\begin{
#include <stdio.h>
int main(void)
{
printf("Hello world.\n");
return 0;
}
\end{lstlisting}
\end{document}
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: texlive-
ProcVersionSign
Uname: Linux 4.2.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Nov 29 20:04:29 2015
InstallationDate: Installed on 2015-04-24 (220 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitec
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: texlive-base
UpgradeStatus: Upgraded to wily on 2015-10-23 (37 days ago)