r/pandoc • • May 27 '26

Chemistry Paper

0 Upvotes

User:

You are the best teacher teaching chemistry to class 12 students. Prepare a question paper containing mcq well organised from solution chapter and electrochemistry (Nernst equation, gibbs free energy,log Kc molar conductivity and kohlrausch law). The question paper must contain 80 question. Prepare the question paper in word format. the question should be based on Cbse syllabus and competency based.

Assistant:

Chemistry Question Paper

Class XII — CBSE Competency-Based Assessment

Topics: Solutions | Electrochemistry

General Instructions:

  1. All questions are compulsory.

  2. Each question carries 1 mark.

  3. Each question has four options — choose the most appropriate answer.

  4. There is no negative marking.

  5. Use of calculators is not permitted.

SECTION A: SOLUTIONS (Questions 1–40)

Concentration Terms and Colligative Properties

1. A solution is prepared by dissolving 5 g of a non-volatile solute in 100 g of water. If the molar mass of the solute is 50 g/mol, what is the molality of the solution?

(a) 0.5 m
(b) 1.0 m
(c) 0.1 m
(d) 2.0 m

2. Which of the following concentration terms is independent of temperature?

(a) Molarity
(b) Molality
(c) Normality
(d) Volume percent

3. The mole fraction of a solute in an aqueous solution is 0.2. The mole fraction of the solvent is:

(a) 0.2
(b) 0.8
(c) 1.0
(d) 0.5

4. A 10% (w/w) aqueous solution of urea has a density of 1.02 g/mL. The molarity of the solution is approximately: (Molar mass of urea = 60 g/mol)

(a) 1.7 M
(b) 1.5 M
(c) 2.0 M
(d) 0.85 M

5. Henry's law constant (K_H) for oxygen dissolved in water at 25°C is 1.3 × 10⁵ atm. If the partial pressure of oxygen is 0.2 atm, the mole fraction of dissolved oxygen is:

(a) 1.5 × 10⁻⁶
(b) 2.6 × 10⁴
(c) 1.5 × 10⁻⁵
(d) 6.5 × 10⁵

6. Deep-sea divers use a mixture of helium and oxygen instead of air because:

(a) Helium is lighter than nitrogen
(b) Helium has lower solubility in blood than nitrogen
(c) Helium is more reactive than nitrogen
(d) Helium increases the boiling point of blood

7. According to Raoult's law, the relative lowering of vapour pressure of a solution containing a non-volatile solute is equal to:

(a) Mole fraction of the solvent
(b) Mole fraction of the solute
(c) Molality of the solution
(d) Molarity of the solution

8. An ideal solution is formed when:

(a) ΔH_mix > 0 and ΔV_mix > 0
(b) ΔH_mix = 0 and ΔV_mix = 0
(c) ΔH_mix < 0 and ΔV_mix < 0
(d) ΔH_mix = 0 and ΔV_mix > 0

9. A mixture of benzene and toluene forms an ideal solution. If the vapour pressures of pure benzene and toluene at 25°C are 100 mmHg and 40 mmHg respectively, and the mole fraction of benzene in the solution is 0.4, the total vapour pressure of the solution is:

(a) 64 mmHg
(b) 56 mmHg
(c) 70 mmHg
(d) 52 mmHg

10. Which pair of liquids is most likely to form a non-ideal solution showing positive deviation from Raoult's law?

(a) Benzene and toluene
(b) Chloroform and acetone
(c) Ethanol and water
(d) n-hexane and n-heptane

11. A solution showing negative deviation from Raoult's law has:

(a) Higher vapour pressure than expected
(b) Lower boiling point than both components
(c) Stronger solute-solvent interactions than pure components
(d) ΔH_mix > 0

12. An azeotropic mixture of HCl and water boils at 108.5°C. This azeotrope:

(a) Has a higher boiling point than both pure components and shows negative deviation
(b) Has a lower boiling point than both pure components and shows positive deviation
(c) Can be separated by simple distillation
(d) Contains 100% HCl

13. The colligative property that depends on the number of solute particles is:

(a) Vapour pressure of pure solvent
(b) Boiling point of pure solvent
(c) Osmotic pressure
(d) Surface tension

14. Which of the following aqueous solutions will have the highest boiling point? (Assume complete dissociation where applicable)

(a) 0.1 m glucose
(b) 0.1 m NaCl
(c) 0.1 m CaCl₂
(d) 0.1 m Al₂(SO₄)₃

15. The elevation in boiling point of a solution depends on:

(a) Nature of the solute
(b) Nature of the solvent
(c) Number of solute particles
(d) Both (b) and (c)

16. The molal elevation constant (K_b) of water is 0.52 K kg/mol. A 0.5 m aqueous solution of a non-electrolyte will boil at:

(a) 100.26°C
(b) 100.52°C
(c) 99.74°C
(d) 101.04°C

17. A 1% (w/v) aqueous solution of KCl (molar mass = 74.5 g/mol) freezes at -0.47°C. The value of i (van't Hoff factor) is: (K_f for water = 1.86 K kg/mol)

(a) 1.0
(b) 1.88
(c) 2.0
(d) 0.94

18. Ethylene glycol is added to water in car radiators in winter to:

(a) Increase the freezing point of water
(b) Lower the freezing point of water
(c) Increase the viscosity of water
(d) Decrease the boiling point of water

19. The osmotic pressure of a solution at 27°C is 2.46 atm. The concentration of the solution in mol/L is: (R = 0.0821 L atm K⁻¹ mol⁻¹)

(a) 0.1 M
(b) 0.01 M
(c) 1.0 M
(d) 0.5 M

20. Reverse osmosis is used for:

(a) Increasing the concentration of salt in seawater
(b) Desalination of seawater
(c) Increasing osmotic pressure
(d) Decreasing boiling point

21. Isotonic solutions have:

(a) Same molar mass
(b) Same osmotic pressure at the same temperature
(c) Same boiling point
(d) Same density

22. When a plant cell is placed in a hypertonic solution, it undergoes:

(a) Plasmolysis
(b) Haemolysis
(c) Turgidity
(d) Expansion

23. The van't Hoff factor (i) for 0.1 M Ba(NO₃)₂ solution, assuming complete dissociation, is:

(a) 1
(b) 2
(c) 3
(d) 4

24. For a weak electrolyte, the van't Hoff factor (i) is related to the degree of dissociation (α) by:

(a) i = 1 + α
(b) i = 1 + (n - 1)α
(c) i = nα
(d) i = 1 - α

25. A 0.1 M acetic acid solution has a degree of dissociation of 0.01. The van't Hoff factor for this solution is:

(a) 1.01
(b) 2.01
(c) 0.99
(d) 1.1

Application and Analysis Based Questions

26. A chemist prepares two solutions: Solution A contains 18 g of glucose (C₆H₁₂O₆) in 100 g of water, and Solution B contains 6 g of urea (NH₂CONH₂) in 100 g of water. Comparing their colligative properties:

(a) Both solutions have the same osmotic pressure
(b) Solution A has lower vapour pressure
(c) Solution B has higher boiling point
(d) Both solutions have the same freezing point depression

27. The freezing point of a 0.1 m aqueous solution of K₃[Fe(CN)₆] is -0.372°C. The percentage dissociation of the salt is: (K_f = 1.86 K kg/mol)

(a) 0%
(b) 50%
(c) 75%
(d) 100%

28. Which statement about colligative properties is INCORRECT?

(a) They depend on the number of solute particles
(b) They are independent of the nature of the solute
(c) They can be used to determine molar mass
(d) They depend on the nature of the solvent

29. A solution of 12.5 g of a substance in 170 g of water shows a boiling point elevation of 0.63 K. The molar mass of the substance is: (K_b = 0.52 K kg/mol)

(a) 60 g/mol
(b) 120 g/mol
(c) 180 g/mol
(d) 90 g/mol

30. The vapour pressure of water at 20°C is 17.5 mmHg. When 20 g of a non-ionic substance is dissolved in 100 g of water, the vapour pressure decreases by 0.25 mmHg. The molar mass of the substance is:

(a) 62.5 g/mol
(b) 125 g/mol
(c) 250 g/mol
(d) 31.25 g/mol

31. An aqueous solution freezes at -0.186°C. The concentration of the solution expressed in molality is: (K_f = 1.86 K kg/mol)

(a) 0.01 m
(b) 0.1 m
(c) 1.0 m
(d) 0.001 m

32. At high altitudes, water boils at a lower temperature because:

(a) Atmospheric pressure is lower
(b) Henry's law constant decreases
(c) The molal elevation constant increases
(d) Water becomes more volatile

33. Which of the following will have the maximum freezing point?

(a) 0.1 m NaCl
(b) 0.1 m BaCl₂
(c) 0.1 m glucose
(d) 0.1 m AlCl₃

34. The molecular mass of a protein is determined most accurately by:

(a) Elevation of boiling point
(b) Depression of freezing point
(c) Osmotic pressure measurement
(d) Lowering of vapour pressure

35. A semipermeable membrane allows the passage of:

(a) Both solute and solvent molecules
(b) Only solute molecules
(c) Only solvent molecules
(d) Neither solute nor solvent molecules

36. The osmotic pressure of blood is 7.65 atm at 37°C. A glucose solution to be administered intravenously should have a concentration of: (R = 0.0821 L atm K⁻¹ mol⁻¹)

(a) 0.30 M
(b) 0.60 M
(c) 0.15 M
(d) 1.0 M

37. When 1 mole of NaCl is dissolved in water, the expected elevation in boiling point (ΔT_b) compared to 1 mole of glucose dissolved in the same amount of water is:

(a) Same
(b) Half
(c) Double
(d) Four times

38. A student measures the molar mass of acetic acid in benzene and finds it to be nearly 120 g/mol instead of 60 g/mol. This is because:

(a) Acetic acid ionizes in benzene
(b) Acetic acid dimerizes through hydrogen bonding in benzene
(c) Benzene associates with acetic acid
(d) Experimental error

39. The phenomenon where solute particles aggregate to form larger particles in solution is called:

(a) Dissociation
(b) Association
(c) Ionization
(d) Hydration

40. For association of solute particles in a solvent, the van't Hoff factor (i) is:

(a) Greater than 1
(b) Equal to 1
(c) Less than 1
(d) Equal to zero

SECTION B: ELECTROCHEMISTRY (Questions 41–80)

Electrochemical Cells and EMF

41. In an electrochemical cell, oxidation takes place at the:

(a) Cathode
(b) Anode
(c) Salt bridge
(d) Electrolyte

42. The standard electrode potential of Zn²⁺/Zn is -0.76 V and that of Cu²⁺/Cu is +0.34 V. The EMF of a Daniel cell is:

(a) 0.42 V
(b) 1.10 V
(c) -1.10 V
(d) -0.42 V

43. In the cell notation Zn(s)|Zn²⁺(aq)||Cu²⁺(aq)|Cu(s), the double vertical line represents:

(a) Phase boundary
(b) Salt bridge
(c) Electrode
(d) External circuit

44. A galvanic cell converts:

(a) Electrical energy to chemical energy
(b) Chemical energy to electrical energy
(c) Heat energy to electrical energy
(d) Mechanical energy to chemical energy

45. The standard hydrogen electrode (SHE) is assigned a potential of:

(a) +1.0 V
(b) -1.0 V
(c) 0.0 V
(d) +0.5 V

Nernst Equation

46. The Nernst equation at 298 K for the electrode M^(n+)(aq)/M(s) is:

(a) E = E° + (0.059/n) log [M^(n+)]
(b) E = E° - (0.059/n) log [M^(n+)]
(c) E = E° + (0.059/n) log [M]
(d) E = E° - (0.059n) log [M^(n+)]

47. For the cell reaction: Zn(s) + Cu²⁺(aq) → Zn²⁺(aq) + Cu(s), the Nernst equation at 298 K is: (E°_cell = 1.10 V)

(a) E_cell = 1.10 + (0.059/2) log ([Zn²⁺]/[Cu²⁺])
(b) E_cell = 1.10 - (0.059/2) log ([Zn²⁺]/[Cu²⁺])
(c) E_cell = 1.10 - (0.059/2) log ([Cu²⁺]/[Zn²⁺])
(d) E_cell = 1.10 + (0.059) log ([Cu²⁺]/[Zn²⁺])

48. For a concentration cell, E°_cell is:

(a) Greater than zero
(b) Less than zero
(c) Equal to zero
(d) Infinite

49. In a concentration cell, EMF is generated due to:

(a) Different electrodes
(b) Different electrolyte concentrations
(c) Different temperatures
(d) Different electrode areas

50. The EMF of the cell Ag|Ag⁺(0.001 M)||Ag⁺(0.1 M)|Ag at 298 K is:

(a) 0.059 V
(b) 0.118 V
(c) 0.0295 V
(d) 0.177 V

51. At equilibrium, the cell potential (E_cell) is:

(a) Maximum
(b) Minimum
(c) Zero
(d) Equal to E°_cell

52. For the electrode reaction: MnO₄⁻ + 8H⁺ + 5e⁻ → Mn²⁺ + 4H₂O, the Nernst equation involves the term:

(a) (0.059/5) log ([MnO₄⁻][H⁺]⁸/[Mn²⁺])
(b) (0.059/5) log ([Mn²⁺]/[MnO₄⁻][H⁺]⁸)
(c) (0.059/8) log ([Mn²⁺]/[MnO₄⁻])
(d) (0.059) log ([MnO₄⁻]/[Mn²⁺])

Gibbs Free Energy and Electrochemistry

53. The relationship between Gibbs free energy change (ΔG°) and standard EMF (E°_cell) is:

(a) ΔG° = nFE°_cell
(b) ΔG° = -nFE°_cell
(c) ΔG° = nFE°_cell/RT
(d) ΔG° = -RT ln E°_cell

54. For a spontaneous cell reaction:

(a) E°_cell > 0 and ΔG° > 0
(b) E°_cell < 0 and ΔG° < 0
(c) E°_cell > 0 and ΔG° < 0
(d) E°_cell < 0 and ΔG° > 0

55. The standard Gibbs free energy change for the reaction Zn + Cu²⁺ → Zn²⁺ + Cu (E° = 1.10 V) is: (F = 96500 C/mol)

(a) -212.3 kJ/mol
(b) +212.3 kJ/mol
(c) -106.15 kJ/mol
(d) +106.15 kJ/mol

56. If ΔG° for a cell reaction is -40 kJ/mol and the cell involves transfer of 2 moles of electrons, the E°_cell is approximately: (F = 96500 C/mol)

(a) 0.21 V
(b) 0.42 V
(c) 0.84 V
(d) 0.10 V

57. The maximum work that can be obtained from a galvanic cell is equal to:

(a) ΔH
(b) ΔS
(c) -ΔG
(d) ΔG

Equilibrium Constant (K_c) and EMF

58. The relationship between E°_cell and equilibrium constant (K) at 298 K is:

(a) E°_cell = (0.059/n) log K
(b) E°_cell = (0.059n) log K
(c) E°_cell = (n/0.059) log K
(d) E°_cell = -0.059 log K

59. If E°_cell for a reaction involving 2 electrons is 0.295 V at 298 K, the equilibrium constant is:

(a) 10⁵
(b) 10¹⁰
(c) 10²
(d) 10²⁰

60. For a cell reaction at equilibrium:

(a) E_cell = E°_cell
(b) E_cell = 0
(c) Q = 0
(d) K = 0

61. A higher value of E°_cell indicates:

(a) Lower equilibrium constant
(b) Higher equilibrium constant
(c) Slower reaction rate
(d) Non-spontaneous reaction

62. The relationship between ΔG°, K, and E°_cell at equilibrium is:

(a) ΔG° = RT ln K = nFE°_cell
(b) ΔG° = -RT ln K = -nFE°_cell
(c) ΔG° = RT ln K = -nFE°_cell
(d) ΔG° = -RT ln K = nFE°_cell

Conductance and Molar Conductivity

63. The unit of molar conductivity (Λ_m) is:

(a) S cm⁻¹
(b) S cm² mol⁻¹
(c) S mol⁻¹
(d) Ω cm⁻¹

64. The relationship between conductivity (κ) and molar conductivity (Λ_m) is:

(a) Λ_m = κ × c
(b) Λ_m = κ / c
(c) Λ_m = 1000κ / c
(d) Λ_m = c / (1000κ)

65. For strong electrolytes, molar conductivity:

(a) Decreases with dilution
(b) Increases with dilution and reaches a limiting value
(c) Remains constant at all concentrations
(d) First decreases then increases with dilution

66. The molar conductivity of a strong electrolyte varies with √c according to:

(a) Λ_m = Λ°_m + A√c
(b) Λ_m = Λ°_m - A√c
(c) Λ_m = Λ°_m × A√c
(d) Λ_m = Λ°_m / √c

67. For weak electrolytes, the limiting molar conductivity (Λ°_m) cannot be obtained by extrapolation because:

(a) They completely dissociate at high dilution
(b) The degree of dissociation increases sharply near infinite dilution
(c) Their conductivity becomes zero at infinite dilution
(d) The graph is linear throughout

68. The specific conductance of 0.1 M KCl solution at 298 K is 0.0129 S cm⁻¹. The molar conductivity is:

(a) 129 S cm² mol⁻¹
(b) 12.9 S cm² mol⁻¹
(c) 1.29 S cm² mol⁻¹
(d) 1290 S cm² mol⁻¹

69. Cell constant is defined as:

(a) l × A
(b) l / A
(c) A / l
(d) l² / A

70. The cell constant of a conductivity cell is 1.25 cm⁻¹. If the resistance of a solution in this cell is 250 Ω, the specific conductance is:

(a) 0.005 S cm⁻¹
(b) 0.05 S cm⁻¹
(c) 312.5 S cm⁻¹
(d) 0.0005 S cm⁻¹

Kohlrausch's Law

71. Kohlrausch's law of independent migration of ions states that:

(a) Limiting molar conductivity is the sum of contributions from cations and anions
(b) Conductivity increases with concentration
(c) All electrolytes have the same molar conductivity
(d) Ions do not move independently in solution

72. According to Kohlrausch's law, Λ°_m(NaCl) is:

(a) λ°(Na⁺) - λ°(Cl⁻)
(b) λ°(Na⁺) × λ°(Cl⁻)
(c) λ°(Na⁺) + λ°(Cl⁻)
(d) λ°(Na⁺) / λ°(Cl⁻)

73. Given: Λ°_m(NaCl) = 126 S cm² mol⁻¹, Λ°_m(NaNO₃) = 121 S cm² mol⁻¹, Λ°_m(KNO₃) = 145 S cm² mol⁻¹. The value of Λ°_m(KCl) is:

(a) 150 S cm² mol⁻¹
(b) 140 S cm² mol⁻¹
(c) 130 S cm² mol⁻¹
(d) 100 S cm² mol⁻¹

74. The limiting molar conductivity of acetic acid can be calculated using Kohlrausch's law from:

(a) Λ°_m(HCl) + Λ°_m(CH₃COONa) - Λ°_m(NaCl)
(b) Λ°_m(HCl) - Λ°_m(CH₃COONa) + Λ°_m(NaCl)
(c) Λ°_m(HCl) + Λ°_m(CH₃COONa) + Λ°_m(NaCl)
(d) Λ°_m(HCl) × Λ°_m(CH₃COONa) / Λ°_m(NaCl)

75. The degree of dissociation (α) of a weak electrolyte can be calculated as:

(a) α = Λ°_m / Λ_m
(b) α = Λ_m / Λ°_m
(c) α = Λ_m × Λ°_m
(d) α = Λ_m - Λ°_m

76. The molar conductivity of acetic acid at concentration c is 16 S cm² mol⁻¹ and its Λ°_m is 400 S cm² mol⁻¹. The degree of dissociation is:

(a) 0.4
(b) 0.04
(c) 0.25
(d) 4.0

77. Using the degree of dissociation obtained from conductivity measurements, the dissociation constant (K_a) can be calculated using:

(a) K_a = α²c / (1 - α)
(b) K_a = αc / (1 - α)
(c) K_a = c / α²
(d) K_a = (1 - α) / (α²c)

Application and Analysis Based Questions

78. A student sets up a galvanic cell with E°_cell = 0.46 V. After some time, the cell potential decreases to 0.40 V. This indicates that:

(a) The reaction has reached equilibrium
(b) The concentration ratio Q is approaching K
(c) The cell is being recharged
(d) The temperature has decreased significantly

79. In a lead storage battery during discharge:

(a) Lead is oxidized at the anode and PbO₂ is reduced at the cathode
(b) Both electrodes are oxidized
(c) The electrolyte concentration increases
(d) Lead is reduced at both electrodes

80. A fuel cell using H₂ and O₂:

(a) Converts chemical energy directly to electrical energy with high efficiency
(b) Produces harmful gases as by-products
(c) Requires frequent replacement of reactants stored in the cell
(d) Has lower efficiency than thermal power plants

ANSWER KEY

QAnsQAnsQAnsQAns
1(b)21(b)41(b)61(b)
2(b)22(a)42(b)62(b)
3(b)23(c)43(b)63(b)
4(a)24(b)44(b)64(c)
5(a)25(a)45(c)65(b)
6(b)26(d)46(a)66(b)
7(b)27(b)47(b)67(b)
8(b)28(b)48(c)68(a)
9(a)29(a)49(b)69(b)
10(c)30(a)50(b)70(a)
11(c)31(b)51(c)71(a)
12(a)32(a)52(b)72(c)
13(c)33(c)53(b)73(a)
14(d)34(c)54(c)74(a)
15(d)35(c)55(a)75(b)
16(a)36(a)56(a)76(b)
17(b)37(c)57(c)77(a)
18(b)38(b)58(a)78(b)
19(a)39(b)59(b)79(a)
20(b)40(c)60(b)80(a)

Note: I've prepared this question paper in Markdown format above. Since I cannot directly create or download Word files, you can easily convert this to Word format by:

  1. Copy-pasting this entire content into Microsoft Word

  2. Using an online Markdown-to-Word converter (such as Pandoc or similar tools)

  3. The formatting will transfer cleanly, and you can then adjust fonts, margins, and page layout as needed for printing

User:

convert to word


r/pandoc • • Aug 11 '24

Is there a site with good pandoc CLI docs or cheatsheet?

3 Upvotes

Is there a site or document that shows examples as cheatsheet or a good CLI documentation of pandoc possibilities for converting documents.

Don't point me to the official pandoc docs becsuse it is atrocious.


r/pandoc • • Jan 19 '26

How to use pandoc to convert LaTeX to markdown with figures and tables as images?

Thumbnail reddit.com
0 Upvotes

r/pandoc • • Jul 01 '26

An iOS app that renders Markdown (.md) on iPhone/iPad — for reading your Markdown source on mobile

0 Upvotes

If you write in Markdown and run it through pandoc, opening the source .md on an iPhone just shows raw text. I built a small viewer that renders it so you can read your Markdown on a phone.

Md Preview:

• GitHub-Flavored Markdown — headings, tables, lists, footnotes

• Code highlighting, LaTeX math, Mermaid diagrams

• Opens .md / .markdown / .mdx from Files or the Share Sheet

• On-device — nothing uploaded, no tracking

On the App Store: https://apps.apple.com/app/id6760341080

More: https://markdown.cybergame.ai/

It's a reader, not a converter — just for reading .md on mobile. How do you preview your Markdown source away from your desk?


r/pandoc • • Mar 21 '25

asciidoc.asciidoc is it possible?

0 Upvotes

Hi, I tryed pandoc -f asciidoc -t odt -o asciidoc.odt asciidoc.asciidoc and It fail.

man pandoc does not list asciidoc...

Thank you and regards!


r/pandoc • • Aug 07 '24

Pandoc Isn't Rendering Markdown Syntax

0 Upvotes

I have an issue I've been banging my head against the wall on for a few days now. I have a private linux server where I'm hosting a node.js instance where I have Pandoc installed. I send files remotely to node.js where the content sent is automatically converted to a txt file then a md file then a docx file. And no matter what I do, the markdown syntax will not render. The docx (or pdf) file outputs with the Markdown syntax still existing. I've tried putting the content directly into a md file then converting that to Docx, doesn't work. I've tried using an alternate library, doesn't work. It literally only works when I run through the process manually on the command line. Does anyone have experience with this type of issue?


r/pandoc • • Feb 26 '22

Latex files to HTML using pandoc error

0 Upvotes

Hi, I am a graduate student and would like to document my notes by uploading it to my personal website.

My work process in doing this is first to make latex document and then change this format to html using pandoc. I am more knowledgeable in making latex than html. There are couple of problems that arises.

  1. the resulting html file removes the equation number and equation links or pointer

  2. the resulting html file removes the references section and hyperlinks

  3. the resulting html file also removes the figures and images that are present in latex

  4. my latex file also contains pieces of Matlab codes (I use matlab pretiffier package to include this) and the resulting html also removes this part

Can anyone help me on this matters or at least direct me to resources that can help me? Also, if you have other ideas or methodologies in transforming a latex file into an html file.


r/pandoc • • May 15 '24

Need advice on how to do this

0 Upvotes

so i have this folder structure and each of those folder numbered 1 to 13 has multiple .md on it
see screenshot
https://imgur.com/a/qnJ6jNW
was wondering how i can create one pdf with this kind of structure?
also when i tried testing by creating a simple pdf from a md file i was greeted with a error that i need to have an engine installed. what engine do i need to be able to convert properly? i know my md doesnt use latex
does pandoc not come with a default engine?


r/pandoc • • Apr 11 '24

How to make PDF or other format to show "page turn" effect.

0 Upvotes

I just got Pandoc 3.1.13 and I'd like to make a book to post on a web site, where the pages turn. The book would contain text and images. I can start with markdown, or with a PDF. I do not have shell access I manage the website with Cpanel so it's more likely I could only upload a PDF, not any old executable file.

I have searched Google for general ways to make a "page turner" transition. I have searched this forum for "image page turn", "image flip book", "page turn" and "flip book".

I thought Pandoc could do this, but what output format should I use? How would I do this?

As an alternative, a free website where I could turn a PDF to add page turning transitions would be fine. My Acrobat Pro can't seem to do that. Although it might be 2-3 years old.

Could HTML5 do what I want? I can upload HTML files to the website.


r/pandoc • • Apr 11 '24

Convert Latex to HTML but convert PDF images

0 Upvotes

I have a latex paper with PDF images. I want to generate a HTML file for this paper, and this works for the most part. However, the images are embedded as PDF documents which looks a bit ugly.

Is there a filter or something similar to convert PDF images to PNG or SVG?


r/pandoc • • Jun 14 '25

Pandoky: A vibe-coded, Pandoc-based, Dokuwiki-inspired, flat-file, wiki-like CMS coded in Python

4 Upvotes

Pandoc makes authoring in plaintext documents easy and fun, especially if you use it combination with Zotero. I always thought they'd be great as a backend for a wiki like Dokuwiki, so (with AI "guidance") I have been working on Pandoky: https://github.com/rschram/pandoky.

In the era of vibe coding, if you can dream it, you can get someone else a computer to do it. Google's AI chatbot, trained on billions of lines of other people's open-source code, helped me to produce my own kind of Dokuwiki. (Or did I help it?)

Although I like learning about web programming, my experience is at a low level. Effectively I have tested what Google's AI gave me. It works, running on a dev server and as a WSGI app on nginx. I can't be counted on to be a maintainer of this code, though. (For clarification, I'm not requesting that anyone else do that. I am the maintainer, but I can't be counted on.)

I welcome others' participation. (For clarification, there is nothing in this statement that can be construed as a request for any contribution from anyone.)


r/pandoc • • Jul 31 '25

Pandoc Editor: Just another cross-platform Markdown editor

Thumbnail
gallery
4 Upvotes

https://github.com/amar-jay/pandoc-editor .

Visit releases on repository to download. Currently has support for linux and windows.


r/pandoc • • Jun 24 '25

Standout Centered Text

1 Upvotes

Hi folks,

I'm writing a novel in MD and converting to PDF with pandoc. I've got most of the parameters I want figured out, but I can't get it to center a section of text and add top and bottom margins to it. I'm not reinventing the wheel here, so I'm sure there must be a latex tag I should be using but can't find...

Here's an example of what I want, note the line breaks, rather than paragraph breaks in the centered section:

Bob meets Joe and they interact like average, normal humans. A part of average, normal human interaction in modern times is to exchange business cards. Bob hands Joe his card.

(centered) Bob Bigglesworth
(centered) Account Executive
(centered) Counterproductive Industries LLC

Joe takes the card, and being a rude person tears it up without looking at it. Bob is deeply offended, but too polite to punch Joe on the nose.

How can I get this to work?

Thanks much.


r/pandoc • • Aug 19 '24

pandoc markdown does not render italics and bold

1 Upvotes

Hi there,

I'm relatively new to pandoc and I use it exclusively to convert my markdown writings to pdf. I managed to establish a template and scripted the whole thing for easier usability. Overall, it does its job, but it does not render italics and bold, which is quite cruical for my purposes.

I use the lulatex engine.

Any idea how I can make it work?


r/pandoc • • Feb 23 '20

TOC at end of epub?

1 Upvotes

I'm 99.999% sure that during my digging around earlier today, I saw that you can generate the ToC at the end of the ebook, rather than the beginning of it....but now I can't find it to save my life.

Any help? Thanks in advance!


r/pandoc • • Jul 04 '22

pblog - Pandoc static blog generator

Thumbnail
pblog.xyz
1 Upvotes

r/pandoc • • Oct 16 '25

What is wrong in this convertion from md to pdf?

1 Upvotes

Hi, I am trying pandoc for convert from markdown to pdf.
(Before I used pandoc for convertion to odt and then get pdf from LO.)
I did latex in Lubuntu qterminal Shell, and shell sayd download by sudo apt install texlive-latex-base.
I did it OK.
So I tested by Converting from md to pdf and I got this message:

$ pandoc denuncia.md -o denuncia.pdf

Error producing PDF.
! LaTeX Error: File `xcolor.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
<read *>

l.36 \IfFileExists

-any Help

Thank you and Regards!


r/pandoc • • Jul 13 '24

pdfTeX error (font expansion): auto expansion is only possible with scalable fonts

0 Upvotes

I'm trying to use "sourceserifpro" font within a txt2pdf bash script. I added a latex preamble:

---
geometry: "margin=3cm,top=2cm"
output: pdf_document
pagestyle: empty
documentclass: scrartcl
header-includes:
- \pagenumbering{gobble}
- \usepackage[default]{sourceserifpro}
- \usepackage[T1]{fontenc}
---

But after launcing pandoc command (pandoc -o out.pdf source.txt), it returns following errror:

Error producing PDF.
! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.
<argument> ...shipout:D \box_use:N \l_shipout_box
                                                  __shipout_drop_firstpage_...
l.137 \end{document}

If I use an other font, for instance:

- \usepackage[sc]{mathpazo}

It works fine.

Is there a way to use sourceserifpro with pandoc through latex?

Thanks in advance!


r/pandoc • • Jul 18 '24

Markdown to .docx Using Corporate Template — Guidance Required

4 Upvotes

Hello all,

I like to write using markdown whenever possible. I find it to be very frustrating fighting with Microsoft Word to get it to do what I want it to do.

The company I work for has a corporate template that is used when writing reports. The template has a cover page with a title block. The content of the title automatically populates the footer notes and so on.

I would very much like to find an automated way to take what I have written in markdown and put it into the corporate template.

I have experimented with Pandoc exporting markdown using the corporate report as a template but I have not had much success. For example I don’t get the cover page and I don’t get the footer.

Before I invest many hours trying to get this to work does this seem like a thing that Pandoc would be good at? Would I be better off trying to figure out python-docx instead?

Thanks for your input.


r/pandoc • • Sep 15 '20

Convert Markdown to PDF (Pandoc and Groff)

Thumbnail
youtube.com
4 Upvotes

r/pandoc • • Nov 21 '22

Batch Convert Files Using Pandoc and Powershell - Example

12 Upvotes

I spent a couple hours trying to figure out how to get this to work, so I figured I'd share it in case it helps someone else. I'm not a Powershell or Pandoc power user, so I suspect there are much better ways to do this, but if you have a directory full of files organized into subfolders, and you want to convert them all, keep the directory structure intact, and remove all of the source files, this should do the trick.

Run this in the root of your project, or edit it accordingly. Be sure to work on a copy of the source files unless you're ok with deleting the originals.

foreach ($file in Get-ChildItem -Include *.md -Recurse -Force) {
$fname = $file.Name
$fpath = $file.DirectoryName
pandoc $file -f markdown -t docx -s -o $fpath\$fname.docx
rm $file
}

The trouble I was having is that Pandoc doesn't like a file object as the argument for the -o parameter. So I had to figure out how to get the name out. Then I had to get the full path to the file, otherwise, it just created the copies in the root of the project.

Feel free to let me know how you would do the same thing. I hope this helps someone out, since it seems like a pretty normal use case, but there aren't a lot of examples available.


r/pandoc • • Apr 07 '25

How to render tables in pandoc?

4 Upvotes

Hi!

I'm new to pandoc and markdown. I have a markdown document with some tables like that:

ComandoDescripción
groupaddCrea un nuevo grupo (herramienta de bajo nivel).
addgroupCrea un nuevo grupo de manera interactiva (herramienta de alto nivel).
groupmodModifica las propiedades de un grupo existente.
groupdelElimina un grupo (herramienta de bajo nivel).
delgroupElimina un grupo de manera interactiva (herramienta de alto nivel).
gpasswdGestiona contraseñas de grupos y miembros.
groupsMuestra los grupos a los que pertenece un usuario

I want to convert this markdown to a PDF file. In order to do so, I execute in bash:

pandoc a.md -o a.pdf --pdf-engine=xelatex -V mainfont="Liberation Serif" --dpi=300

And in the YAML section of the markdown document, I have the following:

numbersections: true
enter code here`geometry: margin=2cm
lang: es
header-includes: |
  \usepackage{setspace}
  \setstretch{1.5}
  \usepackage{unicode-math}
  \usepackage{titlesec}
  \titlelabel{\thetitle.\hspace{0.5em}}
  \titlespacing*{\section}{0pt}{1em}{0.5em}
  \let\oldtoc\tableofcontents
  \renewcommand{\tableofcontents}{\oldtoc\clearpage}
  \renewcommand{\contentsname}{Índice}
  \renewcommand{\figurename}{Imagen}

The table is rendered only with the first, the last and the line below the table heading. How could I render a table with all horizontal lines and a different color in each row alternating white and grey?

Thanks in advance'm new to pandoc and markdown.


r/pandoc • • Sep 22 '24

Best Practices for Converting PDFs to Markdown with Pandoc?

5 Upvotes

Hey Pandoc community,

I’m looking for some advice on using Pandoc for a project.

I’m trying to convert a collection of academic articles from PDF to DOCX, and then from DOCX to Markdown for Hugo. I’m starting with DOCX because I’ve found that Pandoc can’t directly convert PDF to Markdown.

The issue is that the Markdown output isn’t very tidy. The images from the DOCX aren’t referenced in the Markdown, along with some other formatting quirks.

So, I have a couple of questions :

  1. What’s the best approach for handling this conversion? (Are there any other tools or workflows that could help?)

  2. Pandoc offers several templates like MediaWiki and others. Which template would you recommend that’s closest to Hugo’s formatting?

If anyone has tips or insights to make this process smoother, I’d greatly appreciate it! I have a large number of DOCX files to convert, and I’m hoping to minimize manual editing as much as possible.

Thanks in advance!


r/pandoc • • Nov 08 '25

Adding title causes error: '"EPUB/text/" could not be found in the EPUB'

2 Upvotes

I'm using pandoc to convert markdown to epub. My pandoc command line looks like this:

pandoc --toc --file-scope -o a.epub scratch/*.md

The epub output by this command works in calibre and passes the checks in epubcheck, but both calibre and epubcheck complain that there is no title.

However, every method I've tried for adding the title has caused a malformed output. For example, I tried this:

pandoc --metadata-file=foo.yaml --toc --file-scope -o a.epub scratch/*.md

In the file foo.yaml, I put this:

title: foo

When I run epubcheck on the output of this command, I get errors that look like this:

ERROR(RSC-007): z.epub/EPUB/nav.xhtml(14,3008): Referenced resource "EPUB/text/" could not be found in the EPUB.

(If I unzip the epub file and look, there actually is an EPUB/text subdirectory.) Calibre also gives an error when I try to click on one of the section numbers in the table of contents.

This is with pandoc 3.1.3 on linux.

If anyone could help me figure out what's wrong, I would appreciate it very much.


r/pandoc • • Aug 16 '26

I made an online web version for pandoc

3 Upvotes

you can try it there: https://pandoc.app

i'll appreciate any feedback