# Tag Info

0

The other answer only works for some of the predefined shapes (for example, runin as in the question), but will fail in some cases (display, or block, see example at the bottom). The proper way to do these kind of additions (see the titlesec documentation, Section 4.4. Putting a Dot after the Section Title, page 12) is to define a command with a mandatory ...

4

Use the optional argument of titleformat meant for after code: \titleformat{\subsubsection}[runin]{\normalfont\bfseries}{\thesubsubsection.}{3pt}{}[:] %%<--- this one Code: \documentclass{article} \usepackage{titlesec} \titleformat{\subsubsection}[runin]{\normalfont\bfseries}{\thesubsubsection.}{3pt}{}[:] \begin{document} \section{Section one} ...

3

Based on my answer at How are big operators defined?. I provide two versions, depending on whether you want it large in \displaystyle or to keep it text-size in that style. It is made to occupy the same vertical size as the summation operator, and should behave as such for the purpose of its indices. \documentclass{article} \usepackage{amsmath} ...

4

Here is an option using \mathchoice, where you can adjust the parameters to suit your needs: \documentclass{article} \usepackage{amsmath,graphicx} \DeclareMathOperator*{\fancysum}{% \mathchoice% http://tex.stackexchange.com/q/148740/5764 {\raisebox{-.325\height}{\scalebox{2.2}{$\mathcal{S}$}}}% \displaystyle ...

6


3

This solution is based on one of egreg's answers: http://tex.stackexchange.com/a/136133/46716 and uses xparse from the LaTeX3 Project. It defines a command \spell which takes as optional arguments the examples separated by a semi-colon. \documentclass{article} \usepackage{xparse} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \ExplSyntaxOn ...

5

Use longtable \documentclass{article} \usepackage{lipsum} \usepackage{mathrsfs,amsmath} \usepackage{longtable} \begin{document} \lipsum[1-2] \begin{longtable}{ | l |l | l | l |l|} \hline $D$ & $\text{C}$ & $\text{ A }$ & $\text{ B } \mathscr{E}_{n_2(i)}$ & $\text{ E }$\\ \hline \endfirsthead % \multicolumn{5}{l}% {{\bfseries ...

1

% arara: pdflatex \documentclass{article} \usepackage[english]{babel} \usepackage{microtype} \usepackage{caption} \usepackage{booktabs} \usepackage{array} \usepackage{longtable} \usepackage{ragged2e} \usepackage{calc} \begin{document} ...

4

Here's one possibility (I took care of two levels of nesting but the same idea will also apply to the third level): \documentclass{beamer} \usepackage{tikz} \usepackage{etoolbox} \definecolor{enumitem}{RGB}{31,51,87} \makeatletter \AtBeginEnvironment{enumerate}{% \apptocmd{\@item}{% \tikz[overlay]\draw[gray!60] ([yshift=-0.5ex]0,0) -- ...

0

Let me cite from the 2010 article by Hofert and Kohm (Scientific Presentations with LaTeX): We [...] feel that some of the more elaborate features provided by these packages are overused. One good example of this is the overlay feature which reveals each of the items of a list in sequence. In our experience, the lighting conditions at conferences are ...

0

These settings do a pretty good job (based on Lev Bishop's answer) for the impatient: \documentclass[12pt, oneside]{...} \usepackage[a6paper,margin=0pt]{geometry} \usepackage[pdftitle={Title},pdfauthor={First Last},colorlinks=true]{hyperref} \renewcommand{\familydefault}{\sfdefault} Unfortunately, Kindle keyboard does not pick up the Title and Author ...

5

Here is a suggestion without titlesec. Note, that the code needs KOMA-Script version 3.15 or newer. \documentclass[a4paper,chapterprefix]{scrbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{xcolor} \colorlet{chaptercolor}{blue!80!black} \setkomafont{chapter}{\normalfont\color{chaptercolor}\Huge} ...

0

I found a solution to achieve the coloring of all elements: I just added \color{myblue} with a predefined color to the settings of the fonts. \titleformat{\chapter}[display] {\normalfont\Large\raggedleft\color{myblue}} {\MakeUppercase{\chaptertitlename}% \rlap{ \resizebox{!}{1.2cm}{\thechapter} \color{myblue}\rule{15cm}{1.2cm} } } {10pt}{\Huge} The next ...

3

Here are some steps you can take to alleviate this problem. You can combine them as you wish to meet your needs: Reduce the margins. You are already using geometry to set your margins to 1 inch. You can reduce this for all the margins using the margin key you're already using, but geometry also provides keys for setting the horizontal and vertical margins ...

3

Something like this? I've defined a new glossary style myaltlistgroup based on altlistgroup: \newglossarystyle{myaltlistgroup}{% \setglossarystyle{altlistgroup}% \renewcommand*{\glsgroupheading}[1]{% \pagebreak% \item\makebox[\linewidth]{\Large\textbf{\glsgetgrouptitle{##1}}}% \vspace*{-\baselineskip}% ...

3

I wasn't able to replicate the cascading indentation with the MWE you provided, but I've identified some problems with your MWE and provided a working version. Watch out for these: You can't put a . after a length, so I changed \usepackage[margin=1in.]{geometry} to \usepackage[margin=1in]{geometry}. linguex doesn't use \begin{exe} (that's from gb4e), but ...

7

Below I show two possibilities: one using some customized theorem styles and the other one redefining the counters. Using some customized theorem styles plainboxed and definitionboxed which basically place the number inside a \fbox; a new command \thref was also defined so the cross-references are also boxed (\swapnumbers shouldn't be used anymore): ...

3

You could load the chngcntr package and insert the instruction \counterwithout{equation}{section} in the preamble.

5

A solution that optionally does conversion of the input given in decimal form; I can think to other improvements. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\printnumber}{O{}m} { \group_begin: \keys_set:nn { lauhub/printnumber } { #1 } \lauhub_print_number:n { #2 } \group_end: } \tl_new:N \l_lauhub_number_tl ...

3

It requires the output to be set in a fixed-width font (which some would consider preferable). I do it by successively trimming the output of \padzeroes, using \chop{number}{string}. \documentclass{article} %\usepackage[utf8]{inputenc} %\usepackage[T1]{fontenc} \usepackage{fmtcount} \usepackage{trimclip,ifthen} \newsavebox\numberbox \newlength\boxoffset ...

1

Use an array environment, like this. (Edit: like Manuel suggested too.) \documentclass{article} \begin{document} $\begin{array}{lcccr} \l \cdot e \cdot f \cdot t & = & c+e+n+t+e+r & + & 2\pi \\ foo & = & bar & + & 1 \end{array}$ \end{document}

7

A solution with the shaded environment of the package framed: \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{framed} \definecolor{shadecolor}{named}{LightGray} \begin{document} Wikipedia claims \begin{shaded} \noindent The fundamental theorem of a field of mathematics is the theorem considered central to that field. The ...

8

Same as David's but more elaborate and with a picture ;-) \documentclass{article} \usepackage{xcolor} \usepackage{lipsum} \newcommand{\highlight}[1]{% \par\noindent \colorbox{gray!30}{% \parbox{\dimexpr\linewidth-2\fboxsep\relax}{% #1 }% }} \begin{document} \lipsum[1] \highlight{\lipsum*[1]} \end{document} But I don't agree with you in that ...

3

color package and \colorbox[gray]{0.5}{\parbox{.7\textwidth}{The fundamental......}}

3

A very quick solution is to just add \rule{width}{height} in the desired colour: \documentclass{beamer} \setbeamertemplate{navigation symbols}{} \defbeamertemplate*{footline}{my footline}{% \ifnum\insertpagenumber=1 \hbox{% \begin{beamercolorbox}[wd=\paperwidth,ht=.8ex,dp=1ex,center]{}% % empty environment to raise height ...

5

Improved version Here is a possibility using the xkeyval package and a key-value approach: The code (explanations below): \documentclass{article} \usepackage[explicit]{titlesec} \usepackage{xkeyval} \usepackage{tikz} \usetikzlibrary{tikzmark,calc} \usepackage{lipsum} \newlength\LeftSep \newlength\RightSep \newlength\TitleWd \newlength\VertLineWd ...

0

As it is unclear to me which symbol you actually mean, here you go: \documentclass{article} \usepackage{amsmath} \begin{document} The generating function $\mathcal{H}(x)$ in \ref{3.15.3} is a rational function whose poles all lie on the unit circle $|x|=1$. In fact, the poles are at various roots of unity. What are multiplicities of poles? The point ...

3

You can change the color attributes for the foreground and background for each kind of block independently using %For example blocks \setbeamercolor{block title example}{fg=red,bg=orange} \setbeamercolor{block body example}{fg=cyan,bg=yellow} %For alert blocks \setbeamercolor{block title alerted}{fg=olive,bg=pink} \setbeamercolor{block body ...

2

I would abbreviate the title to a complete phrase, not just truncate it with \ldots Also I would change the default marks not to uppercase. In the default settings the chapter titles are probably intended to be shorter and each page only has a chapter or a section heading, not both. \documentclass[a4paper,12pt,oneside]{book} \usepackage{fancyhdr} ...

1

Here's one possibility; the \RRsubsection command was defined in a similar fashion to the standard \subsection, but will typeset the title ragged right: \documentclass{moderncv} \usepackage[utf8]{inputenc} \moderncvstyle{classic} \moderncvcolor{blue} \firstname{John} \familyname{Doe} \makeatletter \NewDocumentCommand{\RRsubsection}{sm}{% ...

1

Thanks to Giacomo's feedback, I found another solution for this specific problem: The problem is somehow more related to Citavi and Citavi is not as clear or transparent as LaTeX. For future reference of other people who might encounter a similar problem: Although Citavi asks to provide the date in the format urldate={dd.mm.yyyy} you can type it in as ...

2

for forcing the formatting in BibTeX, I use the double braces, e.g.: Urldate = {{15/01/2014}}

0

As Aditya said, the solution is to set the titledistance key to 0.5em like this: \defineenumeration[definition][theorem][ text={Definition}, prefix=chapter, way=bychapter, right=., title=yes, titledistance=0.5em, % the "titledistance" key does the job titleleft=(, titleright=.), distance=0.5em, headstyle=\ss, ...

1

You can use aligned instead of align environment \begin{aligned} \text{MMAV1} &= \frac{1}{N} \sum_{n=1}^N \omega_n|x_n|\,, \\ \omega_n &= \begin{cases} 1 & \text{if 0.25N \leq n \leq 0.75N} \\ 0.5 & \text{otherwise} \end{cases}\,. \end{aligned} \label{equ:MMAV1} Of course, you can ommit the \\ after ...

2

Here you go (just a variation of my answer mentioned in the question): The code: \documentclass{article} \usepackage[a5paper,vmargin=2cm]{geometry} \usepackage{background} \usepackage{etoolbox} \usepackage{graphicx} \usepackage{totcount} \usepackage{lipsum} \usepackage{hyperref} % to have access to the total number of sections \regtotcounter{section} % ...

2

Here's one possibility using the tocloft package and part of egreg's answer to Customizing the list of listings generated by \lstlistoflistings?: \documentclass[12pt,openright,oneside,dvipsnames,a4paper,% chapter=TITLE,section=TITLE,english]{abntex2} \usepackage{textcomp} \usepackage{caption} \usepackage{listings} \usepackage{tocloft} ...

1

How about that? I used the aligned and medsize (from nccmath) environments. I also loaded lmodern, which is T1-encoded and has accented letters, for a correct hyphenation. Also, you can typeset accented letters directly (ä instead of {\"a}). \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...

0

May be you like this \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} \noindent \underline{Unterbrechbare Ger{\"a}te} \\ $\rightarrow$ \text{ mit n verschiedenen Phasen (n beliebig aber fest)} \begin{equation*} P_{j_k}(t) = ...

3


8


2

You can redefine \smallcaps to include the desired formatting for headers. Luckily, this command is only used for typesetting the headers, so the impact elsewhere is zero. The lone mandatory argument is the headers' content to typeset, passed internally by the class. The default definition is ...

2

It's possible to set the link color inside of an environment temporarily to another value (other than specified before) and to restore it to the original one afterwards. I used the xpatch package to append the color change code after the start of the equation environment (macro \equation) and to switch back after \endequation (which is ...

2

You might try the flalign environment, if you have equations. If you want tabu, do text before the display $\begin{tabu}{llX} ... \end{tabu}$ text after the display The important thing is not having a blank line between the text above the display and $. After$ there may be a blank line or not, depending on whether the text starts a new paragraph.

1

There is not much reason to use titlesec here. Just use memoirs own interface to format the though. But, when you want to use frontmatter and mainmatter plus want to generally change the secnumdepth, remember to use \setsecnumdepth{chapter} \maxsecnumdepth{chapter} The maxsecnumdepth (bad name) is what the secnumdepth is reset to at the start of ...

0

Following the answer of Bruno, the wiki package allow a very simplified entry of boldface and italics fonts using the Wikipedia syntax: \documentclass{article} \usepackage{wiki} \begin{document} \wikimarkup Write in '''bold''', ''italic'' or '''''both'''''. \end{document} Bold and italics can be nested and even overlapped, so that you can obtain the ...

2

The OP found the solution himself; here it is (I post it in his behalf as CW): \setbeamercolor{item projected}{bg=siva} \setbeamertemplate{enumerate items}[default] \setbeamertemplate{navigation symbols}{} \setbeamercovered{transparent} \setbeamercolor{block title}{fg=siva} \setbeamercolor{local structure}{fg=siva} \setbeamertemplate{itemize items}[circle] ...

3


4

The termcal package assumes that weeks start on a Monday, so the start date of your class is always taken to be a Monday. So in your example, although your class is only on a Tuesday/Thursday schedule, its start date should be 03/09/2014 (although I assume you probably mean 2015...). So: \begin{calendar}{03/09/2015}{10} will do what you want.

6

Routine rant You need \right. before \\ and \left. at fore front of second line like \left[......\right. \\ \left. .......\right] since \left[ and \right] can't be broken across the line without balancing. Routine recommended solution You need \Biggl[ and \Biggr] from amsmath \documentclass{article} \usepackage{mathtools} \begin{document} ...

4

Here's one possibility adaption the answer linked in the question to the beamer settings: \documentclass{beamer} \usetheme{Warsaw} \makeatletter \def\Mdescription#1{% \advance\beamer@descdefault by \labelsep% \list {} {\labelwidth\beamer@descdefault% \leftmargin\beamer@descdefault% \let\makelabel\beamer@descriptionitem ...

Top 50 recent answers are included