mirror of
https://git.code.sf.net/p/zint/code
synced 2026-07-31 10:29:52 +00:00
a81c9d9258
new routines `mirror_start()`, `mirror_outfile()` & limit substitutions on Unix to backslash (Windows remains the same); restrict "borderwidth", "textgap", "vwhitesp", "whitesp" < 100 CODEONE: fix `ceilf()` -> `C1_MULT_CEIL()` in FAST_MODE encodation (improves/changes some encodation) composite: preserve `gs1_verify()` warning using `warn_level` hack; fix wrong name `zint_dbar_omnstk_set_height()` -> `zint_dbar_stk_set_height()`; use new `zint_micropdf_variant()` & `zint_micropdf_expand()` routines (see below) MICROPDF417: move variant determination into new shareable routine `zint_micropdf_variant()` & expansion into `zint_micropdf_expand()` qzint: add helper methods `setbordertypevalue()`, `encodedinputmode()`, `encodedoutputoptions()`, `ecivaluetoeciindex()` and `eciindextoecivalue()` dbar: for performance pre-calculate `combins()` as array coverage: add `malloc()`-type failure testing to AZTEC, CONTENT_SEGS, MEMORY_FILE, raster, Reed-Solomon & vector; numerous changes to remove unused code and test more branches common: add `isxdigit()` general: various code fiddlings manual: add char names to sequence and batch format char tables; mention long options can be shortened (& use "--compliantheight" -> "--compliant"); expand mirror explanation & document substitutions in footnote; workaround xecjk putting space after double quote when quoting cjk chars & rejig input mode examples; workaround html alignment bug in table gs1-enabled symbologies by adding extra rh dashes to header cols; add "figure nn: " to txt image tags via sed: various other small fixes and rephrasings
50 lines
1.6 KiB
TeX
50 lines
1.6 KiB
TeX
%% For pandoc --include-in-header
|
|
%%
|
|
%% Start sections on new pages
|
|
\usepackage{sectsty}
|
|
\sectionfont{\clearpage}
|
|
|
|
%% Place figures "here" (i.e. immediately, don't move them around)
|
|
\usepackage{graphicx}
|
|
\usepackage{float}
|
|
\floatplacement{figure}{H}
|
|
|
|
%% For glossary definition list
|
|
%% https://github.com/jgm/pandoc/wiki/Pandoc-Tricks#definition-list-terms-on-their-own-line-in-latex
|
|
\let\originalitem\item
|
|
\makeatletter
|
|
\renewcommand{\item}[1][\@nil]{%
|
|
\def\tmp{#1}
|
|
\ifx\tmp\@nnil\originalitem\else\originalitem[#1]\hfill\par\fi}
|
|
\makeatother
|
|
|
|
%% Use the wonderful `tcolorbox` instead of `framed` for fenced code blocks
|
|
\usepackage{tcolorbox}
|
|
\tcbuselibrary{breakable}
|
|
\renewenvironment{Shaded}{\begin{tcolorbox}[colframe=white,boxrule=0pt,boxsep=0.5mm,top=0mm,bottom=0mm,colback=shadecolor,breakable=true]}{\end{tcolorbox}}
|
|
|
|
%% Text color for inline code
|
|
\usepackage{xcolor}
|
|
\definecolor{icfg}{HTML}{351c35} % "text-color" in modified "haddock.theme"
|
|
\let\oldtexttt\texttt
|
|
\renewcommand{\texttt}[1]{\textcolor{icfg}{\oldtexttt{#1}}}
|
|
|
|
%% Make level-4 headings standalone (not run-in) - for some reason "-V block-headings" doesn't seem to work, so do
|
|
%% what it does manually here
|
|
\let\oldparagraph\paragraph
|
|
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
|
|
|
%% PDF metadata - the values are set in "docs/inc_before_body_pdf.tex" (otherwise may get overridden)
|
|
\usepackage{hyperref}
|
|
|
|
%% Reduce gap after figures
|
|
\usepackage{caption}
|
|
\captionsetup[figure]{belowskip=-6pt}
|
|
|
|
%% Make footnotes go to bottom of page
|
|
\usepackage[bottom]{footmisc}
|
|
|
|
%% Stop xeCJK putting space before CJK char in double quotes
|
|
\newXeTeXintercharclass\dquote
|
|
\XeTeXcharclass`"=\dquote
|