# Tag Info

5

Good evening, the \boxed command is defined in the amsmath.{sty|dtx} file (that's a part of the amsmath bundle), it's: \newcommand{\boxed}[1]{\fbox{\m@th$\displaystyle#1$}} We can redefine it and use inline mathematics instead. With the help of \fbox command we can draw a rectangle, the proper width is \textwidth-2\fboxrule-2\fboxsep. The core of our ...

3

You can use a stack. Note that the default end-of-line (EOL) character is a space in stackengine's \Longstack, which works just fine for your example. But often, if your stack contains natural spaces, then you need to change the EOL for the stack, which I do for the second stack, to \\, using \setstackEOL{}. Also, the use of \stackMath or \stackText will ...

9

I'm not sure if you're misusing math mode; within \boxed you can use any of the “inner” amsmath environments, in this case I used aligned: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} \[ \boxed{ \!\begin{aligned} &1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,\\ ...

3

It also helps to add a blank. \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} %\usepackage{lmodern} %\usepackage[T1]{fontenc} %\usepackage[utf8]{inputenc} %\usepackage{dsfont} %\usepackage{mathrsfs} \usepackage{amssymb,amsmath} %\usepackage{cancel} \begin{document} \section{Prove} \( ...

2

I would try something like this: \documentclass[a4paper,oneside,12pt]{report} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% PACKAGES & SETTINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[english]{babel} % formatting rules for the English language \usepackage[T1]{fontenc} % proper formatting for ...

3

Don't use $c=$ foo as if = is not used in infix position it will get the wrong spacing if you must mix math and text then $c={}$foo will ensure that you get mathrel spacing on both sides of the = but here \emph seems logically wrong (you want italic not emphasis) so I used c=\mathit{foo}. However the text simply doesn't fit. You could re-write to make it ...

4

Here is a workaround, that avoids setting \endlinechar to an unwanted value. I don't know whether there are side effects. \begin{filecontents*}{calebits.tex} %<*tag> \section{section: tag} paragraph one paragraph two %</tag> \end{filecontents*} \documentclass{article} \usepackage{catchfilebetweentags} \makeatletter \def\CatchFBT@sanitize{% ...

2

You can provide your own "tag" system via conditionals. Let me explain: For each tag <tag>, define a conditional \if<tag> via \newif\if<tag>. Then, inside your document, brace the tagged group using \if<tag>...\fi. Now you can use \inputbetweentags{<tag>}{<filename>} to insert the file contents between the newly generated ...

1

You should let the align environment handle the numbering for you. Then the numbers will appear close to the right margin and the equations will be centered correctly. \documentclass{article} \usepackage{showframe} \usepackage{mathtools} \begin{document} The equation is \begin{align} 4x &= 3x + 3.\\ \shortintertext{Then we have} 3x+3&\leq 4x ...

0

First of all, note that I canceled the "fullpage" and "doublespace" option. They are needless. (If you want doublespaced lines just use the setspace package.) The solution to you actual problem consists in reseting the section counter manually when \chapter or \chapter* is invoced. (For some reason \@addtoreset failed.) Then, you simply need to redefine ...

5

This seems to work flawlessly: \documentclass{sig-alternate} \usepackage{lipsum} % just for the example \begin{document} \conferenceinfo{Text 1 here}{\\ Text 2 here.} \title{My title} \author{Me} \maketitle \section{A} \lipsum[1-20] \end{document} Magnified view

5

You need to insert a paragraph break, but the usual \par command will not work here. Rather you need to use \endgraf: \documentclass{sig-alternate} \begin{document} \conferenceinfo{Text 1 here}{\endgraf Text 2 here.\endgraf More.} \title{My title} \author{Me} \maketitle \end{document} The \conferenceinfo macro is defined in a way that does not allow ...

2

Background and explanation The problem is indeed in the flushend package. This makes the last columns on the last be of equal length, which is a favorable look for some. When a column reaches its full length without flushend it inserts a columnbreak and removes any whitespace. If this break happens between two paragraphs instead of in the middle of one it ...

3

I have used the nowidow package by Raphael Pinson with some success. \usepackage[<options>]{nowidow} I use: \usepackage[defaultlines=4,all]{nowidow} A value of 4 works for me because I can tolerate some breaks in very large paragraphs. I think you can be pretty sure of banning all page breaks in a paragraph if you set the value of defaultlines ...

3

with \begingroup \raggedright \small \def\addvspace#1{\vspace{4pt}} \bibliographystyle{plainnat} \bibliography{ref-antibiotics} \endgroup I get:

3

You could use something like \setparsizes{1em}{0.25\baselineskip plus .25\baselineskip}{1em plus 1fil}. The first value is parindent, the second parskip, the third parfilskip. "half" uses 0.5 in the second argument.

3

You can fiddle with the margins and rule widths with mdframed options, but basically something like this: \documentclass{article} \addtolength\textheight{-20\baselineskip} \setlength\textwidth{6cm} \usepackage{mdframed} \def\a{One two three four five six.} \def\b{Red yellow blue green black white. } \def\c{\a\a\b\b\a\a} \begin{document} \noindent ...

Top 50 recent answers are included