4

You could load package scrextend: \documentclass{report} \usepackage{lipsum} \usepackage{scrextend} \begin{document} \lipsum[1] \begin{addmargin}[2cm]{1cm} \lipsum[2] \end{addmargin} \lipsum[3] \end{document}


3

Let's analyze what happens. Your footnotepar environment does essentially nothing, except grouping the text inside it. At \end{footnotepar}, TeX executes \endgroup and this undoes all settings done inside the environment, including \fontsize{8pt}{8pt}\selectfont. This doesn't affect the size of the characters, because they have already entered TeX's ...


2

amsthm provides a starred version of \newtheorem that substitutes the specified argument for the usual numbered heading. So this definition would produce the heading you want: \theoremstyle{definition} \newtheorem*{axch}{Axiom of Choice} Of course, the heading is now fixed, so if a different "specific" heading is wanted, a separate \newtheorem* is needed. ...


2

You can do it with amsthm (better than ntheorem, in my opinion). \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{xparse} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{inneraxiom}{Axiom} \newtheorem*{inneraxiomnonumber}{\axiomname} \providecommand{\axiomname}{} \makeatletter \NewDocumentEnvironment{axiom}{o} ...


2

It is very easy with ntheorem which defines the empty and emptybreakstyles. These styles define no counter nor header: only the optional argument is printed. \documentclass[11pt]{article} \usepackage{ntheorem} \theoremstyle{empty} \theoremheaderfont{\bfseries\upshape} \theorembodyfont{\itshape} \setlength{\labelsep}{0pt} \newtheorem{named}{} \theoremstyle{...


2

You need to look at the first error: ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.8 \begin{d ocument} ? What's the problem? The terse documentation of the package states % \newenviron<...


2

In order to remove the truncation, I have removed the center environmant as well as some class options in the following example. In order to remove the underfull box warning, I have also changed the width of the minipage from 1cm to \linewidth. With this setting the minipages automatically inherits the width of the p tpe column that it is used in. \...


2

Possibilities open up. Not an answer, but the potential of an extension: the rubification of Hittite text (and also Old Persian, Ugaritic and so on). Using a mapping file with a "plain" text input methodology, so that egreg's environment takes care of 's' and 'h' and, with an addition, doubled vowels become single-letter acute, and then compiling with ...


2

The enumerate wants to see an explicit < so we need to expand the argument first. \documentclass{beamer} \usepackage{xparse} \usepackage{pgfplots} \usepackage[T1]{fontenc} %%% without that the < > appear as inversed ! and ? \pgfkeys{ /enume/.is family, /enume/.cd, default/.style = {opt = empty}, opt/.estore in = \theopt, } \...


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...


1

After the \everypar processing of the second paragraph, with the document as posted you have essentially \speakify L: Of course I will answer gladly all questions you might have no matter how silly I feel they may be provided payment is made in full before commencement of the answering phase.\end{interview} \end{document} Now \...


1

Maybe you are more satisfied with the following layout: \documentclass[letterpaper]{article} % a4paper for A4 \usepackage{enumitem} \setlist[itemize]{leftmargin=*} \usepackage{array} \usepackage{booktabs} \usepackage{calc} \setlength{\tabcolsep}{10pt} \newenvironment{experience}{% \begin{tabular}{|l|l|r|}} {% \end{tabular} } \newcommand{\...


1

This uses a similar approach to LokiRagnarok's answer and assumes you'll always end your myEnv environment with an \autocite (or similar; change as necessary). \documentclass{article} \usepackage{biblatex} \newenvironment{myEnv} {\let\oldautocite\autocite \renewcommand{\autocite}{\unskip ''~\oldautocite}% ``\ignorespaces} {\par} \addbibresource{...


1

You can exploit regular expressions: \documentclass{article} \usepackage{biblatex} \usepackage{xparse} \ExplSyntaxOn \NewDocumentEnvironment{myEnv}{b} { \tl_set:Nn \l__razorhall_myenv_tl { #1 } \regex_replace_once:nnN { (.*) (\s\c{autocite}.*) \Z } { ``\1''\c{nobreakspace}\2 } \l__razorhall_myenv_tl \begin{quote} \tl_use:N \...


1

Seeing that this question has been reopened, I’ve thought that, after all, I could elaborate on this comment and offer a solution that relies only on the amsthm package. As Barbara Beeton has already remarked in her answer, the *-form of the \newtheorem command does not create a counter associated with the environment being defined, and so yields theorems (...


1

This is another solution where as many as needed styles are defined as new tcolorboxes. To save some typing, a paramètric general style is defined and used inside the newtcolorbox definitions. If you need a particular style which has not been defined, you can always use the default parameter to adjust the design (see third box based on second one) \...


1

Does this suffice? Here, a second environment repeatcb uses the most recent image from mycb. Alternatively, there is a mycbB environment, that calls on mycb with a particular (oft-used) image. \documentclass{book} \usepackage{xcolor} \definecolor{maincolor}{HTML}{1A1279} \usepackage{lipsum} \usepackage{graphicx} \usepackage[most]{tcolorbox} \def\...


1

You can use specialized packages, besides not using preview and simply typeset the table. Instead of a minipage where the width needs to be guessed, use a nested tabular. \documentclass[margin=4]{standalone} \usepackage{booktabs} \usepackage{chemfig,chemformula,siunitx} \usepackage{filecontents} \usepackage[scaled]{helvet} \begin{filecontents}{methane.tex}...


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