All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH] TRIAL: Indentation tweaks around 'verbbox' environment
Date: Sat, 10 Sep 2016 09:28:19 -0700	[thread overview]
Message-ID: <20160910162819.GV32751@linux.vnet.ibm.com> (raw)
In-Reply-To: <ed8f9798-0ff5-7d96-ef30-b2157af7c4fd@gmail.com>

On Sat, Sep 10, 2016 at 09:19:32AM +0900, Akira Yokosawa wrote:
> On 2016/09/08 04:16:22 -0700, Paul E. McKenney wrote:
> > On Thu, Sep 08, 2016 at 12:58:53AM +0900, Akira Yokosawa wrote:
> >> On 2016/09/08 0:47, Akira Yokosawa wrote:
> >>> >From 480c37c4749ae4957791636e84e77566265613c2 Mon Sep 17 00:00:00 2001
> >>> From: Akira Yokosawa <akiyks@gmail.com>
> >>> Date: Thu, 8 Sep 2016 00:20:29 +0900
> >>> Subject: [PATCH] TRIAL: Indentation tweaks around 'verbbox' environment
> >>>
> >>> This is a trial commit to avoid the side-effect of the "verbbox"
> >>> environment, i.e., when it is used just after a section heading,
> >>> the following paragraph loses implicit non-indentation.
> >>>
> >>> This commit moves such a "verbbox" environment *before* the section
> >>> heading.
> >>>
> >>> There are also cases where two "verbbox" environments are placed just
> >>> after section headings. To accommodate such cases, one of such
> >>> "verbbox" need to be replaced with "myverbbox" environment to give
> >>> another temporary verbatimbox content holder.
> >>>
> >>> This commit includes an example of such a case.
> >>>
> >>> Note that the "myverbbox" environment is provided in recent versions
> >>> of the "verbatimbox" package, namely after v3.0.
> >>>
> >>> If you have older versions of "verbatimbox" package, you need to
> >>> update. Also the newer one requires the "readarray" package.
> >>>
> >>> Please make sure you have those required packages.
> >>>
> >>> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> >>> ---
> >>>  defer/toyrcu.tex | 31 +++++++++++++++++--------------
> >>>  1 file changed, 17 insertions(+), 14 deletions(-)
> >>>
> >>
> >> Hi Paul,
> >>
> >> So, this is what occurred to me.
> >> The main idea is to move "verbbox" environment before the section heading.
> >> This patch contains only a small samples.
> >> Does this level of modification acceptable in your viewpoint?
> >>
> >> One concern is the requirement of fairly new "verbatimbox" environment.
> >> On Ubuntu 12.04, the one installed in texlive is too old.
> >> On Ubuntu 14.04 and 16.04, it contains newer versions.
> > 
> > I am currently running Ubuntu 14.04, so it would work.  But is there
> > anything that could be done to make "verbbox" avoid causing this change?
> > 
> 
> So I tried several modification of verbatimbox.sty to do so.
> But what I could do was to add a variant of "verbbox" named "verbboxh"
> which passes "afterheading"-ness to the next paragraph.
> 
> The way to do this can be found at
> http://tex.stackexchange.com/questions/23265/suppressing-indentation-of-the-next-paragraph
> 
> But when I made the same change to "verbbox" without \@afterindentfalse to
> make it "afterheading"-ness aware, the resulting pdf looked weird with irregular
> vertical spacing before section headings.
> 
> It's far beyond my capability to figure out how to fix this.
> 
> Using the variant "verbboxh" in the LaTeX sources would be essentially the
> same as adding explicit \noindent's from a maintainer's viewpoint.
> 
> So moving the position of "verbbox" environment seems a good compromise for now.
> And by doing so, the position would be a good reminder of the side-effect.
> 
> What do you think?

Would it make sense to file a bug report against verbbox and wait until
the bug is fixed?

								Thanx, Paul

>                                          Thanks, Akira
> 
> 
> > 							Thanx, Paul
> > 
> > 
> 


  reply	other threads:[~2016-09-11  1:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-07 15:47 [PATCH] TRIAL: Indentation tweaks around 'verbbox' environment Akira Yokosawa
2016-09-07 15:58 ` Akira Yokosawa
2016-09-08 11:16   ` Paul E. McKenney
2016-09-10  0:19     ` Akira Yokosawa
2016-09-10 16:28       ` Paul E. McKenney [this message]
2016-09-11  2:10         ` Akira Yokosawa
2016-09-11  2:49         ` [RFC PATCH] toyrcu: Enclose 'verbbox' within 'figure' Akira Yokosawa
2016-09-12 14:49           ` Paul E. McKenney
2016-09-12 15:05             ` Akira Yokosawa

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=20160910162819.GV32751@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akiyks@gmail.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.