I'd like to use \marginnotes{text here} to create vertical margin notes, since for me the margin is so narrow that the margin line is broken up a lot, making it difficult to read.
I've tried the solution here: Margin note/annotation with vertical text direction in APA7 manuscript but for me that just results in one or two syllables being there, albeit vertical, and the rest being gone or off-screen.
My MWE:
% Options for packages loaded elsewhere
%\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\DeclareUnicodeCharacter{02BE}{}
\documentclass[a4paper, 12pt, oneside]{article}
\usepackage[a4paper, portrait, margin=0.9in,headheight=14.5pt]{geometry}
\usepackage{caption}
\usepackage{titling}
\usepackage[onehalfspacing]{setspace}
\usepackage{titlesec}
\titlespacing*\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
\usepackage[normalem]{ulem}
\usepackage{marginnote}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% START DOCUMENT %
\begin{document}
% START BODY %
abc text
\marginnote{expand on this?}
% \clearpage
\end{document}
Thanks :)

mymarginnotevertically to the paragraph that it's part of? Otherwise I'm not always sure which paragraph my note refers to. Thanks :) – ReaderGuy42 Jul 21 '23 at 13:19origin(see the note about this in my answer) to change the alignment. You even could add an optional argument for theoriginto\mymarginnote. And with an environment you still would have to specify, what should happen, if the paragraph is very short but the note very long, which seems to be your problem with John's answer, because otherwise you simply could use his solution. – cabohah Jul 21 '23 at 15:52