Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 15, 2024
1 parent 5e21b66 commit a74b169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/coverpage/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ convert_unicode_to_latex() {
while IFS= read -r line; do
unicode_char=$(echo "$line" | cut -d ' ' -f 1)
latex_command=$(echo "$line" | cut -d ' ' -f 2-)
output=$(echo "$output" | sed "s/${unicode_char}/${latex_command}/g")
output="${output//${unicode_char}/${latex_command}}"
done < unicode_to_latex.map

echo "$output" | sed -E 's/\^(\{[^}]*\})/$\^\1$/g' | sed -E 's/_\{([^}]*)\}/$_{\1}$/g'
echo "$output" | sed -E "s/\^(\{[^}]*\})/\$\^\1\$/g" | sed -E "s/_\{([^}]*)\}/\$_{\1}\$/g"
}

if [ "$#" -ne 4 ]; then
Expand Down

0 comments on commit a74b169

Please sign in to comment.