Quantcast
Viewing all articles
Browse latest Browse all 96

replace text sequences in stream without lua?

I have been using the wonderful markdown package from vitek novotny, but sometimes it is overkill and lualatex is slower than pdflatex, too. yet I do miss one feature from markdown even in my simple latex documents especially in the early authoring stages where I am still trying to piece together my logic flow:

I would love the two regex strings \n\*\s and \n\s+\-\s to be replaced by strings that I could specify (\noindent\rule{0pt}{20pt}$bullet$ and \hspace{4em}\rule{0pt}{16pt}$\>$). I don't start normal paragraphs this way, so this would rarely trip me up; and if it ever did, it would show immediately and I could escape it, or it would go away as I replace my points with text anyway.

Having this on-the-fly-replace in the normal latex byte stream would also mean that I would not have to write \begin{markdown}\n\* ...\end{markdown} for this simple task. (shell scripts are not acceptable, either, because I use overleaf.)

Is there a quick-and-dirty way to accomplish this?


Viewing all articles
Browse latest Browse all 96

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>