New answers tagged

0

I made a script based on the accepted answer that makes the change in-place, and backs up the old files. Check it out here: https://gist.github.com/aliparsai/46aad35544e128d72dee6cff44b2af21 #!/bin/bash ## Clean-up Comments from Latex Source Files ## Copyright (c) 2020 Ali Parsai ali@parsai.net ## ## Dependencies: sponge from moreutils, latexpand, sed, ...


1

algorithmic's \ELSIF[<comment>]{<condition>} takes two arguments, the first of which is optional. Below I've updated \algorithmiccomment to match your proposed style, and also used a \REPEAT...\UNTIL{<condition>} clause that simulates your verbatim do...until clause. The former provides the proper indentation while yours does not. \...


2

The only purpose of the figure environment is to take its content out of the main document flow, so that it can be inserted later, if you need an image mid-paragraph, you could use \includegraphcs directly in the text. So you could ask the question without the figure there at all. The following shows four possible markup styles for the sentence # This is ...


2

The comments indicate that those empty lines are ignored by LaTeX, so "and then..." are not put to a different paragraph. See the difference: % CODE 1 \documentclass{article} \usepackage{graphicx} \begin{document} This is an example paragraph... blah...blah... is an example paragraph... blah...blah... is an example paragraph... blah...blah... is an example ...


Top 50 recent answers are included