Blame view

dictionary/templates/tex/frame.tex 1.76 KB
Bartłomiej Nitoń authored
1
Bartłomiej Nitoń authored
2
\begin{minipage}[t]{\textwidth}
Bartłomiej Nitoń authored
3
\def\arraystretch{1.25}
Bartłomiej Nitoń authored
4
5
6
7
8
9
10
11
12
13
14
\begin{tabular}{lll}
({{ fr_loop_counter }}) \textbf{ {{ lemma.entry }} {{ reflex }} ({{ negativity }},{{ predicativity }},{{ aspect }})} --- \textit{ {{ frame_opinion }} [{{ frame.id }}]}  \\
\end{tabular}\\
%{% for pos_dict in pos_dict_ls %}
%	{% if pos_dict.pos_cats_str %}
		\position{({{ pos_dict.idx }}) {{ pos_dict.pos_cats_str }}{% for argument in pos_dict.arguments %}\\\phrasetype{ {{ argument.idx }} }{ {{ argument.argument.text_rep }} }{% endfor %} }
%	{% else %} 
		\position{({{ pos_dict.idx }}){% for argument in pos_dict.arguments %}\\\phrasetype{ {{ argument.idx }} }{ {{ argument.argument.text_rep }} }{% endfor %} }
%	{% endif %}
%{% endfor %}
\end{minipage}
Bartłomiej Nitoń authored
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

{% if example_dict_ls %}
  \vspace{5pt}
  \line(1,0){400}

  {\footnotesize
  \begin{enumerate}[1.]

  {% for example_dict in example_dict_ls %}
    \item {{ example_dict.example.sentence }}
    \begin{flushright} 
      %{% for idx in example_dict.arg_idxs %}{\tiny \framebox{ {{ idx }} }} {% endfor %}
      {% for position in example_dict.positions %}{{ position.idx }} \{ {% for idx in position.arg_idxs %}{\tiny \framebox{ {{ idx }} }}{% if not forloop.last %} ; {% endif %}{% endfor %} \} {% if not forloop.last %} + {% endif %}{% endfor %}
      	      \textit{ {{ example_dict.example.source.source }} --- {{ example_dict.example.opinion.opinion }} [{{ example_dict.example.id }}]} 
    \end{flushright}
    {% if forloop.last %}
    {% else %}
      \vspace{5pt} 
    {% endif %}
    {% if example_dict.example.comment %}
      \begin{flushleft} \begin{sloppypar} {{example_dict.example.comment}} \end{sloppypar} \end{flushleft}
    {% endif %}
  {% endfor %}
  \end{enumerate}
  }
{% endif %}

  \vspace{10pt}