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
57ab1ca1
Verified
Commit
57ab1ca1
authored
6 years ago
by
mirabilos
Committed by
mirabilos
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor
parent
ec3966e8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
notes/cvtdat.sh
+23
-9
23 additions, 9 deletions
notes/cvtdat.sh
with
23 additions
and
9 deletions
notes/cvtdat.sh
+
23
−
9
View file @
57ab1ca1
...
...
@@ -189,6 +189,26 @@ function getpc {
fi
}
function
anchorIt
{
local id
=
$cw
idhtm idltx
lbl
=
$line
lblhtm lblltx ltxit
idhtm
=
${
|tohtm
"
$id
"
;
}
idltx
=
${
|totex
"
$id
"
;
}
if
[[
-z
$lbl
]]
;
then
lbl
=
$id
lblhtm
=
$idhtm
lblltx
=
$idltx
ltxit
=
"{
$idltx
}"
else
lblhtm
=
${
|tohtm
"
$lbl
"
;
}
lblltx
=
${
|totex
"
$lbl
"
;
}
ltxit
=
"[
$lblltx
]{
$idltx
}"
fi
[[
$li
=
li
]]
||
print
-nru4
--
"<dt>
$lblhtm
</dt>"
print
-nru4
--
"<
$li$xmllang
id=
\"
$idhtm
\"
>"
xnl
=
print
-ru5
--
"
\\
bibitem
$ltxit$ltxlang
{%"
tnl
=
' '
}
init
=
0
inpq
=
0
inao
=
0
...
...
@@ -267,18 +287,12 @@ while IFS= read -r line; do
if
[[
-z
$cw
]]
;
then
[[
$li
=
li
]]
||
print
-nru4
--
"<dt>✹</dt>"
print
-nru4
--
"<
$li$xmllang
>"
xnl
=
print
-ru5
--
'\item[\TwelweStar\hfill]'
"
$ltxlang
{%"
elif
[[
-z
$line
]]
;
then
[[
$li
=
li
]]
||
print
-nru4
--
"<dt>
${
|tohtm
"
$cw
"
;
}
</dt>"
print
-nru4
--
"<
$li$xmllang
id=
\"
${
|tohtm
"
$cw
"
;
}
\"
>"
print
-ru5
--
"
\\
bibitem{
${
|totex
"
$cw
"
;
}
}
$ltxlang
{%"
tnl
=
' '
else
[[
$li
=
li
]]
||
print
-nru4
--
"<dt>
${
|tohtm
"
$line
"
;
}
</dt>"
print
-nru4
--
"<
$li$xmllang
id=
\"
${
|tohtm
"
$cw
"
;
}
\"
>"
print
-ru5
--
"
\\
bibitem[
${
|totex
"
$line
"
;
}
]{
${
|totex
"
$cw
"
;
}
}
$ltxlang
{%"
anchorIt
fi
xnl
=
tnl
=
' '
init
=
1
;;
(
a
)
...
...
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