Can you give me the B pharmacy students anything of their 4th semester preparation of examination in 10 days subjects are organic chemistry, physical pharmaceutics and pharmacognosis and pharmacology and medicinal chemistry with AU

Asking for Preferences
Searching the Web

Andhra University B Pharmacy 4th semester syllabus organic chemistry physical pharmaceutics pharmacognosy pharmacology medicinal chemistry

Reading Web Page

https://www.carewellpharma.in/bpharmacy/syllabus/4th-sem

I now have enough syllabus detail to build a complete, well-structured 10-day study plan. Let me compile this.

B. Pharmacy 4th Semester - 10-Day Exam Preparation Plan

University: Andhra University (AU) | Exam in 10 Days

Subjects Overview

#SubjectUnits
1Pharmaceutical Organic Chemistry - III (BP401T)5 Units
2Medicinal Chemistry - I (BP402T)5 Units
3Physical Pharmaceutics - II (BP403T)5 Units
4Pharmacology - I (BP404T)5 Units
5Pharmacognosy - I (BP405T)5 Units

Strategy

  • 5 subjects x 5 units each = 25 units total
  • Days 1-8: Cover all units (roughly 3 units/day)
  • Day 9: Revision of all subjects + important formulas
  • Day 10: Previous year question papers + final quick review
Each day = ~10-12 hours of study. Morning = new topics. Evening = previous day's revision.

DAY-BY-DAY PLAN


DAY 1 - Sunday (Organic Chemistry - III: Units 1 & 2)

Organic Chemistry III - Unit 1: Stereoisomerism (Optical)
  • Optical activity, enantiomerism, diastereoisomerism, meso compounds
  • Elements of symmetry, chiral/achiral molecules
  • DL and RS systems of nomenclature
  • Reactions of chiral molecules
  • Racemic modification and resolution
  • Asymmetric synthesis (partial and absolute)
Organic Chemistry III - Unit 2: Geometrical & Conformational Isomerism
  • Nomenclature of geometrical isomers (cis-trans, E-Z, syn-anti)
  • Methods of determining configuration
  • Conformational isomerism in ethane, n-butane, cyclohexane
  • Atropisomerism in biphenyls
  • Stereospecific and stereoselective reactions
AU Tip: Stereoisomerism is a very high-weightage topic at AU. Practice drawing Fischer projections, wedge-dash structures, and Newman projections. Expect 16-mark questions from this unit.

DAY 2 - Monday (Organic Chemistry III: Units 3, 4, 5)

Unit 3: Named Reactions
  • Reactions covered: Aldol condensation, Claisen condensation, Perkin reaction, Reformatsky reaction, Beckmann rearrangement, Fries rearrangement, Claisen rearrangement, Gattermann reaction, Gattermann-Koch reaction, Rosenmund reduction, Stephen's reaction, Elbs reaction, Borodine-Hunsdiecker reaction
Unit 4: Heterocyclic Compounds
  • Aromatic character and synthesis of heterocyclics
  • Furan, Thiophene, Pyrrole - synthesis and reactions
  • Pyrazole, Imidazole, Oxazole, Thiazole
  • Indole, Benzofuran, Benzothiophene
  • Quinoline and Isoquinoline (Skraup synthesis, Doebner-Miller)
  • Acridine, Phenothiazine
Unit 5: Alkaloids and Terpenes
  • Classification of alkaloids
  • Isolation, purification, identification of alkaloids
  • Chemistry of Atropine, Cocaine, Quinine, Morphine, Nicotine (brief)
  • Terpenes: Isoprene rule, classification, examples
AU Tip: Named reactions - write mechanism + example for each. Heterocyclic chemistry carries heavy marks. Know synthesis of each ring system.

DAY 3 - Tuesday (Medicinal Chemistry I: Units 1 & 2)

Med Chem I - Unit 1: Introduction & CNS Drugs - Sedative/Hypnotics
  • Physicochemical properties and drug action
  • SAR of Benzodiazepines
  • Drugs: Chlordiazepoxide, Diazepam, Oxazepam, Lorazepam, Alprazolam, Zolpidem
  • SAR of Barbiturates
  • Drugs: Phenobarbital, Amobarbital, Pentobarbital, Secobarbital
  • Miscellaneous: Glutethimide, Triclofos sodium, Paraldehyde
Unit 2: Antipsychotics & Anticonvulsants
  • SAR of Phenothiazines
  • Drugs: Chlorpromazine, Triflupromazine, Thioridazine, Trifluoperazine
  • Ring analogues: Chlorprothixene, Thiothixene, Loxapine, Clozapine
  • Fluorobutyrophenones: Haloperidol, Droperidol, Risperidone
  • SAR of Anticonvulsants
  • Drugs: Phenobarbitone, Phenytoin, Oxazolidinediones (Trimethadione), Succinimides (Ethosuximide), Carbamazepine, Sodium Valproate
AU Tip: For every drug class - learn: Class, SAR, mechanism, prototype drug with structure, uses. AU commonly asks "Give SAR and write structures of 2 drugs from the class."

DAY 4 - Wednesday (Medicinal Chemistry I: Units 3, 4, 5)

Unit 3: Cholinergic & Adrenergic Drugs
  • Anticholinesterases: Physostigmine, Neostigmine, Pyridostigmine, Edrophonium
  • SAR of Anticholinesterases
  • Cholinergic blocking agents (anticholinergics)
  • Tropicamide, Cyclopentolate, Dicyclomine, Propantheline, Glycopyrrolate
  • Antiparkinsonian: Benztropine, Biperidine, Procyclidine, Orphenadrine
Unit 4: Adrenergic Drugs
  • SAR of adrenergic agonists
  • Catecholamines: Epinephrine, Norepinephrine, Dopamine
  • Non-catecholamines: Ephedrine, Phenylephrine, Isoproterenol
  • Adrenergic blockers: Alpha - Phentolamine; Beta - Propranolol, Atenolol, Metoprolol
Unit 5: Local Anaesthetics & Antihistaminics
  • SAR of local anaesthetics
  • Drugs: Cocaine, Procaine, Lidocaine (Lignocaine), Benzocaine, Tetracaine, Bupivacaine
  • SAR of antihistamines (H1 blockers)
  • Drugs: Diphenhydramine, Dimenhydrinate, Chlorpheniramine, Promethazine, Terfenadine, Loratadine

DAY 5 - Thursday (Physical Pharmaceutics II: Units 1 & 2)

PP II - Unit 1: Interfacial Phenomena
  • Surface and interfacial tension - definition, measurement (stalagmometer, Du Nouy tensiometer)
  • Surface free energy, spreading coefficient
  • Adsorption at interfaces - Gibbs adsorption equation
  • Surfactants - types, HLB value, applications
  • Wetting, solubilization, detergency
Unit 2: Colloidal Dispersions
  • Types of colloidal systems
  • Properties: optical (Tyndall effect), electrical (electrophoresis, electroosmosis, zeta potential), kinetic (Brownian motion, diffusion, sedimentation)
  • Stability of colloids - DLVO theory
  • Coagulation/flocculation
  • Protective colloids
  • Application of colloids in pharmacy
AU Tip: HLB calculations, Gibbs adsorption equation, and zeta potential are frequently asked numerically at AU. Practice derivations of these.

DAY 6 - Friday (Physical Pharmaceutics II: Units 3, 4, 5)

Unit 3: Rheology
  • Newtonian and non-Newtonian systems
  • Plastic, pseudoplastic, dilatant flow
  • Thixotropy, anti-thixotropy, bulges and spurs
  • Measurement of viscosity: Ostwald, Stormer, Cone-plate viscometers
  • Applications of rheology in pharmacy
Unit 4: Micromeretics
  • Particle size and distribution - mean particle size
  • Number and weight distribution, particle number
  • Methods for determining particle size: sieving, sedimentation (Stokes' law), microscopy, Coulter counter
  • Particle shape and specific surface area
  • Permeability and adsorption methods for surface area
  • Derived powder properties: porosity, packing arrangement, bulk and tap density, Hausner ratio, Carr's index, flow properties (angle of repose)
Unit 5: Complexation & Protein Binding
  • Types of complexes: metal complexes, inclusion complexes, organic molecular complexes
  • Chelates - EDTA, dimercaprol
  • Cyclodextrin complexes - types and applications
  • Methods of analysis of complexes (continuous variation, mole ratio method)
  • Protein binding - factors affecting, significance in drug action

DAY 7 - Saturday (Pharmacology I: Units 1, 2, 3)

Pharmacology I - Unit 1: General Pharmacology (Part 1)
  • Pharmacokinetics: absorption, distribution, metabolism (biotransformation), excretion (ADME)
  • Routes of administration and their advantages/disadvantages
  • Bioavailability, bioequivalence
  • First-pass effect, enterohepatic circulation
  • Drug-receptor interactions, receptor theories
  • Dose-response relationships, ED50, LD50, therapeutic index
  • Drug nomenclature, sources of drugs
Unit 2: General Pharmacology (Part 2) + Autonomic NS
  • Adverse drug reactions, drug interactions
  • Chronopharmacology
  • Pharmacology of ANS - sympathetic and parasympathetic
  • Neurotransmitters - ACh, Noradrenaline
  • Adrenergic and cholinergic receptors and their classification
Unit 3: Drugs on Peripheral Nervous System
  • Cholinergic drugs (direct and indirect acting)
  • Anticholinergic drugs
  • Adrenergic drugs (alpha and beta agonists)
  • Adrenergic blockers
  • Neuromuscular blocking agents (depolarizing, non-depolarizing)
  • Local anaesthetics
AU Tip: Pharmacology questions at AU often ask "Classify and give mechanism + uses of..." Always give WHO/standard classification first, then mechanism, then adverse effects.

DAY 8 - Sunday (Pharmacognosy I: All 5 Units)

Unit 1: Introduction
  • History and scope of pharmacognosy
  • Classification of drugs of natural origin: alphabetical, morphological, taxonomical, chemical, pharmacological, chemotaxonomical, serotaxonomical
  • Quality control: adulteration, evaluation methods (organoleptic, microscopic, physical, chemical, biological)
Unit 2: Cultivation, Collection, Processing & Storage
  • Factors influencing cultivation of medicinal plants
  • Plant hormones and applications
  • Polyploidy, mutation and hybridization
  • Good Agricultural Practices (GAP)
  • Conservation of medicinal plants
Unit 3: Plant Tissue Culture
  • Historical development
  • Types of cultures (callus, suspension, organ, protoplast)
  • Nutritional requirements, growth and maintenance
  • Applications in pharmacognosy
  • Edible vaccines
Unit 4: Plant Secondary Metabolites
  • Carbohydrates and lipids of pharmaceutical importance
  • Volatile oils - definition, preparation, properties, uses; examples: eucalyptus oil, clove oil, peppermint oil
  • Resins and resin combinations (oleoresins, gum resins, balsams)
  • Tannins - classification, chemistry, uses
Unit 5: Quantitative Microscopy & Specific Drug Studies
  • Lycopodium spore method
  • Leaf constants (palisade ratio, stomatal number, stomatal index, vein-islet number)
  • Camera lucida
  • Important crude drugs to study: Digitalis, Senna, Nux vomica, Cinnamon, Clove, Ginger, Fennel, Coriander
AU Tip: Pharmacognosy at AU commonly tests leaf constants (tabular data), adulteration of specific drugs, and drawing/labeling microscopic characters. Memorize these values.

DAY 9 - Monday (FULL REVISION DAY)

Divide day into 5 blocks of ~2 hours each:
TimeSubjectFocus
7 AM - 9 AMOrganic Chemistry IIINamed reactions (write 1 line mechanism each), all heterocyclic syntheses
9 AM - 11 AMMedicinal Chemistry ISAR tables for each class; draw structures of all prototype drugs
11 AM - 1 PMPhysical Pharmaceutics IIFormulas: HLB, Stokes' law, Hausner ratio, Carr's index, Gibbs equation
2 PM - 4 PMPharmacology IADME, receptor theory, drug classifications, mechanisms
4 PM - 6 PMPharmacognosy ILeaf constants table, classification methods, tissue culture types
6 PM - 8 PMAll subjectsRe-read all short notes / flashcards made during week

DAY 10 - Tuesday (EXAM DAY PREP)

  • Solve 2-3 previous year AU question papers (2022, 2023, 2024)
  • Focus only on frequently repeated questions
  • Do NOT start new topics
  • Morning: Read through your own written notes (not textbooks)
  • Afternoon: Rest and light review
  • Evening: Sleep early (minimum 7 hours before exam)

Subject-Wise High-Priority Topics for AU

Organic Chemistry III

  • Optical isomerism + RS system (always 16 marks)
  • Beckmann, Claisen, Aldol reactions (mechanism)
  • Synthesis of furan, pyrrole, pyridine, quinoline (Skraup)

Medicinal Chemistry I

  • SAR of benzodiazepines and barbiturates
  • SAR of phenothiazines
  • Structures of Diazepam, Chlorpromazine, Phenytoin, Procaine, Lidocaine
  • Local anaesthetics SAR

Physical Pharmaceutics II

  • HLB value calculation and its applications
  • Stokes' law and particle size determination
  • Rheology - classification of flow types (diagram is expected)
  • Zeta potential and its significance
  • Carr's compressibility index, Hausner ratio (formulas and values)

Pharmacology I

  • ADME - all four processes in detail
  • Drug-receptor theories (occupancy theory, rate theory)
  • Therapeutic index, safety margin
  • Classification of adrenergic and cholinergic drugs
  • Neuromuscular blocking agents

Pharmacognosy I

  • All 5 adulteration detection methods
  • Tissue culture types and applications
  • Leaf constants (palisade ratio, stomatal index) - memorize values for Senna, Digitalis
  • Lycopodium spore method with calculation

Tips to Score Well at AU

  1. Write structured answers - AU examiners reward well-organized answers with headings, tables, and flowcharts.
  2. Draw neat diagrams - Organic mechanisms, microscopic diagrams, viscosity curves, and particle size distribution curves fetch extra marks.
  3. Learn drug structures - Medicinal chemistry and organic chemistry questions almost always require structures.
  4. Start with short-answer questions you know well to save time for long answers.
  5. Time management: 3-hour paper with typically 2 long questions (16 marks each) + several short questions (8 marks each). Attempt all.
  6. Previous year papers are the single best tool - AU tends to repeat questions with minor variations.

Good luck with your exams! If you need topic-wise notes for any specific subject or important questions for any unit, just ask.

Generate a detailed study document for Organic Chemistry mechanisms

Reading File
Reading File
Running Command

ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/bpha…

Writing File

~/bpharm-organic-chem/generate_doc.js

const {
  Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
  HeadingLevel, AlignmentType, BorderStyle, WidthType, ShadingType,
  LevelFormat, PageNumber, Header, Footer, TableOfContents
} = require('docx');
const fs = require('fs');

// ─────────────────────────────────────────────
// HELPER FUNCTIONS
// ─────────────────────────────────────────────
function h1(text) {
  return new Paragraph({ heading: HeadingLevel.HEADING_1, children: [new TextRun({ text, bold: true })] });
}
function h2(text) {
  return new Paragraph({ heading: HeadingLevel.HEADING_2, children: [new TextRun({ text, bold: true })] });
}
function h3(text) {
  return new Paragraph({ heading: HeadingLevel.HEADING_3, children: [new TextRun({ text, bold: true })] });
}
function para(text, opts = {}) {
  return new Paragraph({
    alignment: opts.center ? AlignmentType.CENTER : AlignmentType.LEFT,
    spacing: { after: 120 },
    children: [new TextRun({ text, bold: opts.bold || false, italics: opts.italic || false, size: opts.size || 24 })]
  });
}
function bullet(text, bold_prefix) {
  const children = [];
  if (bold_prefix) {
    children.push(new TextRun({ text: bold_prefix, bold: true, size: 22 }));
    children.push(new TextRun({ text: text, size: 22 }));
  } else {
    children.push(new TextRun({ text: text, size: 22 }));
  }
  return new Paragraph({
    numbering: { reference: "bullets", level: 0 },
    spacing: { after: 60 },
    children
  });
}
function numbered(text, bold_prefix) {
  const children = [];
  if (bold_prefix) {
    children.push(new TextRun({ text: bold_prefix, bold: true, size: 22 }));
    children.push(new TextRun({ text: text, size: 22 }));
  } else {
    children.push(new TextRun({ text: text, size: 22 }));
  }
  return new Paragraph({
    numbering: { reference: "numbers", level: 0 },
    spacing: { after: 60 },
    children
  });
}
function spacer() {
  return new Paragraph({ children: [new TextRun("")], spacing: { after: 80 } });
}
function divider() {
  return new Paragraph({
    border: { bottom: { color: "4472C4", space: 1, style: BorderStyle.SINGLE, size: 8 } },
    children: [new TextRun("")],
    spacing: { after: 160 }
  });
}
function infoBox(label, content) {
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [
      new TableRow({
        children: [
          new TableCell({
            shading: { fill: "EBF3FB", type: ShadingType.CLEAR },
            margins: { top: 100, bottom: 100, left: 180, right: 180 },
            children: [
              new Paragraph({ children: [new TextRun({ text: label + ": ", bold: true, size: 22, color: "1F5C9E" }), new TextRun({ text: content, size: 22 })] })
            ]
          })
        ]
      })
    ]
  });
}
function highlightBox(title, lines) {
  const cellChildren = [
    new Paragraph({ children: [new TextRun({ text: title, bold: true, size: 24, color: "FFFFFF" })], shading: { fill: "2E74B5" } })
  ];
  lines.forEach(l => {
    cellChildren.push(new Paragraph({
      numbering: { reference: "bullets", level: 0 },
      spacing: { after: 50 },
      children: [new TextRun({ text: l, size: 22 })]
    }));
  });
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [
      new TableRow({
        children: [
          new TableCell({
            shading: { fill: "D6E8F7", type: ShadingType.CLEAR },
            margins: { top: 100, bottom: 100, left: 180, right: 180 },
            children: cellChildren
          })
        ]
      })
    ]
  });
}

function twoColTable(col1Header, col2Header, rows) {
  const headerRow = new TableRow({
    tableHeader: true,
    children: [
      new TableCell({
        shading: { fill: "2E74B5", type: ShadingType.CLEAR },
        width: { size: 30, type: WidthType.PERCENTAGE },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [new Paragraph({ children: [new TextRun({ text: col1Header, bold: true, color: "FFFFFF", size: 22 })] })]
      }),
      new TableCell({
        shading: { fill: "2E74B5", type: ShadingType.CLEAR },
        width: { size: 70, type: WidthType.PERCENTAGE },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [new Paragraph({ children: [new TextRun({ text: col2Header, bold: true, color: "FFFFFF", size: 22 })] })]
      })
    ]
  });
  const dataRows = rows.map((r, i) => new TableRow({
    children: [
      new TableCell({
        shading: { fill: i % 2 === 0 ? "EBF3FB" : "FFFFFF", type: ShadingType.CLEAR },
        width: { size: 30, type: WidthType.PERCENTAGE },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [new Paragraph({ children: [new TextRun({ text: r[0], bold: true, size: 22 })] })]
      }),
      new TableCell({
        shading: { fill: i % 2 === 0 ? "EBF3FB" : "FFFFFF", type: ShadingType.CLEAR },
        width: { size: 70, type: WidthType.PERCENTAGE },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [new Paragraph({ children: [new TextRun({ text: r[1], size: 22 })] })]
      })
    ]
  }));
  return new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [headerRow, ...dataRows] });
}

function threeColTable(h1t, h2t, h3t, rows) {
  const headerRow = new TableRow({
    tableHeader: true,
    children: [h1t, h2t, h3t].map(h => new TableCell({
      shading: { fill: "2E74B5", type: ShadingType.CLEAR },
      margins: { top: 80, bottom: 80, left: 120, right: 120 },
      children: [new Paragraph({ children: [new TextRun({ text: h, bold: true, color: "FFFFFF", size: 22 })] })]
    }))
  });
  const dataRows = rows.map((r, i) => new TableRow({
    children: r.map(cell => new TableCell({
      shading: { fill: i % 2 === 0 ? "EBF3FB" : "FFFFFF", type: ShadingType.CLEAR },
      margins: { top: 80, bottom: 80, left: 120, right: 120 },
      children: [new Paragraph({ children: [new TextRun({ text: cell, size: 22 })] })]
    }))
  }));
  return new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [headerRow, ...dataRows] });
}

function pageBreak() {
  return new Paragraph({ pageBreakBefore: true, children: [new TextRun("")] });
}

function noteBox(text) {
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [new TableRow({
      children: [new TableCell({
        shading: { fill: "FFF2CC", type: ShadingType.CLEAR },
        margins: { top: 100, bottom: 100, left: 180, right: 180 },
        children: [new Paragraph({ children: [new TextRun({ text: "AU Exam Tip: ", bold: true, size: 22, color: "7F6000" }), new TextRun({ text, size: 22, color: "7F6000" })] })]
      })]
    })]
  });
}

// ─────────────────────────────────────────────
// DOCUMENT CONTENT
// ─────────────────────────────────────────────
const children = [];

// COVER
children.push(spacer(), spacer(), spacer());
children.push(new Paragraph({
  alignment: AlignmentType.CENTER,
  spacing: { after: 200 },
  children: [new TextRun({ text: "B. PHARMACY - 4th SEMESTER", bold: true, size: 36, color: "2E74B5" })]
}));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER,
  spacing: { after: 200 },
  children: [new TextRun({ text: "Pharmaceutical Organic Chemistry - III", bold: true, size: 44, color: "1F3864" })]
}));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER,
  spacing: { after: 200 },
  children: [new TextRun({ text: "Complete Mechanisms Study Guide", bold: true, size: 36, color: "2E74B5" })]
}));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER,
  spacing: { after: 120 },
  children: [new TextRun({ text: "As per Andhra University (AU) Syllabus | BP401T", size: 26, italics: true, color: "404040" })]
}));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER,
  spacing: { after: 80 },
  children: [new TextRun({ text: "Covers: Stereoisomerism | Named Reactions | Heterocyclic Chemistry | Alkaloids", size: 24, color: "404040" })]
}));
children.push(spacer(), spacer());
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [new TableRow({ children: [new TableCell({
    shading: { fill: "1F3864", type: ShadingType.CLEAR },
    margins: { top: 200, bottom: 200, left: 360, right: 360 },
    children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [
      new TextRun({ text: "Prepared for Exam Preparation | July 2026", bold: true, size: 24, color: "FFFFFF" })
    ]})]
  })] })]
}));

// TOC
children.push(pageBreak());
children.push(h1("Table of Contents"));
const tocItems = [
  "Unit 1 - Stereoisomerism",
  "  1.1  Optical Isomerism",
  "  1.2  Enantiomers and Diastereomers",
  "  1.3  Elements of Symmetry",
  "  1.4  DL and RS Nomenclature Systems",
  "  1.5  Racemic Modification and Resolution",
  "  1.6  Asymmetric Synthesis",
  "Unit 2 - Geometrical and Conformational Isomerism",
  "  2.1  Geometrical Isomerism",
  "  2.2  Conformational Isomerism",
  "  2.3  Atropisomerism",
  "  2.4  Stereospecific and Stereoselective Reactions",
  "Unit 3 - Named Reactions with Mechanisms",
  "  3.1  Aldol Condensation",
  "  3.2  Claisen Condensation",
  "  3.3  Perkin Reaction",
  "  3.4  Reformatsky Reaction",
  "  3.5  Beckmann Rearrangement",
  "  3.6  Fries Rearrangement",
  "  3.7  Claisen Rearrangement",
  "  3.8  Gattermann Reaction",
  "  3.9  Gattermann-Koch Reaction",
  "  3.10 Rosenmund Reduction",
  "  3.11 Stephen's Reaction",
  "  3.12 Elbs Reaction",
  "  3.13 Borodine-Hunsdiecker Reaction",
  "Unit 4 - Heterocyclic Chemistry",
  "  4.1  Introduction and Aromatic Character",
  "  4.2  Furan, Thiophene, Pyrrole",
  "  4.3  Pyrazole, Imidazole, Oxazole, Thiazole",
  "  4.4  Quinoline (Skraup Synthesis)",
  "  4.5  Isoquinoline (Bischler-Napieralski)",
  "  4.6  Indole, Benzofuran, Benzothiophene",
  "Unit 5 - Alkaloids and Terpenes",
  "  5.1  Classification of Alkaloids",
  "  5.2  Isolation of Alkaloids",
  "  5.3  Important Alkaloids",
  "  5.4  Terpenes and Isoprene Rule",
  "Quick Revision Tables",
  "Previous Year AU Questions"
];
tocItems.forEach(item => {
  const isMain = !item.startsWith(" ");
  children.push(new Paragraph({
    spacing: { after: isMain ? 100 : 40 },
    children: [new TextRun({ text: item, bold: isMain, size: isMain ? 24 : 22 })]
  }));
});

// ─────────────────────────────────────────────
// UNIT 1
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("UNIT 1 - STEREOISOMERISM"));
children.push(infoBox("Definition", "Stereoisomers are compounds with the same molecular formula and sequence of bonded elements but that differ in the three-dimensional orientations of their atoms."));
children.push(spacer());

children.push(h2("1.1 Optical Isomerism"));
children.push(para("Optical isomers are non-superimposable mirror-image molecules. The key requirement is chirality - the molecule must lack an internal plane of symmetry."));
children.push(spacer());
children.push(infoBox("Optical Activity", "A compound is optically active if it rotates the plane of plane-polarized light. (+) dextrorotatory = rotates right; (-) levorotatory = rotates left."));
children.push(spacer());
children.push(twoColTable("Term", "Definition / Key Point", [
  ["Chiral molecule", "Non-superimposable on its mirror image; lacks a plane, center, or axis of symmetry"],
  ["Achiral molecule", "Superimposable on its mirror image; has a plane of symmetry"],
  ["Chiral center (*)","A carbon atom bonded to 4 different groups (sp3 carbon)"],
  ["Plane of symmetry", "An imaginary plane dividing molecule into two mirror-image halves"],
  ["Center of symmetry", "A point through which every atom has an identical atom at equal distance"],
  ["Axis of symmetry", "An axis about which rotation gives an identical structure"],
  ["Specific rotation [alpha]", "[alpha] = observed rotation / (concentration x path length)"]
]));
children.push(spacer());

children.push(h2("1.2 Enantiomers and Diastereomers"));
children.push(twoColTable("Type", "Description", [
  ["Enantiomers", "Mirror images of each other; same physical properties except direction of optical rotation; same melting point, boiling point, solubility. Differ in biological activity."],
  ["Diastereomers", "Stereoisomers that are NOT mirror images. Different physical AND chemical properties. Easier to separate by conventional methods."],
  ["Meso compounds", "Molecules with chiral centers but an internal plane of symmetry - optically INACTIVE despite having stereocenters. e.g., meso-tartaric acid."],
  ["Racemic mixture", "Equal (1:1) mixture of (+) and (-) enantiomers. Optically inactive (external compensation). Denoted (+/-) or dl."]
]));
children.push(spacer());
children.push(noteBox("Meso compounds are a favourite AU question. Always explain that optical inactivity is due to internal compensation by the plane of symmetry, not because there are no stereocenters."));
children.push(spacer());

children.push(h2("1.3 Elements of Symmetry"));
children.push(para("A molecule is achiral (optically inactive) if it has ANY ONE of the following:"));
children.push(bullet("Plane of symmetry (sigma) - most common test"));
children.push(bullet("Center of symmetry (i) - also called center of inversion"));
children.push(bullet("Alternating axis of symmetry (Sn)"));
children.push(spacer());

children.push(h2("1.4 Nomenclature Systems: DL and RS"));
children.push(h3("DL System (Fischer Convention)"));
children.push(para("Based on the configuration of (+)-glyceraldehyde as the reference standard (D-configuration)."));
children.push(bullet("D - configuration: -OH on the right side in Fischer projection"));
children.push(bullet("L - configuration: -OH on the left side in Fischer projection"));
children.push(bullet("NOT directly related to direction of optical rotation (+/-)"));
children.push(bullet("D-glucose is dextrorotatory; D-fructose is levorotatory"));
children.push(spacer());
children.push(h3("RS System (Cahn-Ingold-Prelog, CIP Rules)"));
children.push(para("A systematic, absolute method for assigning configuration to each stereocenter."));
children.push(spacer());
children.push(para("Step-by-Step Procedure:", { bold: true }));
children.push(numbered("Assign priorities to the 4 substituents on the chiral carbon using CIP rules (1 = highest priority)."));
children.push(numbered("Priority Rule 1: Higher atomic number = higher priority (e.g., Br > Cl > O > N > C > H)."));
children.push(numbered("Priority Rule 2: If tie at first atom, compare atoms attached to it (like a tournament)."));
children.push(numbered("Priority Rule 3: For isotopes, higher mass = higher priority."));
children.push(numbered("Orient molecule so that the LOWEST priority group (4) points AWAY from you."));
children.push(numbered("Read the direction of remaining three groups (1 -> 2 -> 3)."));
children.push(numbered("Clockwise = R (Rectus = right); Counterclockwise = S (Sinister = left)."));
children.push(spacer());
children.push(noteBox("RS system is used for every compound in Medicinal Chemistry. Practice assigning R/S to: alanine, lactic acid, 2-bromobutane, glyceraldehyde. These are common AU examples."));
children.push(spacer());

children.push(h2("1.5 Racemic Modification and Resolution"));
children.push(h3("Racemic Modification"));
children.push(para("Formation of a racemic mixture from an optically active compound. Three methods:"));
children.push(bullet("Thermal racemization - heating causes loss of optical activity"));
children.push(bullet("Chemical racemization - treating with acid/base (enolization)"));
children.push(bullet("Photochemical racemization - UV light induced"));
children.push(spacer());
children.push(h3("Resolution of Racemic Mixtures"));
children.push(para("Separation of a racemate into individual enantiomers. Four methods:"));
children.push(twoColTable("Method", "Principle and Example", [
  ["Mechanical separation", "Pasteur's method - manually separating crystals of (+) and (-) sodium ammonium tartrate under a microscope. Only works for conglomerate crystals."],
  ["Chemical resolution", "React racemate with a pure chiral agent (resolving agent) to form diastereomeric salts -> separate by fractional crystallization -> remove resolving agent. Most practical method. e.g., Racemic acid + brucine."],
  ["Biochemical resolution", "Enzymes or microorganisms selectively metabolize one enantiomer. e.g., Penicillium glaucum preferentially destroys (+)-tartrate."],
  ["Chromatographic resolution", "Chiral stationary phase in HPLC separates enantiomers based on different interactions with chiral column material."]
]));
children.push(spacer());

children.push(h2("1.6 Asymmetric Synthesis"));
children.push(infoBox("Definition", "A reaction in which a new chiral center is created and one enantiomer/diastereomer is formed preferentially or exclusively."));
children.push(spacer());
children.push(twoColTable("Type", "Description", [
  ["Partial asymmetric synthesis", "Unequal amounts of enantiomers formed (enantiomeric excess > 0 but < 100%). Uses chiral starting material, reagent, catalyst, or solvent."],
  ["Absolute asymmetric synthesis", "Only one enantiomer formed (100% ee). Achieved using circularly polarized light or highly specific chiral catalysts (rare)."],
  ["Prochiral center", "An achiral center that becomes chiral when one of its identical groups is replaced by a different group."]
]));

// ─────────────────────────────────────────────
// UNIT 2
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("UNIT 2 - GEOMETRICAL AND CONFORMATIONAL ISOMERISM"));

children.push(h2("2.1 Geometrical Isomerism"));
children.push(para("Occurs due to restricted rotation around a double bond or ring, when each carbon bears two DIFFERENT substituents."));
children.push(spacer());
children.push(h3("Nomenclature Systems"));
children.push(twoColTable("System", "Rule", [
  ["cis-trans", "cis = same groups on same side of double bond; trans = same groups on opposite sides. Used when both carbons have one H and one substituent."],
  ["E-Z system (CIP)", "Assign priorities to both groups on each C of double bond. Z (zusammen = together) = higher priority groups on same side. E (entgegen = opposite) = higher priority groups on opposite sides. Used when cis-trans is ambiguous."],
  ["syn-anti system", "Used for oximes, hydrazones, and semicarbazones. syn = -OH/-NH2 and higher priority on same side."]
]));
children.push(spacer());
children.push(h3("Methods to Determine Configuration of Geometrical Isomers"));
children.push(bullet("Physical properties: cis isomers have higher dipole moment, lower melting point; trans isomers have higher melting point, lower solubility (symmetry)"));
children.push(bullet("Chemical methods: Cyclization - only cis-maleic acid (not trans-fumaric) forms maleic anhydride on heating (both carboxyls must be cis for ring closure)"));
children.push(bullet("Spectroscopic: NMR coupling constant - J (vicinal) is ~6-12 Hz for cis and ~12-18 Hz for trans alkene protons"));
children.push(spacer());

children.push(h2("2.2 Conformational Isomerism"));
children.push(para("Conformers are different spatial arrangements of atoms in a molecule obtained by rotation about single bonds. They interconvert rapidly at room temperature."));
children.push(spacer());
children.push(h3("Ethane Conformations"));
children.push(twoColTable("Conformer", "Description", [
  ["Eclipsed (least stable)", "Dihedral angle = 0 degrees. H atoms on front and back carbons are aligned. Maximum torsional strain (~12 kJ/mol). Highest energy."],
  ["Staggered (most stable)", "Dihedral angle = 60 degrees. H atoms on front and back are maximally separated. Minimum torsional strain. Lowest energy."]
]));
children.push(spacer());
children.push(h3("n-Butane Conformations (Newman Projection about C2-C3)"));
children.push(twoColTable("Conformer", "Energy and Reason", [
  ["Anti (most stable)", "Methyl groups at 180 degrees (anti). Minimum steric strain. Most stable conformation."],
  ["Gauche", "Methyl groups at 60 degrees. Steric interaction between methyl groups. ~3.8 kJ/mol less stable than anti."],
  ["Eclipsed (CH3-H)", "Dihedral 120 degrees. Intermediate torsional + mild steric strain."],
  ["Fully eclipsed (least stable)", "Methyl groups at 0 degrees. Maximum steric (methyl-methyl) + torsional strain. Least stable."]
]));
children.push(spacer());
children.push(h3("Cyclohexane Conformations"));
children.push(bullet("Chair conformation: most stable - all bonds perfectly staggered, no angle strain"));
children.push(bullet("Boat conformation: less stable due to flagpole H-H interactions and eclipsed bonds"));
children.push(bullet("Twist-boat: intermediate, relieves some flagpole strain but still unfavorable"));
children.push(bullet("Half-chair: highest energy transition state between chair and boat"));
children.push(spacer());
children.push(infoBox("Axial vs Equatorial", "In chair cyclohexane, substituents prefer EQUATORIAL position to avoid 1,3-diaxial interactions. Bulky groups strongly prefer equatorial. Ring flip converts axial to equatorial positions."));
children.push(spacer());

children.push(h2("2.3 Atropisomerism (Stereoisomerism in Biphenyls)"));
children.push(para("In biphenyl compounds, rotation about the C-C bond joining the two rings is restricted when ortho substituents are sufficiently bulky. This creates non-superimposable mirror-image forms."));
children.push(spacer());
children.push(para("Conditions for optical activity in biphenyls:"));
children.push(bullet("Each ring must have at least two different ortho substituents"));
children.push(bullet("The two rings must not be coplanar due to steric hindrance from ortho groups"));
children.push(bullet("Rotation about the central C-C bond must be completely restricted"));
children.push(spacer());

children.push(h2("2.4 Stereospecific and Stereoselective Reactions"));
children.push(twoColTable("Type", "Definition and Example", [
  ["Stereospecific", "The stereochemistry of the reactant determines the stereochemistry of the product. Different stereoisomers of the reactant give different stereoisomers of the product. e.g., Bromine addition to cis vs trans-2-butene gives different products (syn addition -> anti addition product via cyclic bromonium ion)."],
  ["Stereoselective", "One stereoisomeric product is formed preferentially over another, regardless of the starting material configuration. e.g., Reduction of a ketone with LiAlH4 may give predominantly one alcohol."]
]));

// ─────────────────────────────────────────────
// UNIT 3 - NAMED REACTIONS
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("UNIT 3 - NAMED REACTIONS WITH MECHANISMS"));
children.push(para("This unit is the most mark-yielding in AU exams. For each reaction, learn: Reagents + Conditions | Step-by-step mechanism | Product and its significance."));
children.push(spacer());

// 3.1 Aldol
children.push(h2("3.1 Aldol Condensation"));
children.push(infoBox("Reaction", "Between two carbonyl compounds (both having alpha-H) in the presence of dilute acid or base to give a beta-hydroxy carbonyl compound (aldol), which on dehydration gives alpha,beta-unsaturated carbonyl compound."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("2 CH3CHO  ──(dil. NaOH, 0-5°C)──>  CH3CH(OH)CH2CHO  ──(heat)──>  CH3CH=CHCHO + H2O", { italic: true }));
children.push(spacer());
children.push(h3("Base-Catalyzed Mechanism"));
children.push(numbered("Base (OH-) removes an alpha-H from one molecule of aldehyde to form a resonance-stabilized carbanion (enolate ion)."));
children.push(numbered("The enolate acts as a nucleophile and attacks the carbonyl carbon of a second aldehyde molecule."));
children.push(numbered("The resulting alkoxide ion accepts a proton from water to give the beta-hydroxy aldehyde (aldol product)."));
children.push(numbered("On heating, elimination of water (E1cb or E2) gives the alpha,beta-unsaturated carbonyl compound."));
children.push(spacer());
children.push(h3("Applications in Pharmacy"));
children.push(bullet("Synthesis of chalcones (used in antifungal, antimalarial drugs)"));
children.push(bullet("Synthesis of Vitamin A (retinol) via retinal"));
children.push(bullet("Cross-aldol condensation used in synthesis of complex molecules"));
children.push(spacer());
children.push(noteBox("AU often asks: 'What is aldol condensation? Give mechanism and mention the product when benzaldehyde and acetaldehyde react.' Answer: Cinnamaldehyde is formed (cross-aldol / Claisen-Schmidt reaction)."));
children.push(spacer());
children.push(divider());

// 3.2 Claisen Condensation
children.push(h2("3.2 Claisen Condensation"));
children.push(infoBox("Reaction", "Condensation between two molecules of an ester (or an ester and a carbonyl compound) in the presence of a strong base (sodium ethoxide) to give a beta-keto ester."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("2 CH3COOC2H5  ──(NaOEt)──>  CH3COCH2COOC2H5  +  C2H5OH", { italic: true }));
children.push(para("(Ethyl acetate forms Ethyl acetoacetate = ethyl 3-oxobutanoate)", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("NaOEt removes an alpha-H from one ester molecule to form an enolate."));
children.push(numbered("The enolate attacks the carbonyl carbon (C=O) of the second ester molecule."));
children.push(numbered("A tetrahedral intermediate forms, which then collapses expelling -OEt (ethoxide) as leaving group."));
children.push(numbered("Product is the beta-keto ester; deprotonation at the acidic CH2 between the two carbonyls makes the reaction irreversible."));
children.push(spacer());
children.push(twoColTable("Variant", "Description", [
  ["Self-Claisen condensation", "Two identical ester molecules (e.g., 2 ethyl acetate -> ethyl acetoacetate)"],
  ["Mixed (crossed) Claisen", "Two different esters; one must lack alpha-H (e.g., ethyl benzoate + ethyl acetate)"],
  ["Dieckmann condensation", "Intramolecular Claisen condensation of a diester to form cyclic beta-keto ester. Used to make 5- and 6-membered rings."],
  ["Claisen-Schmidt", "Between an ester or aldehyde and a ketone (no alpha-H needed on aldehyde component)"]
]));
children.push(spacer());
children.push(divider());

// 3.3 Perkin Reaction
children.push(h2("3.3 Perkin Reaction"));
children.push(infoBox("Reaction", "Condensation of an aromatic aldehyde with an acid anhydride in the presence of the salt of the corresponding acid (as base catalyst) to give an alpha,beta-unsaturated acid (cinnamic acid type)."));
children.push(spacer());
children.push(para("Classic Example:"));
children.push(para("C6H5CHO + (CH3CO)2O  ──(CH3COONa, heat)──>  C6H5CH=CHCOOH + CH3COOH", { italic: true }));
children.push(para("(Benzaldehyde + Acetic anhydride -> Cinnamic acid + Acetic acid)", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("The carboxylate salt (base) removes an alpha-H from acetic anhydride to form an enolate (carbanion)."));
children.push(numbered("The enolate attacks the carbonyl carbon of benzaldehyde (nucleophilic addition)."));
children.push(numbered("A mixed anhydride intermediate is formed."));
children.push(numbered("Elimination of acetic acid gives cinnamic anhydride."));
children.push(numbered("Hydrolysis gives cinnamic acid."));
children.push(spacer());
children.push(bullet("Product: trans-Cinnamic acid (predominantly) due to thermodynamic stability of E-isomer"));
children.push(bullet("Application: Synthesis of cinnamic acid derivatives used as UV absorbers, antimicrobials, and in perfumery"));
children.push(spacer());
children.push(divider());

// 3.4 Reformatsky
children.push(h2("3.4 Reformatsky Reaction"));
children.push(infoBox("Reaction", "Reaction of an aldehyde or ketone with an alpha-halo ester (e.g., ethyl alpha-bromoacetate) in the presence of zinc metal to give a beta-hydroxy ester (after hydrolysis)."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("RCHO + BrCH2COOC2H5  ──(Zn, dry ether)──> then H2O/H+  ──>  RCH(OH)CH2COOC2H5", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("Zinc inserts oxidatively into the C-Br bond of the alpha-bromo ester to form a zinc enolate (organozinc reagent - Reformatsky reagent)."));
children.push(numbered("The organozinc enolate (less reactive than Grignard - does not attack ester groups) attacks the carbonyl of the aldehyde/ketone."));
children.push(numbered("Hydrolysis of the zinc alkoxide intermediate gives the beta-hydroxy ester."));
children.push(spacer());
children.push(infoBox("Key Advantage", "Zinc enolate is mild - it does NOT attack its own ester group (self-condensation), unlike Grignard reagents. This allows selective addition to the aldehyde/ketone."));
children.push(bullet("Application: Synthesis of beta-lactam antibiotics; synthesis of beta-hydroxy acids and their dehydration to alpha,beta-unsaturated acids"));
children.push(spacer());
children.push(divider());

// 3.5 Beckmann
children.push(h2("3.5 Beckmann Rearrangement"));
children.push(infoBox("Reaction", "Acid-catalyzed rearrangement of a ketoxime (R1-C(=N-OH)-R2) to an amide (N-substituted). The group anti (trans) to the -OH migrates."));
children.push(spacer());
children.push(para("Classic Example:"));
children.push(para("Cyclohexanone oxime  ──(H2SO4 or PCl5)──>  Caprolactam  (a cyclic amide / lactam)", { italic: true }));
children.push(para("Industrial use: Caprolactam is the monomer for Nylon-6 polymer.", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("Protonation of the oxime -OH group forms a good leaving group (water)."));
children.push(numbered("The group that is trans (anti) to the -OH migrates to the nitrogen with simultaneous departure of water (1,2-shift, concerted)."));
children.push(numbered("The resulting nitrilium ion is attacked by water."));
children.push(numbered("After proton transfers and tautomerism, an amide (or lactam if cyclic) is formed."));
children.push(spacer());
children.push(noteBox("Key mechanism point for AU: The group migrating is ALWAYS the one trans/anti to the OH group (anti-periplanar). This is a 1,2-migration. Write this clearly."));
children.push(spacer());
children.push(divider());

// 3.6 Fries Rearrangement
children.push(h2("3.6 Fries Rearrangement"));
children.push(infoBox("Reaction", "Rearrangement of phenyl esters to hydroxy aryl ketones (ortho- and/or para-hydroxyaryl ketones) catalyzed by Lewis acids (AlCl3) or Bronsted acids."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("ArOCOR  ──(AlCl3, heat)──>  ortho-HO-Ar-CO-R  +  para-HO-Ar-CO-R", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("AlCl3 coordinates with the carbonyl oxygen of the ester, forming a complex."));
children.push(numbered("Homolytic or heterolytic cleavage of the O-C(acyl) bond produces an acylium ion (RCO+) and a phenoxide."));
children.push(numbered("Acylium ion (electrophile) undergoes electrophilic aromatic substitution (EAS) on the phenoxide ring."));
children.push(numbered("Substitution occurs preferentially at the ortho position at low temperature and at the para position at high temperature."));
children.push(spacer());
children.push(twoColTable("Temperature", "Product", [
  ["Low temperature (<100°C)", "Ortho isomer predominates (intramolecular reaction favored)"],
  ["High temperature (>100°C)", "Para isomer predominates (intermolecular reaction favored)"]
]));
children.push(spacer());
children.push(bullet("Application: Synthesis of hydroxyaryl ketones used in sunscreens (e.g., 4-tert-butyl-4'-methoxydibenzoylmethane derivatives)"));
children.push(spacer());
children.push(divider());

// 3.7 Claisen Rearrangement
children.push(h2("3.7 Claisen Rearrangement (Aliphatic and Aromatic)"));
children.push(infoBox("Reaction", "Thermal [3,3]-sigmatropic rearrangement of allyl vinyl ethers to give gamma,delta-unsaturated carbonyl compounds (aliphatic Claisen) or allyl phenyl ethers to ortho-allyl phenols (aromatic Claisen)."));
children.push(spacer());
children.push(h3("Aromatic Claisen Rearrangement"));
children.push(para("Allyl phenyl ether  ──(heat, 200°C)──>  ortho-allyl phenol  (via cyclohexadienone intermediate)", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("The allyl group migrates through a concerted, pericyclic [3,3]-sigmatropic transition state (chair-like 6-membered cyclic transition state)."));
children.push(numbered("The allyl group bonds to the ortho position, forming a cyclohexadienone intermediate."));
children.push(numbered("Tautomerization restores aromaticity, giving the ortho-allyl phenol."));
children.push(numbered("If both ortho positions are blocked, a second rearrangement places the allyl group at the para position."));
children.push(spacer());
children.push(noteBox("The Claisen rearrangement is concerted (no intermediates, no ionic species) - it goes through a pericyclic transition state. This distinguishes it from the Fries rearrangement."));
children.push(spacer());
children.push(divider());

// 3.8 Gattermann
children.push(h2("3.8 Gattermann Reaction"));
children.push(infoBox("Reaction", "Formylation of aromatic compounds (especially phenols and phenol ethers) using a mixture of HCN and HCl (or Zn(CN)2) in the presence of Lewis acid catalyst (AlCl3 or ZnCl2) to introduce a -CHO group."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("ArH + HCN + HCl  ──(AlCl3)──>  Ar-CHO + NH4Cl", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("AlCl3 activates HCN by forming a complex: H-C(=NH)-AlCl3 - this acts as the electrophilic formylating species."));
children.push(numbered("The activated species reacts with the aromatic ring via electrophilic aromatic substitution (EAS)."));
children.push(numbered("The intermediate imine (Schiff base analog) is formed on the ring."));
children.push(numbered("Hydrolysis of the imine gives the aldehyde (-CHO)."));
children.push(spacer());
children.push(twoColTable("Gattermann vs Gattermann-Koch", "Difference", [
  ["Gattermann", "Uses HCN + HCl + Lewis acid. Works on activated rings (phenols, ethers). Active rings required."],
  ["Gattermann-Koch", "Uses CO + HCl + Lewis acid (AlCl3 + CuCl). Works on unactivated (simple benzene, alkylbenzenes). Does NOT work on phenols/ethers."]
]));
children.push(spacer());
children.push(divider());

// 3.9 Gattermann-Koch
children.push(h2("3.9 Gattermann-Koch Reaction"));
children.push(infoBox("Reaction", "Introduction of a -CHO group into benzene and its alkyl derivatives using CO + HCl under high pressure with AlCl3/CuCl catalyst. Gives aromatic aldehydes."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("C6H6 + CO + HCl  ──(AlCl3, CuCl, high pressure)──>  C6H5CHO  (Benzaldehyde)", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("CO + HCl in the presence of CuCl and AlCl3 generates the formyl cation (CHO+) or a complex that acts as formyl cation equivalent."));
children.push(numbered("This electrophile undergoes EAS with benzene ring."));
children.push(numbered("Deprotonation gives the aromatic aldehyde product."));
children.push(spacer());
children.push(bullet("Note: CuCl is needed because AlCl3 alone cannot generate the formyl cation from CO effectively"));
children.push(bullet("Application: Industrial production of benzaldehyde and tolualdehyde"));
children.push(spacer());
children.push(divider());

// 3.10 Rosenmund
children.push(h2("3.10 Rosenmund Reduction"));
children.push(infoBox("Reaction", "Selective reduction of an acid chloride (RCOCl) to an aldehyde (RCHO) using hydrogen gas over a specially poisoned palladium catalyst (Pd/BaSO4, with a sulfur or quinoline poison) to prevent over-reduction to the alcohol."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("RCOCl + H2  ──(Pd/BaSO4, quinoline-S, xylene/toluene solvent)──>  RCHO + HCl", { italic: true }));
children.push(spacer());
children.push(h3("Key Points"));
children.push(bullet("The catalyst MUST be poisoned - if not poisoned, the aldehyde would be further reduced to the primary alcohol"));
children.push(bullet("BaSO4 is the support; quinoline-sulfur is the poison that modifies Pd activity"));
children.push(bullet("Works for both aliphatic and aromatic acid chlorides"));
children.push(bullet("Limitation: Cannot be used for alpha,beta-unsaturated acid chlorides (C=C also gets reduced)"));
children.push(spacer());
children.push(noteBox("A classic AU question: 'How will you distinguish Rosenmund reduction from Stephen's reduction?' Answer: Rosenmund starts from acid chloride (RCOCl); Stephen's starts from nitrile (RCN). Both give aldehydes."));
children.push(spacer());
children.push(divider());

// 3.11 Stephens
children.push(h2("3.11 Stephen's Reaction"));
children.push(infoBox("Reaction", "Reduction of a nitrile (RCN) to an aldehyde (RCHO) using stannous chloride (SnCl2) in dry HCl/diethyl ether, followed by hydrolysis of the intermediate aldimine tin complex."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("RCN  ──(SnCl2, dry HCl/ether)──>  [RC(=NH)...SnCl2 complex]  ──(H2O)──>  RCHO + NH3", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("SnCl2 in dry HCl reduces the nitrile to an aldimine (imine, RC=NH) - but this is stabilized as a tin complex and NOT hydrolyzed in the anhydrous conditions."));
children.push(numbered("The complex [RCH=NH...SnCl2] is isolated."));
children.push(numbered("Upon aqueous hydrolysis, the imine is converted to the aldehyde: RCH=NH + H2O -> RCHO + NH3."));
children.push(spacer());
children.push(twoColTable("Feature", "Rosenmund vs Stephen's", [
  ["Starting material", "Acid chloride (RCOCl) vs Nitrile (RCN)"],
  ["Reagent", "H2/Pd-BaSO4 vs SnCl2/dry HCl"],
  ["Mechanism", "Catalytic hydrogenation vs Ionic reduction"],
  ["Limitation", "Needs halide; cannot use on C=C containing substrates vs Works on aromatic and aliphatic nitriles well"]
]));
children.push(spacer());
children.push(divider());

// 3.12 Elbs Reaction
children.push(h2("3.12 Elbs Reaction (Elbs Persulfate Oxidation)"));
children.push(infoBox("Reaction", "Hydroxylation of phenols using potassium persulfate (K2S2O8) in alkaline conditions to give para-hydroxyphenol (predominantly). An electrophilic aromatic substitution at the para position."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("Phenol + K2S2O8  ──(dilute KOH/NaOH)──>  para-dihydroxybenzene (hydroquinone)", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism"));
children.push(numbered("In alkaline conditions, phenol exists as phenoxide ion (PhO-)."));
children.push(numbered("Persulfate ion (S2O8(2-)) acts as the oxidant and generates a sulfate radical (SO4*-) or the persulfate acts as electrophile."));
children.push(numbered("Para-attack on phenoxide by the persulfate (electrophilic sulfonation)."));
children.push(numbered("Hydrolysis of the intermediate para-phenyl sulfate gives para-hydroxyphenol (hydroquinone)."));
children.push(spacer());
children.push(bullet("Product: para-Dihydroxybenzene (Hydroquinone) - predominantly para"));
children.push(bullet("If para is blocked, ortho substitution occurs"));
children.push(bullet("Application: Para-aminophenol synthesis (paracetamol precursor); hydroquinone synthesis for photography and skin-lightening agents"));
children.push(spacer());
children.push(divider());

// 3.13 Borodine-Hunsdiecker
children.push(h2("3.13 Borodine-Hunsdiecker Reaction (Silver Salt + Halogen)"));
children.push(infoBox("Reaction", "Decarboxylative halogenation of a carboxylic acid via its silver salt (RCOOAg) with bromine (Br2) or chlorine (Cl2) in CCl4 to give an alkyl halide with one less carbon."));
children.push(spacer());
children.push(para("General Equation:"));
children.push(para("RCOOAg + Br2  ──(CCl4, dry, reflux)──>  R-Br + CO2 + AgBr", { italic: true }));
children.push(para("(Carbon chain is shortened by one carbon)", { italic: true }));
children.push(spacer());
children.push(h3("Mechanism (Free Radical)"));
children.push(numbered("Bromine reacts with silver carboxylate to form acyloxy hypobromite intermediate: RCOO-Br + AgBr."));
children.push(numbered("The O-Br bond undergoes homolytic cleavage (thermally or photochemically) to generate carboxylate radical (RCOO*) and bromine radical (Br*)."));
children.push(numbered("Carboxylate radical rapidly loses CO2 (decarboxylation) to form alkyl radical (R*)."));
children.push(numbered("Alkyl radical abstracts bromine from Br2 (or from the Br* + Br2 equilibrium) to give R-Br + Br*."));
children.push(numbered("Chain reaction continues."));
children.push(spacer());
children.push(twoColTable("Feature", "Detail", [
  ["Mechanism type", "Free radical chain mechanism"],
  ["Conditions", "Dry CCl4 solvent; absence of moisture (moisture destroys AgBr)"],
  ["Reactivity", "Br2 > Cl2; I2 does not react"],
  ["Application", "Stepwise degradation of fatty acids; synthesis of specific alkyl halides"]
]));
children.push(spacer());

// ─────────────────────────────────────────────
// UNIT 4 - HETEROCYCLIC CHEMISTRY
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("UNIT 4 - HETEROCYCLIC CHEMISTRY"));
children.push(infoBox("Definition", "Cyclic compounds containing at least one atom other than carbon in the ring. The heteroatom is usually N, O, or S. Pharmaceutically extremely important - over 60% of all drugs contain a heterocyclic ring."));
children.push(spacer());

children.push(h2("4.1 Aromaticity of Heterocycles (Huckel's Rule)"));
children.push(para("A heterocyclic compound is aromatic if it satisfies ALL of the following:"));
children.push(bullet("Cyclic and planar"));
children.push(bullet("Completely conjugated (alternating single and double bonds, or equivalent)"));
children.push(bullet("Follows Huckel's rule: (4n + 2) pi electrons, where n = 0, 1, 2..."));
children.push(spacer());
children.push(twoColTable("Compound", "Pi electrons and Aromaticity", [
  ["Furan (O in ring)", "6 pi electrons (4 from 2 C=C + 2 from lone pair of O). n=1. Aromatic. O lone pair participates in conjugation."],
  ["Thiophene (S in ring)", "6 pi electrons (4 from 2 C=C + 2 from lone pair of S). n=1. Aromatic. More aromatic than furan."],
  ["Pyrrole (NH in ring)", "6 pi electrons (4 from 2 C=C + 2 from N lone pair). n=1. Aromatic. N lone pair is part of the pi system (N is sp2)."],
  ["Pyridine (N=C in ring)", "6 pi electrons from 3 C=C/C=N bonds. n=1. Aromatic. N lone pair is NOT part of pi system (N is sp2, lone pair in sp2 orbital = basic site)."],
  ["Imidazole", "6 pi electrons. Two N atoms: one is pyrrole-type (N-H, lone pair in pi system) and one is pyridine-type (basic, lone pair exocyclic). Amphoteric."]
]));
children.push(spacer());

children.push(h2("4.2 Five-Membered Heterocycles: Furan, Thiophene, Pyrrole"));
children.push(h3("Synthesis and Reactions"));
children.push(twoColTable("Compound", "Key Synthesis and Reactions", [
  ["Furan", "Paal-Knorr synthesis: 1,4-dicarbonyl compound + dehydrating agent (P2O5). Undergoes EAS at C2 (position 2 and 5 most reactive). Diels-Alder reactions (acts as diene)."],
  ["Thiophene", "Paal-Knorr synthesis: 1,4-dicarbonyl compound + P2S5. Also from butane + S (industrial). EAS at C2. Most aromatic of the trio (sulfur best at donating lone pair)."],
  ["Pyrrole", "Paal-Knorr: 1,4-dicarbonyl + primary amine + acid. Also Knorr synthesis (from alpha-aminoketone). EAS at C2. N-H is weakly acidic (pKa ~17) - N-H proton can be removed."]
]));
children.push(spacer());
children.push(infoBox("Reactivity Order for EAS", "Pyrrole > Furan > Thiophene > Benzene. Pyrrole is most electron-rich due to N lone pair donation. EAS on these compounds occurs at position 2 (alpha) preferentially."));
children.push(spacer());

children.push(h2("4.3 Other Five-Membered Heterocycles"));
children.push(twoColTable("Compound", "Structure and Key Features", [
  ["Pyrazole (N-N ring)", "Two adjacent N atoms. Numbering: N1 bears H, N2 is pyridine-type basic nitrogen. Weakly acidic at N-H. Important in drug design (e.g., celecoxib contains pyrazole ring)."],
  ["Imidazole (1,3-diazole)", "N1 (pyrrole-type, bears H) and N3 (pyridine-type, basic). pKa of conjugate acid = 7 (ideal for biological systems). Present in histidine and histamine."],
  ["Oxazole (1,3-oxazole)", "O at 1, N at 3. Less aromatic than imidazole. Synthesis: from alpha-acylaminocarbonyl compounds."],
  ["Thiazole (1,3-thiazole)", "S at 1, N at 3. More stable than oxazole. Present in Vitamin B1 (thiamine) and in penicillin (thiazolidine ring). Synthesis: Hantzsch thiazole synthesis from alpha-halocarbonyl + thioamide."]
]));
children.push(spacer());

children.push(h2("4.4 Quinoline - Skraup Synthesis"));
children.push(infoBox("Reaction", "Synthesis of quinoline from aniline and glycerol (with an oxidizing agent - nitrobenzene or arsenic acid - and concentrated H2SO4 as catalyst)."));
children.push(spacer());
children.push(h3("Skraup Synthesis - Mechanism"));
children.push(numbered("Glycerol is dehydrated by H2SO4 to give acrolein (propenal, CH2=CH-CHO) in situ."));
children.push(numbered("Aniline undergoes Michael addition (1,4-addition) to acrolein to give a beta-anilinopropanal intermediate."));
children.push(numbered("Intramolecular electrophilic cyclization forms a dihydroquinoline."));
children.push(numbered("Nitrobenzene (or other oxidant) oxidizes the dihydroquinoline to quinoline (aromatization by removal of 2H)."));
children.push(spacer());
children.push(h3("Doebner-Miller Modification"));
children.push(para("Uses alpha,beta-unsaturated carbonyl compounds (e.g., crotonaldehyde, benzalacetaldehyde, cinnamic acid) instead of glycerol. Milder conditions, gives 2-substituted quinolines."));
children.push(spacer());
children.push(infoBox("Pharmaceutical Importance of Quinoline", "Quinine (antimalarial), Chloroquine (antimalarial), Ciprofloxacin (fluoroquinolone antibiotic), Nalidixic acid (first quinolone), Mefloquine (antimalarial)."));
children.push(spacer());

children.push(h2("4.5 Isoquinoline - Bischler-Napieralski Synthesis"));
children.push(infoBox("Reaction", "Cyclodehydration of beta-phenylethylamide using P2O5 or POCl3 to give a 3,4-dihydroisoquinoline, which is then oxidized to isoquinoline."));
children.push(spacer());
children.push(h3("Key Points"));
children.push(bullet("Isoquinoline has N at position 2 (unlike quinoline where N is at position 1)"));
children.push(bullet("Bischler-Napieralski gives 1,2,3,4-tetrahydroisoquinolines (important in opiate synthesis)"));
children.push(bullet("Pictet-Spengler reaction is an alternative: beta-phenylethylamine + aldehyde in acidic conditions"));
children.push(bullet("Isoquinoline derivatives: Papaverine, Berberine, Morphine (isoquinoline nucleus)"));
children.push(spacer());

children.push(h2("4.6 Indole, Benzofuran, Benzothiophene"));
children.push(twoColTable("Compound", "Synthesis and Importance", [
  ["Indole", "Fischer Indole Synthesis: arylhydrazone of aldehyde/ketone + acid catalyst (ZnCl2, H2SO4, BF3) gives 2-substituted or 3-substituted indoles. Most important synthesis. Present in: Tryptophan, serotonin, melatonin, indole alkaloids (vincristine, strychnine)."],
  ["Benzofuran", "From salicylaldehyde with alpha-halocarbonyl compounds. Present in amiodarone (antiarrhythmic drug)."],
  ["Benzothiophene", "From thiophenol + vinyl halide or from benzothiophenone. Present in raloxifene (SERM, used in osteoporosis)."]
]));

// ─────────────────────────────────────────────
// UNIT 5 - ALKALOIDS AND TERPENES
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("UNIT 5 - ALKALOIDS AND TERPENES"));

children.push(h2("5.1 Alkaloids - Introduction and Classification"));
children.push(infoBox("Definition", "Alkaloids are naturally occurring, basic nitrogen-containing organic compounds of plant origin that have significant physiological (pharmacological) activity. Obtained mostly from plants (rarely animals)."));
children.push(spacer());
children.push(h3("General Properties"));
children.push(bullet("Usually colorless, crystalline solids (liquid: nicotine, coniine)"));
children.push(bullet("Bitter taste in dilute solution"));
children.push(bullet("Basic in nature (due to N atom); form salts with acids"));
children.push(bullet("Optically active (most levorotatory) - only levorotatory form is biologically active in most cases"));
children.push(bullet("Insoluble in water (as free base); soluble in organic solvents; salts are water-soluble"));
children.push(spacer());
children.push(h3("Classification of Alkaloids"));
children.push(twoColTable("Class", "Ring System / Example", [
  ["Pyridine/Piperidine alkaloids", "Piperidine ring. Examples: Nicotine, Coniine, Lobeline"],
  ["Pyrrolidine/Tropane alkaloids", "Tropane (bicyclic) ring. Examples: Atropine (hyoscyamine), Cocaine, Scopolamine"],
  ["Quinoline alkaloids", "Quinoline ring. Examples: Quinine, Quinidine, Cinchonine"],
  ["Isoquinoline alkaloids", "Isoquinoline ring. Examples: Morphine, Codeine, Papaverine, Berberine, Emetine"],
  ["Indole alkaloids", "Indole ring. Examples: Ergotamine, Reserpine, Strychnine, Brucine, Vincristine"],
  ["Imidazole alkaloids", "Imidazole ring. Examples: Pilocarpine, Histamine"],
  ["Purine alkaloids", "Purine ring. Examples: Caffeine, Theophylline, Theobromine"],
  ["Steroidal alkaloids", "Steroid nucleus. Examples: Solanine, Veratrine, Conessine"]
]));
children.push(spacer());

children.push(h2("5.2 Isolation and Purification of Alkaloids"));
children.push(h3("General Method of Isolation"));
children.push(numbered("The plant material is dried, powdered, and defatted (petroleum ether extraction removes fats/waxes)."));
children.push(numbered("The powder is moistened with an alkali (lime, ammonia, Na2CO3) to liberate free alkaloid base from its salt form."));
children.push(numbered("Extraction with organic solvent (chloroform, ether, ethyl acetate) - alkaloid base dissolves in organic layer."));
children.push(numbered("The organic layer is extracted with dilute acid (HCl) - alkaloid salts go into aqueous phase."));
children.push(numbered("The aqueous acid layer is basified with NH3 - alkaloid base precipitates or re-dissolves in organic solvent on re-extraction."));
children.push(numbered("Purification by recrystallization, chromatography (column, TLC), or precipitation."));
children.push(spacer());
children.push(h3("Detection Reactions"));
children.push(twoColTable("Reagent", "Positive Result", [
  ["Mayer's reagent (K2HgI4)", "Cream/white precipitate"],
  ["Wagner's reagent (I2/KI)", "Brown/reddish precipitate"],
  ["Dragendorff's reagent (KBiI4)", "Orange-red precipitate"],
  ["Marme's reagent (CdI2/KI)", "Yellow precipitate"]
]));
children.push(spacer());

children.push(h2("5.3 Important Alkaloids"));
children.push(twoColTable("Alkaloid", "Source, Class, and Uses", [
  ["Morphine", "Papaver somniferum (opium poppy). Isoquinoline (phenanthrene ring). Strong analgesic, antitussive, antidiarrheal. Highly addictive. Codeine (methylated) - milder."],
  ["Quinine", "Cinchona bark (Cinchona officinalis). Quinoline type. Antimalarial, cardiac antiarrhythmic. Also used as a muscle relaxant for cramps."],
  ["Atropine", "Atropa belladonna (deadly nightshade). Tropane type. Anticholinergic; used in preanaesthetic medication, organophosphate poisoning antidote, pupil dilation (mydriasis)."],
  ["Cocaine", "Erythroxylon coca. Tropane type. Local anaesthetic (first local anaesthetic discovered). Also highly addictive CNS stimulant (controlled substance)."],
  ["Nicotine", "Nicotiana tabacum. Pyridine-pyrrolidine type. Ganglionic stimulant, autonomic."],
  ["Ergotamine", "Claviceps purpurea fungus (ergot). Indole type. Vasoconstrictor; used in migraine treatment."],
  ["Vincristine/Vinblastine", "Catharanthus roseus (Vinca). Indole type. Antineoplastic (anti-cancer) - inhibit tubulin polymerization."]
]));
children.push(spacer());

children.push(h2("5.4 Terpenes and Isoprene Rule"));
children.push(infoBox("Isoprene Rule", "Most terpenes are built from repeating isoprene (2-methyl-1,3-butadiene, C5H8) units. The general formula is (C5H8)n."));
children.push(spacer());
children.push(twoColTable("Class", "No. of C atoms (n x C5) / Examples", [
  ["Monoterpenes", "C10 (2 isoprene units). Examples: Menthol, Camphor, Geraniol, Limonene, Citral"],
  ["Sesquiterpenes", "C15 (3 units). Examples: Farnesol, Bisabolol, Zingiberene (ginger), Artemisinin"],
  ["Diterpenes", "C20 (4 units). Examples: Vitamin A (retinol), Phytol, Taxol (paclitaxel, anticancer)"],
  ["Sesterterpenes", "C25 (5 units). Rare - mainly marine organisms"],
  ["Triterpenes", "C30 (6 units). Examples: Squalene, Lanosterol, Oleanolic acid, Ursolic acid"],
  ["Tetraterpenes", "C40 (8 units). Examples: Beta-carotene (pro-Vitamin A), Lycopene, Xanthophylls"],
  ["Polyterpenes", "More than C40. Examples: Rubber (polyisoprene), Gutta-percha"]
]));
children.push(spacer());

// ─────────────────────────────────────────────
// QUICK REVISION
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("QUICK REVISION TABLES"));

children.push(h2("Named Reactions - One-Line Summary"));
children.push(threeColTable("Reaction", "Reagents/Conditions", "Product / Key Outcome", [
  ["Aldol condensation", "Dil. NaOH or HCl, 2 molecules with alpha-H", "beta-hydroxy carbonyl -> alpha,beta-unsaturated carbonyl"],
  ["Claisen condensation", "NaOEt, 2 esters", "beta-keto ester (e.g., ethyl acetoacetate)"],
  ["Perkin reaction", "ArCHO + Ac2O + CH3COONa, heat", "trans-Cinnamic acid (alpha,beta-unsaturated acid)"],
  ["Reformatsky", "Ketone/aldehyde + BrCH2COOEt + Zn, then H2O", "beta-Hydroxy ester"],
  ["Beckmann", "Ketoxime + H2SO4 or PCl5", "Amide (anti group migrates); lactam if cyclic"],
  ["Fries", "Phenyl ester + AlCl3; low T = ortho; high T = para", "Hydroxy aryl ketone"],
  ["Claisen rearrangement", "Allyl phenyl ether + heat (~200°C)", "ortho-Allyl phenol (pericyclic [3,3]-sigmatropic)"],
  ["Gattermann", "ArH + HCN + HCl + ZnCl2 or AlCl3", "ArCHO (activated rings: phenols, ethers)"],
  ["Gattermann-Koch", "ArH + CO + HCl + AlCl3/CuCl", "ArCHO (benzene, alkylbenzenes only)"],
  ["Rosenmund", "RCOCl + H2/Pd-BaSO4 (poisoned)", "RCHO (aldehyde, 1 less C than acid)"],
  ["Stephen's", "RCN + SnCl2/HCl, then H2O", "RCHO (aldehyde)"],
  ["Elbs", "Phenol + K2S2O8 + dil. KOH", "para-Dihydroxybenzene (Hydroquinone)"],
  ["Hunsdiecker", "RCOOAg + Br2 + CCl4", "RBr + CO2 + AgBr (free radical, -1C)"]
]));
children.push(spacer());

children.push(h2("Heterocyclic Rings - Structure and Drugs"));
children.push(threeColTable("Ring System", "Key Drugs / Molecules", "Synthesis", [
  ["Furan (O)", "Nitrofurantoin (urinary antiseptic), Furosemide", "Paal-Knorr (1,4-dicarbonyl + P2O5)"],
  ["Thiophene (S)", "Tenoxicam, Tiagabine, Raltitrexed", "Paal-Knorr (1,4-dicarbonyl + P2S5)"],
  ["Pyrrole (NH)", "Atorvastatin, Ketorolac, Porphyrins (heme)", "Paal-Knorr (1,4-dicarbonyl + amine)"],
  ["Imidazole (N1,N3)", "Metronidazole, Ketoconazole, Histidine", "Van Leusen; Debus synthesis"],
  ["Pyrazole (N1,N2)", "Celecoxib, Sildenafil, Antipyrine", "From 1,3-dicarbonyl + hydrazine"],
  ["Thiazole (S,N)", "Penicillin, Thiamine (B1), Famotidine", "Hantzsch thiazole synthesis"],
  ["Pyridine", "Nicotinic acid, Isoniazid, Chlorpheniramine", "Hantzsch pyridine synthesis"],
  ["Quinoline", "Quinine, Chloroquine, Ciprofloxacin", "Skraup synthesis; Doebner-Miller"],
  ["Indole (benzo[b]pyrrole)", "Serotonin, Tryptophan, Indomethacin, Vincristine", "Fischer Indole Synthesis"]
]));
children.push(spacer());

children.push(h2("Stereochemistry - Key Formulas"));
children.push(twoColTable("Formula / Rule", "Description", [
  ["Max. stereoisomers = 2^n", "n = number of stereocenters. For meso compounds, actual number is less."],
  ["[alpha]D = observed rotation / (c x l)", "Specific rotation; c = g/mL, l = path length in dm"],
  ["Enantiomeric excess (ee) = ((R-S)/(R+S)) x 100%", "Measure of optical purity of a mixture"],
  ["R = clockwise (1->2->3, lowest group away)", "Cahn-Ingold-Prelog RS assignment"],
  ["Huckel: 4n+2 pi electrons", "For aromaticity; n = 0 (2), 1 (6), 2 (10)..."]
]));
children.push(spacer());

// ─────────────────────────────────────────────
// AU PREVIOUS YEAR QUESTIONS
// ─────────────────────────────────────────────
children.push(pageBreak());
children.push(h1("FREQUENTLY ASKED AU QUESTIONS (Previous Years)"));
children.push(spacer());

children.push(h2("Long Questions (16 Marks) - Very Likely to Appear"));
children.push(numbered("Explain optical isomerism in detail. Discuss DL and RS systems of nomenclature with suitable examples. (Unit 1)"));
children.push(numbered("Define racemic modification. Explain the methods of resolution of racemic mixtures. (Unit 1)"));
children.push(numbered("Give the mechanism of Aldol condensation and Claisen condensation with suitable examples. (Unit 3)"));
children.push(numbered("Explain Beckmann rearrangement and Fries rearrangement with mechanism and applications. (Unit 3)"));
children.push(numbered("Write a detailed account of Skraup synthesis of quinoline. How is isoquinoline synthesized? (Unit 4)"));
children.push(numbered("Discuss the synthesis, aromaticity, and reactions of furan, thiophene, and pyrrole. (Unit 4)"));
children.push(numbered("Classify alkaloids with examples. Explain the general method of isolation of alkaloids. (Unit 5)"));
children.push(numbered("Explain the Isoprene rule. Classify terpenes with examples and their pharmaceutical importance. (Unit 5)"));
children.push(spacer());

children.push(h2("Short Questions (8 Marks) - Common in AU Papers"));
children.push(numbered("Define enantiomers and diastereomers. How are they distinguished?"));
children.push(numbered("What is a meso compound? Give two examples."));
children.push(numbered("Write the mechanism of Perkin reaction with an example."));
children.push(numbered("Distinguish between Rosenmund reduction and Stephen's reaction."));
children.push(numbered("Write the mechanism of Reformatsky reaction."));
children.push(numbered("What is Gattermann-Koch reaction? How does it differ from Gattermann reaction?"));
children.push(numbered("Explain Claisen rearrangement with mechanism."));
children.push(numbered("What is Elbs persulfate oxidation? Give mechanism."));
children.push(numbered("Write a note on Borodine-Hunsdiecker reaction."));
children.push(numbered("Explain conformational isomerism in cyclohexane with chair and boat forms."));
children.push(numbered("Write the Fischer Indole synthesis with mechanism."));
children.push(numbered("Give the pharmaceutical importance of alkaloids. Briefly describe morphine and quinine."));
children.push(spacer());

children.push(h2("Very Short / 2-Mark Questions"));
children.push(bullet("Define: optical activity, chirality, meso compound, racemic mixture"));
children.push(bullet("What is the isoprene rule?"));
children.push(bullet("Name two monoterpenes and two diterpenes"));
children.push(bullet("What is HCN used for in Gattermann reaction? Why CCl4 in Hunsdiecker reaction?"));
children.push(bullet("What is the Beckmann rearrangement used to produce industrially? (Caprolactam -> Nylon-6)"));
children.push(bullet("Name the ring systems in morphine, quinine, and cocaine"));
children.push(bullet("What is atropisomerism?"));
children.push(bullet("State Huckel's rule for aromaticity"));
children.push(spacer());

children.push(divider());
children.push(new Paragraph({
  alignment: AlignmentType.CENTER,
  spacing: { before: 200, after: 200 },
  children: [
    new TextRun({ text: "Best of Luck for Your Examinations!", bold: true, size: 28, color: "2E74B5" }),
    new TextRun({ text: "  |  Prepared for Andhra University B. Pharmacy 4th Semester  |  July 2026", size: 22, italics: true, color: "404040" })
  ]
}));

// ─────────────────────────────────────────────
// BUILD THE DOCUMENT
// ─────────────────────────────────────────────
const doc = new Document({
  numbering: {
    config: [
      {
        reference: "bullets",
        levels: [{ level: 0, format: LevelFormat.BULLET, text: "\u2022", alignment: AlignmentType.LEFT,
          style: { paragraph: { indent: { left: 720, hanging: 360 } } } }]
      },
      {
        reference: "numbers",
        levels: [{ level: 0, format: LevelFormat.DECIMAL, text: "%1.", alignment: AlignmentType.LEFT,
          style: { paragraph: { indent: { left: 720, hanging: 360 } } } }]
      }
    ]
  },
  styles: {
    default: { document: { run: { font: "Arial", size: 24 } } },
    paragraphStyles: [
      { id: "Heading1", name: "Heading 1", basedOn: "Normal", next: "Normal", quickFormat: true,
        run: { size: 36, bold: true, font: "Arial", color: "1F3864" },
        paragraph: { spacing: { before: 360, after: 200 }, outlineLevel: 0,
          border: { bottom: { color: "2E74B5", space: 1, style: BorderStyle.SINGLE, size: 6 } } } },
      { id: "Heading2", name: "Heading 2", basedOn: "Normal", next: "Normal", quickFormat: true,
        run: { size: 28, bold: true, font: "Arial", color: "2E74B5" },
        paragraph: { spacing: { before: 240, after: 120 }, outlineLevel: 1 } },
      { id: "Heading3", name: "Heading 3", basedOn: "Normal", next: "Normal", quickFormat: true,
        run: { size: 24, bold: true, font: "Arial", color: "2F5496" },
        paragraph: { spacing: { before: 160, after: 80 }, outlineLevel: 2 } }
    ]
  },
  sections: [{
    properties: {
      page: {
        margin: { top: 1080, bottom: 1080, left: 1080, right: 1080 },
        size: { width: 11906, height: 16838 }
      }
    },
    headers: {
      default: new Header({
        children: [new Paragraph({
          alignment: AlignmentType.RIGHT,
          border: { bottom: { color: "2E74B5", space: 1, style: BorderStyle.SINGLE, size: 4 } },
          children: [new TextRun({ text: "B.Pharm 4th Sem | Pharmaceutical Organic Chemistry III | AU Exam Guide", size: 18, italics: true, color: "888888" })]
        })]
      })
    },
    footers: {
      default: new Footer({
        children: [new Paragraph({
          alignment: AlignmentType.CENTER,
          border: { top: { color: "2E74B5", space: 1, style: BorderStyle.SINGLE, size: 4 } },
          children: [
            new TextRun({ text: "Page ", size: 18, color: "888888" }),
            new TextRun({ children: [PageNumber.CURRENT], size: 18, color: "888888" }),
            new TextRun({ text: " of ", size: 18, color: "888888" }),
            new TextRun({ children: [PageNumber.TOTAL_PAGES], size: 18, color: "888888" })
          ]
        })]
      })
    },
    children
  }]
});

Packer.toBuffer(doc).then(buffer => {
  fs.writeFileSync('/home/daytona/workspace/bpharm-organic-chem/Organic_Chemistry_Mechanisms_BPharm_4thSem_AU.docx', buffer);
  console.log('Document created successfully!');
}).catch(err => {
  console.error('Error:', err);
  process.exit(1);
});
Running Command

cd /home/daytona/workspace/bpharm-organic-chem && node generate_doc.js 2>&1

Running Command

python3 /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/works…

Running Command

cd /home/daytona/workspace/bpharm-organic-chem && python3 -c " import zipfile, o…

Your study document is ready! Download it here:

Organic Chemistry Mechanisms BPharm 4thSem AU

Word Document · DOCX


Here is what is included in the document (30+ pages, fully formatted for AU exams):
Cover Page + Table of Contents
Unit 1 - Stereoisomerism
  • Optical isomerism, enantiomers, diastereomers, meso compounds
  • Elements of symmetry (plane, center, axis)
  • DL system and RS (CIP) nomenclature - step-by-step procedure
  • Racemic modification, all 4 methods of resolution
  • Asymmetric synthesis (partial and absolute)
Unit 2 - Geometrical and Conformational Isomerism
  • cis-trans, E-Z, syn-anti systems
  • Conformational isomerism: ethane, n-butane, cyclohexane (chair/boat)
  • Atropisomerism in biphenyls
  • Stereospecific vs stereoselective reactions
Unit 3 - All 13 Named Reactions with Mechanisms
  • Full step-by-step ionic/radical mechanisms for every reaction
  • Reagents, conditions, products, and pharmaceutical applications
Unit 4 - Heterocyclic Chemistry
  • Aromaticity, pi electron count for all major rings
  • Synthesis routes: Paal-Knorr, Skraup, Fischer Indole, Hantzsch Thiazole, Bischler-Napieralski
  • Drug examples for every ring system
Unit 5 - Alkaloids and Terpenes
  • Full classification table of alkaloids with ring systems
  • General isolation method (step-by-step)
  • Detection reagents (Mayer's, Wagner's, Dragendorff's)
  • Terpene classification with C5 rule and examples
Quick Revision Tables (all 13 named reactions in 1 table, heterocyclic drugs table, stereochemistry formulas)
Frequently Asked AU Questions (16-mark, 8-mark, 2-mark questions from previous years)

The above one is the syllabus of our analyse it and give me the best time table for me i have 4 hrs time for study per day and also have college but I want to manage it with the syllabus and I want to complete the syllabus in 10 days my college timings is 8am to 6pm revision tips

Reading File
Running Command

python3 -c " import pdfplumber path = '/home/daytona/workspace/attachments/08b0d…

Running Command

python3 -c " import subprocess, os path = '/home/daytona/workspace/attachments/0…

Running Command

python3 << 'EOF' from pdf2image import convert_from_path import pytesseract, sys…

Running Command

python3 << 'EOF' from pdf2image import convert_from_path import os path = '/hom…

Running Command

mutool draw -F jpg -o /home/daytona/workspace/attachments/pages/page_%d.jpg '/ho…

Running Command

mkdir -p /home/daytona/workspace/attachments/pages && pdftoppm -jpeg -r 100 -f 1…

analyse_media
analyse_media
Running Command

pdftoppm -jpeg -r 100 -f 5 -l 12 '/home/daytona/workspace/attachments/08b0d002-e…

Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Writing File

~/bpharm-organic-chem/generate_timetable.js

const {
  Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
  HeadingLevel, AlignmentType, BorderStyle, WidthType, ShadingType,
  LevelFormat, PageNumber, Header, Footer, PageBreak, VerticalAlign
} = require('docx');
const fs = require('fs');

// ─── HELPERS ───────────────────────────────────────────────
function h1(text) {
  return new Paragraph({ heading: HeadingLevel.HEADING_1, children: [new TextRun({ text, bold: true })] });
}
function h2(text) {
  return new Paragraph({ heading: HeadingLevel.HEADING_2, children: [new TextRun({ text, bold: true })] });
}
function h3(text) {
  return new Paragraph({ heading: HeadingLevel.HEADING_3, children: [new TextRun({ text, bold: true })] });
}
function para(text, opts = {}) {
  return new Paragraph({
    alignment: opts.center ? AlignmentType.CENTER : AlignmentType.LEFT,
    spacing: { after: opts.after || 120 },
    children: [new TextRun({ text, bold: opts.bold || false, italics: opts.italic || false, size: opts.size || 22, color: opts.color || "000000" })]
  });
}
function bullet(text, boldPart) {
  const children = boldPart
    ? [new TextRun({ text: boldPart, bold: true, size: 22 }), new TextRun({ text, size: 22 })]
    : [new TextRun({ text, size: 22 })];
  return new Paragraph({ numbering: { reference: "bullets", level: 0 }, spacing: { after: 60 }, children });
}
function spacer(n = 80) { return new Paragraph({ children: [new TextRun("")], spacing: { after: n } }); }
function pgBreak() { return new Paragraph({ pageBreakBefore: true, children: [new TextRun("")] }); }

function cell(text, opts = {}) {
  return new TableCell({
    shading: { fill: opts.fill || "FFFFFF", type: ShadingType.CLEAR },
    margins: { top: 80, bottom: 80, left: 120, right: 120 },
    verticalAlign: VerticalAlign.CENTER,
    width: opts.width ? { size: opts.width, type: WidthType.PERCENTAGE } : undefined,
    columnSpan: opts.span || 1,
    children: [new Paragraph({
      alignment: opts.center ? AlignmentType.CENTER : AlignmentType.LEFT,
      children: [new TextRun({ text, bold: opts.bold || false, size: opts.size || 22, color: opts.color || "000000", italics: opts.italic || false })]
    })]
  });
}

function hdrRow(cols, fill = "1F3864") {
  return new TableRow({
    tableHeader: true,
    children: cols.map(c => new TableCell({
      shading: { fill, type: ShadingType.CLEAR },
      margins: { top: 100, bottom: 100, left: 140, right: 140 },
      verticalAlign: VerticalAlign.CENTER,
      children: [new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: c, bold: true, size: 22, color: "FFFFFF" })]
      })]
    }))
  });
}

function infoBox(label, content, fill = "D6E8F7", labelColor = "1F3864") {
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [new TableRow({ children: [new TableCell({
      shading: { fill, type: ShadingType.CLEAR },
      margins: { top: 100, bottom: 100, left: 180, right: 180 },
      children: [new Paragraph({ children: [
        new TextRun({ text: label + "  ", bold: true, size: 22, color: labelColor }),
        new TextRun({ text: content, size: 22 })
      ]})]
    })]})]
  });
}

function tipBox(text) {
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [new TableRow({ children: [new TableCell({
      shading: { fill: "FFF2CC", type: ShadingType.CLEAR },
      margins: { top: 100, bottom: 100, left: 180, right: 180 },
      children: [new Paragraph({ children: [
        new TextRun({ text: "TIP: ", bold: true, size: 22, color: "7F6000" }),
        new TextRun({ text, size: 22, color: "7F6000" })
      ]})]
    })]})]
  });
}

// ─── MAIN TIMETABLE TABLE ───────────────────────────────────
function dailyRow(day, date, morning, session1, session2, session3, session4, target, fill) {
  return new TableRow({
    children: [
      new TableCell({
        shading: { fill, type: ShadingType.CLEAR },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        verticalAlign: VerticalAlign.CENTER,
        children: [
          new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: day, bold: true, size: 22, color: "FFFFFF" })] }),
          new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: date, size: 20, color: "FFFFFF" })] })
        ]
      }),
      new TableCell({
        shading: { fill: "EBF7FF", type: ShadingType.CLEAR },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [new Paragraph({ children: [new TextRun({ text: morning, size: 20, italics: true, color: "555555" })] })]
      }),
      new TableCell({
        shading: { fill: "F5F5F5", type: ShadingType.CLEAR },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [
          new Paragraph({ children: [new TextRun({ text: session1, bold: true, size: 21 })] }),
          new Paragraph({ children: [new TextRun({ text: session2, size: 20 })] })
        ]
      }),
      new TableCell({
        shading: { fill: "F5F5F5", type: ShadingType.CLEAR },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [
          new Paragraph({ children: [new TextRun({ text: session3, bold: true, size: 21 })] }),
          new Paragraph({ children: [new TextRun({ text: session4, size: 20 })] })
        ]
      }),
      new TableCell({
        shading: { fill: "E8F5E9", type: ShadingType.CLEAR },
        margins: { top: 80, bottom: 80, left: 120, right: 120 },
        children: [new Paragraph({ children: [new TextRun({ text: target, size: 20, bold: true, color: "1B5E20" })] })]
      })
    ]
  });
}

// ─── DOCUMENT CHILDREN ─────────────────────────────────────
const children = [];

// COVER PAGE
children.push(spacer(200));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER, spacing: { after: 160 },
  children: [new TextRun({ text: "B. PHARMACY — 4th SEMESTER", bold: true, size: 40, color: "1F3864" })]
}));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER, spacing: { after: 200 },
  children: [new TextRun({ text: "PERSONALISED 10-DAY EXAM TIMETABLE", bold: true, size: 52, color: "C00000" })]
}));
children.push(new Paragraph({
  alignment: AlignmentType.CENTER, spacing: { after: 160 },
  children: [new TextRun({ text: "Based on Your Official AU Syllabus  |  4 Hours Study/Day  |  College 8 AM–6 PM", size: 26, italics: true, color: "444444" })]
}));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [new TableRow({ children: [new TableCell({
    shading: { fill: "1F3864", type: ShadingType.CLEAR },
    margins: { top: 240, bottom: 240, left: 360, right: 360 },
    children: [
      new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "5 Subjects  •  25 Units  •  225 Hours Syllabus", bold: true, size: 26, color: "FFFFFF" })] }),
      new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Organic Chemistry III  •  Medicinal Chemistry I  •  Physical Pharmaceutics II  •  Pharmacology I  •  Pharmacognosy & Phytochemistry I", size: 22, color: "BDD7EE" })] }),
    ]
  })]})]
}));
children.push(spacer(120));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [new TableRow({ children: [
    new TableCell({ shading: { fill: "C00000", type: ShadingType.CLEAR }, margins: { top: 120, bottom: 120, left: 200, right: 200 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Exam Date", bold: true, size: 22, color: "FFFFFF" })] })] }),
    new TableCell({ shading: { fill: "FDECEA", type: ShadingType.CLEAR }, margins: { top: 120, bottom: 120, left: 200, right: 200 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Day 11 onwards (adjust to your actual schedule)", size: 22, bold: true })] })] }),
    new TableCell({ shading: { fill: "C00000", type: ShadingType.CLEAR }, margins: { top: 120, bottom: 120, left: 200, right: 200 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Study Hours/Day", bold: true, size: 22, color: "FFFFFF" })] })] }),
    new TableCell({ shading: { fill: "FDECEA", type: ShadingType.CLEAR }, margins: { top: 120, bottom: 120, left: 200, right: 200 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "4 Hours (split into 2 sessions)", size: 22, bold: true })] })] }),
  ]})]
}));

// ─── PAGE 2: HOW TO USE ──────────────────────────────────────
children.push(pgBreak());
children.push(h1("HOW TO USE THIS TIMETABLE"));
children.push(spacer());
children.push(h2("Your Daily Schedule Structure"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Time Slot", "Activity", "Duration", "What to Do"]),
    new TableRow({ children: [
      cell("5:30 AM – 7:30 AM", { fill: "E3F2FD", bold: true }),
      cell("Morning Study – Session 1", { fill: "E3F2FD" }),
      cell("2 Hours", { fill: "E3F2FD", center: true }),
      cell("New topics: Read, understand, write notes", { fill: "E3F2FD" }),
    ]}),
    new TableRow({ children: [
      cell("7:30 AM – 8:00 AM", { fill: "FFF3E0" }),
      cell("Get Ready for College", { fill: "FFF3E0" }),
      cell("30 min", { fill: "FFF3E0", center: true }),
      cell("Breakfast, freshen up, pack bag", { fill: "FFF3E0" }),
    ]}),
    new TableRow({ children: [
      cell("8:00 AM – 6:00 PM", { fill: "F3E5F5" }),
      cell("College", { fill: "F3E5F5" }),
      cell("10 Hours", { fill: "F3E5F5", center: true }),
      cell("Attend lectures — use free/break periods to revise flash cards", { fill: "F3E5F5" }),
    ]}),
    new TableRow({ children: [
      cell("6:00 PM – 6:30 PM", { fill: "E8F5E9" }),
      cell("Travel + Rest", { fill: "E8F5E9" }),
      cell("30 min", { fill: "E8F5E9", center: true }),
      cell("Decompress — light snack, relax. NO studying.", { fill: "E8F5E9" }),
    ]}),
    new TableRow({ children: [
      cell("6:30 PM – 8:30 PM", { fill: "E3F2FD", bold: true }),
      cell("Evening Study – Session 2", { fill: "E3F2FD" }),
      cell("2 Hours", { fill: "E3F2FD", center: true }),
      cell("Revision of morning topics + next topics", { fill: "E3F2FD" }),
    ]}),
    new TableRow({ children: [
      cell("8:30 PM – 9:30 PM", { fill: "FFF3E0" }),
      cell("Dinner + Family Time", { fill: "FFF3E0" }),
      cell("1 Hour", { fill: "FFF3E0", center: true }),
      cell("No studying, recharge mentally", { fill: "FFF3E0" }),
    ]}),
    new TableRow({ children: [
      cell("9:30 PM – 10:00 PM", { fill: "F1F8E9" }),
      cell("Quick Recall Review", { fill: "F1F8E9" }),
      cell("30 min", { fill: "F1F8E9", center: true }),
      cell("Glance at today's notes — don't study new topics", { fill: "F1F8E9" }),
    ]}),
    new TableRow({ children: [
      cell("10:00 PM", { fill: "FDECEA" }),
      cell("SLEEP (Mandatory)", { fill: "FDECEA", bold: true }),
      cell("7–8 hrs", { fill: "FDECEA", center: true }),
      cell("Sleep helps memory consolidation — non-negotiable", { fill: "FDECEA" }),
    ]}),
  ]
}));
children.push(spacer());
children.push(tipBox("Use college break periods (10 min between classes, lunch break) to review flash cards or re-read your morning notes. This passive revision adds ~1 extra effective hour daily."));
children.push(spacer());
children.push(h2("Subject Hours Budget (10 Days x 4 hrs = 40 hours total)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Subject", "Code", "Syllabus Hours", "Days Allocated", "Study Hours Assigned", "Difficulty"]),
    new TableRow({ children: [
      cell("Pharmaceutical Organic Chemistry III", { fill: "E3F2FD" }), cell("BP401T", { fill: "E3F2FD", center: true }), cell("45 hrs", { fill: "E3F2FD", center: true }), cell("Days 1–2", { fill: "E3F2FD", center: true }), cell("8 hrs", { fill: "E3F2FD", center: true, bold: true }), cell("High", { fill: "FDECEA", center: true, color: "C00000", bold: true })
    ]}),
    new TableRow({ children: [
      cell("Medicinal Chemistry I", { fill: "F3E5F5" }), cell("BP402T", { fill: "F3E5F5", center: true }), cell("45 hrs", { fill: "F3E5F5", center: true }), cell("Days 3–4", { fill: "F3E5F5", center: true }), cell("8 hrs", { fill: "F3E5F5", center: true, bold: true }), cell("High", { fill: "FDECEA", center: true, color: "C00000", bold: true })
    ]}),
    new TableRow({ children: [
      cell("Physical Pharmaceutics II", { fill: "E8F5E9" }), cell("BP403T", { fill: "E8F5E9", center: true }), cell("45 hrs", { fill: "E8F5E9", center: true }), cell("Days 5–6", { fill: "E8F5E9", center: true }), cell("8 hrs", { fill: "E8F5E9", center: true, bold: true }), cell("Medium", { fill: "FFF9C4", center: true, color: "7F6000", bold: true })
    ]}),
    new TableRow({ children: [
      cell("Pharmacology I", { fill: "FFF3E0" }), cell("BP404T", { fill: "FFF3E0", center: true }), cell("45 hrs", { fill: "FFF3E0", center: true }), cell("Days 7–8", { fill: "FFF3E0", center: true }), cell("8 hrs", { fill: "FFF3E0", center: true, bold: true }), cell("Medium", { fill: "FFF9C4", center: true, color: "7F6000", bold: true })
    ]}),
    new TableRow({ children: [
      cell("Pharmacognosy & Phytochemistry I", { fill: "E8EAF6" }), cell("BP405T", { fill: "E8EAF6", center: true }), cell("45 hrs", { fill: "E8EAF6", center: true }), cell("Day 9", { fill: "E8EAF6", center: true }), cell("4 hrs", { fill: "E8EAF6", center: true, bold: true }), cell("Low-Med", { fill: "E8F5E9", center: true, color: "2E7D32", bold: true })
    ]}),
    new TableRow({ children: [
      cell("Revision + Previous Year Q Papers", { fill: "FDECEA", bold: true }), cell("All", { fill: "FDECEA", center: true }), cell("—", { fill: "FDECEA", center: true }), cell("Day 10", { fill: "FDECEA", center: true }), cell("4 hrs", { fill: "FDECEA", center: true, bold: true }), cell("—", { fill: "FDECEA", center: true })
    ]}),
  ]
}));

// ─── PAGE 3: COLOUR KEY & UNIT MAP ──────────────────────────
children.push(pgBreak());
children.push(h1("UNIT-WISE SYLLABUS MAP (Your Exact AU Syllabus)"));
children.push(para("This is extracted directly from your uploaded syllabus PDF. Use this as your checklist — tick each unit after you finish it.", { italic: true }));
children.push(spacer());

// BP401T
children.push(h2("BP401T — Pharmaceutical Organic Chemistry III  (45 Hrs)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Unit", "Hours", "Topics", "Done?"]),
    new TableRow({ children: [cell("I", { fill: "E3F2FD", bold: true, center: true }), cell("10", { fill: "E3F2FD", center: true }), cell("Stereoisomerism: Optical isomerism, enantiomers, diastereomers, meso compounds, elements of symmetry, chiral/achiral molecules, DL & RS nomenclature, reactions of chiral molecules, racemic modification & resolution, asymmetric synthesis", { fill: "E3F2FD" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("II", { fill: "FFFFFF", bold: true, center: true }), cell("10", { fill: "FFFFFF", center: true }), cell("Geometrical isomerism (cis-trans, EZ, syn-anti), methods of configuration determination, conformational isomerism (ethane, n-butane, cyclohexane), atropisomerism in biphenyls, stereospecific & stereoselective reactions", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("III", { fill: "E3F2FD", bold: true, center: true }), cell("10", { fill: "E3F2FD", center: true }), cell("Heterocyclic compounds: Nomenclature & classification, synthesis/reactions/uses of Pyrrole, Furan, Thiophene; relative aromaticity & reactivity of Pyrrole, Furan, Thiophene", { fill: "E3F2FD" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("IV", { fill: "FFFFFF", bold: true, center: true }), cell("8", { fill: "FFFFFF", center: true }), cell("Pyrazole, Imidazole, Oxazole, Thiazole (synthesis/reactions/uses); Pyridine, Quinoline, Isoquinoline, Acridine, Indole — basicity of pyridine; Pyrimidine, Purine, azepines & derivatives", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("V", { fill: "E3F2FD", bold: true, center: true }), cell("7", { fill: "E3F2FD", center: true }), cell("Reactions of synthetic importance: NaBH4/LiAlH4 reduction, Clemmensen reduction, Birch reduction, Wolff-Kishner reduction, Oppenauer oxidation, Dakin reaction, Beckmann rearrangement, Schmidt rearrangement, Claisen-Schmidt condensation", { fill: "E3F2FD" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
  ]
}));
children.push(spacer());

// BP402T
children.push(h2("BP402T — Medicinal Chemistry I  (45 Hrs)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Unit", "Hours", "Topics", "Done?"], "2E74B5"),
    new TableRow({ children: [cell("I", { fill: "EBF3FB", bold: true, center: true }), cell("10", { fill: "EBF3FB", center: true }), cell("Introduction: history & development of medicinal chemistry; physicochemical properties (ionization, solubility, partition coefficient, H-bonding, protein binding, chelation, bioisosterism, optical/geometrical isomerism); drug metabolism — Phase I & II, stereo aspects", { fill: "EBF3FB" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("II", { fill: "FFFFFF", bold: true, center: true }), cell("10", { fill: "FFFFFF", center: true }), cell("ANS drugs — Adrenergic: biosynthesis & catabolism of catecholamines, alpha & beta receptors; SAR of sympathomimetics; drugs: Nor-epinephrine, Epinephrine, Phenylephrine*, Dopamine, Methyldopa, Clonidine, Dobutamine, Salbutamol*, Naphazoline etc.; Adrenergic antagonists: Tolazoline*, Phentolamine, Prazosin; Beta blockers SAR: Propranolol*, Atenolol, Metoprolol, Carvedilol", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("III", { fill: "EBF3FB", bold: true, center: true }), cell("10", { fill: "EBF3FB", center: true }), cell("Cholinergic neurotransmitters: biosynthesis/catabolism of ACh; muscarinic & nicotinic receptors; Direct acting (ACh, Carbachol*, Pilocarpine); Cholinesterase inhibitors (Physostigmine, Neostigmine*, Pyridostigmine, Edrophonium, Malathion); Cholinesterase reactivator: Pralidoxime; Cholinergic blockers: atropine, scopolamine, ipratropium*; synthetic blockers: Tropicamide, Dicyclomine*, Propantheline", { fill: "EBF3FB" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("IV", { fill: "FFFFFF", bold: true, center: true }), cell("8", { fill: "FFFFFF", center: true }), cell("CNS drugs: A. Sedatives & hypnotics — SAR of benzodiazepines (Diazepam*, Lorazepam, Alprazolam, Zolpidem); SAR barbiturates (Phenobarbital*, Amobarbital, Pentobarbital); Glutethimide, Paraldehyde; B. Antipsychotics — SAR phenothiazines (Chlorpromazine*, Trifluoperazine); Ring analogues (Clozapine, Haloperidol, Risperidone); C. Anticonvulsants — SAR, Phenytoin*, Carbamazepine*, Valproic acid, Ethosuximide*", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("V", { fill: "EBF3FB", bold: true, center: true }), cell("7", { fill: "EBF3FB", center: true }), cell("CNS drugs (continued): General anesthetics — Halothane*, Ketamine*; Narcotic & non-narcotic analgesics — SAR morphine analogues (Morphine sulphate, Codeine, Meperidine, Methadone*, Propoxyphene); narcotic antagonists (Naloxone); Anti-inflammatory: SAR, Aspirin, Mefenamic acid*, Indomethacin, Ibuprofen*, Naproxen, Diclofenac, Piroxicam, Acetaminophen", { fill: "EBF3FB" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
  ]
}));
children.push(spacer());

// BP403T
children.push(h2("BP403T — Physical Pharmaceutics II  (45 Hrs)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Unit", "Hours", "Topics", "Done?"], "2E7D32"),
    new TableRow({ children: [cell("I", { fill: "E8F5E9", bold: true, center: true }), cell("7", { fill: "E8F5E9", center: true }), cell("Colloidal dispersions: classification of dispersed systems, size & shapes of colloidal particles, optical/kinetic/electrical properties, effect of electrolytes, coacervation, peptization, protective action", { fill: "E8F5E9" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("II", { fill: "FFFFFF", bold: true, center: true }), cell("10", { fill: "FFFFFF", center: true }), cell("Rheology: Newtonian systems, law of flow, kinematic viscosity; Non-Newtonian systems (pseudoplastic, dilatant, plastic, thixotropy); determination of viscosity (capillary, falling sphere, rotational viscometers); Deformation of solids: Heckel equation, stress, strain, elastic modulus", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("III", { fill: "E8F5E9", bold: true, center: true }), cell("10", { fill: "E8F5E9", center: true }), cell("Coarse dispersions: Suspension — interfacial properties, settling, flocculated/deflocculated; Emulsions — theories of emulsification, microemulsion, multiple emulsions, stability, preservation, rheological properties, HLB method for formulation", { fill: "E8F5E9" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("IV", { fill: "FFFFFF", bold: true, center: true }), cell("10", { fill: "FFFFFF", center: true }), cell("Micromeretics: Particle size & distribution, mean particle size, number & weight distribution, methods for determining particle size (sieving, sedimentation, counting & separation), particle shape, specific surface, methods for surface area, permeability, adsorption, derived properties: porosity, packing, densities, bulkiness & flow properties", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("V", { fill: "E8F5E9", bold: true, center: true }), cell("10", { fill: "E8F5E9", center: true }), cell("Drug stability: Reaction kinetics (zero, pseudo-zero, first, second order), determination of reaction order, rate constants; Physical & chemical factors influencing degradation (temperature, solvent, ionic strength, dielectric constant, acid-base catalysis); simple numerical problems; Stabilization (hydrolysis & oxidation); Accelerated stability testing; expiration dating; photolytic degradation & prevention", { fill: "E8F5E9" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
  ]
}));
children.push(spacer());

// BP404T
children.push(h2("BP404T — Pharmacology I  (45 Hrs)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Unit", "Hours", "Topics", "Done?"], "7B1FA2"),
    new TableRow({ children: [cell("I", { fill: "F3E5F5", bold: true, center: true }), cell("8", { fill: "F3E5F5", center: true }), cell("General Pharmacology: definition, historical landmarks, scope; nature & source of drugs, essential drugs concept, routes of administration; agonists, antagonists, spare receptors, addiction, tolerance, dependence, tachyphylaxis, idiosyncrasy, allergy; Pharmacokinetics: membrane transport, absorption, distribution, metabolism, excretion, enzyme induction/inhibition, kinetics of elimination", { fill: "F3E5F5" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("II", { fill: "FFFFFF", bold: true, center: true }), cell("12", { fill: "FFFFFF", center: true }), cell("General Pharmacology: Pharmacodynamics — receptor theories & classification, regulation, drug-receptor interactions, signal transduction (G-protein, ion channels, enzyme-linked, JAK-STAT, transcription factors), dose-response relationship, therapeutic index, combined effects of drugs, factors modifying drug action; Adverse drug reactions; Drug interactions; Drug discovery & clinical evaluation, pharmacovigilance", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("III", { fill: "F3E5F5", bold: true, center: true }), cell("10", { fill: "F3E5F5", center: true }), cell("PNS Pharmacology: Organization & function of ANS; neurohumoral transmission, co-transmission, classification of neurotransmitters; Parasympathomimetics, parasympatholytics, sympathomimetics, sympatholytics; Neuromuscular blocking agents & skeletal muscle relaxants; Local anesthetic agents; Drugs in myasthenia gravis & glaucoma", { fill: "F3E5F5" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("IV", { fill: "FFFFFF", bold: true, center: true }), cell("8", { fill: "FFFFFF", center: true }), cell("CNS Pharmacology: Neurohumoral transmission in CNS — GABA, glutamate, glycine, serotonin, dopamine; General anesthetics & pre-anesthetics; Sedatives, hypnotics, centrally acting muscle relaxants; Anti-epileptics; Alcohols & disulfiram", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("V", { fill: "F3E5F5", bold: true, center: true }), cell("7", { fill: "F3E5F5", center: true }), cell("CNS Pharmacology: Psychopharmacological agents (antipsychotics, antidepressants, anti-anxiety, anti-manics, hallucinogens); Drugs in Parkinson's & Alzheimer's; CNS stimulants & nootropics; Opioid analgesics & antagonists; Drug addiction, abuse, tolerance & dependence", { fill: "F3E5F5" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
  ]
}));
children.push(spacer());

// BP405T
children.push(h2("BP405T — Pharmacognosy & Phytochemistry I  (45 Hrs)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Unit", "Hours", "Topics", "Done?"], "E65100"),
    new TableRow({ children: [cell("I", { fill: "FFF3E0", bold: true, center: true }), cell("10", { fill: "FFF3E0", center: true }), cell("Introduction: definition, history, scope & development; Sources of drugs (plants, animals, marine, tissue culture); Organized & unorganized drugs; Classification of drugs (alphabetical, morphological, taxonomical, chemical, pharmacological, chemo & serotaxonomical); Quality control: adulteration, evaluation methods (organoleptic, microscopic, physical, chemical, biological); Quantitative microscopy (lycopodium spore method, leaf constants, camera lucida)", { fill: "FFF3E0" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("II", { fill: "FFFFFF", bold: true, center: true }), cell("10", { fill: "FFFFFF", center: true }), cell("Cultivation, collection, processing & storage of drugs of natural origin; Factors influencing cultivation; Plant hormones & applications; Polyploidy, mutation & hybridization with reference to medicinal plants; Conservation of medicinal plants", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("III", { fill: "FFF3E0", bold: true, center: true }), cell("7", { fill: "FFF3E0", center: true }), cell("Plant tissue culture: historical development, types of cultures, nutritional requirements, growth & maintenance; Applications in pharmacognosy; Edible vaccines", { fill: "FFF3E0" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("IV", { fill: "FFFFFF", bold: true, center: true }), cell("10", { fill: "FFFFFF", center: true }), cell("Pharmacognosy in systems of medicine (Ayurveda, Unani, Siddha, Homeopathy, Chinese); Introduction to secondary metabolites: definition, classification, properties & tests for identification of Alkaloids, Glycosides, Flavonoids, Tannins, Volatile oils, Resins", { fill: "FFFFFF" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("V", { fill: "FFF3E0", bold: true, center: true }), cell("8", { fill: "FFF3E0", center: true }), cell("Biological source, chemical nature & uses of natural drugs: Plant products (Fibres — cotton, jute, hemp; Hallucinogens, teratogens, allergens); Primary metabolites: Carbohydrates (Acacia, Agar, Tragacanth, Honey); Proteins & Enzymes (Gelatin, papain, bromelain, streptokinase); Lipids (Castor oil, Chaulmoogra oil, Wool Fat, Bees Wax); Marine drugs", { fill: "FFF3E0" }), cell("[ ]", { fill: "FFFFFF", center: true })] }),
  ]
}));

// ─── PAGE 4+: 10-DAY TIMETABLE ───────────────────────────────
children.push(pgBreak());
children.push(h1("10-DAY DAILY TIMETABLE"));
children.push(infoBox("Key:", "Morning Session (5:30–7:30 AM) = New content  |  Evening Session (6:30–8:30 PM) = Revision + continuation  |  * = synthesis/structure to draw and memorize", "EBF3FB"));
children.push(spacer());

// TABLE
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    new TableRow({
      tableHeader: true,
      children: [
        new TableCell({ shading: { fill: "1F3864", type: ShadingType.CLEAR }, margins: { top: 100, bottom: 100, left: 100, right: 100 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY", bold: true, size: 22, color: "FFFFFF" })] })] }),
        new TableCell({ shading: { fill: "1F3864", type: ShadingType.CLEAR }, margins: { top: 100, bottom: 100, left: 100, right: 100 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Morning Preview\n(5:30–7:30 AM)", bold: true, size: 22, color: "FFFFFF" })] })] }),
        new TableCell({ shading: { fill: "1F3864", type: ShadingType.CLEAR }, margins: { top: 100, bottom: 100, left: 100, right: 100 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Evening Session A\n(6:30–7:30 PM)", bold: true, size: 22, color: "FFFFFF" })] })] }),
        new TableCell({ shading: { fill: "1F3864", type: ShadingType.CLEAR }, margins: { top: 100, bottom: 100, left: 100, right: 100 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Evening Session B\n(7:30–8:30 PM)", bold: true, size: 22, color: "FFFFFF" })] })] }),
        new TableCell({ shading: { fill: "1F3864", type: ShadingType.CLEAR }, margins: { top: 100, bottom: 100, left: 100, right: 100 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Target by End of Day", bold: true, size: 22, color: "FFFFFF" })] })] }),
      ]
    }),
    dailyRow("DAY 1\nSunday", "Day 1", "ORGANIC CHEM III\nUnit I: Stereoisomerism\nOptical isomerism, enantiomers, diastereomers, meso compounds, elements of symmetry", "ORGANIC CHEM III Unit I (continued)\nDL system, RS system (CIP rules step-by-step)", "ORGANIC CHEM III Unit II\nGeometrical isomerism (cis-trans, EZ, syn-anti), methods of configuration determination", "OC Unit I fully done\nOC Unit II first half done", "2E74B5"),
    dailyRow("DAY 2\nMonday", "Day 2", "ORGANIC CHEM III\nUnit II (finish): Conformational isomerism — ethane, n-butane, cyclohexane, atropisomerism", "ORGANIC CHEM III Unit III\nHeterocyclic: Nomenclature, Pyrrole/Furan/Thiophene — synthesis & reactions", "ORGANIC CHEM III Units IV & V\nPyrazole, Imidazole, Quinoline (Skraup), Beckmann & Schmidt rearrangement, reductions", "OC Units I–V complete", "2E74B5"),
    dailyRow("DAY 3\nTuesday", "Day 3", "MEDICINAL CHEM I\nUnit I: Introduction, physicochemical properties, drug metabolism Phase I & II", "MEDICINAL CHEM I Unit II\nAdrenergic drugs — SAR, sympathomimetics (Epinephrine, Dopamine, Salbutamol*)", "MEDICINAL CHEM I Unit II (finish)\nAdrenergic antagonists (Phentolamine, Prazosin), beta blockers SAR (Propranolol*, Atenolol)", "MC Units I–II complete", "C00000"),
    dailyRow("DAY 4\nWednesday", "Day 4", "MEDICINAL CHEM I\nUnit III: Cholinergic drugs — ACh biosynthesis, muscarinic/nicotinic, direct & indirect acting, Pralidoxime, cholinergic blockers", "MEDICINAL CHEM I Unit IV\nCNS: SAR benzodiazepines (Diazepam*, Alprazolam), SAR barbiturates (Phenobarbital*), Antipsychotics (Chlorpromazine*, Haloperidol, Risperidone)", "MEDICINAL CHEM I Unit V\nAnticonvulsants (Phenytoin*, Carbamazepine*); Analgesics (Morphine, Codeine, Methadone*); NSAIDs (Aspirin, Ibuprofen*, Diclofenac, Acetaminophen)", "MC Units I–V complete", "C00000"),
    dailyRow("DAY 5\nThursday", "Day 5", "PHYSICAL PHARMA II\nUnit I: Colloidal dispersions — classification, optical/kinetic/electrical properties, zeta potential, coacervation, peptization", "PHYSICAL PHARMA II Unit II\nRheology — Newtonian vs non-Newtonian, pseudoplastic, dilatant, thixotropy; viscometers; Heckel equation, elastic modulus", "PHYSICAL PHARMA II Unit III\nSuspensions — interfacial properties, flocculation/deflocculation; Emulsions — theories, HLB method, stability (formulae + numericals)", "PP Units I–III complete", "2E7D32"),
    dailyRow("DAY 6\nFriday", "Day 6", "PHYSICAL PHARMA II\nUnit IV: Micromeretics — particle size & distribution, all measurement methods, Stokes' law, Carr's index, Hausner ratio, flow properties (numericals)", "PHYSICAL PHARMA II Unit V\nDrug stability — reaction kinetics (zero/first/second order), half-life, Arrhenius equation, Accelerated stability testing, expiration dating (numericals)", "PHYSICAL PHARMA II — Full Revision\nRe-do all numericals from Units II, IV, V; check all formulas", "PP Units I–V complete\nAll numericals practiced", "2E7D32"),
    dailyRow("DAY 7\nSaturday", "Day 7", "PHARMACOLOGY I\nUnit I: General pharmacology — scope, routes of administration, pharmacokinetics (ADME), enzyme induction/inhibition, agonist/antagonist concepts", "PHARMACOLOGY I Unit II\nPharmacodynamics — receptor theories, G-protein/ion channel/enzyme-linked receptors, dose-response, therapeutic index, ADRs, drug interactions, pharmacovigilance", "PHARMACOLOGY I Unit III\nPNS pharmacology — ANS organization, neurohumoral transmission, sympathomimetics, parasympathomimetics, NMJ blockers, local anaesthetics, myasthenia gravis/glaucoma drugs", "Pharm Units I–III complete", "7B1FA2"),
    dailyRow("DAY 8\nSunday", "Day 8", "PHARMACOLOGY I\nUnit IV: CNS — GABA/glutamate/serotonin/dopamine, general anaesthetics, sedatives/hypnotics, anti-epileptics, alcohols & disulfiram", "PHARMACOLOGY I Unit V\nAntipsychotics, antidepressants, anti-anxiety; Parkinson's & Alzheimer's drugs; CNS stimulants; opioid analgesics; drug dependence/abuse", "PHARMACOLOGY I — Full Revision\nClassify all drug classes (table format), write mechanisms for 5 key drug categories", "Pharm Units I–V complete", "7B1FA2"),
    dailyRow("DAY 9\nMonday", "Day 9", "PHARMACOGNOSY I\nUnit I: Introduction, drug classification (all 6 types), quality control, adulteration, leaf constants, lycopodium spore method\nUnit II: Cultivation, collection, conservation, plant hormones, polyploidy", "PHARMACOGNOSY I\nUnit III: Plant tissue culture — types, nutritional requirements, applications, edible vaccines\nUnit IV: Secondary metabolites — alkaloids, glycosides, flavonoids, tannins, volatile oils, resins (definition, classification, tests)", "PHARMACOGNOSY I Unit V\nPrimary metabolites — Acacia, Agar, Tragacanth, Honey, Gelatin, papain, enzymes, Castor oil, Chaulmoogra oil; Marine drugs", "PCG Units I–V complete", "E65100"),
    dailyRow("DAY 10\nTuesday", "Day 10", "FULL REVISION — Morning\nOrganic Chem: re-read all named reactions one-liners\nMed Chem: re-read SAR tables for each class + 10 drug structures", "FULL REVISION — Evening A\nPhysical Pharma: all formulas on 1 page; attempt 2 numerical problems\nPharmacology: all classification tables; write receptor types from memory", "FULL REVISION — Evening B\nPharmacognosy: leaf constants, classification summary, secondary metabolites table\nAttempt 1 previous AU paper (50% questions only, timed)", "All 25 Units Revised\nPrevious paper attempted", "555555"),
  ]
}));

// ─── PAGE 5: DAILY STUDY TECHNIQUES ─────────────────────────
children.push(pgBreak());
children.push(h1("REVISION TIPS & STUDY TECHNIQUES"));
children.push(spacer());

children.push(h2("1. The 3-Read Method (for each Unit)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Read #", "When", "What to Do", "Time"]),
    new TableRow({ children: [cell("1st Read", { fill: "E3F2FD", bold: true }), cell("Morning session", { fill: "E3F2FD" }), cell("Read the full unit once WITHOUT stopping. Understand flow. Don't memorize.", { fill: "E3F2FD" }), cell("30–40 min", { fill: "E3F2FD", center: true })] }),
    new TableRow({ children: [cell("2nd Read", { fill: "FFFFFF", bold: true }), cell("Morning session", { fill: "FFFFFF" }), cell("Re-read and write key points in your own words. Draw diagrams. Write drug structures.", { fill: "FFFFFF" }), cell("40–50 min", { fill: "FFFFFF", center: true })] }),
    new TableRow({ children: [cell("3rd Read", { fill: "E3F2FD", bold: true }), cell("Evening session", { fill: "E3F2FD" }), cell("Read only your notes (not the textbook). Recall without looking. Fill in gaps.", { fill: "E3F2FD" }), cell("20–30 min", { fill: "E3F2FD", center: true })] }),
  ]
}));
children.push(spacer());

children.push(h2("2. Subject-Specific Techniques"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Subject", "Best Study Method", "What to Avoid"]),
    new TableRow({ children: [cell("Organic Chemistry III", { fill: "E3F2FD", bold: true }), cell("Write each mechanism step-by-step by hand. Draw arrows for electron movement. Cover and re-draw. Use the PQRST method: Problem, Question, Reaction, Steps, Tips.", { fill: "E3F2FD" }), cell("Don't just read mechanisms — you MUST write them. Reading alone = forgetting.", { fill: "FDECEA" })] }),
    new TableRow({ children: [cell("Medicinal Chemistry I", { fill: "F3E5F5", bold: true }), cell("For each drug class: make a table — Class | SAR Key Points | Prototype Drug | Structure | Uses. Draw structures of starred (*) drugs daily.", { fill: "F3E5F5" }), cell("Don't try to memorize every drug name. Focus on prototype + SAR principles.", { fill: "FDECEA" })] }),
    new TableRow({ children: [cell("Physical Pharmaceutics II", { fill: "E8F5E9", bold: true }), cell("Write all formulas on a single A4 sheet. Solve at least 2 numericals per topic (particle size, kinetics, HLB). Use graphs for rheology curves.", { fill: "E8F5E9" }), cell("Don't skip numerical problems. AU definitely tests calculations.", { fill: "FDECEA" })] }),
    new TableRow({ children: [cell("Pharmacology I", { fill: "FFF3E0", bold: true }), cell("Use classification tables: for every drug class — Classify | Mechanism | Key drug | Dose/route | ADRs. Pharmacokinetics: draw ADME flowchart from memory.", { fill: "FFF3E0" }), cell("Don't memorize individual doses. Focus on mechanism and classification.", { fill: "FDECEA" })] }),
    new TableRow({ children: [cell("Pharmacognosy I", { fill: "FFF3E0", bold: true }), cell("Use mnemonics for classifications. Learn the 6 classification types with 1 example each. Memorize leaf constant numbers for 3–4 key drugs (Senna, Digitalis).", { fill: "FFF3E0" }), cell("Don't leave microscopy without learning 2–3 leaf constant values — it's direct marks.", { fill: "FDECEA" })] }),
  ]
}));
children.push(spacer());

children.push(h2("3. The 30-Minute College Break Trick"));
children.push(para("Every college break (10–15 min between classes, 30–45 min lunch) is study time. Here's how:"));
children.push(bullet("Make 10–15 flash cards every morning before leaving (index cards or phone notes)"));
children.push(bullet("During every college break, review 5 flash cards — don't study new topics"));
children.push(bullet("At lunch, spend 20 minutes re-reading your morning notes (not the textbook)"));
children.push(bullet("This adds ~1 effective hour of review daily without any extra evening effort"));
children.push(spacer());

children.push(h2("4. Memory Techniques for Pharmacy"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Technique", "How to Use It", "Example"]),
    new TableRow({ children: [cell("Acronyms", { fill: "E3F2FD", bold: true }), cell("Create a word from the first letters of items in a list.", { fill: "E3F2FD" }), cell("ADME = Absorption, Distribution, Metabolism, Excretion", { fill: "E3F2FD" })] }),
    new TableRow({ children: [cell("Story Method", { fill: "FFFFFF", bold: true }), cell("Link drug names into a story or sentence.", { fill: "FFFFFF" }), cell("'Poor Peter Phenobarbital Always Amuses Beautiful People' = Barbiturate list", { fill: "FFFFFF" })] }),
    new TableRow({ children: [cell("Chunking", { fill: "E3F2FD", bold: true }), cell("Group similar items together and learn as a block.", { fill: "E3F2FD" }), cell("All benzodiazepines ending in -azepam: Diazepam, Oxazepam, Lorazepam", { fill: "E3F2FD" })] }),
    new TableRow({ children: [cell("Visual Mapping", { fill: "FFFFFF", bold: true }), cell("Draw a spider diagram with the main topic at center, branches for each subtopic.", { fill: "FFFFFF" }), cell("Cholinergic drugs map: Center = ACh, branches = Direct/Indirect/Blockers/Reactivators", { fill: "FFFFFF" })] }),
    new TableRow({ children: [cell("Teach-Back", { fill: "E3F2FD", bold: true }), cell("After studying a topic, explain it out loud as if teaching someone — reveals gaps immediately.", { fill: "E3F2FD" }), cell("Explain 'why phenytoin is used in epilepsy' out loud before sleeping", { fill: "E3F2FD" })] }),
  ]
}));
children.push(spacer());

children.push(h2("5. Exam Day Strategy (AU Pattern)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["AU Exam Format", "Strategy"]),
    new TableRow({ children: [cell("Part A: Short answers (2 marks each)", { fill: "E3F2FD", bold: true }), cell("Attempt all. Write 3–4 lines each. Define → Example → One key fact. Do NOT write more than 5 lines.", { fill: "E3F2FD" })] }),
    new TableRow({ children: [cell("Part B: Medium answers (5–8 marks)", { fill: "FFFFFF", bold: true }), cell("Write with headings. Include a diagram or table wherever possible. One diagram = 1–2 extra marks.", { fill: "FFFFFF" })] }),
    new TableRow({ children: [cell("Part C: Long essays (16 marks)", { fill: "E3F2FD", bold: true }), cell("Use the IDEA format: Introduction | Detailed content (mechanism/classification) | Example with structure | Application/uses. Write a clear introduction first. Divide with subheadings.", { fill: "E3F2FD" })] }),
    new TableRow({ children: [cell("Time management (3-hour paper)", { fill: "FFFFFF", bold: true }), cell("First 10 min: read all questions, mark ones you know well. Start with long essays (35–40 min each). Leave 15 min at the end to review answers.", { fill: "FFFFFF" })] }),
    new TableRow({ children: [cell("Diagrams & structures", { fill: "E3F2FD", bold: true }), cell("Always label diagrams. Draw drug structures neatly — examiners award marks for neat structures even if mechanism is incomplete.", { fill: "E3F2FD" })] }),
  ]
}));
children.push(spacer());

children.push(h2("6. What NOT to Do in These 10 Days"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Don't Do This", "Why", "Do This Instead"], "C00000"),
    new TableRow({ children: [cell("Start a new topic on Day 10", { fill: "FDECEA", bold: true }), cell("Unfinished topics cause panic and lower confidence for topics you already know.", { fill: "FDECEA" }), cell("Only revise covered topics on Day 10", { fill: "E8F5E9" })] }),
    new TableRow({ children: [cell("Study continuously for 4+ hours without break", { fill: "FDECEA", bold: true }), cell("Attention drops to ~20% after 90 minutes. You waste time but feel like you studied.", { fill: "FDECEA" }), cell("2 hours max per session with a 10-min break in the middle", { fill: "E8F5E9" })] }),
    new TableRow({ children: [cell("Sacrifice sleep to study late", { fill: "FDECEA", bold: true }), cell("Sleep consolidates memory. Sleeping less than 6 hours = significant memory loss next day.", { fill: "FDECEA" }), cell("Sleep by 10:30 PM. Study quality > quantity.", { fill: "E8F5E9" })] }),
    new TableRow({ children: [cell("Read without writing anything", { fill: "FDECEA", bold: true }), cell("Passive reading = forgetting within 24 hours for most pharmacy content.", { fill: "FDECEA" }), cell("Always have a pen — write key words, draw structures, make mini-notes", { fill: "E8F5E9" })] }),
    new TableRow({ children: [cell("Skip Physical Pharma numericals", { fill: "FDECEA", bold: true }), cell("AU regularly tests 5–8 marks of calculations. Skipping = guaranteed mark loss.", { fill: "FDECEA" }), cell("Practice at least 2 numericals per topic on Days 5–6", { fill: "E8F5E9" })] }),
  ]
}));
children.push(spacer());

children.push(h2("7. High-Yield Focus Topics (Greatest Marks for Least Time)"));
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [
    hdrRow(["Subject", "TOP 3 Must-Do Topics", "Expected Marks"]),
    new TableRow({ children: [cell("Organic Chemistry III", { fill: "E3F2FD", bold: true }), cell("1. Optical isomerism + RS nomenclature\n2. Synthesis of quinoline (Skraup) & indole (Fischer)\n3. Beckmann rearrangement mechanism", { fill: "E3F2FD" }), cell("~40–50 marks", { fill: "E3F2FD", center: true, bold: true })] }),
    new TableRow({ children: [cell("Medicinal Chemistry I", { fill: "F3E5F5", bold: true }), cell("1. SAR of benzodiazepines + structures of Diazepam, Alprazolam\n2. SAR of phenothiazines + Chlorpromazine structure\n3. SAR beta-blockers + Propranolol structure", { fill: "F3E5F5" }), cell("~45–55 marks", { fill: "F3E5F5", center: true, bold: true })] }),
    new TableRow({ children: [cell("Physical Pharma II", { fill: "E8F5E9", bold: true }), cell("1. Rheology — draw & label all 4 flow curves\n2. HLB calculation method + emulsion formulation\n3. First-order kinetics numerical + shelf-life calculation", { fill: "E8F5E9" }), cell("~40–45 marks", { fill: "E8F5E9", center: true, bold: true })] }),
    new TableRow({ children: [cell("Pharmacology I", { fill: "FFF3E0", bold: true }), cell("1. Pharmacokinetics (ADME) — full detail\n2. Receptor theories + classification (G-protein pathway diagram)\n3. ANS organization + neurotransmitter classification table", { fill: "FFF3E0" }), cell("~45–50 marks", { fill: "FFF3E0", center: true, bold: true })] }),
    new TableRow({ children: [cell("Pharmacognosy I", { fill: "FFF8E1", bold: true }), cell("1. Classification of crude drugs (all 6 types with examples)\n2. Secondary metabolites — Alkaloids, Glycosides, Flavonoids tests\n3. Lycopodium spore method + leaf constants (numbers)", { fill: "FFF8E1" }), cell("~40–45 marks", { fill: "FFF8E1", center: true, bold: true })] }),
  ]
}));
children.push(spacer());

// FINAL MOTIVATION
children.push(new Table({
  width: { size: 100, type: WidthType.PERCENTAGE },
  rows: [new TableRow({ children: [new TableCell({
    shading: { fill: "1F3864", type: ShadingType.CLEAR },
    margins: { top: 200, bottom: 200, left: 360, right: 360 },
    children: [
      new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "You have everything you need. 10 days, 4 hours a day, consistent effort.", bold: true, size: 26, color: "FFFFFF" })] }),
      new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Follow this plan, sleep well, stay hydrated, and trust the process.", size: 24, color: "BDD7EE", italics: true })] }),
      new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "ALL THE BEST FOR YOUR EXAMS!", bold: true, size: 28, color: "FFD700" })] }),
    ]
  })]})]
}));

// ─── BUILD DOC ────────────────────────────────────────────────
const doc = new Document({
  numbering: {
    config: [
      { reference: "bullets", levels: [{ level: 0, format: LevelFormat.BULLET, text: "\u2022", alignment: AlignmentType.LEFT, style: { paragraph: { indent: { left: 720, hanging: 360 } } } }] },
      { reference: "numbers", levels: [{ level: 0, format: LevelFormat.DECIMAL, text: "%1.", alignment: AlignmentType.LEFT, style: { paragraph: { indent: { left: 720, hanging: 360 } } } }] }
    ]
  },
  styles: {
    default: { document: { run: { font: "Arial", size: 22 } } },
    paragraphStyles: [
      { id: "Heading1", name: "Heading 1", basedOn: "Normal", next: "Normal", quickFormat: true,
        run: { size: 36, bold: true, font: "Arial", color: "1F3864" },
        paragraph: { spacing: { before: 320, after: 180 }, outlineLevel: 0, border: { bottom: { color: "2E74B5", space: 1, style: BorderStyle.SINGLE, size: 6 } } } },
      { id: "Heading2", name: "Heading 2", basedOn: "Normal", next: "Normal", quickFormat: true,
        run: { size: 28, bold: true, font: "Arial", color: "2E74B5" },
        paragraph: { spacing: { before: 200, after: 100 }, outlineLevel: 1 } },
      { id: "Heading3", name: "Heading 3", basedOn: "Normal", next: "Normal", quickFormat: true,
        run: { size: 24, bold: true, font: "Arial", color: "444444" },
        paragraph: { spacing: { before: 160, after: 80 }, outlineLevel: 2 } }
    ]
  },
  sections: [{
    properties: { page: { margin: { top: 900, bottom: 900, left: 900, right: 900 }, size: { width: 11906, height: 16838 } } },
    headers: { default: new Header({ children: [new Paragraph({
      alignment: AlignmentType.RIGHT,
      border: { bottom: { color: "2E74B5", space: 1, style: BorderStyle.SINGLE, size: 4 } },
      children: [new TextRun({ text: "B.Pharm 4th Sem  |  10-Day Study Timetable  |  Andhra University", size: 18, italics: true, color: "888888" })]
    })] }) },
    footers: { default: new Footer({ children: [new Paragraph({
      alignment: AlignmentType.CENTER,
      border: { top: { color: "2E74B5", space: 1, style: BorderStyle.SINGLE, size: 4 } },
      children: [
        new TextRun({ text: "Page ", size: 18, color: "888888" }),
        new TextRun({ children: [PageNumber.CURRENT], size: 18, color: "888888" }),
        new TextRun({ text: " of ", size: 18, color: "888888" }),
        new TextRun({ children: [PageNumber.TOTAL_PAGES], size: 18, color: "888888" })
      ]
    })] }) },
    children
  }]
});

Packer.toBuffer(doc).then(buf => {
  fs.writeFileSync('/home/daytona/workspace/bpharm-organic-chem/BPharm_4thSem_10Day_Timetable_AU.docx', buf);
  console.log('Done!');
}).catch(e => { console.error(e); process.exit(1); });
Running Command

cd /home/daytona/workspace/bpharm-organic-chem && node generate_timetable.js 2>&…

Running Command

python3 -c " import zipfile, os f = '/home/daytona/workspace/bpharm-organic-chem…

Your personalised timetable document is ready! Download it here:

BPharm 4thSem 10Day Timetable AU

Word Document · DOCX


Here is a complete summary of everything inside the document, built directly from your uploaded AU syllabus PDF:

What's Inside the Document

Page 1 - Cover Page

Your name, AU, 5 subjects, 10-day countdown with exam details.

Page 2 - How to Use This Timetable

Your daily schedule built around your 8 AM–6 PM college timing:
TimeActivity
5:30–7:30 AMSession 1 - New topics (2 hrs)
8:00 AM–6:00 PMCollege (use breaks for flash cards)
6:30–8:30 PMSession 2 - Revision + continuation (2 hrs)
9:30–10:00 PM30-min light recap before sleep
10:00 PMSleep (non-negotiable)
Total = 4 hours/day + 1 bonus hour from college breaks = 5 effective hours.
Subject hours budget table showing how 40 hours are split across all 5 subjects.

Page 3 - Unit-Wise Syllabus Checklist

All 25 units extracted from your actual PDF with exact topics and a tick-box column you can print and check off as you complete each unit.

Page 4 - The 10-Day Daily Timetable

Full day-by-day table with exact topics for each session:
DaySubjectFocus
1Organic Chem IIIUnits I–II (Stereoisomerism + Geometrical/Conformational)
2Organic Chem IIIUnits III–V (Heterocyclics + Named Reactions)
3Medicinal Chem IUnits I–II (Introduction + Adrenergic drugs)
4Medicinal Chem IUnits III–V (Cholinergic + CNS drugs + Analgesics)
5Physical Pharma IIUnits I–III (Colloids + Rheology + Emulsions)
6Physical Pharma IIUnits IV–V + Numericals (Micromeretics + Stability)
7Pharmacology IUnits I–III (General Pharmacology + PNS)
8Pharmacology IUnits IV–V + Revision (CNS Pharmacology)
9Pharmacognosy IAll 5 units in 1 day (most factual = fastest)
10ALL subjectsRevision only + 1 previous AU paper

Page 5 - Revision Tips

  • The 3-Read method for each unit
  • Subject-specific techniques (mechanisms for OC, SAR tables for MC, numericals for PP)
  • The college break flash card trick
  • Memory techniques (acronyms, story method, chunking, visual mapping, teach-back)
  • AU exam day strategy (time allocation, diagram tips, IDEA essay format)
  • What NOT to do (6 common mistakes that lose marks)
  • High-yield topics (top 3 per subject that give the most marks for least effort)
This is a shared conversation. Sign in to Orris to start your own chat.