-
DescriptionHello everyone, I need help using Quarto in combination with my own custom filter. The problem is using Quarto's crossrefs in combination with this filter, which takes a fenced div and converts each block-level element within it into a row of a table and then applies text-decoration to the contents of spans in the block as a way of highlighting passages. E.g. ---
title: Example
format: html
---
This is a paragraph.
:::: {.transcript caption="The full text of \"A special example\" [@noauthor_example_2002, 7]. {#tbl-example}"}
This is a paragraph. This sentence has a [key word]{importance="high"}. This sentence has [another key word]{importance="medium"}.
This paragraph has no notations.
::::
In this paragraph, I refer to @tbl-example.
Placing a caption as the last line and then using a Quarto crossref style ID See below for the response from
Thanks for your help. Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nested fences is the answer. It appears that I have solved this problem as follows. ---
title: Example
format: html
---
This is a paragraph.
::::: {#tbl-example}
:::: {.transcript caption="The full text of \"A special example\" [@noauthor_example_2002, 7]."}
This is a paragraph. This sentence has a [key word]{importance="high"}. This sentence has [another key word]{importance="medium"}.
This paragraph has no notations.
::::
:::::
In this paragraph, I refer to @tbl-example.
This seems to have the effect of labeling the Table on top without a caption but then captioning the actual table produced by my filter appropriately using the |
Beta Was this translation helpful? Give feedback.
-
Just to keep this discussion thread interesting for others, here's why I have a filter that converts Markdown text with special spans into a "table" inside of a table that Quarto will cross-ref. As the class attr suggests this is a transcription of a primary source which I analyze. I am using Quarto for qualdata analysis. (I do use R elsewhere, for map illustrations not analysis, though.) From the perspective of Quarto I am rendering a document of documents. The filter generates a "table" but the contents are not truly tabular data in a strict sense. It's just that was an easy way to create a transcript with line numbers for each block-level element. If anyone is using Quarto, R, python and pandoc for work in the qualitative social sciences, particularly projects that involve the analysis of text, discourse, or media, I'd love to learn more about your techniques and tools. And if anyone has recs for another approach to displaying "documents within documents" (transcripts, sidebars, etc.) please feel free to reach out. Best wishes, |
Beta Was this translation helpful? Give feedback.
Nested fences is the answer.
It appears that I have solved this problem as follows.
This seems to have the effect of labeling the Table on top without a caption but then captioning the actual table produced by my filter appropriately using the
caption
attribute in the second-order attribut…