Re: [PATCH] TRIAL: Indentation tweaks around 'verbbox' environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> >>> 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@xxxxxxxxx>
> >>> ---
> >>>  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
> > 
> > 
> 

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux