Git Product home page Git Product logo

cik-quarto's People

Contributors

arcaldwell49 avatar

Watchers

 avatar  avatar

cik-quarto's Issues

First issues

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 figures do not resize in PDF output

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.

Different formatting of main caption and figure caption in html

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=&quot;1&quot;}">
<p><img src="figsource1" class="img-fluid"></p>
<p><strong>Figure 1:</strong> Caption</p>
</div>
<div class="{#fig-2,layout-ncol=&quot;1&quot;}">
<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
:::
:::

PDF rendering fails in newer Quarto versions

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.

Cannot render 'less than or equal to' sign to pdf

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.