コード例 #1
0
(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)
コード例 #2
0
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)
コード例 #3
0
#!/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')