Limbic system class predestination i want 15 slides matter

Reading File
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Running Command

mkdir -p /home/daytona/workspace/limbic-system-pptx && ls /home/daytona/workspac…

Writing File

~/limbic-system-pptx/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "The Limbic System";
pres.author = "Neuroscience Class";

// ─── Color Palette ───────────────────────────────────────────────
const DARK_BG   = "0D1B2A";   // deep navy
const MID_BG    = "1B2A3B";   // dark teal-navy
const ACCENT1   = "4FC3C3";   // teal
const ACCENT2   = "F5A623";   // amber
const WHITE     = "FFFFFF";
const LIGHT_TXT = "D0E8F2";
const DIM_TXT   = "8AB4C9";
const CARD_BG   = "162233";

// ─── Helpers ─────────────────────────────────────────────────────
function headerBar(slide, title, subtitle) {
  // dark top bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: 1.1,
    fill: { color: DARK_BG }
  });
  slide.addText(title, {
    x: 0.35, y: 0.08, w: 9.3, h: 0.55,
    fontSize: 26, bold: true, color: ACCENT1,
    fontFace: "Calibri", margin: 0
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.35, y: 0.65, w: 9.3, h: 0.35,
      fontSize: 13, color: DIM_TXT, fontFace: "Calibri", margin: 0
    });
  }
  // accent line
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 1.1, w: "100%", h: 0.045,
    fill: { color: ACCENT1 }
  });
}

function footer(slide, source) {
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 5.35, w: "100%", h: 0.275,
    fill: { color: DARK_BG }
  });
  slide.addText(source || "Sources: Guyton & Hall | Kaplan & Sadock | Neuroanatomy through Clinical Cases | Gray's Anatomy", {
    x: 0.3, y: 5.37, w: 9.4, h: 0.22,
    fontSize: 8.5, color: DIM_TXT, fontFace: "Calibri", margin: 0
  });
}

function card(slide, x, y, w, h, title, bullets, titleColor) {
  slide.addShape(pres.ShapeType.rect, {
    x, y, w, h,
    fill: { color: CARD_BG },
    line: { color: ACCENT1, width: 1 }
  });
  slide.addText(title, {
    x: x + 0.12, y: y + 0.07, w: w - 0.24, h: 0.35,
    fontSize: 13, bold: true, color: titleColor || ACCENT2,
    fontFace: "Calibri", margin: 0
  });
  const items = bullets.map((b, i) => ({
    text: b,
    options: { bullet: { type: "bullet" }, breakLine: i < bullets.length - 1,
               fontSize: 10.5, color: LIGHT_TXT, fontFace: "Calibri" }
  }));
  slide.addText(items, {
    x: x + 0.12, y: y + 0.44, w: w - 0.24, h: h - 0.54,
    valign: "top", margin: 0
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 1 — Title
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: DARK_BG };

  // large circle decoration
  s.addShape(pres.ShapeType.ellipse, {
    x: 6.8, y: -1.0, w: 5.5, h: 5.5,
    fill: { color: MID_BG }, line: { color: ACCENT1, width: 2 }
  });
  s.addShape(pres.ShapeType.ellipse, {
    x: 7.5, y: -0.4, w: 4.1, h: 4.1,
    fill: { color: "1E3247" }, line: { color: ACCENT1, width: 1 }
  });

  s.addText("THE LIMBIC SYSTEM", {
    x: 0.5, y: 1.2, w: 6.5, h: 0.9,
    fontSize: 40, bold: true, color: WHITE,
    fontFace: "Calibri", charSpacing: 4, margin: 0
  });
  s.addShape(pres.ShapeType.rect, {
    x: 0.5, y: 2.18, w: 2.8, h: 0.055,
    fill: { color: ACCENT1 }
  });
  s.addText("The Neural Seat of Emotion, Memory & Behavior", {
    x: 0.5, y: 2.28, w: 6.5, h: 0.45,
    fontSize: 17, color: LIGHT_TXT, fontFace: "Calibri", italic: true, margin: 0
  });
  s.addText("Neuroanatomy & Physiology", {
    x: 0.5, y: 3.0, w: 4, h: 0.35,
    fontSize: 13, color: ACCENT2, fontFace: "Calibri", bold: true, margin: 0
  });
  s.addText("Limbic System — Class Presentation", {
    x: 0.5, y: 5.1, w: 5, h: 0.3,
    fontSize: 10, color: DIM_TXT, fontFace: "Calibri", margin: 0
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 2 — What Is the Limbic System?
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "What Is the Limbic System?", "Definition & Etymology");

  s.addText([
    { text: "The word ", options: { color: LIGHT_TXT } },
    { text: '"limbic"', options: { color: ACCENT1, bold: true } },
    { text: ' derives from the Latin ', options: { color: LIGHT_TXT } },
    { text: 'limbus', options: { color: ACCENT2, italic: true, bold: true } },
    { text: ' — meaning "border" or "rim."', options: { color: LIGHT_TXT } }
  ], {
    x: 0.4, y: 1.25, w: 9.2, h: 0.45,
    fontSize: 14, fontFace: "Calibri", margin: 0
  });

  const points = [
    "Paul Broca (19th c.) applied 'limbic' to the curved rim of cortex at the junction of the diencephalon and cerebral hemispheres — the cingulate and parahippocampal gyri.",
    "James Papez (1937) proposed these cortical areas, linked to the hippocampus, mammillary bodies, and anterior thalamus, form a circuit mediating emotional behavior.",
    "Paul MacLean (1952) coined 'limbic system' to encompass Broca's limbic lobe plus related subcortical nuclei as the neural substrate for emotion.",
    "Today the term describes circuitry linking telencephalic structures with the hypothalamus to control autonomic, somatic, and endocrine responses to emotions."
  ];
  const items = points.map((p, i) => ({
    text: "  " + p,
    options: { bullet: { type: "bullet" }, breakLine: i < points.length - 1,
               fontSize: 12, color: LIGHT_TXT, fontFace: "Calibri" }
  }));
  s.addText(items, { x: 0.4, y: 1.78, w: 9.2, h: 3.45, valign: "top", margin: 0 });
  footer(s);
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 3 — Key Components (Table-Style Cards)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Key Components of the Limbic System", "The HOME Mnemonic: Homeostasis · Olfaction · Memory · Emotion");

  const comps = [
    { t: "Limbic Cortex", b: ["Cingulate gyrus", "Parahippocampal gyrus", "Medial orbitofrontal cortex", "Temporal pole, Anterior insula"] },
    { t: "Hippocampal Formation", b: ["Dentate gyrus", "Hippocampus (CA1–CA3)", "Subiculum", "Entorhinal cortex (input/output)"] },
    { t: "Amygdala", b: ["Basolateral complex", "Centromedial amygdala", "Olfactory (cortical) group", "Extended amygdala"] },
    { t: "Diencephalon", b: ["Hypothalamus (master hub)", "Anterior thalamic nucleus", "Mediodorsal nucleus", "Habenula"] },
    { t: "Basal Forebrain & Ganglia", b: ["Septal nuclei", "Nucleus accumbens", "Ventral striatum", "Ventral pallidum"] },
    { t: "Olfactory System", b: ["Olfactory bulb", "Olfactory cortex (piriform)", "Direct cortical access (no thalamic relay)", "Evolutionarily oldest input"] },
  ];

  const cw = 3.1, ch = 1.55;
  const positions = [
    [0.25, 1.2], [3.45, 1.2], [6.65, 1.2],
    [0.25, 2.88], [3.45, 2.88], [6.65, 2.88]
  ];
  comps.forEach((c, i) => {
    card(s, positions[i][0], positions[i][1], cw, ch, c.t, c.b);
  });
  footer(s, "Source: Neuroanatomy through Clinical Cases (Table 18.1) | Kaplan & Sadock");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 4 — Gross Anatomy & Location
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Gross Anatomy & Location", "Medial and Ventral Surfaces of the Cerebral Hemispheres");

  s.addText([
    { text: "The limbic system occupies the ", options: { color: LIGHT_TXT } },
    { text: "medial and ventral surfaces", options: { color: ACCENT1, bold: true } },
    { text: " of each cerebral hemisphere, forming a ring of mostly paleocortex around deep subcortical nuclei.", options: { color: LIGHT_TXT } }
  ], { x: 0.4, y: 1.25, w: 9.2, h: 0.5, fontSize: 13, fontFace: "Calibri", margin: 0 });

  const rows = [
    ["Region", "Location"],
    ["Orbitofrontal area", "Ventral surface of frontal lobes"],
    ["Subcallosal gyrus", "Anterior, below genu of corpus callosum"],
    ["Cingulate gyrus", "Dorsal to corpus callosum — C-shaped course"],
    ["Parahippocampal gyrus", "Medial temporal lobe, includes entorhinal cortex"],
    ["Hippocampal formation", "Floor of temporal horn of lateral ventricle"],
    ["Amygdala", "Medial temporal lobe, anterior to hippocampus"],
    ["Hypothalamus", "Diencephalon — ≤4 g; central hub"],
  ];
  s.addTable(rows, {
    x: 0.4, y: 1.85, w: 9.2, h: 3.4,
    rowH: 0.38,
    border: { type: "solid", color: ACCENT1, pt: 0.5 },
    fill: CARD_BG,
    color: LIGHT_TXT,
    fontFace: "Calibri",
    fontSize: 11,
    align: "left",
    valign: "middle",
  });
  footer(s, "Source: Guyton & Hall, Ch.59 | Gray's Anatomy for Students");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 5 — The Papez Circuit
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "The Papez Circuit", "James Papez (1937) — The Emotional Circuit");

  s.addText("Papez proposed a closed loop linking cortical and subcortical structures as the neural basis of emotional experience and expression.", {
    x: 0.4, y: 1.25, w: 9.2, h: 0.45, fontSize: 13, color: LIGHT_TXT, fontFace: "Calibri", margin: 0
  });

  // Circuit flow boxes
  const nodes = [
    { label: "Hippocampus", x: 1.0, y: 2.0 },
    { label: "Fornix\n(white matter tract)", x: 3.2, y: 2.0 },
    { label: "Mammillary\nBodies", x: 5.4, y: 2.0 },
    { label: "Anterior\nThalamus", x: 7.6, y: 2.0 },
    { label: "Cingulate\nGyrus", x: 7.6, y: 3.5 },
    { label: "Entorhinal\nCortex", x: 5.4, y: 3.5 },
    { label: "Hippocampus\n(completes loop)", x: 3.2, y: 3.5 },
  ];

  nodes.forEach(n => {
    s.addShape(pres.ShapeType.roundRect, {
      x: n.x, y: n.y, w: 1.95, h: 0.82,
      rectRadius: 0.08,
      fill: { color: DARK_BG },
      line: { color: ACCENT1, width: 1.5 }
    });
    s.addText(n.label, {
      x: n.x, y: n.y, w: 1.95, h: 0.82,
      fontSize: 10.5, color: WHITE, fontFace: "Calibri",
      align: "center", valign: "middle", margin: 0
    });
  });

  // horizontal arrows row1
  [[2.95, 2.37], [5.15, 2.37], [7.35, 2.37]].forEach(([ax, ay]) => {
    s.addShape(pres.ShapeType.line, { x: ax, y: ay, w: 0.22, h: 0, line: { color: ACCENT2, width: 2 } });
  });
  // down arrow
  s.addShape(pres.ShapeType.line, { x: 8.575, y: 2.82, w: 0, h: 0.68, line: { color: ACCENT2, width: 2 } });
  // horizontal arrows row2 (reversed)
  [[7.35, 3.9], [5.15, 3.9], [2.95, 3.9]].forEach(([ax, ay]) => {
    s.addShape(pres.ShapeType.line, { x: ax, y: ay, w: 0.22, h: 0, line: { color: ACCENT2, width: 2 } });
  });

  s.addText("Clinical note: Damage to any node in this circuit (e.g., mammillary bodies in Wernicke-Korsakoff syndrome) disrupts emotional memory consolidation.", {
    x: 0.4, y: 4.55, w: 9.2, h: 0.65,
    fontSize: 11, color: ACCENT2, fontFace: "Calibri", italic: true, margin: 0
  });
  footer(s, "Source: Kaplan & Sadock | Adams & Victor's Principles of Neurology");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 6 — The Hippocampus
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "The Hippocampus", "Memory Formation & Spatial Navigation");

  const left = [
    { heading: "Structure", pts: [
      "C-shaped trilaminate cortex in the temporal horn of the lateral ventricle",
      "Fields: CA1, CA2, CA3 (Cornu Ammonis) + Dentate Gyrus + Subiculum",
      "Dentate gyrus (granule cells) → mossy fibers → CA3 pyramidal cells",
      "CA3 → Schaffer collaterals → CA1 → Subiculum → Entorhinal cortex"
    ]},
    { heading: "Function", pts: [
      "Converts short-term to long-term declarative memory (explicit memory)",
      "Spatial navigation and cognitive mapping",
      "HM (Henry Molaison): bilateral hippocampal removal caused anterograde amnesia",
      "Hippocampus stores context; amygdala stores emotional valence of memories"
    ]}
  ];

  let yPos = 1.25;
  left.forEach(sec => {
    s.addText(sec.heading, {
      x: 0.4, y: yPos, w: 9.2, h: 0.32,
      fontSize: 13, bold: true, color: ACCENT1, fontFace: "Calibri", margin: 0
    });
    yPos += 0.34;
    const items = sec.pts.map((p, i) => ({
      text: p,
      options: { bullet: { type: "bullet" }, breakLine: i < sec.pts.length - 1,
                 fontSize: 11.5, color: LIGHT_TXT, fontFace: "Calibri" }
    }));
    s.addText(items, { x: 0.5, y: yPos, w: 9.0, h: sec.pts.length * 0.38, valign: "top", margin: 0 });
    yPos += sec.pts.length * 0.38 + 0.1;
  });
  footer(s, "Source: Kaplan & Sadock | Ganong's Review | Guyton & Hall");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 7 — The Amygdala
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "The Amygdala", "Fear, Emotion & Threat Detection");

  const nuclei = [
    { t: "Basolateral Complex (BLC)", b: ["Largest group; cortex-like connectivity", "Receives multimodal sensory input", "Projects to striatum, prefrontal cortex", "Bidirectional connections with mediodorsal thalamus", "CB1 receptor-rich — target for anxiety modulation"] },
    { t: "Centromedial Amygdala", b: ["Output nucleus of the amygdala", "Part of the extended amygdala", "Connected to brainstem viscerosensory areas", "Controls autonomic fear responses (HR, BP)", "Projects to hypothalamus — endocrine output"] },
    { t: "Clinical Significance", b: ["Fear conditioning: CS (tone) + US (shock) → fear via BLC", "Kluver-Bucy syndrome: bilateral removal → loss of fear, hypersexuality, hyperorality", "Overactive in PTSD, anxiety disorders, depression", "DBS targets amygdala-connected circuits in treatment-resistant depression"] },
  ];

  const cw = 2.95, ch = 3.2;
  const cx = [0.25, 3.3, 6.35];
  nuclei.forEach((n, i) => card(s, cx[i], 1.25, cw, ch, n.t, n.b));
  footer(s, "Source: Kaplan & Sadock | Neuroscience: Exploring the Brain");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 8 — The Hypothalamus
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "The Hypothalamus", "Master Hub of the Limbic System");

  s.addText("Weighing only ~4 g (<1% of brain mass), the hypothalamus controls autonomic, endocrine, and emotional output through bidirectional pathways to all limbic levels.", {
    x: 0.4, y: 1.25, w: 9.2, h: 0.55, fontSize: 12.5, color: LIGHT_TXT, fontFace: "Calibri", margin: 0
  });

  const cols = [
    { t: "Three Output Directions", b: [
      "1. Backward/downward → brainstem reticular areas → autonomic nervous system",
      "2. Upward → anterior thalamus and limbic cortex",
      "3. Infundibulum → posterior & anterior pituitary (endocrine control)"
    ]},
    { t: "Functional Zones", b: [
      "Supraoptic region: suprachiasmatic (circadian), supraoptic & paraventricular nuclei (ADH, oxytocin)",
      "Infundibular (tuberal): arcuate nucleus, releasing hormones for anterior pituitary",
      "Mammillary region: mammillary bodies (Papez circuit)"
    ]},
    { t: "Vegetative Functions", b: [
      "Temperature regulation (anterior = heat loss; posterior = heat conservation)",
      "Hunger & satiety (lateral = hunger; ventromedial = satiety)",
      "Thirst & water balance, sleep-wake cycles, sexual behavior",
      "Medial forebrain bundle: key limbic-brainstem communication highway"
    ]},
  ];

  const cw = 2.95, ch = 3.0;
  const cx = [0.25, 3.3, 6.35];
  cols.forEach((c, i) => card(s, cx[i], 1.9, cw, ch, c.t, c.b));
  footer(s, "Source: Guyton & Hall, Ch.59 | Kaplan & Sadock");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 9 — Cingulate Gyrus & Limbic Cortex
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Cingulate Gyrus & Limbic Cortex", "Emotional Processing, Pain Affect & Cognition");

  const rows2 = [
    ["Subdivision", "Brodmann Areas", "Key Functions"],
    ["Subgenual ACC (sACC)", "BA25, parts of BA32 & 24", "Mood regulation; overactive in depression; DBS target"],
    ["Pregenual ACC (pACC)", "BA24 (rostral)", "Emotional appraisal, conflict monitoring"],
    ["Midcingulate Cortex (MCC)", "BA24 (caudal), BA32", "Pain affect, response selection, cognitive control"],
    ["Posterior Cingulate (PCC)", "BA23, 31", "Self-referential processing, episodic memory retrieval"],
    ["Retrosplenial (RSC)", "BA29, 30", "Navigation, memory consolidation"],
    ["Parahippocampal Gyrus", "Includes entorhinal cortex", "Gateway to hippocampal memory circuits"],
  ];

  s.addTable(rows2, {
    x: 0.25, y: 1.3, w: 9.5, h: 3.9,
    rowH: 0.48,
    border: { type: "solid", color: ACCENT1, pt: 0.5 },
    fill: CARD_BG,
    color: LIGHT_TXT,
    fontFace: "Calibri",
    fontSize: 10.5,
    align: "left",
    valign: "middle",
  });
  footer(s, "Source: Kaplan & Sadock | Adams & Victor");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 10 — Septal Area, Habenula & Basal Forebrain
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Septal Area, Habenula & Basal Forebrain", "Anxiety, Reward & Neuromodulation");

  const cards = [
    { t: "Septal Area", b: [
      "Located above the anterior commissure",
      "Reciprocal connections with hippocampus, amygdala, hypothalamus",
      "Septohippocampal pathway: key circuit for regulation of anxiety",
      "Lesion → increased aggression and hypersexuality (septal rage)"
    ]},
    { t: "Habenula", b: [
      "Technically part of epithalamus but functionally limbic",
      "Lateral habenula: hub connecting limbic, basal ganglia, and brainstem",
      "Projects to raphe (5-HT) and VTA (dopamine)",
      "Implicated in mood regulation; hyperactive in depression",
      "Emerging DBS target for treatment-resistant depression"
    ]},
    { t: "Nucleus Accumbens & Basal Forebrain", b: [
      "Nucleus accumbens (ventral striatum): reward, pleasure, addiction",
      "Receives dopaminergic input from VTA (mesolimbic pathway)",
      "Basal forebrain cholinergic neurons project to hippocampus & cortex",
      "Critical for arousal, attention, and memory consolidation"
    ]},
  ];
  const cw = 2.95, ch = 3.3;
  const cx = [0.25, 3.3, 6.35];
  cards.forEach((c, i) => card(s, cx[i], 1.25, cw, ch, c.t, c.b));
  footer(s, "Source: Kaplan & Sadock | Guyton & Hall");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 11 — Limbic Connections & Pathways
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Major Limbic Pathways & Connections", "White Matter Tracts Linking the System");

  const tracts = [
    ["Pathway / Tract", "Connects", "Function"],
    ["Fornix", "Hippocampus → Mammillary bodies → Anterior thalamus", "Core Papez circuit; memory relay"],
    ["Medial Forebrain Bundle (MFB)", "Septal/orbitofrontal areas ↔ Hypothalamus ↔ Brainstem reticular formation", "Bidirectional limbic-brainstem communication; reward"],
    ["Stria Terminalis", "Amygdala → BNST, Hypothalamus, Thalamus", "Slow neuroendocrine fear/stress response"],
    ["Ventral Amygdalofugal Pathway", "Amygdala → Hypothalamus, Nucleus accumbens, Brainstem", "Fast autonomic emotional response"],
    ["Cingulum Bundle", "Cingulate gyrus ↔ Parahippocampal gyrus ↔ Hippocampus", "Memory and emotion integration"],
    ["Uncinate Fasciculus", "Orbitofrontal cortex ↔ Temporal pole (amygdala)", "Emotional valuation of stimuli; implicated in sACC DBS"],
  ];
  s.addTable(tracts, {
    x: 0.25, y: 1.3, w: 9.5, h: 3.9,
    rowH: 0.52,
    border: { type: "solid", color: ACCENT1, pt: 0.5 },
    fill: CARD_BG,
    color: LIGHT_TXT,
    fontFace: "Calibri",
    fontSize: 10,
    align: "left",
    valign: "middle",
  });
  footer(s, "Source: Kaplan & Sadock | Neuroanatomy through Clinical Cases");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 12 — Functions: HOME Framework
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Limbic System Functions — HOME", "Homeostasis · Olfaction · Memory · Emotion");

  const fns = [
    { letter: "H", word: "HOMEOSTASIS", color: "4FC3C3", pts: [
      "Hypothalamus: temperature, osmolality, hunger, thirst, circadian rhythm",
      "Endocrine: pituitary axis (HPA, HPG, HPT)",
      "Autonomic: sympathetic/parasympathetic balance"
    ]},
    { letter: "O", word: "OLFACTION", color: "F5A623", pts: [
      "Only sense without a thalamic relay to cortex",
      "Olfactory bulb → piriform cortex → amygdala, entorhinal cortex",
      "Strong link to memory (Proust phenomenon) and emotion"
    ]},
    { letter: "M", word: "MEMORY", color: "7BD5A4", pts: [
      "Hippocampus: declarative (explicit) memory consolidation",
      "Amygdala: emotional memory (fear conditioning)",
      "Basal forebrain cholinergic system: attention & consolidation"
    ]},
    { letter: "E", word: "EMOTION", color: "E87DAB", pts: [
      "Amygdala: fear, threat, emotional valence",
      "Cingulate cortex: emotional regulation and conflict",
      "Nucleus accumbens: reward, motivation, pleasure"
    ]},
  ];

  const cw = 4.5, ch = 1.62;
  const positions = [[0.25, 1.25], [5.05, 1.25], [0.25, 2.97], [5.05, 2.97]];
  fns.forEach((f, i) => {
    const [bx, by] = positions[i];
    s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: cw, h: ch, fill: { color: CARD_BG }, line: { color: f.color, width: 1.5 } });
    s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: 0.52, h: ch, fill: { color: f.color + "33" }, line: { color: f.color, width: 0 } });
    s.addText(f.letter, { x: bx + 0.01, y: by + 0.38, w: 0.5, h: 0.8, fontSize: 28, bold: true, color: f.color, fontFace: "Calibri", align: "center", margin: 0 });
    s.addText(f.word, { x: bx + 0.6, y: by + 0.06, w: cw - 0.7, h: 0.3, fontSize: 12, bold: true, color: f.color, fontFace: "Calibri", margin: 0 });
    const items = f.pts.map((p, j) => ({
      text: p,
      options: { bullet: { type: "bullet" }, breakLine: j < f.pts.length - 1, fontSize: 10, color: LIGHT_TXT, fontFace: "Calibri" }
    }));
    s.addText(items, { x: bx + 0.6, y: by + 0.38, w: cw - 0.7, h: ch - 0.46, valign: "top", margin: 0 });
  });
  footer(s, "Mnemonic from Neuroanatomy through Clinical Cases (Table 18.2)");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 13 — Limbic System & Emotions (Neuroscience)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Neurobiology of Emotion", "How the Limbic System Generates Emotional Experience");

  s.addText("Emotion arises from the interplay of cortical evaluation, subcortical arousal, and bodily feedback, coordinated by the limbic system.", {
    x: 0.4, y: 1.25, w: 9.2, h: 0.45, fontSize: 12.5, color: LIGHT_TXT, fontFace: "Calibri", italic: true, margin: 0
  });

  const topics = [
    { t: "Fear Circuit", b: ["Threat → Lateral amygdala (receives sensory input)", "Basolateral amygdala → Central amygdala (output)", "Central amygdala → Hypothalamus & brainstem → fight-or-flight (tachycardia, pupil dilation, stress hormones)", "Cortical modulation: prefrontal cortex inhibits amygdala for fear extinction"] },
    { t: "Reward & Motivation", b: ["VTA → Nucleus accumbens (mesolimbic dopamine pathway)", "Dopamine release = reward prediction signal", "Disruption → anhedonia (depression), addiction", "Lateral hypothalamus: feeding drive linked to reward circuitry"] },
    { t: "Stress Axis (HPA)", b: ["Amygdala activates → hypothalamus CRH → pituitary ACTH → adrenal cortisol", "Hippocampus has dense glucocorticoid receptors — provides negative feedback", "Chronic stress shrinks hippocampus (glucocorticoid toxicity)", "Explains memory and mood symptoms in PTSD and depression"] },
  ];
  const cw = 2.95, ch = 2.9;
  const cx = [0.25, 3.3, 6.35];
  topics.forEach((t, i) => card(s, cx[i], 1.82, cw, ch, t.t, t.b));
  footer(s, "Source: Neuroscience: Exploring the Brain | Kaplan & Sadock");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 14 — Clinical Correlates
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };
  headerBar(s, "Clinical Correlates of Limbic Dysfunction", "Lesions, Syndromes & Psychiatric Relevance");

  const rows3 = [
    ["Condition", "Structure(s) Involved", "Key Features"],
    ["Temporal Lobe Epilepsy (focal limbic seizure)", "Hippocampus, amygdala, parahippocampal gyrus", "Aura: olfactory hallucination, déjà vu, epigastric rising; automatisms"],
    ["Kluver-Bucy Syndrome", "Bilateral temporal lobes (amygdala)", "Hyperorality, hypersexuality, placidity, visual agnosia"],
    ["Wernicke-Korsakoff Syndrome", "Mammillary bodies, dorsomedial thalamus", "Anterograde amnesia, confabulation; thiamine deficiency"],
    ["Post-Traumatic Stress Disorder (PTSD)", "Amygdala (hyperactive), hippocampus (atrophy)", "Intrusive fear memories, exaggerated startle, HPA dysregulation"],
    ["Major Depression", "sACC (BA25) overactive, hippocampus atrophy", "Low mood, anhedonia; DBS of sACC/white matter effective in refractory cases"],
    ["Alzheimer's Disease", "Hippocampus + entorhinal cortex (early)", "Anterograde > retrograde memory loss; spatial disorientation"],
  ];
  s.addTable(rows3, {
    x: 0.2, y: 1.28, w: 9.6, h: 3.95,
    rowH: 0.52,
    border: { type: "solid", color: ACCENT1, pt: 0.5 },
    fill: CARD_BG,
    color: LIGHT_TXT,
    fontFace: "Calibri",
    fontSize: 10,
    align: "left",
    valign: "middle",
  });
  footer(s, "Source: Adams & Victor | Kaplan & Sadock | Neuroanatomy through Clinical Cases");
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 15 — Summary & Key Takeaways
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: DARK_BG };

  // Decorative bar at top
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.15, fill: { color: ACCENT1 } });

  s.addText("Summary & Key Takeaways", {
    x: 0.4, y: 0.25, w: 9.2, h: 0.55,
    fontSize: 26, bold: true, color: ACCENT1, fontFace: "Calibri", margin: 0
  });
  s.addText("The Limbic System at a Glance", {
    x: 0.4, y: 0.82, w: 9.2, h: 0.3,
    fontSize: 14, color: DIM_TXT, fontFace: "Calibri", italic: true, margin: 0
  });

  const takeaways = [
    { num: "01", txt: "The limbic system is a phylogenetically ancient network controlling emotion, memory, olfaction, and homeostasis — summarized by the mnemonic HOME." },
    { num: "02", txt: "The Papez circuit (hippocampus → fornix → mammillary bodies → anterior thalamus → cingulate → back to hippocampus) is the foundational emotional memory loop." },
    { num: "03", txt: "The amygdala is the threat detector: it mediates fear conditioning, emotional memory, and drives the HPA stress axis via the hypothalamus." },
    { num: "04", txt: "The hippocampus is the memory gateway: essential for converting short-term to long-term declarative memory; vulnerable to glucocorticoid toxicity in chronic stress." },
    { num: "05", txt: "The hypothalamus, despite being <1% of brain mass, is the master hub — controlling autonomic, endocrine, and behavioral outputs through three major directions." },
    { num: "06", txt: "Clinical relevance spans TLE, Kluver-Bucy syndrome, Wernicke-Korsakoff, PTSD, depression, and Alzheimer's disease — all traceable to specific limbic lesions." },
  ];

  const cw = 4.45, ch = 0.88;
  const positions = [
    [0.2, 1.25], [5.1, 1.25],
    [0.2, 2.2], [5.1, 2.2],
    [0.2, 3.15], [5.1, 3.15],
  ];
  takeaways.forEach((tk, i) => {
    const [bx, by] = positions[i];
    s.addShape(pres.ShapeType.rect, {
      x: bx, y: by, w: cw, h: ch,
      fill: { color: CARD_BG }, line: { color: ACCENT1, width: 1 }
    });
    s.addText(tk.num, {
      x: bx + 0.1, y: by + 0.08, w: 0.5, h: 0.4,
      fontSize: 16, bold: true, color: ACCENT1, fontFace: "Calibri", margin: 0
    });
    s.addText(tk.txt, {
      x: bx + 0.1, y: by + 0.44, w: cw - 0.2, h: ch - 0.52,
      fontSize: 9.8, color: LIGHT_TXT, fontFace: "Calibri", margin: 0
    });
  });

  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.3, w: "100%", h: 0.325, fill: { color: MID_BG } });
  s.addText("Sources: Guyton & Hall Textbook of Medical Physiology | Kaplan & Sadock's Comprehensive Textbook of Psychiatry | Neuroanatomy through Clinical Cases 3rd ed. | Gray's Anatomy for Students | Adams & Victor's Principles of Neurology", {
    x: 0.3, y: 5.32, w: 9.4, h: 0.28,
    fontSize: 7.5, color: DIM_TXT, fontFace: "Calibri", margin: 0
  });
}

// ═══════════════════════════════════════════════════════════════
// WRITE FILE
// ═══════════════════════════════════════════════════════════════
pres.writeFile({ fileName: "/home/daytona/workspace/limbic-system-pptx/Limbic_System.pptx" })
  .then(() => console.log("SUCCESS: /home/daytona/workspace/limbic-system-pptx/Limbic_System.pptx"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/limbic-system-pptx && node build.js 2>&1

Editing File

~/limbic-system-pptx/build.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/limbic-system-pptx/build.js'
Running Command

cd /home/daytona/workspace/limbic-system-pptx && node build.js 2>&1

Your 15-slide presentation is ready:

Limbic System

Presentation · PPTX


Here is a breakdown of all 15 slides:
#Slide TitleContent
1Title Slide"The Limbic System — Neural Seat of Emotion, Memory & Behavior"
2What Is the Limbic System?Etymology (Latin limbus), Broca, Papez, MacLean — history of the concept
3Key ComponentsFull component list using the HOME mnemonic in a 6-card grid (limbic cortex, hippocampal formation, amygdala, diencephalon, basal forebrain, olfactory system)
4Gross Anatomy & LocationTable of each region and its precise anatomical location
5The Papez CircuitVisual node-by-node circuit diagram: Hippocampus → Fornix → Mammillary bodies → Anterior thalamus → Cingulate → Entorhinal cortex → back
6The HippocampusStructure (CA1-CA3, dentate gyrus, subiculum), memory function, HM case, spatial navigation
7The AmygdalaBasolateral complex, centromedial amygdala, Kluver-Bucy syndrome, PTSD, DBS
8The HypothalamusMaster hub (<4 g), three output directions, vegetative functions, zones
9Cingulate Gyrus & Limbic CortexsACC (BA25) in depression, MCC, PCC, RSC - table with Brodmann areas and functions
10Septal Area, Habenula & Basal ForebrainAnxiety circuits, reward, lateral habenula in depression
11Major Limbic PathwaysTable of tracts: fornix, medial forebrain bundle, stria terminalis, cingulum bundle, uncinate fasciculus
12HOME Framework (Functions)Large 4-card layout for Homeostasis, Olfaction, Memory, Emotion
13Neurobiology of EmotionFear circuit, reward (mesolimbic dopamine), HPA stress axis
14Clinical CorrelatesTLE, Kluver-Bucy, Wernicke-Korsakoff, PTSD, depression, Alzheimer's — table format
15Summary & Key Takeaways6 numbered takeaways covering all major concepts
Design: Deep navy background with teal accents and amber highlights - consistent dark professional theme throughout. Sources cited from Guyton & Hall, Kaplan & Sadock, Neuroanatomy through Clinical Cases, Gray's Anatomy, and Adams & Victor.
This is a shared conversation. Sign in to Orris to start your own chat.