Skip to content

Commit a89ea42

Browse files
ppietikainenclaude
andcommitted
Document why pdfkeywords drops the [fi]/[en] tags
Note next to pdfkeywords that dc:subject has no real langalt (current pdfmanagement only stamps xml:lang="x-default" on each Bag entry), and how to re-add the adjacent [fi]/[en] tags if a future version supports it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9c80461 commit a89ea42

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

dithesis.sty

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,12 @@
198198
% support the [lang] tags, so each abstract is wrapped in braces to protect
199199
% the commas in its text; otherwise it is shredded into bogus rdf:li lines.
200200
pdfsubject={[en]{\abstractflat},[fi]{\tiivistelmaflat}},%
201-
% Keywords: no [lang] tags (dc:subject is an unordered Bag with no language
202-
% concept, so tags would leak as literal text) and no braces (the commas
203-
% separate the individual keywords into dc:subject entries).
201+
% Keywords: no [lang] tags (dc:subject is an unordered Bag; current
202+
% pdfmanagement tags each entry xml:lang="x-default" but offers no real
203+
% per-language langalt, so [fi]/[en] would just leak as literal text) and no
204+
% braces (the commas separate the individual keywords into dc:subject
205+
% entries). If a future pdfmanagement supports langalt keywords, re-add the
206+
% tags adjacent: pdfkeywords={[fi]\avainsanatflat,[en]\keywordsflat}.
204207
pdfkeywords={\avainsanatflat, \keywordsflat},%
205208
}%
206209
}

0 commit comments

Comments
 (0)