Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spis piosenek na górze. #249

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions render_pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ else
JOB="output"
fi

(cd ${tex_dir}; rm -rf "${JOB}.aind" "${JOB}.gind" "${JOB}.wind" "${JOB}.aadx" "${JOB}.gadx" "${JOB}.wadx")

# Run pdflatex three times to recalculate longtables and toc
TEXINPUTS=.:${__dir}/src/latex: pdflatex -jobname=${JOB} -output-directory "${tex_dir}" "${tex_file}"
(cd ${tex_dir}; makeindex -o "${JOB}.aind" "${JOB}.aadx")
(cd ${tex_dir}; makeindex -o "${JOB}.gind" "${JOB}.gadx")
(cd ${tex_dir}; makeindex -o "${JOB}.wind" "${JOB}.wadx")
INDEX_STY=()
(cd ${tex_dir}; makeindex "${INDEX_STY[@]}" -o "${JOB}.aind" "${JOB}.aadx")
(cd ${tex_dir}; makeindex "${INDEX_STY[@]}" -o "${JOB}.gind" "${JOB}.gadx")
(cd ${tex_dir}; makeindex "${INDEX_STY[@]}" -o "${JOB}.wind" "${JOB}.wadx")
TEXINPUTS=.:${__dir}/src/latex: pdflatex -jobname=${JOB} -output-directory "${tex_dir}" "${tex_file}"
TEXINPUTS=.:${__dir}/src/latex: pdflatex -jobname=${JOB} -output-directory "${tex_dir}" "${tex_file}"
14 changes: 8 additions & 6 deletions src/formats/songbook_p.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
\usepackage{mfirstuc}
\usepackage[fit]{truncate}

\newindex{wyk}{wadx}{wind}{Indeks wykonawców}
\newindex{aliases}{aadx}{aind}{Indeks tytułów}
\newindex{genre}{gadx}{gind}{Indeks gatunków}
\newindex{wyk}{wadx}{wind}{Wykonawcy}
\newindex{aliases}{aadx}{aind}{Piosenki}
\newindex{genre}{gadx}{gind}{Gatunki}


\usepackage{hyperref}
Expand Down Expand Up @@ -56,6 +56,8 @@
\fancyfoot[CE,CO]{}
\fancyhead[RE,LO]{\today}

\pagenumbering{roman}

\begin{document}

\thispagestyle{empty}
Expand All @@ -81,8 +83,8 @@
\vfill
\rightline{\qrcode{:url:}}

\cleardoublepage
\printindex[aliases]
\cleardoublepage


%\printindex[aliases]
%\cleardoublepage
\pagenumbering{arabic}
1 change: 0 additions & 1 deletion src/formats/songbook_s.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

\printindex[wyk]
\printindex[genre]
\printindex[aliases]
\end{document}
4 changes: 4 additions & 0 deletions src/latex/indeks.ist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
delim_0 "\\dotfill\ "
delim_1 "\\dotfill\ "
headings_flag 1
heading_prefix "aaa"
6 changes: 3 additions & 3 deletions src/latex/songbook21wdh.sty
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@
\renewcommand{\theLetter}{\firstof{#1}}%
% #7 - alias #8- genre
\addtocounter{SongCnt}{1}%
\index[wyk]{#4!#1}
\IfStrEq{#4}{}{}{\index[wyk]{#4!#1}}
\index[aliases]{#1}
\index[aliases]{#8!#1}
\index[genre]{\makefirstuc{#7}!#1}
\IfStrEq{#8}{}{}{\index[aliases]{#8!#1}}
\IfStrEq{#7}{}{}{\index[genre]{\makefirstuc{#7}!#1}}
\addcontentsline{toc}{section}{\theSongCnt{}. #1}%
% \addcontentsline{toc}{section}{alias title}
\STitle{\theSongTitle}%
Expand Down