# Tag Info

9

Something like this? I used tikz drawings, but this could be replaced by \includegraphics commands of course and a enumitem new list with a special counter named shapeenum has been defined with \AddEnumerateCounter, which selects the shapes according to the value. Due to the internals of enumitem, the shape commands must be robust, i.e. use ...

7

Since the OP wants a variety of unspecified icons, I'll leave the actual specification of those images to the OP. However, what I do here is create a custom environment geonumerate and the ability to specify item types with \newitem{<Name>}{<content>} When \itemName is called inside the geonumerate environment, it scales a version of ...

5

Here's an example use of the mentioned tcolorbox package for you: Output Code \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage{blindtext} \usepackage{tcolorbox} \usepackage{tikz} \usetikzlibrary{shapes} \tcbuselibrary{skins,breakable} \newcounter{example} \newtcolorbox[use counter=example]{defi}[3][]{% enhanced, breakable, drop fuzzy ...

4

How about something like this? This uses minipages as the tabular doesn't really seem appropriate here. The environment altassumption becomes a command \altassumption{}{} which takes 2 arguments. \documentclass[12pt]{article} \pagestyle{plain} \usepackage[margin=1.8cm]{geometry} \geometry{a4paper} \usepackage[parfill]{parskip} \usepackage{setspace,array} ...

4

Nice question, with an answer that's not going to be short, even if a short answer to the question “can I use the macro form of an environment?” would be possible, quoting Marcel Marceau in Mel Brooks' “Silent Movie”: NON. First of all, I recall that \newenvironment{foo}[<n>]{<start>}{<end>} defines the macros \foo and \endfoo, but just ...

3

Like this? \documentclass{article} \usepackage{xcolor} \newcommand{\sectioncolored}[3]{% \section{\textcolor{#1}{#2} #3}% } \makeatletter \def\entrylistsplitfirst#1 #2\@nil{#1} \def\entrylistsplitsecond#1 #2\@nil{#2} \newenvironment{entrylist}[2]{% \edef\tempa{\expandafter\expandafter\expandafter\entrylistsplitfirst #2\@nil}% ...

3


3

Of course you get an error: if you want to use scrartcl you have to call \usepackage[nochapters]{classicthesis} However your redefinition of \spacedlowsmallcaps makes no sense: \renewcommand{\spacedlowsmallcaps}[1]{\SC{#1}} is probably what you want. There is no need to do tricks, though. \documentclass[10pt,letterpaper]{scrartcl} ...

2

What matters is that space be added if another section (or similar) follows. Hence, it works to add space before the heading and that is what LaTeX does. So you just want to increase that spacing. It is quite possible to add space which will not affect the typesetting of the first section, for example, because TeX knows spacings of many kind. Stretchy ...

2

Perhaps this is a solution: \gobble the content away with a \RenewEnviron{proof}{}{} that has no \BODY command, i.e. the \BODY is 'thrown away'. I used the first proof environment to show some content and then redefined proof, the second content isn't display any longer then. \documentclass{article} \usepackage{amsthm} \usepackage{environ} ...

2

It's possible to use a new counter that is checked at the start-up code of the environment. If the counter is equal to zero, all is fine, increase the counter to indicate that is zero not any longer, if the counter is not zero right from the start (because it has been increased already) issue an error message. At the end of the environment the counter is ...

2

Fundamentally \newenviroment{<env>}[<args>]{<begin>}{<end>} defines two macros: one associated with the start of the environment and one with the end of the environment, simplistically turning \begin{<env>}[<args>] ... \end{<env>} into \<env>[<args>] ... \end<env> However, using the ...

1

Apparently the issue has nothing to do with magyar. Neither \checktoopen nor \tttypeout{} seem to be defined in any of the packages included or in the article class. Environment (re)definitions take the form \renewenvironment{name}{before}{after}, where the after part specifies the code to be included whenever \end{name} is called. Your definition is ...

1

It is better to ask template question by using the ask a question button, where you can be sure that someone familiar with the templates handles your question. The language definition file for hungarian does not define a hungarian string for abstract. You gotta define one yourself. \def\magyarOptions{defaults=safest} ...

1

Most latex commands are not safe in \xdef (which is why latex has a \protect mechanism and \protected@edef) but here you just want \let I think and don't need to expand \BODY at all. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage{environ} \usepackage{etoolbox} %%Environments %Liederbuchumgebung ...

1

Definitions are usually made with a theorem package like amsthm. On the other hand, if you are not sure if you want some more fancy stuff later on, i would start with something based on tcolorbox. The example shows the default box, it can be customized in various ways, to look more simple or to look even much more fancy. \documentclass{article} ...

1

A bit old, but as I just thought about this problem in another context. You can try this to suppress the parindent even if there is an empty line after the code: \documentclass{article} \usepackage[many]{tcolorbox} \makeatletter \let\@oridoenpe\@doendpe \def\@newdoendpe{% \@endpetrue \def\par{\@restorepar\global\let\@doendpe\@oridoenpe ...

1

Try using ntheorem and the nonumberplaintheorem style. The placement of endmarks is automatic (even if the environment ends up in displayed equations). Here is a possible code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{lipsum} \usepackage{amsmath} \usepackage[thmmarks, amsmath, ...

1

SAS software has a suite which it calls Output Delivery System (ODS) In versions up to 8, the output file (myprogram.lst) was always a text file. ODS supports named output to several popular vendor formats, notably *.pdf and *.rtf, etc., and LaTeX. This page describes the basics of creation of an output file that is *.tex. ...

1

This is useless code golfing ;-) section is no environment, it's a command,as such, an \endsection is not defined automatically, contrary to a 'real' environment which has been set up with, say, \newenvironment{foo}, then \endfoo does exist. It's possible to abuse LaTeX's environment facilities completely by using \renewenviroment{section} and omitting the ...

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