lower limb for neet pg
lower limb anatomy high yield NEET PG nerve injuries muscles bones
| Region | Boundaries |
|---|---|
| Gluteal region | Iliac crest to gluteal fold (posterolateral) |
| Thigh | Inguinal ligament to knee joint (anterior); gluteal fold to knee (posterior) |
| Leg | Knee to ankle joint |
| Foot | Distal to ankle joint |
| Nerve | Roots | Key Muscles | Sensory |
|---|---|---|---|
| Femoral nerve | L2, L3, L4 | Quadriceps femoris (knee extension), iliopsoas, sartorius, pectineus | Anterior thigh + medial leg (via saphenous) |
| Obturator nerve | L2, L3, L4 | All medial compartment (adductors), except adductor magnus (ischial part) | Medial upper thigh |
| Lateral cutaneous nerve of thigh | L2, L3 | None (purely sensory) | Lateral thigh |
| Ilio-inguinal nerve | L1 | None | Medial upper thigh + perineum |
| Genitofemoral nerve | L1, L2 | Cremaster (genital branch) | Femoral branch = upper central anterior thigh |
| Nerve | Roots | Key Muscles | Sensory |
|---|---|---|---|
| Sciatic nerve | L4-S3 | All posterior thigh + all leg & foot muscles | Lateral leg, lateral foot, sole |
| Superior gluteal nerve | L4-S1 | Gluteus medius, gluteus minimus, tensor fasciae latae | None |
| Inferior gluteal nerve | L5-S2 | Gluteus maximus | None |
| Posterior cutaneous nerve of thigh | S1-S3 | None | Posterior thigh |
| Pudendal nerve | S2-S4 | Perineal muscles | Perineum |
Memory trick: Tibial = Toe curlers (plantarflexion/inversion). Common Fibular = Foot dorsiflexion & eversion.
Femoral hernia passes through the femoral canal (medial compartment of femoral sheath). More common in women. Inferior and lateral to pubic tubercle (unlike inguinal hernia which is superior and medial).
Order from bone outward: Art, Vein, Nerve (AVN)
| Vessel | Origin | Key Points |
|---|---|---|
| Femoral artery | External iliac (below inguinal ligament) | Palpable at mid-inguinal point; becomes popliteal at adductor hiatus |
| Profunda femoris | Femoral artery (2-3 cm below inguinal lig.) | Main blood supply to thigh; gives medial & lateral circumflex femoral aa. |
| Medial circumflex femoral a. | Profunda femoris | Main supply to head of femur - at risk in femoral neck fractures |
| Popliteal artery | Continuation of femoral | Divides into anterior + posterior tibial aa. |
| Anterior tibial a. | Popliteal | Becomes dorsalis pedis at ankle |
| Posterior tibial a. | Popliteal | Palpable posterior to medial malleolus; gives fibular (peroneal) a. |
| Dorsalis pedis | Anterior tibial | Palpable on dorsum of foot |
| Compartment | Key Muscles | Nerve | Action |
|---|---|---|---|
| Anterior | Tibialis anterior, EHL, EDL, fibularis tertius | Deep fibular | Dorsiflexion, toe extension, inversion |
| Lateral | Fibularis longus, fibularis brevis | Superficial fibular | Eversion, weak plantarflexion |
| Posterior (superficial) | Gastrocnemius, soleus, plantaris | Tibial | Plantarflexion |
| Posterior (deep) | Tibialis posterior, FHL, FDL, popliteus | Tibial | Inversion, toe flexion |
Compartment syndrome most common in anterior compartment of leg after tibial fractures.
| Muscle | Nerve | Action | Clinical |
|---|---|---|---|
| Gluteus maximus | Inferior gluteal (L5-S2) | Hip extension + lateral rotation | Weak going upstairs |
| Gluteus medius | Superior gluteal (L4-S1) | Hip abduction | Trendelenburg if paralyzed |
| Gluteus minimus | Superior gluteal (L4-S1) | Hip abduction | Same as medius |
| Piriformis | Nerve to piriformis (S1-S2) | Lateral rotation | Piriformis syndrome |
| Tensor fasciae latae | Superior gluteal (L4-S1) | Abduction + medial rotation | IT band syndrome |
| Fact | Answer |
|---|---|
| Largest nerve in the body | Sciatic nerve |
| Longest vein in the body | Great saphenous vein |
| Largest tarsal bone | Calcaneus |
| Foot drop cause | Common fibular nerve injury at fibular neck |
| Trendelenburg sign cause | Superior gluteal nerve palsy |
| Nerve for knee jerk | Femoral nerve (L3, L4) |
| Nerve for ankle jerk | Tibial nerve (S1, S2) |
| Femoral hernia (vs inguinal) | Inferior and lateral to pubic tubercle |
| Meralgia paresthetica nerve | Lateral cutaneous nerve of thigh (L2, L3) |
| Safe IM injection site | Upper outer quadrant of gluteal region |
| Profunda femoris origin | Femoral artery, 2-3 cm below inguinal ligament |
| Main blood supply to femoral head | Medial circumflex femoral artery |
| Muscle unlocking the knee | Popliteus (lateral rotation of femur on tibia) |
| Muscle attached to iliotibial band | Tensor fasciae latae + gluteus maximus |
| Nerve at risk in knee dislocation | Common fibular nerve |
| Sciatic nerve exit from pelvis | Greater sciatic foramen, below piriformis |
| Superior gluteal nerve exit | Greater sciatic foramen, above piriformis |
| Dermatome | Area |
|---|---|
| L1 | Inguinal region / groin |
| L2 | Anterior upper thigh |
| L3 | Anterior lower thigh / knee |
| L4 | Medial leg + medial dorsum of foot |
| L5 | Lateral leg + dorsum of foot + great toe |
| S1 | Sole + lateral foot + little toe |
| S2 | Posterior thigh |
| S3-S4 | Perineum |
| Reflex | Root | Nerve |
|---|---|---|
| Knee jerk (patellar) | L3-L4 | Femoral |
| Ankle jerk (Achilles) | S1-S2 | Tibial |
| Plantar reflex (Babinski) | S1-S2 | Tibial |
Create a presentation summarizing lower limb anatomy MCQ patterns for NEET PG
mkdir -p /home/daytona/workspace/lower-limb-neet
~/lower-limb-neet/create_pptx.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Lower Limb Anatomy - NEET PG MCQ Patterns";
pres.author = "Orris";
// ─── COLOUR PALETTE ───────────────────────────────────────────────
const C = {
navy: "0A1931", // dominant dark
teal: "0D7377", // accent
gold: "F4A01C", // highlight / star
cream: "F8F4EE", // light bg
white: "FFFFFF",
red: "E53E3E", // danger/wrong
green: "2D8A4E", // correct answer
gray: "6B7280",
lgray: "E5E7EB",
purple: "553C9A",
orange: "C05621",
};
// ─── HELPER: SECTION HEADER SLIDE ─────────────────────────────────
function sectionSlide(pres, num, title, subtitle) {
const sl = pres.addSlide();
// Full dark bg
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
// Accent bar left
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.35, h: 5.625, fill: { color: C.teal }, line: { color: C.teal } });
// Big number
sl.addText(`${num}`, { x: 0.6, y: 0.5, w: 2, h: 2, fontSize: 96, bold: true, color: C.teal, valign: "top" });
// Title
sl.addText(title, { x: 0.6, y: 2.3, w: 8.8, h: 1.2, fontSize: 38, bold: true, color: C.white, valign: "middle" });
// Subtitle
if (subtitle) {
sl.addText(subtitle, { x: 0.6, y: 3.4, w: 8.8, h: 0.8, fontSize: 18, color: C.gold, italic: true });
}
// Gold bottom stripe
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.gold }, line: { color: C.gold } });
return sl;
}
// ─── HELPER: CONTENT SLIDE (2-column) ─────────────────────────────
function contentSlide2Col(pres, title, col1Title, col1Items, col2Title, col2Items, accentColor) {
const acc = accentColor || C.teal;
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
// Header bar
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: acc }, line: { color: acc } });
sl.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });
// Col 1
sl.addShape(pres.shapes.RECTANGLE, { x: 0.25, y: 0.9, w: 4.5, h: 4.5, fill: { color: C.white }, line: { color: C.lgray }, shadow: { type: "outer", color: "000000", blur: 4, offset: 1, angle: 135, opacity: 0.10 } });
sl.addText(col1Title, { x: 0.35, y: 0.95, w: 4.3, h: 0.45, fontSize: 14, bold: true, color: acc });
const c1 = col1Items.map((t, i) => ({
text: t,
options: { bullet: { type: "number", indent: 15 }, fontSize: 12.5, color: C.navy, breakLine: i < col1Items.length - 1 }
}));
sl.addText(c1, { x: 0.35, y: 1.42, w: 4.3, h: 3.8 });
// Col 2
sl.addShape(pres.shapes.RECTANGLE, { x: 5.25, y: 0.9, w: 4.5, h: 4.5, fill: { color: C.white }, line: { color: C.lgray }, shadow: { type: "outer", color: "000000", blur: 4, offset: 1, angle: 135, opacity: 0.10 } });
sl.addText(col2Title, { x: 5.35, y: 0.95, w: 4.3, h: 0.45, fontSize: 14, bold: true, color: acc });
const c2 = col2Items.map((t, i) => ({
text: t,
options: { bullet: { type: "number", indent: 15 }, fontSize: 12.5, color: C.navy, breakLine: i < col2Items.length - 1 }
}));
sl.addText(c2, { x: 5.35, y: 1.42, w: 4.3, h: 3.8 });
return sl;
}
// ─── HELPER: MCQ CARD SLIDE ────────────────────────────────────────
function mcqSlide(pres, qNum, question, options, correctIdx, explanation) {
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
// Top accent strip
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.gold }, line: { color: C.gold } });
// Q number badge
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.2, w: 1.0, h: 0.5, fill: { color: C.teal }, line: { color: C.teal }, rectRadius: 0.08 });
sl.addText(`Q ${qNum}`, { x: 0.3, y: 0.2, w: 1.0, h: 0.5, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle" });
// Question text
sl.addText(question, { x: 0.3, y: 0.85, w: 9.4, h: 0.85, fontSize: 16.5, bold: true, color: C.white, valign: "top" });
// Options
const optColors = ["3A5A8C", "3A5A8C", "3A5A8C", "3A5A8C"];
optColors[correctIdx] = C.green;
const labels = ["A", "B", "C", "D"];
const xs = [0.3, 5.15];
const ys = [1.85, 2.65];
options.forEach((opt, i) => {
const col = i < 2 ? 0 : 1;
const row = i % 2;
const ox = xs[col];
const oy = ys[row];
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: ox, y: oy, w: 4.6, h: 0.65, fill: { color: optColors[i] }, line: { color: optColors[i] }, rectRadius: 0.07 });
// Label circle
sl.addShape(pres.shapes.ELLIPSE, { x: ox + 0.08, y: oy + 0.1, w: 0.45, h: 0.45, fill: { color: i === correctIdx ? "1A5E35" : "1E3A6E" }, line: { color: i === correctIdx ? "1A5E35" : "1E3A6E" } });
sl.addText(labels[i], { x: ox + 0.08, y: oy + 0.1, w: 0.45, h: 0.45, fontSize: 13, bold: true, color: C.gold, align: "center", valign: "middle" });
sl.addText(opt, { x: ox + 0.62, y: oy + 0.04, w: 3.85, h: 0.57, fontSize: 12.5, color: C.white, valign: "middle" });
});
// Explanation box
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 3.55, w: 9.4, h: 1.8, fill: { color: "0D2B3E" }, line: { color: C.teal }, rectRadius: 0.1 });
sl.addText("Explanation", { x: 0.5, y: 3.62, w: 2.5, h: 0.35, fontSize: 12, bold: true, color: C.gold });
sl.addText(explanation, { x: 0.5, y: 3.98, w: 9.0, h: 1.3, fontSize: 12, color: "B0C4D8", valign: "top" });
return sl;
}
// ─── HELPER: TABLE SLIDE ──────────────────────────────────────────
function tableSlide(pres, title, headers, rows, accentColor) {
const acc = accentColor || C.teal;
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: acc }, line: { color: acc } });
sl.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });
const colW = 9.5 / headers.length;
const tableData = [
headers.map(h => ({ text: h, options: { bold: true, color: C.white, fontSize: 12, fill: acc, align: "center" } })),
...rows.map((row, ri) => row.map(cell => ({
text: cell,
options: { fontSize: 11, color: C.navy, fill: ri % 2 === 0 ? C.white : "EFF6FF", align: "left" }
})))
];
sl.addTable(tableData, { x: 0.25, y: 0.9, w: 9.5, colW: Array(headers.length).fill(colW), border: { pt: 0.5, color: C.lgray }, autoPage: false });
return sl;
}
// ─── HELPER: BULLET SLIDE ─────────────────────────────────────────
function bulletSlide(pres, title, items, accentColor, badgeItems) {
const acc = accentColor || C.teal;
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: acc }, line: { color: acc } });
sl.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });
const richItems = items.map((item, i) => {
const isLast = i === items.length - 1;
if (typeof item === "string") {
return { text: item, options: { bullet: { code: "25B6", color: acc }, fontSize: 13, color: C.navy, breakLine: !isLast, paraSpaceAfter: 4 } };
}
return item;
});
sl.addText(richItems, { x: 0.4, y: 0.88, w: 9.2, h: 4.6, valign: "top" });
if (badgeItems) {
badgeItems.forEach((b, i) => {
const bx = 0.4 + (i % 3) * 3.1;
const by = 0.88 + Math.floor(i / 3) * 0.75;
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: bx, y: by, w: 2.9, h: 0.6, fill: { color: acc }, line: { color: acc }, rectRadius: 0.08 });
sl.addText(b, { x: bx + 0.1, y: by, w: 2.7, h: 0.6, fontSize: 12, color: C.white, bold: true, valign: "middle" });
});
}
return sl;
}
// ═══════════════════════════════════════════════════════════════════
// SLIDES
// ═══════════════════════════════════════════════════════════════════
// ── SLIDE 1: TITLE ─────────────────────────────────────────────────
{
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
// Teal accent left
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: C.teal }, line: { color: C.teal } });
// Gold triangle top-right decorative
sl.addShape(pres.shapes.RIGHT_TRIANGLE, { x: 7.5, y: 0, w: 2.5, h: 2.5, fill: { color: "0D3B6E" }, line: { color: "0D3B6E" } });
// NEET PG badge
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.7, y: 0.35, w: 2.2, h: 0.55, fill: { color: C.gold }, line: { color: C.gold }, rectRadius: 0.08 });
sl.addText("NEET PG 2026", { x: 0.7, y: 0.35, w: 2.2, h: 0.55, fontSize: 13, bold: true, color: C.navy, align: "center", valign: "middle" });
// Main title
sl.addText("LOWER LIMB", { x: 0.7, y: 1.05, w: 8.8, h: 1.0, fontSize: 52, bold: true, color: C.white, charSpacing: 4 });
sl.addText("ANATOMY", { x: 0.7, y: 1.9, w: 8.8, h: 0.85, fontSize: 52, bold: true, color: C.teal, charSpacing: 4 });
sl.addText("MCQ Patterns & High-Yield Notes", { x: 0.7, y: 2.85, w: 8.8, h: 0.5, fontSize: 20, color: C.gold, italic: true });
// Divider
sl.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 3.45, w: 5, h: 0.04, fill: { color: C.teal }, line: { color: C.teal } });
// Topics row
const topics = ["Nerves", "Vessels", "Muscles", "Joints", "Clinical"];
topics.forEach((t, i) => {
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.7 + i * 1.85, y: 3.65, w: 1.65, h: 0.45, fill: { color: "0D3B6E" }, line: { color: C.teal }, rectRadius: 0.07 });
sl.addText(t, { x: 0.7 + i * 1.85, y: 3.65, w: 1.65, h: 0.45, fontSize: 12, color: C.white, align: "center", valign: "middle" });
});
// Bottom bar
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.gold }, line: { color: C.gold } });
sl.addText("Based on Gray's Anatomy for Students & Bradley-Daroff's Neurology", { x: 0.3, y: 5.3, w: 9.4, h: 0.325, fontSize: 10, color: C.navy, valign: "middle", italic: true });
}
// ── SLIDE 2: TABLE OF CONTENTS ─────────────────────────────────────
{
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.navy }, line: { color: C.navy } });
sl.addText("WHAT'S INSIDE", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });
const sections = [
{ num: "01", title: "Regions, Bones & Compartments", icon: "▦" },
{ num: "02", title: "Nerve Map (Lumbar + Sacral Plexus)", icon: "⚡" },
{ num: "03", title: "Femoral Triangle & Adductor Canal", icon: "▲" },
{ num: "04", title: "Vessels & Blood Supply", icon: "♥" },
{ num: "05", title: "Clinical Nerve Injuries (MCQ Goldmine)", icon: "★" },
{ num: "06", title: "Dermatomes & Reflexes", icon: "◉" },
{ num: "07", title: "Practice MCQs with Explanations", icon: "✎" },
{ num: "08", title: "Quick-Fire High-Yield Facts", icon: "⚑" },
];
sections.forEach((s, i) => {
const col = i < 4 ? 0 : 1;
const row = i % 4;
const bx = col === 0 ? 0.25 : 5.15;
const by = 0.9 + row * 1.12;
sl.addShape(pres.shapes.RECTANGLE, { x: bx, y: by, w: 4.65, h: 0.92, fill: { color: C.white }, line: { color: C.lgray }, shadow: { type: "outer", color: "000000", blur: 3, offset: 1, angle: 135, opacity: 0.08 } });
sl.addShape(pres.shapes.RECTANGLE, { x: bx, y: by, w: 0.55, h: 0.92, fill: { color: C.teal }, line: { color: C.teal } });
sl.addText(s.num, { x: bx, y: by, w: 0.55, h: 0.92, fontSize: 15, bold: true, color: C.white, align: "center", valign: "middle" });
sl.addText(s.title, { x: bx + 0.65, y: by + 0.05, w: 3.85, h: 0.82, fontSize: 12.5, color: C.navy, valign: "middle", bold: false });
});
}
// ── SLIDE 3: SECTION 1 HEADER ──────────────────────────────────────
sectionSlide(pres, "01", "Regions, Bones & Compartments", "Foundations — Always in 1-2 MCQs");
// ── SLIDE 4: BONES & COMPARTMENTS ─────────────────────────────────
contentSlide2Col(pres, "BONES — HIGH YIELD FACTS",
"Femur Key Points",
[
"Largest bone in the body",
"Neck-shaft angle ≈ 126° (normal)",
"Coxa vara: angle < 120°",
"Coxa valga: angle > 135°",
"Greater trochanter → Glut. med & min",
"Lesser trochanter → Iliopsoas insertion",
"Medial circumflex femoral a. → head of femur supply",
],
"Tarsal Bones (7) — Mnemonic",
[
"The Cavalry Never Marches Curiously Clumsy",
"Talus, Calcaneus (proximal group)",
"Navicular (intermediate)",
"3 Cuneiforms + Cuboid (distal group)",
"Calcaneus = largest tarsal bone",
"Great toe has 2 phalanges; others = 3",
"5 metatarsals; I (medial) to V (lateral)",
],
C.teal
);
// ── SLIDE 5: LEG COMPARTMENTS TABLE ───────────────────────────────
tableSlide(pres, "COMPARTMENTS OF THE LEG — Tested Every Year",
["Compartment", "Key Muscles", "Nerve", "Action"],
[
["Anterior", "Tib. anterior, EHL, EDL", "Deep fibular", "Dorsiflexion, toe extension"],
["Lateral", "Fibularis longus & brevis", "Superficial fibular", "Eversion, weak plantarflex."],
["Post. Superficial", "Gastrocnemius, Soleus", "Tibial", "Plantarflexion"],
["Post. Deep", "Tib. posterior, FHL, FDL", "Tibial", "Inversion, toe flexion"],
["★ Most affected by compartment syndrome", "→ ANTERIOR compartment", "after tibial fracture", ""],
],
C.navy
);
// ── SLIDE 6: SECTION 2 HEADER ──────────────────────────────────────
sectionSlide(pres, "02", "Nerve Map", "Lumbar + Sacral Plexus — Most MCQs Tested Here");
// ── SLIDE 7: LUMBAR PLEXUS TABLE ──────────────────────────────────
tableSlide(pres, "LUMBAR PLEXUS NERVES (L1–L4)",
["Nerve", "Roots", "Key Muscles Supplied", "Sensory Area"],
[
["Femoral", "L2-L4", "Quadriceps, iliopsoas, sartorius, pectineus", "Anterior thigh + medial leg (saphenous)"],
["Obturator", "L2-L4", "All medial compartment (adductors)", "Medial upper thigh"],
["Lat. cutaneous n. of thigh", "L2-L3", "None (purely sensory)", "Lateral thigh"],
["Ilio-inguinal", "L1", "None", "Medial upper thigh + perineum"],
["Genitofemoral", "L1-L2", "Cremaster (genital br.)", "Upper central anterior thigh"],
],
C.purple
);
// ── SLIDE 8: SACRAL PLEXUS TABLE ──────────────────────────────────
tableSlide(pres, "SACRAL PLEXUS NERVES (L4–S3)",
["Nerve", "Roots", "Key Muscles", "Notes"],
[
["Sciatic (largest n. in body)", "L4-S3", "All post. thigh, leg & foot", "Exits below piriformis"],
["Superior gluteal", "L4-S1", "Glut. med, min, TFL", "Exits ABOVE piriformis"],
["Inferior gluteal", "L5-S2", "Gluteus maximus only", "Exits below piriformis"],
["Post. cut. n. of thigh", "S1-S3", "None", "Posterior thigh sensation"],
["Tibial (sciatic br.)", "L4-S3 ant.", "Post. thigh + leg + sole", "Ankle jerk S1-S2"],
["Common fibular (sciatic br.)", "L4-S2 post.", "Ant. & lat. compartments of leg", "Foot drop if injured"],
],
C.teal
);
// ── SLIDE 9: SECTION 3 HEADER ──────────────────────────────────────
sectionSlide(pres, "03", "Femoral Triangle & Adductor Canal", "A favourite MCQ topic");
// ── SLIDE 10: FEMORAL TRIANGLE ────────────────────────────────────
{
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.purple }, line: { color: C.purple } });
sl.addText("FEMORAL TRIANGLE — BOUNDARIES & CONTENTS", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 20, bold: true, color: C.white, valign: "middle" });
// Triangle diagram (left column)
// Base
sl.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.95, w: 4.2, h: 0.55, fill: { color: C.navy }, line: { color: C.navy } });
sl.addText("BASE: Inguinal Ligament", { x: 0.5, y: 0.95, w: 4.2, h: 0.55, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle" });
// Medial border
sl.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 1.55, w: 1.9, h: 0.52, fill: { color: C.teal }, line: { color: C.teal } });
sl.addText("Medial: Adductor longus", { x: 0.5, y: 1.55, w: 1.9, h: 0.52, fontSize: 10.5, color: C.white, align: "center", valign: "middle" });
// Lateral border
sl.addShape(pres.shapes.RECTANGLE, { x: 2.8, y: 1.55, w: 1.9, h: 0.52, fill: { color: C.teal }, line: { color: C.teal } });
sl.addText("Lateral: Sartorius", { x: 2.8, y: 1.55, w: 1.9, h: 0.52, fontSize: 10.5, color: C.white, align: "center", valign: "middle" });
// Floor
sl.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 2.15, w: 4.2, h: 0.52, fill: { color: "3A5A8C" }, line: { color: "3A5A8C" } });
sl.addText("Floor: Iliopsoas (lat.) + Pectineus & Adductor longus (med.)", { x: 0.5, y: 2.15, w: 4.2, h: 0.52, fontSize: 10, color: C.white, align: "center", valign: "middle" });
// Apex
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 1.8, y: 2.75, w: 1.6, h: 0.5, fill: { color: C.gold }, line: { color: C.gold }, rectRadius: 0.08 });
sl.addText("APEX → Adductor Canal", { x: 1.8, y: 2.75, w: 1.6, h: 0.5, fontSize: 10, bold: true, color: C.navy, align: "center", valign: "middle" });
// Arrow
sl.addShape(pres.shapes.RECTANGLE, { x: 2.47, y: 3.3, w: 0.06, h: 0.5, fill: { color: C.gray }, line: { color: C.gray } });
// NAVY mnemonic (right column)
sl.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 0.88, w: 4.55, h: 4.55, fill: { color: C.white }, line: { color: C.lgray } });
sl.addText("CONTENTS (Lateral → Medial)", { x: 5.35, y: 0.93, w: 4.25, h: 0.4, fontSize: 13, bold: true, color: C.purple });
sl.addText("Mnemonic: N A V Y", { x: 5.35, y: 1.33, w: 4.25, h: 0.4, fontSize: 16, bold: true, color: C.gold });
const navy = [
{ letter: "N", word: "Nerve", detail: "Femoral nerve (lateral to sheath, NOT inside it)" },
{ letter: "A", word: "Artery", detail: "Femoral artery — palpable at mid-inguinal point" },
{ letter: "V", word: "Vein", detail: "Femoral vein" },
{ letter: "Y", word: "\"Y\"mphatics", detail: "In femoral canal → site of femoral hernia" },
];
navy.forEach((n, i) => {
const by = 1.82 + i * 0.82;
sl.addShape(pres.shapes.ELLIPSE, { x: 5.35, y: by + 0.05, w: 0.5, h: 0.5, fill: { color: C.teal }, line: { color: C.teal } });
sl.addText(n.letter, { x: 5.35, y: by + 0.05, w: 0.5, h: 0.5, fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle" });
sl.addText(n.word, { x: 5.95, y: by, w: 1.1, h: 0.3, fontSize: 13, bold: true, color: C.navy });
sl.addText(n.detail, { x: 5.95, y: by + 0.28, w: 3.65, h: 0.45, fontSize: 10.5, color: C.gray });
});
// Femoral hernia note
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.5, y: 3.9, w: 4.2, h: 1.45, fill: { color: "FFF7E0" }, line: { color: C.gold }, rectRadius: 0.1 });
sl.addText("★ FEMORAL HERNIA", { x: 0.65, y: 3.97, w: 3.9, h: 0.38, fontSize: 13, bold: true, color: C.orange });
sl.addText("• Passes through femoral canal (medial femoral sheath)\n• Inferior and lateral to pubic tubercle\n• More common in women; high risk of strangulation", { x: 0.65, y: 4.35, w: 3.9, h: 0.95, fontSize: 11, color: C.navy });
}
// ── SLIDE 11: SECTION 4 HEADER ─────────────────────────────────────
sectionSlide(pres, "04", "Vessels & Blood Supply", "Femoral → Popliteal → Tibial arteries");
// ── SLIDE 12: VESSELS TABLE ───────────────────────────────────────
tableSlide(pres, "MAJOR VESSELS OF THE LOWER LIMB",
["Vessel", "Origin", "Key Clinical Point"],
[
["Femoral artery", "External iliac (below ing. lig.)", "Palpable at mid-inguinal point; continues as popliteal via adductor hiatus"],
["Profunda femoris", "Femoral a. (2-3 cm below ing. lig.)", "Main supply to thigh; gives medial & lateral circumflex femoral aa."],
["Medial circumflex femoral a.", "Profunda femoris", "★ Main blood supply to head of femur — at risk in femoral neck fractures"],
["Great saphenous vein", "Dorsal venous arch of foot", "Longest vein in body; passes anterior to medial malleolus; drains → femoral vein"],
["Popliteal artery", "Femoral a. (at adductor hiatus)", "Deepest structure in popliteal fossa (closest to bone). AVN order"],
["Anterior tibial a.", "Popliteal", "Becomes dorsalis pedis at ankle — palpable on dorsum of foot"],
["Posterior tibial a.", "Popliteal", "Palpable posterior to medial malleolus; gives fibular (peroneal) a."],
],
C.teal
);
// ── SLIDE 13: SECTION 5 HEADER ─────────────────────────────────────
sectionSlide(pres, "05", "Clinical Nerve Injuries", "MCQ Goldmine — 3-4 Questions Every Exam");
// ── SLIDE 14: NERVE INJURIES TABLE ────────────────────────────────
tableSlide(pres, "NERVE INJURY PATTERNS — HIGH YIELD",
["Nerve", "Site of Injury", "Deformity / Sign", "Gait"],
[
["Common fibular (peroneal)", "Neck of fibula", "FOOT DROP (loss of dorsiflexion + eversion)", "High-stepping (steppage) gait"],
["Superior gluteal", "Misplaced IM injection / hip surgery", "Trendelenburg sign (pelvis drops contralat.)", "Waddling (Trendelenburg) gait"],
["Femoral nerve", "Femoral triangle / inguinal region", "Loss of knee extension; absent knee jerk", "Knee locked in hyperextension"],
["Obturator nerve", "Childbirth / pelvic surgery", "Weak adduction; medial thigh sensory loss", "Usually normal gait"],
["Sciatic nerve", "Misplaced IM injection (wrong quadrant)", "Weak knee flex. + all below-knee muscles", "Variable"],
["Lat. cut. n. of thigh", "Under inguinal lig. near ASIS", "Meralgia paresthetica (burning lat. thigh)", "Normal (sensory only)"],
],
C.red
);
// ── SLIDE 15: NERVE INJURIES BULLETS ──────────────────────────────
{
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.red }, line: { color: C.red } });
sl.addText("CLINICAL PEARLS — NERVE INJURIES", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 20, bold: true, color: C.white, valign: "middle" });
const cards = [
{ title: "Common Fibular N.", color: C.red, points: ["Wraps around NECK OF FIBULA", "Foot drop = dorsiflexion lost", "Eversion lost (lateral compart.)", "Sensory: lateral leg + dorsum foot", "Causes: fracture, tight cast, bed rest"] },
{ title: "Superior Gluteal N.", color: "1A6B3A", points: ["L4–S1; exits ABOVE piriformis", "Trendelenburg sign on standing", "Muscles: glut. med, min, TFL", "Cause: incorrect IM injection", "Safe site: upper outer quadrant"] },
{ title: "Meralgia Paresthetica", color: C.purple, points: ["Lat. cut. n. of thigh (L2–L3)", "Purely sensory — no motor loss", "Burning/tingling lateral thigh", "Entrapment near ASIS under ing. lig.", "Risk: obesity, pregnancy, tight belts"] },
{ title: "Sciatic N. Injury", color: "8B4513", points: ["L4–S3 | exits below piriformis", "Fibular division more vulnerable", "Misplaced IM → upper outer quadrant safe", "Complete: all below-knee weakness", "Partial often mimics fibular palsy"] },
];
cards.forEach((c, i) => {
const cx = i < 2 ? 0.25 + i * 4.85 : 0.25 + (i - 2) * 4.85;
const cy = i < 2 ? 0.88 : 3.2;
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: cx, y: cy, w: 4.55, h: 2.12, fill: { color: "0D2A3E" }, line: { color: c.color }, rectRadius: 0.1 });
sl.addShape(pres.shapes.RECTANGLE, { x: cx, y: cy, w: 4.55, h: 0.45, fill: { color: c.color }, line: { color: c.color } });
sl.addText(c.title, { x: cx + 0.1, y: cy, w: 4.35, h: 0.45, fontSize: 13, bold: true, color: C.white, valign: "middle" });
const bullets = c.points.map((p, pi) => ({ text: p, options: { bullet: { code: "25CF" }, fontSize: 11, color: "B0C4D8", breakLine: pi < c.points.length - 1, paraSpaceAfter: 2 } }));
sl.addText(bullets, { x: cx + 0.15, y: cy + 0.5, w: 4.3, h: 1.55, valign: "top" });
});
}
// ── SLIDE 16: SECTION 6 HEADER ─────────────────────────────────────
sectionSlide(pres, "06", "Dermatomes & Reflexes", "1-2 MCQs guaranteed");
// ── SLIDE 17: DERMATOMES + REFLEXES ───────────────────────────────
contentSlide2Col(pres, "DERMATOMES & REFLEXES",
"Dermatome Map",
[
"L1 → Inguinal / groin region",
"L2 → Anterior upper thigh",
"L3 → Anterior lower thigh / knee",
"L4 → Medial leg + medial dorsum foot",
"L5 → Lateral leg + dorsum foot + great toe",
"S1 → Sole + lateral foot + little toe",
"S2 → Posterior thigh",
"S3-S4 → Perineum",
],
"Reflexes",
[
"Knee jerk (patellar reflex) → L3-L4 (Femoral n.)",
"Ankle jerk (Achilles reflex) → S1-S2 (Tibial n.)",
"Plantar reflex (Babinski) → S1-S2 (Tibial n.)",
"Cremasteric reflex → L1-L2 (Genitofemoral n.)",
"★ L4 lesion: absent knee jerk",
"★ S1 lesion: absent ankle jerk",
"★ L5 lesion: foot drop, reflexes intact",
],
C.purple
);
// ── SLIDE 18: SECTION 7 HEADER ─────────────────────────────────────
sectionSlide(pres, "07", "Practice MCQs", "NEET PG Pattern Questions");
// ── SLIDES 19–23: MCQs ─────────────────────────────────────────────
mcqSlide(pres, 1,
"A patient presents with foot drop and loss of sensation over the dorsum of the foot after sustaining a fracture of the proximal fibula. Which nerve is most likely injured?",
["Tibial nerve", "Superficial fibular nerve", "Common fibular nerve", "Sciatic nerve"],
2,
"The common fibular (peroneal) nerve winds around the neck of the fibula making it extremely vulnerable to injury there. It supplies the anterior and lateral leg compartments responsible for dorsiflexion and eversion. Foot drop = dorsiflexion lost = common fibular nerve injury."
);
mcqSlide(pres, 2,
"A woman develops weakness of hip abduction and a positive Trendelenburg sign following a difficult childbirth. Which nerve is damaged?",
["Inferior gluteal nerve", "Superior gluteal nerve", "Obturator nerve", "Sciatic nerve"],
1,
"The superior gluteal nerve (L4–S1) exits the greater sciatic foramen ABOVE piriformis and innervates gluteus medius, gluteus minimus, and TFL. Paralysis causes Trendelenburg sign: when standing on the affected leg, the pelvis drops on the contralateral side."
);
mcqSlide(pres, 3,
"In the femoral triangle, from lateral to medial, which is the correct order of structures passing under the inguinal ligament?",
["Vein, Artery, Nerve", "Nerve, Vein, Artery", "Artery, Nerve, Vein", "Nerve, Artery, Vein (+ lymphatics)"],
3,
"The mnemonic NAVY: Nerve (femoral) → Artery (femoral) → Vein (femoral) → lymph(Y)atics — from lateral to medial. The femoral nerve is NOT inside the femoral sheath; only the artery, vein, and lymphatics are enclosed by it."
);
mcqSlide(pres, 4,
"A 45-year-old obese man complains of burning pain and numbness over the lateral aspect of his thigh. Sensation is intact elsewhere. No motor deficit. Which nerve is involved?",
["Femoral nerve", "Obturator nerve", "Lateral cutaneous nerve of thigh", "Posterior cutaneous nerve of thigh"],
2,
"Meralgia paresthetica — compression of the lateral cutaneous nerve of thigh (L2–L3) under the inguinal ligament near the ASIS. It is a purely sensory nerve (no motor deficit). Risk factors include obesity, pregnancy, and tight belts. Treatment is conservative."
);
mcqSlide(pres, 5,
"The main blood supply to the head of the femur is from which artery? This vessel is at risk in femoral neck fractures.",
["Obturator artery", "Lateral circumflex femoral artery", "Medial circumflex femoral artery", "Inferior gluteal artery"],
2,
"The medial circumflex femoral artery (branch of profunda femoris) is the main supply to the femoral head. In displaced femoral neck fractures, this vessel is torn → avascular necrosis (AVN) of the femoral head. This is why surgical reduction/replacement is urgent."
);
// ── SLIDE 24: SECTION 8 HEADER ─────────────────────────────────────
sectionSlide(pres, "08", "Quick-Fire High-Yield Facts", "Last-minute revision essentials");
// ── SLIDE 25: QUICK FIRE FACTS ────────────────────────────────────
{
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.gold }, line: { color: C.gold } });
sl.addText("QUICK-FIRE HIGH-YIELD FACTS", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.navy, valign: "middle" });
const facts = [
["Largest nerve in the body", "Sciatic nerve (L4–S3)"],
["Longest vein in the body", "Great saphenous vein"],
["Largest tarsal bone", "Calcaneus"],
["Foot drop nerve + site", "Common fibular n. at neck of fibula"],
["Trendelenburg sign", "Superior gluteal nerve palsy (L4–S1)"],
["Knee jerk root", "L3–L4 (Femoral nerve)"],
["Ankle jerk root", "S1–S2 (Tibial nerve)"],
["Femoral hernia location", "Inferior & lateral to pubic tubercle"],
["Meralgia paresthetica nerve", "Lat. cut. nerve of thigh (L2–L3)"],
["Medial circumflex femoral a.", "Main supply to femoral head"],
["Nerve unlocking the knee", "Popliteus (via tibial n.)"],
["Safe IM injection site", "Upper outer quadrant of gluteal region"],
["Nerve above piriformis", "Superior gluteal nerve"],
["Nerve(s) below piriformis", "Sciatic, inf. gluteal, post. cut. of thigh"],
];
facts.forEach((f, i) => {
const col = i < 7 ? 0 : 1;
const row = i % 7;
const fx = col === 0 ? 0.25 : 5.1;
const fy = 0.88 + row * 0.67;
sl.addShape(pres.shapes.RECTANGLE, { x: fx, y: fy, w: 4.65, h: 0.58, fill: { color: i % 2 === 0 ? C.white : "EFF6FF" }, line: { color: C.lgray } });
sl.addShape(pres.shapes.RECTANGLE, { x: fx, y: fy, w: 0.06, h: 0.58, fill: { color: C.gold }, line: { color: C.gold } });
sl.addText(f[0], { x: fx + 0.15, y: fy + 0.02, w: 2.4, h: 0.54, fontSize: 10.5, color: C.gray, valign: "middle", bold: false });
sl.addText(f[1], { x: fx + 2.6, y: fy + 0.02, w: 2.0, h: 0.54, fontSize: 10.5, bold: true, color: C.navy, valign: "middle" });
});
}
// ── SLIDE 26: FINAL / THANK YOU ────────────────────────────────────
{
const sl = pres.addSlide();
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: C.gold }, line: { color: C.gold } });
sl.addShape(pres.shapes.RIGHT_TRIANGLE, { x: 7.5, y: 3.125, w: 2.5, h: 2.5, fill: { color: "0D3B6E" }, line: { color: "0D3B6E" } });
sl.addText("ALL THE BEST!", { x: 0.7, y: 1.0, w: 8.5, h: 1.0, fontSize: 54, bold: true, color: C.gold, charSpacing: 3 });
sl.addText("You've covered the HIGH-YIELD Lower Limb Anatomy for NEET PG", { x: 0.7, y: 2.1, w: 8.5, h: 0.65, fontSize: 17, color: C.white, italic: true });
const reminders = ["Revise nerve injuries daily", "Practice MCQ patterns", "Use mnemonics (NAVY, etc.)", "Correlate with clinical cases"];
reminders.forEach((r, i) => {
sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.7 + i * 2.25, y: 2.95, w: 2.1, h: 0.65, fill: { color: C.teal }, line: { color: C.teal }, rectRadius: 0.08 });
sl.addText(r, { x: 0.7 + i * 2.25, y: 2.95, w: 2.1, h: 0.65, fontSize: 10.5, color: C.white, align: "center", valign: "middle" });
});
sl.addText("Based on Gray's Anatomy for Students & Bradley-Daroff's Neurology in Clinical Practice", { x: 0.7, y: 4.5, w: 8.5, h: 0.5, fontSize: 11, color: C.gray, italic: true });
sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.teal }, line: { color: C.teal } });
sl.addText("Orris Medical Education • Lower Limb Anatomy NEET PG", { x: 0.3, y: 5.3, w: 9.4, h: 0.325, fontSize: 10, color: C.white, valign: "middle" });
}
// ── WRITE FILE ─────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/lower-limb-neet/Lower_Limb_NEET_PG.pptx" })
.then(() => console.log("SUCCESS: Presentation created."))
.catch(e => console.error("ERROR:", e));
cd /home/daytona/workspace/lower-limb-neet && node create_pptx.js
node -e "const p = require('pptxgenjs'); const pr = new p(); console.log(Object.keys(pr.shapes).filter(k => k.includes('TRIAN') || k.includes('trian')))"
node -e "const p = require('pptxgenjs'); const pr = new p(); console.log(Object.keys(pr.shapes).filter(k => k.includes('ELLIP') || k.includes('OVAL') || k.includes('CIRCLE')))"
grep -n "ELLIPSE" /home/daytona/workspace/lower-limb-neet/create_pptx.js
sed -i 's/pres\.shapes\.ELLIPSE/pres.shapes.OVAL/g' /home/daytona/workspace/lower-limb-neet/create_pptx.js && node /home/daytona/workspace/lower-limb-neet/create_pptx.js
~/lower-limb-neet/create_pptx.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/lower-limb-neet/create_pptx.js'
~/lower-limb-neet/create_pptx.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/lower-limb-neet/create_pptx.js'
node /home/daytona/workspace/lower-limb-neet/create_pptx.js
ls -lh /home/daytona/workspace/lower-limb-neet/Lower_Limb_NEET_PG.pptx
Lower Limb NEET PG
Presentation · PPTX
| # | Slide | Content |
|---|---|---|
| 1 | Title slide | Dark navy theme with topic badges |
| 2 | Table of Contents | 8 sections with card layout |
| 3-5 | Regions, Bones & Compartments | Femur key points, tarsal bones mnemonic, leg compartments table |
| 6-8 | Nerve Map | Lumbar plexus table, Sacral plexus table (color-coded) |
| 9-10 | Femoral Triangle & Adductor Canal | NAVY mnemonic visual, femoral hernia highlight |
| 11-12 | Vessels | Femoral → Popliteal → Tibial artery chain table |
| 13-15 | Clinical Nerve Injuries | Table + 4 clinical card panels (foot drop, Trendelenburg, meralgia, sciatic) |
| 16-17 | Dermatomes & Reflexes | 2-column layout L1-S4 map + reflex roots |
| 18-23 | 5 MCQs with Answers | NEET PG-pattern questions with green correct option + explanation boxes |
| 24-25 | Quick-Fire Facts | 14 high-yield Q&A cards |
| 26 | Final slide | Revision reminder badges |