Tag Info

Hot answers tagged

7

Load the subdepth package with the low-sup option, if you really want to load it. You should also do \usepackage{mathptmx} or, better, \usepackage{newtxtext,newtxmath} and, definitely, type the number as $10^{5}$. In the example I left the construction 10\textsuperscript{5} just to show that the output in correct nonetheless. \documentclass[]{article} ...


4

You can use a tabular or varwidth \documentclass{article} \usepackage{adjustbox,varwidth} \newcommand{\displayconstraint}[1]{\fbox{\begin{minipage}[l][3cm]{5cm} #1 \end{minipage}}} \newcommand{\almostwhatiwant}[1]{\maxsizebox{5cm}{3cm}{\minsizebox{5cm}{3cm}{#1}}} \begin{document} \raggedright \displayconstraint{\almostwhatiwant{test}} % example 1 ...


3

The problem is a space that somehow sneaks in the definition of \sectionmark: \documentclass[11pt,oneside,article]{memoir} \usepackage{lipsum} % Begin Section format \newcommand{\marginbox}[1]{% \parbox[t][0pt]{10em}{% \upshape\sffamily\raggedright\mbox{}#1}% } \newcommand{\marginhead}[1]{% ...


2

The text in a \savebox is typeset all on one line. You need to use a \parbox inside \savebox. There are also some problems in representing the real paragraph with a black box, the main one is to restore the correct depth for the interline spacing. The example uses two columns just to see the effect side by side. \documentclass{article} ...


1

If you want to indent the first paragraph of a specific section, the following kludge will do the job, \makebox[0pt]{}\vspace{-2ex} which makes an empty paragraph and then backs up over it. Ugly but effective.


1

Take the original document, remove the table, and increase the paper size so that every paragraph fits on a single line. Decrease the font size, if necessary. \usepackage[margin=1cm, paperwidth=550cm, paperheight=550cm]{geometry} Then, copy the content of the PDF file and paste it into a plain text file. Replace all line breaks by " ยง " using sed or perl. ...


1

To reuse the macro name use \renewcommand the second time. \documentclass{article} \usepackage{algorithm2e} \usepackage[nopar]{lipsum} \begin{document} \null\vfill \lipsum[1-3] \newcommand{\InsertAlgorithmHere}{% \begin{algorithm}[tbp] \SetKwInOut{Input}{Input} \SetKwInOut{Output}{Output} \LinesNumbered \caption{Caption} \label{alg:Algo} \Input{-} ...



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