I'm using block comments to debug some code, using the vertabim package, as in:
\begin{comment}
Commented code
\end{comment}
I have in the commented code a commented out \end{package}, as in:
tackle what is a truly global and indiscriminate
threat'\textsuperscript{{[}18{]}{[}Appendix 2{]}}}
% \end{comment}
\item[2014-09-25:]{David Cameron's speech to the UN General
Assembly\textsuperscript{{[}17{]}{[}Appendix 3{]}}}
In this case the compiler seems to be ignoring the fact that it is commented out. The text above is greyed out, but the text below is not greyed out.
I'm using TexStudio under Ubuntu.
Has anyone else come across such a thing? I've been relying on shifting the commented out areas for the debugging, and got thoroughly confused until I noticed this.
Thanks
Ian Fantom
On 03/06/2023 11:49, Ian Fantom wrote:
[...]
>> Going to CTAN (https://ctan.org) and searching for a keyword (eg
>> 'comment') will return a list of packages matching the keyword.
>
> Found it, but I don't see how to download and install a package.
The download link is on the lower left below the grey summary block,
where it says "Download the contents of this package in one zip archive"
Unzip it into the texmf/tex/latex folder in your personal TeX directory.
(If you don't have one, create it now: details at
http://latex.silmaril.ie/formattinginformation/personal.html)
Thanks, Gildas!
You've just answered my next question before I've asked it. I was wondering what is included in the distribution and what is not, so eventually I just declared the package in my code, and it seemed to work!
Perhaps I was using TexLive - I don't remember from installing it, but I'll check (probably next week).
I tried \comment ... \endcomment, but the \endcomment didn't seem to work. But \begin{comment} ... \end{comment} did.
Presumably if the package hadn't been recognised I'd have got an error message.
Regards,
Ian
--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/latexusersgroup/6faa1546-1aef-469a-9283-ef99171d3d44n%40googlegroups.com.
I've just come back to this issue - diverted onto other things - and have been still getting incomprehensible error messages when I compile.
I think something was being thrown into confusion by unmatched '{ }' brackets outside the commented areas, because now I've corrected that the errors go. However, I still get two 'bad box' messages: 'Underfull \vbox (badness 6396) has occurred while \output is active []'.
The second is the same except for the number. I'm still struggling to understand what that means, and what I can do about it.
Regards,
Ian
To view this discussion on the web visit https://groups.google.com/d/msgid/latexusersgroup/733e9743-185b-fd3a-b85a-b27599ad3f6a%40fantom.org.uk.