@jutge.org/toolkit 4.2.8 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/problems/demo/demo.pbm/problem.en.tex +26 -1
- package/assets/sty/jutge.sty +25 -27
- package/dist/index.js +219 -219
- package/package.json +1 -1
|
@@ -138,13 +138,38 @@ In this case, it was necessary to use \verb|\lstset{language=C++}| to set the la
|
|
|
138
138
|
The former use of at signs (@) and vertical bars (|) to include inline code snippets is deprecated because \textbf{pandoc} does not support it and introduced conflicts with other packages. You will have to replace them with \verb|\lstinline| or with \verb|\verb|| as shown above. Statements with at signs for inline listings can be automatically converted using \texttt{jtk convert transform-at-signs}.
|
|
139
139
|
|
|
140
140
|
|
|
141
|
+
\paragraph{Hyperlinks.}
|
|
142
|
+
|
|
143
|
+
Hyperlinks can be included in the statement using the \textbf{hyperref} package.
|
|
144
|
+
For example, visit \href{https://jutge.org}{Jutge.org} for more information.
|
|
145
|
+
In the PDF and HTML versions, the link will be clickable, in the Markdown version, the URL will be displayed as required, but the Text version will only show the link text (Why? Can we fix it?).
|
|
146
|
+
|
|
147
|
+
\medskip
|
|
148
|
+
In addition, the \verb|Link| macro is provided to include links to other Jutge.org problems:
|
|
149
|
+
See the Hello World problem \Link{P68688}. Adding the language suffix is not recommended.
|
|
150
|
+
|
|
151
|
+
|
|
141
152
|
\paragraph{Colors.}
|
|
142
153
|
|
|
143
|
-
Colors can be used in the statement using the \
|
|
154
|
+
Colors can be used in the statement using the \textbf{color} package.
|
|
144
155
|
For instance, \textcolor{red}{this text is red}, \textcolor{blue}{this text is blue}, and \textcolor{green}{this text is green}.
|
|
145
156
|
Of course, colors are not supported in the Text and Markdown versions of the statement.
|
|
146
157
|
|
|
147
158
|
|
|
159
|
+
\paragraph{Columns.}
|
|
160
|
+
|
|
161
|
+
The statement can also include multiple columns using the \textbf{multicol} package.
|
|
162
|
+
Here is an example with two columns:
|
|
163
|
+
|
|
164
|
+
\begin{multicols}{2}
|
|
165
|
+
|
|
166
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
|
|
167
|
+
|
|
168
|
+
\end{multicols}
|
|
169
|
+
|
|
170
|
+
This is shown in the PDF version only, as multiple columns are not supported in HTML, Text, or Markdown.
|
|
171
|
+
|
|
172
|
+
|
|
148
173
|
\paragraph{PS Tricks.}
|
|
149
174
|
|
|
150
175
|
PS Tricks figures can also be included in the statement but this is discouraged as it is not supported in HTML. Here is a simple example:
|
package/assets/sty/jutge.sty
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
%
|
|
1
|
+
%remove for xelatex
|
|
2
|
+
%\usepackage{mathpazo}
|
|
3
|
+
%\usepackage{helvet}
|
|
4
|
+
%\usepackage{courier}
|
|
5
|
+
|
|
6
|
+
\usepackage{hyperref}
|
|
7
|
+
\usepackage{graphicx}
|
|
8
|
+
\usepackage{moreverb} % for verbatimtabinput
|
|
9
|
+
\usepackage{mdwlist}
|
|
10
|
+
\usepackage{picins}
|
|
11
|
+
\usepackage{pstricks}
|
|
12
|
+
\usepackage{pst-tree}
|
|
13
|
+
\usepackage{graphicx}
|
|
14
|
+
\usepackage{amsmath}
|
|
15
|
+
\usepackage{geometry}
|
|
16
|
+
\usepackage{multicol}
|
|
17
|
+
%\usepackage[utf8]{inputenc} %remove for xelatex
|
|
18
|
+
\usepackage{listings}
|
|
19
|
+
\usepackage{textcomp}
|
|
20
|
+
\usepackage{chessboard}
|
|
21
|
+
\usepackage{tikz}
|
|
22
|
+
%\usepackage{wasysym} % remove because not used
|
|
23
|
+
\usepackage{color}
|
|
24
|
+
|
|
2
25
|
|
|
3
26
|
% added for xelatex
|
|
4
27
|
\usepackage{fontspec}
|
|
@@ -25,29 +48,6 @@
|
|
|
25
48
|
]
|
|
26
49
|
\setmathfont{texgyrepagella-math.otf}
|
|
27
50
|
|
|
28
|
-
%remove for xelatex
|
|
29
|
-
%\usepackage{mathpazo}
|
|
30
|
-
%\usepackage{helvet}
|
|
31
|
-
%\usepackage{courier}
|
|
32
|
-
|
|
33
|
-
\usepackage{graphicx}
|
|
34
|
-
\usepackage{moreverb} % for verbatimtabinput
|
|
35
|
-
\usepackage{mdwlist}
|
|
36
|
-
\usepackage{picins}
|
|
37
|
-
\usepackage{pstricks}
|
|
38
|
-
\usepackage{pst-tree}
|
|
39
|
-
\usepackage{graphicx}
|
|
40
|
-
\usepackage{amsmath}
|
|
41
|
-
\usepackage{geometry}
|
|
42
|
-
\usepackage{multicol}
|
|
43
|
-
%\usepackage[utf8]{inputenc} %remove for xelatex
|
|
44
|
-
\usepackage{listings}
|
|
45
|
-
\usepackage{textcomp}
|
|
46
|
-
\usepackage{chessboard}
|
|
47
|
-
\usepackage{tikz}
|
|
48
|
-
%\usepackage{wasysym} % remove because not used
|
|
49
|
-
\usepackage{color}
|
|
50
|
-
|
|
51
51
|
|
|
52
52
|
\geometry{
|
|
53
53
|
a4paper,twoside,
|
|
@@ -274,9 +274,7 @@
|
|
|
274
274
|
\newcommand{\uq}[1]{\texttt{\small #1}}
|
|
275
275
|
|
|
276
276
|
|
|
277
|
-
\providecommand{\Link}[1]{
|
|
278
|
-
\texttt{#1} % TODO: hyperlink
|
|
279
|
-
}
|
|
277
|
+
\providecommand{\Link}[1]{\href{https://jutge.org/problems/#1}{\textbf{#1}}}
|
|
280
278
|
|
|
281
279
|
|
|
282
280
|
|