Tag Info

7

As egreg says, you should give a try to tcolorbox. Here is a sample: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{listings}% \newtcblisting{myAmazingCodeBox}[1][]{% colback=gray!50!white,boxsep=2pt,left=2pt,right=2pt,top=2pt,bottom=2pt, colframe=blue,arc=10pt,#1} %\tcbset{listing engine={listings}} \begin{document} ...

5

An mdframed solution: \documentclass{article} \usepackage{verbatim} \usepackage[framemethod=TikZ]{mdframed} \mdfdefinestyle{MyFrame}{% linecolor=blue, outerlinewidth=2pt, roundcorner=10pt, innertopmargin=2pt, innerbottommargin=2pt, innerrightmargin=10pt, innerleftmargin=10pt, backgroundcolor=gray!50!white } \newenvironment{myAmazingCodeBox} ...

3

Here's one option using some boxes and the explicit option for titlesec (adjust the settings according to your needs): The code: \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{lmodern} \usepackage{graphicx} \usepackage{xcolor,lipsum,mdframed} \definecolor{sectcolor}{cmyk}{0,1,.75,.39} \definecolor{sectbgcolor}{RGB}{0,106,168} ...

2

Instead of overloading the standard \section command (which can be done, but I don't consider a good idea), I propose you to use a new command \Ssection for sections with subtitle (for sections with no subtitle, you can still use the standard \section command): \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{lmodern} \usepackage{graphicx} ...

2

There is only a name:andothers defined. However, this may help: \documentclass{article} \usepackage{biblatex} \renewcommand*{\finalnamedelim}{% \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% \addspace\bibstring[\emph]{and}\space} \addbibresource{\jobname.bib} [...]

2

What you're asking is not quite clear. What is a space? A half quad? You didn't specify the vertical spacing above section heading and nothing about subsubsections. The following code is a possibility, with the titlesec package and its companion titleps (so don't load fancyhdr), that lets me redefine very simply the plain style. \documentclass[12pt, ...

2

This is done on purpose, in order to avoid excessive height when not really needed. Inside \overline, the current math style changes into the “cramped” variant. You can revert to the uncramped one by explicitly selecting it or using a command that does it for you. \documentclass{article} \newcommand{\roverline}[1]{\mathpalette\doroverline{#1}} ...

2

This tidies up a few things mentioned in comments and a few more not mentioned there. I don't know if align* is really the optimal choice of environment when presenting this kind of proof, though. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools} \usepackage[margin=1in]{geometry} \begin{document} ...

2

I would use an enumerate environment for the cases, with the wide option of enumitem. I also prefer to use the ntheorem package at it is easy to customise theorem environments and it has an automatic placement of the end-of-proof symbol. \documentclass{article} \usepackage{amssymb} \usepackage{mathtools} \usepackage[margin=1in]{geometry} ...

2

You could place the nodes on a grid and specify how far apart they should be. But most importantly, to create the chart the flow should not start at the top but work out from the center most portion. \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta,positioning,shapes.geometric,calc} \begin{document} \def\aes{*1} ...

1

Use two tabulars. \documentclass[12pt, a4paper]{article} \usepackage{booktabs,array} \begin{document} I want them on the same row, side by side. \vspace{0.5cm} \begin{tabular}[t]{@{}>{\raggedright\arraybackslash}p{0.45\textwidth}@{}} \toprule Supervisor\\ Name of the Supervisor\\ Title, Affiliation\\ Head of Department\\ Department of Electronics and ...

1

Or, use of two minipage will do too. Code \documentclass[12pt, a4paper]{article} \begin{document} I want them on the same row, side by side. \vspace{0.5cm} \begin{minipage}[t]{0.45\textwidth} \line(1,0){150}\\ Supervisor\\ Name of the Supervisor\\ Title, Affiliation\\ Head of Department\\ Department of Electronics \\ and Computer Engineering\\ ...

1

You can define your own environment, if you use the verbatim package: \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} \mdfdefinestyle{MyFrame}{% linecolor=blue, outerlinewidth=2pt, roundcorner=10pt, innertopmargin=2pt, innerbottommargin=2pt, innerrightmargin=10pt, innerleftmargin=10pt, backgroundcolor=gray!50!white} \usepackage{verbatim} ...

1

I avoid the option clash for hyperref by loading: \usepackage[svgnames]{xcolor} The last package in my preamble is: \usepackage[colorlinks=true, linkcolor=Maroon, urlcolor=Maroon]{hyperref} Obviously, you should use your own preferred colours. I struggled with this for quite a while when I was designing the template for a scholarly journal but after ...

1

\documentclass[12pt, openany]{book} % Page Setup \usepackage[paperheight=8in, paperwidth=6in, top=.1in, bottom=.2in, right=.1in, left=.1in, heightrounded]{geometry} % Set space between paragraphs \setlength{\parskip}{1em} % Custom Quotation Environment \newenvironment {mq} %My Quote ...

1

I'm not sure what's the question, but assuming what you don't know is how to put the dots, here's a way \documentclass{scrartcl} \begin{document} what you come out with: \begin{center} Average wage of employees \makebox[3cm]{\dotfill} $\$\,2.200$\end{center} Or did you just mean something like Average wage of employees \dotfill\$\$\,2.200$ ...

1

Here is a tabular solution, if you like an over kill: \documentclass{article} \usepackage{array} \usepackage{showframe} %% just for demo \begin{document} what you come out with: \noindent \begin{tabular}{p{0.15\textwidth}p{\dimexpr0.85\textwidth-3\tabcolsep\relax}@{}} & Average wage of employees \dotfill $\$\,2.200\$ \end{tabular} \end{document} ...

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