# Tag Info

1

Do you looking for domething like thi: \documentclass{article} \usepackage{amsmath, amssymb} \begin{document} \begin{align} \mathrm{Var}(X + c) & = && \text{rel. 184 pag. 62} \\ & = && \text{proprietà 1 pag. 61} \end{align} \end{document}

1

The issue is not due to numprint, but to array, that the package loads. A minimal example is \documentclass[10pt,a4paper]{article} \usepackage{amsmath} \usepackage{array} \newcommand*{\fct}[5]{% \begin{array}[t]{@{}l@{}c@{}c@{}c} #1 \colon & #2 & \; \longrightarrow & \; #3 \\ & #4 & \; \longmapsto & \; #5 \end{array}...

1

If you change \colon to \colon{} in the definition of the \fct macro, you'll get the same output whether or not the numprint package is loaded. \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} % that's the default nowadays \usepackage[T1]{fontenc} \usepackage{newtxtext} \usepackage[frenchmath]{newtxmath} \usepackage[np,autolanguage]{...

4

The computed badness of the last box is 179, which is less than the default threshold 10000. You can see this if you make \hbadness as small as possible. \hbadness=-\maxdimen \newskip\fixed \fixed=8cm \newskip\stretchable \stretchable=2cm plus 6cm \hbox to 10cm{|\hfil|} \hbox to 10cm{|\hskip\fixed|} \hbox to 10cm{|\hskip\stretchable|} \bye Compile with ...

4


0


1

You can use \smash{b} to set the height of b to zero, and then \vphantom{a} to make something with zero width and the height of an a. \documentclass[12pt]{minimal} \newcommand{\ol}[1]{\overline{\smash{#1}\vphantom{a}}} \begin{document} $\overline{a} + \overline{b}$ $\ol{a} + \ol{b}$ \end{document}

3

By smashing things. In the following example, the argument b is vertically smashed (its height doesn't count). The \lowoverline gets its height from the optional argument, which defaults to a. This argument is horizontally smashed and made invisible by \phantom. \documentclass{article} \usepackage{mathtools} \newcommand\lowoverline[2][a]{\ensuremath\overline{...

0

Another use I have for \! is if I'm writing larger numbers in math mode where I need to use the comma separator. Since math mode treats comma as though it's used in text, it automatically adds a space. \! removes that space. Compare, for instance: from $7,000$ and from $7,\!000$

4

With package scrextend and \deffootnote you can use \addtokomafont or \setkomafont to change the font settings for the footnotemark: \documentclass{book} \usepackage{scrextend} \setkomafont{footnotelabel}{\bfseries} \deffootnote[.35in]{.5in}{.195in}{\makebox[.5in][r]{\thefootnotemark.\hspace{.1in}}} \begin{document} \noindent A sentence.\footnote{Footnote ...

4

\deffootnote redefines the footnote code and so overwrites also your patch. But you can add the bold font simply to the definition there: \documentclass{book} \usepackage{etoolbox} \usepackage{scrextend} \deffootnote[.35in]{.5in}{.195in}{\makebox[.5in][r]{\bfseries\thefootnotemark.\hspace{.1in}}} \begin{document} \noindent A sentence.\footnote{Footnote A.} ...

0

The IEEEtran class has \def\fnum@figure{\figurename\nobreakspace\thefigure} You can solve your problem by saying, before \begin{document}, \makeatletter \def\fnum@figure{\mbox{\figurename\ }\thefigure} \makeatother so the space after \figurename will not be influenced by the space factor of the period and be fixed because it appears in a box.

1

Your table code is quite unusual. I would rather write your table on the following way: \documentclass[]{article} \usepackage{siunitx} % new, used is version v3.0.32, last revised 2021-09-29. \usepackage{booktabs, tabularx} % new \usepackage[referable]{threeparttablex} % new \begin{document} \begin{table}[ht] \begin{threeparttable} \caption{A ...

0

Try this code with your document. (Added a small space before the title) \documentclass{book} \usepackage[listings]{tcolorbox} \usepackage{cleveref} \newtcblisting[auto counter, number within=chapter, crefname={lis.}{lis.}, Crefname={Listing}{Listings}, list inside=lis, ]{labelboxcode}[4][]{% listing options={language=#2,#1}, list text={\hspace*{1ex}...

3


2

It is not entirely clear to me your intention with flalign. Description of some abbreviations or variables as can be concluded from section titles? For this seems to be use of some table, for example designed by tabularx, more appropriate tool: \documentclass[a4paper,12pt]{report} \usepackage[a4paper, hmargin=3cm, vmargin={2.5cm,3cm} ...

2

I take it that it's important to you to have the first column of the two-column flalign* material start at the left-hand edge of the text block. To shift the second column to the left (and hence to create some whitespace to the right of the second column), one can insert pairs of && to the far right of (say) the first row. For instance, the first, ...

0

Why not use listings? \documentclass{article} \usepackage{listings} \begin{document} \begin{lstlisting}[ language=Lisp, mathescape=true, columns=fullflexible, basicstyle=\ttfamily, ] (?: ($f()$ 2) (g() (++ a) (-- a) (- ($\sin()$ $c$))) (+ 10 h())) \end{lstlisting} \end{document}

0

Here is my solution, using the tabbing environment \documentclass{article} \begin{document} \begin{tabbing} (\texttt{?:}\=\\ \> ($f()$~2)\\ \> ($g()$\=\\ \> \> (\texttt{++} \=$a$)\\ \> \> (\texttt{--} \>$b$)\\ \> \> (\texttt{-}\=\\ \> \> \> ($\sin()$~$c$)\\ \>\>)\\ \>)\\ \&...

2

\obeyspaces makes a space \space but that doesn't stop it being discarded in vertical mode, and obeylines makes every line a paragraph. \documentclass{article} \begin{document} \begin{obeylines}\obeyspaces\def {\mbox{\space}}% (?: ($f()$ 2) (g() (++ a) (-- a) (- ($\sin()$ $c$)) ) (+ 10 h()) ) \end{obeylines} \end{...

1

Well you could use multirows, to fiddle around with your line changes, like so: \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{tabularx} \begin{document} \begin{table}[htpb!] \caption{Byggesystemer} \label{tab:Byggesystemmer} \renewcommand{\arraystretch}{1.5} \strut \noindent \begin{tabularx}{\...

0

I made a template showing how I made it using @Mico's idea. I apologize for the danish, but the solution can be seen in the spacing. Code: \newcolumntype{L}{>{% \RaggedRight\everypar{\hangafter=1}}X} \begin{table}[htpb!] \setlength\tabcolsep{2mm} \caption{Irregular columns} \label{tab:IrregularColumns} \begin{tabularx}{\...

1

I gather the information in columns 2 and 3 is supposed to be displayed as a free-format list. If this assumption is correct, you could achieve your formatting objective by grouping the cells per column. To economize on vertical space, I'd recommend keeping to single-spacing but employing hanging indentation for the list items. \documentclass{article} \...

2

I am not too sure, what you are asking exactly, but here are some suggestions: When TeX sees a character, it will start in horizontal mode, so there is no need for you to check for vmode or hmode. Use \addvspace for vertical spacing. To be honest personally I would use a package such as exsheets or if your lectures include maths, I would use the amsthm ...

Top 50 recent answers are included