Skip to content

Commit

Permalink
2024-July-12
Browse files Browse the repository at this point in the history
  • Loading branch information
justineuro committed Jul 12, 2024
1 parent f9a9a57 commit 6060483
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
18 changes: 12 additions & 6 deletions HOWTO
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Create three sub-folders: `bin`, `images`, `res`, under the `mdgBookSVG-master` directory
# `bin` - folder for Bash files: mdg2mid-svg.sh, mdg2minRndN-svg.sh, entriesSVG.sh
# `images` - folder for image files for book cover/title page: 1.png, FrontCover.pdf
# `res` - folder for ABC, SVG, PDF output files; initially contains:
# `res` - folder for ABC, SVG, PDF output files; initially contains:
# 12TAB.pdf - crosstable for two-dice outcome vs. measure number of minuet
# abcmdg-k516f.abc - table of measures
# hyperref.cfg - file containing the \hypersetup{} keyvalues for the \hyperref pkg
Expand Down Expand Up @@ -60,10 +60,10 @@
# Create the abcmdg-k516f.pdf (table of measures) SVGs; aslo *pdf_tex files using inkscape

abcm2ps -v -O= abcmdg-k516f.abc
inkscape -D -z --file=abcmdg-k516f001.svg --export-pdf=abcmdg-k516f001.pdf --export-latex
inkscape -D -z --file=abcmdg-k516f002.svg --export-pdf=abcmdg-k516f002.pdf --export-latex
inkscape -D -z --file=abcmdg-k516f003.svg --export-pdf=abcmdg-k516f003.pdf --export-latex
inkscape -D -z --file=abcmdg-k516f004.svg --export-pdf=abcmdg-k516f004.pdf --export-latex
inkscape --export-filename=abcmdg-k516f001.pdf --export-area-drawing --export-latex abcmdg-k516f001.svg
inkscape --export-filename=abcmdg-k516f002.pdf --export-area-drawing --export-latex abcmdg-k516f002.svg
inkscape --export-filename=abcmdg-k516f003.pdf --export-area-drawing --export-latex abcmdg-k516f003.svg
inkscape --export-filename=abcmdg-k516f004.pdf --export-area-drawing --export-latex abcmdg-k516f004.svg

# Edit lines 53, 54 of abcmdg-k516f001.pdf_tex:
## - line 53: change ü (umlaut u) to \"{u} in Würferspiel
Expand All @@ -76,9 +76,11 @@
sed -i.OLD 's/Source: http/Source: \\url{http/g' abcmdg-k516f001.pdf_tex
sed -i.OLD 's/Amadeus)\]/Amadeus)}\]/g' abcmdg-k516f001.pdf_tex

## - add "\scriptsize" before every "tr" and "3-plet" (symbol for trill ornament)
## - add "\scriptsize" before every "tr" and "1./2." (symbol for trill ornament)

sed -i.OLD 's/\\textit{tr}/\\textit{\\footnotesize tr}/g' abcmdg-*.pdf_tex
sed -i.OLD 's/tabular}\[t\]{l}1\./tabular}\[t\]{l}\\footnotesize 1\./g' abcmdg-*.pdf_tex
sed -i.OLD 's/tabular}\[t\]{l}2\./tabular}\[t\]{l}\\footnotesize 2\./g' abcmdg-*.pdf_tex
sed -i.OLD 's/\[t\]{l}\\textit{/\[t\]{c}\\texttt{\\footnotesize /g' abcmdg-*.pdf_tex

# Generate the PDF
Expand All @@ -87,3 +89,7 @@
bibtex mdgBookSVGv1.aux
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape mdgBookSVGv1.tex
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape mdgBookSVGv1.tex

###
##
#
Binary file modified mdgBookSVGv1_1.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions mdgEntriesSVG2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
# DESCRIPTION: Used for generating needed LaTeX codes for inclusion of SVGs into LaTeX
#
# AUTHOR: J.L.A. Uro (justineuro@gmail.com)
# VERSION: 1.0.0
# VERSION: 1.0.1
# LICENSE: Creative Commons Attribution 4.0 International License (CC-BY)
# CREATED: 2017.09.08 15:58:16 +08
# REVISION:
# REVISION: 2024/07/12 19:23:59
#==================================================================================

#----------------------------------------------------------------------------------
Expand Down Expand Up @@ -40,7 +40,7 @@ i=0
while read ifile;
do
i=`expr $i + 1`
inkscape -D -z --file=$ifile --export-pdf=${ifile/.svg/}.pdf --export-latex
inkscape --export-filename=${ifile/.svg/}.pdf --export-area-drawing --export-latex $ifile
echo -e "file $i: converted $ifile to \n\t ${ifile/.svg/}.pdf, \n\t ${ifile/.svg/}.pdf_tex"
ifileA=${ifile/.svg/}
ifileB=${ifileA/K516f-/}
Expand Down

0 comments on commit 6060483

Please sign in to comment.