Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shell-workshop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirabilos
shell-workshop
Commits
2b4475da
Verified
Commit
2b4475da
authored
6 years ago
by
mirabilos
Committed by
mirabilos
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
begin improving the TeX situation
parent
6b2f7593
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
notes/linklist.mk
+24
-8
24 additions, 8 deletions
notes/linklist.mk
with
24 additions
and
8 deletions
notes/linklist.mk
+
24
−
8
View file @
2b4475da
...
...
@@ -48,6 +48,7 @@ die() {
# newline and block indent
nli
=
$'
\n
'
nlt
=
$'
\n
'
# for TeX, which can have more
cd
"$(dirname "
$0
")"
exec
<linklist.dat
...
...
@@ -61,8 +62,11 @@ print -ru5
function
endit
{
((
init
))
||
return
0
print
-ru4
--
'</li>'
xnl
=
print
-ru5
--
'%'
print
-ru5
--
'}'
print
-ru5
tnl
=
init
=
0
}
...
...
@@ -118,12 +122,14 @@ inpq=0
inao
=
nline
=
0
xnl
=
tnl
=
while
IFS
=
read
-r
line
;
do
oline
=
$line
;
let
++nline
if
[[
$line
!=
.
*
]]
;
then
print
-nru4
--
"$xnl${|tohtm "
$line
";}"
xnl
=
$nli
print
-ru5
--
"${|totex "
$line
";}"
print
-nru5
--
"$tnl${|totex "
$line
";}"
tnl
=
$nlt
continue
fi
while
[[
$line
=
*
\\
]]
;
do
...
...
@@ -139,7 +145,8 @@ while IFS= read -r line; do
(Po)
print
-nru4
--
"$xnl("
xnl
=
print
-nru5
--
"("
print
-nru5
--
"$tnl("
tnl
=
getcw
;;
}
...
...
@@ -150,6 +157,7 @@ while IFS= read -r line; do
print
-ru5
--
'\defcaptionname{german,british}{\refname}{'
"${|totex "
$line
";}"
'}%'
print
-ru5
--
'\begin{autosizedbibliography}'
print
-ru5
tnl
=
init
=
0
;;
(El)
...
...
@@ -161,6 +169,7 @@ while IFS= read -r line; do
xnl
=
print
-ru5
--
'\end{autosizedbibliography}'
print
-ru5
tnl
=
;;
(It)
endit
...
...
@@ -174,15 +183,17 @@ while IFS= read -r line; do
fi
init
=
1
xnl
=
tnl
=
' '
;;
(a)
getcw
getpc
print
-nru4
--
"$xnl<a href=\"${|tohtm "
$cw
";}\">${|tohtm "
$line
";}</a>$pc"
xnl
=
$nli
print
-ru5
--
"\\href{${|totex "
$cw
";}}{%"
print
-ru5
--
" ${|totex "
$line
";}%"
print
-ru5
--
'}\Hair\footnote{\texttt{[\url{'
"${|totex "
$cw
";}}]}}$pc"
print
-nru5
--
"$tnl\\href{${|totex "
$cw
";}}{%"
print
-nru5
--
"$nlt ${|totex "
$line
";}%"
print
-nru5
--
"$nlt"
'}\Hair\footnote{\texttt{[\url{'
"${|totex "
$cw
";}}]}}$pc"
tnl
=
$nlt
;;
(ao)
[[
-z
$inao
]]
||
die
already
in
a
.ao
...
...
@@ -190,13 +201,17 @@ while IFS= read -r line; do
inao
=
${
|totex
"
$line
"
;}
print
-nru4
--
"$xnl<a href=\"${|tohtm "
$line
";}\">"
xnl
=
print
-ru5
--
"\\href{$inao}{%"
print
-nru5
--
"$tnl\\href{$inao}{%"
nlt
+=
' '
tnl
=
$nlt
;;
(ac)
nlt
=
${
nlt%
}
tnl
=
${
tnl%
}
((
inpq
>>=
1
))
getpc
print
-nru4
--
"</a>$pc"
print
-ru5
--
'}
\Hair\footnote{\texttt{[\url{
'
"
$inao}]}}$pc"
print
-
n
ru5
--
"%$nlt}\
\Hair\
\
footnote{\
\
texttt{[\
\
url{$inao}]}}$pc"
inao
=
;;
(Em)
...
...
@@ -223,7 +238,8 @@ while IFS= read -r line; do
fi
print
-nru4
--
"$xnl<$xmlcmd$xmllang>${|tohtm "
$line
";}</$xmlcmd>$pc"
xnl
=
$nli
print
-ru5
--
"$ltxcmd${|totex "
$line
";}$ltxend$pc"
print
-nru5
--
"$tnl$ltxcmd${|totex "
$line
";}$ltxend$pc"
tnl
=
$nlt
;;
(*)
die "Unknown command
:
$cw"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment