4

listings offers the numberbychapter option which is initially set to true. Using \lstset{numberbychapter=false} you can make sure, listings are numbered continuously throughout the document without the chapter number prefix: \documentclass{report} \usepackage{listings} \lstset{numberbychapter=false} \begin{document} \chapter{chapter} \begin{lstlisting}[...


2

Note that: It seems that you want also HTML and Word outputs, but LaTeX code in Rmarkdowm only is useful for the PDF output, otherwise is omitted. Maybe not a good idea use it? Rmarkdown inside LaTeX command or environment is parsed by LaTeX rules. So [@Levin2013] inside a \caption{} is not a cite, is just plain text. Bibliography in Rmarkdown is ...


2

I am rather late to the party, but there might be another recent option worth checking out, namely the kaobook class. The style is a bit different, but it picks up many ideas from tufte and is under active development (as of 2021).


1

A possible (partial) solution with the \ttabbox command from floatrow. For the vertical spacing, I replaced the rules from booktabs with thick rules commands from makecell, which do not add any vertical spacing: \documentclass[12pt]{article} \usepackage[labelsep=period, tableposition=top, labelfont=bf]{caption} \usepackage[table]{xcolor} %for cell colour \...


1

With the help of the threeparttable package and caption's singlelinecheck=false option. (Red lines in the following image indicate the margins and I did not address the various otehr issues with this table.) \documentclass[12pt]{article} \usepackage[labelsep=period, tableposition=top, labelfont=bf, singlelinecheck=false]{caption} \usepackage[table]{xcolor} %...


1

I would suggest using the captionpackage to manage caption formatting: \documentclass{article} \usepackage{caption} \DeclareCaptionLabelFormat{namedash}{#1-#2} \captionsetup[table]{labelformat=namedash} \begin{document} \begin{table}[htb] \begin{minipage}{0.5\linewidth} \centering \begin{tabular}{ | *{5}{c |} } \hline $\wedge$ &...


1

Try this .cfg file: \Preamble{xhtml} \makeatletter \renewcommand*\caption@@@addcontentsline[4]{% \def\temp{#1}\def\tempa{toc}\ifx \temp\tempa\else% \gHAdvance\TitleCount 1 % \fi% \addcontentsline{#1}{#2}{\protect\numberline{#3}{\detokenize{#4}}}% } \makeatother \begin{document} \EndPreamble The \caption command as defined by captionpackage ...


1

As Ulrike Fischer commented, using the hypcap package (with the all option) solved my problem. I added the following code to the preamble: \usepackage[all]{hypcap}


1

Are you looking for something like this? \documentclass{beamer} \usepackage{tikz} % just needed for the example \usepackage{caption} % provides \captionof \setbeamerfont{caption}{size=\tiny} % <------ Adapt size as you want. \begin{document} \begin{frame} \centering \begin{tikzpicture} \draw(0,0)circle(2pt); \end{tikzpicture}...


Only top voted, non community-wiki answers of a minimum length are eligible