Difference between revisions of "Problem.tex"

From PC2wiki
Jump to: navigation, search
m (add content and samples)
m (Examples: more about where title is found)
Line 12: Line 12:
 
where shortname is the problem short name found in [[problemset.yaml]] or [[contest.yaml]]
 
where shortname is the problem short name found in [[problemset.yaml]] or [[contest.yaml]]
  
==Examples==
+
==Problem Title in LaTeX file ==
 +
 
 +
The problem title is located in the problemtitle or problemname term.
 +
The LaTeX is scanned for the following patterns to find the title.
 +
 
 +
\problemtitle{TITLE}
 +
 
 +
\problemname{TITLE}
 +
 
 +
===Examples===
  
 
In each problem.tex file there is a title
 
In each problem.tex file there is a title

Revision as of 09:18, 12 September 2016

A problem.tex file is a LaTex file that contains a problem writeup/description.

Per the CCS the title of the problem is in problem.tex, though pc2 supports other locations too.

Location

Each problem.tex is found per the CDP and Problem Format

config/shortname/problem_statement/problem.tex

where shortname is the problem short name found in problemset.yaml or contest.yaml

Problem Title in LaTeX file

The problem title is located in the problemtitle or problemname term. The LaTeX is scanned for the following patterns to find the title.

\problemtitle{TITLE}
\problemname{TITLE}

Examples

In each problem.tex file there is a title

\problemname{Support Vector Machine}
\problemname{Surveillance}