Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
decker-production
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
HCI-Development
decker-production
Commits
7ebdec7e
Commit
7ebdec7e
authored
7 years ago
by
Henrik Tramberend
Browse files
Options
Downloads
Patches
Plain Diff
Experimental fix for #41
parent
29d34a2f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resource/template/acm-sig-proceedings.csl
+161
-0
161 additions, 0 deletions
resource/template/acm-sig-proceedings.csl
src/Utilities.hs
+16
-3
16 additions, 3 deletions
src/Utilities.hs
with
177 additions
and
3 deletions
resource/template/acm-sig-proceedings.csl
0 → 100644
+
161
−
0
View file @
7ebdec7e
<?xml version="1.0" encoding="utf-8"?>
<style
xmlns=
"http://purl.org/net/xbiblio/csl"
class=
"in-text"
version=
"1.0"
demote-non-dropping-particle=
"sort-only"
default-locale=
"en-US"
>
<info>
<title>
ACM SIG Proceedings ("et al." for 3+ authors)
</title>
<id>
http://www.zotero.org/styles/acm-sig-proceedings
</id>
<link
href=
"http://www.zotero.org/styles/acm-sig-proceedings"
rel=
"self"
/>
<link
href=
"http://www.acm.org/sigs/publications/proceedings-templates"
rel=
"documentation"
/>
<author>
<name>
Naeem Esfahani
</name>
<email>
nesfaha2@gmu.edu
</email>
<uri>
http://mason.gmu.edu/~nesfaha2/
</uri>
</author>
<contributor>
<name>
Chris Horn
</name>
<email>
chris.horn@securedecisions.com
</email>
</contributor>
<category
citation-format=
"numeric"
/>
<category
field=
"science"
/>
<category
field=
"engineering"
/>
<updated>
2014-09-06T22:02:33+00:00
</updated>
<rights
license=
"http://creativecommons.org/licenses/by-sa/3.0/"
>
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License
</rights>
</info>
<macro
name=
"author"
>
<choose>
<if
type=
"webpage"
>
<text
variable=
"title"
suffix=
":"
/>
</if>
<else>
<names
variable=
"author"
>
<name
name-as-sort-order=
"all"
and=
"text"
sort-separator=
", "
initialize-with=
"."
delimiter-precedes-last=
"never"
delimiter=
", "
/>
<label
form=
"short"
prefix=
" "
/>
<substitute>
<names
variable=
"editor"
/>
<names
variable=
"translator"
/>
</substitute>
</names>
</else>
</choose>
</macro>
<macro
name=
"editor"
>
<names
variable=
"editor"
>
<name
initialize-with=
"."
delimiter=
", "
and=
"text"
/>
<label
form=
"short"
prefix=
", "
/>
</names>
</macro>
<citation
collapse=
"citation-number"
>
<sort>
<key
variable=
"citation-number"
/>
</sort>
<layout
prefix=
"["
suffix=
"]"
delimiter=
", "
>
<text
variable=
"citation-number"
/>
</layout>
</citation>
<bibliography
entry-spacing=
"0"
second-field-align=
"flush"
et-al-min=
"3"
et-al-use-first=
"1"
>
<sort>
<key
macro=
"author"
/>
<key
variable=
"title"
/>
</sort>
<layout
suffix=
"."
>
<text
variable=
"citation-number"
prefix=
"["
suffix=
"]"
/>
<text
macro=
"author"
suffix=
" "
/>
<date
variable=
"issued"
suffix=
". "
>
<date-part
name=
"year"
/>
</date>
<choose>
<if
type=
"paper-conference"
>
<group
delimiter=
". "
>
<text
variable=
"title"
/>
<group
delimiter=
" "
>
<text
variable=
"container-title"
font-style=
"italic"
/>
<group
delimiter=
", "
>
<group
delimiter=
", "
prefix=
"("
suffix=
")"
>
<text
variable=
"publisher-place"
/>
<date
variable=
"issued"
>
<date-part
name=
"month"
form=
"short"
suffix=
" "
/>
<date-part
name=
"year"
/>
</date>
</group>
<text
variable=
"page"
/>
</group>
</group>
</group>
</if>
<else-if
type=
"article-journal"
>
<group
delimiter=
". "
>
<text
variable=
"title"
/>
<text
variable=
"container-title"
font-style=
"italic"
/>
<group
delimiter=
", "
>
<text
variable=
"volume"
/>
<group
delimiter=
" "
>
<text
variable=
"issue"
/>
<date
variable=
"issued"
prefix=
"("
suffix=
")"
>
<date-part
name=
"month"
form=
"short"
suffix=
" "
/>
<date-part
name=
"year"
/>
</date>
</group>
<text
variable=
"page"
/>
</group>
</group>
</else-if>
<else-if
type=
"patent"
>
<group
delimiter=
". "
>
<text
variable=
"title"
/>
<text
variable=
"number"
/>
<date
variable=
"issued"
>
<date-part
name=
"month"
form=
"short"
suffix=
" "
/>
<date-part
name=
"day"
suffix=
", "
/>
<date-part
name=
"year"
/>
</date>
</group>
</else-if>
<else-if
type=
"thesis"
>
<group
delimiter=
". "
>
<text
variable=
"title"
font-style=
"italic"
/>
<text
variable=
"archive_location"
prefix=
"Doctoral Thesis #"
/>
<text
variable=
"publisher"
/>
</group>
</else-if>
<else-if
type=
"report"
>
<group
delimiter=
". "
>
<text
variable=
"title"
font-style=
"italic"
/>
<text
variable=
"number"
prefix=
"Technical Report #"
/>
<text
variable=
"publisher"
/>
</group>
</else-if>
<else-if
type=
"webpage"
>
<group
delimiter=
". "
>
<text
variable=
"URL"
font-style=
"italic"
/>
<date
variable=
"accessed"
prefix=
"Accessed: "
>
<date-part
name=
"year"
suffix=
"-"
/>
<date-part
name=
"month"
form=
"numeric-leading-zeros"
suffix=
"-"
/>
<date-part
name=
"day"
form=
"numeric-leading-zeros"
/>
</date>
</group>
</else-if>
<else-if
type=
"chapter paper-conference"
match=
"any"
>
<group
delimiter=
". "
>
<text
variable=
"title"
/>
<text
variable=
"container-title"
font-style=
"italic"
/>
<text
macro=
"editor"
/>
<text
variable=
"publisher"
/>
<text
variable=
"page"
/>
</group>
</else-if>
<else-if
type=
"bill book graphic legal_case legislation motion_picture report song"
match=
"any"
>
<group
delimiter=
". "
>
<text
variable=
"title"
font-style=
"italic"
/>
<text
variable=
"publisher"
/>
</group>
</else-if>
<else>
<group
delimiter=
". "
>
<text
variable=
"title"
/>
<text
variable=
"container-title"
font-style=
"italic"
/>
<text
variable=
"publisher"
/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
This diff is collapsed.
Click to expand it.
src/Utilities.hs
+
16
−
3
View file @
7ebdec7e
...
...
@@ -57,6 +57,7 @@ import Text.CSL.Pandoc
import
qualified
Text.Mustache
as
M
import
qualified
Text.Mustache.Types
as
MT
import
Text.Pandoc
import
Text.Pandoc.Builder
import
Text.Pandoc.PDF
import
Text.Pandoc.Shared
import
Text.Pandoc.Walk
...
...
@@ -545,14 +546,26 @@ processIncludes baseDir (Pandoc meta blocks) = do
return
$
included
:
result
include
_
result
block
=
return
$
[
block
]
:
result
processCitesWithDefault
::
Pandoc
->
Action
Pandoc
processCitesWithDefault
pandoc
@
(
Pandoc
meta
blocks
)
=
do
document
<-
do
case
lookupMeta
"csl"
meta
of
Nothing
->
do
app
<-
appData
<$>
getProjectDirs
let
defaultCsl
=
app
</>
"template"
</>
"acm-sig-proceedings.csl"
let
meta
=
setMeta
"csl"
(
MetaString
defaultCsl
)
meta
return
(
Pandoc
meta
blocks
)
_
->
return
pandoc
liftIO
$
processCites'
document
processPandocPage
::
String
->
Pandoc
->
Action
Pandoc
processPandocPage
format
pandoc
=
do
cited
<-
liftIO
$
processCites
'
pandoc
cited
<-
processCites
WithDefault
pandoc
return
$
(
renderMediaTags
Page
.
expandMacros
(
Format
format
))
cited
processPandocDeck
::
String
->
Pandoc
->
Action
Pandoc
processPandocDeck
format
pandoc
=
do
cited
<-
liftIO
$
processCites
'
pandoc
cited
<-
processCites
WithDefault
pandoc
return
$
(
renderMediaTags
Page
.
makeSlides
(
Format
format
)
.
expandMacros
(
Format
format
))
...
...
@@ -560,7 +573,7 @@ processPandocDeck format pandoc = do
processPandocHandout
::
String
->
Pandoc
->
Action
Pandoc
processPandocHandout
format
pandoc
=
do
cited
<-
liftIO
$
processCites
'
pandoc
cited
<-
processCites
WithDefault
pandoc
return
$
(
renderMediaTags
Page
.
expandMacros
(
Format
format
))
cited
type
StringWriter
=
WriterOptions
->
Pandoc
->
String
...
...
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