Học nèHọc nè
Help CenterGetting started with Hocne

Export a test to PDF with TeX

Typeset a test with TeX right on Học nè, nothing to install: three ready templates, solutions, an answer key, and the TeX source to download.

6 min readUpdated

Besides a Word file, Học nè can print a test as a PDF with TeX: formulas, TikZ figures and tables come out as sharp as a printed exam paper. You don't need TeX Live installed; Học nè sets the pages for you.

See an example on the Export page.

Open PDF (TeX)

  1. Open the test in the editor and press Download.
  2. At the top of the screen, switch Word to PDF (TeX). Học nè remembers this for next time.
  3. The pages appear after a few seconds. From then on, whenever you change something they are set again, usually in under a second; when it takes longer, the old pages dim until the new ones are ready.

On a phone the options are behind Customize, and Download PDF sits at the bottom of the screen.

Học nè's three templates

  • Standard: the Ministry's 2025 exam layout: department, school, exam name, a test code box, page numbers in the footer.
  • Compact: two columns and smaller type, to save paper.
  • With solutions: each question with its answer and solution in a box, good for revision material.

Rest the pointer on a template and press the eye to see its sample pages at once, with no wait for a build; Use this template picks it.

Want to use your own? See Use your own TeX template.

With Học nè's three templates, each of Header, End of paper and Footer on the top bar opens a small panel: The template's (the template prints that part, and you change its candidate lines, mark box, “HẾT”, page header and footer lines) or My design (a band you lay out yourself, exactly as on the Word side: add words, pictures, a score box, a QR code…, drag and resize them on the page). Pick a piece and the text bar floats over the page, and the shortcuts (Ctrl+B, Delete, Ctrl+D, the arrows…) work as on the Word side. While the pages rebuild, the band you just changed shows at once over the old page. The PDF side's designs are kept apart from the Word side's.

Viewing the pages

The PDF's pages sit on a board, as on the Word side: drag or scroll to move around, hold Ctrl and scroll (or pinch with two fingers) to zoom. The bottom-right corner holds zoom out, zoom in and fit; the words stay sharp at every zoom. ? on the top bar (or the ? key) opens the list of shortcuts.

Recompile

Recompile in the corner of the pages (or Ctrl+Enter) builds the pages again at once. Its arrow holds Compile on every change: off, your changes wait until you press Recompile (the button turns teal while changes are waiting).

Size each picture

Each picture has its own size, in the Word file and in the PDF. Press a picture on the page, then drag a corner or type a size in cm on the bar that appears. Back to automatic size returns it to the default. A size you set is kept with the test, the page rebuilds once you stop, and Undo takes it back.

A picture you have not sized prints between the Word template's Max width and Min width, in the picture's properties panel.

Header details and the options

Header details are what prints at the top of the page. What a box holds is what prints; an empty box leaves its line out. Grey words that start with "e.g." are only an example and never print.

  • School and Department: type them once. All three of Học nè's templates and every later test use them again.

  • Exam, Subject and Time belong to each test. Học nè fills in the exam and the subject from the test; type over them to print something else, and clear the box to get Học nè's words back.

  • Solutions: Hidden (no answer anywhere in the file), After each question, or At the end (after the paper, by part).

  • Answer key: printed on its own page after the test. A question with no answer yet is left out of it, and Học nè says how many are missing above the pages. A test with no answers at all has no such page.

  • Test code: one code, All (a PDF for each), or One combined file (each code counts its own pages).

  • Black and white: no colour on the question labels and the solution boxes.

Fix a question straight from the page

See a question that needs fixing? Press it right on the page, then press Edit Question … at the foot of the preview (or double-press the question). Học nè takes you to that question in the editor. When you are done, open Download again: the pages follow the test as you fixed it.

Undo and Redo

The two arrows on the right of the top bar take back what you just changed on this screen: the template you picked, an option, words typed for the header, a picture's size. On a computer Ctrl+Z and Ctrl+Y do the same.

When Học nè reports an error

A mistyped formula can stop TeX. Học nè names the question, one line each; press Edit Question … on that line to go to it in the editor, fix it and export again. A character a template cannot print, or a picture no longer on Học nè, is named right above the pages.

Download the PDF or the TeX

  • Download PDF gives you a file ready to print.
  • Download TeX gives you a .zip with the template, the questions and the pictures. Unpack it and run latexmk -xelatex main.tex with TeX Live, or upload the .zip to Overleaf (New Project → Upload Project) and choose the XeLaTeX compiler. The README.txt inside has the command.

Each download counts as one, like a Word file. Previewing the pages does not. On the free plan the downloads left this month show right beside the download button (on a phone, on the Download PDF button itself), and every page carries a small "Made with [the Học nè logo] · hocne.vn" line just above the page number - the preview shows it too. Pro, and a TeX template of your own, print no such line.

A question is never cut across two pages

A question shorter than half a page always stays whole on one page, with its picture and its choices. When it does not fit what is left of a page, Học nè moves the whole question to the next one. A part's instruction always stays with that part's first question. A table wider than its column (the two-column Compact template) is drawn smaller to fit.

The questions are in hocne/noi-dung.tex. To change a question, change it on Học nè and export again, so the test and the file stay the same.

Contact the Học nè team

Still need an answer? Leave your question below and the Học nè team will get back to you as soon as possible.

Loading support form