Skip to content

Commit

Permalink
improve tex task rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed Aug 22, 2024
1 parent fb3186e commit c7b98da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Modules/Fykos/Core/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
<script n:syntax=off>
MathJax = {
loader: {
load: ["[tex]/mhchem"]
load: ['[tex]/mhchem', '[tex]/upgreek']
},
tex: {
packages: {
'[+]': ['mhchem']
'[+]': ['mhchem', 'upgreek']
},
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['\\eq{', '}']]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<div style="display: flex; justify-content: space-between;">
<h4><i class={$problemIcons[$problem->number]}></i><span class="skip-3px"></span>
{$problem->getLabel()}...
{$problem->name[$lang]}</h4>
{$problem->name[$lang]|noescape}</h4>
<div>
{switch $language->value}
{case 'cs'}
Expand All @@ -145,7 +145,7 @@
<div class="card-body">
<div class="card-title">
{$problem->task[$lang]|noescape}

{if $problem->number == 7}
<a class="btn btn-primary mr-2 mb-3" n:href=":Events:Fykos:experiments">
{switch $language->value}
Expand Down Expand Up @@ -176,7 +176,7 @@
{/if}
{if $problem->number == 8 && $serialPath}
<a class="btn btn-primary my-2 mr-4" href="{$serialPath}">
<i class="far fa-file-pdf"></i><span class="skip-3px"></span>
<i class="far fa-file-pdf"></i><span class="skip-3px"></span>
{switch $language->value}
{case 'cs'}Text seriálu {$series->series}. série
{default}Text of Serial Number {$series->series}
Expand All @@ -185,7 +185,7 @@
{/if}
</div>
{if array_key_exists($lang, $problem->origin) && $problem->origin[$lang]}
<div><i>~ {$problem->origin[$lang]}</i></div>
<div><i>~ {$problem->origin[$lang]|noescape}</i></div>
{/if}
</div>
{/if}
Expand Down

0 comments on commit c7b98da

Please sign in to comment.