Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qwinsi committed Dec 8, 2024
1 parent 75307ef commit 94be7ff
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 64 deletions.
44 changes: 22 additions & 22 deletions assets/app-BhnUpJAR.js → assets/app-DmiDX2f2.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions cheat-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,18 @@ <h2 id="arrows">Arrows</h2>
<tr><td><code>\Leftarrow</code></td><td><span class="render-m">\Leftarrow</span></td><td><code>arrow.l.double</code></td></tr>
<tr><td><code>\Rightarrow</code></td><td><span class="render-m">\Rightarrow</span></td><td><code>arrow.r.double</code></td></tr>
<tr><td><code>\Leftrightarrow</code></td><td><span class="render-m">\Leftrightarrow</span></td><td><code>arrow.l.r.double</code></td></tr>
<tr><td><code>\mapsto</code></td><td><span class="render-m">\mapsto</span></td><td><code>arrow.bar</code></td></tr>
<tr><td><code>\mapsto</code></td><td><span class="render-m">\mapsto</span></td><td><code>arrow.r.bar</code></td></tr>
<tr><td><code>\hookleftarrow</code></td><td><span class="render-m">\hookleftarrow</span></td><td><code>arrow.l.hook</code></td></tr>
<tr><td><code>\leftharpoonup</code></td><td><span class="render-m">\leftharpoonup</span></td><td><code>harpoon.lt</code></td></tr>
<tr><td><code>\leftharpoondown</code></td><td><span class="render-m">\leftharpoondown</span></td><td><code>harpoon.lb</code></td></tr>
<tr><td><code>\rightleftharpoons</code></td><td><span class="render-m">\rightleftharpoons</span></td><td><code>harpoons.rtlb</code></td></tr>
<tr><td><code>\longleftarrow</code></td><td><span class="render-m">\longleftarrow</span></td><td><code>arrow.l.long</code></td></tr>
<tr><td><code>\longrightarrow</code></td><td><span class="render-m">\longrightarrow</span></td><td><code>arrow.long</code></td></tr>
<tr><td><code>\longrightarrow</code></td><td><span class="render-m">\longrightarrow</span></td><td><code>arrow.r.long</code></td></tr>
<tr><td><code>\longleftrightarrow</code></td><td><span class="render-m">\longleftrightarrow</span></td><td><code>arrow.l.r.long</code></td></tr>
<tr><td><code>\Longleftarrow</code></td><td><span class="render-m">\Longleftarrow</span></td><td><code>arrow.l.double.long</code></td></tr>
<tr><td><code>\Longrightarrow</code></td><td><span class="render-m">\Longrightarrow</span></td><td><code>arrow.r.double.long</code></td></tr>
<tr><td><code>\Longleftrightarrow</code></td><td><span class="render-m">\Longleftrightarrow</span></td><td><code>arrow.l.r.double.long</code></td></tr>
<tr><td><code>\longmapsto</code></td><td><span class="render-m">\longmapsto</span></td><td><code>arrow.bar.long</code></td></tr>
<tr><td><code>\longmapsto</code></td><td><span class="render-m">\longmapsto</span></td><td><code>arrow.r.long.bar</code></td></tr>
<tr><td><code>\hookrightarrow</code></td><td><span class="render-m">\hookrightarrow</span></td><td><code>arrow.r.hook</code></td></tr>
<tr><td><code>\rightharpoonup</code></td><td><span class="render-m">\rightharpoonup</span></td><td><code>harpoon.rt</code></td></tr>
<tr><td><code>\rightharpoondown</code></td><td><span class="render-m">\rightharpoondown</span></td><td><code>harpoon.rb</code></td></tr>
Expand Down
37 changes: 0 additions & 37 deletions impl-in-typst.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,44 +111,7 @@ <h2 id="latex-and-tex">The <code>\LaTeX</code> and <code>\TeX</code> macro</h2>
</li>
</ul>

<h2 id="floor-and-ceil">The <code>\lfloor</code>, <code>\rfloor</code>, <code>\lceil</code>, and <code>\rceil</code> macros</h2>

<p>
In Typst, there are <code>floor</code> and <code>ceil</code> functions to make the floor and ceiling symbols, respectively.
</p>
<ul>
<li>LaTeX: <code>\lfloor x \rfloor</code></li>
<li>Typst: <code>floor(x)</code></li>
<li>LaTeX: <code>\lceil x \rceil</code></li>
<li>Typst: <code>ceil(x)</code></li>
</ul>

<p>
However, you cannot use a separated left or right version of the symbols. e.g. There is no <code>lfloor</code> function in Typst.
If you really need them, you may define them directly using their Unicode characters as the following:
</p>



<ul>
<li>
Implementation in Typst
<pre><code>
#let lfloor = $⌊$;
#let rfloor = $⌋$;
#let lceil = $⌈$;
#let rceil = $⌉$;
</code></pre>
</li>
<li>
Usage example:
<pre><code>
$
y = lfloor x rceil
$
</code></pre>
</li>
</ul>

<h2 id="custom-operators">Using the <code>op</code> function to define custom operators</h2>
<p>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/tex2typst-webapp/favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" crossorigin="anonymous">
<title>tex2typst Web App - Convert LaTex formula code to Typst</title>
<script type="module" crossorigin="" src="/tex2typst-webapp/assets/app-BhnUpJAR.js"></script>
<script type="module" crossorigin="" src="/tex2typst-webapp/assets/app-DmiDX2f2.js"></script>
<link rel="stylesheet" crossorigin="" href="/tex2typst-webapp/assets/app-BB5rjhzS.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/tex2typst-webapp/favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" crossorigin="anonymous">
<title>tex2typst Web App - Convert LaTex formula code to Typst</title>
<script type="module" crossorigin="" src="/tex2typst-webapp/assets/app-BhnUpJAR.js"></script>
<script type="module" crossorigin="" src="/tex2typst-webapp/assets/app-DmiDX2f2.js"></script>
<link rel="stylesheet" crossorigin="" href="/tex2typst-webapp/assets/app-BB5rjhzS.css">
</head>
<body>
Expand Down

0 comments on commit 94be7ff

Please sign in to comment.