[PATCH 2/2] Enable 'inlinelinks' option of alphapf.bst for 1c layout

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

 



>From 3f4f73d738b77422bd074322f3ac67f644a8d580 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Wed, 28 Dec 2016 00:06:04 +0900
Subject: [PATCH 2/2] Enable 'inlinelinks' option of alphapf.bst for 1c layout

The "hyperref" package has an issue when a link crosses a page
or column boundary in two column layout.

See:
  http://tex.stackexchange.com/questions/1522/
  http://tex.stackexchange.com/questions/249579/

To avoid this issue, this commit enables "inlinelinks" option only
for one column layout.
For two column layout, original alpha style is selected for the
moment.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 alphapf.bst           | 2 +-
 appendix/appendix.tex | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/alphapf.bst b/alphapf.bst
index 498e0ee..6a9ec4d 100644
--- a/alphapf.bst
+++ b/alphapf.bst
@@ -69,7 +69,7 @@ FUNCTION {init.urlbst.variables}
   #1 'adddoiresolver :=     % 0=no DOI resolver; 1=include it
   #1 'addpubmedresolver :=     % 0=no PUBMED resolver; 1=include it
   #2 'hrefform :=           % 0=no crossrefs; 1=hypertex xrefs; 2=hyperref refs
-  #0 'inlinelinks :=        % 0=URLs explicit; 1=URLs attached to titles
+  #1 'inlinelinks :=        % 0=URLs explicit; 1=URLs attached to titles
 
   % String constants, which you _might_ want to tweak.
   "URL: " 'urlintro := % prefix before URL; typically "Available from:" or "URL":
diff --git a/appendix/appendix.tex b/appendix/appendix.tex
index 53abf2b..e94fd28 100644
--- a/appendix/appendix.tex
+++ b/appendix/appendix.tex
@@ -5,6 +5,10 @@
 \include{appendix/whymb/whymemorybarriers}
 \QuickQuizAnswers
 \input{glossary.tex}
-\bibliographystyle{alphapf} % use alpha style customized by urlbst with --inlinelinks option
+\IfTwoColumn{
+\bibliographystyle{alpha}   % Use genuine alpha style
+}{
+\bibliographystyle{alphapf} % Use alpha style customized by urlbst with --inlinelinks option
+}
 \bibliography{bib/RCU,bib/WFS,bib/hw,bib/os,bib/parallelsys,bib/patterns,bib/perfmeas,bib/refs,bib/syncrefs,bib/search,bib/swtools,bib/realtime,bib/TM,bib/standards,bib/OSS,bib/maze,bib/energy}
 \include{appendix/ack/ack}
-- 
2.7.4


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