All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Cc: perfbook@vger.kernel.org
Subject: Re: Trouble building perfbook
Date: Tue, 13 Oct 2015 06:31:25 -0700	[thread overview]
Message-ID: <20151013133125.GM3910@linux.vnet.ibm.com> (raw)
In-Reply-To: <561C9C0E.4090703@au1.ibm.com>

On Tue, Oct 13, 2015 at 04:52:14PM +1100, Andrew Donnellan wrote:
> Hi perfbook list,
> 
> I'm having trouble building perfbook (latest git) - am encountering
> a weird fatal TeX error. I'm using the current TeXLive 2015 from
> Debian stable.
> 
> The TeX logfile is available at [0].
> 
> I've taken a look at the section of perfbook_flat.tex that it refers
> to, and I can't see anything particularly out of the ordinary. My
> LaTeX-fu isn't quite good enough to figure out what's going on here
> - any assistance would be appreciated!
> 
> 
> Andrew
> 
> 
> [0] http://pastebin.com/r4rMzF4d

This looks like the same LaTeX bug that Borislav Petkov ran into
some time back.  He came up with the workaround below, does this
work for you?

Just out of curiosity, what distro are you using?  I haven't run into
this myself on either Ubuntu 12.04 or 14.04.

							Thanx, Paul

------------------------------------------------------------------------

Apparently, it is still an open bug which seems unresolved even in tex
upstream, AFAICT:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752773

I tried the suggested workaround first by replacing \lstinline in

/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty

with it but it complained about an undefined command. Then I went and
did this:

\newcommand\lstinline[1][]{%
   \leavevmode\bgroup % \hbox\bgroup --> \bgroup
     \def\lst@boxpos{b}%
     \lsthk@PreSet\lstset{flexiblecolumns,#1}%
     \lsthk@TextStyle
     \ifnum\iffalse{\fi`}=\z@\fi
     \@ifnextchar\bgroup{%
        \ifnum`{=\z@}\fi%
        \afterassignment\lst@InlineG \let\@let@token}{%
        \ifnum`{=\z@}\fi\lstinline@}}

and the pdf was built successfully.

This this goes into

/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty

which is part of texlive-latex-recommended. It needs to be fixed in the
distro.


  reply	other threads:[~2015-10-13 14:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13  5:52 Trouble building perfbook Andrew Donnellan
2015-10-13 13:31 ` Paul E. McKenney [this message]
2015-10-14  0:27   ` Andrew Donnellan
2015-10-14  0:53     ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151013133125.GM3910@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=andrew.donnellan@au1.ibm.com \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.