* Re: perfbook build error
[not found] <20141211173210.GE31140@pd.tnic>
@ 2014-12-11 17:52 ` Paul E. McKenney
2014-12-11 19:07 ` Borislav Petkov
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-11 17:52 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Thu, Dec 11, 2014 at 06:32:10PM +0100, Borislav Petkov wrote:
> Hey Paul,
>
> building perfbook from today here fails with:
>
> Underfull \hbox (badness 7576) in paragraph at lines 1234--1234
> []\T1/ptm/b/n/14.4 Linux-Kernel Equiv-a-lents to
> []
>
> ! Missing { inserted.
> <inserted text>
> {
> l.1246 &
> \co{struct task_struct} \\
> ?
> ! Emergency stop.
> <inserted text>
> {
> l.1246 &
> \co{struct task_struct} \\
> End of file on the terminal!
>
>
> Here is how much of TeX's memory you used:
> 9728 strings out of 495020
> 150662 string characters out of 6181323
> 256123 words of memory out of 5000000
> 12316 multiletter control sequences out of 15000+600000
> 92251 words of font info for 258 fonts, out of 8000000 for 9000
> 14 hyphenation exceptions out of 8191
> 33i,15n,35p,324b,1121s stack positions out of 5000i,500n,10000p,200000b,80000s
> ! ==> Fatal error occurred, no output PDF file produced!
> ---
>
> That's somewhere around that table in toolsoftrade/toolsoftrade.tex,
> lines 1240ff.
>
> Maybe my latex setup is missing something...
Hmmm... Works for me. (Famous last words...)
I am at commit #763eb4b811f9 (Fix resizable-hash figures).
I also sometimes see odd errors like this due to an interrupted run that
leaves bogus .aux files around. A "make clean" will clear this up.
I am also using an oldish version of latex. Let me see what happens
with a more recent version... Well, on that system, it complains about
pstricks.sty not being present. :-/
In the meantime, here is the version of latex I am using:
k$ latex --v
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.18.2
CCing the mailing list in case someone knows how to solve this one.
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 17:52 ` perfbook build error Paul E. McKenney
@ 2014-12-11 19:07 ` Borislav Petkov
2014-12-11 19:17 ` Borislav Petkov
2014-12-11 19:51 ` Paul E. McKenney
0 siblings, 2 replies; 17+ messages in thread
From: Borislav Petkov @ 2014-12-11 19:07 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Thu, Dec 11, 2014 at 09:52:48AM -0800, Paul E. McKenney wrote:
> Hmmm... Works for me. (Famous last words...)
>
> I am at commit #763eb4b811f9 (Fix resizable-hash figures).
Ditto.
> I also sometimes see odd errors like this due to an interrupted run that
> leaves bogus .aux files around. A "make clean" will clear this up.
Nope, that doesn't help.
Strangely, I'm getting a bunch of undefined references before it fails:
----- Fatal latex error, see perfbook.log for details. -----
LaTeX Warning: Reference `chp:How To Use This Book' on page 1 undefined on inpu
LaTeX Warning: Reference `chp:Introduction' on page 1 undefined on input line 4
LaTeX Warning: Reference `chp:Hardware and its Habits' on page 1 undefined on i
LaTeX Warning: Reference `chp:Tools of the Trade' on page 1 undefined on input
LaTeX Warning: Reference `chp:Counting' on page 1 undefined on input line 57.
LaTeX Warning: Reference `cha:Partitioning and Synchronization Design' on page
...
> I am also using an oldish version of latex. Let me see what happens
> with a more recent version... Well, on that system, it complains about
> pstricks.sty not being present. :-/
>
> In the meantime, here is the version of latex I am using:
>
> k$ latex --v
> pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
> kpathsea version 5.0.0
> Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> There is NO warranty. Redistribution of this software is
> covered by the terms of both the pdfTeX copyright and
> the Lesser GNU General Public License.
> For more information about these matters, see the file
> named COPYING and the pdfTeX source.
> Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> Compiled with libpng 1.2.46; using libpng 1.2.46
> Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
> Compiled with poppler version 0.18.2
$ latex --v
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian)
kpathsea version 6.2.1dev
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.13; using libpng 1.6.13
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.26.5
Btw, I commented out the table in toolsoftrade/toolsoftrade.tex and the
conversion exploded on the next table in defer/rcufundamental.tex. So it
must be have something to do with the tables...
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 19:07 ` Borislav Petkov
@ 2014-12-11 19:17 ` Borislav Petkov
2014-12-11 19:32 ` Paul E. McKenney
2014-12-11 19:51 ` Paul E. McKenney
1 sibling, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-11 19:17 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
Great, this moves the error to the next line:
---
diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
index c98f3a78652f..012f815fdd65 100644
--- a/toolsoftrade/toolsoftrade.tex
+++ b/toolsoftrade/toolsoftrade.tex
@@ -1242,8 +1242,8 @@ but may be implemented straightforwardly as follows:
\hline
\hline
Thread Management
- & \co{pthread_t}
- & \co{struct task_struct} \\
+ & pthread\_t
+ & struct task\_struct \\
\cline{2-3}
& \co{pthread_create()}
& \co{kthread_create} \\
--
so it can't stand the {}'s and the _'s all of a sudden.
Or my table format definition is screwed or so after the last update...
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 19:17 ` Borislav Petkov
@ 2014-12-11 19:32 ` Paul E. McKenney
2014-12-11 19:59 ` Borislav Petkov
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-11 19:32 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Thu, Dec 11, 2014 at 08:17:34PM +0100, Borislav Petkov wrote:
> Great, this moves the error to the next line:
>
> ---
> diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
> index c98f3a78652f..012f815fdd65 100644
> --- a/toolsoftrade/toolsoftrade.tex
> +++ b/toolsoftrade/toolsoftrade.tex
> @@ -1242,8 +1242,8 @@ but may be implemented straightforwardly as follows:
> \hline
> \hline
> Thread Management
> - & \co{pthread_t}
> - & \co{struct task_struct} \\
> + & pthread\_t
> + & struct task\_struct \\
> \cline{2-3}
> & \co{pthread_create()}
> & \co{kthread_create} \\
> --
>
> so it can't stand the {}'s and the _'s all of a sudden.
>
> Or my table format definition is screwed or so after the last update...
Or the newer version of latex doesn't like the \co{} macro definition.
One hack-around is to replace the definition on line 38 of perfbook.tex
with something like this:
\newcommand{\co}[1]{\url{#1}}
Does that help, modulo the resulting bogus links?
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 19:07 ` Borislav Petkov
2014-12-11 19:17 ` Borislav Petkov
@ 2014-12-11 19:51 ` Paul E. McKenney
1 sibling, 0 replies; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-11 19:51 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Thu, Dec 11, 2014 at 08:07:24PM +0100, Borislav Petkov wrote:
> On Thu, Dec 11, 2014 at 09:52:48AM -0800, Paul E. McKenney wrote:
> > Hmmm... Works for me. (Famous last words...)
> >
> > I am at commit #763eb4b811f9 (Fix resizable-hash figures).
>
> Ditto.
>
> > I also sometimes see odd errors like this due to an interrupted run that
> > leaves bogus .aux files around. A "make clean" will clear this up.
>
> Nope, that doesn't help.
>
> Strangely, I'm getting a bunch of undefined references before it fails:
>
> ----- Fatal latex error, see perfbook.log for details. -----
> LaTeX Warning: Reference `chp:How To Use This Book' on page 1 undefined on inpu
> LaTeX Warning: Reference `chp:Introduction' on page 1 undefined on input line 4
> LaTeX Warning: Reference `chp:Hardware and its Habits' on page 1 undefined on i
> LaTeX Warning: Reference `chp:Tools of the Trade' on page 1 undefined on input
> LaTeX Warning: Reference `chp:Counting' on page 1 undefined on input line 57.
> LaTeX Warning: Reference `cha:Partitioning and Synchronization Design' on page
> ...
And these are because latex accumulates the definitions on one pass, and
then uses these definitions on the next pass. So if your first pass never
does complete correctly, the next pass won't have some or all of the
definitions.
Thanx, Paul
> > I am also using an oldish version of latex. Let me see what happens
> > with a more recent version... Well, on that system, it complains about
> > pstricks.sty not being present. :-/
> >
> > In the meantime, here is the version of latex I am using:
> >
> > k$ latex --v
> > pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
> > kpathsea version 5.0.0
> > Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> > There is NO warranty. Redistribution of this software is
> > covered by the terms of both the pdfTeX copyright and
> > the Lesser GNU General Public License.
> > For more information about these matters, see the file
> > named COPYING and the pdfTeX source.
> > Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> > Compiled with libpng 1.2.46; using libpng 1.2.46
> > Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
> > Compiled with poppler version 0.18.2
>
> $ latex --v
> pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian)
> kpathsea version 6.2.1dev
> Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> There is NO warranty. Redistribution of this software is
> covered by the terms of both the pdfTeX copyright and
> the Lesser GNU General Public License.
> For more information about these matters, see the file
> named COPYING and the pdfTeX source.
> Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
> Compiled with libpng 1.6.13; using libpng 1.6.13
> Compiled with zlib 1.2.8; using zlib 1.2.8
> Compiled with poppler version 0.26.5
>
> Btw, I commented out the table in toolsoftrade/toolsoftrade.tex and the
> conversion exploded on the next table in defer/rcufundamental.tex. So it
> must be have something to do with the tables...
>
> --
> Regards/Gruss,
> Boris.
>
> Sent from a fat crate under my desk. Formatting is fine.
> --
> --
> To unsubscribe from this list: send the line "unsubscribe perfbook" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 19:32 ` Paul E. McKenney
@ 2014-12-11 19:59 ` Borislav Petkov
2014-12-11 20:10 ` Paul E. McKenney
0 siblings, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-11 19:59 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Thu, Dec 11, 2014 at 11:32:30AM -0800, Paul E. McKenney wrote:
> Or the newer version of latex doesn't like the \co{} macro definition.
>
> One hack-around is to replace the definition on line 38 of perfbook.tex
> with something like this:
>
> \newcommand{\co}[1]{\url{#1}}
>
> Does that help, modulo the resulting bogus links?
Nah, this chokes on the '#' char:
! Illegal parameter number in definition of \Hy@tempa.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
?
! Emergency stop.
<to be read again>
d
l.876 two \co{#define}
statements, giving us not one but two ways to create
End of file on the terminal!
---
Btw, don't waste too much time with it before you can reproduce it
yourself and can actually confirm it is a latex issue. I might be
missing packages or so... although updating texlive-latex-* works out
fine and pulls in whatever it needs.
Btw, it looks like it has trouble with this custom defined command. Built-in
stuff works:
---
diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
index c98f3a78652f..e227fe7363fb 100644
--- a/toolsoftrade/toolsoftrade.tex
+++ b/toolsoftrade/toolsoftrade.tex
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
\hline
\hline
Thread Management
- & \co{pthread_t}
+ & \L test
& \co{struct task_struct} \\
\cline{2-3}
& \co{pthread_create()}
--
I need to investigate more.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 19:59 ` Borislav Petkov
@ 2014-12-11 20:10 ` Paul E. McKenney
2014-12-11 20:22 ` Borislav Petkov
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-11 20:10 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Thu, Dec 11, 2014 at 08:59:22PM +0100, Borislav Petkov wrote:
> On Thu, Dec 11, 2014 at 11:32:30AM -0800, Paul E. McKenney wrote:
> > Or the newer version of latex doesn't like the \co{} macro definition.
> >
> > One hack-around is to replace the definition on line 38 of perfbook.tex
> > with something like this:
> >
> > \newcommand{\co}[1]{\url{#1}}
> >
> > Does that help, modulo the resulting bogus links?
>
> Nah, this chokes on the '#' char:
>
> ! Illegal parameter number in definition of \Hy@tempa.
> <to be read again>
> d
> l.876 two \co{#define}
> statements, giving us not one but two ways to create
> ?
> ! Emergency stop.
> <to be read again>
> d
> l.876 two \co{#define}
> statements, giving us not one but two ways to create
> End of file on the terminal!
> ---
That is odd given that URLs really can contain "#"...
> Btw, don't waste too much time with it before you can reproduce it
> yourself and can actually confirm it is a latex issue. I might be
> missing packages or so... although updating texlive-latex-* works out
> fine and pulls in whatever it needs.
>
> Btw, it looks like it has trouble with this custom defined command. Built-in
> stuff works:
>
> ---
> diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
> index c98f3a78652f..e227fe7363fb 100644
> --- a/toolsoftrade/toolsoftrade.tex
> +++ b/toolsoftrade/toolsoftrade.tex
> @@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
> \hline
> \hline
> Thread Management
> - & \co{pthread_t}
> + & \L test
I am guessing that \L chokes on underscores, otherwise, it would be an
attractive alternative to \co{}. (It does choke on underscores in my
old environment.)
> & \co{struct task_struct} \\
> \cline{2-3}
> & \co{pthread_create()}
> --
>
> I need to investigate more.
Please let me know how it goes!
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 20:10 ` Paul E. McKenney
@ 2014-12-11 20:22 ` Borislav Petkov
2014-12-11 21:14 ` Paul E. McKenney
0 siblings, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-11 20:22 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Thu, Dec 11, 2014 at 12:10:14PM -0800, Paul E. McKenney wrote:
> > ! Illegal parameter number in definition of \Hy@tempa.
> > <to be read again>
> > d
> > l.876 two \co{#define}
> > statements, giving us not one but two ways to create
> > ?
> > ! Emergency stop.
> > <to be read again>
> > d
> > l.876 two \co{#define}
> > statements, giving us not one but two ways to create
> > End of file on the terminal!
> > ---
>
> That is odd given that URLs really can contain "#"...
I'm reading the error message like it has a problem with the "#" in
"#define" but I might be wrong.
> > Btw, don't waste too much time with it before you can reproduce it
> > yourself and can actually confirm it is a latex issue. I might be
> > missing packages or so... although updating texlive-latex-* works out
> > fine and pulls in whatever it needs.
> >
> > Btw, it looks like it has trouble with this custom defined command. Built-in
> > stuff works:
> >
> > ---
> > diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
> > index c98f3a78652f..e227fe7363fb 100644
> > --- a/toolsoftrade/toolsoftrade.tex
> > +++ b/toolsoftrade/toolsoftrade.tex
> > @@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
> > \hline
> > \hline
> > Thread Management
> > - & \co{pthread_t}
> > + & \L test
>
> I am guessing that \L chokes on underscores, otherwise, it would be an
> attractive alternative to \co{}. (It does choke on underscores in my
> old environment.)
Yeah, I had to comment out the underscores earlier.
> > & \co{struct task_struct} \\
> > \cline{2-3}
> > & \co{pthread_create()}
> > --
> >
> > I need to investigate more.
>
> Please let me know how it goes!
Yap, sure.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 20:22 ` Borislav Petkov
@ 2014-12-11 21:14 ` Paul E. McKenney
2014-12-12 16:38 ` Paul E. McKenney
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-11 21:14 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Thu, Dec 11, 2014 at 09:22:38PM +0100, Borislav Petkov wrote:
> On Thu, Dec 11, 2014 at 12:10:14PM -0800, Paul E. McKenney wrote:
> > > ! Illegal parameter number in definition of \Hy@tempa.
> > > <to be read again>
> > > d
> > > l.876 two \co{#define}
> > > statements, giving us not one but two ways to create
> > > ?
> > > ! Emergency stop.
> > > <to be read again>
> > > d
> > > l.876 two \co{#define}
> > > statements, giving us not one but two ways to create
> > > End of file on the terminal!
> > > ---
> >
> > That is odd given that URLs really can contain "#"...
>
> I'm reading the error message like it has a problem with the "#" in
> "#define" but I might be wrong.
Yep, that is my feeling as well. And so \url{#define} would mean
the name "define" in the current document. Which admittedly would be
more meaningful in an html document.
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-11 21:14 ` Paul E. McKenney
@ 2014-12-12 16:38 ` Paul E. McKenney
2014-12-12 17:53 ` Borislav Petkov
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-12 16:38 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Thu, Dec 11, 2014 at 01:14:29PM -0800, Paul E. McKenney wrote:
> On Thu, Dec 11, 2014 at 09:22:38PM +0100, Borislav Petkov wrote:
> > On Thu, Dec 11, 2014 at 12:10:14PM -0800, Paul E. McKenney wrote:
> > > > ! Illegal parameter number in definition of \Hy@tempa.
> > > > <to be read again>
> > > > d
> > > > l.876 two \co{#define}
> > > > statements, giving us not one but two ways to create
> > > > ?
> > > > ! Emergency stop.
> > > > <to be read again>
> > > > d
> > > > l.876 two \co{#define}
> > > > statements, giving us not one but two ways to create
> > > > End of file on the terminal!
> > > > ---
> > >
> > > That is odd given that URLs really can contain "#"...
> >
> > I'm reading the error message like it has a problem with the "#" in
> > "#define" but I might be wrong.
>
> Yep, that is my feeling as well. And so \url{#define} would mean
> the name "define" in the current document. Which admittedly would be
> more meaningful in an html document.
Does wrapping the \co{} in mbox help? Please see the patch below for
an example.
Your environment apparently does handle \co{} in other environments,
as there are a lot of them in Chapter 1. So if mbox fixes it for you,
I would be OK mboxing all the \co{}s in tables.
Thanx, Paul
------------------------------------------------------------------------
diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
index c98f3a78652f..a5b530fc989e 100644
--- a/toolsoftrade/toolsoftrade.tex
+++ b/toolsoftrade/toolsoftrade.tex
@@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
\hline
\hline
Thread Management
- & \co{pthread_t}
+ & \mbox{\co{pthread_t}}
& \co{struct task_struct} \\
\cline{2-3}
& \co{pthread_create()}
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-12 16:38 ` Paul E. McKenney
@ 2014-12-12 17:53 ` Borislav Petkov
[not found] ` <20141212181804.GX25340@linux.vnet.ibm.com>
0 siblings, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-12 17:53 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Fri, Dec 12, 2014 at 08:38:35AM -0800, Paul E. McKenney wrote:
> Does wrapping the \co{} in mbox help? Please see the patch below for
> an example.
>
> Your environment apparently does handle \co{} in other environments,
> as there are a lot of them in Chapter 1. So if mbox fixes it for you,
> I would be OK mboxing all the \co{}s in tables.
>
> Thanx, Paul
>
> ------------------------------------------------------------------------
>
> diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
> index c98f3a78652f..a5b530fc989e 100644
> --- a/toolsoftrade/toolsoftrade.tex
> +++ b/toolsoftrade/toolsoftrade.tex
> @@ -1242,7 +1242,7 @@ but may be implemented straightforwardly as follows:
> \hline
> \hline
> Thread Management
> - & \co{pthread_t}
> + & \mbox{\co{pthread_t}}
> & \co{struct task_struct} \\
> \cline{2-3}
> & \co{pthread_create()}
Nope, that doesn't help :-(
! Missing { inserted.
<inserted text>
{
l.1246 &
\mbox{\co{struct task_struct}} \\
?
! Emergency stop.
<inserted text>
{
l.1246 &
\mbox{\co{struct task_struct}} \\
End of file on the terminal!
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
[not found] ` <20141212181804.GX25340@linux.vnet.ibm.com>
@ 2014-12-12 18:47 ` Borislav Petkov
2014-12-12 18:58 ` Paul E. McKenney
0 siblings, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-12 18:47 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Fri, Dec 12, 2014 at 10:18:05AM -0800, Paul E. McKenney wrote:
> And I take it that just adding braces doesn't work either, the discussion in
> http://tex.stackexchange.com/questions/102119/why-doesnt-lstinline-work-in-table-column
> notwithstanding?
>
> {\co{struct task_struct}}
>
> Or:
>
> { \co{struct task_struct} }
No, neither.
/me searches a bit more, gets lucky...
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.
Maybe I should let the guys know that it still triggers...
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-12 18:47 ` Borislav Petkov
@ 2014-12-12 18:58 ` Paul E. McKenney
2014-12-12 19:13 ` Borislav Petkov
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-12 18:58 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Fri, Dec 12, 2014 at 07:47:37PM +0100, Borislav Petkov wrote:
> On Fri, Dec 12, 2014 at 10:18:05AM -0800, Paul E. McKenney wrote:
> > And I take it that just adding braces doesn't work either, the discussion in
> > http://tex.stackexchange.com/questions/102119/why-doesnt-lstinline-work-in-table-column
> > notwithstanding?
> >
> > {\co{struct task_struct}}
> >
> > Or:
> >
> > { \co{struct task_struct} }
>
> No, neither.
>
> /me searches a bit more, gets lucky...
>
> 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.
>
> Maybe I should let the guys know that it still triggers...
Nice!!!
You put this above definition in perfbook.tex?
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-12 18:58 ` Paul E. McKenney
@ 2014-12-12 19:13 ` Borislav Petkov
2014-12-12 19:30 ` Paul E. McKenney
0 siblings, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-12 19:13 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Fri, Dec 12, 2014 at 10:58:57AM -0800, Paul E. McKenney wrote:
> You put this above definition in perfbook.tex?
Nope, 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.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-12 19:13 ` Borislav Petkov
@ 2014-12-12 19:30 ` Paul E. McKenney
2014-12-12 20:15 ` Borislav Petkov
0 siblings, 1 reply; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-12 19:30 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Fri, Dec 12, 2014 at 08:13:37PM +0100, Borislav Petkov wrote:
> On Fri, Dec 12, 2014 at 10:58:57AM -0800, Paul E. McKenney wrote:
> > You put this above definition in perfbook.tex?
>
> Nope, 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.
Thank you for the info! It is likely to be helpful to others as well. ;-)
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-12 19:30 ` Paul E. McKenney
@ 2014-12-12 20:15 ` Borislav Petkov
2014-12-12 20:27 ` Paul E. McKenney
0 siblings, 1 reply; 17+ messages in thread
From: Borislav Petkov @ 2014-12-12 20:15 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook
On Fri, Dec 12, 2014 at 11:30:55AM -0800, Paul E. McKenney wrote:
> Thank you for the info! It is likely to be helpful to others as well. ;-)
Yeah, I've pinged the bug, let's see what happens.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: perfbook build error
2014-12-12 20:15 ` Borislav Petkov
@ 2014-12-12 20:27 ` Paul E. McKenney
0 siblings, 0 replies; 17+ messages in thread
From: Paul E. McKenney @ 2014-12-12 20:27 UTC (permalink / raw)
To: Borislav Petkov; +Cc: perfbook
On Fri, Dec 12, 2014 at 09:15:57PM +0100, Borislav Petkov wrote:
> On Fri, Dec 12, 2014 at 11:30:55AM -0800, Paul E. McKenney wrote:
> > Thank you for the info! It is likely to be helpful to others as well. ;-)
>
> Yeah, I've pinged the bug, let's see what happens.
Brooks Moses claimed responsibility on G+, so hopefully something will
happen. ;-)
Thanx, Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2014-12-12 20:27 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20141211173210.GE31140@pd.tnic>
2014-12-11 17:52 ` perfbook build error Paul E. McKenney
2014-12-11 19:07 ` Borislav Petkov
2014-12-11 19:17 ` Borislav Petkov
2014-12-11 19:32 ` Paul E. McKenney
2014-12-11 19:59 ` Borislav Petkov
2014-12-11 20:10 ` Paul E. McKenney
2014-12-11 20:22 ` Borislav Petkov
2014-12-11 21:14 ` Paul E. McKenney
2014-12-12 16:38 ` Paul E. McKenney
2014-12-12 17:53 ` Borislav Petkov
[not found] ` <20141212181804.GX25340@linux.vnet.ibm.com>
2014-12-12 18:47 ` Borislav Petkov
2014-12-12 18:58 ` Paul E. McKenney
2014-12-12 19:13 ` Borislav Petkov
2014-12-12 19:30 ` Paul E. McKenney
2014-12-12 20:15 ` Borislav Petkov
2014-12-12 20:27 ` Paul E. McKenney
2014-12-11 19:51 ` Paul E. McKenney
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.