You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the "list-table" extension and proper indentation (as mentioned in #10924), callouts can be used in tables (great!). However, under certain circumstances the following error is issued:
The solution of this error was provided by Ulrike Fischer in this post on stackexchange.
I've prepared the example below including the solution mentioned in the above linked post. Additionally, I've added some space before and after the tcolorbox since it was missing around the callouts in the table environment (before after skip balanced) .
However, I'm basically duplicating the options passed to tcolorboxby the default callouts which I'd like to avoid.
My question: Is there any chance you can implement the solution, e.g. offer an option for the default callouts when used in tables or -- even better -- change the options for tcolorbox when the callout is detected in a table?
If you run this example, you should encounter the above posted error for each callout in the table after you change the previous entry to table-callout-note (see also comments in the example).
---title: "Test: callout in table"format:
pdf:
papersize: a4paperinclude-in-header:
text: | \usepackage[skins,breakable]{tcolorbox} \newtcolorbox{table-callout-note}{enhanced jigsaw, left=2mm, colframe=quarto-callout-note-color-frame, opacitybacktitle=0.6, coltitle=black, arc=.35mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Note}, toprule=.15mm, bottomrule=.15mm, leftrule=.75mm, colbacktitle=quarto-callout-note-color!10!white, opacityback=0, titlerule=0mm, rightrule=.15mm, colback=white, toptitle=1mm, bottomtitle=1mm, before={}, beforeafter skip balanced=0.5\baselineskip plus 2pt}filters:
- latex-environment
- list-tableenvironments:
- table-callout-note---# Test
::: {.callout-note}
Callout not in table.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Etiam efficitur eget est quis fermentum.
- Praesent metus lacus, pretium vel nulla at, hendrerit eleifend sapien.
:::
{{< lipsum 2 >}}
## Test section### Subsection 1
:::: {.list-table widths="1,4,2"}
*- Step
- Description
- Remark
*- 01
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Etiam efficitur eget est quis fermentum. Praesent metus lacus, pretium vel nulla at, hendrerit eleifend sapien.
<!-- Change "callout-note" to "table-callout-note" to avoid the error -->
::: {.callout-note}
This callout is in a table.
Donec imperdiet libero quis ex tempus, ut tristique libero ultricies.
Etiam eu lorem eget massa pellentesque mattis.
Nunc eleifend congue tempus. Pellentesque porta arcu sit amet lorem aliquet, ut elementum massa fermentum.
:::
- Quisque in venenatis leo. Nunc tempor nunc et ligula blandit, eu posuere nulla dictum.
- Fusce efficitur ac libero luctus viverra. Donec sodales ipsum a magna mollis, eget pretium urna blandit.
- Vestibulum sollicitudin sem et dolor aliquet vehicula.
<!-- This entry ensures some space to the next entry or the bottom line -->- None
*- 02
- Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
- Integer sed ultrices enim, ut efficitur nunc.
- Sed dignissim nisl et commodo ornare.
- Praesent rutrum nisi tortor.
- Nunc viverra ullamcorper justo, sit amet aliquam purus euismod quis.
Nulla vestibulum nisl vitae consectetur sollicitudin. Nam efficitur dolor eget arcu auctor, vel sollicitudin justo efficitur.
<!-- Change "callout-note" to "table-callout-note" to avoid the error -->
::: {.callout-note}
This callout is in a table.
Donec sit amet turpis diam. Duis placerat mi non lorem molestie dictum.
:::
<!-- This entry ensures some space to the next entry or the bottom line -->- <!-- Avoid alignment of top of the previous column with bottom of the tcolorbox --><!-- Change "callout-note" to "table-callout-note" to avoid the error -->
::: {.callout-note}
Another callout in the table.
:::
*- 03
- Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
- Integer sed ultrices enim, ut efficitur nunc. Sed dignissim nisl et commodo ornare.
- Praesent rutrum nisi tortor. Nunc viverra ullamcorper justo, sit amet aliquam purus euismod quis.
- Nulla vestibulum nisl vitae consectetur sollicitudin.
<!-- This entry ensures some space to the next entry or the bottom line -->- Nam efficitur dolor eget arcu auctor, vel sollicitudin justo efficitur.
<!-- Change "callout-note" to "table-callout-note" to avoid the error -->
::: {.callout-note}
Another callout in the table.
:::
::::
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
With the "list-table" extension and proper indentation (as mentioned in #10924),
callouts
can be used in tables (great!). However, under certain circumstances the following error is issued:The solution of this error was provided by Ulrike Fischer in this post on stackexchange.
I've prepared the example below including the solution mentioned in the above linked post. Additionally, I've added some space before and after the
tcolorbox
since it was missing around thecallouts
in the table environment (before after skip balanced
) .However, I'm basically duplicating the options passed to
tcolorbox
by the defaultcallouts
which I'd like to avoid.My question: Is there any chance you can implement the solution, e.g. offer an option for the default callouts when used in tables or -- even better -- change the options for
tcolorbox
when thecallout
is detected in a table?If you run this example, you should encounter the above posted error for each
callout
in the table after you change the previous entry totable-callout-note
(see also comments in the example).Beta Was this translation helpful? Give feedback.
All reactions