# Tag Info

## Hot answers tagged formatting

5


5


3

I believe that what you are looking for is to set a footer. Here is an example of how to do this using fancyhdr: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancyfoot[C]{This is my personal footer that will appear in every page of the document.} \begin{document} This is my document. ...

2

Explanation Your orders are being obeyed; it's just that \nogloss{} doesn't work the way you think it does. The formatting you specify in everygla doesn't apply to material within \nogloss{} (although this isn't explicitly mentioned in the documentation). This is because expex is designed primarily to be used for interlinear glossing where every word is ...

2

Only if you can switch to an other class: With class memoir you could use the command \chapterstyle{section} to get the desired result. \documentclass[a4paper]{memoir} \chapterstyle{section} \usepackage{blindtext} \begin{document} \blinddocument \end{document} And the class scrbook knows an option chapterprefixline=false ...

2

(1) Always post minimal examples that can be copied and compiled as is. This is a sniplet. MWEs makes it a lot easier to help \usepackage{array} \begin{tabular}{ | >{\centering\arraybackslash} p{5cm} | >{\centering\arraybackslash}p{2cm} | >{\centering\arraybackslash}p{2cm} | >{\centering\arraybackslash}p{2cm} |} array enables ...

2

\documentclass{article} \usepackage{multicol} \begin{document} \begin{multicols}{2} \raggedcolumns \begin{itemize}\setlength\itemsep{-0.5em} \item[1] 12-ounces package fully cooked chicken sausage links, sliced \item[4] cloves garlic, thinly sliced \item[1] 19-ounces can cannellini beans, rinsed \item[1] 14.5-ounces can low-sodium chicken broth ...

2

It's a simple fix, but I never thought of it myself until I saw it being used in a sty file. \documentclass[a4paper]{memoir} \setstocksize{11.0in}{8.5in} \settrimmedsize{11.0in}{8.5in}{*} \setlength{\trimtop}{0.0in} \setlength{\trimedge}{\stockwidth} \addtolength{\trimedge}{-\paperwidth} \settypeblocksize{9.0in}{4.87in}{*} \setlrmargins{*}{1.0in}{*} ...

2

I had two answers, the first being the same as John Kormylo's, which indents all paragraphs except the first (note the % in \mysidenote{%). The second answer for if you want a note consisting of a single paragraph to be indented is not to modify your \mysidenote macro but in any multiparagraph sidenote to put \noindent before the first paragraph of any ...

2

Here is a solution \documentclass{article} \usepackage{xcolor} \begin{document} $\raisebox{\baselineskip}{4)}\frac{1}{2}=\frac{\textcolor{red}{1\cdot4}}{\textcolor{red}{2\cdot4}}=\frac{4}{8}$ $\raisebox{\baselineskip}{4)}\frac{1}{2}=\frac{\textcolor{red}{1\cdot4}}{\textcolor{red}{2\cdot4}}=\frac{4}{8}$ \end{document}

2

It is quite easy to do with titlesec: \renewcommand{thesection}{\Roman{section}} \titleformat{\section}{\normalfont\large\sffamily\bfseries}%global formatting (label %and title}% {\thesection.}%label formatting {0.5em}% separation between label and title {}%commands to be applied to the title []% optional argument after title \titlespacing{0pt}{.8cm ...

1

Do you perhaps mean something like "highlight" by "amplify"? Anyway, I think \newcommand{\colorfrac}[3][red]{\frac{{\color{#1} #2}}{{\color{#1} #3}}} would suit your purpose. \colorfrac{1}{2} would give a red '1/2' and \colorfrac[green]{1}{3} a green one (needs the color package). Edit As an answer to your comment: Of course you could, ...

1

Use the array package and define a new column type C which uses the p type and centers it. It would be possible to write this directly in the tabular column definition, but the \newcolumntype is cleaner, especially if there are more than on columns to change. \documentclass{article} \usepackage{array} ...

1

In fact, what is happening there is that TeXstudio is indenting the line (not the whole paragraph). Probably what you are calling paragraph is a single line. So when TXS wraps the line it shows an arrow on the left panel (near the line number) and then if you indent that line the whole block is also indented. If you want to indent only the first line of ...

1

Use a tabular: \documentclass{article} \begin{document}‎‎ \noindent \begin{tabular}{@{}cccc@{}} & & \rule{3cm}{15pt} \\ & & \rule{3cm}{15pt} \\ \rule{1cm}{3cm} & \rule{1cm}{3cm} & \rule{3cm}{3cm} \\ \end{tabular} \end{document} Instead of the \rules, place your tikzpictures.

1

Another solution with titlesec, which works also with multiline titles: \documentclass[twoside]{book} \usepackage[right=5cm, showframe]{geometry} \usepackage[x11names]{xcolor} \usepackage[explicit]{titlesec} \titleformat{\chapter}{\Huge\bfseries}{\rlap{\hspace*{\dimexpr\textwidth + \marginparsep}\color{IndianRed3}\chaptername{} \thechapter}}{0pt}{#1} ...

1

In order to make the framed box fit its content one needs to measure the contents width first. In this case I simply assigned the content to measure to box register 0, i.e. \setbox0=\hbox{...} and retrieve its width from \wd0. So, your box macro will be defined as \newcommand*\WideFittedFramebox[1]{% \setbox0=\hbox{\hspace{2em}#1\hspace{2em}}% ...

1

The standard kernel's \newtheorem is somehow too basic. I'd suggest you to use either amsthm or ntheorem (by far, the most popular packages to deal with theorem-like structures). Here's one way to achieve the desired formatting using a new theorem style defined using the amsthm package: The code: \documentclass[10pt,a4paper]{article} ...

1

The chapter title is set with \@makechapterhead, being called within \@chapter, which is itself is used by \chapter. The normal definition of \@makechapterhead is (see book.cls) \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \if@mainmatter \huge\bfseries ...

1

You'll need to redefine some internal commands (\@begintheorem and \@opargbegintheorem): \documentclass{sig-alternate} \makeatletter \def\@begintheorem#1#2{% \parskip 0pt % GM July 2000 (for tighter spacing) \trivlist \item[% \hskip 10\p@ \hskip \labelsep {{\bfseries #1\hskip 5\p@\relax#2.}}% ] \it } ...

1

Using amsmath package the code: Method 1: \begin{align*} \int \left( \frac{x+3}{2}\right) \, dx =& \int \frac{1}{2}(x+3) \, dx && \text{Factoring out a constant} \\ =& \frac{1}{2} \int (x+3) \, dx && \text{Factoring the constant outside the integral} \\ =& \frac{1}{2}\left[\frac{1}{2}x^2+3x\right]+C && \text{Applying ...

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