Coder Social home page Coder Social logo

2 lines for department about quarto-letter HOT 7 CLOSED

mcanouil avatar mcanouil commented on June 9, 2024
2 lines for department

from quarto-letter.

Comments (7)

michaelaye avatar michaelaye commented on June 9, 2024 1

aha, solved! Thanks, now I grok your reply!
image

It was this SO that provided a nice example:
https://stackoverflow.com/questions/75780685/how-can-i-add-multiple-lines-in-the-title-of-a-pdf-output-in-quarto-using-rstudi

from quarto-letter.

mcanouil avatar mcanouil commented on June 9, 2024

Sorry but I don't understand what you want and/or how it is not already possible.
Did you look at the example?

from quarto-letter.

nucleic-acid avatar nucleic-acid commented on June 9, 2024

Not sure if this works, but have you tried putting a Latex linebreak \\ after the Institute?

Really not sure if this works and it is rather hacky and might break the layout, but I would try something like this

affiliation:
      - name: Dummy org
        department: Cool Institute \\ Cool Dep

from quarto-letter.

mcanouil avatar mcanouil commented on June 9, 2024

It won't.

The YAML specification has:

key: |
  Multiline
  value

from quarto-letter.

nucleic-acid avatar nucleic-acid commented on June 9, 2024

Does this break the „backaddress“ line?

from quarto-letter.

mcanouil avatar mcanouil commented on June 9, 2024

The easiest and fastest way to answer is to actually try it, using the example document: https://github.com/mcanouil/quarto-letter/blob/main/template.qmd

If you don't manage to get what you want please provide a small self contained and reproducible document.


You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).
See https://quarto.org/bug-reports.html#small-is-beautiful-aim-for-a-single-document-with-10-lines.

If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.

RPython
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---

This is a reproducible Quarto document.

```{r}
x <- c(1, 2, 3, 4, 5)
y <- c(1, 4, 9, 16, 25)

plot(x, y)
```

![An image](https://placehold.co/600x400.png)

The end.
````
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: jupyter
---

This is a reproducible Quarto document.

```{python}
import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]

plt.plot(x, y)
plt.show()
```

![An image](https://placehold.co/600x400.png)

The end.
````

Additionally and if not already given, please share the output of quarto check within a code blocks (i.e., using three backticks ```txt), see https://quarto.org/bug-reports.html#check.

from quarto-letter.

michaelaye avatar michaelaye commented on June 9, 2024

It won't.

The YAML specification has:

key: |
  Multiline
  value

Sorry, could you elaborate on this response? How is this interfering with a multiline for one key, I am not versed in the required syntax.
It, enticingly, says "multiline", so I was hoping it can be used to solve this, but the \\ linebreak for sure doesn't work:

image

from quarto-letter.

Related Issues (8)

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.