New answers tagged

0

I fixed it by replacing \lstlistoflistings with: {% \renewcommand{\cftfigurename}{\listingname\space} \lstlistoflistings }


2

In both cases you get the error ! File ended while scanning use of \TX@get@body. In the first case LaTeX is looking for \end{tabularx}, which it doesn't find because it's hidden inside \end{solution}. In the second case \tabularx makes LaTeX look for \end{tcolorbox}, which is the parent environment when \tabularx is processed, but the problem is the same, ...


1

I found an alternative way, by "reconstructing" tcolorbox using framedmd: % in Preamble: \usepackage[framemethod=TikZ]{mdframed} \newenvironment{solution} { \mdframed[roundcorner=7pt,backgroundcolor=gray!10,linewidth=1.5pt] \tabularx{\textwidth}{lX} } { \endtabularx \endmdframed }


5

This exploits that atbegshi, which is loaded by eso-pic, puts the contents of the page in a box, \AtBeginShipoutBox. This box can be copied. The following is a proof of principle and works regardless of tcolorbox. It does, however, assume that the user is careful enough to confine the stuff on the left side of the page. There are many ways in which one can ...


1

Something like that: \documentclass{article} \usepackage{scontents} \pagestyle{empty} \setlength{\parindent}{0pt} \begin{document} \section{Definitions} Some text here... \begin{scontents}[print-env=true,store-env=definitions] First definition stored in memory. \end{scontents} More text here... \begin{scontents}[print-env=true,store-env=definitions] ...


2

\global can only be used before a tex primitive assignment. If you use it before a macro then it will perhaps make the first internal assignment in that macros expansion global, or it may do nothing or it may generate an error, depending on the internal implementation of the macro. Certainly for a coffin that requires several linked assignments for the box ...


1

If i understand you correct, this might be the answer: \declaretheorem[numberwithin=section, frame,name=la definitione]{definition} (again) straight from the documentation... http://tug.ctan.org/macros/latex/exptl/thmtools/thmtools.pdf (1.1 Elementary definitions) To save you from having to look up the name of the key every time, you can also use “title=...


1

Edit after OPs edit: This should work in this case: \documentclass{beamer} \newcommand{\Lspacer}{\columns[t]\column{.02\textwidth}\column{0.96\textwidth}} \newcommand{\Rspacer}{\column{.02\textwidth}\endcolumns} \let\olddocument\document \let\oldenddocument\enddocument \renewenvironment{document}% {\olddocument\begin{frame}[t]\vfill\par% \Lspacer% ...


1

In your specific example, defining a new environment like aa won't work since the environment aa is defined by \aa and \endaa, and the former (\aa) is already defined by default as Angstrom. You could create \newproblemset to completely ignore whether a command is already defined using the following definition: \newcommand{\newproblemset}[1]{% \...


2

\newcommand{\newproblemset}[1]{\newenvironment{#1}{}} is missing the third argument to \newenvironment which isn't necessarily an error if you provide the argument when calling \newproblemset (although odd that you just supply the end code not the start code). This runs without error and produces \documentclass{article} \newcommand{\newproblemset}[1]{...


3

There is a package for this: \documentclass[10pt]{article} \usepackage{comment} %\includecomment{forshort} \excludecomment{forshort} \begin{document} Something in the whole course. \begin{forshort} Just a summary... \end{forshort} \end{document}


1

You can do it more straightforwardly: \documentclass{amsart} \usepackage{refcount} \usepackage{hyperref} \newtheorem{unused}{Unused}[section] % base \newcounter{dunused} \makeatletter \newcommand{\mynewtheorem}[2]{%token, name, \newtheorem{#1}[unused]{#2}% \newtheorem{inner#1d}[dunused]{#2}% \newenvironment{#1d}[1] {% \renewcommand{\...


1

Even with the example from your own answer I still get some warnings into the .log-file: pdfTeX warning (ext4): de stination with the same identifier (name{test.1.1}) has been already used, dupl icate ignored [...] pdfTeX warning (ext4): destination with the same identifier (name{thm.1.2}) has been already used, duplicate ignored In my opinion these "...


0

Ok it's a little embarrassing, apologies to @UlrichDiez who probably spotted this and then took my bad reply. So I added in some of my old code and slowly got more hints what was wrong. It turned out I had the idea of #1 and ##1 the wrong way around. The counter issue was still a problem, but somehow adding the alias counter (from original code) helped the ...


0

Textpos isn't designed to place textblock environments on pages other than the current one, so I think that's a non-starter for your particular problem. I've added an answer to your linked question, which might be helpful.


1

You are not providing any screenshot for Example style, so I've defined my own, and the codings are : \newenvironment{example}{\bgroup\par\noindent\textbf{Example}\par% \[}{\]\egroup} Please paste the above codings after \begin{document} and then try...


0

If I understand the question correctly, something like: \documentclass[12pt,a4paper]{report} \pagestyle{plain} \usepackage{mathtools} \usepackage{graphicx} \usepackage{setspace} \usepackage[shortlabels]{enumitem} \usepackage{multicol} \makeatletter \newcommand{\skipitems}[1]{% \addtocounter{\@enumctr}{#1}% } \newcommand\startval{\ifodd\value{enumi} 1 \...


0

Try to use center environment like this: \begin{center} Section title \end{center} or the command centering like this : \begingroup \centering \colorbox{mygrey} { {\rlap{\MakeUppercase{\bf #1}}\hspace{\linewidth}\hspace{-2\fboxsep}} Section title } .... ....


0

Updating biblatex to version >= 3.13 solves the issue. See the question referenced as duplicate.


Top 50 recent answers are included