<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>Life Long Learning Lab</title>
<link>https://petzi53.github.io/blog/</link>
<atom:link href="https://petzi53.github.io/blog/index.xml" rel="self" type="application/rss+xml"/>
<description>This is Peter Baumgartner&#39;s Personal English Blog.</description>
<generator>quarto-1.9.37</generator>
<lastBuildDate>Mon, 19 Aug 2024 22:00:00 GMT</lastBuildDate>
<item>
  <title>Annotation Tutorial 3: Zotero - Obsidian Integration Advanced</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-20-obsidian-zotero-integration-advanced/</link>
  <description><![CDATA[ 





<section id="objectives" class="level2">
<h2 class="anchored" data-anchor-id="objectives">Objectives</h2>
<p>After the creation of Zotero annotations, as explained in <a href="../2024-08-20-annotations-with-zotero-version-7">Annotation Tutorial 1</a> and the installation of two plugins (see: <a href="../2024-08-12-academic-workflow-obsidian-zotero">Annotation Tutorial 2</a>) you can import your annotations into Obsidian. In the second part of the tutorial I described the easy way by using the default mechanism of the Zotero Integration <a class="glossary" title="A plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that adds a specific feature to an existing computer program. (Wikipedia)">plugin</a>.</p>
<p>In this third part of the tutorial, I am going to explain the more complex import procedure by using templates. We have said that the configuration setting page for the “Zotero Integration” plugin consists of four parts:</p>
<ul>
<li>General Settings (<a href="../2024-08-12-academic-workflow-obsidian-zotero">Tutorial Part 2</a>)</li>
<li>Citation Formats (skipped)</li>
<li>Import Formats and (required and explained in this post)</li>
<li>Import Image Settings (additional configuration, also explained here)</li>
</ul>
<p>I will skip the part on “Citation Formats” here. This section uses the integration with Zotero to produce different kinds of citation formats inside Obsidian. Except for “Formatted Bibliography,” these formats produce code within Obsidian usable for further conversion. Export procedures. We can skip this part of the settings here for our purposes.</p>
</section>
<section id="zotero---obsidian-integration-with-templates" class="level2">
<h2 class="anchored" data-anchor-id="zotero---obsidian-integration-with-templates">Zotero - Obsidian Integration with Templates</h2>
<p>Although all annotations are imported into Obsidian without templates, you will lose many <a class="glossary" title="Metadata (or metainformation) is “data that provides information about other data” (Merriam-Webster), but not the content of the data itself, such as the text of a message or the image itself. (Wikipedia)">metadata</a> of your notes. Without a template, you are missing two types of metadata:</p>
<ul>
<li>Metadata about the Zotero bibliography item (author, title, year, publisher, location, abstract, item tags, etc.)</li>
<li>Metadata about the annotation (colors and tags of the annotations)</li>
</ul>
<p>You also lose control of where to store the files for notes and images (default: your attachment folder) and to store images as <a class="glossary" title="JPEG (/ˈdʒeɪpɛɡ/ JAY-peg, short for Joint Photographic Experts Group is a commonly used method of lossy compression for digital images. (Wikipedia)">JPG</a> (default: <a class="glossary" title="Portable Network Graphic (PNG) is a non-patented raster graphics file format that supports lossless data compression. The format was not designed for professional-quality print graphics but for transferring images on the Internet (hence the name ‘portable’). (Wikipedia)">PNG</a>).</p>
<p>Creating a Zotero Integration template is a complicated process for two reasons:</p>
<ol type="1">
<li>You have to know how to apply the <a href="https://mozilla.github.io/nunjucks/templating.html">Nunjucks</a> template syntax. Nunjucks is a JavaScript templating language, supported by all modern browsers.</li>
<li>You must know the names of the variables you want to import. You can inspect the variable names with the “Data Explorer” command of the Obsidian-Zotero Integration plugin.</li>
</ol>
<p>After choosing the “Data Explorer” command, Obsidian will open a new horizontal section with two buttons on the top.</p>
<ol type="1">
<li><strong>Prompt for Selection</strong>: It displays a dialog window to choose your library and Zotero item you want to import. Please be patient — Obsidian may take seconds to open the dialog window.</li>
<li><strong>Preview Import Format</strong>: This is the default value of this menu (button). It will display all the variable’s names and values for the Zotero item. However, you can also select one of your templates defined in the Zotero Integration plugin to see the result. The “Data Explorer” is an important tool for creating and improving Obsidian-Zotero Integration templates.</li>
</ol>
<div id="fig-zotero-integration-data-explorer" class="quarto-float quarto-figure quarto-figure-center anchored" alt="The screenshot shows the top two buttons, 'Prompt for Selection' and Preview Import Format'. What follows is the internal structure of the Zotero annotation. It starts with 'Template Data {} 45 keys' with an opened triangle on the left. The next intended line starts gray with 'abstractNote' followed by the text of the abstract in yellow. Another intended line in gray says 'alltags' followed by yellow 'inequality' in double parenthesis. And so on. There are many different intended lines with closed triangles on the left, except for an open triangle saying 'creators' in gray followed by '[] 3 items' in white. The following three lines display the values for 'creators' with separate lines for 'creatorType author'; 'firstName Amary'; 'lastName Gethin'. There are many more lines with different values but similar structures." data-group="zotero-integration" data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-zotero-integration-data-explorer-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="advanced-zotero-integration-data-explorer-min.png" class="lightbox" data-gallery="zotero-integration" title="Figure&nbsp;1: Part of the Data Explorer for the Zotero Integration plugin. You can open/close hierarchical values by clicking on the small triangle as is shown in the middle of the screenshot with “creators”."><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-20-obsidian-zotero-integration-advanced/advanced-zotero-integration-data-explorer-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The screenshot shows the top two buttons, 'Prompt for Selection' and Preview Import Format'. What follows is the internal structure of the Zotero annotation. It starts with 'Template Data {} 45 keys' with an opened triangle on the left. The next intended line starts gray with 'abstractNote' followed by the text of the abstract in yellow. Another intended line in gray says 'alltags' followed by yellow 'inequality' in double parenthesis. And so on. There are many different intended lines with closed triangles on the left, except for an open triangle saying 'creators' in gray followed by '[] 3 items' in white. The following three lines display the values for 'creators' with separate lines for 'creatorType author'; 'firstName Amary'; 'lastName Gethin'. There are many more lines with different values but similar structures."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-zotero-integration-data-explorer-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Part of the Data Explorer for the Zotero Integration plugin. You can open/close hierarchical values by clicking on the small triangle as is shown in the middle of the screenshot with “creators”.
</figcaption>
</figure>
</div>
</section>
<section id="template-examples" class="level2">
<h2 class="anchored" data-anchor-id="template-examples">Template Examples</h2>
<section id="nunjucks-template-language" class="level3">
<h3 class="anchored" data-anchor-id="nunjucks-template-language">Nunjucks Template Language</h3>
<p>The best way to learn how to apply the Nunjucks template language is to look through the somewhat meager <a href="https://github.com/mgmeyers/obsidian-zotero-integration/blob/main/docs/README.md">documentation of the plugin</a> and then experiment with examples developed by other people. I have collected several examples for Obsidian-Zotero Integration templates.</p>
<div class="my-example">
<div class="my-example-header">
<p>Examples of Nunjucks templates</p>
</div>
<div class="my-example-container">
<details>
<summary>
Commented list of templates examples
</summary>
<ul>
<li><a href="https://publish.obsidian.md/history-notes/01+Notetaking+for+Historians">Doing History with Zotero and Obsidian</a>: A very detailed article which not only contains a template example but also explains the whole integration process similar to this post here <span class="citation" data-cites="razglova2023">(Razglova 2023)</span>.</li>
<li><a href="https://medium.com/@alexandraphelan/an-updated-academic-workflow-zotero-obsidian-cffef080addd">An Updated Academic Workflow: Zotero &amp; Obsidian</a>: A detailed explanation of the whole process with a sophisticated Zotero Integration template <span class="citation" data-cites="phelan2024a">(Phelan 2024)</span>.</li>
<li>There is a collection of several templates in an important <a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310">Obsidian Forum post</a>. There are many posts about general questions about how to apply the templates, I will list some posts that include template codes for you to experiment:
<ul>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/2">mgmeyers</a>: An excellent and detailed template from the author of the Zotero Integration plugin. It also has code for strikethrough and underlining, which was impossible in the Zotero PDF reader at the time of the posting. This may originate from an external PDF reader. Another caveat: The color codes need to be corrected.</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/3">erazlogo</a>: The author of the Doing History website mentioned above. Very detailed, it has on other pages of the website many other important practical tips for usage of the Zotero-Obsidian integration.</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/8">apflestrudelig</a>: Several templates for special tasks, but truncated. To see the full template code, go to the <a href="https://gist.github.com/lguenth/e8a5c4fa0b4a1ed6f8bd0b9ccfc31013">Gist article on GitHub</a> Click on the right top raw buttons to access the source file.</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/11">gustafferson</a>: a comment with a reference to the template code in a [GitHub gist article] (https://gist.github.com/Gustafferson/698e92d1ac939d60a63aac35fe4c4c4e).</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/12">Zocahontas1</a>: Similar to mgmeyers but using for the color codes, the <a href="https://github.com/chetachiezikeuzor/Highlightr-Plugin">Obsidian Highlights plugin</a>.</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/16">Zocahontas2</a>: How do you add page numbers and a revised template?</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/65">espalia1</a>: Learned from the previous template approaches with minor tweaks. Added the meaning of the annotation colors to the output, that is mainly sorted by colors and inside the colors, then by chronology.</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/66">espalia2</a>: An updated version. Instead, for every quote its own callout, it just has one callout (admonition in Obsidian parlance) for every color. This improves reading tremendously.</li>
<li><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/67">Cat</a>: A template with a very sophisticated text color system. The template uses notion color blocks snippets from <a href="https://github.com/deathau/obsidian-snippets">GitHub - deathau/obsidian-snippets</a> to have different colored texts. (But this didn’t work for me after a quick first trial.) Comments are in callouts, and the <a href="https://blacksmithgu.github.io/obsidian-dataview/">Dataview plugin</a> is also used to generate a table of contents.</li>
</ul></li>
<li>I just found out that there is <a href="https://forum.obsidian.md/t/my-zotero-annotation-template-that-works/51662">another forum thread</a> about Zotero Integration templates. It is shorter and started January 2023, with the last post (so far) May 2024. I will add just one example here:
<ul>
<li><a href="https://forum.obsidian.md/t/my-zotero-annotation-template-that-works/51662">Albialy</a>: A simple template with the interesting feature that the colors of the Zotero, annotations are converted to underlined colors in Obsidian. (Maybe the conversion from background colors to underline-colors is a feature of Obsidian or of one of its plugin I am using.)</li>
</ul></li>
</ul>
<p>I have stopped with forum entry number 67 of 312 comments (February 2023) of the first Obsidian forum thread and just mentioned one of the smaller (37 comments). So, there may be some other exciting templates in more recent times.</p>
</details>
</div>
</div>
</section>
<section id="my-template-code" class="level3">
<h3 class="anchored" data-anchor-id="my-template-code">My template code</h3>
<p>I am still refining my template to catch new possibilities of version 7 of Zotero. Therefore, the following template code is a work in progress (WIP)</p>
<p>To understand how the colored highlights are interpreted, look up my color classification in the <a href="../2024-08-04-annotations-with-zotero-version-7#tbl-color-classification">first part of the annotation tutorial</a>.</p>
<div class="my-r-code">
<div class="my-r-code-header">
<p>My personal example for a Nunjucks template code</p>
</div>
<div class="my-r-code-container">
<details>
<summary>
My Nunjucks Template Code to Copy
</summary>
<p>Hover the gray field to see the copy button at the top right.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode default code-with-copy"><code class="sourceCode default"><span id="cb1-1">---</span>
<span id="cb1-2">UID: &lt;% tp.file.creation_date("YYYYMMDDHHmm") %&gt;</span>
<span id="cb1-3">created:</span>
<span id="cb1-4">updated:</span>
<span id="cb1-5">note: fleeting</span>
<span id="cb1-6">status: to_process</span>
<span id="cb1-7">language: english</span>
<span id="cb1-8">source: </span>
<span id="cb1-9">category: </span>
<span id="cb1-10">subject: </span>
<span id="cb1-11">alias:</span>
<span id="cb1-12">cssclass: literature-note</span>
<span id="cb1-13">alias: [{% if shortTitle %}"{{shortTitle | safe}}"{% else %}"{{title | safe}}"{% endif %}]</span>
<span id="cb1-14">---</span>
<span id="cb1-15"></span>
<span id="cb1-16"></span>
<span id="cb1-17">{%- macro colorValueToName(color) -%}</span>
<span id="cb1-18">    {%- switch color -%}</span>
<span id="cb1-19">         {%- case "#ffd400" -%}</span>
<span id="cb1-20">            Running Text (Yellow)</span>
<span id="cb1-21">        {%- case "#ff6666" -%}</span>
<span id="cb1-22">            Concepts, Definition, Important (Red)</span>
<span id="cb1-23">        {%- case "#f19837" -%}</span>
<span id="cb1-24">            ToDo (Orange)</span>
<span id="cb1-25">        {%- case "#5fb236" -%}</span>
<span id="cb1-26">            Resources (Articles / Books / Package / URLs)</span>
<span id="cb1-27">        {%- case "#2ea8e5" -%}</span>
<span id="cb1-28">            (R) Code (Blue)</span>
<span id="cb1-29">        {%- case "#e56eee" -%}</span>
<span id="cb1-30">            Chapter (Magenta)</span>
<span id="cb1-31">        {%- case "#a28ae5" -%}</span>
<span id="cb1-32">            Section (Purple)</span>
<span id="cb1-33">        {%- case "#aaaaaa" -%}</span>
<span id="cb1-34">            Figure, Table header, TOC Summaries (Gray)</span>
<span id="cb1-35">        {%- default -%}</span>
<span id="cb1-36">            No Color </span>
<span id="cb1-37">    {%- endswitch -%}</span>
<span id="cb1-38">{%- endmacro -%}</span>
<span id="cb1-39"></span>
<span id="cb1-40">{%- macro calloutHeader(type) -%}</span>
<span id="cb1-41">    {%- switch type -%}</span>
<span id="cb1-42">        {%- case "highlight" -%}</span>
<span id="cb1-43">            Highlight</span>
<span id="cb1-44">        {%- case "strike" -%}</span>
<span id="cb1-45">            Strikethrough</span>
<span id="cb1-46">        {%- case "underline" -%}</span>
<span id="cb1-47">            Underline</span>
<span id="cb1-48">        {%- case "image" -%}</span>
<span id="cb1-49">            Image</span>
<span id="cb1-50">        {%- default -%}</span>
<span id="cb1-51">            Note</span>
<span id="cb1-52">    {%- endswitch -%}</span>
<span id="cb1-53">{%- endmacro %}</span>
<span id="cb1-54"></span>
<span id="cb1-55">&gt; [!info]</span>
<span id="cb1-56">&gt; - **Cite Key:** [[@{{citekey}}]]</span>
<span id="cb1-57">{%- for attachment in attachments | filterby("path", "endswith", ".pdf") %}</span>
<span id="cb1-58">&gt; - **Link:** [{{attachment.title}}](file://{{attachment.path | replace(" ", "%20")}})</span>
<span id="cb1-59">{%- endfor -%}</span>
<span id="cb1-60">{%- if abstractNote %}</span>
<span id="cb1-61">&gt; - **Abstract:** {{abstractNote}}</span>
<span id="cb1-62">{%- endif -%}</span>
<span id="cb1-63">{%- if bibliography %}</span>
<span id="cb1-64">&gt; - **Bibliography:** {{bibliography}}</span>
<span id="cb1-65">{%- endif %}</span>
<span id="cb1-66">{%- if hashTags %}</span>
<span id="cb1-67">&gt; - **Tags:** {{hashTags}}</span>
<span id="cb1-68">{%- endif %}</span>
<span id="cb1-69"></span>
<span id="cb1-70"></span>
<span id="cb1-71"># Highlights by Sequence</span>
<span id="cb1-72"></span>
<span id="cb1-73">## Imported on {{importDate | format("YYYY-MM-DD HH:mm")}}</span>
<span id="cb1-74"></span>
<span id="cb1-75">{% for annot in annotations -%}</span>
<span id="cb1-76">{%- if annot.annotatedText -%}</span>
<span id="cb1-77">**Highlight**: {{annot.annotatedText | nl2br}}</span>
<span id="cb1-78">{%- endif -%}</span>
<span id="cb1-79">{%- if annot.imageRelativePath %}</span>
<span id="cb1-80">![[{{annot.imageRelativePath}}]]</span>
<span id="cb1-81">{%- endif %}</span>
<span id="cb1-82">{%- if annot.ocrText %}</span>
<span id="cb1-83">{{annot.ocrText}}</span>
<span id="cb1-84">{%- endif %}</span>
<span id="cb1-85">{%if annot.comment %}</span>
<span id="cb1-86">**Comment**: {{annot.comment | nl2br}}</span>
<span id="cb1-87">{%- endif %}</span>
<span id="cb1-88">{% if annot.allTags %}</span>
<span id="cb1-89">**Tag**: {{annot.allTags | nl2br}}</span>
<span id="cb1-90">{% endif  %}</span>
<span id="cb1-91"> [Page {{annot.page}}](zotero://open-pdf/library/items/{{annot.attachment.itemKey}}?page={{annot.page}}) {{annot.date | format("YYYY-MM-DD HH:mm")}}</span>
<span id="cb1-92">***</span>
<span id="cb1-93">{% endfor %}</span>
<span id="cb1-94"></span>
<span id="cb1-95"></span>
<span id="cb1-96">{% persist "annotations" %}</span>
<span id="cb1-97">{% set annots = annotations | filterby("date", "dateafter", lastImportDate) -%}</span>
<span id="cb1-98">{% if annots.length &gt; 0 %}</span>
<span id="cb1-99"></span>
<span id="cb1-100"></span>
<span id="cb1-101">## Imported on {{importDate | format("YYYY-MM-DD HH:mm")}}</span>
<span id="cb1-102"># Sorted by Colors</span>
<span id="cb1-103">{% for color, annots in annots | groupby("color") -%}</span>
<span id="cb1-104">#### {{colorValueToName(color)}}</span>
<span id="cb1-105"></span>
<span id="cb1-106">{% for annot in annots -%}</span>
<span id="cb1-107">&gt; [!quote{% if annot.color %}|{{annot.color}}{% endif %}] {{calloutHeader(annot.type)}}</span>
<span id="cb1-108">{%- if annot.annotatedText %}</span>
<span id="cb1-109">&gt; {{annot.annotatedText | nl2br}}</span>
<span id="cb1-110">{%- endif -%}</span>
<span id="cb1-111">{%- if annot.imageRelativePath %}</span>
<span id="cb1-112">&gt; ![[{{annot.imageRelativePath}}]]</span>
<span id="cb1-113">{%- endif %}</span>
<span id="cb1-114">{%- if annot.ocrText %}</span>
<span id="cb1-115">&gt; {{annot.ocrText}}</span>
<span id="cb1-116">{%- endif %}</span>
<span id="cb1-117">{%- if annot.comment %}</span>
<span id="cb1-118">&gt;</span>
<span id="cb1-119">&gt;&gt; {{annot.comment | nl2br}}</span>
<span id="cb1-120">{%- endif %}</span>
<span id="cb1-121">&gt;</span>
<span id="cb1-122">&gt; [Page {{annot.page}}](zotero://open-pdf/library/items/{{annot.attachment.itemKey}}?page={{annot.page}}) [[{{annot.date | format("YYYY-MM-DD#h:mm a")}}]]</span>
<span id="cb1-123"></span>
<span id="cb1-124">{% endfor -%}</span>
<span id="cb1-125">{% endfor -%}</span>
<span id="cb1-126">{% endif %}</span>
<span id="cb1-127">{% endpersist %}</span></code></pre></div></div>
</details>
</div>
</div>
</section>
<section id="my-css-snippet" class="level3">
<h3 class="anchored" data-anchor-id="my-css-snippet">My CSS Snippet</h3>
<p>For the correct formatting, you need to include a <a class="glossary" title="Cascading Style Sheets (CSS) is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript. CSS is designed to enable the separation of content and presentation, including layout, colors, and fonts. (Wikipedia)">CSS</a> snippet into Obsidian. Take the code below and paste it into your .css file following the procedure description of Obsidian <a href="https://help.obsidian.md/Extending+Obsidian/CSS+snippets">CSS snippets</a>.</p>
<div class="my-r-code">
<div class="my-r-code-header">
<p>My personal example of a CSS code to format the output of the template</p>
</div>
<div class="my-r-code-container">
<details>
<summary>
My CSS Code to Copy
</summary>
<p>Hover the gray field to see the copy button at the top right.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode default code-with-copy"><code class="sourceCode default"><span id="cb2-1">/* </span>
<span id="cb2-2"></span>
<span id="cb2-3">Zotero Integration Plugin</span>
<span id="cb2-4">Styling the template for Zotero Literature Notes</span>
<span id="cb2-5"></span>
<span id="cb2-6">*/</span>
<span id="cb2-7"></span>
<span id="cb2-8"></span>
<span id="cb2-9">/* Yellow */</span>
<span id="cb2-10">.literature-note .callout[data-callout-metadata="#ffd400"] {</span>
<span id="cb2-11">  --callout-color: 255,212,0;</span>
<span id="cb2-12">}</span>
<span id="cb2-13"></span>
<span id="cb2-14">/* Red */</span>
<span id="cb2-15">.literature-note .callout[data-callout-metadata="#ff6666"] {</span>
<span id="cb2-16">  --callout-color: 255,102,102;</span>
<span id="cb2-17">}</span>
<span id="cb2-18"></span>
<span id="cb2-19">/* Orange */</span>
<span id="cb2-20">.literature-note .callout[data-callout-metadata="#f19837"] {</span>
<span id="cb2-21">  --callout-color: 241,152,55;</span>
<span id="cb2-22">}</span>
<span id="cb2-23"></span>
<span id="cb2-24">/* Green */</span>
<span id="cb2-25">.literature-note .callout[data-callout-metadata="#5fb236"] {</span>
<span id="cb2-26">  --callout-color: 95,178,54;</span>
<span id="cb2-27">}</span>
<span id="cb2-28"></span>
<span id="cb2-29">/* Blue */</span>
<span id="cb2-30">.literature-note .callout[data-callout-metadata="#2ea8e5"] {</span>
<span id="cb2-31">  --callout-color: 46,168,229;</span>
<span id="cb2-32">}</span>
<span id="cb2-33"></span>
<span id="cb2-34">/* Magenta */</span>
<span id="cb2-35">.literature-note .callout[data-callout-metadata="#e56eee"] {</span>
<span id="cb2-36">  --callout-color: 229,110,238;</span>
<span id="cb2-37">}</span>
<span id="cb2-38"></span>
<span id="cb2-39">/* Purple */</span>
<span id="cb2-40">.literature-note .callout[data-callout-metadata="#a28ae5"] {</span>
<span id="cb2-41">  --callout-color: 191,127,191;</span>
<span id="cb2-42">}</span>
<span id="cb2-43"></span>
<span id="cb2-44">/* Grey */</span>
<span id="cb2-45">.literature-note .callout[data-callout-metadata="#aaaaaa"] {</span>
<span id="cb2-46">  --callout-color: 170,170,170;</span>
<span id="cb2-47">}</span></code></pre></div></div>
</details>
</div>
</div>
</section>
<section id="result-of-my-template" class="level3">
<h3 class="anchored" data-anchor-id="result-of-my-template">Result of my template</h3>
<div id="fig-zotero-template-example" class="quarto-float quarto-figure quarto-figure-center anchored" alt="The screenshot shows a part of an Obsidian document in dark mode with a colored header. It starts with two yellow title headers, 'Highlights by Sequence…' and 'Sorted by Colors,' followed by three smaller green headers, 'Running text (Yellow) …', 'Concept, Definition Important (Red)&nbsp;…', and 'ToDo (Orange)'. What follows are quote admonitions (callouts) titled 'Highlight' in orange with a blue text paragraph and a red link to the page of the annotated document. The third of the four 'highlights' has the cursor in it and shows, therefore, the markdown code of this part of the Obsidian file." data-group="zotero-integration" data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-zotero-template-example-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="advanced-zotero-integration-template-example-min.png" class="lightbox" data-gallery="zotero-integration" title="Figure&nbsp;2: Part of my Zotero Integration template for creating literature notes."><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-20-obsidian-zotero-integration-advanced/advanced-zotero-integration-template-example-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The screenshot shows a part of an Obsidian document in dark mode with a colored header. It starts with two yellow title headers, 'Highlights by Sequence…' and 'Sorted by Colors,' followed by three smaller green headers, 'Running text (Yellow) …', 'Concept, Definition Important (Red)&nbsp;…', and 'ToDo (Orange)'. What follows are quote admonitions (callouts) titled 'Highlight' in orange with a blue text paragraph and a red link to the page of the annotated document. The third of the four 'highlights' has the cursor in it and shows, therefore, the markdown code of this part of the Obsidian file."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-zotero-template-example-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Part of my Zotero Integration template for creating literature notes.
</figcaption>
</figure>
</div>
<p>My template consists of four main parts:</p>
<ul>
<li><strong>1. Metadata</strong>: This includes the YAML header, the abstract, and other important information (title, cite key, bibliography, tags).</li>
<li><strong>2. Highlights by sequence</strong>: All annotations are sorted by their position in the document.</li>
<li><strong>3. Highlights by color</strong>: Annotations sorted by their meaning. This requires a correspondence between color and purpose/reference type of the annotation.</li>
<li><strong>4. Updates</strong>: Changes after the first import are added at the end of the Obsidian file. To get a file without updates, change the folder position of the file, rename the original file, or delete it.</li>
</ul>
<p>I am planning to improve this template in two ways:</p>
<ol type="1">
<li>Only one admonition (callout) block for every color should exist.</li>
<li>Integrating the text of my green (H3) headers into the title of the admonition (callout) block.</li>
</ol>
</section>
</section>
<section id="conclusion" class="level2">
<h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
<p>With the annotation tutorial, I have demonstrated a modern technology supported annotation strategy. Every one of the three parts of the tutorial emphasizes one crucial aspect of this strategy:</p>
<ol type="1">
<li>Creating annotation with Zotero in <a class="glossary" title="A probability density function (PDF) describes a probability distribution for a random, continuous variable. Use a probability density function to find the chances that the value of a random variable will occur within a range of values that you specify. More specifically, a PDF is a function where its integral for an interval provides the probability of a value occurring in that interval. (Statistics By Jim)">PDFs</a>, <a class="glossary" title="EPUB (auch ePUB, Akronym für electronic publication) ist ein offener Standard für E-Books, documents and other digital resources.">ePUB</a>-eBooks or website snapshots.</li>
<li>Installing two <a class="glossary" title="A plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that adds a specific feature to an existing computer program. (Wikipedia)">plugins</a> to build a bridge between Zotero and Obsidian to import notes created with Zotero from the annotated document.</li>
<li>Scraping annotations directly from the original document and redact them in a way to optimize further work in the note-taking app Obsidian.</li>
</ol>
<section id="glossary" class="level6">
<h6 class="anchored" data-anchor-id="glossary">Glossary</h6>
<div class="cell">
<div class="cell-output-display">
<table class="table caption-top table-sm table-striped small">
<thead>
<tr class="header">
<th style="text-align: left;" data-quarto-table-cell-role="th">term</th>
<th style="text-align: left;" data-quarto-table-cell-role="th">definition</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">CSS</td>
<td style="text-align: left;">Cascading Style Sheets (CSS) is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript. CSS is designed to enable the separation of content and presentation, including layout, colors, and fonts. (&lt;a href="https://en.wikipedia.org/wiki/CSS"&gt;Wikipedia&lt;/a&gt;)</td>
</tr>
<tr class="even">
<td style="text-align: left;">EPUB</td>
<td style="text-align: left;">EPUB (auch ePUB, Akronym für electronic publication) ist ein offener Standard für E-Books, documents and other digital resources.</td>
</tr>
<tr class="odd">
<td style="text-align: left;">JPG</td>
<td style="text-align: left;">JPEG (/ˈdʒeɪpɛɡ/ JAY-peg, short for Joint Photographic Experts Group is a commonly used method of lossy compression for digital images. [(Wikipedia](https://en.wikipedia.org/wiki/JPEG))</td>
</tr>
<tr class="even">
<td style="text-align: left;">Metadata</td>
<td style="text-align: left;">Metadata (or metainformation) is "data that provides information about other data" ([Merriam-Webster](https://www.merriam-webster.com/dictionary/metadata)), but not the content of the data itself, such as the text of a message or the image itself. ([Wikipedia](https://en.wikipedia.org/wiki/Metadata))</td>
</tr>
<tr class="odd">
<td style="text-align: left;">PDF</td>
<td style="text-align: left;">A probability density function (PDF) describes a probability distribution for a random, continuous variable. Use a probability density function to find the chances that the value of a random variable will occur within a range of values that you specify. More specifically, a PDF is a function where its integral for an interval provides the probability of a value occurring in that interval. (&lt;a href="https://statisticsbyjim.com/probability/probability-density-function/"&gt;Statistics By Jim&lt;/a&gt;)</td>
</tr>
<tr class="even">
<td style="text-align: left;">Plugin</td>
<td style="text-align: left;">A plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that adds a specific feature to an existing computer program. ([Wikipedia](https://en.wikipedia.org/wiki/Plug-in_%28computing%29))</td>
</tr>
<tr class="odd">
<td style="text-align: left;">PNG</td>
<td style="text-align: left;">Portable Network Graphic (PNG) is a non-patented raster graphics file format that supports lossless data compression. The format was not designed for professional-quality print graphics but for transferring images on the Internet (hence the name 'portable'). (Wikipedia)</td>
</tr>
</tbody>
</table>
</div>
</div>



</section>
</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a><div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-phelan2024a" class="csl-entry">
Phelan, Alexandra. 2024. <em>An Updated Academic Workflow: Zotero &amp; Obsidian</em>. <a href="https://medium.com/@alexandraphelan/an-updated-academic-workflow-zotero-obsidian-cffef080addd">https://medium.com/@alexandraphelan/an-updated-academic-workflow-zotero-obsidian-cffef080addd</a>.
</div>
<div id="ref-razglova2023" class="csl-entry">
Razglova, Elena. 2023. <em>01 Notetaking for Historians - Doing History with Zotero and Obsidian - Obsidian Publish</em>. <a href="https://publish.obsidian.md/history-notes/01+Notetaking+for+Historians">https://publish.obsidian.md/history-notes/01+Notetaking+for+Historians</a>.
</div>
</div></section></div> ]]></description>
  <category>academic</category>
  <category>obsidian</category>
  <category>workflow</category>
  <category>zotero</category>
  <category>how-to</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-20-obsidian-zotero-integration-advanced/</guid>
  <pubDate>Mon, 19 Aug 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-20-obsidian-zotero-integration-advanced/nunjucks-zotero-obsidian-skitch-logo2-min.png" medium="image" type="image/png" height="112" width="144"/>
</item>
<item>
  <title>Annotation Tutorial 2: Integrating Zotero with Obsidian</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/</link>
  <description><![CDATA[ 





<section id="zotero-integration-with-obsidian" class="level2">
<h2 class="anchored" data-anchor-id="zotero-integration-with-obsidian">Zotero Integration with Obsidian</h2>
<section id="academic-workflow" class="level3">
<h3 class="anchored" data-anchor-id="academic-workflow">Academic Workflow</h3>
<p>In the <a href="../2024-08-20-annotations-with-zotero-version-7">first part of this annotation tutorial</a>, I have described the different annotation types in Zotero version 7 and how to use them. In this second part, I will explain a simple method for importing Zotero annotations into Obsidian. These Obsidian notes will link to the source of the annotation (quote) in Zotero.</p>
<p>These backlinks are essential because one cannot always remember the original context of the citation. Especially if the creation of the annotation happened long ago or if the original purpose of the quote for a specific publication/research issue has changed, you need to check and reassess the context of the quote. Only by looking up the annotation in the source document can you prevent redundant and superfluous information from remembering the context of the quote.</p>
<p>After reading and annotating, it is crucial to elaborate on the highlighted content. The general strategy is to add, reformulate, and include the citations in the paper that is in progress. Whatever these changes are in the initial annotations, it is vital for an efficient workflow to always have a reference to the original position of the citation.</p>
<p>There are two strategies for the integration of your “research assistant” (Zotero) with your note-taking app (Obsidian):</p>
<ol type="1">
<li>Creating a note inside Zotero and importing it into Obsidian (this post).</li>
<li>Extracting all annotation directly from the document programmatically (the third part of the annotation tutorial).</li>
</ol>
<p>In both cases, you need to install two plugins: <a href="https://retorque.re/zotero-better-bibtex/">Better BibTeX</a> in Zotero and <a href="https://github.com/mgmeyers/obsidian-zotero-integration">Zotero Integration</a> in Obsidian.</p>
</section>
</section>
<section id="notes-in-zotero" class="level2">
<h2 class="anchored" data-anchor-id="notes-in-zotero">Notes in Zotero</h2>
<section id="child-and-standalone-notes" class="level3">
<h3 class="anchored" data-anchor-id="child-and-standalone-notes">Child and Standalone Notes</h3>
<p>Zotero knows two types of notes. (The type names are my inventions to facilitate the explanation):</p>
<ul>
<li><strong>Child Note or Items Note</strong> belongs to the item where it was created. It lives inside the Zotero item.</li>
<li><strong>Standalone Notes</strong> lives in the appropriate Zotero item collection but does not belong to any specific Zotero item. This note type is helpful for writing notes for multiple items.</li>
</ul>
<p>Only the child note is an annotation because it fulfills the requirement of the annotation: It is anchored to specific text – even if it consists itself of (a collection of) annotations.</p>
<p>Both types of notes can be created either as individual notes or as a note that collects all highlights:</p>
<ul>
<li><strong>Individual note</strong>: This is a new, empty note item. You can write your text into the note directly or drag and drop annotations from the left column.</li>
<li><strong>Highlights note</strong>: This note collects and copies all content created with the annotation types, as mentioned earlier. You are always free to add or change the note content.</li>
</ul>
<p>The distinctions between child and standalone notes are not carved in stone, as you can always drag a standalone note into an appropriate Zotero item, and so it converts into a child note. You can also drag the child note as an item itself in the Zotero middle pane, and so it converts into a standalone note.</p>
<div class="callout callout-style-default callout-important callout-titled" style="color: red;">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Important
</div>
</div>
<div class="callout-body-container callout-body">
<p>You can create as many notes as you want. However, only child notes will be imported into Obsidian using the Zotero Integration plugin.</p>
</div>
</div>
</section>
<section id="how-to-create-a-child-note" class="level3">
<h3 class="anchored" data-anchor-id="how-to-create-a-child-note">How to create a child note</h3>
<section id="sec-add-note-from-annotation" class="level4">
<h4 class="anchored" data-anchor-id="sec-add-note-from-annotation">Add Note from Annotations</h4>
<ol type="1">
<li>Select the Zotero item or the document (PDF, ePUB-eBook, website snapshot) inside the Zotero item.</li>
<li>Open the context menu (right mouse click on my installation)</li>
<li>Select “Add Note from Annotations”</li>
</ol>
</section>
<section id="add-empty-note" class="level4">
<h4 class="anchored" data-anchor-id="add-empty-note">Add (empty) Note</h4>
<ol type="1">
<li>Select the Zotero item (not the document).</li>
<li>Open the context menu (right mouse click on my installation)</li>
<li>Select “Add Note”</li>
</ol>
<div id="fig-empty-child-note" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" data-group="zotero-integration" alt="The screenshot shows different types of annotations with Zotero in a PDF. The page is divided horizontally into three parts. From left to right: a small sidebar (about 10% width) with the content of the annotations, the document with the annotations (about 70% width), and the context pane with metadata.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-empty-child-note-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="zotero-integration-add-empty-child-note-min.png" class="lightbox" data-gallery="zotero-integration" title="Figure&nbsp;1: How to add an empty child note: (1) Select the Zotero item (2) Open context menu and (3) Select ‘Add Note’"><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/zotero-integration-add-empty-child-note-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The screenshot shows different types of annotations with Zotero in a PDF. The page is divided horizontally into three parts. From left to right: a small sidebar (about 10% width) with the content of the annotations, the document with the annotations (about 70% width), and the context pane with metadata."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-empty-child-note-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: How to add an empty child note: (1) Select the Zotero item (2) Open context menu and (3) Select ‘Add Note’
</figcaption>
</figure>
</div>
<p>To repeat: An “child note” is a note that is sorted under a Zotero item, independently of where it was created initially.</p>
<p>We generate child notes as the easiest way to export notes into Obsidian. This has the disadvantage that changes in the Zotero annotations need another export to Obsidian. We will, therefore, cover in the <a href="../2024-08-20-obsidian-zotero-integration-advanced">third part of the tutorial</a> an alternative, a more complex way where the Obsidian plugin extracts the annotations programmatically from the Zotero document.</p>
</section>
</section>
</section>
<section id="installing-plugins" class="level2">
<h2 class="anchored" data-anchor-id="installing-plugins">Installing Plugins</h2>
<section id="better-bibtex-and-zotero-integration" class="level3">
<h3 class="anchored" data-anchor-id="better-bibtex-and-zotero-integration">Better BibTeX and Zotero Integration</h3>
<p>For the import of annotations into Obsidian, we need two <a class="glossary" title="A plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that adds a specific feature to an existing computer program. (Wikipedia)">plugins</a>. At the side of Zotero <a href="https://retorque.re/zotero-better-bibtex/">Better BibTeX</a> and in Obsidian the <a href="https://github.com/mgmeyers/obsidian-zotero-integration">Zotero Integration</a>.</p>
<ul>
<li><strong>Better BibTex</strong> makes it easier to manage bibliographic data, especially for people authoring documents using a text-based tool chains (e.g., based on <a href="https://www.latex-project.org/">LaTeX</a> / <a href="https://www.markdownguide.org/">Markdown</a>). This plugin has a rich functionality, but we are using it for the Obsidian-Zotero integration just for one feature: To create a file with citations and consistent <a href="https://pandoc.org/">pandoc</a> cite keys.</li>
<li><strong>Zotero Integration</strong> does the main work: It inserts and imports citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian. For this functionality, it needs the installation of the Better BibTeX plugin as an enhancement for Zotero.</li>
</ul>
</section>
<section id="install-better-bibtex" class="level3">
<h3 class="anchored" data-anchor-id="install-better-bibtex">Install “Better BibTeX”</h3>
<blockquote class="blockquote">
<p>To install a plugin in Zotero, download its <code>.xpi</code> file to your computer. Then, in Zotero, click “Tools → Add-ons” and drag the <code>.xpi</code> onto the Add-ons window. (<a href="https://www.zotero.org/support/plugins">Plugins for Zotero</a>)</p>
</blockquote>
<p>To find the latest version of the Better BibTeX <code>.xpi</code> file <a href="https://github.com/retorquere/zotero-better-bibtex/releases/latest">click at this link here</a>.</p>
<p>For a more detailed installation procedure <a href="https://retorque.re/zotero-better-bibtex/installation/">see here</a>.</p>
</section>
<section id="install-zotero-integration" class="level3">
<h3 class="anchored" data-anchor-id="install-zotero-integration">Install “Zotero Integration”</h3>
<blockquote class="blockquote">
<p>In Obsidian, open Settings; on the left, under Options, open Community Plugins, on Community Plugins, select Browse and search for ‘Zotero Integration’ (<a href="https://github.com/mgmeyers/obsidian-zotero-integration#help-how-do-i-install-the-plugin">Help, How do I install the Plugin?</a>).</p>
</blockquote>
<p>For more details, especially troubleshooting the installation, see the <a href="https://github.com/mgmeyers/obsidian-zotero-integration">README file of Better BibTeX</a>.</p>
</section>
</section>
<section id="zotero-integration-settings" class="level2">
<h2 class="anchored" data-anchor-id="zotero-integration-settings">Zotero Integration Settings</h2>
<section id="introduction" class="level3">
<h3 class="anchored" data-anchor-id="introduction">Introduction</h3>
<p>The last task is to adapt the settings of the Obsidian Zotero Integration plugin.</p>
<ol type="1">
<li>Open Preferences with the menu “Obsidian → Preferences…” or <code>CMD+,</code> (macOS) / <code>CTRL+,</code> (Windows).</li>
<li>Scroll the left column down to “Zotero Integration” and select this plugin.</li>
</ol>
<p>You will get a window with content similar to that in Figure&nbsp;2. The look may differ depending on the Obsidian theme you are using. (I am using <a href="https://github.com/nickmilo/Cybertron">Cybertron</a>)</p>
<div id="fig-zotero-integration-settings" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" data-group="zotero-integration" alt="The screenshot shows the general settings for importing annotated PDF files. The different fields are explained in the text.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-zotero-integration-settings-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="zotero-integration-plugin-settings-min.png" class="lightbox" data-gallery="zotero-integration" title="Figure&nbsp;2: Top part of the “Zotero Integration” plugin settings. For the import method explained here, you need only to complete the “General Settings”."><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/zotero-integration-plugin-settings-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The screenshot shows the general settings for importing annotated PDF files. The different fields are explained in the text."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-zotero-integration-settings-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Top part of the “Zotero Integration” plugin settings. For the import method explained here, you need only to complete the “General Settings”.
</figcaption>
</figure>
</div>
<p>The configuration setting page for the “Zotero Integration” plugin is complex. It consists of four parts:</p>
<ul>
<li>General Settings</li>
<li>Citation Formats</li>
<li>Import Formats (see <a href="../2024-08-20-obsidian-zotero-integration-advanced">third part of the annotation tutorial</a>) and</li>
<li>Import Image Settings</li>
</ul>
<p>Although there are many preferences for the simple import method used in In this post, we will only need to complete the general settings.</p>
</section>
<section id="general-settings" class="level3">
<h3 class="anchored" data-anchor-id="general-settings">General Settings</h3>
<p>The first two settings provide the path to the main utility program for extracting data from PDFs. <a href="https://github.com/mgmeyers/pdfannots2json/releases">pdfannots2json.js</a> should work immediately after the installation of the “Zotero Integration” plugin. Otherwise, you must download the tool and provide a path to it.</p>
<p>In the third field, you specify the program you will use. The plugin supports Zotero and <a href="https://juris-m.github.io/">the Jurism project</a>, specializing in legal research, and is also based on the Zotero reference manager. For advanced usage, you also have the option to specify a custom port number. The default port where Zotero is listening to <code>23119</code>. You don’t need to change it in a standard configuration. Only for a special Zotero configuration, e.g., when using Zotero on a terminal server, you must provide another port number.</p>
<p>In the following field, you specify the path in Obsidian where the Zotero annotations should be stored. I have used with “zotero” a subdirectory of “annotation” because I have with <a href="https://calibre-ebook.com/">Calibre</a> another app where I am importing annotations into Obsidian.</p>
<p>The following two fields determine if Obsidian should open the imported file and in the case, you have imported several at once, which of the imported files.</p>
<p>The last option of the general settings is enabling the concatenation of annotations. This feature could be nice if your highlight is spread over two PDF pages. I tried it out, but it didn’t work for me.</p>
</section>
</section>
<section id="import-annotation-into-obsidian-without-template" class="level2">
<h2 class="anchored" data-anchor-id="import-annotation-into-obsidian-without-template">Import Annotation into Obsidian without Template</h2>
<p>For this procedure, you need to create the annotation file in Zotero manually, as I have already explained in Section&nbsp;2.2.1.</p>
<div id="fig-obsidian-command-palette" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" data-group="zotero-integration" alt="The screenshots shows a search field with the text 'zotero inte'. Below are the found Obsidian command that contain the search string. From top to bottom: 'Zotero Integration: Bib Format'; 'Zotero Integration: Import notes' with shortcut CMD-CTRL-SHIFT-Z; 'Zotero Integration: Pandoc Format' with shortcut CMD-ALT-CTRL-SHIFT-Z; 'Zotero Integration: Data explorer'; 'Zotero Integration: Formatted Citation'; 'Zotero Integration: Create Literature Note' with shortcut ALT-Z; 'Zotero Integration: Formatted Bibliography'; 'Zotero Integration: Insert notes into current document' with shortcut CMD-CTRL-Z.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-obsidian-command-palette-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="zotero-integration-command-palette-min.png" class="lightbox" data-gallery="zotero-integration" title="Figure&nbsp;3: Obsidian Command Palette displaying all available commands of the Zotero Integration plugin. For some of the commands I have assigned hotkeys."><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/zotero-integration-command-palette-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The screenshots shows a search field with the text 'zotero inte'. Below are the found Obsidian command that contain the search string. From top to bottom: 'Zotero Integration: Bib Format'; 'Zotero Integration: Import notes' with shortcut CMD-CTRL-SHIFT-Z; 'Zotero Integration: Pandoc Format' with shortcut CMD-ALT-CTRL-SHIFT-Z; 'Zotero Integration: Data explorer'; 'Zotero Integration: Formatted Citation'; 'Zotero Integration: Create Literature Note' with shortcut ALT-Z; 'Zotero Integration: Formatted Bibliography'; 'Zotero Integration: Insert notes into current document' with shortcut CMD-CTRL-Z."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-obsidian-command-palette-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Obsidian Command Palette displaying all available commands of the Zotero Integration plugin. For some of the commands I have assigned hotkeys.
</figcaption>
</figure>
</div>
<ol type="1">
<li>Now change to Obsidian and choose either “Import notes” or “Insert notes into the current document” from the command palette. If you attach shortcuts to these procedures, you don’t need to call the command using the Obsidian palette.</li>
<li>You have to wait until a window with the Zotero database appears, where you can select the appropriate Zotero item. All note files inside the Zotero item will be exported. The first command (“Import notes”) creates a new file; the second command inserts the annotations into the cursor position of the current Obsidian document.</li>
<li>The results are annotations with two links: “Go to annotation” and the citation using the appropriate Zotero citation style. “Go to annotation” opens the PDF and jumps to the annotation’s location in the original document. The citation link selects the appropriate bibliography item in the Zotero middle pane.</li>
</ol>
<div id="fig-annotation-example" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" data-group="zotero-integration" alt="Screenshot of an example of an annotation file with a black background. From top to bottom: A yellow header says 'Annotations'; Timestamp '(7/31/2024, 7:23:53 PM)'; Followed by three examples of annotated text. Every entry starts with a red link to the exact position of the quote ('Go to annotation') and ends with a link to the bibliography entry in the Zotero middle pane. Eexample: '(Gethin et al., 2021, p.12)'. Between these two links is the annotated text passage surrounded by quotation marks.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-annotation-example-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="zotero-integration-example-without-template-min.png" class="lightbox" data-gallery="zotero-integration" title="Figure&nbsp;4: An example of an annotation file. Every entry starts with a link to the exact position of the quote and ends with a link to the bibliography entry in the Zotero middle pane. Between these two links is the annotated text passage surrounded by quotation marks."><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/zotero-integration-example-without-template-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="Screenshot of an example of an annotation file with a black background. From top to bottom: A yellow header says 'Annotations'; Timestamp '(7/31/2024, 7:23:53 PM)'; Followed by three examples of annotated text. Every entry starts with a red link to the exact position of the quote ('Go to annotation') and ends with a link to the bibliography entry in the Zotero middle pane. Eexample: '(Gethin et al., 2021, p.12)'. Between these two links is the annotated text passage surrounded by quotation marks."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-annotation-example-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: An example of an annotation file. Every entry starts with a link to the exact position of the quote and ends with a link to the bibliography entry in the Zotero middle pane. Between these two links is the annotated text passage surrounded by quotation marks.
</figcaption>
</figure>
</div>
</section>
<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<p>In this post, I have explained how to integrate your “research assistant.” tool Zotero with the note-taking app Obsidian.</p>
<div class="my-procedure">
<div class="my-procedure-header">
<p>Import Annotations from Zotero into Obsidian (without template)</p>
</div>
<div class="my-procedure-container">
<ol type="1">
<li>Highlight or use other annotation methods in Zotero as explained in the <a href="../2024-08-20-annotations-with-zotero-version-7">first part of this tutorial</a>.</li>
<li>Create a note with the annotations in Zotero.</li>
<li>Install the necessary plugins: <a href="https://retorque.re/zotero-better-bibtex/">Better BibTeX</a> in Zotero and <a href="https://github.com/mgmeyers/obsidian-zotero-integration">Zotero Integration</a> in Obsidian.</li>
<li>Complete the ’General Settings” part of the “Zotero Integration.” plugin in Obsidian.</li>
<li>Choose either “Import notes” or “Include notes into current document” into Obsidian.</li>
<li>Wait for the Zotero dialog window and choose the Zotero item with the annotations.</li>
<li>Inspect the imported file content and test the links.</li>
</ol>
</div>
</div>
<p>You can now elaborate on your notes using all the advanced features Obsidian offers!</p>
<p>In the <a href="../2024-08-20-obsidian-zotero-integration-advanced">third part of the annotation tutorial</a>, I will explain how to use templates to programmatically extract annotations from Zotero documents. This has several advantages, but it is more complex to apply.</p>
<p>Are you satisfied with our result from this second part of the tutorial? Then, you can skip the last part or read it later when the need for better management of your different types of annotation arises.</p>
<section id="glossary" class="level6">
<h6 class="anchored" data-anchor-id="glossary">Glossary</h6>
<div class="cell">
<div class="cell-output-display">
<table class="table caption-top table-sm table-striped small">
<thead>
<tr class="header">
<th style="text-align: left;" data-quarto-table-cell-role="th">term</th>
<th style="text-align: left;" data-quarto-table-cell-role="th">definition</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Plugin</td>
<td style="text-align: left;">A plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that adds a specific feature to an existing computer program. ([Wikipedia]</td>
</tr>
</tbody>
</table>
</div>
</div>


</section>
</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>academic</category>
  <category>obsidian</category>
  <category>workflow</category>
  <category>zotero</category>
  <category>how-to</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/</guid>
  <pubDate>Sun, 11 Aug 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-12-academic-workflow-obsidian-zotero/zotero-integration-obsidian-logo-min.png" medium="image" type="image/png" height="66" width="144"/>
</item>
<item>
  <title>Annotation Tutorial 1: Using Zotero Version 7</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/</link>
  <description><![CDATA[ 





<section id="two-crucial-academic-workflow-challenges" class="level2">
<h2 class="anchored" data-anchor-id="two-crucial-academic-workflow-challenges">Two Crucial Academic Workflow Challenges</h2>
<p>As an academic researcher, scholar, or student, you likely find yourself in a similar academic workflow. You collect, read, and annotate scholarly articles, research papers, and books as part of your daily routine. You then elaborate on this material in personal notes either during the annotation process or immediately afterward.</p>
<p>The next step in the academic workflow involves:</p>
<ul>
<li>Refine and structure the rough text passages.</li>
<li>Incorporating feedback from peers or supervisors.</li>
<li>Formatting them according to the publication guidelines.</li>
</ul>
<p>These tasks can be undertaken individually or as part of a collaborative effort.</p>
<p>In this chain of timely delayed tasks, one always had to meet at least two challenges:</p>
<ol type="1">
<li>While reading and annotating, how do you know which passages would later be necessary for the final publication?</li>
<li>Are the annotations and notes sufficient to remember the context even after a long time?</li>
</ol>
<p>These insecurities were still more cumbersome when one did not always have immediate access to the original material, such as when you lent a book from a library or the danger that the webpage could always disappear.</p>
<p>One counter strategy to meet these challenges is to be safe and collect as much material as possible. This includes saving all relevant resources, making detailed annotations, and systematically organizing them. But even then, finding the exact position of the text passage I was looking for took time and effort.</p>
<p>In response to these challenges, I will introduce a solution that significantly improves the efficiency of your academic workflow, particularly when you always have access to the PDF resource.</p>
</section>
<section id="annotations-in-zotero" class="level2">
<h2 class="anchored" data-anchor-id="annotations-in-zotero">Annotations in Zotero</h2>
<p>I started using Zotero on December 30, 2007—yes, during the holidays! I always use the holidays to learn new apps and try things out. My Zotero database currently holds 5872 items created during more than 15 years of research. Until last year, I mainly used Zotero to produce correct formatted citations for publication. However, these changed when I learned new note-taking possibilities emerged with <a href="https://www.zotero.org/blog/zotero-6/">Zotero 6</a> (March 2022). It took me over a year to transform my workflow. <a href="https://idioms.thefreedictionary.com/Old+Habits+Die+Hard">Old habits die hard</a>.</p>
<div id="nte-zotero7" class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Note&nbsp;1: Zotero 7 update
</div>
</div>
<div class="callout-body-container callout-body">
<p>This article focuses on the integration between <a href="https://www.zotero.org/">Zotero</a> and <a href="https://obsidian.md/">Obsidian</a>. However, I will summarize some aspects of <a class="glossary" title="Zotero is free and open-source reference management software to manage bibliographic data and related research materials, such as PDF and ePUB files. Features include web browser integration, online syncing, generation of in-text citations, footnotes, and bibliographies, integrated PDF, ePUB and HTML readers with annotation capabilities, and a note editor, as well as integration with the word processors Microsoft Word, LibreOffice Writer, and Google Docs. (Wikipedia)">Zotero’s</a> annotation process relevant to the export/import process to <a class="glossary" title="Obsidian is a personal knowledge base and note-taking software application that operates on Markdown files. It is designed to help users organize and structure their thoughts and knowledge in a flexible, non-linear way. The software is free for personal use, with commercial licenses available for pay. (Wikipedia)">Obsidian</a>.</p>
<p>During the planning &amp; writing of this post <a href="https://www.zotero.org/blog/zotero-7/">Zotero 7</a>, the most significant update in Zotero’s 18-year history was released. Almost finished with the article on August 18, I had utterly to revise the article to include the <a href="https://www.zotero.org/support/changelog">new features of version 7</a>. Whenever it is sensible in explanations, I will either add the addition “(V7)” in parenthesis to emphasize the new features of Zotero 7 or write another note like this one for a more extended text passage.</p>
</div>
</div>
<hr>
<section id="book-recommendation" class="level3">
<h3 class="anchored" data-anchor-id="book-recommendation">Book recommendation</h3>
<div class="grid">
<div class="g-col-6">
<p>For those of you that are interested to learn more about the philosophy and theory of annotation, I recommend the book-length treatment “Annotation” by Remi Kalir &amp; Antero Garcia <span class="citation" data-cites="kalir2021">(2021)</span>.</p>
<p>There is also a <a href="https://mitpressonpubpub.mitpress.mit.edu/annotation">website</a> were you not only can you read the book for free, but you can also see how annotations features are used for an <a href="https://plos.org/resource/open-peer-review/">open peer review process</a> of the book <span class="citation" data-cites="kalir2020">(Kalir and Garcia 2020)</span>.</p>
<div id="def-annot" class="callout callout-style-default callout-important callout-titled" style="color: red;">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Definition&nbsp;1
</div>
</div>
<div class="callout-body-container callout-body">
<p>Here, I will understand under the term “annotation” every addition anchored to the text and reinforces it. Annotations are a kind of <a href="https://en.wikipedia.org/wiki/Paratext">paratext</a>, produced outside the text but constantly referring and tied to it.</p>
</div>
</div>
</div>
<div class="g-col-6">
<div id="fig-cover-annotation" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="The book cover is in black with a big red star on the lower left half. At the top, it says 'Annotation' in red, and underneath, in smaller white letters, 'Remi Kalir And Antero Garcia'. There is a red bar on the bottom of the image and a white text saying 'The MIT Press Essential Knowledge Series.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-cover-annotation-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="cover-annotation-min.jpg" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="Figure&nbsp;1: Book cover of Annotation by Remi Kalir &amp; Antero Garcia"><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/cover-annotation-min.jpg" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The book cover is in black with a big red star on the lower left half. At the top, it says 'Annotation' in red, and underneath, in smaller white letters, 'Remi Kalir And Antero Garcia'. There is a red bar on the bottom of the image and a white text saying 'The MIT Press Essential Knowledge Series."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-cover-annotation-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Book cover of Annotation by Remi Kalir &amp; Antero Garcia
</figcaption>
</figure>
</div>
</div>
</div>
<hr>
</section>
<section id="sec-eight-types-annot" class="level3">
<h3 class="anchored" data-anchor-id="sec-eight-types-annot">Eight types of annotations in Zotero</h3>
<p>Zotero 7 has eight different types of annotations: highlighted text, underlined text (V7), “sticky” notes, adding text (V7), screenshots, drawing, resp. Ink annotation (V7), comments and tags.</p>
<div id="fig-annotation-type-menu" class="quarto-float quarto-figure quarto-figure-center anchored" alt="The annotated screenshot shows six icons horizontally aligned with accompanying text linked by arrows. The symbols and their meanings are (from left to right): The letter 'A' inside a square = highlight text; the letter 'A' underlined = underlined text; a paper with an earmark at the left bottom = 'sticky' note; a big letter 'T' = add text; two squares where the inner one with a solid line and the outer one with a dashed line = select area for screenshot; a small drawing and a pencil = add drawing." data-fig-align="center" data-group="zotero-annotation">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-annotation-type-menu-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="six-annotation-types-min.png" class="lightbox" data-gallery="zotero-annotation" title="Figure&nbsp;2: Six of the (eight) Zotero annotation types are selected with the menu in the horizontal bar of the middle pane visible whenever a PDF, EPUB-eBook or snapshot website is open"><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/six-annotation-types-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:50.0%" alt="The annotated screenshot shows six icons horizontally aligned with accompanying text linked by arrows. The symbols and their meanings are (from left to right): The letter 'A' inside a square = highlight text; the letter 'A' underlined = underlined text; a paper with an earmark at the left bottom = 'sticky' note; a big letter 'T' = add text; two squares where the inner one with a solid line and the outer one with a dashed line = select area for screenshot; a small drawing and a pencil = add drawing."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-annotation-type-menu-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Six of the (eight) Zotero annotation types are selected with the menu in the horizontal bar of the middle pane visible whenever a PDF, EPUB-eBook or snapshot website is open
</figcaption>
</figure>
</div>
<div id="nte-zotero7-epub-snapshots" class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Note&nbsp;2: Annotations for PDF, EPUBs, and Webpage Snapshots
</div>
</div>
<div class="callout-body-container callout-body">
<p>With Zotero version 7, the following explanations are not only valid for PDFs but also for eBooks in <a class="glossary" title="EPUB (auch ePUB, Akronym für electronic publication) ist ein offener Standard für E-Books, documents and other digital resources.">EPUB</a> format and for snapshots of web pages!</p>
</div>
</div>
<section id="highlighting" class="level4">
<h4 class="anchored" data-anchor-id="highlighting">1. Highlighting</h4>
<div class="grid">
<div class="g-col-3">
<div id="fig-annotation-colors" class="quarto-float quarto-figure quarto-figure-center anchored" alt="The screenshot shows a vertical listing of the eight different colors available in Zotero. Each line starts with a colored box followed by the name of the color." data-fig-align="center" data-group="zotero-annotation">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-annotation-colors-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="zotero-annotation-colors-min.png" class="lightbox" data-gallery="zotero-annotation" title="Figure&nbsp;3: Zotero has eight colors for highlight and underline annotations"><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/zotero-annotation-colors-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="The screenshot shows a vertical listing of the eight different colors available in Zotero. Each line starts with a colored box followed by the name of the color."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-annotation-colors-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Zotero has eight colors for highlight and underline annotations
</figcaption>
</figure>
</div>
</div>
<div class="g-col-9">
<div id="vcenter" class="column" style="width:50%;">
<p>To highlight text, click the symbol with the letter ‘A’ surrounded by a box at the top toolbar. You have eight colors for highlights at your disposal: yellow, red, green, blue, purple, magenta, orange, and gray. You can set your preferred color as the default color, which is, in my case, yellow.</p>
</div>
</div>
</div>
</section>
<section id="underlining-v7" class="level4">
<h4 class="anchored" data-anchor-id="underlining-v7">2. Underlining (V7)</h4>
<div id="nte-zotero-underlining" class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Note&nbsp;3: Underlining as a new annotation type
</div>
</div>
<div class="callout-body-container callout-body">
<p>Version 7 of Zotero supports underlining text with the eight colors mentioned in Figure&nbsp;3.</p>
<p>Zotero treats highlighting and underlining as being very similar to highlights. Therefore, I refer to both annotation types whenever I talk about highlighting.</p>
</div>
</div>
<p>It is crucial to design a consistent system when to use each color. This will allow you to organize your annotations in Obsidian.</p>
<p>Some people have developed a system of argumentation types to distinguish the different highlighting colors. Below are two examples to give you a flair for the idea.</p>
<div id="tbl-color-classification" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-color-classification-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Two examples of color classifications for text highlights
</figcaption>
<div aria-describedby="tbl-color-classification-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<thead>
<tr class="header">
<th style="text-align: left;">Color</th>
<th style="text-align: left;"><a href="https://forum.obsidian.md/t/zotero-integration-import-templates/36310/2">mgmeyers</a></th>
<th style="text-align: left;">My own system</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Yellow</td>
<td style="text-align: left;">Relevant / important</td>
<td style="text-align: left;">Running text</td>
</tr>
<tr class="even">
<td style="text-align: left;">Red</td>
<td style="text-align: left;">Disagree</td>
<td style="text-align: left;">Important: Concept, Definition,</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Orange</td>
<td style="text-align: left;">Question / confusion</td>
<td style="text-align: left;">ToDo</td>
</tr>
<tr class="even">
<td style="text-align: left;">Green</td>
<td style="text-align: left;">Agree</td>
<td style="text-align: left;">Resources: article/book/package/URL</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Blue</td>
<td style="text-align: left;">Relevant to current task</td>
<td style="text-align: left;">(R) Code; Example</td>
</tr>
<tr class="even">
<td style="text-align: left;">Magenta</td>
<td style="text-align: left;">TODO / follow up</td>
<td style="text-align: left;">Section</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Purple</td>
<td style="text-align: left;">Definitions / concepts</td>
<td style="text-align: left;">Chapter</td>
</tr>
<tr class="even">
<td style="text-align: left;">Gray</td>
<td style="text-align: left;">Interesting but not relevant</td>
<td style="text-align: left;">Figure / table title</td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
<p>Both examples stem from times before Zotero 7. Therefore, there is no difference, and both annotation types will translate to the same meaning. I will explain more about the purpose of an appropriate classification system when we talk about Obsidian templates for the import of the Zotero annotations.</p>
</section>
<section id="sticky-notes" class="level4">
<h4 class="anchored" data-anchor-id="sticky-notes">3. “Sticky” notes</h4>
<p>To add a “sticky” note, click on the piece of paper symbol with the earmark. Then, you can click on a place in the PDF to generate the note. A “sticky” note symbol appears on the page, and on the left bar, a note box open for writing comments. You can move the “sticky” note around inside the page, but you can’t move it to another page (therefore “sticky”).</p>
<p>The primary purpose of “sticky” notes is to add a text annotation that relates to the text but not to a specific passage of the text. This can be, for instance, a comment on the structure of the text, a comment related to several paragraphs, a recurring argument, etc.</p>
</section>
<section id="text-v7" class="level4">
<h4 class="anchored" data-anchor-id="text-v7">4. Text (V7)</h4>
<p>With version 7, you can also write text directly into the document as an overlay. Zotero treats this as a comment, e.g., add tags or change the note text. But this annotation type is eye-catching, and you can move it around, but only on the same page.</p>
</section>
<section id="snapshots" class="level4">
<h4 class="anchored" data-anchor-id="snapshots">5. Snapshots</h4>
<p>By clicking on the black box surrounded by a rectangular selection, you can drag with the cursor to select the area of the screen to capture. You can add comments and tags as in the other annotation types, but you can also copy the picture or save it as a <a class="glossary" title="Portable Network Graphic (PNG) is a non-patented raster graphics file format that supports lossless data compression. The format was not designed for professional-quality print graphics but for transferring images on the Internet (hence the name ‘portable’). (Wikipedia)">PNG</a> file to your disk.</p>
</section>
<section id="drawings-v7" class="level4">
<h4 class="anchored" data-anchor-id="drawings-v7">6. Drawings (V7)</h4>
<p>Your pointing device (mouse, stylus, touchscreen) will be converted to a drawing device by clicking the ink button (with the drawing symbol). Selected the appropriate color, you can now create drawings overlaying the document.</p>
</section>
<section id="comments" class="level4">
<h4 class="anchored" data-anchor-id="comments">7. Comments</h4>
<p>You can add additional text to all types of annotations mentioned so far. Zotero will treat this additional text as your comment.</p>
<div id="wrn-ID" class="callout callout-style-default callout-warning callout-titled" style="color: darkorange;">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Warning&nbsp;1: Changing highlighted text via the note?
</div>
</div>
<div class="callout-body-container callout-body">
<p>Strange enough, You can also edit the highlighted text stored as annotation. Frankly, I do not know appropriate use cases because, with these changes, you would temper the original quote.</p>
</div>
</div>
</section>
<section id="tags" class="level4">
<h4 class="anchored" data-anchor-id="tags">8. Tags</h4>
<p>Another way to annotate a document is to add tags to highlighted text, “sticky” notes, screenshots, or comments.</p>
<p>You can select all annotations with the same tag inside the document (e.g., whenever the document is open and visible in the middle pane). Colors work as a tag, too. Hence, you can select all highlighted text in the same color. You can also combine different tags. For instance, two text tags with two colors will select all annotations that have one of these text tags or one of the chosen colors.</p>
<p>Outside the document, the tag works as a standard document tag in the tag pane at the bottom of the left column. Although the tags are attached to specific annotations outside the PDF (e.g., in the tag pane), they will select only the Zotero item with the document where the tag was used and not the appropriate annotations. But if you use the same tag for annotation in different documents, Zotero will open all items where these tags were applied.</p>
<p>We will see that after the export to Obsidian, these annotated tags gain power as the work across all Obsidian documents!</p>
</section>
</section>
<section id="summary" class="level3">
<h3 class="anchored" data-anchor-id="summary">Summary</h3>
<p>The Zotero documentation is not yet up-to-date, so detailed information is still lacking or incorrect. For instance, is <a href="https://www.zotero.org/support/pdf_reader">The Zotero PDF Reader and Note Editor</a> talking only about the PDF reader (version 6). The best page so far is the announcement page <a href="https://www.zotero.org/blog/zotero-7/">Zotero 7: Zotero, redesigned</a>. However, many YouTube tutorials will explain the details of Zotero version 7 in several weeks.</p>
<p>In the meantime, the following annotated screenshot may be helpful. It recapitulates graphically the above textual description.</p>
<div id="fig-zotero-annotations" class="quarto-float quarto-figure quarto-figure-center anchored" alt="The screenshots show three horizontally divided panes: Left are the annotations, in the center is the content of the PDF file, and right are ten annotations collected as a separate note item." data-fig-align="center" data-group="zotero-annotation">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-zotero-annotations-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="Screenshot-WIR-2022-Zotero-Skitch-min.png" class="lightbox" data-gallery="zotero-annotation" title="Figure&nbsp;4: Screenshot of Zotero Reader and Note Editor with explanations of the graphical user interface (GUI). Click on the image to enlarge it."><img src="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/Screenshot-WIR-2022-Zotero-Skitch-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="The screenshots show three horizontally divided panes: Left are the annotations, in the center is the content of the PDF file, and right are ten annotations collected as a separate note item."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-zotero-annotations-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Screenshot of Zotero Reader and Note Editor with explanations of the graphical user interface (<a class="glossary" title="A graphical user interface (GUI) is an operating system interface that enables user interactions with an electronic device through icons, images, and other graphical elements G2.">GUI</a>). Click on the image to enlarge it.
</figcaption>
</figure>
</div>



</section>
</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a><div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-kalir2021" class="csl-entry">
Kalir, Remi H., and Antero Garcia. 2021. <em>Annotation</em>. Annotated Edition. The MIT Press.
</div>
<div id="ref-kalir2020" class="csl-entry">
Kalir, Remi, and Antero Garcia. 2020. <em>Annotation [Annoted Website]</em>. <a href="https://mitpressonpubpub.mitpress.mit.edu/annotation">https://mitpressonpubpub.mitpress.mit.edu/annotation</a>.
</div>
</div></section></div> ]]></description>
  <category>how-to</category>
  <category>tutorial</category>
  <category>zotero</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/</guid>
  <pubDate>Sat, 03 Aug 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-zotero-obsidian-annotations/2024-08-04-annotations-with-zotero-version-7/Screenshot-WIR-2022-Zotero-min.png" medium="image" type="image/png" height="80" width="144"/>
</item>
<item>
  <title>How to use the World Inequality Database (WID)?</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="WID-Logo-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="Logo of the World Inequality Lab (Screenshot). The WIL is a global research center studying inequality and public policies promoting social, economic, and environmental justice."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/WID-Logo-min.png" class="img-fluid figure-img" alt="Logo of the World Inequality Lab (Screenshot). The WIL is a global research center studying inequality and public policies promoting social, economic, and environmental justice."></a></p>
<figcaption>Logo of the <a href="https://inequalitylab.world/">World Inequality Lab</a> (Screenshot). The WIL is a global research center studying inequality and public policies promoting social, economic, and environmental justice.</figcaption>
</figure>
</div>
<section id="research-on-social-inequality" class="level2">
<h2 class="anchored" data-anchor-id="research-on-social-inequality">Research on Social Inequality</h2>
<p>I plan to write blog articles about social inequality in Austria, my native country. To be innovative, I want to avoid repeating what other people (journalists, scientists) were saying (claiming) but to illustrate my thinking backed by original data. But where does the data come from?</p>
<section id="some-data-resources-for-inequality-research" class="level3">
<h3 class="anchored" data-anchor-id="some-data-resources-for-inequality-research">Some Data Resources for Inequality Research</h3>
<div class="my-resource">
<div class="my-resource-header">
<div id="lem-inequality-data" class="theorem lemma">
<p><span class="theorem-title"><strong>Resource 1</strong></span> : Some Data Resources for Inequality Research</p>
</div>
</div>
<div class="my-resource-container">
<ul>
<li><strong>WID</strong>: The <a href="https://wid.world/wid-world/">World Inequality Database</a> (WID) aims to provide open and convenient access to the most extensive available database on the historical evolution of the world distribution of income and wealth, both within countries and between countries <span class="citation" data-cites="worldinequalitylab2024">(Author Collective ’World Inequality Lab’ 2024)</span>.</li>
<li><strong>OWID</strong>: <a href="https://ourworldindata.org/">Our World In Data</a> (OWID) is an online publication that focuses on large global problems such as poverty, disease, hunger, climate change, war, existential risks, and inequality <span class="citation" data-cites="globalchangedatalab2024">(Global Change Data Lab and Roser 2024)</span>.</li>
<li><strong>PIP</strong>: The <a href="https://pip.worldbank.org/home">Poverty and Inequality Platform</a> (PIP) is an interactive computational tool that offers users quick access to the World Bank’s estimates of poverty, inequality, and shared prosperity. PIP provides a comprehensive view of global, regional, and country-level trends for more than 160 economies around the World <span class="citation" data-cites="worldbank2024">(World Bank 2024)</span>.</li>
<li><strong>LIS</strong>: The <a href="https://www.lisdatacenter.org/">Luxembourg Income Study Database</a> (LIS) is a data archive and research center dedicated to cross-national analysis. It is home to the <a href="http://www.lisdatacenter.org/our-data/lis-database/">Luxembourg Income Study Database</a> (LIS) and the <a href="http://www.lisdatacenter.org/our-data/lws-database/">Luxembourg Wealth Study Database</a> (LWS) <span class="citation" data-cites="lisauthorcollective2024">(LIS Author Collective 2024)</span>.</li>
</ul>
</div>
</div>
</section>
<section id="wid-a-brief-history-of-equality" class="level3">
<h3 class="anchored" data-anchor-id="wid-a-brief-history-of-equality">WID &amp; A Brief History of Equality</h3>
<p>Understanding the use of all these data resources is a complex enterprise. As a starting point, I will concentrate on the World Inequality Database (<a class="glossary" title="">WID</a>) because there exist several monographs where these data are used and interpreted.</p>
<p>As a first step, I am going to follow the arguments of one book that I will use as <a class="glossary" title="Advance organizers are pedagogic devices that bridge the gap between what learners already know and what learners need to know. (Encyclopedia of the Science of Learning)">advanced organizer</a>. I am referring to “A Brief History of Equality” (BHE), which is only 274 pages, is a kind of executive summary of previous books by Thomas Piketty: “Capital in the Twenty-First Century” (816 pages) and “Capital and Ideology” (1093 pages) <span class="citation" data-cites="piketty2020a piketty2017">(Piketty 2020; Piketty and Goldhammer 2017)</span>.</p>
</section>
<section id="lacking-graphs-about-austria" class="level3">
<h3 class="anchored" data-anchor-id="lacking-graphs-about-austria">Lacking Graphs about Austria</h3>
<p>Most of the time, BHE uses global, regional, or data from big, respectively ‘important’ countries like China, France, Germany, India, United Kingdom, United States, etc. Data on Austria and its interpretation are missing from the mentioned book and most scientific publications <a href="https://wid.world/methodology/#library-browse-by-country">referenced on the website</a>. An exception is the working paper “Distributional National Accounts (DINA)” for Austria, 2004-2016 by <span class="citation" data-cites="jestl2020">Jestl and List (2020)</span>. But this paper partly uses different indices and different concepts (for instance, the <a href="https://ourworldindata.org/what-is-the-gini-coefficient">Gini coefficient</a>).</p>
<p>On the <a class="glossary" title="">WID</a> website there are two other articles where at least Austria is shown in some graphs: You will find five figures with Austria data in “What’s New About Income Inequality in Europe (1980-2019)?” by <span class="citation" data-cites="morgan2020">Morgan and Neef (2020)</span> and other two figures in “How Unequal Is Europe? Evidence from Distributional National Accounts, 1980-2017” by <span class="citation" data-cites="blanchet2019">Blanchet et al. (2019)</span>.</p>
<p>So, creating figures with Austrian data is not only an excellent exercise but the result could also increase our knowledge about the mechanisms and patterns of social inequality.</p>
</section>
</section>
<section id="using-the-wid-website" class="level2">
<h2 class="anchored" data-anchor-id="using-the-wid-website">Using the WID website</h2>
<section id="key-resources" class="level3">
<h3 class="anchored" data-anchor-id="key-resources">Key resources</h3>
<p>To get started effectively, one has to overcome a paradoxical situation: The more detailed the methodological guidelines, the more difficult it is to find an appropriate entry point to get started.</p>
<div class="my-resource">
<div class="my-resource-header">
<div id="lem-inequality-methodology" class="theorem lemma">
<p><span class="theorem-title"><strong>Resource 2</strong></span> : Methodological Guidelines &amp; Other Resources</p>
</div>
</div>
<div class="my-resource-container">
<ul>
<li><a href="https://wid.world/document/distributional-national-accounts-guidelines-2020-concepts-and-methods-used-in-the-world-inequality-database/">Distributional National Accounts (DINA) Guidelines</a>: This is the central resource for understanding the methodology behind the decomposition of <a class="glossary" title="National accounts are a system of accounts and balance sheets that provide a broad and integrated framework to describe an economy, whether a region, a country, or a group of countries such as the European Union (EU). For internationally comparable national accounts this system needs to be based on common concepts, definitions, classifications and accounting rules, in order to arrive at a consistent, reliable and comparable quantitative description of an economy. National accounts provide systematic and detailed economic data useful for economic analysis to support the development and monitoring of policy-making. eurostat - Statistics explained.">national accounts</a> and the inequality series for income and wealth. The purpose of these Distributional National Accounts (<a class="glossary" title="Distributional national accounts (DINAs) aim to gather information on the distribution of the net national income and to explore it over time. (Distributional National Accounts (DINA) for Austria, 2004-2016)">DINA</a>) guidelines is to present the concepts, data sources, and methods used in the World Inequality Database (<a class="glossary" title="">WID</a>). It is a long document with 186 pages <span class="citation" data-cites="blanchet2024b">(Blanchet et al. 2024)</span>.</li>
<li><a href="https://wid.world/codes-dictionary/" title="Describes the general structure of the World Inequality Database (WID)">Codes Dictionary</a> (Code Book): It describes the general structure of the World Inequality Database (WID). It explains how information is organized within it and how to retrieve and interpret its content. This document is invaluable for getting familiarized with the construction of WID variables and the structure of the database <span class="citation" data-cites="worldinequalitylab2024b">(World Inequality Lab 2024)</span>. Converting the web page into a PDF results in a document of 18 pages.</li>
<li><a href="https://wid.world/summary-table/">Summary Table</a>: It summarizes all available WID.world data. The search tool can look for specific countries, variables, or WID.world codes. It has currently 6253 rows and 16 columns. The summary table is an efficient starting point because it allows for a view of available data, which one can then download for more detailed analysis.</li>
<li><a href="https://github.com/WIDworld/wid-world">Computer Code</a>: On the GitHub platform, you can inspect and fork the repository that contains all the code used to create the entire database from both the researcher’s data and official sources. It consists of 98% of STATA code, the rest (only 2%) is written in R. <sup>1</sup></li>
<li><strong>Data</strong>: There are two ways to download data:
<ul>
<li><strong>Direct Download</strong>: The <a href="https://wid.world/data/">interactive page</a> allows one to select the required data and download it in the format that best suits one’s needs.</li>
<li><strong>Advanced Interfaces</strong>: For special requirements, one can access the data with <a href="https://github.com/thomasblanchet/wid-stata-tool">STATA</a> or <a href="https://github.com/thomasblanchet/wid-r-tool">R interfaces</a>. In the case of the R interface, one can download from GitHub the R <code>{wid}</code> package <span class="citation" data-cites="wid-2">(Blanchet 2024a)</span>.</li>
</ul></li>
</ul>
</div>
</div>
<p>It is a lot of work to read all the necessary information before starting. Instead of using this (tedious) sequential approach, I will try an interactive procedure, iteratively changing between theory (methodological guidelines) and practice (using R to replicate the figure).</p>
</section>
<section id="replicating-income-distribution" class="level3">
<h3 class="anchored" data-anchor-id="replicating-income-distribution">Replicating income distribution</h3>
<section id="figure-to-replicate" class="level4">
<h4 class="anchored" data-anchor-id="figure-to-replicate">Figure to replicate</h4>
<p>As my test bed, I will use Figure 7 of BHE <span class="citation" data-cites="piketty2022">(Piketty 2022, 46)</span>.</p>
<div id="fig-figure7-piketty" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="alt-text">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-figure7-piketty-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-Piketty-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-3" title="Figure&nbsp;1: Figure 7 of BHE, taken from the original source on Piketty’s website."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-Piketty-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-figure7-piketty-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Figure 7 of <a class="glossary" title="Piketty, T. (2022). A Brief History of Equality (S. Rendall, Trans.). Harvard University Press.">BHE</a>, taken from the <a href="http://piketty.pse.ens.fr/files/equality/">original source on Piketty’s website</a>.
</figcaption>
</figure>
</div>
</section>
<section id="interactive-replication" class="level4">
<h4 class="anchored" data-anchor-id="interactive-replication">Interactive Replication</h4>
<p>As a first approach, I will replicate Figure 7 of BHE with the provided interactive tools of the WID. Here is a good <a href="https://wid.world/country/france/">starting point for income inequality</a>.</p>
<div id="fig-BHE-07-00" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-00-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-01-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;2: Choosing France as “Country” and using the default values for income inequality (top 10% share and bottom 50% share)"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-01-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-00-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Choosing France as “Country” and using the default values for income inequality (top 10% share and bottom 50% share)
</figcaption>
</figure>
</div>
<p>From here, I will show screenshots for every step necessary to replicate Figure 7 of BHE, but here in this post, it is Figure&nbsp;1. If you click on one of the small images below, it will open the figure in the bigger original size, and you can navigate back and forth between the figures in the table below.</p>
<div class="grid">
<section id="figures-3-6" class="level5 g-col-4">
<h5 class="anchored" data-anchor-id="figures-3-6">Figures 3-6</h5>
<div id="fig-BHE-07-01" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-01-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-01-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;3: Choosing France as “Country” and using the default values for income inequality (top 10% share and bottom 50% share)."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-01-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-01-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Choosing France as “Country” and using the default values for income inequality (top 10% share and bottom 50% share).
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-02" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-02-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-02-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;4: Enlarge the time span of the data from 1947 to 1820 with the bottom slider.  &nbsp;"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-02-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-02-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Enlarge the time span of the data from 1947 to 1820 with the bottom slider.<br> &nbsp;
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-03" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-03-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-03-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;5: Hiding the extrapolations (dotted lines) by choosing ‘More option’ on the top right corner and turning on the radio button."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-03-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-03-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: Hiding the extrapolations (dotted lines) by choosing ‘More option’ on the top right corner and turning on the radio button.
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-04" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="alt-text">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-04-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-04-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-8" title="Figure&nbsp;6: Check if ‘smooth lines’ is active. It should be turned on because it is the default value.  &nbsp;"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-04-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-04-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;6: Check if ‘smooth lines’ is active. It should be turned on because it is the default value. <br>&nbsp;
</figcaption>
</figure>
</div>
</section>
<section id="figures-7-10" class="level5 g-col-4">
<h5 class="anchored" data-anchor-id="figures-7-10">Figures 7-10</h5>
<div id="fig-BHE-07-05" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-05-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-05-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;7: Change the limits of the Y-axis from 0 to 60%. This is different than in the original. See my comments later in this article."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-05-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-05-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;7: Change the limits of the Y-axis from 0 to 60%. This is different than in the original. See my comments later in this article.
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-06" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-06-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-06-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;8: Compared with the original, we still will need a third time series for the share of the middle 40% of the population."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-06-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-06-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;8: Compared with the original, we still will need a third time series for the share of the middle 40% of the population.
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-08" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-08-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-08-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;9: Click on the bottom of the left green navigation bar to open ‘More Indicators’ to include custom indicators in the graph."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-08-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-08-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;9: Click on the bottom of the left green navigation bar to open ‘More Indicators’ to include custom indicators in the graph.
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-09" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-09-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-09-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;10: Choose ‘Income Inequality’ to get the option to include a preconfigured percentile into the graph."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-09-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-09-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;10: Choose ‘Income Inequality’ to get the option to include a preconfigured percentile into the graph.
</figcaption>
</figure>
</div>
</section>
<section id="figures-11-14" class="level5 g-col-4">
<h5 class="anchored" data-anchor-id="figures-11-14">Figures 11-14</h5>
<div id="fig-BHE-07-10" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-10-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-10-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;11: Scroll down to select the radio box for the ‘Middle 40%’ percentile. &nbsp;"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-10-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-10-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;11: Scroll down to select the radio box for the ‘Middle 40%’ percentile.<br>&nbsp;
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-11" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-11-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-11-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;12: Confirm the default values. I will explain the different options in a later post.  &nbsp;"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-11-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-11-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;12: Confirm the default values. I will explain the different options in a later post. <br>&nbsp;
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-12" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-12-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-12-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;13: Our last action adds the share of the middle 40% to our graph, as was seen in Figure&nbsp;8.  &nbsp;"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-12-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-12-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;13: Our last action adds the share of the middle 40% to our graph, as was seen in Figure&nbsp;8. <br>&nbsp;
</figcaption>
</figure>
</div>
<hr>
<div id="fig-BHE-07-13" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-Figure-07">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-13-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-13-min.png" class="lightbox" data-gallery="BHE-Figure-07" title="Figure&nbsp;14: Hovering with the mouse over the graphs of the interactive website, we can get tooltips with the values for every year."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-13-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-13-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;14: Hovering with the mouse over the graphs of the interactive website, we can get tooltips with the values for every year.
</figcaption>
</figure>
</div>
</section>
</div>
</section>
<section id="differences-between-original-and-replication" class="level4">
<h4 class="anchored" data-anchor-id="differences-between-original-and-replication">Differences between original and replication</h4>
<p>If we compare both figures side by side, we will see a significant difference. Our replication differs from the original in the years before 1900. For instance, in our figure, the people with the top 10% of income share about 60% of the total income, in contrast to the 50% share in the original graph. I need to find out where these differences come from. There may have been a correction of the computed extrapolations in an update after the book publication. In any case, this difference is not essential here. Remember, the primary purpose of the exercise is to understand the patterns of the database structure — and not (at least at the moment) to get correct figures.</p>
<div class="grid">
<div class="g-col-6">
<div id="fig-figure7-piketty-2" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" data-group="BHE-figure-compare">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-figure7-piketty-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-Piketty-min.png" class="lightbox" data-gallery="BHE-figure-compare" title="Figure&nbsp;15: Figure 7 of BHE, taken from the original source on Piketty’s website. The shares for the top 10% are lower. It is slightly above 50% of the total income, whereas it is about 60% in the replication. On the other hand, the share of the middle is 40% lower than that of the replication."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-Piketty-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:95.0%"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-figure7-piketty-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;15: Figure 7 of <a class="glossary" title="Piketty, T. (2022). A Brief History of Equality (S. Rendall, Trans.). Harvard University Press.">BHE</a>, taken from the <a href="http://piketty.pse.ens.fr/files/equality/">original source on Piketty’s website</a>. The shares for the top 10% are lower. It is slightly above 50% of the total income, whereas it is about 60% in the replication. On the other hand, the share of the middle is 40% lower than that of the replication.
</figcaption>
</figure>
</div>
</div>
<div class="g-col-6">
<div id="fig-BHE-07-13-2" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-figure-compare">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-07-13-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-13-min.png" class="lightbox" data-gallery="BHE-figure-compare" title="Figure&nbsp;16: The result of my replication is showing higher shares for the top 10% and accordingly lower shares for the middle 40% in contrast to the original figure. However, the level of the share of the bottom 50% of the population is approximately the same in both figures."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-13-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-07-13-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;16: The result of my replication is showing higher shares for the top 10% and accordingly lower shares for the middle 40% in contrast to the original figure. However, the level of the share of the bottom 50% of the population is approximately the same in both figures.
</figcaption>
</figure>
</div>
</div>
</div>
<p>There are other differences between the two pictures, but they are more of cosmetically nature:</p>
<ul>
<li>The choice of colors for the various time series is different.</li>
<li>The labels of the X- and Y-axes are different. The original is labeled every 20 years and contains a vertical line every 10 years, whereas the interactive replication has a 25-year grid. The Y-axis in the replication is missing the %-sign.</li>
<li>In the original, the time-series have different symbols in the data points (circle, triangle), which is vital in black &amp; white (book) publications.</li>
<li>The legend is in the original at a prominent place in the middle of the graph, whereas it is in the interactive replication at the bottom.</li>
</ul>
</section>
</section>
<section id="display-the-results" class="level3">
<h3 class="anchored" data-anchor-id="display-the-results">Display the results</h3>
<p>Until now, I have used manually taken screenshots. But there are also several possibilities to display results offered by the <a class="glossary" title="">WID</a>.</p>
<section id="download-a-jpg-file" class="level4">
<h4 class="anchored" data-anchor-id="download-a-jpg-file">Download a JPG-file</h4>
<div id="fig-wid-jpg-figure07" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="alt-text">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-wid-jpg-figure07-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-graph_dl.jpg" class="lightbox" data-gallery="quarto-lightbox-gallery-19" title="Figure&nbsp;17: Income inequality, France, 1820-2022 download as JPG from the WID site and integrated into the Quarto text."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-graph_dl.jpg" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-wid-jpg-figure07-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;17: Income inequality, France, 1820-2022 download as JPG from the <a class="glossary" title="">WID</a> site and integrated into the Quarto text.
</figcaption>
</figure>
</div>
<p>Note that there are now fewer labels on the X- and Y-axis. The legend’s appearance has changed somewhat, and some information that is irrelevant in a static view is removed.</p>
</section>
<section id="copy-the-url" class="level4">
<h4 class="anchored" data-anchor-id="copy-the-url">Copy the URL</h4>
<p>Another option is to copy the URL and integrate it as a link into the Quarto text. It opens up a web page with the figure and all the WID menus in your default browser. Others can explore the interactive graph or create their own figure from here.</p>
<p>See the example: <a href="https://wid.world/share/#0/countrytimeseries/sptinc_p90p100_z;sptinc_p0p50_z;sptinc_p50p90_z/FR/2015/eu/k/p/yearly/s/false/-10/62/curve/true/1820/2022">Income inequality, France, 1820-2022</a></p>
</section>
<section id="embed-as-iframe" class="level4">
<h4 class="anchored" data-anchor-id="embed-as-iframe">Embed as iframe</h4>
<p>Another possibility is to embed the graph into an <a class="glossary" title="iframes allow you to embed HTML documents inside another HTML document. They offer a seamless way to integrate content from one source into another, enabling developers to create more dynamic and interactive web pages. (dev.to)">iframe</a>.</p>
<iframe width="800" height="400" src="https://wid.world/share/#1/countrytimeseries/sptinc_p90p100_z;sptinc_p0p50_z;sptinc_p50p90_z/FR/2015/eu/k/p/yearly/s/true/9.4765/70/curve/true/1820/2022">
</iframe>
<div id="cau-wid-iframe-overlapping-legend" class="callout callout-style-default callout-caution callout-titled" style="color: darkgoldenrod;">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Caution&nbsp;1: Embedding WID iframes has some drawbacks
</div>
</div>
<div class="callout-body-container callout-body">
<p>The legend overlaps the lower part of the graph. You have either to plan during the construction of the graph to prevent this drawback or (better) to adapt the code in the URL itself.</p>
<p>Besides, there is also an annoying cookies-consent message where the link to ‘learn more’ is wrong by pointing to another graph and not to the cookies policy.</p>
</div>
</div>
<p>The code in the above iframe is:</p>
<pre><code>&lt;iframe width="800" height="400" src="https://wid.world/share/#1/countrytimeseries/sptinc_p90p100_z;sptinc_p0p50_z;sptinc_p50p90_z/FR/2015/eu/k/p/yearly/s/true/9.4765/70/curve/true/1820/2022"&gt;&lt;/iframe&gt;</code></pre>
<p>It turned out that besides changing the delimiter for the axis from <code>/9.4765/70/</code> to <code>/0/62/</code> it is also necessary to enlarge the iframe’s height to position the legend lower. With trial &amp; error experimenting, I got a good result after changing the height from <code>400</code> to <code>500</code>. Here is the adapted iframe where you can see the full figure and also the slider to change the time period of the data:</p>
<iframe width="800" height="500" src="https://wid.world/share/#1/countrytimeseries/sptinc_p90p100_z;sptinc_p0p50_z;sptinc_p50p90_z/FR/2015/eu/k/p/yearly/s/true/0/62/curve/true/1820/2022">
</iframe>
</section>
</section>
</section>
<section id="getting-codes-for-indicators" class="level2">
<h2 class="anchored" data-anchor-id="getting-codes-for-indicators">Getting codes for indicators</h2>
<p>By far, the most important result of our replication is that the URL contains the code for used indicators, areas, and percentiles.</p>
<pre><code>https://wid.world/share/#1/countrytimeseries/sptinc_p90p100_z;sptinc_p0p50_z;sptinc_p50p90_z/FR/2015/eu/k/p/yearly/s/false/9.4765/70/curve/true/1820/2022</code></pre>
<p>This is very helpful because it is now much easier to find the code explication in the <a href="https://wid.world/codes-dictionary/">Code Dictionary</a> or the <a href="https://wid.world/summary-table/">Summary Table</a>. Let’s analyze the example of the <code>sptinc_p90p100_z</code> code:</p>
<ul>
<li><strong>s</strong>: The first letter <code>s</code> determines the code series. <code>s</code> means “share” and contains a fraction between 0 and 1.</li>
<li><strong>ptinc</strong>: The next five letters are the code for the series concept. This is an essential help because a massive amount of five-letter codes exist. More than half of the 38 pages of the PDF version of the code dictionary lists five-letter codes and their meaning! Searching <code>ptinc</code> in the online Code Dictionary with the browser search tool results in “pretax national income”.</li>
<li><strong>p90p100</strong>: This one is easy. <code>p90p100</code> is the top 10%, the <a class="glossary" title="The set of divisions that produce exactly 100 equal parts in a series of continuous values, such as blood pressure, weight, height, etc. Thus a person with blood pressure above the 80th percentile has a greater blood pressure value than over 80% of the other recorded values.” (CDS, p.323)">percentiles</a> characterizing people with an income equal to or higher than 90% of the population. Or <strong>p0p50</strong> is the bottom 50% etc.</li>
</ul>
<p>Additionally, we have the information from the legend that the units are adults, and the income is split equally between couples or other adult members (= 20 years or older) of the household. Therefore, we can add:</p>
<ul>
<li><strong>992</strong>: The age code description has three numbers. <code>992</code> stands for a population of individuals over age 20.</li>
<li><strong>j</strong>: The last letter is the unit description. <code>j</code> means equal-split adults.</li>
</ul>
<p>With these data, we can now look for the corresponding codes in the database and filter the database to get only the required information. The variable name is, in our case:</p>
<p><img src="https://latex.codecogs.com/png.latex?%5Cbegin%7Balign*%7D%0As%20+%20ptinc%20+%20992%20+%20j%20=%20sptinc992j%0A%5Cend%7Balign*%7D"> {#eq-wid-variable-calculation}</p>
<p>If we look for this complete code in the <a href="https://wid.world/summary-table/">Summary Table</a>, we can read in the column “Simple description of the variable” the following explanation:</p>
<blockquote class="blockquote">
<p>Pre-tax national income is the sum of all pre-tax personal income flows accruing to the owners of the production factors, labor and capital, before taking into account the operation of the tax/transfer system, but after taking into account the operation of pension system. The central difference between personal factor income and pre-tax income is the treatment of pensions, which are counted on a contribution basis by factor income and on a distribution basis by pre-tax income.</p>
</blockquote>
<div id="cau-ID" class="callout callout-style-default callout-caution callout-titled" style="color: darkgoldenrod;">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Caution&nbsp;2: Explaining just the procedure, not the concepts
</div>
</div>
<div class="callout-body-container callout-body">
<p>Remember that I am not discussing the concepts behind the different parameter codes. I just want to stress how to find the code for a required indicator here. Which concepts to apply and what indicator is appropriate for a specific research question will be covered in other articles.</p>
</div>
</div>
</section>
<section id="r-code" class="level2">
<h2 class="anchored" data-anchor-id="r-code">R Code</h2>
<p>There is with {<strong>wid</strong>} a special R package for downloading data directly from <a class="glossary" title="">WID</a> <span class="citation" data-cites="wid-3">(Blanchet 2024b)</span>. Read the instructions on the <a href="https://github.com/thomasblanchet/wid-r-tool">GitHub repo</a> to get install information.</p>
<p>The R {wid} package should have a vignette with examples of its usage. But unfortunately, all the links to it are broken or not available except as <a href="https://github.com/thomasblanchet/wid-r-tool/blob/master/vignettes/wid-demo.Rmd"><code>.Rmd</code> file in the GitHub repository</a> itself. I have downloaded and rendered the vignette as a PDF for your convenience.</p>
<div class="cell">
<style type="text/css">
.column {
text-align: center;
}
</style>
</div>
<div class="columns">
<div class="column" style="width:100%;">
<p><button class="btn btn-success downloadthis  " id="dnldts1814"><i class="bi bi-download"></i> Download WID-vignette as PDF </button></p>
</div>
</div>
<section id="plotting-data-with-r" class="level3">
<h3 class="anchored" data-anchor-id="plotting-data-with-r">Plotting data with R</h3>
<p>The central function of the {<strong>wid</strong>} package is <code>wid::download_wid()</code>. It has the following parameters:</p>
<table class="caption-top table">
<caption>Description of the arguments for the `wid::download_wid()` function</caption>
<colgroup>
<col style="width: 25%">
<col style="width: 25%">
<col style="width: 25%">
<col style="width: 25%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">Name</th>
<th style="text-align: left;">Type</th>
<th style="text-align: left;">Default</th>
<th style="text-align: left;">Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">indicators</td>
<td style="text-align: left;">character</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Codes corresponding to indicators to retrieve</td>
</tr>
<tr class="even">
<td style="text-align: left;">areas</td>
<td style="text-align: left;">character</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Areas (mostly countries) for which to retrieve the indicators</td>
</tr>
<tr class="odd">
<td style="text-align: left;">years</td>
<td style="text-align: left;">numeric</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Years for which to retrieve the indicators</td>
</tr>
<tr class="even">
<td style="text-align: left;">perc</td>
<td style="text-align: left;">character</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;"><a class="glossary" title="The set of divisions that produce exactly 100 equal parts in a series of continuous values, such as blood pressure, weight, height, etc. Thus a person with blood pressure above the 80th percentile has a greater blood pressure value than over 80% of the other recorded values.” (CDS, p.323)">Percentiles</a> (part of the distribution)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">ages</td>
<td style="text-align: left;">numeric</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Age groups (adults, all ages, elderly, etc.)</td>
</tr>
<tr class="even">
<td style="text-align: left;">pop</td>
<td style="text-align: left;">character</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Population type (individual, households, tax units, etc.)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">metadata</td>
<td style="text-align: left;">logical</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: left;">Fetch metadata too? (eg. sources, etc.)</td>
</tr>
<tr class="even">
<td style="text-align: left;">verbose</td>
<td style="text-align: left;">logical</td>
<td style="text-align: left;">FALSE</td>
<td style="text-align: left;">Display messages showing progress?</td>
</tr>
<tr class="odd">
<td style="text-align: left;">include_extrapolation</td>
<td style="text-align: left;">logical</td>
<td style="text-align: left;">TRUE</td>
<td style="text-align: left;">Include data based on extrapolations / interpolations</td>
</tr>
</tbody>
</table>
<section id="download-data" class="level4">
<h4 class="anchored" data-anchor-id="download-data">Download data</h4>
<div class="my-r-code">
<div class="my-r-code-header">
<div id="cnj-download-wid-data-fr" class="theorem conjecture">
<p><span class="theorem-title"><strong>R Code 1</strong></span> : Download data with <code>wid::download_wid</code></p>
</div>
</div>
<div class="my-r-code-container">
<div id="lst-download-wid-data-fr" class="listing quarto-float quarto-figure quarto-figure-left anchored">
<figure class="quarto-float quarto-float-lst figure">
<div aria-describedby="lst-download-wid-data-fr-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1">income_france <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> wid<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">download_wid</span>(</span>
<span id="cb3-2">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">indicators =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"sptinc"</span>, <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Shares of pre-tax national income</span></span>
<span id="cb3-3">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">areas =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"FR"</span>, <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># France</span></span>
<span id="cb3-4">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">perc =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p0p50"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p50p90"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p90p100"</span>), <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Bottom 50%, middle 40% and top 10%</span></span>
<span id="cb3-5">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ages =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">992</span>, <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># individuals over age 20</span></span>
<span id="cb3-6">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pop =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"j"</span> <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># equal-split adults</span></span>
<span id="cb3-7">)</span>
<span id="cb3-8"></span>
<span id="cb3-9"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">save_data_file</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"WID"</span>, income_france, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"income_france.rds"</span>)</span></code></pre></div></div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-lst" id="lst-download-wid-data-fr-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Listing&nbsp;1: Download data for the shares of France’s pre-tax national income.
</figcaption>
</figure>
</div>
<p>(<em>For this R code chunk, is no output available</em>)</p>
</div>
</div>
</section>
<section id="display-some-random-data" class="level4">
<h4 class="anchored" data-anchor-id="display-some-random-data">Display some random data</h4>
<div class="my-r-code">
<div class="my-r-code-header">
<div id="cnj-display-some-wid-fr-data" class="theorem conjecture">
<p><span class="theorem-title"><strong>R Code 2</strong></span> : Display some random data imported with <code>wid::download_wid</code></p>
</div>
</div>
<div class="my-r-code-container">
<div id="lst-display-some-wid-fr-data" class="listing quarto-float quarto-figure quarto-figure-left anchored">
<figure class="quarto-float quarto-float-lst figure">
<div aria-describedby="lst-display-some-wid-fr-data-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1">data <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">paste0</span>(here<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">here</span>(), <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"/data/WID/income_france.rds"</span>)</span>
<span id="cb4-2">income_france <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> base<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">readRDS</span>(data)</span>
<span id="cb4-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">my_glance_data</span>(income_france, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">seed =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">123</span>)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>   obs country   variable percentile year  value
1    1      FR sptinc992j      p0p50 1820 0.1209
2   14      FR sptinc992j      p0p50 1923 0.1375
3  118      FR sptinc992j     p50p90 1910 0.3524
4  179      FR sptinc992j     p50p90 1975 0.4765
5  195      FR sptinc992j     p50p90 1991 0.4694
6  229      FR sptinc992j    p90p100 1880 0.5932
7  244      FR sptinc992j    p90p100 1927 0.4699
8  299      FR sptinc992j    p90p100 1982 0.2994
9  306      FR sptinc992j    p90p100 1989 0.3319
10 339      FR sptinc992j    p90p100 2022 0.3479</code></pre>
</div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-lst" id="lst-display-some-wid-fr-data-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Listing&nbsp;2: Display some random data imported with <code>wid::download_wid</code>, including the first and last row.
</figcaption>
</figure>
</div>
</div>
</div>
<p>Inspecting the data, we see:</p>
<ul>
<li><p>Our dataset has 339 records.</p></li>
<li><p>All presented records have an area code <code>FR</code>, which stands for France.</p></li>
<li><p>All presented records have the variable name <code>sptinc992j</code>. This conforms to our previous calculation.</p></li>
<li><p>We see three different values for percentiles in the randomly displayed data: <code>p0p50</code>, <code>p50p90</code>, and <code>p90p100</code> representing the income of the bottom 50%, the middle 40%, and the top 10% of the population.</p></li>
<li><p>Our random data show a period from 1820 to 2022.</p></li>
<li><p>The quantity for each record contains the column <code>value</code>.</p></li>
</ul>
<p>Overall, The result looks nice, but we must check the data more thoroughly. Is there really only one type of variable? <sup>2</sup></p>
</section>
<section id="display-data-structure" class="level4">
<h4 class="anchored" data-anchor-id="display-data-structure">Display data structure</h4>
<div class="my-r-code">
<div class="my-r-code-header">
<div id="cnj-wid-fr-income-data-structure" class="theorem conjecture">
<p><span class="theorem-title"><strong>R Code 3</strong></span> : Data structure for the France data for pre-tax income (1820-2022)</p>
</div>
</div>
<div class="my-r-code-container">
<div id="lst-wid-fr-income-data-structureD" class="listing quarto-float quarto-figure quarto-figure-left anchored">
<figure class="quarto-float quarto-float-lst figure">
<div aria-describedby="lst-wid-fr-income-data-structureD-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1">skimr<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">skim</span>(income_france)</span></code></pre></div></div>
<div class="cell-output-display">
<table class="caption-top table table-sm table-striped small">
<caption>Data summary</caption>
<tbody>
<tr class="odd">
<td style="text-align: left;">Name</td>
<td style="text-align: left;">income_france</td>
</tr>
<tr class="even">
<td style="text-align: left;">Number of rows</td>
<td style="text-align: left;">339</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Number of columns</td>
<td style="text-align: left;">5</td>
</tr>
<tr class="even">
<td style="text-align: left;">_______________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Column type frequency:</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">character</td>
<td style="text-align: left;">3</td>
</tr>
<tr class="odd">
<td style="text-align: left;">numeric</td>
<td style="text-align: left;">2</td>
</tr>
<tr class="even">
<td style="text-align: left;">________________________</td>
<td style="text-align: left;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Group variables</td>
<td style="text-align: left;">None</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: character</strong></p>
<table class="caption-top table table-sm table-striped small">
<colgroup>
<col style="width: 19%">
<col style="width: 13%">
<col style="width: 19%">
<col style="width: 5%">
<col style="width: 5%">
<col style="width: 8%">
<col style="width: 12%">
<col style="width: 15%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">min</th>
<th style="text-align: right;">max</th>
<th style="text-align: right;">empty</th>
<th style="text-align: right;">n_unique</th>
<th style="text-align: right;">whitespace</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">country</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">0</td>
</tr>
<tr class="even">
<td style="text-align: left;">variable</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">10</td>
<td style="text-align: right;">10</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">0</td>
</tr>
<tr class="odd">
<td style="text-align: left;">percentile</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">7</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">3</td>
<td style="text-align: right;">0</td>
</tr>
</tbody>
</table>
<p><strong>Variable type: numeric</strong></p>
<table class="caption-top table table-sm table-striped small">
<colgroup>
<col style="width: 14%">
<col style="width: 10%">
<col style="width: 14%">
<col style="width: 8%">
<col style="width: 6%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 8%">
<col style="width: 6%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">skim_variable</th>
<th style="text-align: right;">n_missing</th>
<th style="text-align: right;">complete_rate</th>
<th style="text-align: right;">mean</th>
<th style="text-align: right;">sd</th>
<th style="text-align: right;">p0</th>
<th style="text-align: right;">p25</th>
<th style="text-align: right;">p50</th>
<th style="text-align: right;">p75</th>
<th style="text-align: right;">p100</th>
<th style="text-align: left;">hist</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">year</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">1964.23</td>
<td style="text-align: right;">37.08</td>
<td style="text-align: right;">1820.00</td>
<td style="text-align: right;">1938.00</td>
<td style="text-align: right;">1966.00</td>
<td style="text-align: right;">1994.00</td>
<td style="text-align: right;">2022.00</td>
<td style="text-align: left;">▁▁▆▇▇</td>
</tr>
<tr class="even">
<td style="text-align: left;">value</td>
<td style="text-align: right;">0</td>
<td style="text-align: right;">1</td>
<td style="text-align: right;">0.33</td>
<td style="text-align: right;">0.12</td>
<td style="text-align: right;">0.12</td>
<td style="text-align: right;">0.21</td>
<td style="text-align: right;">0.34</td>
<td style="text-align: right;">0.45</td>
<td style="text-align: right;">0.61</td>
<td style="text-align: left;">▇▂▇▇▁</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-lst" id="lst-wid-fr-income-data-structureD-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Listing&nbsp;3: Using the {<strong>skimr</strong>} package to display the data structure for the France pre-tax income data 1820-2022
</figcaption>
</figure>
</div>
</div>
</div>
<p>Here, we see that no data are missing, that we have only one value for the variables <code>country</code> and <code>variable</code>, and exactly the required three values for <code>percentile</code>.</p>
<p>We also see from the small histogram for <code>year</code> that we do not have many data points for more of the first half of the time.</p>
</section>
<section id="display-the-national-income-figure" class="level4">
<h4 class="anchored" data-anchor-id="display-the-national-income-figure">Display the national income figure</h4>
<div class="my-r-code">
<div class="my-r-code-header">
<div id="cnj-display-graph-income-france" class="theorem conjecture">
<p><span class="theorem-title"><strong>R Code 4</strong></span> : Pre-tax national income inequality in France, 1820-2022</p>
</div>
</div>
<div class="my-r-code-container">
<div id="lst-display-graph-income-france" class="listing quarto-float quarto-figure quarto-figure-left anchored">
<figure class="quarto-float quarto-float-lst figure">
<div aria-describedby="lst-display-graph-income-france-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb7-1">ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ggplot</span>(income_france, </span>
<span id="cb7-2">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">aes</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">x =</span> year, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">y =</span> value, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">color =</span> percentile)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb7-3">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">geom_line</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> </span>
<span id="cb7-4">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">geom_point</span>() <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb7-5">    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># ggplot2::geom_smooth(span = .9) + # for smoothing</span></span>
<span id="cb7-6">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ylab</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"share of income"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb7-7">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">scale_color_discrete</span>(</span>
<span id="cb7-8">        <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">labels =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p0p50"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"bottom 50%"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p90p100"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"top 10%"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"p50p90"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"middle 40%"</span>)</span>
<span id="cb7-9">    ) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> </span>
<span id="cb7-10">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ggtitle</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Pre-tax national income inequality in France, 1820-2022"</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span></span>
<span id="cb7-11">    ggplot2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">legend.position =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"bottom"</span>)</span></code></pre></div></div>
<div class="cell-output-display">
<div>
<figure class="figure">
<p><a href="index_files/figure-html/display-graph-income-france-1.png" class="lightbox" data-gallery="quarto-lightbox-gallery-20" title="Listing&nbsp;4: Pre-tax national income inequality in France, 1820-2022"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/index_files/figure-html/display-graph-income-france-1.png" class="img-fluid figure-img" width="672"></a></p>
</figure>
</div>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">## save plot just once</span></span>
<span id="cb8-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># ggplot2::ggsave(filename = "BHE-sptinc992j_fr.png")</span></span></code></pre></div></div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-lst" id="lst-display-graph-income-france-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Listing&nbsp;4: Pre-tax national income inequality in France, 1820-2022
</figcaption>
</figure>
</div>
</div>
</div>
</section>
</section>
</section>
<section id="comparison-of-my-result-with-the-original-figure-7" class="level2">
<h2 class="anchored" data-anchor-id="comparison-of-my-result-with-the-original-figure-7">Comparison of my result with the original Figure 7</h2>
<div class="grid">
<div class="g-col-6">
<div id="fig-figure7-piketty-3" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" data-group="BHE-figure-compare2">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-figure7-piketty-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-Figure-07-Piketty-min.png" class="lightbox" data-gallery="BHE-figure-compare2" title="Figure&nbsp;18: Figure 7 of BHE, taken from the original source on Piketty’s website."><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-Figure-07-Piketty-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-figure7-piketty-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;18: Figure 7 of <a class="glossary" title="Piketty, T. (2022). A Brief History of Equality (S. Rendall, Trans.). Harvard University Press.">BHE</a>, taken from the <a href="http://piketty.pse.ens.fr/files/equality/">original source on Piketty’s website</a>.
</figcaption>
</figure>
</div>
</div>
<div class="g-col-6">
<div id="fig-BHE-sptinc992j-fr" class="quarto-float quarto-figure quarto-figure-center anchored" alt="alt-text" data-fig-align="center" data-group="BHE-figure-compare2">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-BHE-sptinc992j-fr-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="BHE-sptinc992j_fr-min.png" class="lightbox" data-gallery="BHE-figure-compare2" title="Figure&nbsp;19: Resulting figure after data download and plotting with R"><img src="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/BHE-sptinc992j_fr-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:100.0%" alt="alt-text"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-BHE-sptinc992j-fr-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;19: Resulting figure after data download and plotting with R
</figcaption>
</figure>
</div>
</div>
</div>
<p>We are pretty near if we compare the above plots. Besides the mentioned difference in the magnitude of the top 10% and middle 40% before 1900, there are the following differences:</p>
<ul>
<li>title</li>
<li>grid for x- and y-axis</li>
<li>symbols for the data points</li>
<li>position of the legend</li>
<li>text of legend</li>
<li>the smoothness of the time series</li>
</ul>
<p>However, these differences are all solvable with the appropriate R code. I leave it here because the purpose of this article was to work with <a class="glossary" title="">WID</a> (and not to replicate figure 7 of <a class="glossary" title="Piketty, T. (2022). A Brief History of Equality (S. Rendall, Trans.). Harvard University Press.">BHE</a> exactly.)</p>
</section>
<section id="conclusion" class="level2">
<h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
<p>I have shown procedures for working with the inequality data of <a class="glossary" title="">WID</a>.</p>
<ul>
<li>One approach explores the interactive website on <a href="https://wid.world/">wid.world</a> and tries to create the desired graph. There are several ways to use the resulting figure:
<ul>
<li>Downloading the picture as <a class="glossary" title="JPEG (/ˈdʒeɪpɛɡ/ JAY-peg, short for Joint Photographic Experts Group is a commonly used method of lossy compression for digital images. (Wikipedia)">JPG</a></li>
<li>Embedding a link to the interactive graph on your website</li>
<li>Embedding the result as <a class="glossary" title="iframes allow you to embed HTML documents inside another HTML document. They offer a seamless way to integrate content from one source into another, enabling developers to create more dynamic and interactive web pages. (dev.to)">iframe</a> in your website</li>
<li>Exploring the code in the URL and using it for the second approach (downloading the required data with R)</li>
</ul></li>
<li>The second approach uses the {<strong>wid</strong>} R package, especially the function <code>wid::download_wid()</code>. Knowing the required codes for the download function is essential. The first approach could help find the correct code composition in the WID code book, the <a href="https://wid.world/codes-dictionary/">Codes Dictionary</a> or in the <a href="https://wid.world/summary-table/">Summary Table</a>.</li>
</ul>
<div id="imp-how-to-not-enough" class="callout callout-style-default callout-important callout-titled" style="color: red;">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Important&nbsp;1: How-to procedures are not enough
</div>
</div>
<div class="callout-body-container callout-body">
<p>The post only describes “how-to” procedures for WID and does not discuss the available concepts appropriate for specific research questions. I plan to describe and reflect on concepts for inequality research in later blog posts.</p>
</div>
</div>
</section>
<section id="appendix" class="level2">
<h2 class="anchored" data-anchor-id="appendix">Appendix</h2>
<section id="glossary" class="level6">
<h6 class="anchored" data-anchor-id="glossary">Glossary</h6>
<div class="cell">
<div class="cell-output-display">
<table class="table caption-top table-sm table-striped small">
<thead>
<tr class="header">
<th style="text-align: left;" data-quarto-table-cell-role="th">term</th>
<th style="text-align: left;" data-quarto-table-cell-role="th">definition</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Advanced Organizer</td>
<td style="text-align: left;">Advance organizers are pedagogic devices that bridge the gap between what learners already know and what learners need to know. (&lt;a href="https://link.springer.com/referenceworkentry/10.1007/978-1-4419-1428-6_157"&gt;Encyclopedia of the Science of Learning&lt;/a&gt;)</td>
</tr>
<tr class="even">
<td style="text-align: left;">BHE</td>
<td style="text-align: left;">Piketty, T. (2022). A Brief History of Equality (S. Rendall, Trans.). Harvard University Press.</td>
</tr>
<tr class="odd">
<td style="text-align: left;">DINA</td>
<td style="text-align: left;">Distributional national accounts (DINAs) aim to gather information on the distribution of the net national income and to explore it over time. ([Distributional National Accounts (DINA) for Austria, 2004-2016](https://wid.world/document/distributional-national-accounts-dina-for-austria-2004-2016-world-inequality-lab-wp-2020-23/))</td>
</tr>
<tr class="even">
<td style="text-align: left;">iframe</td>
<td style="text-align: left;">iframes allow you to embed HTML documents inside another HTML document. They offer a seamless way to integrate content from one source into another, enabling developers to create more dynamic and interactive web pages. ([dev.to](https://dev.to/joanayebola/what-is-iframe-and-how-to-use-them-1c63))</td>
</tr>
<tr class="odd">
<td style="text-align: left;">JPG</td>
<td style="text-align: left;">JPEG (/ˈdʒeɪpɛɡ/ JAY-peg, short for Joint Photographic Experts Group is a commonly used method of lossy compression for digital images. [(Wikipedia](https://en.wikipedia.org/wiki/JPEG))</td>
</tr>
<tr class="even">
<td style="text-align: left;">National Accounts</td>
<td style="text-align: left;">National accounts are a system of accounts and balance sheets that provide a broad and integrated framework to describe an economy, whether a region, a country, or a group of countries such as the European Union (EU). For internationally comparable national accounts this system needs to be based on common concepts, definitions, classifications and accounting rules, in order to arrive at a consistent, reliable and comparable quantitative description of an economy. National accounts provide systematic and detailed economic data useful for economic analysis to support the development and monitoring of policy-making. [eurostat - Statistics explained]</td>
</tr>
<tr class="odd">
<td style="text-align: left;">OWID</td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Percentile</td>
<td style="text-align: left;">The set of divisions that produce exactly 100 equal parts in a series of continuous values, such as blood pressure, weight, height, etc. Thus a person with blood pressure above the 80th percentile has a greater blood pressure value than over 80% of the other recorded values.” (CDS, p.323)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">WID</td>
<td style="text-align: left;"></td>
</tr>
</tbody>
</table>
</div>
</div>



</section>
</section>


<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a><div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-worldinequalitylab2024" class="csl-entry">
Author Collective ’World Inequality Lab’. 2024. <em>WID - World Inequality Database</em>. <a href="https://wid.world/">https://wid.world/</a>.
</div>
<div id="ref-wid-2" class="csl-entry">
Blanchet, Thomas. 2024a. <em>Wid: Download Data from WID.world</em>. <a href="https://github.com/WIDworld/wid-r-tool">https://github.com/WIDworld/wid-r-tool</a>.
</div>
<div id="ref-wid-3" class="csl-entry">
Blanchet, Thomas. 2024b. <em>Wid: Download Data from WID.world</em>. <a href="https://github.com/WIDworld/wid-r-tool">https://github.com/WIDworld/wid-r-tool</a>.
</div>
<div id="ref-blanchet2024b" class="csl-entry">
Blanchet, Thomas, Lucas Chancel, Ignacio Flores, and Marc Morgan. 2024. <em>Distributional National Accounts Guidelines: Methods and Concepts Used in the World Inequality Database (Version 2024-02-27)</em>. February 27. <a href="https://wid.world/document/distributional-national-accounts-guidelines-2020-concepts-and-methods-used-in-the-world-inequality-database/">https://wid.world/document/distributional-national-accounts-guidelines-2020-concepts-and-methods-used-in-the-world-inequality-database/</a>.
</div>
<div id="ref-blanchet2019" class="csl-entry">
Blanchet, Thomas, Lucas Chancel, and Amory Gethin. 2019. <span>“How Unequal Is Europe? Evidence from Distributional National Accounts, 1980<span></span>2017.”</span> <em>WID.world, Working Paper</em>, no. 2019/06 (April): 77. <a href="https://wid.world/document/bcg2019-full-paper/">https://wid.world/document/bcg2019-full-paper/</a>.
</div>
<div id="ref-globalchangedatalab2024" class="csl-entry">
Global Change Data Lab, and Max Roser. 2024. <span>“OWID Homepage.”</span> <em>Our World in Data</em>, March 25. <a href="https://ourworldindata.org">https://ourworldindata.org</a>.
</div>
<div id="ref-jestl2020" class="csl-entry">
Jestl, Stefan, and Emanuel List. 2020. <em>Distributional National Accounts (DINA) for Austria, 2004-2016</em>. October. <a href="https://wid.world/document/distributional-national-accounts-dina-for-austria-2004-2016-world-inequality-lab-wp-2020-23/">https://wid.world/document/distributional-national-accounts-dina-for-austria-2004-2016-world-inequality-lab-wp-2020-23/</a>.
</div>
<div id="ref-lisauthorcollective2024" class="csl-entry">
LIS Author Collective. 2024. <em>LIS Cross-National Data Center in Luxembourg</em>. <a href="https://www.lisdatacenter.org/">https://www.lisdatacenter.org/</a>.
</div>
<div id="ref-morgan2020" class="csl-entry">
Morgan, Marc, and Theresa Neef. 2020. <span>“What<span>’</span>s New about Income Inequality in Europe (1980-2019)?”</span> <em>World Inequality Lab, Issue Brief</em>, no. 2020/04 (November): 16. <a href="https://wid.world/document/whats-new-about-income-inequality-in-europe-1980-2019/">https://wid.world/document/whats-new-about-income-inequality-in-europe-1980-2019/</a>.
</div>
<div id="ref-piketty2020a" class="csl-entry">
Piketty, Thomas. 2020. <em>Capital and Ideology</em>. Illustrated Edition. Harvard University Press.
</div>
<div id="ref-piketty2022" class="csl-entry">
Piketty, Thomas. 2022. <em>A Brief History of Equality</em>. Harvard University Press.
</div>
<div id="ref-piketty2017" class="csl-entry">
Piketty, Thomas, and Arthur Goldhammer. 2017. <em>Capital in the Twenty-First Century</em>. Harvard University Press.
</div>
<div id="ref-worldbank2024" class="csl-entry">
World Bank. 2024. <em>Poverty and Inequality Platform (Version: 20240326<span>_</span>2017)</em>. <a href="https://pip.worldbank.org/home">https://pip.worldbank.org/home</a>.
</div>
<div id="ref-worldinequalitylab2024b" class="csl-entry">
World Inequality Lab. 2024. <em>Codes Dictionary</em>. <a href="https://wid.world/codes-dictionary/">https://wid.world/codes-dictionary/</a>.
</div>
</div></section><section id="footnotes" class="footnotes footnotes-end-of-document"><h2 class="anchored quarto-appendix-heading">Footnotes</h2>

<ol>
<li id="fn1"><p>This is somewhat disappointing. As I do not know STATA, these code files do not make much sense to me. However, a quick internet search showed that there are some resources to learn how to translate STATA directives into R commands. Two examples: <a href="https://www.hertiecodingclub.com/learn/rstudio/stata_to_r/">Making the Transition? A Guide for Switching from Stata to R</a> and <a href="https://rstudio.github.io/cheatsheets/stata2r.pdf">STATA to R cheat sheet</a>.↩︎</p></li>
<li id="fn2"><p>How important this check is showed me a previous version in which I had not included <code>ages = 992</code> because I thought the adult population was already defined with <code>pop = "j"</code>, the letter code for equal-split <em>adults</em>. But it turned out that without the explicit definition for the age, I also downloaded the default value <code>999</code> (all ages).↩︎</p></li>
</ol>
</section></div> ]]></description>
  <category>inequality</category>
  <category>research</category>
  <category>WID</category>
  <category>open-data</category>
  <guid>https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/</guid>
  <pubDate>Fri, 26 Jul 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/2024-07-27-how-to-use-the-world-inequality-database-wid/WID-Logo-min.png" medium="image" type="image/png" height="103" width="144"/>
</item>
<item>
  <title>Quarto Blog Tutorial 4: Shared Metadata</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-25-shared-metadata/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-25-shared-metadata/pexels-cottonbro-3944311-min1.jpg" class="img-fluid figure-img" style="width:50.0%" alt="Seven different hands grab a slice of a salami pizza cut in eight different pieces."></p>
<figcaption>Sharing resources via metadata. <br> Foto von <a href="https://www.pexels.com/de-de/foto/lebensmittel-essen-pizza-hande-3944311/">cottonbro studio</a> via <a href="https://www.pexels.com/">Pexels.com</a></figcaption>
</figure>
</div>
<section id="introduction" class="level2">
<h2 class="anchored" data-anchor-id="introduction">Introduction</h2>
<p>Shared YAML metadata can be defined at both the project and directory level:</p>
<ul>
<li>project level: filename <code>_quarto.yml</code></li>
<li>directory level: filename <code>_metadata.yml</code></li>
</ul>
<p>For more information, see <a href="https://quarto.org/docs/projects/quarto-projects.html#shared-metadata">Project Basics – Quarto Shared Metadata</a></p>
</section>
<section id="project-level" class="level2">
<h2 class="anchored" data-anchor-id="project-level">Project Level</h2>
<p>On the project level, I will change only the provided URLs for my GitHub and Twitter accounts in this first step.</p>
<div class="grid">
<section id="before-my-change" class="level5 g-col-5">
<h5 class="anchored" data-anchor-id="before-my-change">Before My Change</h5>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" data-filename="_quarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">project</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> website</span></span>
<span id="cb1-3"></span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">website</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Life Long Learning Lab"</span></span>
<span id="cb1-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">navbar</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> about.qmd</span></span>
<span id="cb1-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> github</span></span>
<span id="cb1-10"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://github.com/</span></span>
<span id="cb1-11"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> twitter</span></span>
<span id="cb1-12"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://twitter.com</span></span>
<span id="cb1-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">format</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-14"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">html</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-15"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> cosmo</span></span>
<span id="cb1-16"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">css</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> styles.css</span></span></code></pre></div></div>
</div>
</section>
<section id="after-my-change" class="level5 g-col-7">
<h5 class="anchored" data-anchor-id="after-my-change">After My Change</h5>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" data-filename="_quarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">project</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> website</span></span>
<span id="cb2-3"></span>
<span id="cb2-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">website</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Life Long Learning Lab"</span></span>
<span id="cb2-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">navbar</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> about.qmd</span></span>
<span id="cb2-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> github</span></span>
<span id="cb2-10"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://github.com/petzi53/quarto-pb-blog</span></span>
<span id="cb2-11"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> twitter</span></span>
<span id="cb2-12"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://x.com/pbaumgartner</span></span>
<span id="cb2-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">format</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-14"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">html</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-15"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> cosmo</span></span>
<span id="cb2-16"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">css</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> styles.css</span></span></code></pre></div></div>
</div>
</section>
</div>
</section>
<section id="directory-level" class="level2">
<h2 class="anchored" data-anchor-id="directory-level">Directory Level</h2>
<p>We have seen in an <a href="../../../posts/2024-07-24-default-blog-source-code/#fig-content-posts-folder">previous post</a> that there is a <code>_metadata.yml</code> file in the <code>posts</code> folder.</p>
<div class="grid">
<section id="before-my-change-1" class="level5 g-col-6">
<h5 class="anchored" data-anchor-id="before-my-change-1">Before My Change</h5>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_metadata.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" data-filename="_metadata.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb3-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># options specified here will apply to all posts in this folder</span></span>
<span id="cb3-2"></span>
<span id="cb3-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># freeze computational output</span></span>
<span id="cb3-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># (see https://quarto.org/docs/projects/code-execution.html#freeze)</span></span>
<span id="cb3-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">freeze</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb3-6"></span>
<span id="cb3-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Enable banner style title blocks</span></span>
<span id="cb3-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title-block-banner</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span></code></pre></div></div>
</div>
</section>
<section id="after-my-change-1" class="level5 g-col-6">
<h5 class="anchored" data-anchor-id="after-my-change-1">After My Change</h5>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_metadata.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" data-filename="_metadata.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb4-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># options specified here will apply to all posts in this folder</span></span>
<span id="cb4-2"></span>
<span id="cb4-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># freeze computational output</span></span>
<span id="cb4-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># (see https://quarto.org/docs/projects/code-execution.html#freeze)</span></span>
<span id="cb4-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">freeze</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb4-6"></span>
<span id="cb4-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Enable banner style title blocks</span></span>
<span id="cb4-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title-block-banner</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb4-9"></span>
<span id="cb4-10"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Author name of all blog posts</span></span>
<span id="cb4-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">author</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">'Peter Baumgartner'</span></span>
<span id="cb4-12"></span>
<span id="cb4-13"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Table of content settings</span></span>
<span id="cb4-14"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">toc</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb4-15"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">toc-depth</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span></span>
<span id="cb4-16"></span>
<span id="cb4-17"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">page-layout</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> article</span></span></code></pre></div></div>
</div>
</section>
</div>
<p>The changes are self-explanatory, so short comments will suffice:</p>
<ul>
<li><code>title-block-banner</code>: I have already removed the title block banner from the home page listings and will disable it for blog posts as well. (I will revise this decision after I have written several posts. Maybe the title block banner is very useful for displaying a short description of the article.)</li>
<li><code>author</code>: All articles in my blog will be written by me.</li>
<li><code>toc</code> and <code>toc-depth</code>: I want a table of contents on the right side of the blog post, with a maximum of four levels. (I will revise this decision after I have written some longer articles. Maybe the TOC levels go too deep.)</li>
<li><code>page-layout</code>: I have <a href="../../../posts/2024-07-24-default-blog-source-code/#page-layout">already explained</a> the <code>page-layout: full</code> directive from the title home page <code>index.qmd</code>. Now we want an <code>article</code> layout, because it creates a content area with a page-based grid layout that provides margins, areas for sidebars, and a reading width-optimized body region.</li>
</ul>
</section>
<section id="git-and-github" class="level2">
<h2 class="anchored" data-anchor-id="git-and-github">Git and GitHub</h2>
<p>I will commit these third bulk of changes to Git and my demonstration repository <code>quarto-pb-blog</code> <a href="https://github.com/petzi53/quarto-pb-blog">on GitHub</a>.</p>


</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>blog</category>
  <category>how-to</category>
  <category>quarto</category>
  <category>tutorial</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-25-shared-metadata/</guid>
  <pubDate>Wed, 24 Jul 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-25-shared-metadata/pexels-cottonbro-3944311-min1.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>Quarto Blog Tutorial 3: Default blog source code</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/L3Lab-blog-2024-07-23-min.png" class="img-fluid figure-img"></p>
<figcaption>Start page of my L3Lab blog (Screenshot from 2024-07-23)</figcaption>
</figure>
</div>
<p>In this article, I will explain and explore the source code that was automatically generated when I created my blog with RStudio as described in <a href="../2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio">Initializing a Quarto Blog with RStudio</a>.</p>
<section id="virgin-title-page" class="level2">
<h2 class="anchored" data-anchor-id="virgin-title-page">Virgin Title Page</h2>
<p>Here is the source code of the main <code>index.qmd</code> after the initialization:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>index.qmd</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" data-filename="index.qmd" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb1-1"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"quarto-pb-blog"</span></span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">listing</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-4"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">contents</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> posts</span></span>
<span id="cb1-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sort</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"date desc"</span></span>
<span id="cb1-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> default</span></span>
<span id="cb1-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">categories</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb1-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sort-ui</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb1-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter-ui</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb1-10"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">page-layout</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> full</span></span>
<span id="cb1-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title-block-banner</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb1-12"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">---</span></span></code></pre></div></div>
</div>
<p>And here is the look of the blog’s home page after the first rendering:</p>
<div id="fig-fist-rendering" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'quarto-pb-blog' in bold. The white main page consists of four columns. It contains form left to right dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with number of their appearances in parenthesis.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-fist-rendering-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="virgin-blog-homepage-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;1: First rendering after initializing a Quarto blog (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/virgin-blog-homepage-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'quarto-pb-blog' in bold. The white main page consists of four columns. It contains form left to right dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with number of their appearances in parenthesis."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-fist-rendering-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: First rendering after initializing a Quarto blog (Screenshot)
</figcaption>
</figure>
</div>
<p>As you see the title banner shows twice the name of the R project folder ‘quarto-pb-blog’.</p>
</section>
<section id="change-title" class="level2">
<h2 class="anchored" data-anchor-id="change-title">Change Title</h2>
<p>The first line of the homepage’s YAML header in <code>index.qmd</code> is the title. If I change the title to “L3Lab,” only one part of the title banner will change.</p>
<div id="fig-blog-title-changed" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of four columns. It contains form left to right dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with number of their appearances in parenthesis.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-blog-title-changed-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="blog-title-changed-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;2: Screenshot of the blog’s homepage after changing the blog listing title in index.qmd"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/blog-title-changed-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of four columns. It contains form left to right dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with number of their appearances in parenthesis."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-blog-title-changed-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Screenshot of the blog’s homepage after changing the blog listing title in <code>index.qmd</code>
</figcaption>
</figure>
</div>
<p>The reason is that the upper left text is written in the Quarto project file.</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" data-filename="_quarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">project</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> website</span></span>
<span id="cb2-3"></span>
<span id="cb2-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">website</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"quarto-pb-blog"</span></span>
<span id="cb2-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">navbar</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> about.qmd</span></span>
<span id="cb2-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> github</span></span>
<span id="cb2-10"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://github.com/</span></span>
<span id="cb2-11"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> twitter</span></span>
<span id="cb2-12"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://twitter.com</span></span>
<span id="cb2-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">format</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-14"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">html</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-15"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> cosmo</span></span>
<span id="cb2-16"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">css</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> styles.css</span></span></code></pre></div></div>
</div>
<p>The top left name is the website’s title (and not the blog title). A website can have several components, such as a web page and a blog. I will call the website “Life Long Learning Lab,” the blog’s name remains “L3Lab”.</p>
<div id="fig-website-title-changed" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of four columns. It contains form left to right one row of dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with numbers of their appearances in parenthesis.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-website-title-changed-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="website-title-changed-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;3: Screenshot of the blog’s homepage after changing the title of the website in _quarto.yml"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/website-title-changed-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of four columns. It contains form left to right one row of dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with numbers of their appearances in parenthesis."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-website-title-changed-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Screenshot of the blog’s homepage after changing the title of the website in <code>_quarto.yml</code>
</figcaption>
</figure>
</div>
<p>The website’s header doesn’t look nice. I will change the blog’s design (color, font size, layout, etc.) later in a separate post.</p>
</section>
<section id="explore-listing" class="level2">
<h2 class="anchored" data-anchor-id="explore-listing">Explore Listing</h2>
<section id="contents-directive" class="level3">
<h3 class="anchored" data-anchor-id="contents-directive">Contents Directive</h3>
<p>Listings enable you to automatically generate the contents of a page from a list of Quarto documents. In our case, the blog’s title is actually the home page’s listing title.</p>
<p>Instead of <code>listing: default</code> for a list of all documents in the directory and a drop-down menu for sorting direction, order criteria, and a search bar, we have specified with <code>content: posts</code> that only the documents in the folder “posts” should be listed. Have a look into the “posts” folder by selecting the “Files” tab in the bottom right pane of RStudio and click on the “posts” folder to open the directory.</p>
<div id="fig-content-posts-folder" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="On the top there are some window tabs. From left to the right: 'Files' (active), 'Plots', 'Packages', 'Help', 'Viewer', and 'Presentation. Underneath several buttons prepended by icons. From left to the right: 'New Folder', 'New Blank File', 'Delete', 'Rename', 'More' (drop-down-menu). Under these buttons is a URL where each part is a (blue) link: 'Home>Documents>Meine-Repos>quarto-pb-blog>posts'. Underneath is a list of three items in three columns titled 'Name', 'Size', and 'Modified'. The first item says: '_metadata.yml 237B, Jul 17, 2024, 10:08 AM'. The next two lines represent folder names: 'post-with-code' and 'welcome'.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-content-posts-folder-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="content-of-posts-directory-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;4: Content of the posts folder immediately after the initialization process"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/content-of-posts-directory-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="On the top there are some window tabs. From left to the right: 'Files' (active), 'Plots', 'Packages', 'Help', 'Viewer', and 'Presentation. Underneath several buttons prepended by icons. From left to the right: 'New Folder', 'New Blank File', 'Delete', 'Rename', 'More' (drop-down-menu). Under these buttons is a URL where each part is a (blue) link: 'Home>Documents>Meine-Repos>quarto-pb-blog>posts'. Underneath is a list of three items in three columns titled 'Name', 'Size', and 'Modified'. The first item says: '_metadata.yml 237B, Jul 17, 2024, 10:08 AM'. The next two lines represent folder names: 'post-with-code' and 'welcome'."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-content-posts-folder-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Content of the <code>posts</code> folder immediately after the initialization process
</figcaption>
</figure>
</div>
<p>The two folders “post-with-code” and “welcome” contain the two dummy articles generated automatically in the initialization process. I will explain the function of the <code>_metadata.yml</code> file later in another post.</p>
<p>Besides to list all articles of a folder, you can also write much more complex rules for including content by <a href="https://quarto.org/docs/reference/globs.html">using globs</a> and a list of targets in the contents directive. See for more details the two sections of the Quarto documentation: <a href="https://quarto.org/docs/websites/website-listings.html#listing-contents">Listing Contents</a> and <a href="https://quarto.org/docs/websites/website-listings-custom.html">Custom Listings</a>.</p>
</section>
<section id="listing-types" class="level3">
<h3 class="anchored" data-anchor-id="listing-types">Listing Types</h3>
<p>There are three built-in types of listings you can choose from:</p>
<div id="tbl-quarto-blog-listing-types" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-quarto-blog-listing-types-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Quarto blog listing types
</figcaption>
<div aria-describedby="tbl-quarto-blog-listing-types-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<thead>
<tr class="header">
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code>default</code></td>
<td>A blog-style list of items.</td>
</tr>
<tr class="even">
<td><code>table</code></td>
<td>A table of listings.</td>
</tr>
<tr class="odd">
<td><code>grid</code></td>
<td>A grid of listing cards.</td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
<p>I am going to use for my blog the <code>default</code> blog-style list of items. However, it is instructive to see the other types to get a sense of their different appearances.</p>
<section id="grid-listings" class="level4">
<h4 class="anchored" data-anchor-id="grid-listings">Grid Listings</h4>
<div id="fig-grid-listing" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of two boxes and a list of categories. Each box consists of five (dummy) elements. From top to down: image, post title, category buttons, short description, author and date. On the right side is a list of categories with numbers of their appearances in parenthesis. ">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-grid-listing-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="grid-listing-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;5: Dummy articles after the blog initialiation in grid listing mode (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/grid-listing-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of two boxes and a list of categories. Each box consists of five (dummy) elements. From top to down: image, post title, category buttons, short description, author and date. On the right side is a list of categories with numbers of their appearances in parenthesis. "></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-grid-listing-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: Dummy articles after the blog initialiation in grid listing mode (Screenshot)
</figcaption>
</figure>
</div>
</section>
<section id="table-listings" class="level4">
<h4 class="anchored" data-anchor-id="table-listings">Table Listings</h4>
<div id="fig-table-listing" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of a table of three columns and a list of categories. The two rows are titled 'Date', 'Title', and 'Author'. The two rows from, consists each from left to the right with dummy data: 'July 17, 2024', 'Post With Code', 'harlow Malloc' and 'July 14, 2024', 'Welcome to the Blog', and 'Tristan O'Malley'. On the right side is a list of categories with numbers of their appearances in parenthesis. ">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-table-listing-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="table-listing-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;6: Dummy articles after the blog initialiation in table listing mode"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/table-listing-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of a table of three columns and a list of categories. The two rows are titled 'Date', 'Title', and 'Author'. The two rows from, consists each from left to the right with dummy data: 'July 17, 2024', 'Post With Code', 'harlow Malloc' and 'July 14, 2024', 'Welcome to the Blog', and 'Tristan O'Malley'. On the right side is a list of categories with numbers of their appearances in parenthesis. "></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-table-listing-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;6: Dummy articles after the blog initialiation in table listing mode
</figcaption>
</figure>
</div>
</section>
<section id="default-listings" class="level4">
<h4 class="anchored" data-anchor-id="default-listings">Default Listings</h4>
<div id="fig-default-listing" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of four columns. It contains form left to right two rows of dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with numbers of their appearances in parenthesis.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-default-listing-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="default-listing-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;7: Dummy articles after the blog initialiation in default listing mode (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/default-listing-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title banner consists of two line. On the top left corner: 'quarto-pb-blog'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. On the lower left side: 'L3Lab' in bold. The white main page consists of four columns. It contains form left to right two rows of dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with numbers of their appearances in parenthesis."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-default-listing-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;7: Dummy articles after the blog initialiation in default listing mode (Screenshot)
</figcaption>
</figure>
</div>
</section>
</section>
</section>
<section id="sort-articles" class="level2">
<h2 class="anchored" data-anchor-id="sort-articles">Sort articles</h2>
<p>Using the&nbsp;<code>sort</code>&nbsp;option controls the order of the listing. Each <code>sort</code> key can include a field name and optionally either <code>asc</code> or <code>desc</code> to control whether to sort in ascending or descending order. Since the default order is ascending, I had to add <code>desc</code> to get the most current article at the top. The <code>sort</code> key can also contain more than one field to sort.</p>
</section>
<section id="listing-options" class="level2">
<h2 class="anchored" data-anchor-id="listing-options">Listing options</h2>
<p>For every listing type, there are several listing options to specify details, such as:</p>
<ul>
<li>The maximum number of items: <code>max-items</code></li>
<li>The height of the image: <code>image-height</code>. The width is automatically determined and the image will fill the rectangle without scaling (i.e., cropped to fill).</li>
<li>A placeholder for the image: <code>image-placeholder</code>. The default image for items if they do not refer to a special image. For more options, see <a href="https://quarto.org/docs/websites/website-listings.html#listing-options">Listing Options</a> and <a href="https://quarto.org/docs/websites/website-listings.html#advanced-options">Advanced Options</a>.</li>
</ul>
</section>
<section id="categories" class="level2">
<h2 class="anchored" data-anchor-id="categories">Categories</h2>
<p>Listings can also automatically add a list of categories to the page on which they appear. To turn on this behavior, you must set the option for categories to true: <code>categories: true</code>. You can choose between a few different category display styles: <code>numbered</code>, <code>unnumbered</code>, and word <code>cloud</code>.</p>
<p>When users click a category, the page will be updated to show only a listing of the items that match the selected category.</p>
</section>
<section id="sort--and-filter--interface" class="level2">
<h2 class="anchored" data-anchor-id="sort--and-filter--interface">Sort- and Filter- Interface</h2>
<p>Listings support interactive tools that allow the listing viewer to sort, filter, or page through listings.</p>
<p>I have turned off the sort and filter user interface and applied the default number of items per page for the default listing type: <code>page-size: 25</code>.</p>
</section>
<section id="page-layout" class="level2">
<h2 class="anchored" data-anchor-id="page-layout">Page Layout</h2>
<p>Quarto provides three different default layouts for HTML pages:</p>
<ul>
<li>The <code>article</code> layout provides a content area with a page-based grid layout that provides margins, areas for sidebars, and a reading width-optimized body region. I am going to use this layout type for article content. See for <a href="https://quarto.org/docs/authoring/article-layout.html">more information on article layout</a>.</li>
<li>The <code>full</code> layout uses the article grid system but automatically expands the content area to use the sidebar and margin region if no content is placed within those regions. This is useful for layouts that don’t need to be constrained to reading width, and that will benefit from additional horizontal space (e.g., landing or index pages). It is also often appropriate for listing pages.</li>
<li>The <code>custom</code> layout provides the possibility to create an individual layout. Learn more on the <a href="https://quarto.org/docs/output-formats/page-layout.html">Page Layout</a> page.</li>
</ul>
</section>
<section id="title-block-banner" class="level2">
<h2 class="anchored" data-anchor-id="title-block-banner">Title Block Banner</h2>
<p>HTML pages rendered with Quarto include a formatted title block at the start of the article. The title block contains the title, subtitle, authors, date, doi, and abstract. There are several options to style the title block. In addition, if you’d like a more prominent title block, you can use&nbsp;<code>title-block-banner</code>&nbsp;to create a banner-style title block.</p>
<p>For my blog, I don’t want (at the moment) a title block banner. Setting <code>title-block-banner</code> to false saves space on the title page and feels more prosaic and less business-like.</p>
<div id="fig-no-blog-banner" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Screenshot of the blog’s homepage. The grey title header consists of one line. On the top left corner: 'Life Long Learning Lab'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. The white main page consists of four columns. It contains form left to right two rows of dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with numbers of their appearances in parenthesis. The left first column is tited 'L3Lab'">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-no-blog-banner-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="no-title-block-banner-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;8: Blog homepage without banner for the title block (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/no-title-block-banner-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Screenshot of the blog’s homepage. The grey title header consists of one line. On the top left corner: 'Life Long Learning Lab'. On the top right corner: 'About' and the icons for GitHub, X formerly Twitter and a magnifying glass for a search engine. The white main page consists of four columns. It contains form left to right two rows of dummy data: Date and author; title of blog post in bold, buttons for categories, short summary; image; a list of categories with numbers of their appearances in parenthesis. The left first column is tited 'L3Lab'"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-no-blog-banner-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;8: Blog homepage without banner for the title block (Screenshot)
</figcaption>
</figure>
</div>
</section>
<section id="git-and-github" class="level2">
<h2 class="anchored" data-anchor-id="git-and-github">Git and GitHub</h2>
<p>Here I will pause and commit these changes to Git and GitHub. It is interesting to note that there are – besides <code>index.qmd</code> and <code>_quatro.yml</code> – several other files that have changed.</p>
<div id="fig-changed-files" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="RStudio top right pane with the following tabs: Environment, History, Connection, Build, Git, and Tutorial. The Git pane is selected and therefore active. Under the tabs is another line of icons and text buttons representing Git actions: From left to right: 'Diff', 'Commit', 'Pull', 'Push', 'History', 'More' (drop-down menu), 'New Branch', 'master'). Underneath it shows changed files. From top to the bottom: '_quarto.yml', 'index.qmd', '_site/about.html' (with blue background = selected, '_site/index.html', '_site/search.json', '_site/posts/post-with-code/index.html', and '_site/posts/welcome/index.html'">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-changed-files-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="changed-files-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;9: List of changed files expalined in this blog post (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/changed-files-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="RStudio top right pane with the following tabs: Environment, History, Connection, Build, Git, and Tutorial. The Git pane is selected and therefore active. Under the tabs is another line of icons and text buttons representing Git actions: From left to right: 'Diff', 'Commit', 'Pull', 'Push', 'History', 'More' (drop-down menu), 'New Branch', 'master'). Underneath it shows changed files. From top to the bottom: '_quarto.yml', 'index.qmd', '_site/about.html' (with blue background = selected, '_site/index.html', '_site/search.json', '_site/posts/post-with-code/index.html', and '_site/posts/welcome/index.html'"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-changed-files-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;9: List of changed files expalined in this blog post (Screenshot)
</figcaption>
</figure>
</div>
<p>I haven’t even touched many of these files. But the title change propagates the new name into all blog post titles of articles already written and also in the corresponding navigation bars. This is shown with the example of the about page in the next screenshot (Figure&nbsp;10).</p>
<div id="fig-commit-about-changes" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="A pop-up window overlaying the RStudio window separated in two parts: The left part contains at the top small buttons. From left to the right: 'Changes', 'History', 'master', 'stage', 'revert', and 'ignore.' The right part contains the buttons 'Pull' and 'Push.' Underneath of the left side are changed files listed. From top to the bottom: '_quarto.yml', 'index.qmd', '_site/about.html' (with blue background = selected, '_site/index.html', '_site/search.json', '_site/posts/post-with-code/index.html', and '_site/posts/welcome/index.html'  On the right side there is an empty writing pane with the header 'Commit message'. Under the writing pane are two unchecked check boxes 'Amend previous commit' and 'Sign commit' with a 'Commit' button. Underneath those two window parts is another line of action buttons covering the whole length of the window: From left to the right: 'Show Staged' text followed by an empty radio button, 'Staged' text followed by an active radio button, 'Context' (text), 5 lines (drop-down menu), 'Ignore Whitespace' (active check box), 'Unstage All'. Underneath is the content of the HTML code of the 'About' file listed over the whole length of the window. Every line is numbered. Line 10 and 81 are duplicated. The first line 10 with a red background reads '<title>About - quarto-blog-title</title>'. The second line underneath is green and reads: '<title>About - Life Long Learning Lab</title>'. The first line 81 with a red background reads '<span class=navbar-title>quarto-pb-blog</span>'. The second line underneath is green and reads: '<span class=navbar-title>Life Long Learning</span>'.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-commit-about-changes-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="content-of-changes-in-about-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;10: Changes in the about.qmd file (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/content-of-changes-in-about-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="A pop-up window overlaying the RStudio window separated in two parts: The left part contains at the top small buttons. From left to the right: 'Changes', 'History', 'master', 'stage', 'revert', and 'ignore.' The right part contains the buttons 'Pull' and 'Push.' Underneath of the left side are changed files listed. From top to the bottom: '_quarto.yml', 'index.qmd', '_site/about.html' (with blue background = selected, '_site/index.html', '_site/search.json', '_site/posts/post-with-code/index.html', and '_site/posts/welcome/index.html'  On the right side there is an empty writing pane with the header 'Commit message'. Under the writing pane are two unchecked check boxes 'Amend previous commit' and 'Sign commit' with a 'Commit' button. Underneath those two window parts is another line of action buttons covering the whole length of the window: From left to the right: 'Show Staged' text followed by an empty radio button, 'Staged' text followed by an active radio button, 'Context' (text), 5 lines (drop-down menu), 'Ignore Whitespace' (active check box), 'Unstage All'. Underneath is the content of the HTML code of the 'About' file listed over the whole length of the window. Every line is numbered. Line 10 and 81 are duplicated. The first line 10 with a red background reads '<title>About - quarto-blog-title</title>'. The second line underneath is green and reads: '<title>About - Life Long Learning Lab</title>'. The first line 81 with a red background reads '<span class=navbar-title>quarto-pb-blog</span>'. The second line underneath is green and reads: '<span class=navbar-title>Life Long Learning</span>'."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-commit-about-changes-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;10: Changes in the about.qmd file (Screenshot)
</figcaption>
</figure>
</div>
<p>And I have committed all these changes I’ve got with this second commit a new status in my GitHub repo.</p>
<div id="fig-github-second-commit" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="blog-source" data-fig-align="center" alt="Listing the committed files on the GitHub repo web page in three columns. Name, commit message ('First commit' for all lines) and time ('19 minutes ago' for all lines). At the top left of this list there is a small profile picture of me, followed by the name of my GitHub account 'petzi53' and the text 'first commit'. On the top left of this list there is a small profile picture of me, followed by the name of my GitHub account 'petzi53' and the text 'title of homepage listing and website'. On the top side you can see the unique commit code '1e825ff' followed by the text '15 minutes ago' and in bold '2 Commits'">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-github-second-commit-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="github-second-commit-2-min.png" class="lightbox" data-gallery="blog-source" title="Figure&nbsp;11: Updated GitHub repo after second commit (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/github-second-commit-2-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Listing the committed files on the GitHub repo web page in three columns. Name, commit message ('First commit' for all lines) and time ('19 minutes ago' for all lines). At the top left of this list there is a small profile picture of me, followed by the name of my GitHub account 'petzi53' and the text 'first commit'. On the top left of this list there is a small profile picture of me, followed by the name of my GitHub account 'petzi53' and the text 'title of homepage listing and website'. On the top side you can see the unique commit code '1e825ff' followed by the text '15 minutes ago' and in bold '2 Commits'"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-github-second-commit-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;11: Updated GitHub repo after second commit (Screenshot)
</figcaption>
</figure>
</div>
</section>
<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<p>I have explained the different YAML directives for the blog’s homepage file <code>index.qmd</code>, which are generated automatically when the Quarto blog is initialized. During this tour I have changed two options:</p>
<ul>
<li>The title of the blog listing in <code>index.qmd</code> and of the website in <code>_quarto.yml</code>.</li>
<li>I got rid of the title block banner.</li>
</ul>
<p>To follow the next sequence of my blog tutorial, check if you have the same starting position.</p>
<p>The changes of the source code of the home page <code>index.qmd</code> result to:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>index.qmd</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" data-filename="index.qmd" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb3-1"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb3-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"L3Lab"</span></span>
<span id="cb3-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">listing</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb3-4"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">contents</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> posts</span></span>
<span id="cb3-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sort</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"date desc"</span></span>
<span id="cb3-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> default</span></span>
<span id="cb3-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">categories</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb3-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sort-ui</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb3-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter-ui</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb3-10"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">page-layout</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> full</span></span>
<span id="cb3-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title-block-banner</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb3-12"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">---</span></span></code></pre></div></div>
</div>
<p>There are also a change in the website title in the <code>_quatro.yml</code> file:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_qarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" data-filename="_qarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb4-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">project</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb4-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> website</span></span>
<span id="cb4-3"></span>
<span id="cb4-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">website</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb4-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Life Long Learning Lab"</span></span>
<span id="cb4-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">navbar</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb4-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb4-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> about.qmd</span></span>
<span id="cb4-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> github</span></span>
<span id="cb4-10"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://github.com/</span></span>
<span id="cb4-11"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> twitter</span></span>
<span id="cb4-12"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://twitter.com</span></span>
<span id="cb4-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">format</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb4-14"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">html</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb4-15"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> cosmo</span></span>
<span id="cb4-16"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">css</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> styles.css</span></span></code></pre></div></div>
</div>
<p>Then I have committed these changes to Git and my <a href="https://github.com/petzi53/quarto-pb-blog">dummy GitHub repo</a>.</p>


</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>how-to</category>
  <category>quarto</category>
  <category>tutorial</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/</guid>
  <pubDate>Tue, 23 Jul 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-24-default-blog-source-code/L3Lab-blog-2024-07-23-min.png" medium="image" type="image/png" height="68" width="144"/>
</item>
<item>
  <title>Quarto Blog Tutorial 2: From Git to GitHub using RStudio</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/</link>
  <description><![CDATA[ 





<section id="requirements-to-follow-this-post" class="level2">
<h2 class="anchored" data-anchor-id="requirements-to-follow-this-post">Requirements to follow this post</h2>
<p>The following procedure requires some <a href="https://happygitwithr.com/https-pat.html">credential setup for GitHub</a> on your end. There are several routes you can go:</p>
<ul>
<li><strong>Set up the GitHub repo first</strong>. It my sound counter-intuitive, but the easiest way to get your work onto GitHub is to initiate a GitHub repo first, then use RStudio to start working in a synced local copy. This approach is described in Happy Git’s workflows&nbsp;<a href="https://happygitwithr.com/new-github-first.html">New project, GitHub first</a>&nbsp;and&nbsp;<a href="https://happygitwithr.com/existing-github-first.html">Existing project, GitHub first</a>.</li>
<li><strong>Command line Git</strong>. I will use this approach to add a remote repository&nbsp;<em>post hoc</em>. This is described detailed in the Happy Git workflow&nbsp;<a href="https://happygitwithr.com/existing-github-last.html">Existing project, GitHub last</a>.</li>
</ul>
</section>
<section id="why-using-git-and-github" class="level2">
<h2 class="anchored" data-anchor-id="why-using-git-and-github">Why using Git and GitHub?</h2>
<p>After <a href="../2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio">initializing a new Quarto blog</a> I will create the initial (first) Git commit, initialize a GitHub repo, and push the content of the initial commit into the new repository.</p>
<p>There are several reasons to use Git:</p>
<ul>
<li>A <a href="https://git-scm.com/" title="Git is a free and open source distributed version control system designed to handle projects">Git</a> repository (or repo) holds all the project files and their entire revision history. It is therefore not only easier to track changes but also to restore a previous version if necessary. (See the nice introduction)</li>
<li><a href="https://github.com/" title="GitHub is a cloud-based platform where you can store, share, and work together with others to write code or other (markdown) content">GitHub</a> is an online platform to store and manage your content (code but also text and other resources), as well as track changes to it. It facilitates collaborations with your team but also with other (unknown) people.</li>
</ul>
</section>
<section id="procedure-for-using-git" class="level2">
<h2 class="anchored" data-anchor-id="procedure-for-using-git">Procedure for using Git</h2>
<p>In <a href="../2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/#fig-create-blog-window">the previous blog post</a>, we have already initialized the Quarto weblog, including Git support, by checking the appropriate check box.</p>
<ol type="1">
<li>To see all the changes you have made so far, click on the Git tab at the top right pane of RStudio. You should see a picture similar to the following one.</li>
</ol>
<div id="fig-git-files-unselected" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="git-github" alt="RStudio top right pane with the following tabs: Environment, History, Connection, Build, Git, and Tutorial. The Git pane is selected and therefore active. Under the tabs is another line of icons and text buttons representing Git actions: From left to right: Diff, Commit, Pull (greyed out), Push (greyed out), History, More (drop-down menu), New Branch, (no branch). Underneath it shows added or changed files or folders (ending with a slash) from the initialization process. From top to the bottom: .gitignote, _freeze/, _quarto.yml, _site/, about.qmd, index.qmd, posts/, profile.jpg, quarto-pb-blog.Rproj, style.css." data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-git-files-unselected-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="git-files-and-folders-unselected-min.png" class="lightbox" data-gallery="git-github" title="Figure&nbsp;1: Selected the Git tab of the RStudio right top pane (Screenshot):"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/git-files-and-folders-unselected-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="RStudio top right pane with the following tabs: Environment, History, Connection, Build, Git, and Tutorial. The Git pane is selected and therefore active. Under the tabs is another line of icons and text buttons representing Git actions: From left to right: Diff, Commit, Pull (greyed out), Push (greyed out), History, More (drop-down menu), New Branch, (no branch). Underneath it shows added or changed files or folders (ending with a slash) from the initialization process. From top to the bottom: .gitignote, _freeze/, _quarto.yml, _site/, about.qmd, index.qmd, posts/, profile.jpg, quarto-pb-blog.Rproj, style.css."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-git-files-unselected-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Selected the Git tab of the RStudio right top pane (Screenshot):
</figcaption>
</figure>
</div>
<ol start="2" type="1">
<li>After selecting all files and checking them (checking a single file of a group of selected files checks all selected files), the Git window shows all files seen above but also the files inside folders that are now prepared for the next Git commit.</li>
</ol>
<div id="fig-git-files-selected" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="git-github" alt="RStudio top right pane with the following tabs: Environment, History, Connection, Build, Git, and Tutorial. The Git pane is selected and therefore active. Under the tabs is another line of icons and text buttons representing Git actions: From left to right: Diff, Commit, Pull (greyed out), Push (greyed out), History, More (drop-down menu), New Branch, (no branch). There is a tool tip under the Commit button saying: 'Commit pending changes (CTRL-ALT-M)'. Underneath it shows added or changed files from the initialization process. From top to the bottom in a blue background: .gitignote, _freeze/, _quarto.yml, _site/, about.qmd, index.qmd, posts/, profile.jpg, quarto-pb-blog.Rproj, style.css. These files are followed by the files in the directories from top to left: _freeze/post/post-with-code/index/execute-results/html.json, _freeze/site_libs/clipboard/clipboard.min.js, _freeze/site_libs/quarto-listing/list.min.js,  _freeze/site_libs/quarto-listing/quarto-listing.js, _site/about.html, _site/index.html, _site/listing.json, _site/profile.jpg. There are more files not visible because the window ends here." data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-git-files-selected-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="git-files-and-folders-checked-2-min.png" class="lightbox" data-gallery="git-github" title="Figure&nbsp;2: Selecting all added or changed files in the RStudio Git pane (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/git-files-and-folders-checked-2-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="RStudio top right pane with the following tabs: Environment, History, Connection, Build, Git, and Tutorial. The Git pane is selected and therefore active. Under the tabs is another line of icons and text buttons representing Git actions: From left to right: Diff, Commit, Pull (greyed out), Push (greyed out), History, More (drop-down menu), New Branch, (no branch). There is a tool tip under the Commit button saying: 'Commit pending changes (CTRL-ALT-M)'. Underneath it shows added or changed files from the initialization process. From top to the bottom in a blue background: .gitignote, _freeze/, _quarto.yml, _site/, about.qmd, index.qmd, posts/, profile.jpg, quarto-pb-blog.Rproj, style.css. These files are followed by the files in the directories from top to left: _freeze/post/post-with-code/index/execute-results/html.json, _freeze/site_libs/clipboard/clipboard.min.js, _freeze/site_libs/quarto-listing/list.min.js,  _freeze/site_libs/quarto-listing/quarto-listing.js, _site/about.html, _site/index.html, _site/listing.json, _site/profile.jpg. There are more files not visible because the window ends here."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-git-files-selected-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Selecting all added or changed files in the RStudio Git pane (Screenshot)
</figcaption>
</figure>
</div>
<ol start="3" type="1">
<li>After clicking on the “Commit” tab (or using the shortcut <code>CTRL-ALT-M</code>) a window opens for writing the commit message. Write short notes using a commando language. For example a commit text for the main <code>index.qmd</code> file could be: “change title-block-banner to true”.<br>
<br>
It is usual to start the commit messages with “initial commit”. I had erroneously used “first commit” in the screenshot.</li>
</ol>
<div id="fig-preparing-initial-commit" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="git-github" alt="A pop-up window overlaying the RStudio window separated in two parts: The left part contains at the top small buttons. From left to the right: Changes, History, (no branch), icon for update display, stage, revert, and ignore. The right part contains the dysfunctional buttons (grayed out) 'Pull' and 'Push.' The left part shows underneath added or changed file from the initialization process. From top to the bottom in a blue background: .gitignote, _freeze/, _quarto.yml, _site/, about.qmd, index.qmd, posts/, profile.jpg, quarto-pb-blog.Rproj, style.css. These files are followed by the files in the directories from top to left: _freeze/post/post-with-code/index/execute-results/html.json, _freeze/site_libs/clipboard/clipboard.min.js, _freeze/site_libs/quarto-listing/list.min.js. There are more files not visible because the window ends here. On the right side there is a writing pane with the header 'Commit message' and '12 characters'. The text in the writing pane says 'First commit'. Under the writing pane are two unchecked check boxes 'Amend previous commit' and 'Sign commit' with a 'Commit' button. Underneath those two window parts is another line of action buttons covering the whole length of the window: From left to the right: 'Show Staged' text followed by an empty radio button, 'Staged' text followed by an active radio button, 'Context' (text), 5 lines (drop-down menu), 'Ignore Whitespace' (active check box). Underneath is an empty white field over the whole length of the window dedicated to show more detailed information inf only one file would have been selected." data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-preparing-initial-commit-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="preparing-first-commit-min.png" class="lightbox" data-gallery="git-github" title="Figure&nbsp;3: Writing a commit message (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/preparing-first-commit-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="A pop-up window overlaying the RStudio window separated in two parts: The left part contains at the top small buttons. From left to the right: Changes, History, (no branch), icon for update display, stage, revert, and ignore. The right part contains the dysfunctional buttons (grayed out) 'Pull' and 'Push.' The left part shows underneath added or changed file from the initialization process. From top to the bottom in a blue background: .gitignote, _freeze/, _quarto.yml, _site/, about.qmd, index.qmd, posts/, profile.jpg, quarto-pb-blog.Rproj, style.css. These files are followed by the files in the directories from top to left: _freeze/post/post-with-code/index/execute-results/html.json, _freeze/site_libs/clipboard/clipboard.min.js, _freeze/site_libs/quarto-listing/list.min.js. There are more files not visible because the window ends here. On the right side there is a writing pane with the header 'Commit message' and '12 characters'. The text in the writing pane says 'First commit'. Under the writing pane are two unchecked check boxes 'Amend previous commit' and 'Sign commit' with a 'Commit' button. Underneath those two window parts is another line of action buttons covering the whole length of the window: From left to the right: 'Show Staged' text followed by an empty radio button, 'Staged' text followed by an active radio button, 'Context' (text), 5 lines (drop-down menu), 'Ignore Whitespace' (active check box). Underneath is an empty white field over the whole length of the window dedicated to show more detailed information inf only one file would have been selected."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-preparing-initial-commit-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Writing a commit message (Screenshot)
</figcaption>
</figure>
</div>
<ol start="4" type="1">
<li>After clicking the <code>Commit</code> button, RStudio presents a window with the results of the action:</li>
</ol>
<div id="fig-review-changes-window" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="git-github" alt="RStudio review window listing the result of the last git commit action: From top to the bottom: 'create mode 100644 about.qmd', 'create mode 100644 index.qmd' 'create mode 100644 posts/metadata.yml', 'create mode 100644 posts/post-with-code/image.png', 'create mode 100644 posts/post-with-code/index.qmd', 'posts/post-with-code/posts/welcome/index.qmd', 'create mode 100644 posts/welcome/thumbnail.jpg', 'create mode 100644  profile.jpg', 'create mode 100644 quarto-pb-blog.Rproj', 'create mode 100644 style.css'. There other lines covered at the top covered as the window scroll button shows only the end of the list. On the top right is a 'Close' button." data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-review-changes-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="returned-commit-results-min.png" class="lightbox" data-gallery="git-github" title="Figure&nbsp;4: Resulted actions after the last commit (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/returned-commit-results-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="RStudio review window listing the result of the last git commit action: From top to the bottom: 'create mode 100644 about.qmd', 'create mode 100644 index.qmd' 'create mode 100644 posts/metadata.yml', 'create mode 100644 posts/post-with-code/image.png', 'create mode 100644 posts/post-with-code/index.qmd', 'posts/post-with-code/posts/welcome/index.qmd', 'create mode 100644 posts/welcome/thumbnail.jpg', 'create mode 100644  profile.jpg', 'create mode 100644 quarto-pb-blog.Rproj', 'create mode 100644 style.css'. There other lines covered at the top covered as the window scroll button shows only the end of the list. On the top right is a 'Close' button."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-review-changes-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Resulted actions after the last commit (Screenshot)
</figcaption>
</figure>
</div>
<p>Closing both windows will end the Git procedure to the local repository.</p>
</section>
<section id="procedure-for-initializing-a-github-repo" class="level2">
<h2 class="anchored" data-anchor-id="procedure-for-initializing-a-github-repo">Procedure for initializing a GitHub repo</h2>
<p>Next create a GitHub repo with all the locally committed content. I am using here the {<strong>usethis</strong>} package because it automates all the necessary steps. However, — as I mentioned above — there are several requirements before you can create and connect a GitHub repo. <a href="https://happygitwithr.com/">With Happy Git and GitHub for the useR</a> you should read and learn how to connect an RStudio project to GitHub under different conditions. In this case, I have applied <a href="https://happygitwithr.com/existing-github-last">Chapter 17, “Existing project, GitHub last”</a>.</p>
<ol type="1">
<li>Write <code>usethis::use_github()</code> into the console window of the RStudio window (lower left pane). After return your console will display the following lines:</li>
</ol>
<div id="fig-initialize-github-console-text" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="git-github" alt="The screenshot shows the following lines, from top to the bottom: 'R version 4.4.1 (2024-04-14)' written in red, '> usethis::use_github()' written in red. From here the next lines start with a green ok check mark icon,  'Setting active project to' followed by the path, 'Creating GitHub repository' followed by the Github.com path of my repo., 'Setting remote `origin` to' followed by the appropriate path, 'Pushing `master` branch to gitHub and setting `origin/master` as upstream branch.', 'Opening URL' followed by the URL to my Github repo." data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-initialize-github-console-text-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="console-using-github-repo-with-usethis-min.png" class="lightbox" data-gallery="git-github" title="Figure&nbsp;5: Text of the RStudio window console window (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/console-using-github-repo-with-usethis-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The screenshot shows the following lines, from top to the bottom: 'R version 4.4.1 (2024-04-14)' written in red, '> usethis::use_github()' written in red. From here the next lines start with a green ok check mark icon,  'Setting active project to' followed by the path, 'Creating GitHub repository' followed by the Github.com path of my repo., 'Setting remote `origin` to' followed by the appropriate path, 'Pushing `master` branch to gitHub and setting `origin/master` as upstream branch.', 'Opening URL' followed by the URL to my Github repo."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-initialize-github-console-text-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: Text of the RStudio window console window (Screenshot)
</figcaption>
</figure>
</div>
<p>The screenshot above shows the different actions for the <code>usethis::use_github()</code> command. In the last step, the newly generated and updated repository on GitHub was opened.</p>
<div id="fig-github-quarto-blog-repo" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="git-github" alt="Listing the committed files on the GitHub repo web page in three columns. Name, different commit messages and time ('15 minutes ago' and '10 hours ago' accordingly). At the top left of this list there is a small profile picture of me, followed by the name of my GitHub account 'petzi53' and the text 'first commit'. On the top side you can see the unique commit code '0ced0df' followed by the text '19 minutes ago' and in bold '1 Commit'" data-fig-align="center">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-github-quarto-blog-repo-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="new-repo-page-opened-automatically-min.png" class="lightbox" data-gallery="git-github" title="Figure&nbsp;6: Web page of the GitHub repository of the Quarto blog after the initial commit"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/new-repo-page-opened-automatically-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Listing the committed files on the GitHub repo web page in three columns. Name, different commit messages and time ('15 minutes ago' and '10 hours ago' accordingly). At the top left of this list there is a small profile picture of me, followed by the name of my GitHub account 'petzi53' and the text 'first commit'. On the top side you can see the unique commit code '0ced0df' followed by the text '19 minutes ago' and in bold '1 Commit'"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-github-quarto-blog-repo-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;6: Web page of the GitHub repository of the Quarto blog after the initial commit
</figcaption>
</figure>
</div>
</section>
<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<p>This post shows how to initialize Git and GitHub using RStudio after crating of the brand-new Quarto blog:</p>
<ol type="1">
<li>Commit all the files generated automatically after launching the Quarto blog (as described in <a href="../2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio">Initializing a Quarto Blog with RStudio</a>) to the local Git repository.</li>
<li>Initializing a remote GitHub repository, connecting the local repo with it, and connecting it with the local repo.</li>
</ol>


</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>git</category>
  <category>github</category>
  <category>rstudio</category>
  <category>tutorial</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/</guid>
  <pubDate>Mon, 22 Jul 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-23-from-git-to-github-using-rstudio/github-octocat.png" medium="image" type="image/png" height="96" width="144"/>
</item>
<item>
  <title>Quarto Blog Tutorial 1: Initializing using RStudio</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="quarto-get-started-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="Image by Mine Çetinkaya-Rundel from Get Started with Quarto - A video to jumpstart your Quarto journey. Featuring a new video for getting started with Quarto using R and RStudio."><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/quarto-get-started-min.png" class="img-fluid figure-img" alt="Image by Mine Çetinkaya-Rundel from Get Started with Quarto - A video to jumpstart your Quarto journey. Featuring a new video for getting started with Quarto using R and RStudio."></a></p>
<figcaption>Image by Mine Çetinkaya-Rundel from <a href="https://quarto.org/docs/blog/posts/2023-05-15-get-started">Get Started with Quarto</a> - A video to jumpstart your Quarto journey. Featuring a new video for getting started with Quarto using R and RStudio.</figcaption>
</figure>
</div>
<section id="initializing-a-quarto-blog" class="level2">
<h2 class="anchored" data-anchor-id="initializing-a-quarto-blog">Initializing a Quarto Blog</h2>
<p>There are several ways to start a new Quarto blog. I will use a menu driven approach using <a href="https://posit.co/products/open-source/rstudio/" title="RStudio is an integrated development environment (IDE) for R and Python">RStudio</a>. For the following workflow you should have installed RStudio and have some knowledge how to use it.</p>
<p>I will not explain everything related to creating a new Quarto blog; instead, I will focus on my choices to initialize the blog.</p>
<p>I am using</p>
<ul>
<li>R version 4.4.1 (2024-06-14)</li>
<li>Quarto version 1.5.54</li>
</ul>
<section id="new-project" class="level3">
<h3 class="anchored" data-anchor-id="new-project">New Project…</h3>
<p>Inside RStudio, use the <code>New Project…</code> command and select <code>New Directory</code> and then <code>Quarto Blog</code>.</p>
<div id="fig-new-project-wizard" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="initialize-blog" data-fig-align="center" alt="RStudio new project wizard window with three options reading from the top: New Directory - Start a project in a brand new working directory; Existing Directory - Associate a project with an existing working directory; Version Control - Checkout a project from a version control repository.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-new-project-wizard-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="creating-quarto-blog-1-min.png" class="lightbox" data-gallery="initialize-blog" title="Figure&nbsp;1: RStudio new project wizard window (Screenshot): Choose ‘New Directory’ to start an new project from scratch."><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/creating-quarto-blog-1-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="RStudio new project wizard window with three options reading from the top: New Directory - Start a project in a brand new working directory; Existing Directory - Associate a project with an existing working directory; Version Control - Checkout a project from a version control repository."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-new-project-wizard-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: RStudio new project wizard window (Screenshot): Choose ‘New Directory’ to start an new project from scratch.
</figcaption>
</figure>
</div>
<div id="fig-new-blog-project-window" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="initialize-blog" data-fig-align="center" alt="The Project Type dialog window lists the choices for new project. The first seven options are visible: New Project, R Package, Shiny Application, Quarto Project, Quarto Website, Quarto Blog, Quarto Book. (From top to the bottom. Top left is a button 'Back' for returning to the previous dialog window. Bottom right is a 'Cancel' button to stop the initialization process.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-new-blog-project-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="creating-quarto-blog-2-min.png" class="lightbox" data-gallery="initialize-blog" title="Figure&nbsp;2: RStudio project type window (Screenshot): Choose ‘Quarto Blog’ to initialize a blog project"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/creating-quarto-blog-2-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The Project Type dialog window lists the choices for new project. The first seven options are visible: New Project, R Package, Shiny Application, Quarto Project, Quarto Website, Quarto Blog, Quarto Book. (From top to the bottom. Top left is a button 'Back' for returning to the previous dialog window. Bottom right is a 'Cancel' button to stop the initialization process."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-new-blog-project-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: RStudio project type window (Screenshot): Choose ‘Quarto Blog’ to initialize a blog project
</figcaption>
</figure>
</div>
<div id="fig-create-blog-window" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="initialize-blog" data-fig-align="center" alt="The 'Create quarto Blog' dialog window requires a file name for the directory of the repository, titled 'Directory name', a directory where the project will be created, titled 'create project as subdirectory of:' with a 'Browse' button to the right, a drop down menu selecting 'Knitr' as the current option, titled 'Engine', three lines of check boxes, titled 'Create a git repository' (checked), 'Use renv with this project' and 'Use visual markdown editor'. The last option is followed by a question sign to get more information about the choice of a visual markdown editor. Top left in the dialog window is a button 'Back' for returning to the previous dialog window. Bottom left is a check box 'Open in a new session', Bottom right are a 'Create Project' button followed by a 'Cancel' button for stopping the initialization process.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-create-blog-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="creating-quarto-blog-3-min.png" class="lightbox" data-gallery="initialize-blog" title="Figure&nbsp;3: RStudio Create Quarto Blog window (Screenshot): Fill the input fields with the appropriate data"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/creating-quarto-blog-3-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The 'Create quarto Blog' dialog window requires a file name for the directory of the repository, titled 'Directory name', a directory where the project will be created, titled 'create project as subdirectory of:' with a 'Browse' button to the right, a drop down menu selecting 'Knitr' as the current option, titled 'Engine', three lines of check boxes, titled 'Create a git repository' (checked), 'Use renv with this project' and 'Use visual markdown editor'. The last option is followed by a question sign to get more information about the choice of a visual markdown editor. Top left in the dialog window is a button 'Back' for returning to the previous dialog window. Bottom left is a check box 'Open in a new session', Bottom right are a 'Create Project' button followed by a 'Cancel' button for stopping the initialization process."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-create-blog-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: RStudio Create Quarto Blog window (Screenshot): Fill the input fields with the appropriate data
</figcaption>
</figure>
</div>
<ul>
<li>I am using {<strong>knitr</strong>} as the engine.</li>
<li>The {<strong>renv</strong>} package is for creating&nbsp;<em>r</em>eproducible&nbsp;<em>env</em>ironments for R projects. I will not use it as I have no experience with this <a href="https://rstudio.github.io/renv/">complex package</a>, and reproducibility is not an issue for my private blog (at least, I think so at the moment).</li>
<li>Selecting “Use visual markdown editor” is not important, as this option is for all <code>.qmd</code> files in RStudio always available. I think that this option only controls the default behavior whenever a new file for a post is created.</li>
</ul>
</section>
<section id="key-files" class="level3">
<h3 class="anchored" data-anchor-id="key-files">Key Files</h3>
<p>Clicking the “Create Project” button generates different key files and opens the <code>_quarto.yml</code> file in the RStudio editor window.</p>
<div id="fig-rstudio-file-listing-window" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="initialize-blog" data-fig-align="center" alt="At the top of the screenshot there are six tabs. From left to the right: 'Files', 'Plots', 'Packages', 'Help', 'Viewer', 'Presentation' with the 'Files' tab active. Under the tabs are several buttons. From left to the right: 'New Folder', 'New Blank File', 'Delete', 'Rename' and a drop down menu 'More'. Under these buttons is the full path to the active directory 'Home>Documents>Meine-Repos>quarto-pb-blog' where each subdirectory is an active link. Under this line starts the file listing with 'Name', 'Size' and 'Modified' columns. Each line of file names starts with an (unchecked) check box, and an appropriate icon. From top to bottom: _freeze, _quarto.yml, _site, .git, .gitignore, .quarto, .Rhistory, .Rproj.use, about.qmd, index.qmd, posts, profile.jpg, quarto-pb-blog.Rproj, style.css.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-rstudio-file-listing-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="generated-files-at-start-min.png" class="lightbox" data-gallery="initialize-blog" title="Figure&nbsp;4: RStudio file listing window (Screenshot): Choose ‘New Directory’ to start an new project from scratch."><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/generated-files-at-start-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="At the top of the screenshot there are six tabs. From left to the right: 'Files', 'Plots', 'Packages', 'Help', 'Viewer', 'Presentation' with the 'Files' tab active. Under the tabs are several buttons. From left to the right: 'New Folder', 'New Blank File', 'Delete', 'Rename' and a drop down menu 'More'. Under these buttons is the full path to the active directory 'Home>Documents>Meine-Repos>quarto-pb-blog' where each subdirectory is an active link. Under this line starts the file listing with 'Name', 'Size' and 'Modified' columns. Each line of file names starts with an (unchecked) check box, and an appropriate icon. From top to bottom: _freeze, _quarto.yml, _site, .git, .gitignore, .quarto, .Rhistory, .Rproj.use, about.qmd, index.qmd, posts, profile.jpg, quarto-pb-blog.Rproj, style.css."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-rstudio-file-listing-window-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: RStudio file listing window (Screenshot): Choose ‘New Directory’ to start an new project from scratch.
</figcaption>
</figure>
</div>
<p>If you can’t see all five files starting with a dot (so-called <a href="https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments" title="Hidden folders an files in UNIX-Like systems start with a dot in their file names">dotfiles</a>) in your installation, go to the drop-down menu ‘More’ and check the last option ‘Show Hidden Files’.</p>
<p>Here’s a summary of the key files created within the starter blog project:</p>
<div id="tbl-quarto-blog-key-files" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-quarto-blog-key-files-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Key files after initializing a Quarto blog
</figcaption>
<div aria-describedby="tbl-quarto-blog-key-files-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<thead>
<tr class="header">
<th>File</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><code>_quarto.yml</code></td>
<td>Quarto project file.</td>
</tr>
<tr class="even">
<td><code>index.qmd</code></td>
<td>Blog home page.</td>
</tr>
<tr class="odd">
<td><code>about.qmd</code></td>
<td>Blog about page.</td>
</tr>
<tr class="even">
<td><code>posts/</code></td>
<td>Directory containing posts</td>
</tr>
<tr class="odd">
<td><code>posts/_metadata.yml</code></td>
<td>Shared options for&nbsp;<code>posts</code></td>
</tr>
<tr class="even">
<td><code>styles.css</code></td>
<td>Custom CSS for website</td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
</section>
<section id="content-of-the-quarto-project-file" class="level3">
<h3 class="anchored" data-anchor-id="content-of-the-quarto-project-file">Content of the Quarto Project File</h3>
<p>Here is the content of <code>_quarto.yml</code>:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" data-filename="_quarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">project</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> website</span></span>
<span id="cb1-3"></span>
<span id="cb1-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">website</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"quarto-pb-blog"</span></span>
<span id="cb1-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">navbar</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> about.qmd</span></span>
<span id="cb1-9"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> github</span></span>
<span id="cb1-10"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://github.com/</span></span>
<span id="cb1-11"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">icon</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> twitter</span></span>
<span id="cb1-12"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">        </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">href</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> https://twitter.com</span></span>
<span id="cb1-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">format</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-14"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">html</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-15"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">theme</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> cosmo</span></span>
<span id="cb1-16"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">css</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> styles.css</span></span></code></pre></div></div>
</div>
</section>
<section id="content-of-the-blog-home-page" class="level3">
<h3 class="anchored" data-anchor-id="content-of-the-blog-home-page">Content of the Blog Home Page</h3>
<p>Here is the content of <code>index.qmd</code>:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>index.qmd</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" data-filename="index.qmd" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"quarto-pb-blog"</span></span>
<span id="cb2-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">listing</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-3"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">contents</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> posts</span></span>
<span id="cb2-4"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sort</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"date desc"</span></span>
<span id="cb2-5"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">type</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> default</span></span>
<span id="cb2-6"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">categories</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb2-7"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sort-ui</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb2-8"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">  </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">filter-ui</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">false</span></span>
<span id="cb2-9"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">page-layout</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> full</span></span>
<span id="cb2-10"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">title-block-banner</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">true</span></span>
<span id="cb2-11"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">---</span></span></code></pre></div></div>
</div>
</section>
</section>
<section id="render-blog" class="level2">
<h2 class="anchored" data-anchor-id="render-blog">Render Blog</h2>
<div id="fig-source-code-blog-home-page" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="initialize-blog" data-fig-align="center" alt="The screenshot shows a part of the RStudio source code window with two file tabs 'index.qmd' (active) and '_quarto.yml'. Below is a line of partly disabled buttons where the focus is on the 'Render' button that has below a tip tool saying 'Render the current document (SHIFT-CMD-K)'">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-source-code-blog-home-page-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="click-render-button-first-time-min.png" class="lightbox" data-gallery="initialize-blog" title="Figure&nbsp;5: Source code of the blog home page ‘index.qmd’-file within RStudio window (Screenshot)"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/click-render-button-first-time-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The screenshot shows a part of the RStudio source code window with two file tabs 'index.qmd' (active) and '_quarto.yml'. Below is a line of partly disabled buttons where the focus is on the 'Render' button that has below a tip tool saying 'Render the current document (SHIFT-CMD-K)'"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-source-code-blog-home-page-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: Source code of the blog home page ‘index.qmd’-file within RStudio window (Screenshot)
</figcaption>
</figure>
</div>
<p>You can control via <code>Tools-&gt;Global Options…-&gt;R Markdown-&gt;Show output preview in…</code> whether the rendered result appears in the browser window or in the viewer pane. Generally, I use the “Window” option because it gives me a better view of the real setting.</p>
<div id="fig-blog-listing-start-page" class="quarto-float quarto-figure quarto-figure-center anchored" data-group="initialize-blog" data-fig-align="center" alt="The webpage lists two dummy blog post with three columns: From left to the right: Date and author; blog post title, category buttons and a short description; a small image. On the right margin is a list of categories displayed with their frequency in parenthesis. The title header of the website consists of two lines: Left top: Name of the Quarto blog so far 'quarto-pb-blog', Right top: 'About' followed by icons for GitHub, Twitter and search engine.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-blog-listing-start-page-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="rendered-blog-first-time-min.png" class="lightbox" data-gallery="initialize-blog" title="Figure&nbsp;6: Website of the newly created Quarto blog (Screenshot):"><img src="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/rendered-blog-first-time-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The webpage lists two dummy blog post with three columns: From left to the right: Date and author; blog post title, category buttons and a short description; a small image. On the right margin is a list of categories displayed with their frequency in parenthesis. The title header of the website consists of two lines: Left top: Name of the Quarto blog so far 'quarto-pb-blog', Right top: 'About' followed by icons for GitHub, Twitter and search engine."></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-blog-listing-start-page-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;6: Website of the newly created Quarto blog (Screenshot):
</figcaption>
</figure>
</div>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>RStudio console output</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" data-filename="RStudio console output" style="background: #f1f3f5;"><pre class="sourceCode zsh code-with-copy"><code class="sourceCode zsh"><span id="cb3-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">==</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> quarto preview index.qmd <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--to</span> html <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--no-watch-inputs</span> <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--no-browse</span></span>
<span id="cb3-2"></span>
<span id="cb3-3"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">pandoc</span> to: html</span>
<span id="cb3-4">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">output-file:</span> index.html</span>
<span id="cb3-5">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">standalone:</span> true</span>
<span id="cb3-6">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">title-prefix:</span> quarto-pb-blog</span>
<span id="cb3-7">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">section-divs:</span> true</span>
<span id="cb3-8">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">html-math-method:</span> mathjax</span>
<span id="cb3-9">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">wrap:</span> none</span>
<span id="cb3-10">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">default-image-extension:</span> png</span>
<span id="cb3-11">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">css:</span></span>
<span id="cb3-12">    <span class="bu" style="color: null;
background-color: null;
font-style: inherit;">-</span> styles.css</span>
<span id="cb3-13">  </span>
<span id="cb3-14"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">metadata</span></span>
<span id="cb3-15">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document-css:</span> false</span>
<span id="cb3-16">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">link-citations:</span> true</span>
<span id="cb3-17">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">date-format:</span> long</span>
<span id="cb3-18">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">lang:</span> en</span>
<span id="cb3-19">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">theme:</span> cosmo</span>
<span id="cb3-20">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">title:</span> quarto-pb-blog</span>
<span id="cb3-21">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">listing:</span></span>
<span id="cb3-22">    <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">contents:</span> posts</span>
<span id="cb3-23">    <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">sort:</span> date desc</span>
<span id="cb3-24">    <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">type:</span> default</span>
<span id="cb3-25">    <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">categories:</span> true</span>
<span id="cb3-26">    <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">sort-ui:</span> false</span>
<span id="cb3-27">    <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">filter-ui:</span> false</span>
<span id="cb3-28">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">page-layout:</span> full</span>
<span id="cb3-29">  <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">title-block-banner:</span> true</span>
<span id="cb3-30">  </span>
<span id="cb3-31"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">WARN:</span> Unable to read listing item description from posts/post-with-code/index.html</span>
<span id="cb3-32"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">WARN:</span> Unable to read listing item description from posts/welcome/index.html</span>
<span id="cb3-33"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">WARN:</span> Unable to read listing preview image from posts/welcome/index.html</span>
<span id="cb3-34"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Output</span> created: _site/index.html</span>
<span id="cb3-35"></span>
<span id="cb3-36"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Preparing</span> to preview</span>
<span id="cb3-37"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">[1/4]</span> posts/post-with-code/index.qmd</span>
<span id="cb3-38"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">R</span> version 4.4.1 <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">(2024-06-14)</span></span>
<span id="cb3-39"></span>
<span id="cb3-40"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">processing</span> file: index.qmd</span>
<span id="cb3-41">                                                                                                            </span>
<span id="cb3-42"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">output</span> file: index.knit.md</span>
<span id="cb3-43"></span>
<span id="cb3-44"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">[2/4]</span> posts/welcome/index.qmd</span>
<span id="cb3-45"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">[3/4]</span> about.qmd</span>
<span id="cb3-46"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">[4/4]</span> index.qmd</span>
<span id="cb3-47"></span>
<span id="cb3-48"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Watching</span> files for changes</span>
<span id="cb3-49"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Browse</span> at http://localhost:5146/</span>
<span id="cb3-50"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">GET:</span> /</span></code></pre></div></div>
</div>
<div class="callout callout-style-default callout-warning callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-1-contents" aria-controls="callout-1" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Warning</span>During the rendering process, I got three warnings
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-1" class="callout-1-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<p>As you can see in the above console output I got three warnings:</p>
<ul>
<li>Unable to read listing item description from posts/post-with-code/index.html</li>
<li>Unable to read listing item description from posts/welcome/index.html</li>
<li>Unable to read listing preview image from posts/welcome/index.html</li>
</ul>
</div>
</div>
</div>
<p>These warnings are prompted by the fact that we need to render the complete blog with SHIFT-CMD-B or by clicking “Render Website” after choosing the “Build” button on the upper right RStudio pane. I will explain render strategies in a later post.</p>
</section>
<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<p>This is the end of the initialization process. In later blog posts I will add more functionality and style the web page it to get a more attractive appearance of the Quarto blog.</p>


</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>blog</category>
  <category>quarto</category>
  <category>rstudio</category>
  <category>tutorial</category>
  <guid>https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/</guid>
  <pubDate>Sun, 21 Jul 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/tutorial-quarto-blog/2024-07-22-creating-a-quarto-blog-from-scratch-using-rstudio/quarto-get-started-min.png" medium="image" type="image/png" height="81" width="144"/>
</item>
<item>
  <title>Writing Blog Posts: New Attempt</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/2024-07-21-writing-blog-posts--new-attempt/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="perfectionism-min.jpg" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="Photo from The XY Code. CC BY-NC-ND 4.0"><img src="https://petzi53.github.io/blog/posts/2024-07-21-writing-blog-posts--new-attempt/perfectionism-min.jpg" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Scrabble pieces constructing the text: 'Done is better than perfect'"></a></p>
</figure>
</div>
<figcaption>Photo from <a href="https://thexycode.com/">The XY Code</a>. <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0</a></figcaption>
</figure>
</div>
<section id="motivations-for-writing-blog-posts" class="level2">
<h2 class="anchored" data-anchor-id="motivations-for-writing-blog-posts">Motivations for writing blog posts</h2>
<p>My conception, written in my first blog entry, needed to be revised. The problem was a certain kind of perfectionism: I thought that my knowledge about R issues was not deep enough to be interesting to other people. After visiting the <a href="https://userconf2024.sched.com/">useR!2024 conference</a>, I changed my view in four aspects:</p>
<ul>
<li>R has a dynamic community where new people are constantly attracted. My meager knowledge could be helpful, especially for beginners, as I was struggling with the same starter issues not long ago. Sometimes, a person with intermediate knowledge can be more beneficial than an expert.</li>
<li>The R project is a very complex field. Nobody has the same level of expert knowledge in every area. Therefore, it is possible that some parts of my knowledge could be useful for other people, even if they are (in other areas or generally) much more advanced.</li>
<li>Putting my understanding into words so that other people can use this information for their project is an important exercise: It ensures that I have grasped the essentials and fosters my learning by writing down all the necessary details.</li>
<li>The most important reason to write blog posts about issues I have learned is the “Future me.” After several months of working on other topics, I often notice that I have forgotten some details of procedures I have already learned.</li>
</ul>
<p>To elaborate on the last point: In one case, I was looking for a solution to a problem I experienced. After several web searches, I found the solution on <a href="https://stackoverflow.com/">StackOverflow</a>. I was shocked when I noticed that it was me who wrote the correct answer several years ago!</p>
</section>
<section id="a-new-start" class="level2">
<h2 class="anchored" data-anchor-id="a-new-start">A new start</h2>
<p>After the useR!2024, I was very motivated to resume the Quarto blog I started in April 2023. I noticed that there are two versions: One published via <a href="https://www.netlify.com/">Netlify</a> and another one – already pretty elaborated – locally.</p>
<section id="looking-for-a-glitch" class="level3">
<h3 class="anchored" data-anchor-id="looking-for-a-glitch">Looking for a glitch</h3>
<p>The local version had a small but annoying flaw. It displayed three colons <code>:::</code> at the beginning of the listing on the homepage and at the end of every post. I knew that <code>:::</code> represents special <a href="https://pandoc.org/chunkedhtml-demo/8.18-divs-and-spans.html">fenced syntax</a> for native&nbsp;<code>Div</code>&nbsp;blocks in <a href="https://pandoc.org/#">pandoc</a>.</p>
<p>Whatever I tried, I could not find the problem and solve it.</p>
<ul>
<li>I looked into all articles to see if there was a redundant fenced syntax symbol.</li>
<li>I set for all posts <code>draft: true</code>.</li>
<li>I even cloned the remote repo only to get the same behavior.</li>
</ul>
</section>
<section id="starting-from-scratch" class="level3">
<h3 class="anchored" data-anchor-id="starting-from-scratch">Starting from scratch</h3>
<p>Another drawback was that I did not understand many code lines, especially in <code>_quarto.yml</code> but also in <code>posts/_metadata.yml</code> and in the main <code>index.qmd</code>.</p>
<p>Finally, I decided to start with a new blog. I created a new repo with a different name, initiated a new RStudio project, and so on. As a surplus, I documented every single step. I wrote extensive notes and shot screenshots of every necessary action. After each tiny change, I checked the results by rendering the blog.</p>
</section>
<section id="lesson-learned" class="level3">
<h3 class="anchored" data-anchor-id="lesson-learned">Lesson learned</h3>
<p>As a result, I have extensive material to explain how to initialize a Quarto blog, which I will publish in several posts in the next few days. And I finally found the reason for the surplus fenced div!</p>
<div id="tip-footer-text-quotation-marks" class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-1-contents" aria-controls="callout-1" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Tip&nbsp;1: href-URLs without quotation marks in YAML file
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-1" class="callout-1-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<p>The URLs of the right part of the footer text were incorrectly in quotation marks. This would be a perfect passage in HTML, but it was inappropriate as a Quarto directive.</p>
<p>I wrote:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" data-filename="_quarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb1-1"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb1-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">text</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> Proudly powered by &lt;a href="https://quarto.org/"&gt;Quarto&lt;/a&gt;</span></span></code></pre></div></div>
</div>
<p>Instead of:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" data-filename="_quarto.yml" style="background: #f1f3f5;"><pre class="sourceCode yml code-with-copy"><code class="sourceCode yaml"><span id="cb2-1"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">    </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">right</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span></span>
<span id="cb2-2"><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">      </span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">-</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> </span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">text</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">:</span><span class="at" style="color: #657422;
background-color: null;
font-style: inherit;"> Proudly powered by &lt;a href=https://quarto.org/&gt;Quarto&lt;/a&gt;</span></span></code></pre></div></div>
</div>
</div>
</div>
</div>


</section>
</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>blog</category>
  <category>quarto</category>
  <guid>https://petzi53.github.io/blog/posts/2024-07-21-writing-blog-posts--new-attempt/</guid>
  <pubDate>Sat, 20 Jul 2024 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/2024-07-21-writing-blog-posts--new-attempt/perfectionism-min.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>Creating a column-based layout</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/2023-05-07-creating-a-column-based-layout/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="three-columns-min.jpg" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="From PxHere (CC0, Public Domain)"><img src="https://petzi53.github.io/blog/posts/2023-05-07-creating-a-column-based-layout/three-columns-min.jpg" class="img-fluid quarto-figure quarto-figure-center figure-img" style="text-align: center;" alt="Four ionic column with scroll-shaped ornaments on the capital, which sits at the top of the column shaft against the blue sky"></a></p>
</figure>
</div>
<figcaption>From <a href="https://pxhere.com/en/photo/649542">PxHere</a> (CC0, Public Domain)</figcaption>
</figure>
</div>
<p>In my first two articles, I encountered the problem of changing the page layout several times: So I wanted – for instance – in my article <a href="https://l3lab.net/posts/2023-05-05-how-to-delete-git-branches/">How to delete Git branches</a> two small screenshots to appear side by side.</p>
<section id="help-page-about-article-layout" class="level2">
<h2 class="anchored" data-anchor-id="help-page-about-article-layout">Help page about article layout</h2>
<p>When I looked at the Quarto help pages, I found a <a href="https://quarto.org/docs/authoring/article-layout.html">chapter about article layouts</a>. But it treated the layout of pages in a more general way by answering the following questions:</p>
<ul>
<li>How to use the whole main content region?</li>
<li>How can content overflow this standard content region?</li>
<li>How can one span the width of the entire page?</li>
<li>How can authors place content on the document margin?</li>
</ul>
<p>I think that these questions address pretty special requirements. I just wanted a solution for content items side by side. This support page about the article layout was not helpful to me.</p>
</section>
<section id="using-a-table-failed" class="level2">
<h2 class="anchored" data-anchor-id="using-a-table-failed">Using a table failed</h2>
<p>My first approach was to use a table to position images side by side. I created a one-row / two-column table with the visual editor of RStudio and uploaded in each column a picture. But the screenshots didn’t appear. Whenever I rendered the page, Quarto told me, “404: Not Found”.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/error-message-image-not-found-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-3" title="Looking after rendering into the tab “Background Jobs” revealed these error messages"><img src="https://petzi53.github.io/blog/posts/2023-05-07-creating-a-column-based-layout/images/error-message-image-not-found-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Two red error messages"></a></p>
</figure>
</div>
<figcaption>Looking after rendering into the tab “Background Jobs” revealed these error messages</figcaption>
</figure>
</div>
<p>As I inspected the source code, I saw the reason: The long image URLs didn’t fit in the table column, and therefore forced line breaks that destroyed the URLs.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/wrong-forced-line-breaks-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-4" title="Screenshot 1: Source code generated by RStudio after loading two images into a one-row / two-columns desing"><img src="https://petzi53.github.io/blog/posts/2023-05-07-creating-a-column-based-layout/images/wrong-forced-line-breaks-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The source code shows that the URLs are wrapped in wrong places and therefore broken"></a></p>
</figure>
</div>
<figcaption>Screenshot 1: Source code generated by RStudio after loading two images into a one-row / two-columns desing</figcaption>
</figure>
</div>
</section>
<section id="using-pandoc-extensions" class="level2">
<h2 class="anchored" data-anchor-id="using-pandoc-extensions">Using pandoc extensions</h2>
<p>After long research, I found three answers to my question via StackOverflow. They all used the <a href="https://pandoc.org/MANUAL.html#extension-fenced_divs">fenced_divs extension of pandoc</a>.</p>
<p>It is easier to explain the method after I have presented these three examples. I will use the same toy text sample for the following illustration.</p>
<p><strong>Text in the left column:</strong></p>
<blockquote class="blockquote">
<p>I would like to have text here</p>
</blockquote>
<blockquote class="blockquote">
<p>Sentence becomes longer, it should automatically stay in their column</p>
</blockquote>
<p><strong>Text in the right column:</strong></p>
<blockquote class="blockquote">
<p>and here</p>
</blockquote>
<blockquote class="blockquote">
<p>More text</p>
</blockquote>
<section id="example-1-two-columns-separated-by-a-small-third-column" class="level3">
<h3 class="anchored" data-anchor-id="example-1-two-columns-separated-by-a-small-third-column">Example 1: Two columns separated by a small third column</h3>
<p>The example is — slightly redacted — taken <a href="https://stackoverflow.com/a/74162353/7322615">from shafee via StackOverflow</a></p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-1-contents" aria-controls="callout-1" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Show the markdown code
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-1" class="callout-1-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb1-2">title<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Two columns separated by a small third column"</span></span>
<span id="cb1-3">format<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> html</span>
<span id="cb1-4">engine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> knitr</span>
<span id="cb1-5"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb1-6"></span>
<span id="cb1-7"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">::::</span> {.columns}</span>
<span id="cb1-8"></span>
<span id="cb1-9"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span> {.column width<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"30%"</span>}</span>
<span id="cb1-10">I would like to have text here</span>
<span id="cb1-11"></span>
<span id="cb1-12">Sentence becomes longer, it should automatically stay <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> their column</span>
<span id="cb1-13"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb1-14"></span>
<span id="cb1-15"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {.column width<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"10%"</span>}</span>
<span id="cb1-16"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;!--</span> empty column to create gap <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">-&gt;</span></span>
<span id="cb1-17"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb1-18"></span>
<span id="cb1-19"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {.column width<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"20%"</span>}</span>
<span id="cb1-20">and here</span>
<span id="cb1-21"></span>
<span id="cb1-22">More text</span>
<span id="cb1-23"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb1-24"></span>
<span id="cb1-25"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">::::</span></span></code></pre></div></div>
</div>
</div>
</div>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-2-contents" aria-controls="callout-2" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Show the result
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-2" class="callout-2-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<div class="columns">
<div class="column" style="width:30%;">
<section id="first-column" class="level5">
<h5 class="anchored" data-anchor-id="first-column">First column</h5>
<p>I would like to have text here</p>
<p>Sentence becomes longer, it should automatically stay in their column</p>
</section>
</div><div class="column" style="width:10%;">
<!-- empty column to create gap -->
</div><div class="column" style="width:20%;">
<section id="second-column" class="level5">
<h5 class="anchored" data-anchor-id="second-column">Second column</h5>
<p>and here</p>
<p>More text</p>
</section>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="example-2-two-columns-using-the-bootstrap-css-grid-system" class="level3">
<h3 class="anchored" data-anchor-id="example-2-two-columns-using-the-bootstrap-css-grid-system">Example 2: Two columns using the bootstrap CSS grid system</h3>
<p>The example is — slightly redacted — taken <a href="https://stackoverflow.com/a/75383017/7322615">from Julian via StackOverflow</a>.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-3-contents" aria-controls="callout-3" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Show the markdown code
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-3" class="callout-3-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb2-2">title<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Two columns using the bootstrap CSS grid system"</span></span>
<span id="cb2-3">format<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> html</span>
<span id="cb2-4">engine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> knitr</span>
<span id="cb2-5"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb2-6">  </span>
<span id="cb2-7">  </span>
<span id="cb2-8"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">::::</span> {.grid}</span>
<span id="cb2-9"></span>
<span id="cb2-10"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span> {.g<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>col<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">-4</span>}</span>
<span id="cb2-11"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">##### First column </span></span>
<span id="cb2-12">I would like to have text here</span>
<span id="cb2-13"></span>
<span id="cb2-14">Sentence becomes longer, it should automatically stay <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> their column</span>
<span id="cb2-15"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb2-16">  </span>
<span id="cb2-17"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {.g<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>col<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">-4</span>}</span>
<span id="cb2-18"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">##### Second column </span></span>
<span id="cb2-19"></span>
<span id="cb2-20">and here</span>
<span id="cb2-21"></span>
<span id="cb2-22">More text</span>
<span id="cb2-23"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb2-24">  </span>
<span id="cb2-25"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">::::</span></span></code></pre></div></div>
</div>
</div>
</div>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-4-contents" aria-controls="callout-4" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Show the result
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-4" class="callout-4-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<div class="grid">
<section id="first-column-1" class="level5 g-col-4">
<h5 class="anchored" data-anchor-id="first-column-1">First column</h5>
<p>I would like to have text here</p>
<p>Sentence becomes longer, it should automatically stay in their column</p>
</section>
<section id="second-column-1" class="level5 g-col-4">
<h5 class="anchored" data-anchor-id="second-column-1">Second column</h5>
<p>and here</p>
<p>More text</p>
</section>
</div>
</div>
</div>
</div>
</section>
<section id="example-3-two-columns-with-text-center-aligned" class="level3">
<h3 class="anchored" data-anchor-id="example-3-two-columns-with-text-center-aligned">Example 3: Two columns with text center-aligned</h3>
<p>The example is — slightly redacted — <a href="https://stackoverflow.com/a/73307989/7322615">taken again from shafee via StackOverflow</a>.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-5-contents" aria-controls="callout-5" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Show the markdown code
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-5" class="callout-5-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb3-2">title<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Two columns with text center-aligned"</span></span>
<span id="cb3-3">format<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> html</span>
<span id="cb3-4">engine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> knitr</span>
<span id="cb3-5"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb3-6"></span>
<span id="cb3-7"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {.cell}</span>
<span id="cb3-8"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>style type<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"text/css"</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span></span>
<span id="cb3-9">.column {</span>
<span id="cb3-10">text<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>align<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> center;</span>
<span id="cb3-11">}</span>
<span id="cb3-12"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">/</span>style<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span></span>
<span id="cb3-13"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb3-14"></span>
<span id="cb3-15"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">::::</span> {.columns}</span>
<span id="cb3-16"></span>
<span id="cb3-17"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span> {.column width<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"30%"</span>}</span>
<span id="cb3-18"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">##### First column</span></span>
<span id="cb3-19"></span>
<span id="cb3-20">I would like to have text here</span>
<span id="cb3-21"></span>
<span id="cb3-22">Sentence becomes longer, it should automatically stay <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> their column</span>
<span id="cb3-23"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb3-24"></span>
<span id="cb3-25"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {.column width<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"30%"</span>}</span>
<span id="cb3-26"><span class="do" style="color: #5E5E5E;
background-color: null;
font-style: italic;">##### Second column</span></span>
<span id="cb3-27"></span>
<span id="cb3-28">and here</span>
<span id="cb3-29"></span>
<span id="cb3-30">More text</span>
<span id="cb3-31"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span>
<span id="cb3-32"></span>
<span id="cb3-33"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">::::</span></span></code></pre></div></div>
</div>
</div>
</div>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-6-contents" aria-controls="callout-6" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Show the result
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-6" class="callout-6-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<div class="cell">
<style type="text/css">
.column {
text-align: center;
}
</style>
</div>
<div class="columns">
<div class="column" style="width:30%;">
<section id="first-column-2" class="level5">
<h5 class="anchored" data-anchor-id="first-column-2">First column</h5>
<p>I would like to have text here</p>
<p>Sentence becomes longer, it should automatically stay in their column</p>
</section>
</div><div class="column" style="width:30%;">
<section id="second-column-2" class="level5">
<h5 class="anchored" data-anchor-id="second-column-2">Second column</h5>
<p>and here</p>
<p>More text</p>
</section>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<section id="fenced-divs-in-pandoc-how-do-they-work" class="level2">
<h2 class="anchored" data-anchor-id="fenced-divs-in-pandoc-how-do-they-work">Fenced divs in Pandoc: How do they work?</h2>
<section id="what-is-pandoc" class="level3">
<h3 class="anchored" data-anchor-id="what-is-pandoc">What is Pandoc?</h3>
<p><a href="https://pandoc.org/index.html">Pandoc</a> is an open-source universal document converter. Pandoc is licensed with the very permissive GNU<sup>1</sup> General Public License (<a href="https://www.gnu.org/licenses/gpl-3.0.html">GPL</a>). Currently, Pandoc supports the conversion of more than 60 formats. <a href="https://johnmacfarlane.net/">John MacFarlane</a>, a philosophy professor at the University of Berkeley, is developing and maintaining Pandoc.</p>
<p>RStudio IDE ships with a pandoc binary. The path is stored in the <code>RSTUDIO_PANDOC</code> environment variable. You can get the path and the current pandoc version used by RStudio with <code>rmarkdown::find_pandoc()</code>.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1">rmarkdown<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">find_pandoc</span>()</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>$version
[1] '3.2.1'

$dir
[1] "/usr/local/bin"</code></pre>
</div>
</div>
<p>To get the version number on your machine type in the terminal:</p>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Terminal (slightly redacted)</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" data-filename="Terminal (slightly redacted)" style="background: #f1f3f5;"><pre class="sourceCode zsh code-with-copy"><code class="sourceCode zsh"><span id="cb6-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">pandoc</span> <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--version</span></span>
<span id="cb6-2"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">(</span><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">base</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">)</span> <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">path@my_machine</span> quarto-blog % pandoc <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--version</span></span>
<span id="cb6-3"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">pandoc</span> 3.1.2</span>
<span id="cb6-4"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Features:</span> +server +lua</span>
<span id="cb6-5"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Scripting</span> engine: Lua 5.4</span>
<span id="cb6-6"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">User</span> data directory: /Users/path@my_direcotry/.pandoc</span>
<span id="cb6-7"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">Copyright</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">(C)</span> 2006-2023 John MacFarlane. Web:  https://pandoc.org</span>
<span id="cb6-8"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">This</span> is free software<span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">;</span> <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">see</span> the source for copying conditions. There is no</span>
<span id="cb6-9"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">warranty,</span> not even for merchantability or fitness for a particular purpose.</span>
<span id="cb6-10"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">(</span><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">base</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">)</span> <span class="ex" style="color: null;
background-color: null;
font-style: inherit;">path@my_machine</span> quarto-blog % </span></code></pre></div></div>
</div>
<p>This result shows I have two different pandoc versions installed — a potential danger for a version conflict: One version installed RStudio, and the other I downloaded with the macOS package manager <a href="https://brew.sh/">Homebrew</a>.</p>
</section>
<section id="div-blocks-in-pandoc" class="level3">
<h3 class="anchored" data-anchor-id="div-blocks-in-pandoc">Div Blocks in Pandoc</h3>
<p>The pandoc <code>div</code> extension allows a special fenced syntax to generate HTML div-tags:</p>
<blockquote class="blockquote">
<p>A <code>div</code> starts with a fence containing at least three consecutive colons plus some attributes. The attributes may optionally be followed by another string of consecutive colons. … [O]ne can use either attributes in curly braces or a single unbraced word, which will be treated as a class name. The Div ends with another line containing a string of at least three consecutive colons. The fenced Div should be separated by blank lines from preceding and following blocks. From <a href="https://pandoc.org/MANUAL.html#extension-fenced_divs">Extension: <code>fenced_divs</code></a></p>
</blockquote>
<p>Two more remarks:</p>
<ol type="1">
<li><p>If you are going to nest pandoc div directives, you must provide more colons for the outer divs than the inner divs.</p></li>
<li><p>To prevent that Quarto uses the jupyter engine, you must provide engine: knitr in the YAML front matter.</p></li>
</ol>
</section>
</section>
<section id="a-genuine-quarto-solution" class="level2">
<h2 class="anchored" data-anchor-id="a-genuine-quarto-solution">A genuine Quarto solution</h2>
<p>After I looked around at how to create a two-<strong>text</strong>&nbsp;column layout for a while, I found a simple Quarto answer. Hidden in the help page about figures, I found the remark:</p>
<blockquote class="blockquote">
<p>You can treat any markdown content you want as a figure by enclosing it in Pandoc div block with an identifier prefaced with #fig-. See the <a href="https://quarto.org/docs/authoring/figures.html#figure-divs">first sentence under the header <code>Figure Divs</code></a>.</p>
</blockquote>
<p>The first part of the sentence, “You can treat any markdown content you want as a figure…” could be reversed to the concept that a layout for figures works similarly to a design for text.</p>
<p>I came up with the following solution that I also published to answer the <a href="https://stackoverflow.com/a/76191188/7322615">StackOverflow post</a>.</p>
<section id="version-1-with-equally-wide-columns" class="level3">
<h3 class="anchored" data-anchor-id="version-1-with-equally-wide-columns">Version 1 with equally wide columns</h3>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb7-1"></span>
<span id="cb7-2"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb7-3">title<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Two columns layout Quarto with equally wide columns"</span></span>
<span id="cb7-4">format<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> html</span>
<span id="cb7-5">engine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> knitr</span>
<span id="cb7-6"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb7-7"></span>
<span id="cb7-8"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {layout<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>ncol<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>}</span>
<span id="cb7-9"></span>
<span id="cb7-10"></span>
<span id="cb7-11">First column</span>
<span id="cb7-12"></span>
<span id="cb7-13">Second column</span>
<span id="cb7-14"></span>
<span id="cb7-15">I would like to have text here</span>
<span id="cb7-16"></span>
<span id="cb7-17">and here</span>
<span id="cb7-18"></span>
<span id="cb7-19">Sentence becomes longer, it should automatically stay <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> their column</span>
<span id="cb7-20"></span>
<span id="cb7-21">More text</span>
<span id="cb7-22"></span>
<span id="cb7-23"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span></code></pre></div></div>
<p>The above solution uses the Quarto <code>layout-ncol</code> attribute. There is also a <code>layout-nrow</code>attribute. In both directives, you can specify the number of columns respectively rows.</p>
</section>
<section id="version-2-with-different-wide-columns" class="level3">
<h3 class="anchored" data-anchor-id="version-2-with-different-wide-columns">Version 2 with different wide columns</h3>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb8-2">title<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Two columns layout Quarto with different wide columns"</span></span>
<span id="cb8-3">format<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> html</span>
<span id="cb8-4">engine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> knitr</span>
<span id="cb8-5"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">---</span></span>
<span id="cb8-6"></span>
<span id="cb8-7"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">:::</span> {layout<span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"[[10,5], [40,20], [26,13], [2,1]]"</span>}</span>
<span id="cb8-8"></span>
<span id="cb8-9"></span>
<span id="cb8-10"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">**</span>First column<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">**</span></span>
<span id="cb8-11"></span>
<span id="cb8-12"><span class="er" style="color: #AD0000;
background-color: null;
font-style: inherit;">**</span>Second column<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">**</span></span>
<span id="cb8-13"></span>
<span id="cb8-14">I would like to have text here</span>
<span id="cb8-15"></span>
<span id="cb8-16">and here</span>
<span id="cb8-17"></span>
<span id="cb8-18">Sentence becomes longer, it should automatically stay <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> their column</span>
<span id="cb8-19"></span>
<span id="cb8-20">More text</span>
<span id="cb8-21"></span>
<span id="cb8-22"><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span></span></code></pre></div></div>
<p>The version 2 solution uses the general form of the <code>layout</code> attribute. It is followed by a 2-dimensional array where the first dimension defines rows and the second columns. Note that the used row / column numbers in the second version are arbitrary. They just provide the desired proportion of 2:1. The code translates to “create four rows, where the first column has always the double size of the second column.”</p>
<p>Some final remarks on both of the last examples:</p>
<ol type="1">
<li><p>There needs to be an empty line between every paragraph (here sentence). This structure is necessary so Pandoc can see the break and addresses the next column.</p></li>
<li><p>You need to use the <code>engine: knitr</code> command to prevent rendering with the jupyter engine.</p></li>
</ol>
</section>
</section>
<section id="conclusion" class="level2">
<h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
<p>There are many possibilities for a creative layout design in Quarto. This article shows the use of Pandocs <code>div block</code> directives with five different methods. These layout directives can be generalized from a two-column to a many column layout</p>
<ol type="1">
<li>Several columns with varying percentages of widths.</li>
<li>Several columns using the very flexible bootstrap CSS grid system.</li>
<li>Several columns with formatted explicitly with a CSS style.</li>
<li>Several columns with the same width using the Quarto <code>layout-ncol</code> or <code>layout-nrow</code> attribute.</li>
<li>Several columns with different widths using the Quarto general <code>layout</code> attribute.</li>
</ol>


</section>


<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a><div id="quarto-appendix" class="default"><section id="footnotes" class="footnotes footnotes-end-of-document"><h2 class="anchored quarto-appendix-heading">Footnotes</h2>

<ol>
<li id="fn1"><p>GNU is a recursive acronym and means: <a href="https://en.wikipedia.org/wiki/GNU">GNU’s Not Unix</a>.↩︎</p></li>
</ol>
</section></div> ]]></description>
  <category>blog</category>
  <category>quarto</category>
  <category>how-to</category>
  <guid>https://petzi53.github.io/blog/posts/2023-05-07-creating-a-column-based-layout/</guid>
  <pubDate>Sat, 06 May 2023 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/2023-05-07-creating-a-column-based-layout/three-columns-min.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>How to delete Git branches</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/</link>
  <description><![CDATA[ 





<section id="if-a-pull-request-is-not-accepted" class="level2">
<h2 class="anchored" data-anchor-id="if-a-pull-request-is-not-accepted">If a pull request is not accepted…</h2>
<p>As I am not very experienced with R and coding, my knowledge of using Git and GitHub is limited. Usually, I use the <code>pr_*()</code> family of {<a href="https://usethis.r-lib.org/" title="Automates repetitive tasks that arise during project setup and development">usethis</a>} functions as pull request helpers. They work very well – as long as the workflow follows the standard (successful) workflow:</p>
<ul>
<li>Initiate the pull request with <code>pr_init(&lt;branch name&gt;)</code></li>
<li>Submit the changes in the new branch with <code>pr_push()</code>.</li>
<li>Click the “Create pull request”-button to make the PR.</li>
<li>After the code is accepted and merged, conclude the process with <code>pr_finish()</code>.</li>
</ul>
<p>This sequence does not fly if the workflow deviates from the above model. The standard procedure describes the scenario of a discussion between contributor and reviewer that finally results in the acceptance of the PR. But what about a rejection of the PR?</p>
</section>
<section id="deletion-of-the-remote-branch-with-github-is-not-enough" class="level2">
<h2 class="anchored" data-anchor-id="deletion-of-the-remote-branch-with-github-is-not-enough">… deletion of the remote branch with GitHub is not enough</h2>
<p>This situation happened to me after I proposed fixing a typo for a repo that had been frozen because of a necessary general overhaul. I thought to delete the submitted remote branch at the GitHub site would bring me back to my initial position.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/delete-remote-branch-at-github-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="Screenshot 1: Delete obsolete branch “typo” at GitHub site (simulated for this article)."><img src="https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/images/delete-remote-branch-at-github-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="A screenshot shows the default branch &quot;master&quot; and &quot;Your branches&quot; named &quot;typo,&quot; which also figures under &quot;Active branches&quot;. The cursor hovers over the trash can to delete the active branch &quot;typo&quot;."></a></p>
</figure>
</div>
<figcaption><strong>Screenshot 1</strong>: Delete obsolete branch “typo” at GitHub site (simulated for this article).</figcaption>
</figure>
</div>
<p>But back in RStudio, it turned out that the deleted branch was still there.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/git-branches-at-rstudio.png" class="lightbox" data-gallery="quarto-lightbox-gallery-3" title="Screenshot 2: Local and Remote branches seen in RStudio"><img src="https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/images/git-branches-at-rstudio.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="The window shows under the two headings &quot;(Local Branches&quot;) and (Remote: Origin) with &quot;master&quot; and &quot;typo&quot; two branches."></a></p>
</figure>
</div>
<figcaption><strong>Screenshot 2</strong>: Local and Remote branches seen in RStudio</figcaption>
</figure>
</div>
<p>Ok, I understood that my remote action did not delete the local branch too. But why was the remote branch still there? After all, I had it just removed. (I double-checked the deletion, and the remote branch at the remote GitHub site was, in fact, completely gone.</p>
</section>
<section id="there-are-three-not-two-branches" class="level2">
<h2 class="anchored" data-anchor-id="there-are-three-not-two-branches">There are three, not two branches</h2>
<p>After some research, I found an appropriate question-answer dialog (<a href="https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely">How do I delete a Git branch locally and remotely?</a>) at StackOverflow with more than 11 million views! It seems that I am not the only one surprised by the situation.</p>
<p>After reading this and other answers at SO, I learned that there are three different branches:</p>
<blockquote class="blockquote">
<p>When you’re dealing with deleting branches both locally and remotely, keep in mind that there are three different branches involved:</p>
<ul>
<li>The local branch X.</li>
<li>The remote origin branch X.</li>
<li>The local remote-tracking branch origin/X that tracks the remote branch X. <a href="https://stackoverflow.com/a/23961231/7322615">Quote from the top second answer</a></li>
</ul>
</blockquote>
<p>I deleted the remote origin branch X manually at the GitHub site. The local branch but also the local remote-tracking branch were still functional!</p>
<p>For every one of these three branches, one needs different commands to delete them. And here – as far as I understood – we have met the limits of RStudio and/or {usethis}. For the following commands, you have to change from the console to the terminal.</p>
</section>
<section id="useful-commands-for-deleting-branches" class="level2">
<h2 class="anchored" data-anchor-id="useful-commands-for-deleting-branches">Useful commands for deleting branches</h2>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-1-contents" aria-controls="callout-1" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Set comment character for interactive terminal use
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-1" class="callout-1-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<p>If you are using the <a href="https://en.wikipedia.org/wiki/Z_shell">Z shell (zsh)</a> you have to set <code>setopt interactivecomments</code> for interactive use either in your <code>~/.zshrc</code> file or write this command into the terminal for temporary use during the terminal session. In contrast to <code>ksh</code> (Korn shell), <code>sh</code> (Bourne shell), and <code>bash</code> (Bourne-again shell) the <code>#</code> is for the <code>zsh</code> (Z shell) only set as the comment character for non-interactive use (scripts).</p>
</div>
</div>
</div>
<section id="deleting-a-remote-branch" class="level4">
<h4 class="anchored" data-anchor-id="deleting-a-remote-branch">Deleting a remote branch</h4>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Terminal</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" data-filename="Terminal" style="background: #f1f3f5;"><pre class="sourceCode zsh code-with-copy"><code class="sourceCode zsh"><span id="cb1-1"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">setopt</span> interactivecomments</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> push origin <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-d</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>branch<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span></span></code></pre></div></div>
</div>
</section>
<section id="deleting-a-local-branch" class="level4">
<h4 class="anchored" data-anchor-id="deleting-a-local-branch">Deleting a local branch</h4>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Terminal</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" data-filename="Terminal" style="background: #f1f3f5;"><pre class="sourceCode zsh code-with-copy"><code class="sourceCode zsh"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> checkout master <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># change branch, you can't delete a branch you are working on</span></span>
<span id="cb2-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> branch <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-d</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>branch<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span></span>
<span id="cb2-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> branch <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-D</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>branch<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># force-delete un-merged branches</span></span></code></pre></div></div>
</div>
</section>
<section id="deleting-a-local-remote-tracking-branch" class="level4">
<h4 class="anchored" data-anchor-id="deleting-a-local-remote-tracking-branch">Deleting a local remote-tracking branch</h4>
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Terminal</strong></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" data-filename="Terminal" style="background: #f1f3f5;"><pre class="sourceCode zsh code-with-copy"><code class="sourceCode zsh"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> branch <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-dr</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>remote<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span>/<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>branch<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># 'dr' stands for "delete remotes"</span></span>
<span id="cb3-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> branch <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-dr</span> origin/dev        <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># example</span></span>
<span id="cb3-3"></span>
<span id="cb3-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Delete multiple obsolete remote-tracking branches</span></span>
<span id="cb3-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> fetch <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>remote<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> -p  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># 'p' stands for "prune"</span></span>
<span id="cb3-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> fetch origin <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-p</span>    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># example</span></span></code></pre></div></div>
</div>
<div class="callout callout-style-default callout-warning callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Warning
</div>
</div>
<div class="callout-body-container callout-body">
<p>Don’t forget to refresh the RStudio listing to verify that you have deleted the branches.</p>
</div>
</div>
<div class="cell">
<style type="text/css">
.column {
text-align: center;
}
</style>
</div>
<div class="columns">
<div class="column" style="width:50%;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/rstudio-refresh-branch-listing-circle-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-4" title="Click on the circle symbol at the top right corner…"><img src="https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/images/rstudio-refresh-branch-listing-circle-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Click on the circle symbol at the top right corner…"></a></p>
</figure>
</div>
<figcaption>Click on the circle symbol at the top right corner…</figcaption>
</figure>
</div>
</div><div class="column" style="width:50%;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/rstudio-refresh-branch-listing-manually-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-5" title="… and choose “Refresh Now” to list the branches currently available."><img src="https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/images/rstudio-refresh-branch-listing-manually-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="… and choose “Refresh Now” to list the branches currently available."></a></p>
</figure>
</div>
<figcaption>… and choose “Refresh Now” to list the branches currently available.</figcaption>
</figure>
</div>
</div>
</div>


</section>
</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>git</category>
  <category>github</category>
  <category>how-to</category>
  <guid>https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/</guid>
  <pubDate>Thu, 04 May 2023 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/2023-05-05-how-to-delete-git-branches/git-cover-min.png" medium="image" type="image/png" height="72" width="144"/>
</item>
<item>
  <title>Bye, Bye Hugo, Welcome Quarto!</title>
  <dc:creator>Peter Baumgartner</dc:creator>
  <link>https://petzi53.github.io/blog/posts/2023-04-23-welcome-quarto/</link>
  <description><![CDATA[ 





<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://petzi53.github.io/blog/posts/2023-04-23-welcome-quarto/New_Found_Glory_Coming_Home-min.png" class="img-fluid figure-img"></p>
<figcaption>This is the front cover for the CD “Coming Home” by the artist “New Found Glory” via <a href="https://en.wikipedia.org/wiki/Coming_Home_(New_Found_Glory_album)">Wikipedia</a> (Fair Use)</figcaption>
</figure>
</div>
<section id="my-first-blog-entry-with-quarto" class="level2">
<h2 class="anchored" data-anchor-id="my-first-blog-entry-with-quarto">My first blog entry with Quarto</h2>
<p>This is my first entry in a new <a href="https://quarto.org/" title="Welcome to Quarto – An open-source scientific and technical publishing system">blog powered by Quarto</a>. After continuously struggling with the complex machinery <a href="https://bookdown.org/yihui/blogdown/" title="first page of the online blogdown book">blogdown</a> - <a href="https://gohugo.io/" title="The world’s fastest framework for building websites">Hugo</a> - <a href="https://wowchemy.com/" title="The site you need to grow as a creator — without the bloat">Wowchemy</a>, I feel like coming home from a trip abroad!</p>
<p>Following the Quarto guide <a href="https://quarto.org/docs/websites/website-blog.html" title="Quarto websites include integrated support for blogging.">Creating a Blog</a>, it took me only 2 (!) minutes to render the provided blog template locally. After just one hour, I had my blog using Quarto, GitHub, and Netlify online. And half of this time, I spent thinking about a name for my blog and what to do with my older and outdated other blogdown web presences. (To put this quick access into perspective: I already had a <a href="https://github.com/petzi53" title="The complete developer platform to build, scale, and deliver secure software">GitHub account</a>, GitHub credential, and a <a href="https://www.netlify.com/" title="Bring it all together The fastest way to combine your favorite tools and APIs to build the fastest sites, stores, and apps for the web">Netlify</a> account. And I didn’t work on the content of a blog entry but used just the installed test pages.)</p>
<p>I never was happy with the fast development of <a href="https://gohugo.io/" title="The world’s fastest framework for building websites">Hugo</a> that brought with it many changes and a considerable learning overhead. The same problem happened with the Academic theme by <a href="https://wowchemy.com/">Wowchemy</a>. The end product looked nice and ran fast, but I had already forgotten some of the many details for a good-looking blog post after two weeks. As a result, I spent more time learning the blog machinery than I had time to write about substantive subjects.</p>
<p>It was helpful when <a href="https://bookdown.org/yihui/blogdown/a-quick-example.html#when-in-doubt-run-blogdowncheck_site">Yihui Xie introduced `blogdown::checksite()`</a> and the possibility of <a href="https://bookdown.org/yihui/blogdown/global-options.html#global-options">freezing to a specific Hugo version</a>. But the work in the blogdown-Hugo environment was never intuitive and satisfying. I think it’s self-explanatory that the introductory message to the blogdown book for over <del>two</del> three years now states as a note from the authors: “Some of the information and instructions in this book are now out of date because of changes to Hugo and the blogdown package.”</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="intro-note-blogdown-book-min.png" class="lightbox" data-gallery="quarto-lightbox-gallery-3" title="Preface banner of blogdown: Creating Websites with R Markdown"><img src="https://petzi53.github.io/blog/posts/2023-04-23-welcome-quarto/intro-note-blogdown-book-min.png" class="img-fluid quarto-figure quarto-figure-center figure-img" style="width:70.0%" alt="A note from the authors: Some of the information and instructions in this book are now out of date because of changes to Hugo and the blogdown package. If you have suggestions for improving this book, please file an issue in our GitHub repository. Thanks for your patience while we work to update the book, and please stay tuned for the revised version! In the meantime, you can find an introduction to the changes and new features in the v1.0 release blog post and this 'Up &amp; running with blogdown in 2021' blog post. — Yihui, Amber, &amp; Alison"></a></p>
</figure>
</div>
<figcaption>Preface banner of <a href="https://bookdown.org/yihui/blogdown/">blogdown: Creating Websites with R Markdown</a></figcaption>
</figure>
</div>
</section>
<section id="future-plans" class="level2">
<h2 class="anchored" data-anchor-id="future-plans">Future plans</h2>
<p>I am sure there will also be some intricacies I must learn and overcome with Quarto, but this will conform with all my other R knowledge. At the moment, my feeling is enthusiastic: It is easy and intuitive to write on this platform. I hope to overcome technical barriers and concentrate on thematic topics finally. Since English is not my mother tongue, it is already difficult enough to express myself precisely about complex content-related questions. I don’t need any additional technical difficulty in writing blog posts.</p>
<p>In contrast to my previous website projects, I am planning two different strategies:&nbsp;</p>
<ul>
<li><p>I will not go into the details of the website design immediately but will work on these issues from time to time.</p></li>
<li><p>I will not announce the website until I am sure I will use it regularly and long-term. I think that about 10 articles – written in two months – should give me the trust that I will use it sustainably.</p></li>
</ul>


</section>

<a onclick="window.scrollTo(0, 0); return false;" id="quarto-back-to-top"><i class="bi bi-arrow-up"></i> Back to top</a> ]]></description>
  <category>blog</category>
  <category>quarto</category>
  <guid>https://petzi53.github.io/blog/posts/2023-04-23-welcome-quarto/</guid>
  <pubDate>Sat, 22 Apr 2023 22:00:00 GMT</pubDate>
  <media:content url="https://petzi53.github.io/blog/posts/2023-04-23-welcome-quarto/New_Found_Glory_Coming_Home-min.png" medium="image" type="image/png" height="143" width="144"/>
</item>
</channel>
</rss>
