Skip to content

Commit

Permalink
Using pandoc-shortcaption
Browse files Browse the repository at this point in the history
  • Loading branch information
martisak committed Jan 11, 2017
1 parent 633a533 commit 7a2072d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ help:

pdf:
pandoc "$(INPUTDIR)"/*.md \
--filter pandoc-shortcaption \
-o "$(OUTPUTDIR)/thesis.pdf" \
-H "$(STYLEDIR)/preamble.tex" \
--template="$(STYLEDIR)/template.tex" \
Expand All @@ -47,8 +48,8 @@ tex:
-V papersize=a4paper \
-V documentclass:report \
-N \
--csl="$(STYLEDIR)/ref_format.csl" \
--latex-engine=xelatex
--filter pandoc-shortcaption
--csl="$(STYLEDIR)/ref_format.csl"

docx:
pandoc "$(INPUTDIR)"/*.md \
Expand Down
7 changes: 4 additions & 3 deletions source/06_list_of_figures.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<!--
# List of figures {.unnumbered}
<!--
For me, this was the only drawback of writing in Markdown: it is not possible to add a short caption to figures and tables. This means that the \listoftables and \listoffigures commands will generate lists using the full titles, which is probably isn't what you want. For now, the solution is to create the lists manually, when everything else is finished.
-->

Figure 4.1 This is an example figure . . . \hfill{pp}
Figure x.x Short title of the figure . . . \hfill{pp}
\listoffigures
<!--Figure 4.1 This is an example figure . . . \hfill{pp}
Figure x.x Short title of the figure . . . \hfill{pp} -->

\pagenumbering{roman}
\setcounter{page}{3}
Expand Down
2 changes: 1 addition & 1 deletion source/12_chapter_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For details on setting attributes like width and height, see:
http://pandoc.org/MANUAL.html#extension-link_attributes
-->

![RV Calypso is a former British Royal Navy minesweeper converted into a research vessel for the oceanographic researcher Jacques-Yves Cousteau. It was equipped with a mobile laboratory for underwater field research. \label{ref_a_figure}](source/figures/example_figure.pdf){ width=100% }
![RV Calypso is a former British Royal Navy minesweeper converted into a research vessel for the oceanographic researcher Jacques-Yves Cousteau. It was equipped with a mobile laboratory for underwater field research. \label{ref_a_figure}](source/figures/example_figure.pdf "RV Calypso research vessel"){ width=100% }

## Conclusion

Expand Down

0 comments on commit 7a2072d

Please sign in to comment.