In the middle of the desert you can say anything you want
Fought long and hard on this till I got enlightened. The trivial stupid way works.
\providecommand{\dagtab}{%
{\textsuperscript{\dag}}
}
\providecommand{\asttab}{%
{\textsuperscript{*}}
}
% put it wherever in the table
\caption[Evaluation scores]{Scores of selected models.
\dagtab LMES tasks (shortened for brevity)
This was so easy.
\ddag double dagger also exists
! as well
… is hard and nothing worked. If it’s over the margin at least.
After trial and error I got this1.
% \centerline{
\begin{table}[t]
% \begin{center}
\footnotesize
\centering
\addtolength{\leftskip} {-2cm} % increase (absolute) value if needed
\addtolength{\rightskip}{-2cm}
% \begin{adjustbox}{center}
% \resizebox{1.0\textwidth}{!}{% Adjust the scale as needed
\begin{tabular*}{1.25\textwidth}{lrrrrrrrrr}
\hline
& LOW & WIS & cats\_bin & cats\_mc & wordalpha & wordlength & UA-CBT & UP-masked & UP-unmasked \\
\hline
BASELINE-human & 0.97 & 0.94 & 0.97 & 0.98 & 0.92 & 0.94 & 0.94 & 0.84 & 0.88 \\
BASELINE-random & 0.09 & 0.05 & 0.50 & 0.20 & 0.50 & 0.50 & 0.17 & 0.10 & 0.10 \\
Mistral-7B-Instruct-v0.2 & 0.34 & 0.19 & 0.59 & 0.71 & 0.48 & 0.71 & 0.46 & 0.75 & 0.86 \\
Ms-Inst-Ukr-SFT & 0.31 & 0.16 & 0.66 & 0.55 & 0.48 & 0.66 & 0.42 & 0.82 & 0.87 \\
Ms-Inst-Ukr-Slerp & 0.35 & 0.19 & 0.66 & 0.66 & 0.49 & 0.70 & 0.45 & 0.79 & 0.87 \\
Ms-Inst-Ukr-sherl & 0.37 & 0.19 & 0.69 & 0.76 & 0.50 & 0.75 & 0.55 & 0.88 & 0.92 \\
gpt-3.5-turbo & 0.68 & 0.34 & 0.68 & 0.91 & 0.78 & 0.89 & 0.61 & 0.77 & 0.86 \\
gpt-4-1106-preview & 0.67 & 0.39 & 0.86 & 0.93 & 0.85 & 0.95 & 0.97 & 0.96 & 0.97 \\
\hline
\end{tabular*}
% }
% \end{adjustbox}
% \caption[Evaluation scores]{\TODO{Scores of selected models}}
\label{tab:eval}
% \end{center}
\end{table}
% }
The width 1.25\textwidth
has to be manually
chosen otherwise the table lines are too
long or short for the text.
If it’s too low or too high it causes this (left is low):
As usual, when doing these things, Overleaf’s draft mode is golden.
For positioning on the page, quoting Overleaf2:
The parameter `h!` passed to the table environment declaration establishes that this table must be placed _here_, and override LATEX defaults. The positioning parameters that can be passed-in include:
`h`
Will place the table _here_ approximately.
`t`
Position the table at the _top_ of the page.
`b`
Position the table at the _bottom_ of the page.
`p`
Put the table in a special page, for tables only.
`!`
Override internal LATEX parameters.
`H`
Place the table at this precise location, pretty much like h!.
The UNLP workshop generously included a 3 months trial of Grammarly Premium, and this was interesting.
Shown in Fig. XXX
Oxford commas — Grammarly wants them, I seem to not, but I should decide on one
it specified the requirements, THE complexity of the story, … — when I list things I can’t use one article for all of them!
e.g. requires a comma only in American English
I do A LOT of errors with duplicated words (the the)
I don’t know how to spell a number of English words
Many typos are acoustical ones if I’m tired, e.g. doc instead of dog
I use too many words
it removes many of my commas
General impressions
written in python
requires Python to be capitalized!Comma after ‚i.e.‘ and ‚e.g.‘ – Business English & Übersetzungen:
They are followed by commas in American English but not in British English.
kubectl cp
failed with errors, so.
file.io - Super simple file sharing
(rapids) root@lm-eval-sh:/data/output# curl -F "file=@more.zip" https://file.io
{"success":true,"status":200,"id":"xxx","key":"xxx","path":"/","nodeType":"file","name":"more.zip","title":null,"description":null,"size":46277219,"link":"https://file.io/xxx","private":false,"expires":"xxx","downloads":0,"maxDownloads":1,"autoDelete":true,"planId":0,"screeningStatus":"pending","mimeType":"application/octet-stream","created":"2024-04-16T15:19:10.227Z","modified":"2024-04-16T15:19:10.227Z"}
Generally, free curl file sharing online - Google Suche returns many services with potential.
seaborn.barplot — seaborn 0.13.2 documentation:
passing order=[list,of,cats,in,order]
decides the ordering.
Otherwise “it will be inferred” except that it’s not always trivial to understand how exactly (or I’m too sleep-deprived).
And if I’m drawing horizontal lines on top of the bars in the barplot based on indexes then the order may be sligthly different.
With the help of ChatGPT
\documentclass{article}
\usepackage{titlecaps}
\usepackage{etoolbox}
% Specify words to remain in lowercase unless they are the first word
\Addlcwords{the and but or nor for a an at by to in on with of}
\let\oldchapter\chapter
\renewcommand{\chapter}[1]{\oldchapter{\titlecap{#1}}}
\let\oldsection\section
\renewcommand{\section}[1]{\oldsection{\titlecap{#1}}}
\let\oldsubsection\subsection
\renewcommand{\subsection}[1]{\oldsubsection{\titlecap{#1}}}
\begin{document}
\section{an example of a section with and without uppercasing specific words}
This is some text.
\subsection{exploring the integration of tools in the workplace}
More text here.
\end{document}
The same thing can have multiple names and that’s alright!
\label{old-subsection-name-maybe-linked-to-elsewhere}
\label{sec:eval-task-2}
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
symbols - What is the best way to use quotation mark glyphs? - TeX - LaTeX Stack Exchange:
``this'' / `this' is the proper way
"this"/'this' produces two closing quotes and 'is annoying to readers'
There’s also CTAN: Package csquotes that ‘is fantastic’, including smartly doing nested quotes, correct quotes for diff languages, and ‘generally always doing what you want it it’:
\usepackage[autostyle]{csquotes}
...
\enquote{My quoted text}
Another answer suggests
\newcommand{\q}[1]{``#1''}
...
\q{whatever}
I’ve been using more custom latex commands lately and this goes in that direction.
I guess creating a \q
that does autoquotes w/ csquotes is the way to go?