Skip to content

Commit

Permalink
prepare V0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaneichert committed Apr 29, 2022
1 parent e822a6e commit c17e6ab
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 49 deletions.
57 changes: 32 additions & 25 deletions OS-Strategy_NHMW.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
<!--begin-->
# Open Science in Museums - Strategy of the Naturhistorisches Museum Wien (NHMW): <br><br> *The benefits of openness*
###
<!--end-->

<!-- comment .pdf creation begin -->
<!--uncommentbegin
# Open Science in Museums - Strategy of the Naturhistorisches Museum Wien (NHMW):
# *The benefits of openness*
uncommentend-->

<!--begin-->
[![version](https://img.shields.io/badge/version-1.0-blue)](#)
[![license](https://img.shields.io/badge/license-CC--BY--4.0-brightgreen)](https://creativecommons.org/licenses/by/4.0/)
[![date](https://img.shields.io/badge/date-2022--04--27-green)](#)
[![date](https://img.shields.io/badge/doi-20020427-orange)](https://doi.org/doitocome)
<!-- comment .pdf creation end -->
<!--end-->

<!-- uncomment begin
<!--uncommentbegin
###
uncomment end -->
uncommentend-->

<!-- comment .pdf creation begin -->
<!--begin-->
**Authors:**
*[Vohland, Katrin](https://orcid.org/0000-0002-7214-7015) [![orcID](assets/ORCID-iD_icon-vector.svg)](https://orcid.org/0000-0002-7214-7015);
[Eichert, Stefan](https://orcid.org/0000-0002-5827-0797) [![orcID](assets/ORCID-iD_icon-vector.svg)](https://orcid.org/0000-0002-5827-0797);
Expand All @@ -24,9 +32,9 @@ Fiedler, Sarah;
[Rainer, Heimo](https://orcid.org/0000-0002-5963-349X) [![orcID](assets/ORCID-iD_icon-vector.svg)](https://orcid.org/0000-0002-5963-349X);
[Schwentner, Martin](https://orcid.org/0000-0002-1373-456X) [![orcID](assets/ORCID-iD_icon-vector.svg)](https://orcid.org/0000-0002-1373-456X);
[Zimmermann, Eva](https://orcid.org/0000-0002-6537-106X) [![orcID](assets/ORCID-iD_icon-vector.svg)](https://orcid.org/0000-0002-6537-106X);*
<!-- comment .pdf creation end -->
<!--end-->

<!-- -- uncomment begin
<!--uncommentbegin
**Authors:**
*[Vohland, Katrin](https://orcid.org/0000-0002-7214-7015) [![orcID](assets/ORCID-iD_icon-vector10.svg)](https://orcid.org/0000-0002-7214-7015);
[Eichert, Stefan](https://orcid.org/0000-0002-5827-0797) [![orcID](assets/ORCID-iD_icon-vector10.svg)](https://orcid.org/0000-0002-5827-0797);
Expand All @@ -40,7 +48,7 @@ Fiedler, Sarah;
[Zimmermann, Eva](https://orcid.org/0000-0002-6537-106X) [![orcID](assets/ORCID-iD_icon-vector10.svg)](https://orcid.org/0000-0002-6537-106X);*
##
uncomment end -->
uncommentend-->

<br>
Please cite this document as follows:
Expand All @@ -61,39 +69,38 @@ Please cite this document as follows:
<br>
<br>

<!-- uncomment begin
<!--uncommentbegin
##
uncomment end -->
uncommentend-->

<!-- comment .pdf creation begin -->
<!--begin-->
[![nhmw logo](assets/logo.svg)](https://nhm-wien.ac.at)

Burgring 7
1010 Wien
[https://nhm-wien.ac.at](https://nhm-wien.ac.at/)
<!-- comment .pdf creation end -->
<!--end-->

<!-- uncomment begin
<!--uncommentbegin
[![nhmw logo](assets/logosm.svg)](https://nhm-wien.ac.at)
Burgring 7
1010 Wien
[https://nhm-wien.ac.at](https://nhm-wien.ac.at/)
##
This work is licensed under a
[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
[![CC BY 4.0](https://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/)
\
| Version | Date | DOI |
|---------|------|-----|
|1.0|2022-04-27|https://doi.org/doitocome|
####
|1.0|2022-04-27|https://doi.org/doitocome|
\
This work is licensed under a
[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
[![CC BY 4.0](https://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/)
\pagebreak
uncomment end -->
uncommentend-->

<br>
<br>
Expand Down Expand Up @@ -170,9 +177,9 @@ uncomment end -->

---

<!-- uncomment begin
<!--uncommentbegin
\pagebreak
uncomment end -->
uncommentend-->

# Summary

Expand Down Expand Up @@ -1276,4 +1283,4 @@ Kulturstyrelsen \ Danish Agency for Culture, 2013, p 148ff.

[^41]: https://ariadne-infrastructure.eu/

[^42]: https://www.abol.ac.at/
[^42]: https://www.abol.ac.at/
Binary file modified documents/OS-Strategy-NHMW_V1.pdf
Binary file not shown.
12 changes: 12 additions & 0 deletions pdf_conversion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
sed -i -e 's/<!--begin-->/<!--beginRedo/g' $1
sed -i -e 's/<!--end-->/3nD-->/g' $1
sed -i -e 's/<!--uncommentbegin/<!--uncommentbeginRedo-->/g' $1
sed -i -e 's/uncommentend-->/<!--uncommentendRedo-->/g' $1

pandoc $1 -o $2

sed -i -e 's/<!--beginRedo/<!--begin-->/g' $1
sed -i -e 's/3nD-->/<!--end-->/g' $1
sed -i -e 's/<!--uncommentbeginRedo-->/<!--uncommentbegin/g' $1
sed -i -e 's/<!--uncommentendRedo-->/uncommentend-->/g' $1
28 changes: 5 additions & 23 deletions pdf_workflow.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
# PDF creation

This document explains the workflow for the generic creation of a PDF version
of the main .md document.
of the main .md document. (On Linux distributions)

## Make sure [`pandoc`](https://pandoc.org/) is installed locally on your system:
On Linux (Debian/Ubuntu):
>sudo apt-get install pandoc texlive-latex-base texlive-fonts-recommended texlive-extra-utils texlive-latex-extra

For other distributions see: https://pandoc.org/installing.html
# sudo apt-get install pandoc texlive-latex-base texlive-fonts-recommended texlive-extra-utils texlive-latex-extra

## Prepare the `OS-Strategy-NHMW-Vx.md`file for conversion
## Convert `.md` file to `.pdf`
Run the script `pdf_conversion.sh`

search and replace:

* 1: `<!-- comment .pdf creation begin -->` with `<!--`
* 2: `<!-- comment .pdf creation end -->` with `-->`
* 3: `<!-- uncomment begin` with `<!-- uncomment begin -->`
* 4: `<!-- uncomment end` with `<!-- uncomment end -->`

## Create .pdf
Open a terminal and convert the .md file to .pdf
> pandoc sourcefile.md -o outputfile.pdf
## Undo comment/uncomment

search and replace:

* 1: `<!--` with `<!-- comment .pdf creation begin -->`
* 2: `-->` with `<!-- comment .pdf creation end -->`
* 3: `<!-- uncomment begin -->` with `<!-- uncomment begin`
* 4: `<!-- uncomment end -->` with `<!-- uncomment end`
# sh pdf_conversion yourInputfile.md yourOutputfile.pdf

## Check the pdf file
That's it! Hope you like the result.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

| Date | Version | Files |
|------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|2022-04-27|1.0| [`Online`](OS-Strategy_NHMW.md) [`.docx`](https://github.com/nhmvienna/OS_Strategy_NHMW/raw/main/documents/OS-Strategy-NHMW_V1.docx) [`.pdf`](documents/OS-Strategy-NHMW_V1.pdf) |
|2022-04-27|1.0| [`Online`](OS-Strategy_NHMW.md) [`.pdf`](documents/OS-Strategy-NHMW_V1.pdf) |

# About
In this repository the NHMW develops its strategy in which areas the museum already contributes and can contribute to implement Open
Expand Down

0 comments on commit c17e6ab

Please sign in to comment.