2023-01-26 12:08:23 +02:00
|
|
|
\documentclass[a4paper,colorlinks,linkcolor=blue]{artikel3}
|
|
|
|
\usepackage[english,finnish]{babel}
|
|
|
|
\usepackage{hyperref}
|
2022-08-30 18:50:41 +03:00
|
|
|
\begin{document}
|
2023-01-26 12:08:23 +02:00
|
|
|
\hypersetup{urlcolor=blue}
|
|
|
|
|
2023-01-26 14:11:30 +02:00
|
|
|
Tämän repon pääosoite on \url{https://git.piraattipuolue.fi/mikaela/testi}
|
|
|
|
|
2023-01-24 13:37:46 +02:00
|
|
|
\section*{Testirepo For\^gejon ominaisuuksille}
|
|
|
|
|
|
|
|
For\^gejo on Gitea-forkki, joten tällä sivustolla puhutaan välillä Giteasta kun tarkoitetaan For\^gejoa.
|
|
|
|
|
|
|
|
Tässä repossa on mukana myös:
|
|
|
|
|
|
|
|
|
|
|
|
\begin{itemize}
|
|
|
|
\item ChatGPT:llä leikkimisen tuloksena syntyneitä \LaTeX -asiakirjoja, joista voinee ehkä ottaa mallia tulevaisuudessa.
|
|
|
|
\item Git submoduuli-testi, josta löytyy taidokkaampi StreetComplete-flaikku.
|
|
|
|
\end{itemize}
|
|
|
|
|
2023-01-26 12:11:29 +02:00
|
|
|
\subsection*{Kysymyksiä}
|
2023-01-24 13:37:46 +02:00
|
|
|
Voinko kirjoittaa \LaTeX ia?
|
|
|
|
Vastaus vaikuttaa olevan kyllä!
|
|
|
|
|
|
|
|
Miten hattu toisinpäin tehdään?
|
|
|
|
Mia\u{u}.
|
|
|
|
|
2023-01-26 12:08:23 +02:00
|
|
|
\selectlanguage{english}
|
|
|
|
|
|
|
|
\section*{Briefly in English}
|
|
|
|
|
2023-01-26 14:11:30 +02:00
|
|
|
The canonical address for this repository is \url{https://git.piraattipuolue.fi/mikaela/testi}
|
|
|
|
|
2023-01-26 12:08:23 +02:00
|
|
|
This repository is for testing For\^gejo features, mainly \LaTeX\ rendering.
|
|
|
|
And to that end I have played a lot with ChatGPT so I have fun documents to maybe take inspiration from in the future.
|
|
|
|
|
2023-01-26 12:10:08 +02:00
|
|
|
\subsection*{How do you render \LaTeX\ in For\^gejo?}
|
2023-01-26 12:08:23 +02:00
|
|
|
|
|
|
|
You will need to edit app.ini (note the path of basic.html):
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
[markup.latex]
|
|
|
|
ENABLED = true
|
|
|
|
FILE_EXTENSIONS = .tex,.latex
|
|
|
|
# docs maybe suggest adding --katex, but is anyone doing math? https://docs.gitea.io/en-us/external-renderers/
|
|
|
|
RENDER_COMMAND = "timeout 30s pandoc -f latex -t html --self-contained --template /etc/gitea/basic.html"
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
And basic.html
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
|
|
|
|
|
|
|
|
$for(include-before)$
|
|
|
|
$include-before$
|
|
|
|
$endfor$
|
|
|
|
$if(title)$
|
|
|
|
$title$
|
|
|
|
$if(subtitle)$
|
|
|
|
$subtitle$
|
|
|
|
$endif$
|
|
|
|
$for(author)$
|
|
|
|
$author$
|
|
|
|
$endfor$
|
|
|
|
$if(date)$
|
|
|
|
$date$
|
|
|
|
$endif$
|
|
|
|
$endif$
|
|
|
|
$if(toc)$
|
|
|
|
$idprefix$TOC
|
|
|
|
$if(toc-title)$
|
|
|
|
$toc-title$
|
|
|
|
$endif$
|
|
|
|
$table-of-contents$
|
|
|
|
$endif$
|
|
|
|
$body$
|
|
|
|
$for(include-after)$
|
|
|
|
$include-after$
|
|
|
|
$endfor$
|
|
|
|
\end{verbatim}
|
|
|
|
|
2023-01-26 12:20:28 +02:00
|
|
|
This is adjusted from \texttt{pandoc -D html} (mainly stripping HTML and HEAD), by improving it, it could likely look even better.
|
2023-01-26 12:08:23 +02:00
|
|
|
|
|
|
|
Could this be better?
|
|
|
|
I would like to give For\^gejo command to render as pdf, see
|
|
|
|
\href{https://github.com/go-gitea/gitea/issues/17635}{Gitea\#17635: External renderers to PDF}.
|
|
|
|
|
2022-08-30 18:50:41 +03:00
|
|
|
\end{document}
|