Tag Info

Hot answers tagged

7

This typesetting task seems to be handled most easily with a tabular environment. In the code below, I load the array package to set up separate formatting directives for columns 1 and 3 (automatic italics mode) and for column 2 (automatic math mode). Doing this makes it unnecessary to insert lots of $ symbols and \itshape directives in the body of the ...


7

You can use align* for this. \documentclass{article} \usepackage{mathtools,calc} \newcommand{\ent}[1]{\mathit{#1}} % `entity' \newcommand{\alt}[1][\to]{\mathrel{\mathmakebox[\widthof{$#1$}]{\vert}}} \begin{document} \begin{table} \caption{Recursive definition of a formula} \label{fig:formula} \begin{align*} \ent{Formula} &\to ...


3

It's not really well documented in algorithm2e manual, but to achieve what you want, you have to issue the command \SetProcNameSty{textsc} The argument of \caption when using the procedure environment can only contain something like name(arg). In the following MWE I've also added \SetProcArgSty{textsc} just in case you are using procedure captions ...


3

Supposing you are only using the amsthm package in your document, this is how it can be done. If you want this behavior only for the "plain" theorem style, add the following lines in your preamble to re-define the plain style: \makeatletter \renewcommand{\th@plain}{% \renewcommand\@upn{\textit}% \itshape% } \makeatother and you're done. MWE ...


2

If you're using no package specialized in theorems, you can do \documentclass{article} \usepackage{etoolbox} \makeatletter \patchcmd{\@opargbegintheorem}{#2}{\textit{#2}}{}{} \patchcmd{\@begintheorem}{#2}{\textit{#2}}{}{} \makeatother \newtheorem{thm}{Theorem} \begin{document} \begin{thm} Something \end{thm} \end{document}


2

I would patch this setup by adding a macro \Glsheading that retrieves a capitalized version of the long acronym description. So, you could say something like \section{\Glsheading{test}} In the glossaries package those things are accomplished with token registers. For your purpose it will be sufficent to store the relevant information into a macro. Hence a ...


2

Here is a way with ntheorem package. I redefine the plain style: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amsfonts} \usepackage[amsthm, thmmarks, thref]{ntheorem} \usepackage{cleveref} \makeatletter \renewtheoremstyle{plain}% {\item[\hskip\labelsep \theorem@headerfont ...


1

What you are asking for is basically, how do i get an invoice in the first doc. The answer is surprisingly simple, just load the package. \begin{filecontents}{mikeBlendDocs.lco} \ProvidesFile{mikeBlendDocs.lco}[% 2014/12/18 v0.1 LaTeX2e unsupported letter-class-option] \setkomavar{fromname}{From Name} \setkomavar{fromaddress}{From Address} ...



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