Table and Figure Caption Formatting #5513
-
Hello! I am currently working on my thesis in a Quarto book project. (Kudos to the maintainers I really like the project!) For my work, I would like to have a 1.5 space between lines in the paragraphs, but not in the table and figure captions. It further would be a great bonus to have the project:
type: book
book:
title: "my title"
subtitle: "Master's Thesis"
author: "Tim Maier"
date: "7/21/2023"
date-format: "DD.MM.YYYY"
chapters:
- index.qmd
- introduction.qmd
- methods.qmd
- resultsanddiscussion.qmd
- conclusionandoutlook.qmd
- declaration.qmd
- references.qmd
bibliography: references.bib
format:
html:
theme: cosmo
pdf:
keep-tex: true
include-in-header:
- text: |
\usepackage{noto-serif}
\usepackage[labelfont={bf}]{caption}
fig-cap-location: margin
tbl-cap-location: margin
papersize: A4
documentclass: report
geometry:
- lmargin=20mm
- rmargin=50mm
- marginparwidth=35mm
template-partials:
- before-body.tex
linestretch: 1.5 Do you have any Ideas on how I could configure my captions individually? EDIT: I noticed that using the caption package works on the figure and table captions if they are not positioned in the margin. Does anybody have ideas on how to address the margin captions? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Without an actual working example, it's hard to answer. For LaTeX, you can add |
Beta Was this translation helpful? Give feedback.
Without an actual working example, it's hard to answer.
For HTML, you can play around using CSS. To know which selector to target, use your favourite browser "developer mode" (right click inspect and/or usually F11).
For LaTeX, you can add
keep-tex: true
to your frontmatter, to fiddle the LaTeX file directly and see how you can do it.Unfortunately, it's more of a LaTeX question than a Quarto question, so, you'll likely get an answer on LaTeX "help platforms".