MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with P0009.1. If not, see <http://www.gnu.org/licenses/>. """ import sys from academicmarkdown import build, git, tools import myZoteroCredentials import time version = '2.2.3' build.path += ['svg', 'md', 'tables'] build.zoteroApiKey = myZoteroCredentials.zoteroApiKey build.zoteroLibraryId = myZoteroCredentials.zoteroLibraryId build.setStyle('apa') build.css = 'css/apa-150.css' build.pdfHeader = 'Manuscript in preparation [v%s; %s; %s]' % (version, \ time.strftime('%c'), git.commitHash()) if '--snapshot' in sys.argv: git.snapshot('md/__main__.md', msg=sys.argv[-1]) else: build.PDF('md/__main__.md', 'latest-manuscript.pdf', lineNumbers=True) build.zoteroApiKey = None build.setStyle('letter-classic') build.pdfHeader = 'Coverletter [v%s; %s; %s]' % (version, time.strftime('%c'), git.commitHash()) build.PDF('md/coverletter.%s.md' % version, 'coverletter-%s.pdf' % version, lineNumbers=False) build.DOC('md/coverletter.%s.md' % version, 'coverletter-%s.doc' % version) build.ODT('md/coverletter.%s.md' % version, 'coverletter-%s.odt' % version)
#-*- coding:utf-8 -*- """ This file is part of QProgEdit. QProgEdit is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. QProgEdit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with QProgEdit. If not, see <http://www.gnu.org/licenses/>. """ import yamldoc import QProgEdit from QProgEdit.py3compat import * from academicmarkdown import build df = yamldoc.DocFactory(QProgEdit) s = str(df) print(s) build.setStyle('modern') build.MD(s, u'readme.md') build.PDF(s, u'readme.pdf')
#!/usr/bin/env python #-*- coding:utf-8 -*- """ This file is part of QProgEdit. QProgEdit is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. QProgEdit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with QProgEdit. If not, see <http://www.gnu.org/licenses/>. """ import yamldoc import QProgEdit from QProgEdit.py3compat import * from academicmarkdown import build df = yamldoc.DocFactory(QProgEdit) s = str(df) print(s) build.setStyle('modern') build.MD(s, u'readme.md') build.PDF(s, u'readme.pdf')
(at your option) any later version. P0009.1 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with P0009.1. If not, see <http://www.gnu.org/licenses/>. """ import sys from academicmarkdown import build, git import myZoteroCredentials import time version = '1.1.4' build.path += ['svg', 'md', 'tbl'] build.zoteroApiKey = myZoteroCredentials.zoteroApiKey build.zoteroLibraryId = myZoteroCredentials.zoteroLibraryId build.setStyle('apa') build.docxRef = None build.tableTemplate = 'pandoc' build.pdfHeader = 'Manuscript in preparation [v%s; %s; %s]' % (version, \ time.strftime('%c'), git.commitHash().decode()) if '--snapshot' in sys.argv: git.exportFormats = 'pdf', 'docx' git.snapshot('md/__main__.md', msg=sys.argv[-1]) else: build.DOCX('md/__main__.md', 'latest-manuscript.docx') build.PDF('md/__main__.md', 'latest-manuscript.pdf', lineNumbers=False)
#!/usr/bin/env python3 # coding=utf-8 import sys from academicmarkdown import build, git import myZoteroCredentials import time version = '1.4.1' build.path += ['svg', 'md', 'tbl'] build.zoteroApiKey = myZoteroCredentials.zoteroApiKey build.zoteroLibraryId = myZoteroCredentials.zoteroLibraryId build.setStyle('apa') build.docxRef = None build.tableTemplate = 'pandoc' build.pdfHeader = 'Manuscript in preparation [v%s; %s; %s]' % (version, time.strftime('%c'), git.commitHash().decode()) if '--snapshot' in sys.argv: git.exportFormats = 'pdf', 'docx' git.snapshot('md/__main__.md', msg=sys.argv[-1]) build.DOCX('md/__coverletter_2__.md', 'latest-coverletter.docx') else: build.PDF('md/__main__.md', 'latest-manuscript.pdf', lineNumbers=False) build.DOCX('md/__main__.md', 'latest-manuscript.docx') build.setStyle('letter-classic') build.zoteroApiKey = None build.PDF('md/__coverletter_r3__.md', 'latest-coverletter.pdf') build.DOCX('md/__coverletter_r3__.md', 'latest-coverletter.docx')
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with P0009.1. If not, see <http://www.gnu.org/licenses/>. """ import sys from academicmarkdown import build, git import myZoteroCredentials import time version = '2.2.3' build.path += ['svg', 'md', 'tbl'] build.zoteroApiKey = myZoteroCredentials.zoteroApiKey build.zoteroLibraryId = myZoteroCredentials.zoteroLibraryId build.setStyle('naturecomm') build.csl = 'plos.csl' build.docxRef = None build.tableTemplate = 'pandoc' build.pdfHeader = 'Manuscript in preparation [v%s; %s; %s]' % (version, \ time.strftime('%c'), git.commitHash().decode()) if '--snapshot' in sys.argv: git.exportFormats = 'pdf', 'docx' git.snapshot('md/__main__.md', msg=sys.argv[-1]) else: build.DOCX('md/__main__.md', 'latest-manuscript.docx') build.PDF('md/__main__.md', 'latest-manuscript.pdf', lineNumbers=True) build.zoteroApiKey = None build.pdfHeader = 'S1 Appendix [v%s; %s; %s]' % (version, \ time.strftime('%c'), git.commitHash().decode()) build.PDF('md/__supplementary__.md', 'latest-supplementary.pdf')
zoteromarkdown is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. zoteromarkdown is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with zoteromarkdown. If not, see <http://www.gnu.org/licenses/>. """ from os import path import academicmarkdown from academicmarkdown import build import myZoteroCredentials base_path = path.join(u"example", u"src") build.path.append(base_path) build.zoteroLibraryId = myZoteroCredentials.zoteroLibraryId build.zoteroApiKey = myZoteroCredentials.zoteroApiKey build.setStyle("modern") build.pdfHeader = u"Generated with academicmarkdown {version}".format(version=academicmarkdown.__version__) build.PDF(path.join(base_path, "example.md"), path.join(base_path, "example.html")) build.HTML(path.join(base_path, "example.md"), path.join(base_path, "example.html"))