Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.9%) to scientific vocabulary
Keywords
Repository
Tiderbox app file for Quarto
Basic Info
- Host: GitHub
- Owner: fryagbye
- Language: HTML
- Default Branch: main
- Homepage: https://fryagbye.quarto.pub/tinderbox-file-for-quarto
- Size: 110 MB
Statistics
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Introduction
This Tinderbox file supports creating a book, manuscript (beta), revealjs with Quarto.
Tinderbox file for Quarto (Web version)
You can easily make qmd files and _quarto.yml with it. Here is an example of books created with Quarto.
- R for Data Science (2e)(@Wickham2016Data)
You can preview Rchunk and Graphs (Mermaid Flowchart and Graphviz) in Tinderbox.
My Workflow is @fig-workflow-graphviz.
```mermaid %%| label: fig-workflow-mermaid %%| fig-cap: Tinderbox Work Flow with Quarto. %%{init: {'theme':'neutral'}}%% flowchart TB A["Bookends"] -->|"opt + drag"| Sub1["Tinderbox"] B["Snippety"] -.-> Sub1["Tinderbox"] C["Mermaid"] D["Graphviz"] E["Preview with Rscript"] F["R Studio"] -->|"Call"| H["quarto CLI"] G["RMarkdown ( .qmd )"] -->|""Read qmd files""| F["R Studio"] G["RMarkdown ( .qmd )"] -->|"Call"| H["quarto CLI"] H["quarto CLI"] -->|"Export"| I["Book"] H["quarto CLI"] -->|"Export"| J["Manuscript"] H["quarto CLI"] -->|"Export"| K["revealjs"] I["Book"] J["Manuscript"] K["revealjs"]
subgraph Sub1["Tinderbox"] Sub5 end
subgraph Sub2["Applications"] direction LR A B Sub1 end
subgraph Sub3["Quarto"] direction LR F G H end
subgraph Sub4["Output"] direction LR I J K end
subgraph Sub5["DemoTBXfor_Quarto.tbx"] C D E end
subgraph Sub6["Work Flow"] direction TB Sub2 Sub3 Sub4 end
Sub5["Demo_TBX_for_Quarto.tbx"] -->|""*untitled""| G["RMarkdown ( .qmd )"]
%% Styles & Links style A fill:#fcbd63,color:#000000,stroke:#dc490b,stroke-width:2px click A href "https://www.sonnysoftware.com/bookends-for-mac" _blank style B fill:#5c9dfe,color:#000000,stroke:#990000,stroke-width:2px,stroke-dasharray:5 5 click B href "https://snippety.app/" _blank style C fill:#c735e9,color:#000000,stroke:#dc490b,stroke-width:2px click C href "https://mermaid.js.org/" _blank style D fill:#30638d,color:#ffffff,stroke:#dc490b,stroke-width:2px click D href "https://graphviz.org/" _blank style E fill:#009900,color:#000000,stroke:#dc490b,stroke-width:2px style F fill:#80a9d7,color:#000000,stroke:#dc490b,stroke-width:2px,stroke-dasharray:8 2 click F href "https://posit.co/products/open-source/rstudio/" _blank style G fill:#74bbff,color:#000000,stroke:#dc490b,stroke-width:2px style H fill:#74bbff,color:#000000,stroke:#dc490b,stroke-width:2px click H href "https://quarto.org/" _blank style I fill:#93dd93,color:#000000,stroke:#dc490b,stroke-width:2px style J fill:#93dd93,color:#000000,stroke:#dc490b,stroke-width:2px style K fill:#f2e142,color:#000000,stroke:#d53f8c,stroke-width:2px style Sub1 fill:#f6e04d,color:#000000,stroke:#dc490b,stroke-width:2px style Sub2 fill:#e7f3e7,color:#000000,stroke:#dc490b,stroke-width:2px style Sub3 fill:#fff4e6,color:#000000,stroke:#dc490b,stroke-width:2px style Sub4 fill:#ffffff,color:#000000,stroke:#dc490b,stroke-width:2px style Sub5 fill:#eeebe9,color:#000000,stroke:#dc490b,stroke-width:2px style Sub6 fill:#eeebe9,color:#000000,stroke:#dc490b,stroke-width:2px ```
Usage environment
Please refer to the output results of quato check.
Quarto is using the released version 1.7.13 (pre-release)[^noteinstallversion].
R is version 4.4.2.
I use luaLatex for output in Japanese. I have installed MacTex because TinyTex doesn't include it.
It may be better to uninstall TinyTex.
I have set it to use the
lightboxextension ( included in Quarto v1.4+.).
*I have set it to use the quarto-live extension for revealjs. (quarto live)
[^noteinstallversion]:~~Since the old headless mode has been removed from Chrome 132, Quarto v1.7.13 or later is required.~~
quarto check
```{.zsh}
Quarto check output
Quarto 1.7.13
[✓] Checking environment information...
Quarto cache location: /Users/tk4o2ka/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.7.13
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
Chromium: 869685
TinyTeX: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/local/texlive/2024/bin/universal-darwin
Version: 2024
[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Source: MacOS known location
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.13.2
Path: /opt/homebrew/opt/python@3.13/bin/python3.13
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
There is an unactivated Python environment in .venv. Did you forget to activate it?
[✓] Checking R installation...........OK
Version: 4.4.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
knitr: 1.49
rmarkdown: 2.29
[✓] Checking Knitr engine render......OK
```
Installed packages
```{.r}
| echo: false
| message: false
pacman::pload(tidyverse, gt) installed.packages() |> astibble() |> select(Package, Version, Built) |> gt::gt() ```
RStudio Session information
```{.r}
| echo: false
sessionInfo() ```
Platform: aarch64-apple-darwin20 Running under: macOS 15.1.1 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0 locale:
[1] enUS.UTF-8/enUS.UTF-8/enUS.UTF-8/C/enUS.UTF-8/en_US.UTF-8
time zone: Asia/Tokyo tzcode source: internal attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler4.4.0 tools4.4.0
Setting
- Setting up with "TBXConfig" note

You need to change the values of the following "TBXConfig" attributes for configuration.
$Indent_Charactor→ Set the symbol representing the depth of indentation. ( default value = ★ )~~
$ExList→ List of notes excluded from cross-reference search ( default value = "List and Agent etc" )~~$ProjectContainer→ Book Project Path for CrossRef Search and Label Lists
{#fig-projectcontaierexample fig-alt="Project Contaier Example" fig-align="left" width=80%}
$ExportFolder→ File path of exported files.
{#fig-exportfoldersetting fig-alt="Export Folder Setting" fig-align="left" width=50%}
$ToggleTOC→ Toggle for Generating TOC. ( default value = false ) You can use quarto option for TOC in _quarto.yml.$Q_TableOfContainsNote→ $Name of TOC note. ( default value = Table of Contents )$Rename_in→translate-shelloption setting `[SOURCES]:[TAGETS]. ( default value = ja:en )$Q_PDFEngine→ Setting for pdf engine This file is tested only with lualatex. ( default value = lualatex )~~
$OutlineBaseControl→ Adjustment of section levels in Markdown. ( default = 1 )~~$OutlineBaseControlis enabled in Manuscript and revealjs project. This attribute is used in pSubfolderManuscript and pSubfolderRevealjs note. e.g.- $OutlineBaseControl = 1 → ## Title
- $OutlineBaseControl = 1 → # Title
$RScriptLibraryPath→ R Library Resource Path ( default Value )
{#fig-rscript-libpath fig-alt="Rscript Library Path" fig-align="left" width=80%}
Making a
_quarto.ymlYou can change the values of attributes of the "quarto" note to change quarto options. The quarto options are attributes that start with "Q" in this file. The initial setting specified in `quarto.yml
is for Japanese output. Please refer to [Quarto Book Structure](https://quarto.org/docs/books/book-structure.html) and [PDF Basics](https://quarto.org/docs/output-formats/pdf-basics.html) in detail. If you use [Custom Translations](https://quarto.org/docs/authoring/language.html#custom-translations), you need to make$QHasLanguageYMLtrueand set$QLanguageYML` for the filename. The "language" note in this file is for translating to Japanese.



Changing the
_common.Rfile. ( optional )You can set up
knitrpackage options for R chunk.
Book format
Make a New Book Project
You can start with the stamp that makes a new book project. Only one book project is allowed per file. The project container is created at the bottom and it has Label lists, _quarto.yml, and an index note.

If you use a virtual environment with Python and the stamps about quarto command, please set $QVenvActivateBinPath.
Before calling quarto commands, the stamps activate the virtual environment.
`r switch(outtype, latex = "\raisebox{1ex -\height/2}{\includegraphics[height=2em]{output/screenshots/Lclick.png}}", html = "
{fig-alt='左クリック' width=40px}")`:左クリック
Make new notes
Make notes with Prototype pNote and pSubnote
pNote is for Sections and pSubnote is for Subsections. Please set the Prototype of pNote to level 1 and pSubnote below level.
When creating a note, please enter "#pNote" or "#pSubnote" following the title. (or apply the pNote Prototype or pSubnote to notes you make )
e.g. Note title -> わが輩は猫である#pSubnote
- The note title (
$Name) is the header for pNote or pSubnote.
- The note title (
Depending on the hierarchy level, the level of the header also changes.
e.g. If the title of pSubnote in level 2 depth is "わが輩は猫である", it will be output as follows when exporting.
## わが輩は猫である


Index.qmd
In the quarto book format, only one index.qmd is required,
$IsIndexqmdof the index.qmd is set totrue. You can make the note for index.qmd with the pIndexQmd Prototype or make$IsIndexqmdof pNotetrue.

Special Notes Prototype
pReferenceQmd
This prototype is inherited from pNote and $Text has a div with id
refsto call a works cited list (below). (Quarto Bibliography Generation)::: {#refs}:::

pAppendixQmd
This prototype is inherited from pNote and $IsAppendix is
true.

Chunks and Graphs
R chunk and Python chunk notes
You can create a pRChunk for an R chunk and a pPChunk for a Python chunk. The “Chunk & Graph: Make Chunk List” stamp generates a tag like <Lang:Tag Label➡️Figure Label>. These tags can be used to reference R chunks, Python chunks, Mermaid diagrams, or Graphviz code. Please do not insert tags in the middle of a sentence.

If tags called in your notes are changed or deleted, the warning is shown.
You can suppress the warning with $SuppresTagDetectWaring in the project container note.
- Rendered Preview in Text Pane(R chunks, Mermaid diagrams, and Graphviz only)
You can check the results of the code executed within an R chunk in the Preview screen. Similarly, the results of Mermaid and Graphviz code can also be displayed. However, this is not possible for Python.
Rename HTMLExportFileName of a note with translation
There is a stamp "Notes: Tranlate Section Labels" that translates the Japanese title ($Name) into English and automatically sets $HTMLExportFileName [^translate-shell]. and you can set $SectionLabel with stamp "Set: Section Label". The labels of the section cannot be duplicated, so please modify them manually if necessary. In addition, you can change the language to be translated with $Rename_in in the TBX configuration note (TBXConfig). ( By default, from Japanese to English).
[^translate-shell]: Translate-shell installation required.
```zsh
brew install translate-shell ```
Part in Book format
For Part, please refer to Quarto's "Book Structure" reference.
pNote is compatible with quarto's Part or Chapter.
If pNote is at the bottom of pNote, the top pNote will be Part (Part ○), and the lower pNote will be Chapter (Chapter ○). You can place pNote at hierarchical level 2 only if you are under pNote of hierarchy level 1.
In this case, the hierarchy level and header level are different, so the header level is set based on the user attribute $OutlineDepthBase.
pNote, which is treated as a Part, is turned on (true) for $Is_Part_qmd. The lower pNote contains the export file name (e.g. filename.qmd) of the pNote, which is Part, in $Part_file.
If a Part note is empty, only the title ($Name) of the note is reflected in _quarto.yml, as shown in the "Dice" in the example below.
If the dice.qmd is not empty, the part title (as a level one header) as well as some introductory content for the part.
```yml
_quarto.yml
chapters: - index.qmd - preface.qmd - part: "Dice" # if $Text("Dice").wordCount == 0 chapters: - basics.qmd - packages.qmd ```
```yml
_quarto.yml
chapters: - index.qmd - preface.qmd - part: dice.qmd # if $Text("Dice").wordCount >0 chapters: - basics.qmd - packages.qmd ```
The figure below shows the export example when Part is supported and the output result of _quarto.yml.

Cross-Reference using Ziplink
In Quarto, labeled diagrams, tables, etc., can be mutually quoted. Label Lists are collected automatically (or manually). [^regrex]

Convert it to a quotable title (citation name starting with @) and create a note for the corresponding part. Tinderbox's Ziplink function [^ziplink] is a function for easily pasting links to notebooks. It is diverted to make it easy to enter the quoted name. This makes it relatively easy to find and enter the quoted label even if the number increases.
[^regrex]: The diagrams and tables are extracted in regular expressions.
[^ziplink]: Please refer to "Text link creation via the Ziplinking method" in A Tinderbox Reference File.(@Anderson2024Tinde)
How to set the label of the diagram
Image link in markdown format
Recognize and collect labels in a format that extends the markdown. {#fig-test fig-alt="test" fig-align="left" width=100%}
{#fig-test fig-alt="test" fig-align="left" width=100%}
R chunk
Automatically recognize and collect R chunk labels in the following format (#| label: fig-xxx-ooo, etc.). The method of specifying a label in the curly bracket ({r fig-xxx-ooo}) is not supported. In the following example, you can quote @fig-airquality.
```{r}
| echo: false
| warning: false
| label: fig-airquality
| fig-cap: Temperature and ozone level.
| fig-width: 5
| fig-pos: H
| fig-show: asis
library(ggplot2) ggplot(airquality, aes(Temp, Ozone)) + geompoint() + geomsmooth(method = "loess") ```
Python chunk
```{python}
| echo: false
| label: fig-numpy
| fig-width: 5
| fig-pos: H
| fig-show: asis
import numpy as np a = np.arange(15).reshape(3, 5) a ```
```{python}
| echo: false
| label: fig-matplotlib
| fig-width: 5
| fig-pos: H
| fig-show: asis
import matplotlib.pyplot as plt fig = plt.figure() x = np.arange(10) y = 2.5 * np.sin(x / 20 * np.pi) yerr = np.linspace(0.05, 0.2, 10)
plt.errorbar(x, y + 3, yerr=yerr, label='both limits (default)') plt.errorbar(x, y + 2, yerr=yerr, uplims=True, label='uplims=True') plt.errorbar(x, y + 1, yerr=yerr, uplims=True, lolims=True, label='uplims=True, lolims=True')
upperlimits = [True, False] * 5 lowerlimits = [False, True] * 5 plt.errorbar(x, y, yerr=yerr, uplims=upperlimits, lolims=lowerlimits, label='subsets of uplims and lolims')
plt.legend(loc='lower right') plt.show(fig) ```
How to set the label of the table
There are multiple ways to specify labels, but they are only supported if it is a table in markdown format and the label name is above, as shown in the example below.[^table-cross-ref]
[^table-cross-ref]: For other formats, please refer to quarto cross-reference.
```{.txt}
:明度・彩度の修飾子 {#tbl-brightness-saturation}
|項目|効果| |----|------------| |dark|暗くする| |darker|より暗くする| |darkest|最も暗くする| |light| 明るくする| ```
:明度・彩度の修飾子 {#tbl-brightness-saturation}
|項目|効果| |----|------------| |dark|暗くする| |darker|より暗くする| |darkest|最も暗くする| |light| 明るくする|
Equations
Equation Example Black-Scholes (@eq-black-scholes) is a mathematical model that seeks to explain
- Input
```latex
$$ ma^{2} \mathrm S^{2} \frac{\partial^{2} \mathrm C}{\partial \mathrm S^2} + \mathrm r \mathrm S \frac{\partial \mathrm C}{\partial \mathrm S}\ = \mathrm r \mathrm C $$
```
- Output
$$ ma^{2} \mathrm S^{2} \frac{\partial^{2} \mathrm C}{\partial \mathrm S^2} + \mathrm r \mathrm S \frac{\partial \mathrm C}{\partial \mathrm S}\ = \mathrm r \mathrm C $$ {#eq-black-scholes}
How to quote
If you enter two square brackets "[[", the list will be displayed, so please enter a part of the label name. As the candidates are narrowed down, select the citation label you want to enter.
:How to quote
|Types of quotations |Lable |Quote|
|---|---|---|
|Chapters, Sections etc. |#sec- |\@sec-|
|Figures |#fig-
#| label:fig-
%%| label:fig-
\/\/| label:fig-
|\@fig-|
|Charts |#tbl-|\@tbl-|
|Equations | #eq-| \@eq-|
Dummy links for cross-reference
You can create dummy links showing where each cross-reference, starting with the @ symbol in the section, figure, and table label lists, is cited.
execute the "Labels: Make Dummy Link Data For Cross-Reference" stamp
select cross-ref label notes ( start with "@" ) and execute the "Labels: Dummy Link between Reference and Selected notes" stamp.
Restrictions on quoted labels
The label before change or deletion remains because it cannot be detected even if the quoted label name is changed or deleted.
Cross-ref detection is carried out by regular expression. If it is executed in the middle of input, it will be duplicated with a short label.
In this case, if necessary, delete the quoted label name in Stamp and perform the detection manually by following the steps below.
Labels: Clear Cross-Reference List(Delete all citation labels under the Reference List.)
Labels: Make Cross-Reference List(Re-detect the quoted label.)
Export and Render
- Export
_quarto.yml
You can change the output format to "pdf" or "html" with the stamp "Change quarto.yml template". If you use a language.yml, you export "language" note (optional. See @sec-setting Setting)
- Export
.qmdfiles ( pNote notes only)
The pSubnote at the bottom of pNote at the time of output is all output as one qmd file in the state contained when pNote is exported. Therefore, it is OK to export by selecting only pNote to the "output" folder. In addition, pSubnote does not require output, but if you export, it is set to output as a text file (extension .txt).
If you select the pNote notes below "Export Agent" and output it, ~~then execute the "Move qmd files" stamp~~, you can overwrite the qmd file directly to ./output (=$HTMLExportFileName of your project folder) ( @fig-output-tree). This method avoids considering the folder structure when referencing image files with a relative path.
{#fig-output-tree}
- Preview HTML output.
* Terminal application
```zsh
preview
quarto preview "project name" (quarto command options)
e.g.
quarto preview output ```
* You can execute the command with the stamp "Quarto: Book Preview ( Select Export Agent )"
{#fig-quarto-preview}
- Render pdf or html.
* Terminal application
```zsh
quarto render output ```
{#fig-quarto-render}
You can execute the command with the stamp "Quarto: Book Render ( Select For Export )
You can use RStudio for preview and render.
Example
Manuscript format
Make a New Manuscript Project
you can start with the stamp that makes a new manuscript project. A Manuscript project can have multiple projects in one file.

If you use a virtual environment with Python and the stamps about quarto command, please set $Q_VenvActivateBinPath. Before calling quarto commands, the stamps activate the virtual environment.
Make sub-project folder
Make a note for the sub-project with pSubfolderManuscript like this ( quartomanuscript ).
Make notes
The manuscript has only one qmd file. The qmd file name is set in quarto.yml (quarto_manuscript).
Front Matter and Subnote
pFrontmatterManuscript
This is a qmd file that contains a Front Matter. When you export, it has contents of descendants. You can set data for author(s) with the path of note with pAuther notes. ( like Authors )
pSubnoteManuscript
This is a dummy file for pFrontmatterManuscript. The markdown level depends on the indent level and
$OutlineBaseControlof of the subproject folder.
($OutlineDepthBase + $OutlineBaseControl(collect(ancestors,$Path)[-1])) * "#"
Export and Render
Export
You have to export quarto.yml ( _quartomanuscript ) and one qmd ( main ) in the sub-project folder.
Activate a virtual environment
if you use a virtual environment, activate it. e.g.
```zsh
poetry shell ```
- Render sub-project
```zsh
quarto render "your project name"
quarto render myproject
For preview
quarto preview myproject --to html ```
revealjs format
Make a New revealjs Project
you can start with the stamp that makes a new revealjs project. A revealjs project can have multiple projects in one file.

If you use a virtual environment with Python and the stamps about quarto command, please set $Q_VenvActivateBinPath. Before calling quarto commands, the stamps activate the virtual environment.
Make sub-project folder
Make a note for the sub-project with pSubfolderRevealjs .
Front Matter and Subnote
pFrontmatterRevealjs
This is a qmd file that contains a Front Matter. When you export, it has descendants' contents.
pSubnoteRevealjs
This is a dummy file for pFrontmatterRevealjs. The markdown level depends on the indent level and
$OutlineBaseControlof the subproject folder.
($OutlineDepthBase + $OutlineBaseControl(collect(ancestors,$Path)[-1])) * "#"
Quote chunk code blocks
You can chunk code blocks with a quote tag like the one below from a child note (pRChunk or pPChunk). Lang:chunknotename
quarto-live extention (β version)
This file supports quarto-live. You add the quarto-live extension to your subproject path. (If you add it to the project root folder and call it with a relative path, an error will occur.)
Example
Mermaid flowchart
This file can generate Mermaid flowchart from notes, links.
Container notes -> Subgraphs ( pMFSubgraph )
Non Container notes -> Nodes ( pMFNode)
Work Flow is a sample of Mermaid flowchart.
Please check it in Map view.
You need to use pre-release version [^chromeheadlessmodeissue]
[^chromeheadlessmodeissue]:Since the old headless mode has been removed from Chrome 132, Quarto v1.7.13 or later is required.(Transition to Chrome new headless mode · Issue #10532 · quarto-dev/quarto-cli)
How to use
You make a container noto for Flowchart and set pMFContainer.
You make notes ( pMFNode) and links.
You choose a direction for drawing like TD or LR.($M_Direction)
Run the stamp (
Mermaid: Make a Flowchart).Prototypes of container notes has a child note change from pMFNode to pMFContainer automatically by the stamp.
The note (pMFContainer) has the code for mermaid flowchart.
Supported shapes
rectangle (<- normal and other shapes)
rounded
oval
lozenge
diamond
hex

Supported line types (Priority)
normal --> (4th)
bold ==> (3rd)
dotted -.-> (2nd)
invisible ~~~ (1st)
Supported arrow types
- arrow only
Example
mermaid
%%| label: fig-flowchart
%%| fig-width: 5
flowchart TB
A["Christmas"] -->|"Get money"| B["Go shopping"]
B["Go shopping"] --> Sub1["Let me think"]
C["Laptop"]
D["iPhone"]
E["Car"]
subgraph Sub1["Let me think"]
C
D
E
end
subgraph Sub2["Subgraph"]
A
B
Sub1
end
Sub1["Let me think"] -->|"One"| C["Laptop"]
Sub1["Let me think"] -->|"Two"| D["iPhone"]
Sub1["Let me think"] -->|"Three"| E["Car"]
%% Styles & Links
style Sub2 fill:#eeebe9,color:#000000,stroke:#dc490b,stroke-width:2px
Graphviz β version
How to use
You make a container noto for the graph and set pGContainer.
You make notes ( pGNode) and links. You can't make links to cluster (subgraph).
You choose a direction for drawing like TB or LR.($GG_Rankdir)
You can choose a Layout Engin like
dot,neato,fdpand so on.Change attributes for Graphviz.
* Attributes starting with `GG_` are for the Subgraph ( cluster ) options
* Attributes starting with `GN_` are for the Note options
* Attributes starting with `GE_` are for the Edge options
Run the stamp (
Graphviz: Make a Dot graph).Prototypes of container notes have a child note change from pGNode to pGContainer automatically by the stamp.
The note (pGContainer) has the code for Graphviz.
Example
@fig-workflow-graphviz and @fig-Test.
```{dot} //| label: fig-Test //| fig-cap: Graphviz Test digraph { layout=dot compound=true graph [charset = "UTF-8" ]; subgraph cluster_A{ label="Cluster B" color="#000000" penwidth="1" style="filled" fillcolor="#ffffff" fontcolor="#000000" "node2" "node4" "node6" "node8" }
subgraph cluster_B{ label="Cluster A" color="#000000" penwidth="1" style="filled" fillcolor="#ffffff" fontcolor="#000000" "node1" "node3" "node5" "node7" }
"node2" [ style="filled" ] "node4" [ style="filled" ] "node6" [ style="filled" ] "node8" [ style="filled" ] "node1" [ style="filled" ] "node3" [ style="filled" ] "node5" [ style="filled" ] "node7" [ style="filled" ]
"node1" -> "node2" [label = "1" fillcolor="#ffffff" fontcolor="#000000" ] "node3" -> "node4" [label = "2" fillcolor="#ffffff" fontcolor="#000000" ltail = "clusterB" ] "node5" -> "node6" [label = "3" fillcolor="#ffffff" fontcolor="#000000" lhead = "clusterA" ] "node7" -> "node8" [label = "4" fillcolor="#ffffff" fontcolor="#000000" lhead = "clusterA" ltail = "clusterB" ] } ```
References
Anderson, Mark. 2024. “A Tinderbox Reference File.” 2024. Wickham, Hadley, and Garrett Grolemund. 2016. R for Data Science: Import, Tidy, Transform, Visualize, and Model Data. “O’Reilly Media, Inc.”
Restrictions
It seems that the section label customization function cannot be used in the latest release ref. Cross-references on unnumbered pages fail (PDF) or are mislabeled (HTML).
If you turn on $IsUnnumbered and $HasSectionLabel, the display of the quote will be fixed to the number + title, so please turn off $IsUnnumbered.
Please do not use parentheses in note titles. The section label list is not being generated correctly.
Owner
- Login: fryagbye
- Kind: user
- Repositories: 1
- Profile: https://github.com/fryagbye
Citation (citation/references.bib)
@electronic{Anderson2024Tinde,
author = {Anderson, Mark},
title = {A Tinderbox Reference File},
year = {2024}, }
@Book{Wickham2016Data,
author = {Wickham, Hadley and Grolemund, Garrett},
title = {R for Data Science: Import, Tidy, Transform, Visualize, and Model Data},
pages = {432},
publisher = {``O'Reilly Media, Inc.''},
year = {2016},
abstract = {Learn how to use R to turn raw data into insight, knowledge, and understanding. This book introduces you to R, RStudio, and the tidyverse, a collection of R packages designed to work together to make data science fast, fluent, and fun. Suitable for readers with no previous programming experience, R for Data Science is designed to get you doing data science as quickly as possible. Authors Hadley Wickham and Garrett Grolemund guide you through the steps of importing, wrangling, exploring, and modeling your data and communicating the results. You'll get a complete, big-picture understanding of the data science cycle, along with basic tools you need to manage the details. Each section of the book is paired with exercises to help you practice what you've learned along the way. You'll learn how to: Wrangle---transform your datasets into a form convenient for analysis Program---learn powerful R tools for solving data problems with greater clarity and ease Explore---examine your data, generate hypotheses, and quickly test them Model---provide a low-dimensional summary that captures true ``signals'' in your dataset Communicate---learn R Markdown for integrating prose, code, and results},
keywords = {Computers},}
GitHub Events
Total
- Release event: 1
- Watch event: 7
- Delete event: 13
- Public event: 1
- Push event: 283
- Pull request event: 2
- Fork event: 2
- Create event: 39
Last Year
- Release event: 1
- Watch event: 7
- Delete event: 13
- Public event: 1
- Push event: 283
- Pull request event: 2
- Fork event: 2
- Create event: 39
Dependencies
- python ^3.12
- attrs 24.3.0
- cffi 1.17.1
- click 8.1.7
- colorama 0.4.6
- contourpy 1.3.1
- cycler 0.12.1
- fastjsonschema 2.21.1
- fonttools 4.55.3
- greenlet 3.1.1
- importlib-metadata 8.5.0
- jsonschema 4.23.0
- jsonschema-specifications 2024.10.1
- jupyter-cache 1.0.1
- jupyter-client 8.6.3
- jupyter-core 5.7.2
- kaleido 0.2.1
- kiwisolver 1.4.7
- matplotlib 3.10.0
- nbclient 0.10.1
- nbformat 5.10.4
- numpy 2.2.0
- packaging 24.2
- pandas 2.2.3
- pillow 11.0.0
- platformdirs 4.3.6
- plotly 5.24.1
- pycparser 2.22
- pyparsing 3.2.0
- python-dateutil 2.9.0.post0
- pytz 2024.2
- pywin32 308
- pyyaml 6.0.2
- pyzmq 26.2.0
- referencing 0.35.1
- rpds-py 0.22.3
- six 1.17.0
- sqlalchemy 2.0.36
- tabulate 0.9.0
- tenacity 9.0.0
- tornado 6.4.2
- traitlets 5.14.3
- typing-extensions 4.12.2
- tzdata 2024.2
- zipp 3.21.0


