# Tag Info

7

A delimiter is needed to convince the environment macro (or any other macro) that the argument list is finished and all other stuff is not to be processed by the macro itself. This delimiter is a {}, empty space is ignored. See the examples where foobar uses [...] as normal text, whereas foobaropt expects an optional argument and interpretes it that way ...

5

This is very similar to what Leslie Lamport recommends in his LaTeX: A Document Preparation System, except he advises that you enclose the entire [ ... ] in braces. It really comes to very much the same thing, by having {[ ... ]}, you are telling LaTeX that [ ... ] is to be taken separately. I suppose with {} you are almost providing insulation, if you see ...

5

The restatable environment needs to see an explicit \end{restatable} since it's actually collecting the entire environment body. As such, you need to capture the contents yourself: \documentclass{article} \usepackage{amsmath,environ} \usepackage{thmtools,thm-restate} \NewEnviron{restat}{% \begin{restatable}{theorem}{A} \BODY \end{restatable}% } ...

5

If you can use LuaLaTeX instead of either pdfLaTeX or XeLaTeX, it's possible to set up a Lua function as well as TeX macros and environments -- named \kt and ktenv in the example code below -- that perform an automated conversion of c, C, l, and L to ȼ, Ȼ, ⱡ, and Ⱡ, respectively. % !TEX TS-program = lualatex \documentclass{article} \usepackage{luacode} ...

4

The declaration \theoremstyle{theorem} is wrong: it's \usepackage{amsthm}. Then this will work: \documentclass{article} \usepackage{amsthm} \newtheorem*{newthm*}{\normalfont\scshape Newtheorem} \begin{document} I want the "Newtheorem" to look like \textsc{Newtheorem}. But instead, it looks like: \begin{newthm*} A Theorem \end{newthm*} \end{document} ...

3

The problem is that restatable is not a regular environment. Rather, it scans forward to collect the entire body of the environment and then processes it. The code for \end{restatable} is, in fact, empty. This depends on it literally finding \end{restatable} in the input stream. But since that is not in your document's source (after \begin{restatable}, it ...

3

For XeLaTeX, prepare a file ktunaxa.map containing ; TECkit mapping for TeX input conventions <-> Unicode characters LHSName "ktunaxa" RHSName "UNICODE" pass(Unicode) ; ligatures from Knuth's original CMR fonts U+002D U+002D <> U+2013 ; -- -> en dash U+002D U+002D U+002D <> U+2014 ; --- -> em dash U+0027 ...

3

Having to type \multicolumn{1}{c}{ ... } repeatedly to center-set each header cell is certainly tedious. However, setting up a shortcut macro, e.g., via \newcommand\mc[1]{\multicolumn{1}{c}{#1}} % handy shortcut macro and then writing \mc{ ... } in each header cell should be manageable, unless your table has a very large number of columns. For sure, ...

2

You can do the following, I also removed all the unneeded % which had come back:-) \documentclass{article} \usepackage{xparse} \usepackage{environ,longtable,threeparttablex,booktabs,multirow,array,adjustbox,supertabular}% table adjustment packages % change spacing/padding of long table: ...

2

One possibility using Biblatex/Biber and refsection. Note that you don't need an environment with two arguments - one is enough. You only need an environment (rather than a command) at all if you want to add stuff between beginning and end. That's not in your example, but I assume you do want it. \begin{filecontents}{author.tex} ...

2

\begin{innerEnviron} want to see an explicit \end{innerEnviron} for knowing where to stop. You can use the internal commands, instead: \documentclass{article} \usepackage{environ} \NewEnviron{innerEnviron} {INNER \BODY{} INNER} \newenvironment{outerEnviron} {OUTER \begingroup\innerEnviron} {\endinnerEnviron\endgroup OUTER} \begin{document} ...

2

You just need to use \restatable and \endrestatable as it's often the case with environments that need to grab their contents. \documentclass{article} \usepackage{amsmath} \usepackage{thmtools,thm-restate} \newtheorem{theorem}{Theorem} \newenvironment{restat} {\restatable{theorem}{important}} {\endrestatable} \begin{document} \begin{restat} A ...

2

The syntax for \begin{wrapfigure} is \begin{wrapfigure}[<number>]{<letter>}[<dimen>]{<dimen>} You can use xparse: \usepackage{xparse} \usepackage{wrapfig} \RenewDocumentEnvironment{wrapfigure}{omom} {\begin{figure}} {\end{figure}}

2

One way would be to use the needspace package Code: \documentclass[11pt]{article} \usepackage{lipsum} \usepackage{amsthm} \usepackage{needspace} \newenvironment{MyProof}{% \needspace{3\baselineskip}% \begin{proof}% }{% \end{proof}% }% \begin{document} \lipsum[1-4] \begin{MyProof} \lipsum[1] \end{MyProof} \end{document}

1

It seems, that hyperref package is not aware of new float name, so it is necessary to define it with: \def\graficoautorefname{Gráfico} Complete code (without Spanish babes, since I haven't it installed): \documentclass[11pt,a4paper,table]{report} %\usepackage[spanish,es-tabla,english]{babel} %\addto\shorthandsspanish{\spanishdeactivate{~<>}} ...

1

As mentioned in the comments to the question, defining a new command as \\\\ is impossible, because redefining \ conflicts with the existing meaning of \ used as an escape sequence. Even if \\\\ seems to be more convenient to type instead of \\[\normalbaselineskip], this is not a good coding practise (loss of readability). Use cases like adding more ...

1

There have been some major changes to chemmacros with version 5.0. The package now features a more modular structure. You can either run in backwards compatibility mode via \usepackage[compatibility=4.7]{chemmacros} Or you load \usepackage{chemmacros} (which loads the new modular structure if you version is >= 5.0) and then the required modules for ...

1

You need to leave a blank line before \end{tiny} Whenever you have a font size change that could involve line breaking you need to include the end of paragraph in the scope, otherwise the paragraph ends outside the scope when baseline spacing has reverted to the previous value

Only top voted, non community-wiki answers of a minimum length are eligible