Make ppt of organon of medicine for 10marks question 1st aphorism and 2nd aphorism

Reading File
Searching the Web

Organon of Medicine 1st aphorism 2nd aphorism Hahnemann text explanation

Reading File
Reading Web Page

https://hpathy.com/organon-philosophy/lectures-on-organon-of…

Running Command

mkdir -p /home/daytona/workspace/organon-ppt && ls /home/daytona/workspace/organ…

Writing File

~/organon-ppt/create_ppt.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Organon of Medicine - Aphorism 1 & 2";
pres.author = "Homeopathy Lecture Notes";

// ─── COLOR PALETTE ───────────────────────────────────────────────
const DARK_BG   = "1A2E40";   // deep navy – title/section slides
const MID_BG    = "0F4C75";   // ocean blue – sub-section slides
const LIGHT_BG  = "F0F4F8";   // off-white – content slides
const ACCENT    = "F6AE2D";   // golden amber – headings & accents
const ACCENT2   = "27AE60";   // green – aphorism 2 accent
const WHITE     = "FFFFFF";
const DARK_TEXT = "1A2E40";
const GRAY_TEXT = "4A5568";
const RED_ACC   = "E74C3C";

// ─── HELPER FUNCTIONS ────────────────────────────────────────────
function addDarkHeaderBar(slide, title, subtitle) {
  // Dark bar at top
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 1.15,
    fill: { color: DARK_BG },
    line: { color: DARK_BG }
  });
  slide.addText(title, {
    x: 0.3, y: 0.1, w: 9.4, h: 0.6,
    fontSize: 22, bold: true, color: ACCENT, fontFace: "Calibri",
    margin: 0
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.3, y: 0.72, w: 9.4, h: 0.35,
      fontSize: 13, color: WHITE, fontFace: "Calibri", italic: true,
      margin: 0
    });
  }
}

function setLightBg(slide) {
  slide.background = { color: LIGHT_BG };
}
function setDarkBg(slide) {
  slide.background = { color: DARK_BG };
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 1 – TITLE
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setDarkBg(s);

  // Decorative horizontal accent lines
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.545, w: 10, h: 0.08, fill: { color: ACCENT }, line: { color: ACCENT } });

  // Central vertical accent strip
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: ACCENT }, line: { color: ACCENT } });

  s.addText("ORGANON OF MEDICINE", {
    x: 0.5, y: 0.7, w: 9, h: 0.7,
    fontSize: 36, bold: true, color: ACCENT, fontFace: "Calibri",
    align: "center", charSpacing: 4
  });
  s.addText("Samuel Hahnemann (6th Edition)", {
    x: 0.5, y: 1.45, w: 9, h: 0.5,
    fontSize: 18, color: WHITE, fontFace: "Calibri", align: "center", italic: true
  });

  // Divider line
  s.addShape(pres.ShapeType.line, {
    x: 1.5, y: 2.1, w: 7, h: 0,
    line: { color: ACCENT, width: 2 }
  });

  s.addText("Aphorism 1 & Aphorism 2", {
    x: 0.5, y: 2.3, w: 9, h: 0.65,
    fontSize: 28, bold: true, color: WHITE, fontFace: "Calibri", align: "center"
  });
  s.addText("10 Marks Discussion", {
    x: 0.5, y: 3.05, w: 9, h: 0.45,
    fontSize: 17, color: ACCENT, fontFace: "Calibri", align: "center", bold: true
  });

  s.addText([
    { text: "Topics: ", options: { bold: true, color: ACCENT } },
    { text: "Physician's Mission  |  Ideal Cure  |  Key Terms  |  Footnotes  |  Comparison", options: { color: WHITE } }
  ], {
    x: 0.5, y: 3.65, w: 9, h: 0.4,
    fontSize: 12, fontFace: "Calibri", align: "center"
  });

  s.addText("BHMS / Homeopathy Exam Preparation", {
    x: 0.5, y: 4.9, w: 9, h: 0.35,
    fontSize: 11, color: GRAY_TEXT, fontFace: "Calibri", align: "center", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 2 – SECTION DIVIDER: APHORISM 1
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: MID_BG };

  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: MID_BG }, line: { color: MID_BG } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 2.3, w: 10, h: 1.1, fill: { color: DARK_BG }, line: { color: DARK_BG } });

  s.addText("SECTION I", {
    x: 0, y: 0.5, w: 10, h: 0.6,
    fontSize: 20, bold: true, color: ACCENT, align: "center", charSpacing: 8, fontFace: "Calibri"
  });
  s.addText("APHORISM 1", {
    x: 0, y: 2.35, w: 10, h: 0.95,
    fontSize: 48, bold: true, color: WHITE, align: "center", fontFace: "Calibri"
  });
  s.addText("The Physician's Highest and Only Mission", {
    x: 1, y: 3.5, w: 8, h: 0.55,
    fontSize: 20, color: ACCENT, align: "center", fontFace: "Calibri", italic: true
  });
  s.addText("§1 • Organon of Medicine (6th Edition)", {
    x: 1, y: 4.3, w: 8, h: 0.4,
    fontSize: 13, color: WHITE, align: "center", fontFace: "Calibri"
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 3 – APHORISM 1: ORIGINAL TEXT
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 1 — Original Text", "§1 • Organon of Medicine");

  // Quote box
  s.addShape(pres.ShapeType.rect, {
    x: 0.4, y: 1.3, w: 9.2, h: 2.4,
    fill: { color: DARK_BG }, line: { color: ACCENT, width: 2 }
  });
  s.addText([
    { text: '" ', options: { fontSize: 40, bold: true, color: ACCENT } },
    {
      text: "The physician's high and ONLY mission is to restore the sick to health, to cure, as it is termed.",
      options: { fontSize: 16, color: WHITE, bold: false }
    }
  ], {
    x: 0.6, y: 1.4, w: 8.8, h: 2.1,
    fontFace: "Calibri", valign: "middle", align: "left"
  });

  s.addText("— Samuel Hahnemann, Organon of Medicine (§1)", {
    x: 0.4, y: 3.78, w: 9.2, h: 0.35,
    fontSize: 12, italic: true, color: GRAY_TEXT, fontFace: "Calibri", align: "right"
  });

  // Key word box
  s.addShape(pres.ShapeType.rect, {
    x: 0.4, y: 4.2, w: 9.2, h: 0.85,
    fill: { color: ACCENT + "33" }, line: { color: ACCENT, width: 1 }
  });
  s.addText([
    { text: "Key Phrase: ", options: { bold: true, color: DARK_BG } },
    { text: '"High and ONLY" ', options: { bold: true, color: RED_ACC } },
    { text: "— Sets the singular, non-negotiable purpose of a physician.", options: { color: DARK_TEXT } }
  ], {
    x: 0.7, y: 4.25, w: 8.8, h: 0.75,
    fontSize: 13, fontFace: "Calibri", valign: "middle"
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 4 – APHORISM 1: EXPLANATION & KEY TERMS
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 1 — Explanation & Key Terms", "§1 • Physician's Mission");

  // Left column – explanation
  s.addShape(pres.ShapeType.rect, {
    x: 0.3, y: 1.25, w: 4.5, h: 4.0,
    fill: { color: WHITE }, line: { color: MID_BG, width: 1 }
  });
  s.addText("EXPLANATION", {
    x: 0.4, y: 1.3, w: 4.3, h: 0.4,
    fontSize: 13, bold: true, color: MID_BG, fontFace: "Calibri"
  });
  s.addText([
    { text: "• ", options: { bold: true, color: ACCENT } },
    { text: "Hahnemann defines the SOLE duty of a physician as curing the sick.\n\n", options: {} },
    { text: "• ", options: { bold: true, color: ACCENT } },
    { text: "The word 'ONLY' excludes any other role — neither explaining disease origins theoretically nor performing experiments.\n\n", options: {} },
    { text: "• ", options: { bold: true, color: ACCENT } },
    { text: "'Restore to health' implies complete return to normal function — physical, mental and emotional.\n\n", options: {} },
    { text: "• ", options: { bold: true, color: ACCENT } },
    { text: "This aphorism attacks the system-builders of Hahnemann's era who focused on theory over patient welfare.", options: {} }
  ], {
    x: 0.4, y: 1.75, w: 4.3, h: 3.4,
    fontSize: 12, fontFace: "Calibri", color: DARK_TEXT, valign: "top"
  });

  // Right column – key terms
  s.addShape(pres.ShapeType.rect, {
    x: 5.2, y: 1.25, w: 4.5, h: 4.0,
    fill: { color: DARK_BG }, line: { color: DARK_BG }
  });
  s.addText("KEY TERMS", {
    x: 5.3, y: 1.3, w: 4.3, h: 0.4,
    fontSize: 13, bold: true, color: ACCENT, fontFace: "Calibri"
  });

  const terms = [
    ["Physician", "One who practises the art of healing — must focus on cure alone."],
    ["High and Only", "Emphasises supremacy and exclusivity of the mission — no dual roles."],
    ["Mission", "A duty/calling — not a choice but an obligation."],
    ["Restore", "Complete recovery, not mere suppression of symptoms."],
    ["Sick", "The individual as a whole — body, mind & spirit."],
    ["Health", "Optimal well-being — physical, mental, emotional."]
  ];
  let ty = 1.78;
  for (const [term, def] of terms) {
    s.addText([
      { text: term + ": ", options: { bold: true, color: ACCENT, fontSize: 11 } },
      { text: def, options: { color: WHITE, fontSize: 11 } }
    ], {
      x: 5.3, y: ty, w: 4.2, h: 0.52,
      fontFace: "Calibri", valign: "top"
    });
    ty += 0.57;
  }
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 5 – APHORISM 1: FOOTNOTE & ANALYSIS
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 1 — Footnote & Critical Analysis", "§1 • Hahnemann's Criticism");

  // Footnote box
  s.addShape(pres.ShapeType.rect, {
    x: 0.3, y: 1.25, w: 9.4, h: 1.8,
    fill: { color: "FFF8E1" }, line: { color: ACCENT, width: 2 }
  });
  s.addText("FOOTNOTE TO APHORISM 1", {
    x: 0.5, y: 1.3, w: 9, h: 0.35,
    fontSize: 12, bold: true, color: DARK_BG, fontFace: "Calibri"
  });
  s.addText(
    "\"The physician's calling is NOT to spin so-called systems from empty conceits and hypothesis concerning the inner nature of the life process and the origin of diseases... The physician's calling is NOT to make countless attempts at explanation regarding appearances and their proximate cause (which must ever remain concealed) holding forth in unintelligible words or abstract and pompous expressions in order to appear very learned and astonish the ignorant, while a sick world sighs in vain for help.\"",
    {
      x: 0.5, y: 1.68, w: 9, h: 1.3,
      fontSize: 11, color: DARK_TEXT, fontFace: "Calibri", italic: true
    }
  );

  // Analysis points
  s.addText("CRITICAL ANALYSIS", {
    x: 0.3, y: 3.2, w: 9.4, h: 0.38,
    fontSize: 14, bold: true, color: MID_BG, fontFace: "Calibri"
  });
  s.addText([
    { text: "1. ", options: { bold: true, color: RED_ACC } },
    { text: "Hahnemann condemns physicians who philosophize about disease rather than healing patients.\n", options: {} },
    { text: "2. ", options: { bold: true, color: RED_ACC } },
    { text: "He criticized the medical establishment of the 18th-19th century for using complex jargon while failing to cure.\n", options: {} },
    { text: "3. ", options: { bold: true, color: RED_ACC } },
    { text: "He argues that a true physician must be action-oriented — focused on the observable and curable.\n", options: {} },
    { text: "4. ", options: { bold: true, color: RED_ACC } },
    { text: "This footnote is the seed of Hahnemann's inductive and empirical approach to medicine.", options: {} }
  ], {
    x: 0.3, y: 3.65, w: 9.4, h: 1.8,
    fontSize: 12, fontFace: "Calibri", color: DARK_TEXT, valign: "top"
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 6 – APHORISM 1: EXAM POINTS (10 MARKS)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 1 — 10 Marks Exam Answer Blueprint", "§1 • Important for BHMS Exams");

  // Numbered exam points
  const points = [
    ["Introduction", "Aphorism 1 is the foundation of the Organon. It appears in the 6th Edition and defines the physician's role."],
    ["Original Text", "\"The physician's high and ONLY mission is to restore the sick to health, to cure, as it is termed.\""],
    ["Word Analysis", "'High' = supreme importance; 'Only' = exclusivity; 'Mission' = sacred duty; 'Restore' = complete cure; 'Sick' = whole person."],
    ["Scope of Cure", "Cure must be complete — physical, mental and emotional restoration, not just symptom relief or palliation."],
    ["What it Excludes", "Excludes: theoretical speculations, system-building, mere palliation, suppression of symptoms."],
    ["Footnote Importance", "Hahnemann criticises physicians who indulge in empty theories rather than acting for patient welfare."],
    ["Relevance", "This aphorism sets the ethical and practical foundation for all homeopathic practice — the physician exists only to cure."]
  ];

  let ty = 1.2;
  for (let i = 0; i < points.length; i++) {
    const [head, detail] = points[i];
    const bgColor = i % 2 === 0 ? "E8F4FD" : WHITE;
    s.addShape(pres.ShapeType.rect, {
      x: 0.3, y: ty, w: 9.4, h: 0.55,
      fill: { color: bgColor }, line: { color: "C5D8EA", width: 0.5 }
    });
    s.addShape(pres.ShapeType.rect, {
      x: 0.3, y: ty, w: 0.45, h: 0.55,
      fill: { color: MID_BG }, line: { color: MID_BG }
    });
    s.addText(String(i + 1), {
      x: 0.3, y: ty, w: 0.45, h: 0.55,
      fontSize: 13, bold: true, color: WHITE, align: "center", valign: "middle", fontFace: "Calibri"
    });
    s.addText([
      { text: head + ": ", options: { bold: true, color: MID_BG } },
      { text: detail, options: { color: DARK_TEXT } }
    ], {
      x: 0.85, y: ty, w: 8.7, h: 0.55,
      fontSize: 11, fontFace: "Calibri", valign: "middle"
    });
    ty += 0.6;
  }
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 7 – SECTION DIVIDER: APHORISM 2
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: "0D3D2B" };  // deep green

  s.addShape(pres.ShapeType.rect, { x: 0, y: 2.3, w: 10, h: 1.1, fill: { color: DARK_BG }, line: { color: DARK_BG } });
  s.addText("SECTION II", {
    x: 0, y: 0.5, w: 10, h: 0.6,
    fontSize: 20, bold: true, color: ACCENT2, align: "center", charSpacing: 8, fontFace: "Calibri"
  });
  s.addText("APHORISM 2", {
    x: 0, y: 2.35, w: 10, h: 0.95,
    fontSize: 48, bold: true, color: WHITE, align: "center", fontFace: "Calibri"
  });
  s.addText("The Highest Ideal of Cure", {
    x: 1, y: 3.5, w: 8, h: 0.55,
    fontSize: 20, color: ACCENT2, align: "center", fontFace: "Calibri", italic: true
  });
  s.addText("§2 • Organon of Medicine (6th Edition)", {
    x: 1, y: 4.3, w: 8, h: 0.4,
    fontSize: 13, color: WHITE, align: "center", fontFace: "Calibri"
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 8 – APHORISM 2: ORIGINAL TEXT
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 2 — Original Text", "§2 • The Ideal of Cure");

  // Quote box
  s.addShape(pres.ShapeType.rect, {
    x: 0.4, y: 1.3, w: 9.2, h: 2.7,
    fill: { color: "0D3D2B" }, line: { color: ACCENT2, width: 2 }
  });
  s.addText([
    { text: '" ', options: { fontSize: 40, bold: true, color: ACCENT2 } },
    {
      text: "The highest ideal of cure is rapid, gentle and permanent restoration of the health, or removal and annihilation of the disease in its whole extent, in the shortest, most reliable and most harmless way, on easily comprehensible principles.",
      options: { fontSize: 15, color: WHITE, bold: false }
    }
  ], {
    x: 0.6, y: 1.4, w: 8.8, h: 2.5,
    fontFace: "Calibri", valign: "middle", align: "left"
  });

  s.addText("— Samuel Hahnemann, Organon of Medicine (§2)", {
    x: 0.4, y: 4.08, w: 9.2, h: 0.35,
    fontSize: 12, italic: true, color: GRAY_TEXT, fontFace: "Calibri", align: "right"
  });

  s.addShape(pres.ShapeType.rect, {
    x: 0.4, y: 4.5, w: 9.2, h: 0.75,
    fill: { color: ACCENT2 + "33" }, line: { color: ACCENT2, width: 1 }
  });
  s.addText([
    { text: "Three Core Attributes: ", options: { bold: true, color: "0D3D2B" } },
    { text: "RAPID  |  GENTLE  |  PERMANENT", options: { bold: true, color: ACCENT2 } }
  ], {
    x: 0.7, y: 4.55, w: 8.8, h: 0.65,
    fontSize: 14, fontFace: "Calibri", valign: "middle", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 9 – APHORISM 2: THREE PILLARS (RAPID, GENTLE, PERMANENT)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 2 — The Three Pillars of Ideal Cure", "§2 • Rapid • Gentle • Permanent");

  const pillars = [
    {
      title: "RAPID",
      color: "E74C3C",
      lines: [
        "Cure should be achieved in the shortest possible time.",
        "Unnecessary prolongation causes suffering.",
        "Cito (Latin) — Speed is a sign of efficient treatment.",
        "Comparable to Asclepiades' motto: Cito, Tuto, Jucunde."
      ]
    },
    {
      title: "GENTLE",
      color: ACCENT2,
      lines: [
        "Cure must be free from unnecessary suffering or side effects.",
        "Medicines should be mild and non-harmful.",
        "Jucunde (Latin) — Agreeable, without causing new suffering.",
        "Minimum dose principle is rooted in this criterion."
      ]
    },
    {
      title: "PERMANENT",
      color: MID_BG,
      lines: [
        "Cure must be lasting — not merely temporary relief.",
        "No relapse, no return of symptoms in a new form.",
        "Tuto (Latin) — Safe and durable restoration.",
        "Suppression gives apparent cure but disease returns altered."
      ]
    }
  ];

  for (let i = 0; i < 3; i++) {
    const p = pillars[i];
    const bx = 0.2 + i * 3.27;
    s.addShape(pres.ShapeType.rect, {
      x: bx, y: 1.2, w: 3.1, h: 0.5,
      fill: { color: p.color }, line: { color: p.color }
    });
    s.addText(p.title, {
      x: bx, y: 1.2, w: 3.1, h: 0.5,
      fontSize: 15, bold: true, color: WHITE, align: "center", fontFace: "Calibri"
    });
    s.addShape(pres.ShapeType.rect, {
      x: bx, y: 1.75, w: 3.1, h: 3.5,
      fill: { color: WHITE }, line: { color: p.color, width: 1.5 }
    });
    const bulletLines = p.lines.map((l, idx) => ({
      text: "▸  " + l + (idx < p.lines.length - 1 ? "\n\n" : ""),
      options: { color: DARK_TEXT }
    }));
    s.addText(bulletLines, {
      x: bx + 0.1, y: 1.85, w: 2.9, h: 3.3,
      fontSize: 11, fontFace: "Calibri", valign: "top"
    });
  }
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 10 – APHORISM 2: REMAINING KEY TERMS
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 2 — Key Terms Analysis", "§2 • Word-by-Word Breakdown");

  const terms = [
    { term: "Highest Ideal", def: "The ultimate standard/benchmark of what cure should achieve. Not a compromise but the best possible.", color: "8E44AD" },
    { term: "Restoration of Health", def: "Complete return to normal state — not just absence of disease but positive wellness of body and mind.", color: MID_BG },
    { term: "Removal & Annihilation", def: "Complete eradication of the disease — 'removal' = taking away; 'annihilation' = total destruction, no traces left.", color: RED_ACC },
    { term: "Whole Extent", def: "Disease must be removed in its entirety — not just superficial symptoms but the root cause.", color: "0D3D2B" },
    { term: "Most Reliable", def: "The method must be dependable and based on proven principles, not guesswork or chance.", color: "E67E22" },
    { term: "Most Harmless", def: "Treatment must not produce new complaints; principle of minimum dose ensures safety.", color: ACCENT2 },
    { term: "Comprehensible Principles", def: "The law governing cure must be clear and logical (Similia Similibus Curentur) — not a mystery.", color: "2980B9" }
  ];

  let ty = 1.25;
  for (const t of terms) {
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: ty, w: 0.12, h: 0.5, fill: { color: t.color }, line: { color: t.color } });
    s.addText([
      { text: t.term + ": ", options: { bold: true, color: t.color } },
      { text: t.def, options: { color: DARK_TEXT } }
    ], {
      x: 0.55, y: ty, w: 9.1, h: 0.5,
      fontSize: 11.5, fontFace: "Calibri", valign: "middle"
    });
    ty += 0.58;
  }
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 11 – APHORISM 2: LATIN COMPARISON & HISTORICAL ROOTS
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 2 — Historical Roots", "§2 • Asclepiades & Charaka Connection");

  // Asclepiades box
  s.addShape(pres.ShapeType.rect, {
    x: 0.3, y: 1.25, w: 4.4, h: 3.5,
    fill: { color: "FEF9E7" }, line: { color: ACCENT, width: 2 }
  });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.25, w: 4.4, h: 0.5, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addText("ASCLEPIADES (124 B.C.)", {
    x: 0.3, y: 1.25, w: 4.4, h: 0.5,
    fontSize: 13, bold: true, color: DARK_BG, align: "center", fontFace: "Calibri"
  });
  s.addText([
    { text: "Latin Motto: ", options: { bold: true, color: DARK_BG } },
    { text: "\"Cito, Tuto et Jucunde\"\n\n", options: { italic: true, color: "8E44AD" } },
    { text: "• Cito = Speedily (Rapid)\n", options: {} },
    { text: "• Tuto = Safely (Permanent / harmless)\n", options: {} },
    { text: "• Jucunde = Agreeably (Gentle)\n\n", options: {} },
    { text: "Known as the 'Hippocrates of Chronic Disease'\nHis motto parallels Hahnemann's three criteria of ideal cure.", options: { italic: true, color: GRAY_TEXT } }
  ], {
    x: 0.5, y: 1.85, w: 4.0, h: 2.8,
    fontSize: 12, fontFace: "Calibri", color: DARK_TEXT, valign: "top"
  });

  // Charaka box
  s.addShape(pres.ShapeType.rect, {
    x: 5.3, y: 1.25, w: 4.4, h: 3.5,
    fill: { color: "EAFAF1" }, line: { color: ACCENT2, width: 2 }
  });
  s.addShape(pres.ShapeType.rect, { x: 5.3, y: 1.25, w: 4.4, h: 0.5, fill: { color: ACCENT2 }, line: { color: ACCENT2 } });
  s.addText("CHARAKA SAMHITA", {
    x: 5.3, y: 1.25, w: 4.4, h: 0.5,
    fontSize: 13, bold: true, color: WHITE, align: "center", fontFace: "Calibri"
  });
  s.addText([
    { text: "Ancient Indian Connection:\n\n", options: { bold: true, color: DARK_BG } },
    { text: "The Charaka Samhita also emphasized permanent restoration of health — not mere temporary suppression of disease.\n\n", options: {} },
    { text: "Principle: ", options: { bold: true } },
    { text: "True cure removes disease root and restores natural harmony.\n\n", options: {} },
    { text: "BK Sarkar notes this parallel in his commentary on the Organon.", options: { italic: true, color: GRAY_TEXT } }
  ], {
    x: 5.5, y: 1.85, w: 4.0, h: 2.8,
    fontSize: 12, fontFace: "Calibri", color: DARK_TEXT, valign: "top"
  });

  s.addText("Hahnemann synthesized both Greek and Indian traditions into a universal principle of ideal cure.", {
    x: 0.3, y: 5.0, w: 9.4, h: 0.4,
    fontSize: 12, italic: true, bold: true, color: MID_BG, fontFace: "Calibri", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 12 – APHORISM 2: 10 MARKS EXAM BLUEPRINT
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 2 — 10 Marks Exam Answer Blueprint", "§2 • Important for BHMS Exams");

  const points = [
    ["Introduction", "Aphorism 2 defines the STANDARD of cure. It is a continuation of Aph. 1 — physician's mission is to cure, and Aph. 2 tells HOW that cure should be."],
    ["Original Text", "\"The highest ideal of cure is rapid, gentle and permanent restoration of health... on easily comprehensible principles.\""],
    ["Rapid Cure", "Cure should happen in the shortest time. Unnecessary prolongation = suffering. Reflects Cito of Asclepiades."],
    ["Gentle Cure", "No new suffering during treatment. Minimum dose used. Reflects Jucunde of Asclepiades."],
    ["Permanent Cure", "No relapse, no altered disease return. Reflects Tuto of Asclepiades. Charaka Samhita parallel."],
    ["Removal & Annihilation", "Complete eradication of disease — not palliation or suppression. 'Whole extent' = root cause addressed."],
    ["Comprehensible Principles", "Cure must be based on a scientifically understandable law — Similia Similibus Curentur (Law of Similars)."],
    ["Historical Significance", "Links Hahnemann's ideal to Asclepiades (Cito, Tuto, Jucunde) and Charaka Samhita of ancient India."]
  ];

  let ty = 1.2;
  for (let i = 0; i < points.length; i++) {
    const [head, detail] = points[i];
    const bgColor = i % 2 === 0 ? "E8F8F5" : WHITE;
    s.addShape(pres.ShapeType.rect, {
      x: 0.3, y: ty, w: 9.4, h: 0.52,
      fill: { color: bgColor }, line: { color: "B2DFDB", width: 0.5 }
    });
    s.addShape(pres.ShapeType.rect, {
      x: 0.3, y: ty, w: 0.45, h: 0.52,
      fill: { color: ACCENT2 }, line: { color: ACCENT2 }
    });
    s.addText(String(i + 1), {
      x: 0.3, y: ty, w: 0.45, h: 0.52,
      fontSize: 13, bold: true, color: WHITE, align: "center", valign: "middle", fontFace: "Calibri"
    });
    s.addText([
      { text: head + ": ", options: { bold: true, color: "0D3D2B" } },
      { text: detail, options: { color: DARK_TEXT } }
    ], {
      x: 0.85, y: ty, w: 8.7, h: 0.52,
      fontSize: 10.5, fontFace: "Calibri", valign: "middle"
    });
    ty += 0.57;
  }
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 13 – COMPARISON: APH 1 vs APH 2
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setLightBg(s);
  addDarkHeaderBar(s, "Aphorism 1 vs Aphorism 2 — Comparative Analysis", "§1 and §2 • Side-by-Side");

  // Headers
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.25, w: 2.0, h: 0.5, fill: { color: DARK_BG }, line: { color: DARK_BG } });
  s.addShape(pres.ShapeType.rect, { x: 2.45, y: 1.25, w: 3.4, h: 0.5, fill: { color: MID_BG }, line: { color: MID_BG } });
  s.addShape(pres.ShapeType.rect, { x: 6.0, y: 1.25, w: 3.7, h: 0.5, fill: { color: "0D3D2B" }, line: { color: "0D3D2B" } });
  s.addText("Aspect", { x: 0.3, y: 1.25, w: 2.0, h: 0.5, fontSize: 12, bold: true, color: WHITE, align: "center", fontFace: "Calibri" });
  s.addText("Aphorism 1", { x: 2.45, y: 1.25, w: 3.4, h: 0.5, fontSize: 13, bold: true, color: WHITE, align: "center", fontFace: "Calibri" });
  s.addText("Aphorism 2", { x: 6.0, y: 1.25, w: 3.7, h: 0.5, fontSize: 13, bold: true, color: WHITE, align: "center", fontFace: "Calibri" });

  const rows = [
    ["Focus", "WHO should cure & WHY", "HOW cure should be done"],
    ["Theme", "Physician's Mission", "Ideal Standard of Cure"],
    ["Key Word", "'High and ONLY'", "'Highest Ideal'"],
    ["Content", "Restore sick to health — sole duty", "Rapid, Gentle, Permanent removal of disease"],
    ["Scope", "Defines the physician's role", "Defines the quality of cure"],
    ["Footnote", "Criticises theoretical medicine", "No footnote in 6th edition"],
    ["Latin Link", "—", "Cito, Tuto, Jucunde (Asclepiades)"],
    ["Outcome", "Physician must cure", "Cure must meet all 3 criteria"]
  ];

  let ty = 1.82;
  for (let i = 0; i < rows.length; i++) {
    const bg = i % 2 === 0 ? "F0F4F8" : WHITE;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: ty, w: 9.4, h: 0.44, fill: { color: bg }, line: { color: "C5D8EA", width: 0.3 } });
    s.addText(rows[i][0], { x: 0.35, y: ty, w: 2.0, h: 0.44, fontSize: 11, bold: true, color: DARK_BG, fontFace: "Calibri", valign: "middle" });
    s.addText(rows[i][1], { x: 2.45, y: ty, w: 3.4, h: 0.44, fontSize: 11, color: MID_BG, fontFace: "Calibri", valign: "middle" });
    s.addText(rows[i][2], { x: 6.0, y: ty, w: 3.7, h: 0.44, fontSize: 11, color: "0D3D2B", fontFace: "Calibri", valign: "middle" });
    ty += 0.47;
  }
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 14 – SUMMARY / CONCLUSION
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setDarkBg(s);

  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.545, w: 10, h: 0.08, fill: { color: ACCENT }, line: { color: ACCENT } });

  s.addText("SUMMARY & EXAM TIPS", {
    x: 0.3, y: 0.2, w: 9.4, h: 0.6,
    fontSize: 26, bold: true, color: ACCENT, fontFace: "Calibri", align: "center"
  });

  s.addShape(pres.ShapeType.line, { x: 1, y: 0.95, w: 8, h: 0, line: { color: ACCENT, width: 1.5 } });

  // Two columns
  s.addText("APHORISM 1", { x: 0.3, y: 1.1, w: 4.5, h: 0.45, fontSize: 15, bold: true, color: ACCENT, fontFace: "Calibri" });
  s.addText([
    { text: "• Physician's HIGH and ONLY mission = Cure\n", options: {} },
    { text: "• 'Restore the sick to health'\n", options: {} },
    { text: "• Excludes theories, speculations, jargon\n", options: {} },
    { text: "• Footnote: criticises medical system-builders\n", options: {} },
    { text: "• The sick = whole person (body + mind)", options: {} }
  ], {
    x: 0.3, y: 1.6, w: 4.5, h: 3.0,
    fontSize: 13, color: WHITE, fontFace: "Calibri", valign: "top"
  });

  s.addShape(pres.ShapeType.line, { x: 5.0, y: 1.1, w: 0, h: 3.6, line: { color: ACCENT, width: 1 } });

  s.addText("APHORISM 2", { x: 5.2, y: 1.1, w: 4.5, h: 0.45, fontSize: 15, bold: true, color: ACCENT2, fontFace: "Calibri" });
  s.addText([
    { text: "• Highest Ideal = Rapid + Gentle + Permanent\n", options: {} },
    { text: "• Removal & Annihilation in whole extent\n", options: {} },
    { text: "• Shortest, most reliable, most harmless way\n", options: {} },
    { text: "• Easily comprehensible principles (Similia)\n", options: {} },
    { text: "• Linked to Asclepiades & Charaka Samhita", options: {} }
  ], {
    x: 5.2, y: 1.6, w: 4.5, h: 3.0,
    fontSize: 13, color: WHITE, fontFace: "Calibri", valign: "top"
  });

  s.addShape(pres.ShapeType.rect, {
    x: 0.5, y: 4.8, w: 9, h: 0.6,
    fill: { color: ACCENT + "22" }, line: { color: ACCENT, width: 1 }
  });
  s.addText("Remember: Aph. 1 = WHAT to do | Aph. 2 = HOW to do it — Together they form the complete philosophy of Homeopathic Cure.", {
    x: 0.6, y: 4.82, w: 8.8, h: 0.56,
    fontSize: 12, bold: true, color: ACCENT, fontFace: "Calibri", align: "center", valign: "middle"
  });
}

// ─── SAVE ─────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/organon-ppt/Organon_Aphorism1_2.pptx" })
  .then(() => console.log("PPT saved successfully."))
  .catch(err => console.error("Error:", err));
Your credits are exhausted. You can purchase a top-up or subscribe to a plan to continue using Orris. If you're already subscribed, your daily credits will reset tomorrow.
This is a shared conversation. Sign in to Orris to start your own chat.