diff options
-rw-r--r-- | default.context | 7 | ||||
-rw-r--r-- | default.latex | 9 |
2 files changed, 10 insertions, 6 deletions
diff --git a/default.context b/default.context index 56f4e9c..039b6cd 100644 --- a/default.context +++ b/default.context | |||
@@ -38,6 +38,13 @@ $endif$ | |||
38 | $if(pagenumbering)$ | 38 | $if(pagenumbering)$ |
39 | \setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$] | 39 | \setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$] |
40 | $endif$ | 40 | $endif$ |
41 | $if(pdfa)$ | ||
42 | % attempt to generate PDF/A | ||
43 | \setupbackend | ||
44 | [format=PDF/A-1b:2005, | ||
45 | intent=sRGB IEC61966-2.1, | ||
46 | profile=sRGB.icc] | ||
47 | $endif$ | ||
41 | 48 | ||
42 | % use microtypography | 49 | % use microtypography |
43 | \definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] | 50 | \definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] |
diff --git a/default.latex b/default.latex index c36bf85..e989f27 100644 --- a/default.latex +++ b/default.latex | |||
@@ -2,8 +2,9 @@ | |||
2 | \PassOptionsToPackage{hyphens}{url} | 2 | \PassOptionsToPackage{hyphens}{url} |
3 | $if(colorlinks)$ | 3 | $if(colorlinks)$ |
4 | \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} | 4 | \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} |
5 | $endif$ | 5 | $endif$$if(dir)$$if(latex-dir-rtl)$ |
6 | % | 6 | \PassOptionsToPackage{RTLdocument}{bidi} |
7 | $endif$$endif$% | ||
7 | \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} | 8 | \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} |
8 | $if(beamer)$ | 9 | $if(beamer)$ |
9 | \setbeamertemplate{caption}[numbered] | 10 | \setbeamertemplate{caption}[numbered] |
@@ -287,11 +288,7 @@ $endif$ | |||
287 | $if(dir)$ | 288 | $if(dir)$ |
288 | \ifxetex | 289 | \ifxetex |
289 | % load bidi as late as possible as it modifies e.g. graphicx | 290 | % load bidi as late as possible as it modifies e.g. graphicx |
290 | $if(latex-dir-rtl)$ | ||
291 | \usepackage[RTLdocument]{bidi} | ||
292 | $else$ | ||
293 | \usepackage{bidi} | 291 | \usepackage{bidi} |
294 | $endif$ | ||
295 | \fi | 292 | \fi |
296 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | 293 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
297 | \TeXXeTstate=1 | 294 | \TeXXeTstate=1 |