Re: [RFT PATCH] utilities/toarxiv.sh: Get rid of borders around hyperlinks

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

 



On Sun, Jan 05, 2020 at 12:40:50AM +0900, Akira Yokosawa wrote:
> >From 1edf6fb9b98cd74d37a3580f2b482d4d9c0197ad Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@xxxxxxxxx>
> Date: Sat, 4 Jan 2020 20:15:27 +0900
> Subject: [RFT PATCH] utilities/toarxiv.sh: Get rid of borders around hyperlinks
> 
> Based on a Q&A on StackExchange [1], putting "nohypertex" in
> 00README.XXX looks like the cause of all those ugly borders.
> 
> To override the default behavior of arxiv's hyperref,
> add a boolean "toarxiv" in perfbook.tex and set it "true" in
> toarxiv.sh so that the workaround code added in the preamble
> shall be enabled.
> 
> [1]: https://tex.stackexchange.com/questions/30243/
> 
> Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
> ---
> Hi Paul,
> 
> I looked at v2019.12.22a on https://arxiv.org/abs/1701.00854 and found that
> some pages in the PDF almost impossible to read because of frequent borders
> around hyperlinks.
> 
> I'm not sure this change in toarxiv.sh and perfbook.tex actually works on
> arxiv.org, but can you try building there and see whether it works or not?

Queued and pushed.  I have started the arxiv.org processing step, but it
usually takes awhile.  ;-)

							Thanx, Paul

>         Thanks, Akira
> -- 
>  perfbook.tex         | 14 +++++++++++++-
>  utilities/toarxiv.sh |  4 ++--
>  2 files changed, 15 insertions(+), 3 deletions(-)
> 
> diff --git a/perfbook.tex b/perfbook.tex
> index 0fae78fb..db334ae4 100644
> --- a/perfbook.tex
> +++ b/perfbook.tex
> @@ -110,10 +110,12 @@
>  \newboolean{nimbusavail}
>  \setboolean{nimbusavail}{false}
>  \newcommand{\IfNimbusAvail}[2]{\ifthenelse{\boolean{nimbusavail}}{#1}{#2}}
> -
>  \newboolean{colorlinks}
>  \setboolean{colorlinks}{false}
>  \newcommand{\IfColorLinks}[2]{\ifthenelse{\boolean{colorlinks}}{#1}{#2}}
> +\newboolean{toarxiv}
> +\setboolean{toarxiv}{false}
> +\newcommand{\IfToArxiv}[2]{\ifthenelse{\boolean{toarxiv}}{#1}{#2}}
>  
>  \IfTwoColumn{}{
>  \setboolean{colorlinks}{true}
> @@ -123,6 +125,16 @@
>  \hypersetup{colorlinks=true,allcolors=MediumBlue}
>  }{}
>  
> +\IfToArxiv{
> +\hypersetup{
> +    colorlinks=true,
> +    linkcolor=black,
> +    citecolor=black,
> +    filecolor=black,
> +    urlcolor=black,
> +}
> +}{}
> +
>  \IfNimbusAvail{
>  \usepackage{nimbusmononarrow}
>  }{}
> diff --git a/utilities/toarxiv.sh b/utilities/toarxiv.sh
> index 29bce4ea..5e1c6388 100644
> --- a/utilities/toarxiv.sh
> +++ b/utilities/toarxiv.sh
> @@ -79,6 +79,6 @@ rm ${destdir}/SMPdesign/DiningPhilosopher5TB.tex
>  
>  # The following changes work around arxiv.org limitations
>  sed	-e '/usepackage{footnotebackref}/d' \
> -	-e 's/\[bookmarks=true,bookmarksnumbered=true,pdfborder={0 0 0}]/[bookmarks=false]/' \
> +	-e 's/{toarxiv}{false}/{toarxiv}{true}/' \
>  	< perfbook.tex > ${destdir}/perfbook.tex
> -echo "nohypertex" > ${destdir}/00README.XXX
> +# echo "nohypertex" > ${destdir}/00README.XXX
> -- 
> 2.24.1
> 



[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