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
What kind of study material do you need? · You mentioned 'AU' - which university is this?
Andhra University B Pharmacy 4th semester syllabus organic chemistry physical pharmaceutics pharmacognosy pharmacology medicinal chemistry
https://www.carewellpharma.in/bpharmacy/syllabus/4th-sem
| # | Subject | Units |
|---|---|---|
| 1 | Pharmaceutical Organic Chemistry - III (BP401T) | 5 Units |
| 2 | Medicinal Chemistry - I (BP402T) | 5 Units |
| 3 | Physical Pharmaceutics - II (BP403T) | 5 Units |
| 4 | Pharmacology - I (BP404T) | 5 Units |
| 5 | Pharmacognosy - I (BP405T) | 5 Units |
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.
AU Tip: Named reactions - write mechanism + example for each. Heterocyclic chemistry carries heavy marks. Know synthesis of each ring system.
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."
AU Tip: HLB calculations, Gibbs adsorption equation, and zeta potential are frequently asked numerically at AU. Practice derivations of these.
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.
AU Tip: Pharmacognosy at AU commonly tests leaf constants (tabular data), adulteration of specific drugs, and drawing/labeling microscopic characters. Memorize these values.
| Time | Subject | Focus |
|---|---|---|
| 7 AM - 9 AM | Organic Chemistry III | Named reactions (write 1 line mechanism each), all heterocyclic syntheses |
| 9 AM - 11 AM | Medicinal Chemistry I | SAR tables for each class; draw structures of all prototype drugs |
| 11 AM - 1 PM | Physical Pharmaceutics II | Formulas: HLB, Stokes' law, Hausner ratio, Carr's index, Gibbs equation |
| 2 PM - 4 PM | Pharmacology I | ADME, receptor theory, drug classifications, mechanisms |
| 4 PM - 6 PM | Pharmacognosy I | Leaf constants table, classification methods, tissue culture types |
| 6 PM - 8 PM | All subjects | Re-read all short notes / flashcards made during week |
Generate a detailed study document for Organic Chemistry mechanisms
ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/bpharm-organic-chem
~/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);
});
cd /home/daytona/workspace/bpharm-organic-chem && node generate_doc.js 2>&1
python3 /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/workspace/bpharm-organic-chem/Organic_Chemistry_Mechanisms_BPharm_4thSem_AU.docx 2>&1
cd /home/daytona/workspace/bpharm-organic-chem && python3 -c " import zipfile, os f = 'Organic_Chemistry_Mechanisms_BPharm_4thSem_AU.docx' size = os.path.getsize(f) print(f'File size: {size} bytes ({size/1024:.1f} KB)') with zipfile.ZipFile(f) as z: names = z.namelist() print('Contents:', names[:10]) # Check word/document.xml exists if 'word/document.xml' in names: xml = z.read('word/document.xml') print(f'document.xml size: {len(xml)} bytes') print('Valid DOCX structure: YES') else: print('ERROR: word/document.xml missing') "
Organic Chemistry Mechanisms BPharm 4thSem AU
Word Document · DOCX
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
python3 -c " import pdfplumber path = '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' with pdfplumber.open(path) as pdf: print(f'Total pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages): print(f'--- PAGE {i+1} ---') text = page.extract_text() if text: print(text[:3000]) print() " 2>&1
python3 -c " import subprocess, os path = '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' # Try OCR with pytesseract via pdf2image try: from pdf2image import convert_from_path from PIL import Image import pytesseract pages = convert_from_path(path, dpi=200) print(f'Converted {len(pages)} pages') for i, page in enumerate(pages[:4]): text = pytesseract.image_to_string(page) print(f'--- PAGE {i+1} ---') print(text[:2000]) print() except Exception as e: print(f'Error: {e}') " 2>&1 | head -200
python3 << 'EOF' from pdf2image import convert_from_path import pytesseract, sys path = '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' pages = convert_from_path(path, dpi=200) print(f'Pages: {len(pages)}', flush=True) for i, page in enumerate(pages): text = pytesseract.image_to_string(page) print(f'\n=== PAGE {i+1} ===') print(text[:3000]) sys.stdout.flush() EOF 2>&1 | head -300
python3 << 'EOF' from pdf2image import convert_from_path import os path = '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' out_dir = '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/pages/' os.makedirs(out_dir, exist_ok=True) pages = convert_from_path(path, dpi=150, first_page=1, last_page=4) for i, page in enumerate(pages): fname = f'{out_dir}page_{i+1}.jpg' page.save(fname, 'JPEG') print(f'Saved {fname}') EOF 2>&1
mutool draw -F jpg -o /home/daytona/workspace/attachments/pages/page_%d.jpg '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' 2>&1 && ls /home/daytona/workspace/attachments/pages/
mkdir -p /home/daytona/workspace/attachments/pages && pdftoppm -jpeg -r 100 -f 1 -l 4 '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' /home/daytona/workspace/attachments/pages/page 2>&1 && ls /home/daytona/workspace/attachments/pages/
pdftoppm -jpeg -r 100 -f 5 -l 12 '/home/daytona/workspace/attachments/08b0d002-ed2f-40fa-98e6-64251c01e65f/4th semester b pharmacy syllabus.pdf' /home/daytona/workspace/attachments/pages/page 2>&1 && ls /home/daytona/workspace/attachments/pages/ && python3 -c " import base64, os pages_dir = '/home/daytona/workspace/attachments/pages/' for f in sorted(os.listdir(pages_dir))[:3]: path = os.path.join(pages_dir, f) size = os.path.getsize(path) print(f'{f}: {size} bytes') "
~/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); });
cd /home/daytona/workspace/bpharm-organic-chem && node generate_timetable.js 2>&1
python3 -c " import zipfile, os f = '/home/daytona/workspace/bpharm-organic-chem/BPharm_4thSem_10Day_Timetable_AU.docx' size = os.path.getsize(f) print(f'File size: {size} bytes ({size/1024:.1f} KB)') with zipfile.ZipFile(f) as z: if 'word/document.xml' in z.namelist(): xml = z.read('word/document.xml') print(f'document.xml: {len(xml)} bytes — Valid DOCX') "
BPharm 4thSem 10Day Timetable AU
Word Document · DOCX
| Time | Activity |
|---|---|
| 5:30–7:30 AM | Session 1 - New topics (2 hrs) |
| 8:00 AM–6:00 PM | College (use breaks for flash cards) |
| 6:30–8:30 PM | Session 2 - Revision + continuation (2 hrs) |
| 9:30–10:00 PM | 30-min light recap before sleep |
| 10:00 PM | Sleep (non-negotiable) |
| Day | Subject | Focus |
|---|---|---|
| 1 | Organic Chem III | Units I–II (Stereoisomerism + Geometrical/Conformational) |
| 2 | Organic Chem III | Units III–V (Heterocyclics + Named Reactions) |
| 3 | Medicinal Chem I | Units I–II (Introduction + Adrenergic drugs) |
| 4 | Medicinal Chem I | Units III–V (Cholinergic + CNS drugs + Analgesics) |
| 5 | Physical Pharma II | Units I–III (Colloids + Rheology + Emulsions) |
| 6 | Physical Pharma II | Units IV–V + Numericals (Micromeretics + Stability) |
| 7 | Pharmacology I | Units I–III (General Pharmacology + PNS) |
| 8 | Pharmacology I | Units IV–V + Revision (CNS Pharmacology) |
| 9 | Pharmacognosy I | All 5 units in 1 day (most factual = fastest) |
| 10 | ALL subjects | Revision only + 1 previous AU paper |
I just want to come from or start the preparation from back to front subjects
~/bpharm-organic-chem/generate_reverse_timetable.js
const {
Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
HeadingLevel, AlignmentType, BorderStyle, WidthType, ShadingType,
LevelFormat, PageNumber, Header, Footer, 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 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 divider() {
return new Paragraph({ border: { bottom: { color: "4472C4", space: 1, style: BorderStyle.SINGLE, size: 6 } }, children: [new TextRun("")], spacing: { after: 140 } });
}
function cell(text, opts = {}) {
const paras = Array.isArray(text)
? text.map(t => new Paragraph({ alignment: opts.center ? AlignmentType.CENTER : AlignmentType.LEFT, children: [new TextRun({ text: t, bold: opts.bold||false, size: opts.size||22, color: opts.color||"000000", italics: opts.italic||false })] }))
: [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 })] })];
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: paras
});
}
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" })] })]
})] })] });
}
// subject colour map
const COLORS = {
PCG: { hdr: "E65100", light: "FFF3E0" },
PHRM: { hdr: "7B1FA2", light: "F3E5F5" },
PP: { hdr: "2E7D32", light: "E8F5E9" },
MC: { hdr: "C00000", light: "FDECEA" },
OC: { hdr: "2E74B5", light: "E3F2FD" },
REV: { hdr: "37474F", light: "ECEFF1" },
};
// big daily row
function dayRow(dayLabel, dateLabel, morningLines, evgALines, evgBLines, targetLines, subCode) {
const C = COLORS[subCode];
function mkCell(lines, fillCol) {
return new TableCell({
shading: { fill: fillCol, type: ShadingType.CLEAR },
margins: { top: 90, bottom: 90, left: 120, right: 120 },
verticalAlign: VerticalAlign.TOP,
children: lines.map((l, i) => new Paragraph({
spacing: { after: i === lines.length-1 ? 0 : 60 },
children: [new TextRun({ text: l, size: i===0 ? 22 : 20, bold: i===0 })]
}))
});
}
return new TableRow({ children: [
new TableCell({
shading: { fill: C.hdr, type: ShadingType.CLEAR },
margins: { top: 90, bottom: 90, left: 100, right: 100 },
verticalAlign: VerticalAlign.CENTER,
children: [
new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: dayLabel, bold: true, size: 24, color: "FFFFFF" })] }),
new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: dateLabel, size: 19, color: "FFFFFF", italics: true })] }),
]
}),
mkCell(morningLines, "EBF7FF"),
mkCell(evgALines, "F5F5F5"),
mkCell(evgBLines, "F5F5F5"),
mkCell(targetLines, "E8F5E9"),
]});
}
const children = [];
// ═══════════════════════════════════════════════════════════
// COVER
// ═══════════════════════════════════════════════════════════
children.push(spacer(180));
children.push(new Paragraph({ alignment: AlignmentType.CENTER, spacing: { after: 140 }, children: [new TextRun({ text: "B. PHARMACY — 4th SEMESTER | ANDHRA UNIVERSITY", bold: true, size: 36, color: "1F3864" })] }));
children.push(new Paragraph({ alignment: AlignmentType.CENTER, spacing: { after: 200 }, children: [new TextRun({ text: "10-DAY REVERSE-ORDER EXAM TIMETABLE", bold: true, size: 56, color: "C00000" })] }));
children.push(new Paragraph({ alignment: AlignmentType.CENTER, spacing: { after: 140 }, children: [new TextRun({ text: "Starting from Back ➜ Going to Front | 4 hrs/day | College 8 AM–6 PM", size: 26, italics: true, color: "444444" })] }));
// Subject order banner
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [new TableRow({ children: [
new TableCell({ shading: { fill: COLORS.PCG.hdr, type: ShadingType.CLEAR }, margins: { top: 160, bottom: 160, left: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY 1–2", bold: true, size: 22, color: "FFFFFF" })]}), new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Pharmacognosy & Phytochemistry I", size: 20, color: "FFFFFF" })]})] }),
new TableCell({ shading: { fill: COLORS.PHRM.hdr, type: ShadingType.CLEAR }, margins: { top: 160, bottom: 160, left: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY 3–4", bold: true, size: 22, color: "FFFFFF" })]}), new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Pharmacology I", size: 20, color: "FFFFFF" })]})] }),
new TableCell({ shading: { fill: COLORS.PP.hdr, type: ShadingType.CLEAR }, margins: { top: 160, bottom: 160, left: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY 5–6", bold: true, size: 22, color: "FFFFFF" })]}), new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Physical Pharma II", size: 20, color: "FFFFFF" })]})] }),
new TableCell({ shading: { fill: COLORS.MC.hdr, type: ShadingType.CLEAR }, margins: { top: 160, bottom: 160, left: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY 7–8", bold: true, size: 22, color: "FFFFFF" })]}), new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Medicinal Chemistry I", size: 20, color: "FFFFFF" })]})] }),
new TableCell({ shading: { fill: COLORS.OC.hdr, type: ShadingType.CLEAR }, margins: { top: 160, bottom: 160, left: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY 9", bold: true, size: 22, color: "FFFFFF" })]}), new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Organic Chem III", size: 20, color: "FFFFFF" })]})] }),
new TableCell({ shading: { fill: COLORS.REV.hdr, type: ShadingType.CLEAR }, margins: { top: 160, bottom: 160, left: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "DAY 10", bold: true, size: 22, color: "FFFFFF" })]}), new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Full Revision + PYQs", size: 20, color: "FFFFFF" })]})] }),
]})]}));
children.push(spacer(120));
children.push(infoBox("Why Reverse Order?", "You start with Pharmacognosy (most factual, easiest to memorize quickly) when your mind is fresh, then move progressively to harder subjects. Organic Chemistry — the hardest — comes last but closest to exam day, so it stays fresh in memory.", "FFF2CC", "7F6000"));
// ═══════════════════════════════════════════════════════════
// PAGE 2 – DAILY SCHEDULE & BUDGET
// ═══════════════════════════════════════════════════════════
children.push(pgBreak());
children.push(h1("YOUR DAILY SCHEDULE (College 8 AM – 6 PM)"));
children.push(spacer());
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow(["Time", "Activity", "Duration", "Action"]),
new TableRow({ children: [cell("5:30 – 7:30 AM", { fill: "E3F2FD", bold: true }), cell("MORNING SESSION — New Content", { fill: "E3F2FD", bold: true }), cell("2 hrs", { fill: "E3F2FD", center: true }), cell("Read → Understand → Write notes by hand", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("7:30 – 8:00 AM", { fill: "FFF3E0" }), cell("Get ready for college", { fill: "FFF3E0" }), cell("30 min", { fill: "FFF3E0", center: true }), cell("Breakfast, freshen up, pack flash cards", { fill: "FFF3E0" })] }),
new TableRow({ children: [cell("8:00 AM – 6:00 PM", { fill: "F3E5F5" }), cell("COLLEGE", { fill: "F3E5F5", bold: true }), cell("10 hrs", { fill: "F3E5F5", center: true }), cell("Use every 10-min break & lunch to review today's flash cards only", { fill: "F3E5F5" })] }),
new TableRow({ children: [cell("6:00 – 6:30 PM", { fill: "E8F5E9" }), cell("Travel + Rest", { fill: "E8F5E9" }), cell("30 min", { fill: "E8F5E9", center: true }), cell("Relax. Snack. No study. Decompress.", { fill: "E8F5E9" })] }),
new TableRow({ children: [cell("6:30 – 7:30 PM", { fill: "E3F2FD", bold: true }), cell("EVENING SESSION A — Revision", { fill: "E3F2FD", bold: true }), cell("1 hr", { fill: "E3F2FD", center: true }), cell("Re-read morning notes (not textbook). Write from memory.", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("7:30 – 8:30 PM", { fill: "E3F2FD", bold: true }), cell("EVENING SESSION B — New/Continuation", { fill: "E3F2FD", bold: true }), cell("1 hr", { fill: "E3F2FD", center: true }), cell("Cover next set of topics OR do practice questions", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("8:30 – 9:30 PM", { fill: "FFF3E0" }), cell("Dinner + Family Time", { fill: "FFF3E0" }), cell("1 hr", { fill: "FFF3E0", center: true }), cell("Mandatory mental reset — no phone studying", { fill: "FFF3E0" })] }),
new TableRow({ children: [cell("9:30 – 10:00 PM", { fill: "F1F8E9" }), cell("Night Recall (Optional)", { fill: "F1F8E9" }), cell("30 min", { fill: "F1F8E9", center: true }), cell("Glance at today's notes only — no new content", { fill: "F1F8E9" })] }),
new TableRow({ children: [cell("10:00 PM", { fill: "FDECEA", bold: true }), cell("SLEEP — Non-negotiable", { fill: "FDECEA", bold: true, color: "C00000" }), cell("7–8 hrs", { fill: "FDECEA", center: true }), cell("Memory is encoded during deep sleep. This is study time.", { fill: "FDECEA" })] }),
]}));
children.push(spacer());
children.push(tipBox("Your most powerful hidden study slot: college lunch break (30–45 min). Don't eat and scroll — eat and review 10 flash cards. Over 10 days that's ~5 extra hours of revision."));
children.push(spacer());
children.push(h2("Hours Budget (10 days × 4 hrs = 40 hours)"));
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow(["#", "Subject", "Code", "Days", "Hours", "Order Reason"]),
new TableRow({ children: [cell("1st", { fill: COLORS.PCG.light, bold: true, center: true }), cell("Pharmacognosy & Phytochemistry I", { fill: COLORS.PCG.light }), cell("BP405T", { fill: COLORS.PCG.light, center: true }), cell("Day 1–2", { fill: COLORS.PCG.light, center: true }), cell("8 hrs", { fill: COLORS.PCG.light, center: true, bold: true }), cell("Most factual, least derivation — best to do fresh when brain is new to revision mode", { fill: COLORS.PCG.light })] }),
new TableRow({ children: [cell("2nd", { fill: COLORS.PHRM.light, bold: true, center: true }), cell("Pharmacology I", { fill: COLORS.PHRM.light }), cell("BP404T", { fill: COLORS.PHRM.light, center: true }), cell("Day 3–4", { fill: COLORS.PHRM.light, center: true }), cell("8 hrs", { fill: COLORS.PHRM.light, center: true, bold: true }), cell("Conceptual but logical — classification & mechanisms are manageable before harder subjects", { fill: COLORS.PHRM.light })] }),
new TableRow({ children: [cell("3rd", { fill: COLORS.PP.light, bold: true, center: true }), cell("Physical Pharmaceutics II", { fill: COLORS.PP.light }), cell("BP403T", { fill: COLORS.PP.light, center: true }), cell("Day 5–6", { fill: COLORS.PP.light, center: true }), cell("8 hrs", { fill: COLORS.PP.light, center: true, bold: true }), cell("Mixed theory + numericals — good mid-schedule when momentum is built up", { fill: COLORS.PP.light })] }),
new TableRow({ children: [cell("4th", { fill: COLORS.MC.light, bold: true, center: true }), cell("Medicinal Chemistry I", { fill: COLORS.MC.light }), cell("BP402T", { fill: COLORS.MC.light, center: true }), cell("Day 7–8", { fill: COLORS.MC.light, center: true }), cell("8 hrs", { fill: COLORS.MC.light, center: true, bold: true }), cell("Heavy on structures & SAR — needs good recall ability built from earlier days", { fill: COLORS.MC.light })] }),
new TableRow({ children: [cell("5th", { fill: COLORS.OC.light, bold: true, center: true }), cell("Pharmaceutical Organic Chemistry III", { fill: COLORS.OC.light }), cell("BP401T", { fill: COLORS.OC.light, center: true }), cell("Day 9", { fill: COLORS.OC.light, center: true }), cell("4 hrs", { fill: COLORS.OC.light, center: true, bold: true }), cell("Hardest subject — done last & closest to exam so mechanisms stay fresh in memory", { fill: COLORS.OC.light })] }),
new TableRow({ children: [cell("Rev", { fill: COLORS.REV.light, bold: true, center: true }), cell("Full Revision + Previous Year Papers", { fill: COLORS.REV.light }), cell("All", { fill: COLORS.REV.light, center: true }), cell("Day 10", { fill: COLORS.REV.light, center: true }), cell("4 hrs", { fill: COLORS.REV.light, center: true, bold: true }), cell("Tie everything together — attempt past AU papers, fix weak spots", { fill: COLORS.REV.light })] }),
]}));
// ═══════════════════════════════════════════════════════════
// PAGE 3 – UNIT CHECKLIST
// ═══════════════════════════════════════════════════════════
children.push(pgBreak());
children.push(h1("UNIT-BY-UNIT CHECKLIST (Tick as you complete)"));
children.push(para("Print this page. Tick each box after finishing. Seeing progress ticked off is a proven motivation booster.", { italic: true }));
children.push(spacer());
// Helper for checklist tables
function checkTable(subName, subColor, rows) {
return [
new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow([subName + " (tick when done ✓)"], subColor),
hdrRow(["Unit", "Hours", "Key Topics", "✓"], subColor),
...rows.map((r, i) => new TableRow({ children: [
cell(r[0], { fill: i%2===0 ? COLORS[r[3]].light : "FFFFFF", bold: true, center: true }),
cell(r[1], { fill: i%2===0 ? COLORS[r[3]].light : "FFFFFF", center: true }),
cell(r[2], { fill: i%2===0 ? COLORS[r[3]].light : "FFFFFF" }),
cell("[ ]", { fill: i%2===0 ? COLORS[r[3]].light : "FFFFFF", center: true }),
]}))
]}),
spacer()
];
}
// Pharmacognosy
checkTable("BP405T — Pharmacognosy & Phytochemistry I", COLORS.PCG.hdr, [
["I", "10 hrs", "Introduction, definition, history, scope; Sources of drugs (plants/animals/marine/tissue culture); Organized & unorganized drugs; Classification (alphabetical, morphological, taxonomical, chemical, pharmacological, chemo & serotaxonomical); Quality control & adulteration (organoleptic, microscopic, physical, chemical, biological); Quantitative microscopy (lycopodium spore method, leaf constants, camera lucida)", "PCG"],
["II", "10 hrs", "Cultivation, collection, processing & storage; Factors influencing cultivation; Plant hormones & applications; Polyploidy, mutation & hybridization with reference to medicinal plants; Conservation of medicinal plants", "PCG"],
["III", "7 hrs", "Plant tissue culture: historical development, types of cultures, nutritional requirements, growth & maintenance; Applications in pharmacognosy; Edible vaccines", "PCG"],
["IV", "10 hrs", "Pharmacognosy in systems of medicine (Ayurveda, Unani, Siddha, Homeopathy, Chinese); Introduction to secondary metabolites: alkaloids, glycosides, flavonoids, tannins, volatile oils, resins — definition, classification, properties, tests for identification", "PCG"],
["V", "8 hrs", "Biological source, chemical nature & uses: Plant products (fibres — cotton/jute/hemp; hallucinogens, teratogens, allergens); Primary metabolites — Carbohydrates (Acacia, Agar, Tragacanth, Honey); Proteins & Enzymes (Gelatin, papain, bromelain, streptokinase, urokinase); Lipids (Castor oil, Chaulmoogra oil, Wool Fat, Bees Wax); Marine drugs", "PCG"],
]).forEach(x => children.push(x));
// Pharmacology
checkTable("BP404T — Pharmacology I", COLORS.PHRM.hdr, [
["I", "8 hrs", "General Pharmacology: definition, historical landmarks, scope; nature & source of drugs, essential drugs, routes of administration; agonists, antagonists, spare receptors, addiction, tolerance, dependence, tachyphylaxis, idiosyncrasy, allergy; Pharmacokinetics: membrane transport, ADME, enzyme induction/inhibition, kinetics of elimination", "PHRM"],
["II", "12 hrs", "Pharmacodynamics: receptor theories & classification, regulation, drug-receptor interactions, signal transduction (G-protein, ion channels, enzyme-linked, JAK-STAT, transcription factors), dose-response, therapeutic index, combined drug effects, factors modifying drug action; ADRs; Drug interactions; Drug discovery & clinical evaluation; Pharmacovigilance", "PHRM"],
["III", "10 hrs", "PNS Pharmacology: Organization & function of ANS; neurohumoral transmission & co-transmission; classification of neurotransmitters; Parasympathomimetics, parasympatholytics, sympathomimetics, sympatholytics; NMJ blocking agents & skeletal muscle relaxants; Local anaesthetics; Drugs in myasthenia gravis & glaucoma", "PHRM"],
["IV", "8 hrs", "CNS Pharmacology: Neurohumoral transmission in CNS (GABA, glutamate, glycine, serotonin, dopamine); General anaesthetics & pre-anaesthetics; Sedatives, hypnotics, centrally acting muscle relaxants; Anti-epileptics; Alcohols & disulfiram", "PHRM"],
["V", "7 hrs", "CNS (continued): Psychopharmacological agents (antipsychotics, antidepressants, anti-anxiety, anti-manics, hallucinogens); Drugs in Parkinson's & Alzheimer's disease; CNS stimulants & nootropics; Opioid analgesics & antagonists; Drug addiction, abuse, tolerance & dependence", "PHRM"],
]).forEach(x => children.push(x));
// Physical Pharma
checkTable("BP403T — Physical Pharmaceutics II", COLORS.PP.hdr, [
["I", "7 hrs", "Colloidal dispersions: classification of dispersed systems, size & shapes of colloidal particles, classification of colloids & their general properties, optical/kinetic/electrical properties, effect of electrolytes, coacervation, peptization, protective action", "PP"],
["II", "10 hrs", "Rheology: Newtonian systems, law of flow, kinematic viscosity, effect of temperature; Non-Newtonian systems (pseudoplastic, dilatant, plastic, thixotropy in formulation); Determination of viscosity: capillary, falling sphere, rotational viscometers; Deformation of solids: Heckel equation, stress, strain, elastic modulus", "PP"],
["III", "10 hrs", "Coarse dispersions: Suspension — interfacial properties of suspended particles, settling in suspensions, flocculated & deflocculated formulation; Emulsions — theories of emulsification, microemulsion, multiple emulsions, stability, preservation, rheological properties, emulsion formulation by HLB method", "PP"],
["IV", "10 hrs", "Micromeretics: Particle size & distribution, mean particle size, number & weight distribution, particle number; methods for determining particle size by sieving/sedimentation/counting/separation; particle shape, specific surface, surface area methods (permeability, adsorption); derived properties: porosity, packing arrangement, densities, bulkiness & flow properties (Carr's index, Hausner ratio, angle of repose)", "PP"],
["V", "10 hrs", "Drug stability: Reaction kinetics — zero, pseudo-zero, first & second order; units of basic rate constants; determination of reaction order; Physical & chemical factors influencing degradation (temperature, solvent, ionic strength, dielectric constant, specific & general acid-base catalysis); Simple numerical problems; Stabilization against hydrolysis & oxidation; Accelerated stability testing; expiration dating of pharmaceutical dosage forms; Photolytic degradation & prevention", "PP"],
]).forEach(x => children.push(x));
// Medicinal Chem
checkTable("BP402T — Medicinal Chemistry I", COLORS.MC.hdr, [
["I", "10 hrs", "Introduction: history & development; physicochemical properties in relation to biological action (ionization, solubility, partition coefficient, H-bonding, protein binding, chelation, bioisosterism, optical & geometrical isomerism); Drug metabolism: principles — Phase I & II; factors affecting metabolism including stereochemical aspects", "MC"],
["II", "10 hrs", "ANS drugs — Adrenergic: biosynthesis & catabolism of catecholamines; alpha & beta adrenergic receptors & distribution; SAR of sympathomimetics; Direct acting: Nor-epinephrine, Epinephrine, Phenylephrine*, Dopamine, Methyldopa, Clonidine, Dobutamine, Isoproterenol, Terbutaline, Salbutamol*, Naphazoline; Indirect acting: Hydroxyamphetamine, Pseudoephedrine; Mixed: Ephedrine; Antagonists: Tolazoline*, Phentolamine, Prazosin; Beta blockers SAR: Propranolol*, Atenolol, Metoprolol, Carvedilol", "MC"],
["III", "10 hrs", "Cholinergic neurotransmitters: biosynthesis & catabolism of ACh; muscarinic & nicotinic receptors; SAR of parasympathomimetics; Direct acting: Acetylcholine, Carbachol*, Bethanechol, Pilocarpine; Indirect (ChE inhibitors): Physostigmine, Neostigmine*, Pyridostigmine, Edrophonium, Tacrine, Malathion; Cholinesterase reactivator: Pralidoxime; Cholinergic blockers: Atropine, Hyoscyamine, Scopolamine, Homatropine, Ipratropium*; Synthetic blockers: Tropicamide, Cyclopentolate, Dicyclomine*, Glycopyrrolate, Propantheline, Benztropine, Orphenadrine, Biperidine, Procyclidine*", "MC"],
["IV", "8 hrs", "CNS drugs: A. Sedatives & Hypnotics — SAR benzodiazepines; Chlordiazepoxide, Diazepam*, Oxazepam, Lorazepam, Alprazolam, Zolpidem; SAR barbiturates; Barbital*, Phenobarbital*, Mephobarbital, Amobarbital, Pentobarbital, Secobarbital; Miscellaneous: Glutethimide, Meprobomate, Paraldehyde; B. Antipsychotics — SAR phenothiazines: Chlorpromazine*, Triflupromazine, Thioridazine, Trifluoperazine; Ring analogues: Chlorprothixene, Loxapine, Clozapine; Fluorobutyrophenones: Haloperidol, Droperidol, Risperidone; C. Anticonvulsants — SAR; Phenobarbitone, Phenytoin*, Carbamazepine*, Ethosuximide*, Valproic acid, Clonazepam, Gabapentin", "MC"],
["V", "7 hrs", "CNS drugs (continued): General anesthetics — Halothane*, Methoxyflurane, Enflurane, Sevoflurane; Ultra-short barbiturates: Methohexital*, Thiopental; Dissociative: Ketamine*; Narcotic analgesics — SAR morphine analogues: Morphine sulphate, Codeine, Meperidine, Anileridine, Diphenoxylate, Loperamide, Fentanyl*, Methadone*, Propoxyphene, Pentazocine, Levorphanol; Antagonists: Nalorphine, Levallorphan, Naloxone; Anti-inflammatory — SAR: Aspirin, Sodium salicylate, Mefenamic acid*, Indomethacin, Sulindac, Ibuprofen*, Naproxen, Diclofenac, Piroxicam, Ketorolac, Acetaminophen, Phenylbutazone", "MC"],
]).forEach(x => children.push(x));
// Organic Chem
checkTable("BP401T — Pharmaceutical Organic Chemistry III", COLORS.OC.hdr, [
["I", "10 hrs", "Stereoisomerism: Optical isomerism — optical activity, enantiomers, diastereomers, meso compounds; Elements of symmetry, chiral & achiral molecules; DL system, sequence rules, RS system of nomenclature; Reactions of chiral molecules; Racemic modification & resolution of racemic mixtures; Asymmetric synthesis: partial & absolute", "OC"],
["II", "10 hrs", "Geometrical isomerism: nomenclature (cis-trans, E-Z, syn-anti); methods of determination of configuration; Conformational isomerism in ethane, n-butane & cyclohexane; Stereoisomerism in biphenyl compounds (atropisomerism) & conditions for optical activity; Stereospecific & stereoselective reactions", "OC"],
["III", "10 hrs", "Heterocyclic compounds: Nomenclature & classification; Synthesis, reactions & medicinal uses of Pyrrole, Furan, Thiophene; Relative aromaticity & reactivity of Pyrrole, Furan & Thiophene", "OC"],
["IV", "8 hrs", "Synthesis, reactions & medicinal uses of: Pyrazole, Imidazole, Oxazole, Thiazole; Pyridine, Quinoline (Skraup synthesis), Isoquinoline, Acridine, Indole (Fischer synthesis); Basicity of pyridine; Pyrimidine, Purine, azepines & their derivatives", "OC"],
["V", "7 hrs", "Reactions of synthetic importance: Metal hydride reductions (NaBH4, LiAlH4); Clemmensen reduction; Birch reduction; Wolff-Kishner reduction; Oppenauer oxidation; Dakin reaction; Beckmann rearrangement; Schmidt rearrangement; Claisen-Schmidt condensation", "OC"],
]).forEach(x => children.push(x));
// ═══════════════════════════════════════════════════════════
// PAGE 4 – 10-DAY TIMETABLE TABLE
// ═══════════════════════════════════════════════════════════
children.push(pgBreak());
children.push(h1("10-DAY DAY-BY-DAY TIMETABLE (Back → Front Order)"));
children.push(infoBox("Session Guide:", "Morning (5:30–7:30 AM) = NEW content | Evening A (6:30–7:30 PM) = Revise morning | Evening B (7:30–8:30 PM) = New continuation | * = draw structure/write synthesis", "EBF3FB"));
children.push(spacer());
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
// HEADER ROW
new TableRow({ tableHeader: true, children: [
new TableCell({ shading: { fill: "1F3864", type: ShadingType.CLEAR }, margins: { top: 100, bottom: 100, left: 80, right: 80 }, 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: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Morning 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: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Evening A 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: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Evening B 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: 80, right: 80 }, children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Day Target", bold: true, size: 22, color: "FFFFFF" })] })] }),
]}),
// DAY 1
dayRow("DAY 1", "Pharmacognosy", [
"PHARMACOGNOSY I — Unit I",
"Introduction to Pharmacognosy",
"• Definition, history, scope & development",
"• Sources of drugs: plants, animals, marine, tissue culture",
"• Organized vs unorganized drugs",
"• Classification of crude drugs: all 6 systems",
" (alphabetical, morphological, taxonomical,",
" chemical, pharmacological, chemo/serotaxonomical)",
],[
"PHARMACOGNOSY I — Unit I (continued)",
"Quality Control",
"• Adulteration: types & detection",
"• Evaluation: organoleptic, microscopic,",
" physical, chemical, biological methods",
"• Lycopodium spore method — steps & formula",
"• Leaf constants: palisade ratio, stomatal index,",
" vein-islet no., vein-termination no.",
],[
"PHARMACOGNOSY I — Unit II",
"Cultivation, Collection, Conservation",
"• Cultivation & collection — factors influencing",
"• Plant hormones (auxins, gibberellins,",
" cytokinins) & applications",
"• Polyploidy, mutation & hybridization",
"• Conservation of medicinal plants",
],[
"PCG Units I–II complete ✓",
"Leaf constants memorized",
"All 6 drug classification",
" types with examples noted",
], "PCG"),
// DAY 2
dayRow("DAY 2", "Pharmacognosy", [
"PHARMACOGNOSY I — Unit III",
"Plant Tissue Culture",
"• Historical development",
"• Types of cultures: callus, suspension,",
" organ, protoplast, meristem",
"• Nutritional requirements (MS medium)",
"• Growth & maintenance of cultures",
"• Applications in pharmacognosy",
"• Edible vaccines — concept",
],[
"PHARMACOGNOSY I — Unit IV",
"Systems of Medicine + Secondary Metabolites",
"• Pharmacognosy in Ayurveda, Unani,",
" Siddha, Homeopathy, Chinese medicine",
"• Secondary metabolites: definition & classification",
"• Alkaloids — definition, classification, tests",
"• Glycosides — definition, classification, tests",
"• Flavonoids & Tannins — tests",
],[
"PHARMACOGNOSY I — Unit V",
"Primary Metabolites + Marine Drugs",
"• Plant products: fibres (cotton, jute, hemp)",
" hallucinogens, teratogens, allergens",
"• Carbohydrates: Acacia, Agar, Tragacanth, Honey",
"• Proteins & Enzymes: Gelatin, papain, bromelain,",
" streptokinase, urokinase, pepsin",
"• Lipids: Castor oil, Chaulmoogra oil,",
" Wool Fat, Bees Wax",
"• Marine drugs — overview",
],[
"PCG ALL 5 Units done ✓",
"Secondary metabolites:",
" tests & classification noted",
"Primary metabolites table",
" made (source/use/nature)",
], "PCG"),
// DAY 3
dayRow("DAY 3", "Pharmacology", [
"PHARMACOLOGY I — Unit I",
"General Pharmacology (PK)",
"• Definition, historical landmarks, scope",
"• Nature & source of drugs, essential drugs",
"• Routes of administration + advantages/disadvantages",
"• Pharmacokinetics — membrane transport",
"• Absorption: factors, first-pass effect",
"• Distribution: protein binding, volume of distribution",
"• Metabolism: Phase I (oxidation/reduction/",
" hydrolysis), Phase II (conjugation)",
"• Excretion: renal, biliary, enterohepatic circulation",
"• Enzyme induction & inhibition",
"• Kinetics of elimination: zero & first order",
"• Agonists, antagonists, spare receptors,",
" tolerance, dependence, tachyphylaxis, allergy",
],[
"PHARMACOLOGY I — Unit II (Part 1)",
"Pharmacodynamics",
"• Principles & mechanisms of drug action",
"• Receptor theories: occupancy, rate theory",
"• Classification of receptors",
"• Regulation of receptors (up/down regulation)",
"• Signal transduction:",
" – G-protein coupled receptors (Gs, Gi, Gq)",
" – Ion channel receptors (nicotinic ACh)",
" – Enzyme-linked receptors (insulin)",
" – JAK-STAT receptors",
" – Transcription factor receptors (steroids)",
],[
"PHARMACOLOGY I — Unit II (Part 2)",
"PD continued + Drug discovery",
"• Dose-response relationship",
" (log dose vs response curve — draw it!)",
"• Therapeutic index = LD50/ED50",
"• Combined drug effects (additive, synergism,",
" antagonism, potentiation)",
"• Factors modifying drug action",
"• Adverse drug reactions (types A–D)",
"• Drug interactions (PK + PD)",
"• Drug discovery: phases (discovery, preclinical,",
" clinical trial phases I–IV, pharmacovigilance)",
],[
"Pharm Units I–II done ✓",
"ADME flowchart drawn",
"Dose-response curve drawn",
"Receptor classification table",
" written from memory",
], "PHRM"),
// DAY 4
dayRow("DAY 4", "Pharmacology", [
"PHARMACOLOGY I — Unit III",
"PNS Pharmacology",
"• Organization & function of ANS",
" (sympathetic vs parasympathetic — table)",
"• Neurohumoral transmission",
"• Co-transmission & neurotransmitters",
"• Parasympathomimetics: mechanisms & drugs",
"• Parasympatholytics (anticholinergics): drugs",
"• Sympathomimetics: alpha & beta agonists",
"• Sympatholytics: alpha & beta blockers",
"• NMJ blocking agents:",
" depolarizing (Suxamethonium) &",
" non-depolarizing (d-Tubocurarine, Pancuronium)",
"• Skeletal muscle relaxants (central): Baclofen",
"• Local anaesthetic agents: mechanism & drugs",
"• Drugs in myasthenia gravis & glaucoma",
],[
"PHARMACOLOGY I — Unit IV",
"CNS Pharmacology (Part 1)",
"• Neurohumoral transmission in CNS",
" – GABA: receptors, role in epilepsy & anxiety",
" – Glutamate: NMDA, AMPA receptors",
" – Glycine: inhibitory",
" – Serotonin (5-HT): receptors, role in depression",
" – Dopamine: pathways (mesolimbic, nigrostriatal,",
" tuberoinfundibular, mesocortical)",
"• General anaesthetics: inhalation & IV",
"• Pre-anaesthetics: uses & drugs",
"• Sedatives & hypnotics: mechanisms",
"• Centrally acting muscle relaxants",
"• Anti-epileptics: classification & mechanism",
"• Alcohols & disulfiram mechanism",
],[
"PHARMACOLOGY I — Unit V",
"CNS Pharmacology (Part 2)",
"• Antipsychotics: classification &",
" mechanism (D2 blockade)",
"• Antidepressants: TCA, SSRI, SNRI, MAOI",
"• Anti-anxiety: BZD, buspirone",
"• Anti-manics: lithium mechanism",
"• Hallucinogens: LSD, mescaline",
"• Parkinson's drugs: levodopa, carbidopa,",
" dopamine agonists, MAO-B inhibitors",
"• Alzheimer's drugs: cholinesterase inhibitors",
"• CNS stimulants: amphetamine, caffeine",
"• Opioid analgesics: mechanism, morphine",
"• Naloxone: mechanism of reversal",
"• Drug dependence: types & management",
],[
"Pharm ALL 5 Units done ✓",
"ANS comparison table made",
"Antipsychotic classification",
" written from memory",
"Anti-epileptic mechanism",
" table complete",
], "PHRM"),
// DAY 5
dayRow("DAY 5", "Phys Pharma II", [
"PHYSICAL PHARMA II — Unit I",
"Colloidal Dispersions",
"• Classification of dispersed systems:",
" molecular, colloidal, coarse",
"• Size & shape of colloidal particles (1–1000 nm)",
"• Classification of colloids:",
" lyophilic vs lyophobic, comparison table",
"• Optical properties: Tyndall effect, ultramicroscope",
"• Kinetic properties: Brownian motion,",
" diffusion, sedimentation",
"• Electrical properties: electrophoresis,",
" electroosmosis, zeta potential",
"• Effect of electrolytes: Hardy-Schulze rule,",
" Schulze number",
"• Coacervation, peptization, protective action",
],[
"PHYSICAL PHARMA II — Unit II (Part 1)",
"Rheology",
"• Newtonian systems: law of flow (Newton's law)",
" shear stress, shear rate, viscosity coefficient",
"• Kinematic viscosity",
"• Effect of temperature on viscosity",
"• Non-Newtonian systems:",
" – Plastic (Bingham): yield value concept",
" – Pseudoplastic (shear-thinning): examples",
" – Dilatant (shear-thickening): examples",
"• Thixotropy: definition, recovery, applications",
"• Antithixotropy (rheopexy)",
"• DRAW all 4 flow curves (plastic, pseudoplastic,",
" dilatant, Newtonian) — must do by hand",
],[
"PHYSICAL PHARMA II — Unit II (Part 2)",
"Viscometry + Solid Deformation",
"• Determination of viscosity:",
" – Capillary (Ostwald) viscometer",
" – Falling sphere (Hoppler) viscometer",
" – Rotational (Brookfield) viscometer:",
" Cup & bob, cone & plate",
" – Stormer viscometer",
"• Deformation of solids:",
" – Plastic vs elastic deformation",
" – Heckel equation: ln(1/(1-D)) = KP + A",
" – Stress, strain, elastic modulus (Young's)",
" – Apply to tablet compression",
],[
"PP Units I–II done ✓",
"All 4 rheology curves drawn",
"Heckel equation written",
"Zeta potential concept clear",
], "PP"),
// DAY 6
dayRow("DAY 6", "Phys Pharma II", [
"PHYSICAL PHARMA II — Unit III",
"Coarse Dispersions",
"Suspensions:",
"• Interfacial properties of suspended particles",
"• Wettability, contact angle",
"• Settling in suspensions: Stokes' law",
" v = d²(ρ₁-ρ₂)g / 18η — MEMORIZE",
"• Flocculated vs deflocculated — comparison table",
" (sedimentation volume, redispersibility)",
"• Formulation of flocculated suspensions",
"Emulsions:",
"• Theories of emulsification (surface tension,",
" oriented wedge, interfacial film)",
"• Microemulsion & multiple emulsions (W/O/W)",
"• Stability of emulsions: creaming, cracking",
"• Preservation of emulsions",
"• Rheological properties of emulsions",
"• HLB method for emulsion formulation",
" HLB = 20(1 - S/A); Blend HLB calculation",
],[
"PHYSICAL PHARMA II — Unit IV",
"Micromeretics",
"• Particle size & distribution",
"• Mean particle size: arithmetic, geometric,",
" surface mean, volume mean — formulas",
"• Number & weight distribution",
"• Methods for particle size determination:",
" – Sieve analysis (British Standard sieves)",
" – Sedimentation (Andreasen pipette)",
" – Coulter counter (electrical sensing zone)",
" – Laser diffraction — principle",
" – Microscopy (optical & electron)",
"• Particle shape: sphericity, shape factor",
"• Specific surface area: permeability method,",
" gas adsorption (BET equation)",
"• Derived properties: porosity (ε), bulk density,",
" tapped density, Carr's index (CI),",
" Hausner ratio (HR), angle of repose",
" CI = [(tapped-bulk)/tapped] × 100",
" HR = tapped density / bulk density",
],[
"PHYSICAL PHARMA II — Unit V",
"Drug Stability + NUMERICALS",
"• Reaction orders: zero, pseudo-zero, 1st, 2nd",
"• Rate constants & half-life formulas",
"• Determination of reaction order (graphical)",
"• Factors: temperature (Arrhenius), solvent,",
" ionic strength, dielectric constant,",
" acid-base catalysis",
"• NUMERICAL PROBLEMS (do at least 3):",
" – Calculate t½ from first-order rate constant",
" – Calculate shelf-life (t90%) from k",
" – Use Arrhenius to find k at new temperature",
"• Stabilization: anti-oxidants, chelating agents,",
" pH adjustment for hydrolysis/oxidation",
"• Accelerated stability testing (ICH Q1A)",
"• Expiration dating",
"• Photolytic degradation & amber glass use",
],[
"PP ALL 5 Units done ✓",
"Stokes' law & HLB formulas",
" written from memory",
"Carr's index & Hausner ratio",
" values memorized",
"3+ stability numericals done",
], "PP"),
// DAY 7
dayRow("DAY 7", "Medicinal Chem I", [
"MEDICINAL CHEM I — Unit I",
"Introduction + Physicochemical Properties",
"• History & development of medicinal chemistry",
"• Ionization: Henderson-Hasselbalch, pKa,",
" pH-partition theory",
"• Solubility: aqueous, log P, salt formation",
"• Partition coefficient (log P): lipophilicity,",
" impact on absorption",
"• Hydrogen bonding in drug-receptor interaction",
"• Protein binding: albumin, alpha-1-glycoprotein",
"• Chelation: EDTA, dimercaprol",
"• Bioisosterism: classical & non-classical",
"• Optical & geometrical isomerism in drugs",
"",
"MEDICINAL CHEM I — Unit I (continued)",
"Drug Metabolism",
"• Phase I: oxidation (CYP450), reduction,",
" hydrolysis — examples",
"• Phase II: conjugation (glucuronide, sulfate,",
" acetylation, methylation) — examples",
"• Factors affecting metabolism:",
" stereospecificity, genetic polymorphism",
"• Prodrug concept",
],[
"MEDICINAL CHEM I — Unit II",
"Adrenergic Drugs",
"• Biosynthesis of catecholamines:",
" Phe → Tyr → DOPA → Dopamine → NE → Ep",
"• Catabolism: MAO & COMT pathways",
"• Adrenergic receptors: α1, α2, β1, β2, β3",
" distribution & effects",
"• SAR of sympathomimetics:",
" – Phenylethylamine nucleus",
" – Ring substituents: 3,4-OH = max activity",
" – alpha-methyl: oral activity, CNS effects",
" – N-substituents: selectivity",
"• Direct acting: NE*, Epinephrine*, Phenylephrine*,",
" Dopamine, Methyldopa, Clonidine,",
" Salbutamol*, Dobutamine",
"• Indirect: Hydroxyamphetamine, Pseudoephedrine",
"• Mixed: Ephedrine, Metaraminol",
"• Alpha blockers: Tolazoline*, Phentolamine,",
" Phenoxybenzamine, Prazosin",
"• Beta blockers SAR: Propranolol*, Atenolol,",
" Metoprolol, Bisoprolol, Carvedilol",
],[
"MEDICINAL CHEM I — Unit III",
"Cholinergic Drugs",
"• ACh biosynthesis: ChAT enzyme",
"• ACh catabolism: AChE & BuChE",
"• Receptors: muscarinic (M1–M5) & nicotinic",
" — distribution & functional effects",
"• SAR of parasympathomimetics",
"• Direct acting: ACh, Carbachol*, Bethanechol,",
" Methacholine, Pilocarpine",
"• Indirect (ChE inhibitors):",
" Reversible: Physostigmine, Neostigmine*,",
" Pyridostigmine, Edrophonium, Tacrine",
" Irreversible: Isoflurophate, Echothiophate,",
" Parathione, Malathion",
"• Cholinesterase reactivator: Pralidoxime",
"• Solanaceous alkaloids: Atropine sulphate,",
" Hyoscyamine, Scopolamine, Homatropine,",
" Ipratropium*",
"• Synthetic anticholinergics: Tropicamide,",
" Dicyclomine*, Glycopyrrolate, Propantheline",
],[
"MC Units I–III done ✓",
"Catecholamine biosynthesis",
" pathway drawn from memory",
"SAR tables for sympatho-",
" mimetics & cholinergics made",
"5 drug structures drawn",
], "MC"),
// DAY 8
dayRow("DAY 8", "Medicinal Chem I", [
"MEDICINAL CHEM I — Unit IV",
"CNS Drugs Part 1",
"A. Sedatives & Hypnotics:",
"• SAR of benzodiazepines:",
" – Ring A: benzene (electron withdrawing = ↑activity)",
" – Ring C: N1-substituent, C7-halogen",
" – Ring B: 7-membered, C1'-aryl",
"• Drugs: Chlordiazepoxide, Diazepam*,",
" Oxazepam, Chlorazepate, Lorazepam,",
" Alprazolam (triazolo fused), Zolpidem",
"• SAR of barbiturates:",
" – C5 substituents: branching ↑potency",
" – N1/N3 alkyl: ↑lipophilicity",
" – C2=S: thio-barbiturates (ultra-short acting)",
"• Drugs: Barbital*, Phenobarbital*,",
" Mephobarbital, Amobarbital, Pentobarbital,",
" Secobarbital",
"• Miscellaneous: Glutethimide, Meprobomate,",
" Paraldehyde, Ethchlorvynol",
"B. Antipsychotics:",
"• SAR of phenothiazines:",
" – C2 substituent: trifluoromethyl ↑potency",
" – N10 side chain: 3 carbons essential",
" – Dimethylaminopropyl = aminoalkyl chain",
"• Drugs: Promazine, Chlorpromazine*,",
" Triflupromazine, Thioridazine,",
" Piperacetazine, Prochlorperazine,",
" Trifluoperazine",
"• Ring analogues: Chlorprothixene, Thiothixene,",
" Loxapine, Clozapine",
"• Fluorobutyrophenones: Haloperidol,",
" Droperidol, Risperidone",
"• Beta amino ketones: Molindone",
"• Benzamides: Sulpieride",
],[
"MEDICINAL CHEM I — Unit IV (continued)",
"Anticonvulsants",
"• SAR of anticonvulsants:",
" – C5 lipophilic groups needed",
" – Phenyl ring activity",
"• Mechanism: Na⁺ channel blockade (phenytoin),",
" GABA enhancement (barbiturates),",
" T-type Ca²⁺ blockade (ethosuximide)",
"• Barbiturates: Phenobarbitone, Methabarbital",
"• Hydantoins: Phenytoin*, Mephenytoin, Ethotoin",
"• Oxazolidinediones: Trimethadione,",
" Paramethadione",
"• Succinimides: Phensuximide,",
" Methsuximide, Ethosuximide*",
"• Urea & monoacylureas: Phenacemide,",
" Carbamazepine*",
"• Benzodiazepines: Clonazepam",
"• Miscellaneous: Primidone, Valproic acid,",
" Gabapentin, Felbamate",
],[
"MEDICINAL CHEM I — Unit V",
"Analgesics + Anti-inflammatory",
"• General anaesthetics: Halothane*,",
" Methoxyflurane, Enflurane, Sevoflurane,",
" Isoflurane; Ultra-short: Methohexital*,",
" Thiopental; Dissociative: Ketamine*",
"• SAR of morphine analogues:",
" – Phenanthrene nucleus",
" – C3-OH: analgesic activity",
" – C6-OH: respiratory depression",
" – N-methyl: essential for activity",
"• Drugs: Morphine sulphate, Codeine,",
" Meperidine, Anileridine, Diphenoxylate,",
" Loperamide, Fentanyl*, Methadone*,",
" Propoxyphene, Pentazocine, Levorphanol",
"• Antagonists: Nalorphine, Naloxone",
"• Anti-inflammatory — SAR:",
" – Salicylates: Aspirin, Na salicylate",
" – Anthranilic acids: Mefenamic acid*",
" – Indole acetic acids: Indomethacin,",
" Sulindac, Ketorolac",
" – Propionic acids: Ibuprofen*, Naproxen",
" – Oxicams: Piroxicam",
" – Pyrazolones: Phenylbutazone, Antipyrine",
" – Para-aminophenols: Acetaminophen",
" – COX-2 selective: Diclofenac",
],[
"MC ALL 5 Units done ✓",
"BZD & barbiturate SAR",
" tables complete",
"Phenothiazine SAR",
" drawn from memory",
"NSAIDs classification table",
" written",
"8+ drug structures drawn",
], "MC"),
// DAY 9
dayRow("DAY 9", "Organic Chem III", [
"ORGANIC CHEM III — Units I & II",
"Stereoisomerism",
"• Optical isomerism: optical activity,",
" enantiomers, diastereomers, meso compounds",
"• Elements of symmetry: plane, center, axis",
"• Chiral vs achiral molecules",
"• DL system: based on glyceraldehyde reference",
"• RS system (CIP rules): step-by-step",
" 1. Assign priorities by atomic number",
" 2. Orient lowest priority group away",
" 3. Read 1→2→3: clockwise=R, anti-CW=S",
"• Reactions of chiral molecules",
"• Racemic modification: 3 methods",
" (thermal, chemical, photochemical)",
"• Resolution of racemates: 4 methods",
" (mechanical, chemical, biochemical, chrom.)",
"• Asymmetric synthesis: partial vs absolute",
"",
"Geometrical Isomerism:",
"• cis-trans, E-Z (CIP), syn-anti systems",
"• Methods to determine configuration",
"• Conformational isomerism in ethane,",
" n-butane (anti/gauche/eclipsed),",
" cyclohexane (chair/boat/twist-boat)",
"• Atropisomerism in biphenyls:",
" conditions for optical activity",
"• Stereospecific vs stereoselective reactions",
],[
"ORGANIC CHEM III — Units III & IV",
"Heterocyclic Chemistry",
"Unit III — 5-membered rings:",
"• Nomenclature & classification of heterocyclics",
"• Furan: Paal-Knorr synthesis,",
" EAS reactions at C2, Diels-Alder",
"• Thiophene: Paal-Knorr (P2S5), EAS at C2",
"• Pyrrole: Paal-Knorr + amine,",
" acidic N-H, EAS at C2",
"• Aromaticity comparison:",
" Pyrrole > Furan > Thiophene > Benzene",
"",
"Unit IV — Other rings:",
"• Pyrazole: 1,3-dicarbonyl + hydrazine",
"• Imidazole: N1 (pyrrole-type) + N3 (basic)",
" pKa=7; in histidine, histamine",
"• Oxazole & Thiazole:",
" Hantzsch thiazole synthesis",
"• Pyridine: Hantzsch synthesis; basicity",
"• Quinoline: SKRAUP SYNTHESIS (steps!)",
" Glycerol → acrolein → Michael add. →",
" cyclization → oxidation → quinoline",
"• Doebner-Miller modification",
"• Isoquinoline: Bischler-Napieralski",
"• Indole: FISCHER INDOLE SYNTHESIS (steps!)",
" Arylhydrazone + acid → [3,3]-sigmatropic",
"• Pyrimidine, Purine, azepines",
],[
"ORGANIC CHEM III — Unit V",
"Reactions of Synthetic Importance",
"• Metal hydride reductions:",
" NaBH4: reduces C=O only (mild)",
" LiAlH4: reduces C=O, COOH, ester, amide,",
" epoxide (strong, no water!)",
"• Clemmensen reduction:",
" C=O → CH2 using Zn(Hg)/HCl",
" Acidic conditions; for acid-stable substrates",
"• Wolff-Kishner reduction:",
" C=O → CH2 using N2H4 + KOH/ethylene glycol",
" Basic conditions; for base-stable substrates",
"• Birch reduction:",
" ArH → 1,4-cyclohexadiene",
" Na/Li in liquid NH3 + alcohol",
" EDG: reduces unsubstituted positions",
" EWG: reduces substituted positions",
"• Oppenauer oxidation:",
" sec-OH → ketone using Al(OiPr)3 + acetone",
" Reverse of Meerwein-Ponndorf-Verley",
"• Dakin reaction:",
" ArCHO + H2O2 (alkaline) → ArOH + HCOOH",
" Phenolic aldehydes only",
"• Beckmann rearrangement:",
" Ketoxime + H2SO4/PCl5 → amide/lactam",
" Anti group migrates (concerted)",
"• Schmidt rearrangement:",
" Ketone + HN3/H2SO4 → amide",
" (Similar outcome to Beckmann but from ketone)",
"• Claisen-Schmidt condensation:",
" ArCHO + ketone + NaOH → chalcone",
],[
"OC ALL 5 Units done ✓",
"RS nomenclature practiced",
" on 5 compounds",
"Skraup synthesis written",
" from memory",
"Fischer Indole written",
" from memory",
"All 9 unit-V reactions listed",
" with reagents",
], "OC"),
// DAY 10
dayRow("DAY 10", "Full Revision", [
"FULL REVISION — ALL SUBJECTS",
"Morning Focus: Hardest topics",
"",
"Organic Chemistry (30 min):",
"• Write RS assignment for 3 compounds",
"• Write Skraup synthesis & Fischer indole",
" step-by-step without looking",
"• List all 9 Unit-V reactions with reagents",
"",
"Medicinal Chemistry (30 min):",
"• Draw structures of 10 starred (*) drugs",
"• Write SAR of benzodiazepines (5 key points)",
"• Write SAR of phenothiazines (5 key points)",
"• Write NSAID classification from memory",
"",
"Then: Attempt 5 short questions from",
" each subject (pick from PYQ list)",
],[
"FULL REVISION — Evening A",
"Focus: Physical Pharma & Pharmacology",
"",
"Physical Pharma (30 min):",
"• Write all formulas on 1 page from memory:",
" Stokes' law, Carr's index, Hausner ratio,",
" HLB formula, t½ = 0.693/k,",
" Arrhenius equation, Heckel equation",
"• Solve 1 first-order kinetics numerical",
"• Draw all 4 rheology flow curves",
"",
"Pharmacology (30 min):",
"• Write ADME points from memory",
"• Write receptor classification table",
"• Write antipsychotic drug classification",
"• Write 5 anti-epileptic drugs with mechanism",
"• Write dopamine pathway table",
],[
"FULL REVISION — Evening B",
"Focus: Pharmacognosy + PYQ Paper",
"",
"Pharmacognosy (20 min):",
"• Write all 6 classification types with examples",
"• Write leaf constant values for 2 key drugs",
"• Write secondary metabolites tests (table)",
"• Write primary metabolites (5 carbohydrates,",
" 3 lipids, 3 enzymes)",
"",
"Previous Year Questions (40 min):",
"• Attempt ANY 5 long questions (16-mark)",
" from previous AU papers — time yourself",
" 10 min per answer",
"• Check structure + content + headings",
"",
"STOP studying by 8:30 PM.",
"Sleep early. Eat well. Trust your work.",
],[
"ALL 25 UNITS REVISED ✓",
"All formulas confirmed ✓",
"All SAR tables written ✓",
"All syntheses done ✓",
"PYQ attempted ✓",
"",
"YOU ARE READY.",
"Best of Luck Tomorrow!",
], "REV"),
]}));
// ═══════════════════════════════════════════════════════════
// PAGE 5 – REVISION TIPS
// ═══════════════════════════════════════════════════════════
children.push(pgBreak());
children.push(h1("SMART REVISION TIPS FOR YOUR SITUATION"));
children.push(spacer());
children.push(h2("1. The Back-to-Front Advantage — Why This Works"));
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow(["Principle", "How It Helps You"]),
new TableRow({ children: [cell("Recency effect", { fill: "E3F2FD", bold: true }), cell("Organic Chemistry — the hardest and most mark-heavy subject — is studied closest to the exam (Day 9). Your brain retains the most recent content best during an exam.", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("Warm-up with easier content", { fill: "FFFFFF", bold: true }), cell("Pharmacognosy (Day 1–2) is factual and memory-based. Starting with it builds confidence and momentum before you tackle harder chemistry.", { fill: "FFFFFF" })] }),
new TableRow({ children: [cell("Progressive difficulty", { fill: "E3F2FD", bold: true }), cell("Each subject is slightly harder than the previous. By Day 9, your study habits and note-writing routines are fully formed — ideal for the most demanding content.", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("Less forgetting of hard topics", { fill: "FFFFFF", bold: true }), cell("If you studied Organic Chemistry on Day 1, you would likely forget 60–70% of mechanisms by Day 10. Done on Day 9, retention on exam day is much higher.", { fill: "FFFFFF" })] }),
]}));
children.push(spacer());
children.push(h2("2. How to Study Each Subject in Reverse Order"));
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow(["Subject", "Key Technique for This Subject"]),
new TableRow({ children: [cell("Pharmacognosy (Days 1–2)", { fill: COLORS.PCG.light, bold: true }), cell("Make a MASTER TABLE for each unit: Drug → Source → Part used → Active constituent → Uses. Use mnemonics for 6 classification types. Learn leaf constant values (palisade ratio, stomatal index) for at least 3 key drugs — Senna, Digitalis, Nux vomica. These are direct AU marks.", { fill: COLORS.PCG.light })] }),
new TableRow({ children: [cell("Pharmacology (Days 3–4)", { fill: COLORS.PHRM.light, bold: true }), cell("Draw ADME flowchart, dose-response curve, and ANS comparison table by hand every day. For each drug class: write Class → Mechanism → Key drug → ADR → Contraindication. The receptor pathway table (G-protein types) is very frequently asked at AU.", { fill: COLORS.PHRM.light })] }),
new TableRow({ children: [cell("Physical Pharma II (Days 5–6)", { fill: COLORS.PP.light, bold: true }), cell("Write all formulas on a single A4 sheet. Solve a minimum of 3 numerical problems (stability kinetics, HLB calculation, Stokes' settling velocity). Draw all 4 rheology curves by hand — AU asks for labeled diagrams worth 4–6 marks.", { fill: COLORS.PP.light })] }),
new TableRow({ children: [cell("Medicinal Chemistry (Days 7–8)", { fill: COLORS.MC.light, bold: true }), cell("Write a SAR table for each drug class. Draw the starred (*) drug structures from memory daily — these are the minimum structures that will appear in AU exams. Understand the PATTERN of SAR rather than memorizing every rule separately.", { fill: COLORS.MC.light })] }),
new TableRow({ children: [cell("Organic Chemistry (Day 9)", { fill: COLORS.OC.light, bold: true }), cell("Write each named reaction and synthesis with arrows — never read without writing. Skraup and Fischer indole syntheses are extremely high-yield. For Unit V reactions, make a table: Reaction | Reagent | Conditions | Product | Key feature. One reaction per 15 minutes.", { fill: COLORS.OC.light })] }),
]}));
children.push(spacer());
children.push(h2("3. Subject-Wise High-Yield Topics (Most Marks for Least Time)"));
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow(["Subject", "Must-Cover Topics (Expected AU Marks)"]),
new TableRow({ children: [cell("Pharmacognosy", { fill: COLORS.PCG.light, bold: true }), cell("Classification of crude drugs (all 6 types) • Secondary metabolite tests (alkaloids, glycosides, tannins, flavonoids) • Lycopodium spore method with formula • Leaf constants (palisade ratio for Senna = 7–8) → Expected: ~40 marks", { fill: COLORS.PCG.light })] }),
new TableRow({ children: [cell("Pharmacology", { fill: COLORS.PHRM.light, bold: true }), cell("ADME — complete detail • Receptor classification + signal transduction diagram • Dose-response relationship + therapeutic index • ANS comparison table (sympathetic vs parasympathetic) • Drug dependence: types → Expected: ~45 marks", { fill: COLORS.PHRM.light })] }),
new TableRow({ children: [cell("Physical Pharma II", { fill: COLORS.PP.light, bold: true }), cell("Rheology curves — all 4 labeled • HLB calculation (numerical) • First-order kinetics + shelf-life numerical • Flocculated vs deflocculated suspension table • Carr's index, Hausner ratio (formulas + values) → Expected: ~40 marks", { fill: COLORS.PP.light })] }),
new TableRow({ children: [cell("Medicinal Chemistry", { fill: COLORS.MC.light, bold: true }), cell("SAR benzodiazepines + Diazepam* structure • SAR phenothiazines + Chlorpromazine* structure • SAR beta-blockers + Propranolol* structure • NSAID classification with examples • Drug metabolism Phase I & II pathways → Expected: ~45 marks", { fill: COLORS.MC.light })] }),
new TableRow({ children: [cell("Organic Chemistry", { fill: COLORS.OC.light, bold: true }), cell("Optical isomerism + RS system (always 16-mark) • Skraup synthesis of quinoline (full mechanism) • Fischer indole synthesis • Beckmann rearrangement mechanism • Clemmensen vs Wolff-Kishner comparison → Expected: ~40 marks", { fill: COLORS.OC.light })] }),
]}));
children.push(spacer());
children.push(h2("4. What to Do During College Hours"));
children.push(bullet("Write 10 flash cards each morning before leaving home — write the topic on front, key fact on back"));
children.push(bullet("During every 10-minute class break: review 3 flash cards from today's subject (don't do new study)"));
children.push(bullet("During lunch (30–45 min): re-read your morning notes (not the textbook) while eating"));
children.push(bullet("After last period if you have a free slot: re-write one formula or one reaction mechanism from memory"));
children.push(bullet("This adds ~1 hour of effective review daily for zero extra evening effort"));
children.push(spacer());
children.push(h2("5. AU Exam Writing Tips"));
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [
hdrRow(["Question Type", "How to Answer It"]),
new TableRow({ children: [cell("2-mark (Very short)", { fill: "E3F2FD", bold: true }), cell("3–4 sentences maximum. Format: Define → Key property → Example. Never write a paragraph.", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("5–8 mark (Medium)", { fill: "FFFFFF", bold: true }), cell("Use subheadings. Add 1 table or diagram if possible. For drug questions: Definition → Classification → Mechanism → Key drug → Uses → ADRs.", { fill: "FFFFFF" })] }),
new TableRow({ children: [cell("16-mark (Long essay)", { fill: "E3F2FD", bold: true }), cell("IDEA format: Introduction (3 lines) → Detailed content (headings, mechanisms, structures) → Example (draw & label structure/synthesis) → Applications. Use subheadings throughout.", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("Any question on SAR", { fill: "FFFFFF", bold: true }), cell("Always: draw the parent nucleus first → label important positions → state each SAR rule as a numbered point → draw at least 2 example drug structures with activity noted.", { fill: "FFFFFF" })] }),
new TableRow({ children: [cell("Mechanism questions", { fill: "E3F2FD", bold: true }), cell("Draw the reaction equation on top first (reactants + conditions + product). Then write the mechanism step by step, numbered. Use curved arrows. Label every intermediate.", { fill: "E3F2FD" })] }),
new TableRow({ children: [cell("Numerical problems", { fill: "FFFFFF", bold: true }), cell("State the formula first. Substitute values with units. Show every intermediate step. Circle/box the final answer. Even a wrong final answer gets partial marks if steps are shown.", { fill: "FFFFFF" })] }),
]}));
children.push(spacer());
children.push(h2("6. Sleep & Health Rules (Non-Negotiable)"));
children.push(bullet("Sleep by 10:00–10:30 PM every night — memory consolidation happens during slow-wave sleep"));
children.push(bullet("Wake up at 5:30 AM — set 2 alarms if needed. The morning session is your most valuable study time (cortisol is highest, focus is peak)"));
children.push(bullet("Drink 2 litres of water daily — even mild dehydration cuts concentration by 10–15%"));
children.push(bullet("Eat a proper breakfast before leaving for college — studying on an empty stomach reduces working memory capacity"));
children.push(bullet("No social media during study sessions — even a 30-second phone check breaks your focus for 20+ minutes (attention residue effect)"));
children.push(spacer());
// FINAL BANNER
children.push(new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [new TableRow({ children: [new TableCell({
shading: { fill: "1F3864", type: ShadingType.CLEAR },
margins: { top: 220, bottom: 220, left: 400, right: 400 },
children: [
new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "You have a clear plan. You have the syllabus covered. You have 10 days.", bold: true, size: 26, color: "BDD7EE" })] }),
new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "Now all you need is consistent, focused effort — one session at a time.", size: 24, italics: true, color: "FFFFFF" })] }),
new Paragraph({ alignment: AlignmentType.CENTER, spacing: { before: 120 }, children: [new TextRun({ text: "ALL THE VERY BEST FOR YOUR EXAMS!", bold: true, size: 32, color: "FFD700" })] }),
]
})]})] }));
// ═══════════════════════════════════════════════════════════
// BUILD 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: 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 } },
]
},
sections: [{
properties: { page: { margin: { top: 800, bottom: 800, left: 800, right: 800 }, size: { width: 11906, height: 16838 } } },
headers: { default: new Header({ children: [new Paragraph({
alignment: AlignmentType.RIGHT,
border: { bottom: { color: "C00000", space: 1, style: BorderStyle.SINGLE, size: 4 } },
children: [new TextRun({ text: "B.Pharm 4th Sem | 10-Day Reverse-Order Timetable | Andhra University | Back → Front", size: 18, italics: true, color: "888888" })]
})] }) },
footers: { default: new Footer({ children: [new Paragraph({
alignment: AlignmentType.CENTER,
border: { top: { color: "C00000", 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_REVERSE_Timetable_AU.docx', buf);
console.log('Done!');
}).catch(e => { console.error(e); process.exit(1); });
cd /home/daytona/workspace/bpharm-organic-chem && node generate_reverse_timetable.js 2>&1
python3 -c " import zipfile, os f = '/home/daytona/workspace/bpharm-organic-chem/BPharm_4thSem_REVERSE_Timetable_AU.docx' size = os.path.getsize(f) print(f'File: {size} bytes ({size/1024:.1f} KB)') with zipfile.ZipFile(f) as z: xml = z.read('word/document.xml') print(f'document.xml: {len(xml)} bytes — Valid DOCX') "
BPharm 4thSem REVERSE Timetable AU
Word Document · DOCX
| Day | Subject | Why this position |
|---|---|---|
| 1–2 | Pharmacognosy & Phytochemistry I | Easiest/most factual — warm up with it when you're fresh |
| 3–4 | Pharmacology I | Logical & classification-based — builds confidence |
| 5–6 | Physical Pharmaceutics II | Mixed theory + numericals — good in the middle |
| 7–8 | Medicinal Chemistry I | Heavy structures & SAR — momentum is built by now |
| 9 | Organic Chemistry III | Hardest subject — done LAST so it stays freshest in memory |
| 10 | Full Revision + PYQs | All subjects, timed practice |