Skip to content

Vietnamese support for generating PDF files on polygon.codeforces.com

License

Notifications You must be signed in to change notification settings

VNOI-Admin/cf-polygon-vietnamese-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vietnamese support for PDF statement on polygon.codeforces

These repository contains a fork of olymp.sty with support for Vietnamese, and related template files for generating the Vietnamese statement when preparing problems on polygon.

Using the olymp.sty file

The olymp.sty file can be used individually, as shown in the examples in the original repository olymp.sty, but remember to replace original file with the modified one.

The other files in this repository, such as problem.tex, can also be used as reference. They are written as a mixed of LaTeX and freemarker (the same language used in script for test generation on polygon). To use those files, please remove all the freemarker code first.

Generate Vietnamese PDF files on polygon

Generate PDF files for individual problem

For individual problem, navigate to Files, and replace the following files with the ones in this repository:

  • olymp.sty
  • problem.tex
  • statements.ftl

Files page in individual problem

To see the PDF files (statement and tutorial), navigate to Statement, choose Vietnamese language, and then click In PDF/Tutorial in PDF to see the coressponding generated PDF files.

Note that the file tutorial.tex does not need to be changed, because it is minimal.

Generate PDF files for one contest

In the contest page, navigate to Properties/Files.

Contest page

Here, replace the following files with the ones in this repository:

  • olymp.sty
  • statements.ftl
  • tutorials.ftl

Properties and files page

To see the PDF files (statement and tutorial), navigate to Statement, navigate back to the contest page, and choose Preview Statements as PDF/Preview Tutorials as PDF with Vietnamese option to see the coressponding generated PDF files.

About

Vietnamese support for generating PDF files on polygon.codeforces.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published