-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca0ca34
commit a26193f
Showing
10 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ Deckblatt: true | |
toc: true | ||
lot: false | ||
lof: false | ||
glossaryafter: true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
-- Source: https://github.com/tomncooper/pandoc-gls | ||
|
||
function replace(front, ac, back, command) | ||
|
||
new_str = string.format("%s\\%s{%s}%s", front, command, ac, back) | ||
|
||
return new_str | ||
end | ||
|
||
function Str(el) | ||
|
||
front, capital, plural, ac, apostrophe, back = el.text:match( | ||
"(%g*)%(([%+%-]+)(%^-)(%w+[_%-]*%w*)%)([%\u{0027}%\u{2019}]*)(%g*)" | ||
) | ||
|
||
if ac ~= "" then | ||
if plural == "^" then | ||
if capital == "++" then | ||
command = "Glspl" | ||
elseif capital == "+" then | ||
command = "glspl" | ||
elseif capital == "-+" then | ||
command = "Glsentryplural" | ||
elseif capital == "-" then | ||
command = "glsentryplural" | ||
else | ||
-- Unknown command string so just return the element unchanged | ||
return el | ||
end | ||
else | ||
if capital == "++" then | ||
command = "Gls" | ||
elseif capital == "+" then | ||
command = "gls" | ||
elseif capital == "-+" then | ||
command = "Glsentryname" | ||
elseif capital == "-" then | ||
command = "glsentryname" | ||
else | ||
-- Unknown command string so just return the element unchanged | ||
return el | ||
end | ||
end | ||
|
||
if apostrophe == "\u{0027}" or apostrophe == "\u{2019}" then | ||
if back ~= "" then | ||
back = string.format("\\textquotesingle %s", back) | ||
else | ||
back = "\\textquotesingle\\space" | ||
end | ||
end | ||
|
||
return pandoc.RawInline("tex", replace(front, ac, back, command)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ | |
\usepackage{fancyhdr} | ||
|
||
\usepackage{tabularx} | ||
\usepackage{booktabs} | ||
\usepackage{booktabs} | ||
|
||
\usepackage{glossaries} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
\newglossaryentry{CPU} | ||
{ | ||
name={Central Processing Unit}, | ||
description={the key component of a computer system, which contains the circuitry necessary to interpret and execute program instructions.} | ||
} | ||
|
||
\newacronym{BAR}{BAR}{big awesome robot} |