Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
conductor-pandoc-docx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Vernier
conductor-pandoc-docx
Commits
c436ed61
Commit
c436ed61
authored
Jul 27, 2015
by
Michael Vernier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
Makefile
Makefile
+46
-0
reference.docx
reference.docx
+0
-0
{{conductor.DocumentName}}.md
{{conductor.DocumentName}}.md
+0
-0
No files found.
Makefile
0 → 100644
View file @
c436ed61
# {{conductor.DocumentName}} Makefile
TARGET
=
{{
conductor.DocumentName
}}
CONVERTPATH
=
c:/Program Files/ImageMagick-6.8.8-Q16
IMAGESDIR
=
Images
IMAGENAMES
=
IMAGENAMES_JPG
=
$(
foreach
image,
$(IMAGENAMES)
,
$(image)
.jpg
)
IMAGENAMES_PNG
=
$(
foreach
image,
$(IMAGENAMES)
,
$(image)
.png
)
IMAGENAMES_PNGSMALL
=
$(
foreach
image,
$(IMAGENAMES)
,
$(image)
-small
.png
)
IMAGENAMES_PNG_FULLPATH
=
$(
foreach
image,
$(IMAGENAMES_PNG)
,
$(IMAGESDIR)
/
$(image)
)
IMAGENAMES_PNGSMALL_FULLPATH
=
$(
foreach
image,
$(IMAGENAMES_PNGSMALL)
,
$(IMAGESDIR)
/
$(image)
)
all
:
images miscimages doc pdf
doc
:
images
pandoc
-f
markdown
-t
docx
--data-dir
=
.
$(TARGET)
.md
-o
$(TARGET)
.docx
pdf
:
doc
word2pdf
$(TARGET)
.docx
$(TARGET)
.pdf
miscimages
:
images
:
$(IMAGENAMES_PNGSMALL_FULLPATH)
%-small.png
:
%.png
$(CONVERTPATH)
/convert
$<
-resize
25%
$@
$(CONVERTPATH)
/mogrify
-density
200
-units
PixelsPerInch
$@
%.png
:
%.jpg
$(CONVERTPATH)
/convert
$<
$@
.SECONDARY
:
clean
:
rm
-rf
$(IMAGENAMES_PNG_FULLPATH)
rm
-rf
$(IMAGENAMES_PNGSMALL_FULLPATH)
# run:
# cmd -c "start $(TARGET).docx"
# runpdf:
#
cmd
-c
"start $(TARGET).pdf"
\ No newline at end of file
reference.docx
0 → 100644
View file @
c436ed61
File added
{{conductor.DocumentName}}.md
0 → 100644
View file @
c436ed61
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment