jelovirt / pdf-generator

DITA-OT PDF plug-in generator
https://dita-generator.elovirta.com/
Apache License 2.0
12 stars 5 forks source link

PDF `--theme`: Caption styling #55

Closed infotexture closed 2 years ago

infotexture commented 2 years ago

Currently, figure and table styling options allow to set caption-number & caption-position, but there's no apparent way to set font family/style/weight, alignment, etc. for figure/table titles.

If these settings are made on the fig key itself, they apply to the entire figure element:

style:
  fig:
    color: $brand-color-secondary
    font-style: italic
    font-weight: normal
    text-align: center

If the figure contains a code block, the code block text will be centered & italicized too.