- Makefile: Add indermediate tex target for debugging

- Template pdf: finetune for rendering non-print style
- Set correct order for chapters
This commit is contained in:
Jerry Jacobs 2022-09-23 09:16:23 +02:00
parent 4536f1330a
commit 800cd9271c
6 changed files with 71 additions and 6 deletions

View File

@ -41,6 +41,7 @@ DOCX_ARGS = --standalone --reference-doc templates/docx.docx
EPUB_ARGS = --template templates/epub.html --epub-cover-image $(COVER_IMAGE) EPUB_ARGS = --template templates/epub.html --epub-cover-image $(COVER_IMAGE)
HTML_ARGS = --template templates/html.html --standalone --to html5 HTML_ARGS = --template templates/html.html --standalone --to html5
PDF_ARGS = --template templates/pdf.latex --pdf-engine xelatex PDF_ARGS = --template templates/pdf.latex --pdf-engine xelatex
TEX_ARGS = --template templates/pdf.latex --pdf-engine xelatex
# Per-format file dependencies # Per-format file dependencies
@ -49,6 +50,7 @@ DOCX_DEPENDENCIES = $(BASE_DEPENDENCIES)
EPUB_DEPENDENCIES = $(BASE_DEPENDENCIES) EPUB_DEPENDENCIES = $(BASE_DEPENDENCIES)
HTML_DEPENDENCIES = $(BASE_DEPENDENCIES) HTML_DEPENDENCIES = $(BASE_DEPENDENCIES)
PDF_DEPENDENCIES = $(BASE_DEPENDENCIES) PDF_DEPENDENCIES = $(BASE_DEPENDENCIES)
TEX_DEPENDENCIES = $(BASE_DEPENDENCIES)
#################################################################################################### ####################################################################################################
# Basic actions # Basic actions
@ -77,6 +79,9 @@ html: $(BUILD)/html/$(OUTPUT_FILENAME).html
.PHONY: pdf .PHONY: pdf
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf
.PHONY: tex
tex: $(BUILD)/tex/$(OUTPUT_FILENAME).tex
.PHONY: docx .PHONY: docx
docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx
@ -96,6 +101,11 @@ $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(PDF_DEPENDENCIES)
$(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(PDF_ARGS) -o $@ $(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(PDF_ARGS) -o $@
@echo "$@ was built" @echo "$@ was built"
$(BUILD)/tex/$(OUTPUT_FILENAME).tex: $(TEX_DEPENDENCIES)
mkdir -p $(BUILD)/tex
$(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(TEX_ARGS) -o $@
@echo "$@ was built"
$(BUILD)/docx/$(OUTPUT_FILENAME).docx: $(DOCX_DEPENDENCIES) $(BUILD)/docx/$(OUTPUT_FILENAME).docx: $(DOCX_DEPENDENCIES)
mkdir -p $(BUILD)/docx mkdir -p $(BUILD)/docx
$(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(DOCX_ARGS) -o $@ $(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(DOCX_ARGS) -o $@

View File

@ -2,4 +2,4 @@
A chemical substance is a form of matter having constant chemical composition and characteristic properties. Some references add that chemical substance cannot be separated into its constituent elements by physical separation methods, i.e., without breaking chemical bonds. Chemical substances can be simple substances, chemical compounds, or alloys. A chemical substance is a form of matter having constant chemical composition and characteristic properties. Some references add that chemical substance cannot be separated into its constituent elements by physical separation methods, i.e., without breaking chemical bonds. Chemical substances can be simple substances, chemical compounds, or alloys.
In pyrotechnics specific chemicals are used for different effects, and some as helpers during manufacturing like solvents and binders. In pyrotechnics specific chemicals are used for creating different effects. Some are used as helpers during manufacturing like solvents and binders.

View File

@ -1,5 +1,7 @@
# Suppliers # Suppliers
## International
* [Lortone ball mills](https://lortone.com/) * [Lortone ball mills](https://lortone.com/)
## United States (US) ## United States (US)

View File

@ -1,4 +1,4 @@
## References and links # References and links
- TODO process links from: <http://www.freepyroinfo.com/pyrotechnic_links.html> - TODO process links from: <http://www.freepyroinfo.com/pyrotechnic_links.html>

View File

@ -2,13 +2,19 @@
title: Pyrotechnics Revived title: Pyrotechnics Revived
author: PureChemical author: PureChemical
rights: MIT License rights: MIT License
lang: en-US lang: en-UK
mainlang: english mainlang: english
otherlang: english otherlang: english
tags: [pandoc, book, pyro, pyrotechnics] tags: [pyro, pyrotechnics, fireworks, engineering]
abstract: | numbersections: true
Your summary.
mainfont: DejaVu Sans mainfont: DejaVu Sans
documentclass: book
book: true
#NOTE: this is for screen-viewing the book
noprint: true
geometry: [a4paper]
classoption: [oneside] # one-side printing
# Filter preferences: # Filter preferences:
# - pandoc-crossref # - pandoc-crossref

View File

@ -236,6 +236,10 @@ $if(beamer)$
\geometry{$for(geometry)$$geometry$$sep$,$endfor$} \geometry{$for(geometry)$$geometry$$sep$,$endfor$}
$else$ $else$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$if(noprint)$
\geometry{left=2cm}
\geometry{right=2cm}
$endif$
$endif$ $endif$
$endif$ $endif$
$if(beamer)$ $if(beamer)$
@ -400,6 +404,49 @@ $if(logo)$
$endif$ $endif$
$endif$ $endif$
%
% header and footer
%
$if(beamer)$
$else$
$if(disable-header-and-footer)$
$else$
\usepackage[headsepline,footsepline]{scrlayer-scrpage}
\newpairofpagestyles{eisvogel-header-footer}{
\clearpairofpagestyles
\ihead*{$if(header-left)$$header-left$$else$$title$$endif$}
\chead*{$if(header-center)$$header-center$$else$$endif$}
\ohead*{$if(header-right)$$header-right$$else$$date$$endif$}
\ifoot*{$if(footer-left)$$footer-left$$else$$endif$}
\cfoot*{$if(footer-center)$$footer-center$$else$$endif$}
\ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$}
\addtokomafont{pageheadfoot}{\upshape}
}
\pagestyle{eisvogel-header-footer}
% TODO
%$if(book)$
%\deftripstyle{ChapterStyle}{}{}{}{}{\pagemark}{}
%\renewcommand*{\chapterpagestyle}{ChapterStyle}
%$endif$
$if(page-background)$
\backgroundsetup{
scale=1,
color=black,
opacity=$if(page-background-opacity)$$page-background-opacity$$else$0.2$endif$,
angle=0,
contents={%
\includegraphics[width=\paperwidth,height=\paperheight]{$page-background$}
}%
}
$endif$
$endif$
$endif$
\begin{document} \begin{document}
$if(has-frontmatter)$ $if(has-frontmatter)$
\frontmatter \frontmatter