arcaldwell49 / cik-quarto Goto Github PK
View Code? Open in Web Editor NEWCommunications in Kinesiology Quarto templates for typesetting
License: MIT License
Communications in Kinesiology Quarto templates for typesetting
License: MIT License
The ≤
sign does not render to pdf for me. Neither escaping \≤
nor raw latex \leq
works and the .tex file seems to be fine. Maybe the font does not support the character, as I did not encounter these problems with other (more common) special characters.
The PDF output of the template does not resize PDF figures to the page size, even when including the {out-width="100%"} option. Large PDF figures will overflow the page. This seems to be related to the template as there is no problem in normal Quarto PDF output. Whether the figure is a stand-alone figure, in a div, or a subfigure, seems to have no effect.
I could only test the figure resizing for Quarto version 1.3.450, because of #5.
Quarto html rendering treats figure captions and main (figure) captions differently. For example:
::: {#fig-1,layout-ncol="1"}
![](fig1)
**Figure 1:** Caption
:::
::: {#fig-2,layout-ncol="1"}
![**Figure 2:** Caption](fig2)
:::
looks like this in the html:
<div class="{#fig-1,layout-ncol="1"}">
<p><img src="figsource1" class="img-fluid"></p>
<p><strong>Figure 1:</strong> Caption</p>
</div>
<div class="{#fig-2,layout-ncol="1"}">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="figsource2" class="img-fluid figure-img"></p>
<figcaption class="figure-caption"><strong>Figure 2:</strong> Caption</figcaption>
</figure>
</div>
</div>
This creates problems because the template assigns a different formatting to the figure-caption class. My current workaround is to use:
::: {#fig-1,layout-ncol="1"}
![](fig1)
::: {.figure-caption}
**Figure 1:** Caption
:::
:::
Changing aspect ratio when resizing figures in PDF: Resizing large figures with out.width="100%" works, but changes the aspect ratio (see the PDF). This should be related to the template, as normal Quarto pdf rendering does the resizing automatically while keeping the aspect ratio.
Cross-referencing in PDF: I tried to do cross-referencing for figures and tables in html and pdf. This requires both html and pdf output to be generated within a single chunk, but that worked for me. I tried to rely on the native Quarto cross-referencing system, which should automatically add something like Figure 1: before the caption. This worked for html, but not for pdf (still the cross-referencing itself did work, just not the automatic caption generation). One could use a workaround, with generating different captions for html (only caption) and pdf ("Figure X:" + caption) with an !expr if (knitr::is_htlm_output()) statement in the chunk options, but as this problem does not occur in normal Quarto pdf rendering, i believe it is better to try to make changes to the template. In the medium term, we could try to get rid of using chunks at all to generate figures with using the default-image-extension YAML option (https://quarto.org/docs/authoring/figures.html#multiformat-figures), assuming that both pdf and html images have the same caption.
PDF rendering throws an error for the template. The problem seems to be related to the citation handling in LaTex, as the error message for the current civ-feedback document is:
ERROR:
compilation failed- error
Undefined control sequence.
l.264 motor learning (\citeproc
{ref-schmidt2018}{Schmidt et al., 2018}).
See the log file for more details.
The issue only appears when using newer versions of Quarto. I tried the current release (1.4.551) and pre-release (1.5.24), and both did not work. But the old version 1.3.450 seems to have no problem, so it might have to do with the updated internal treatment of references for Quarto. The problem persits with both tinytex and MiKTeX and seems to be related to the template, as references in normal PDF output work for all Quarto versions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.