Compare commits

..

2 Commits

Author SHA1 Message Date
b4ee0760e3 typst added 2025-03-06 17:00:41 +01:00
9b4e271fdf one chapter only 2025-03-06 16:53:15 +01:00
11 changed files with 57 additions and 78 deletions

View File

@ -1,16 +0,0 @@
SoSe25:
14_Plot.html: die beiden Zeilen mit require.js, define jquery entfernen
für Plots/plotlyjs
Book25: Versuch ohne quarto-patch:
LaTeX: ansi in stdout not supported, Julia errors werden total
zerschossen
mit stdout-cell-support koennte ein eigener laufilter gehen, wenn der
vor dem quarto-latex-filter gerufen wird

View File

@ -1,16 +1,12 @@
title: Julia-color title: Julia-color
author: Meik Hellmund author: Meik Hellmund
version: 1.0.0 version: 1.0.0
quarto-required: ">=99.9.0" quarto-required: ">=1.6.0"
contributes: contributes:
formats: formats:
common:
filters:
- "ansi2htmltex.lua"
html: html:
monofont: "JuliaMono" monofont: "JuliaMono"
css: css:
- "resources/css/ansicolor.css"
- "resources/css/juliamono.css" - "resources/css/juliamono.css"
pdf: pdf:
include-in-header: include-in-header:

View File

@ -16,29 +16,28 @@
\DeclareRobustCommand{\lseries}{\fontseries{l}\selectfont} \DeclareRobustCommand{\lseries}{\fontseries{l}\selectfont}
\DeclareTextFontCommand{\textlight}{\lseries} \DeclareTextFontCommand{\textlight}{\lseries}
%\DefineVerbatimEnvironment{OutputCell}{Verbatim}%
\DefineVerbatimEnvironment{OutputCell}{Verbatim}% % {xleftmargin=1.5em}
{xleftmargin=1.5em} %\DefineVerbatimEnvironment{AnsiOutputCell}{Verbatim}%
\DefineVerbatimEnvironment{AnsiOutputCell}{Verbatim}% % {commandchars=\\\{\}, xleftmargin=1.5em}
{commandchars=\\\{\}, xleftmargin=1.5em} %\DefineVerbatimEnvironment{StderrOutputCell}{Verbatim}%
\DefineVerbatimEnvironment{StderrOutputCell}{Verbatim}% % {commandchars=\\\{\}, xleftmargin=1.5em,frame=single,rulecolor=\color{red}}
{commandchars=\\\{\}, xleftmargin=1.5em,frame=single,rulecolor=\color{red}} %
%\definecolor{ansi-black}{HTML}{3E424D}
\definecolor{ansi-black}{HTML}{3E424D} %\definecolor{ansi-black-intense}{HTML}{282C36}
\definecolor{ansi-black-intense}{HTML}{282C36} %\definecolor{ansi-red}{HTML}{E75C58}
\definecolor{ansi-red}{HTML}{E75C58} %\definecolor{ansi-red-intense}{HTML}{B22B31}
\definecolor{ansi-red-intense}{HTML}{B22B31} %\definecolor{ansi-green}{HTML}{00A250}
\definecolor{ansi-green}{HTML}{00A250} %\definecolor{ansi-green-intense}{HTML}{007427}
\definecolor{ansi-green-intense}{HTML}{007427} %\definecolor{ansi-yellow}{HTML}{DDB62B}
\definecolor{ansi-yellow}{HTML}{DDB62B} %\definecolor{ansi-yellow-intense}{HTML}{B27D12}
\definecolor{ansi-yellow-intense}{HTML}{B27D12} %\definecolor{ansi-blue}{HTML}{208FFB}
\definecolor{ansi-blue}{HTML}{208FFB} %\definecolor{ansi-blue-intense}{HTML}{0065CA}
\definecolor{ansi-blue-intense}{HTML}{0065CA} %\definecolor{ansi-magenta}{HTML}{D160C4}
\definecolor{ansi-magenta}{HTML}{D160C4} %\definecolor{ansi-magenta-intense}{HTML}{A03196}
\definecolor{ansi-magenta-intense}{HTML}{A03196} %\definecolor{ansi-cyan}{HTML}{60C6C8}
\definecolor{ansi-cyan}{HTML}{60C6C8} %\definecolor{ansi-cyan-intense}{HTML}{258F8F}
\definecolor{ansi-cyan-intense}{HTML}{258F8F} %\definecolor{ansi-white}{HTML}{C5C1B4}
\definecolor{ansi-white}{HTML}{C5C1B4} %\definecolor{ansi-white-intense}{HTML}{A1A6B2}
\definecolor{ansi-white-intense}{HTML}{A1A6B2} %\definecolor{ansi-default-inverse-fg}{HTML}{FFFFFF}
\definecolor{ansi-default-inverse-fg}{HTML}{FFFFFF} %\definecolor{ansi-default-inverse-bg}{HTML}{000000}
\definecolor{ansi-default-inverse-bg}{HTML}{000000}

View File

@ -40,22 +40,22 @@ book:
chapters: chapters:
- index.qmd - index.qmd
- chapters/entwicklungsumgebungen.qmd #- chapters/entwicklungsumgebungen.qmd
- chapters/first_contact.qmd #- chapters/first_contact.qmd
- chapters/Erste_Bsp.qmd #- chapters/Erste_Bsp.qmd
- chapters/syntax.qmd #- chapters/syntax.qmd
- chapters/5_TricksHelp.qmd #- chapters/5_TricksHelp.qmd
- chapters/numerictypes.qmd - chapters/numerictypes.qmd
- chapters/Pi2.qmd #- chapters/Pi2.qmd
- chapters/types.qmd #- chapters/types.qmd
- chapters/pcomplex.qmd #- chapters/pcomplex.qmd
- chapters/9_functs.qmd #- chapters/9_functs.qmd
- chapters/6_ArraysEtcP1.qmd #- chapters/6_ArraysEtcP1.qmd
- chapters/7_ArraysP2.qmd #- chapters/7_ArraysP2.qmd
- chapters/11_LinAlg.qmd #- chapters/11_LinAlg.qmd
- chapters/10_Strings.qmd #- chapters/10_Strings.qmd
- chapters/13_IO.qmd #- chapters/13_IO.qmd
- chapters/14_Plot.qmd #- chapters/14_Plot.qmd
# - chapters/makie.qmd # - chapters/makie.qmd
@ -66,7 +66,8 @@ format:
dark: [superhero, css/dark.scss] dark: [superhero, css/dark.scss]
css: css:
- css/styles.css - css/styles.css
- css/roboto-condensed.css - css/roboto-condensed.css
highlight-style: github # arrow ????? highlight-style: github # arrow ?????
mainfont: "Roboto Condensed" # Ubuntu # "Atkinson Hyperlegible" # Verdana #Quicksand mainfont: "Roboto Condensed" # Ubuntu # "Atkinson Hyperlegible" # Verdana #Quicksand
toc: true # change for Vorlesung toc: true # change for Vorlesung
@ -104,7 +105,10 @@ format:
code-overflow: wrap code-overflow: wrap
include-in-header: include-in-header:
- file: macros.tex - file: macros.tex
typst:
toc: true
latex-auto-install: false latex-auto-install: false
execute: execute:
@ -116,13 +120,13 @@ execute:
eval: true eval: true
freeze: auto freeze: auto
daemon: 3600 daemon: 3600
preserve-ansi: true #preserve-ansi: true
keep-ipynb: true keep-ipynb: true
keep-tex: true keep-tex: true
keep-md: true keep-md: true
jupyter: julia-1.10 #jupyter: julia-1.10
filters: filters:
- code-visibility - code-visibility

View File

@ -32,7 +32,7 @@ $ julia
(_) | (_) (_) | (_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | | | | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.11.4 (2025-03-10) | | |_| | | | (_| | | Version 1.11.3 (2025-01-21)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ | |__/ |

View File

@ -321,7 +321,7 @@ Die Darstellung mit genau einer Ziffer ungleich Null vor dem Komma ist die __No
$$ $$
(10)_b = b> m \ge 1. (10)_b = b> m \ge 1.
$$ $$
- Bei Binärzahlen `1.01101` ist diese Ziffer immer gleich Eins und man kann auf das Abspeichern dieser Ziffer verzichten. Diese tatsächlich abgespeicherte (gekürzte) Mantisse bezeichnen wir mit $M$, so dass - Bei Binärzahlen `1.01101`: ist diese Ziffer immer gleich Eins und man kann auf das Abspeichern dieser Ziffer verzichten. Diese tatsächlich abgespeicherte (gekürzte) Mantisse bezeichnen wir mit $M$, so dass
$$m = 1 + M$$ $$m = 1 + M$$
gilt. gilt.

View File

@ -17,6 +17,7 @@ Base.active_module() = myactive_module()
# https://github.com/JuliaLang/julia/blob/master/base/show.jl#L3073-L3077 # https://github.com/JuliaLang/julia/blob/master/base/show.jl#L3073-L3077
``` ```
# Ein Fallbeispiel: Der parametrisierte Datentyp PComplex
Wir wollen als neuen numerischen Typen **komplexe Zahlen in Polardarstellung $z=r e^{i\phi}=(r,ϕ)$** einführen. Wir wollen als neuen numerischen Typen **komplexe Zahlen in Polardarstellung $z=r e^{i\phi}=(r,ϕ)$** einführen.

View File

@ -494,7 +494,7 @@ Wenn man solche Zuweisungen mit `const` für dauerhaft erklärt, entsteht ein
```{julia} ```{julia}
const MyCmplxF64 = MyComplex{Float64} const MyCmplxF64 = MyComplex{Float64}
z = MyCmplxF64(1.1, 2.2) z = MyComplex(1.1, 2.2)
typeof(z) typeof(z)
``` ```

View File

@ -5,8 +5,6 @@ $h3-font-size: 1.2rem !default;
$border-radius: 0; $border-radius: 0;
$font-family-monospace: "JuliaMono";
/* bug in superhero theme? */ /* bug in superhero theme? */
h1,h2,h3,h4,h5,h6 {color: #f0f0f0 !important;} h1,h2,h3,h4,h5,h6 {color: #f0f0f0 !important;}
@ -15,7 +13,6 @@ h1,h2,h3,h4,h5,h6 {color: #f0f0f0 !important;}
.cell-output code span {color: #000;} .cell-output code span {color: #000;}
/*-- scss:rules --*/ /*-- scss:rules --*/
div.cell-output { background-color: #dbdbdb; } div.cell-output { background-color: #dbdbdb; }

View File

@ -8,8 +8,6 @@ $border-radius: 0;
/* $code-block-bg: #f3f3f3; */ /* $code-block-bg: #f3f3f3; */
$code-block-bg: #f7f7f7; $code-block-bg: #f7f7f7;
$font-family-monospace: "JuliaMono";
/*-- scss:rules --*/ /*-- scss:rules --*/
div.cell-output { background-color: #ffffff; } div.cell-output { background-color: #ffffff; }
code {color: #202020;} code {color: #202020;}

View File

@ -37,12 +37,12 @@ f
- 2009 Beginn der Entwicklung am *Computer Science and Artificial - 2009 Beginn der Entwicklung am *Computer Science and Artificial
Intelligence Laboratory* des MIT Intelligence Laboratory* des MIT
- 2012 erste Release v0.1 - 2012 erste release v0.1
- 2018 Version v1.0 - 2018 Version v1.0
- aktuell: v1.11.4 vom 10. März 2025 - aktuell: v1.11.3 vom 21. Januar 2025
Zum ersten Release 2012 haben die Schöpfer von Julia ihre Ziele und Motivation in dem Blogbeitrag [Why we created Julia](https://julialang.org/blog/2012/02/why-we-created-julia/) Zum ersten release 2012 haben die Schöpfer von Julia ihre Ziele und Motivation in dem Blogbeitrag [Why we created Julia](https://julialang.org/blog/2012/02/why-we-created-julia/)
interessant zusammengefasst. interessant zusammengefasst.
Für ein Bild von *Stefan Karpinski, Viral Shah, Jeff Für ein Bild von *Stefan Karpinski, Viral Shah, Jeff
Bezanson* und *Alan Edelman* bitte hier klicken: <https://news.mit.edu/2018/julia-language-co-creators-win-james-wilkinson-prize-numerical-software-1226>. Bezanson* und *Alan Edelman* bitte hier klicken: <https://news.mit.edu/2018/julia-language-co-creators-win-james-wilkinson-prize-numerical-software-1226>.