In the middle of the desert you can say anything you want
Margin notes - Overleaf, Online-LaTeX-Editor:
\marginpar{text} is the vanilla option, but this works in all cases ever:
\usepackage{marginnote}
\marginnote{text}
EXCEPT I couldn’t find a way to add footnote markers to have numbered margin notes separate from the real footnotes.
But this solves everything, quoting directly1:
\newcounter{mgncount}
\renewcommand\themgncount{\arabic{mgncount} }
\newcommand\marginfootnote[1]{\refstepcounter{mgncount}\marginpar{{$^\themgncount$}#1}\footnotemark}
\begin{document}
Can we put a footnote with number in the margin and a number in the text?\marginfootnote{There's a number here!}
Another test\marginfootnote{Working!}
One more try\marginfootnote{Successful!}
\end{document}
EDIT: actually it doesn’t and uses the number from footnotes in the text itself. :(
Ah, the sidenotes package exists:
https://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/sidenotes/sidenotes.pdf
But uses only 1…3-type numbers.
Yes this is it! CTAN: Paket sidenotesplus
%\usepackage{sidenotes}
\usepackage[mark=Alph]{sidenotesplus}
...
\sidenote{does basically what footnote does}
It has a lot of options and can do a lot of things, yes, this is it, it’s perfect. The example page has everything: https://ctan.math.illinois.edu/macros/latex/contrib/sidenotesplus/tests-sidenoteplus.pdf
See also CTAN: Marginal topic.
marginpar - Footnote and number in margin - TeX - LaTeX Stack Exchange
Punctuation
word~/cite{xxx}.sentence.\footnote{}1
sent~\cite{}.\footnote{}\enquote{} with italics for longer sentences.)Bits
Not bits
====== Open research questions:
SH, [10 Apr 2024 14:58:39] LMES — дослідити robustness моделей, і наприклад глянути яка залежність accuracy людей і ШІ в залежності від мммм різниці в довжині слів чи номеру слова (“яке стотринадцяте слово в реченні …”) CBT-UA — нормально evaluate, а ще для людей і машин — глянути scores якщо давати тільки challenge segment. Я це тестив з нейромережами (не попало в paper), але там дуже часто були кращі результати з фрагментом ніж з усією казкою
SH, [10 Apr 2024 14:59:57] Зробити датасет по biases і фемінітивам, у мене написаний код для генерації нульової версії, там по суті речення типу “моя жінка займається програмуванням компʼютерних систем, тобто за професією вона — ….”
SH, [10 Apr 2024 15:00:20] Мрія всього життя таки зробити Russian-Ukrainian interference dataset на предмет русизмів та російських помилок
SH, [10 Apr 2024 15:02:57] UA-CBT — взяти казки з project Gutenberg, взяти іноземні казки перекладені українською, і порівняти scores моделей на тасках по казкам з цих різних джерел. Можна забити на фільтрацію, чисто зробити human baseline на частині згенерованого датасету. Так можна зробити нереально великий датасет і знати що там максимум умовнио 80% бо 20% тасків сміття
Also:
\autoref is like \ref but it adds the word, not just the number. 3.2 -> Figure 3.2 :
cross referencing - What’s the difference between \ref and \autoref? - TeX - LaTeX Stack Exchange
j
Wrapping stuff in this command makes it stand out; also greppable by TODO which removes the need to remember commands
\newcommand{\TODO}[1]{{\color{magenta}#1}}
Previously:
Is there a suggested way of debugging dataset generators? - 🤗Datasets - Hugging Face Forums
Instead of committing etc. every time, one can clone the dataset path locally through git and then point load_dataset() to that local folder with the dataset script file!
Random nugget from Document to compress data files before uploading · Issue #5687 · huggingface/datasets:
- gz, to compress individual files
- zip, to compress and archive multiple files; zip is preferred rather than tar because it supports streaming out of the box
(Streaming: https://huggingface.co/docs/datasets/v2.4.0/en/stream TL;DR don’t download the entire dataset for very large datasets, add stream=true to the load_dataset() fn)
Til from NASA’s (!) docs1 that there are two sub-levels after subsubsection:
\subsubsection{Example Sub-Sub-Section}
\label{sec:example-subsubsection}
\ref{sec:example-subsubsection} is an example of \texttt{subsubsection}.
\paragraph{Example Paragraph}
\label{sec:example-paragraph}
\ref{sec:example-paragraph} is an example of \texttt{paragraph}.
\subparagraph{Example Sub-Paragraph}
\label{sec:example-subparagraph}
\ref{sec:example-subparagraph} is an example of \texttt{subparagraph}.
I so needed them!
Got bit by this.
random — Generate pseudo-random numbers — Python 3.12.2 documentation
random.sample()) IS WITHOUT REPLACEMENT: no duplicates unless present in list
(random.shuffle())random.choices()) IS WITH REPLACEMENT: duplicates MAY happen.Also:
random.shuffle() works in-place. Sampling len(x) is a way to shuffle immutable lists.jq -s '.' input.jsonl > output.json
jq -c '.[]' input.json > output.jsonl