All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Tweak width of epigraph for two-column layout
@ 2016-07-26 14:49 Akira Yokosawa
  2016-07-26 15:22 ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2016-07-26 14:49 UTC (permalink / raw
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From aa7969fe4675ab8ee3c7da0470b04f90574b641c Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Tue, 26 Jul 2016 20:31:20 +0900
Subject: [PATCH] Tweak width of epigraph for two-column layout

The default of \epigraphwidth is .5\textwidth.
It is too wide for two-column layout.
This commit modifies it to .65\columnwidth for two-column
layout.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 perfbook.tex | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/perfbook.tex b/perfbook.tex
index 9216485..24fffc6 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -102,6 +102,10 @@
 \setlength{\evensidemargin}{-4pt}
 }{}

+\IfTwoColumn{
+\setlength{\epigraphwidth}{0.65\columnwidth}
+}{}
+
 \setcounter{secnumdepth}{3}

 \frontmatter
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Tweak width of epigraph for two-column layout
  2016-07-26 14:49 [PATCH] Tweak width of epigraph for two-column layout Akira Yokosawa
@ 2016-07-26 15:22 ` Paul E. McKenney
  2016-07-27 15:07   ` Akira Yokosawa
  0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2016-07-26 15:22 UTC (permalink / raw
  To: Akira Yokosawa; +Cc: perfbook

On Tue, Jul 26, 2016 at 11:49:16PM +0900, Akira Yokosawa wrote:
> >From aa7969fe4675ab8ee3c7da0470b04f90574b641c Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Tue, 26 Jul 2016 20:31:20 +0900
> Subject: [PATCH] Tweak width of epigraph for two-column layout
> 
> The default of \epigraphwidth is .5\textwidth.
> It is too wide for two-column layout.
> This commit modifies it to .65\columnwidth for two-column
> layout.
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>

I am not so sure about this.  For example, see Chapter 3's epigraph,
which ends up with a separate line for the last word.  Ditto for the
"Glossary and Bibliography", and Appendix A.

Chapter 16 ends up with a piled-high epigraph, as does Chapter 7.

Of course, the one-column version has similarly compressed epigraphs.

So I am wondering if it might be better to leave the two-column
epigraph width alone and to expand the single-column epigraph width.

Thoughts?

							Thanx, Paul

> ---
>  perfbook.tex | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/perfbook.tex b/perfbook.tex
> index 9216485..24fffc6 100644
> --- a/perfbook.tex
> +++ b/perfbook.tex
> @@ -102,6 +102,10 @@
>  \setlength{\evensidemargin}{-4pt}
>  }{}
> 
> +\IfTwoColumn{
> +\setlength{\epigraphwidth}{0.65\columnwidth}
> +}{}
> +
>  \setcounter{secnumdepth}{3}
> 
>  \frontmatter
> -- 
> 1.9.1
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Tweak width of epigraph for two-column layout
  2016-07-26 15:22 ` Paul E. McKenney
@ 2016-07-27 15:07   ` Akira Yokosawa
  2016-07-27 15:09     ` [PATCH v2] Tweak width of epigraph Akira Yokosawa
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2016-07-27 15:07 UTC (permalink / raw
  To: paulmck; +Cc: perfbook, Akira Yokosawa

On 2016/07/26 08:22:16 -0700, Paul E. McKenney wrote:
> On Tue, Jul 26, 2016 at 11:49:16PM +0900, Akira Yokosawa wrote:
>> >From aa7969fe4675ab8ee3c7da0470b04f90574b641c Mon Sep 17 00:00:00 2001
>> From: Akira Yokosawa <akiyks@gmail.com>
>> Date: Tue, 26 Jul 2016 20:31:20 +0900
>> Subject: [PATCH] Tweak width of epigraph for two-column layout
>>
>> The default of \epigraphwidth is .5\textwidth.
>> It is too wide for two-column layout.
>> This commit modifies it to .65\columnwidth for two-column
>> layout.
>>
>> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> 
> I am not so sure about this.  For example, see Chapter 3's epigraph,
> which ends up with a separate line for the last word.  Ditto for the
> "Glossary and Bibliography", and Appendix A.
> 
> Chapter 16 ends up with a piled-high epigraph, as does Chapter 7.
> 
> Of course, the one-column version has similarly compressed epigraphs.
> 
> So I am wondering if it might be better to leave the two-column
> epigraph width alone and to expand the single-column epigraph width.
> 
> Thoughts?

Okay. To give the same width of epigraph for both one- and two-column
layouts, I'm sending a patch that sets an absolute length for
\epigraphwidth as a reply to this message. This is a bit narrower than
the original two-column one, but it seems OK to me. What do you think? 

                                          Thanks, Akira.

> 
> 							Thanx, Paul
> 
>> ---
>>  perfbook.tex | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/perfbook.tex b/perfbook.tex
>> index 9216485..24fffc6 100644
>> --- a/perfbook.tex
>> +++ b/perfbook.tex
>> @@ -102,6 +102,10 @@
>>  \setlength{\evensidemargin}{-4pt}
>>  }{}
>>
>> +\IfTwoColumn{
>> +\setlength{\epigraphwidth}{0.65\columnwidth}
>> +}{}
>> +
>>  \setcounter{secnumdepth}{3}
>>
>>  \frontmatter
>> -- 
>> 1.9.1
>>
>>
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] Tweak width of epigraph
  2016-07-27 15:07   ` Akira Yokosawa
@ 2016-07-27 15:09     ` Akira Yokosawa
  2016-07-27 18:49       ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2016-07-27 15:09 UTC (permalink / raw
  To: paulmck; +Cc: perfbook, Akira Yokosawa

From 63252e8e5f8e3a74e1ab41fd577b90cdf037e36c Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Wed, 27 Jul 2016 23:51:18 +0900
Subject: [PATCH v2] Tweak width of epigraph

The default of \epigraphwidth is .5\textwidth.
This causes different widths of one-column and two-column layouts.
This commit defines it in an absolute length to specify same
width for both layouts

Suggested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 perfbook.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/perfbook.tex b/perfbook.tex
index 9216485..95902be 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -31,7 +31,7 @@
 \usepackage{footnotebackref} % to enable cross-ref of footnote
 \usepackage[all]{hypcap} % for going to the top of figure and table
 \usepackage{epigraph}
-
+\setlength{\epigraphwidth}{2.3in}
 % custom packages

 \usepackage{qqz}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] Tweak width of epigraph
  2016-07-27 15:09     ` [PATCH v2] Tweak width of epigraph Akira Yokosawa
@ 2016-07-27 18:49       ` Paul E. McKenney
  0 siblings, 0 replies; 5+ messages in thread
From: Paul E. McKenney @ 2016-07-27 18:49 UTC (permalink / raw
  To: Akira Yokosawa; +Cc: perfbook

On Thu, Jul 28, 2016 at 12:09:32AM +0900, Akira Yokosawa wrote:
> >From 63252e8e5f8e3a74e1ab41fd577b90cdf037e36c Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Wed, 27 Jul 2016 23:51:18 +0900
> Subject: [PATCH v2] Tweak width of epigraph
> 
> The default of \epigraphwidth is .5\textwidth.
> This causes different widths of one-column and two-column layouts.
> This commit defines it in an absolute length to specify same
> width for both layouts
> 
> Suggested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>

Much better!!!  Queued, thank you!

							Thanx, Paul

> ---
>  perfbook.tex | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/perfbook.tex b/perfbook.tex
> index 9216485..95902be 100644
> --- a/perfbook.tex
> +++ b/perfbook.tex
> @@ -31,7 +31,7 @@
>  \usepackage{footnotebackref} % to enable cross-ref of footnote
>  \usepackage[all]{hypcap} % for going to the top of figure and table
>  \usepackage{epigraph}
> -
> +\setlength{\epigraphwidth}{2.3in}
>  % custom packages
> 
>  \usepackage{qqz}
> -- 
> 1.9.1
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-27 18:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-26 14:49 [PATCH] Tweak width of epigraph for two-column layout Akira Yokosawa
2016-07-26 15:22 ` Paul E. McKenney
2016-07-27 15:07   ` Akira Yokosawa
2016-07-27 15:09     ` [PATCH v2] Tweak width of epigraph Akira Yokosawa
2016-07-27 18:49       ` 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.