Skip to content

Commit

Permalink
Preparing for release of 6th ed
Browse files Browse the repository at this point in the history
  • Loading branch information
jirilebl committed Jul 11, 2023
1 parent cd9bbbe commit b799f67
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 43 deletions.
10 changes: 8 additions & 2 deletions extra.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
.main #content {
#ptx-content {
max-width: 800px !important; text-align: justify !important;
}
#masthead.smallbuttons {
#ptx-masthead {
max-width: 1104px !important;
}
#ptx-navbar {
max-width: 1104px !important;
}
#ptx-page-footer {
max-width: 1104px !important;
}
.container.has-sidebar-left, .has-sidebar-left .container {
Expand Down
1 change: 1 addition & 0 deletions figures/figurerun-in.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[psamsfonts]{amsfonts}
\usepackage[psamsfonts]{amssymb}
\usepackage[pdftex]{graphicx}
Expand Down
68 changes: 38 additions & 30 deletions fixup-html-file.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,49 @@
{
if ($line =~ m/<a class="index-button.*index-1.html.*Index/) {
# Add extra buttons
#
# FIXME: fix tracking?

if ($track) {
print "<a onclick=\"gtag('event','download',{'event_category': 'ra', 'event_action': 'Link', 'event_label': 'PTXhtml(top) home ra'});\"\n";
} else {
print "<a ";
}
print " class=\"index-button toolbar-item button\" href=\"https://www.jirka.org/ra/\" title=\"Home\" alt=\"Book Home\">Home</a>\n";
#if ($track) {
# print "<a onclick=\"gtag('event','download',{'event_category': 'ra', 'event_action': 'Link', 'event_label': 'PTXhtml(top) home ra'});\"\n";
#} else {
# print "<a ";
#}
$extra = "<a class=\"index-button button\" href=\"https://www.jirka.org/ra/\" title=\"Home\" alt=\"Book Home\"><span class=\"name\">Home</span></a>\n";

if ($track) {
print "<a onclick=\"gtag('event','download',{'event_category': 'PDF', 'event_action': 'Download', 'event_label': 'PTXhtml(top) /ra/realanal.pdf'});\"\n";
} else {
print "<a ";
}
print " class=\"index-button toolbar-item button\" href=\"https://www.jirka.org/ra/realanal.pdf\" title=\"PDF\">PDF(I)</a>\n";
#if ($track) {
# print "<a onclick=\"gtag('event','download',{'event_category': 'PDF', 'event_action': 'Download', 'event_label': 'PTXhtml(top) /ra/realanal.pdf'});\"\n";
#} else {
# print "<a ";
#}
$extra .= "<a class=\"index-button button\" href=\"https://www.jirka.org/ra/realanal.pdf\" title=\"PDF\"><span class=\"name\">PDF(I)</span></a>\n";

if ($track) {
print "<a onclick=\"gtag('event','download',{'event_category': 'PDF', 'event_action': 'Download', 'event_label': 'PTXhtml(top) /ra/realanal.pdf'});\"\n";
} else {
print "<a ";
}
print " class=\"index-button toolbar-item button\" href=\"https://www.jirka.org/ra/realanal2.pdf\" title=\"PDF\">PDF(II)</a>\n";
#if ($track) {
# print "<a onclick=\"gtag('event','download',{'event_category': 'PDF', 'event_action': 'Download', 'event_label': 'PTXhtml(top) /ra/realanal.pdf'});\"\n";
#} else {
# print "<a ";
#}
$extra .= "<a class=\"index-button button\" href=\"https://www.jirka.org/ra/realanal2.pdf\" title=\"PDF\"><span class=\"name\">PDF(II)</span></a>\n";

##FIXME: add paperback buttons
if ($track) {
print "<a onclick=\"gtag('event','download',{'event_category': 'amazon', 'event_action': 'Link', 'event_label': 'PTXhtml(top) ra'});\"\n";
} else {
print "<a ";
}
print " class=\"index-button toolbar-item button\" href=\"https://smile.amazon.com/dp/1718862407\" title=\"Paperback\" alt=\"Buy Paperback\">Book(I)</a>\n";
#if ($track) {
# print "<a onclick=\"gtag('event','download',{'event_category': 'amazon', 'event_action': 'Link', 'event_label': 'PTXhtml(top) ra'});\"\n";
#} else {
# print "<a ";
#}
$extra .= "<a class=\"index-button button\" href=\"https://smile.amazon.com/dp/1718862407\" title=\"Paperback\" alt=\"Buy Paperback\"><span class=\"name\">Book(I)</span></a>\n";

#if ($track) {
# print "<a onclick=\"gtag('event','download',{'event_category': 'amazon', 'event_action': 'Link', 'event_label': 'PTXhtml(top) ra'});\"\n";
#} else {
# print "<a ";
#}
$extra .= "<a class=\"index-button button\" href=\"https://smile.amazon.com/dp/1718865481\" title=\"Paperback\" alt=\"Buy Paperback\"><span class=\"name\">Book(II)</span></a>\n";

if ($track) {
print "<a onclick=\"gtag('event','download',{'event_category': 'amazon', 'event_action': 'Link', 'event_label': 'PTXhtml(top) ra'});\"\n";
} else {
print "<a ";
if (not ($line =~ s/<button id="user-preferences-button"/$extra<button id="user-preferences-button"/)) {
print STDERR "Can't add extra buttons!";
exit 1;
}
print " class=\"index-button toolbar-item button\" href=\"https://smile.amazon.com/dp/1718865481\" title=\"Paperback\" alt=\"Buy Paperback\">Book(II)</a>\n";
}
if ($line =~ m/<\/head>/) {
# Fast preview doesn't seem worth it and it could be confusing since it's not quite right so disable it
Expand All @@ -76,7 +83,8 @@
print " or <tt>https://www.jirka.org/ra/realanal2.pdf</tt></em>\n";
print "</span>\n";
}
$line =~ s/>Authored in PreTeXt</>Created with PreTeXt</;
# no longer there
#$line =~ s/>Authored in PreTeXt</>Created with PreTeXt</;

# In case chtml is broken again
$line =~ s/^ chtml: {/ svg: {/;
Expand Down
1 change: 1 addition & 0 deletions realanal-publisher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<!-- Google search, via masthead textbox is switched on -->
<!-- and associated with a Google account via CX number -->
<search google-cx="006490116505509195242:bj7la1eakgo"/>
<search variant="none"/>

<knowl theorem="no" />
<knowl proof="no" />
Expand Down
7 changes: 2 additions & 5 deletions realanal.tex
Original file line number Diff line number Diff line change
Expand Up @@ -404,16 +404,13 @@
%PRINT
% not for lulu
%\noindent
%ISBN-13: 978-1718862401
%
%\noindent
%ISBN-10: 1718862407
%ISBN-13: 979-8851944635

%PRINT
% not for lulu
%\medskip
%\noindent
%Cover image: Hana Highway, Maui, Hawaii, \copyright 2008 Ji{\v r}\'i Lebl, all rights reserved. Cover
%Cover image: Mt. Olomana, Oahu, Hawaii, \copyright 2019 Ji{\v r}\'i Lebl, all rights reserved. Cover
%image cannot be reused in derivative works.

\bigskip
Expand Down
1 change: 1 addition & 0 deletions realanal12.tex
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@
%mbxmacro \newcommand{\qed}{\qquad \Box}
%mbxmacro \newcommand{\qedhere}{}
%mbxmacro \newcommand{\widebar}[1]{\overline{#1}}
%mbxmacro \newcommand{\coloneqq}{:=}

\begin{document}

Expand Down
9 changes: 3 additions & 6 deletions realanal2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,15 @@
%PRINT
% not for lulu
%\noindent
%ISBN-13: 978-1718865488
%
%\noindent
%ISBN-10: 1718865481
%ISBN-13: 979-8851945977


%PRINT
% not for lulu
%\medskip
%\noindent
%Cover image: Tree by the sugarcane fields on Baldwin Avenue, Maui, Hawaii,
%\copyright 2008 Ji{\v r}\'i Lebl, all rights reserved.
%Cover image: Tree in Balboa Park, San Diego, California,
%\copyright 2021 Ji{\v r}\'i Lebl, all rights reserved.
%Cover image cannot be reused in derivative works.

\bigskip
Expand Down

0 comments on commit b799f67

Please sign in to comment.