Timeline for Using square bracket in text mode
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 19, 2023 at 14:40 | comment | added | FerventHippo | The curly brackets are also needed after `\` even if not in a tabular environment. | |
| May 6, 2020 at 5:58 | history | edited | sodd | CC BY-SA 4.0 | deleted 15 characters in body |
| Jul 15, 2018 at 11:13 | comment | added | Mr. Tao | I think that stressing out hypothetical and special cases together with putting it in a footnote does not quite reflect solid tangibility of this issue. I’ve hit it just now while trying to typeset regex class [:alnum:] in a tabular environment and I would have missed it here if it would not be for @Eusebius much-upvoted comment. | |
| Dec 28, 2017 at 12:34 | comment | added | sodd | @BenCrowell Added clarification about this, but I object to your statement about my answer being "basically wrong". If you stand by this wording, I would very much like you to point out where my answer is factually wrong. You downvoted my answer because it may fail in hypothetical special cases, which in my opinion is borderline on-topic at best. | |
| Dec 28, 2017 at 12:33 | comment | added | sodd | @Eusebius True, added clarification about this. Thanks :) | |
| Dec 28, 2017 at 12:27 | history | edited | sodd | CC BY-SA 3.0 | Added clarification about special cases, since some people really like to focus on hypothetical situations not mentioned by the OP. |
| Dec 27, 2017 at 22:49 | comment | added | user6853 | This answer is basically wrong, for the reasons given by Eusebius. If you don't surround the square brackets with curly brackets, you end up with something that may work originally, but then when you make a change (e.g., defining a new command) will end up failing with one of tex's notoriously unhelpful error messages. | |
| Aug 22, 2017 at 8:30 | comment | added | sodd | To whoever downvoted; why? | |
| Aug 21, 2017 at 13:17 | comment | added | sodd | @Eusebius Technically, that's not escaping the square brackets, as they are not special characters. Placing them inside a {} group effectively hides them from the TeX token scanner, which can be necessary in certain situations. But I agree, it's a valid point when it comes to tabular or after macros. | |
| Aug 21, 2017 at 12:37 | comment | added | Eusebius | You need to escape them in some way if it comes after a LaTeX command accepting options. @Qaswed's suggestion, {[ ]}, works nicely then. | |
| Apr 20, 2016 at 9:21 | vote | accept | Francis Davey | ||
| Apr 20, 2016 at 6:34 | history | edited | sodd | CC BY-SA 3.0 | added 15 characters in body |
| Apr 19, 2016 at 15:52 | history | answered | sodd | CC BY-SA 3.0 |