Skip to main content
6 votes

Purpose of \nobreak inside \vadjust

Also, I still see no difference between \vadjust{\relax} and \vadjust{\nobreak \relax}. Is there a difference? \vadjust{\relax} does nothing at all. \vadjust{\nobreak} with or without the \relax ...
David Carlisle's user avatar
4 votes

How to change height and depht for superscript and subscript outside math mode?

When we are using math mode for placing these subscripts, superscripts, then the vertical spacing between them look OK. For example, using \mathbox from OpTeX: \def\spsb#1#2{$^{\mathbox{\it #1}}_{\...
wipet's user avatar
  • 74.8k
4 votes
Accepted

How to change height and depht for superscript and subscript outside math mode?

You can define the combination more properly. With your code TeX is not aware that there are both a subscript and a superscript. You also don't need to guess what's the shorter part. \documentclass{...
egreg's user avatar
  • 1.1m
3 votes

How to include a bib file into my latex file?

Welcome, you could use biber: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[style=authoryear, backend=biber]{biblatex} \addbibresource{bibliography.bib} ...
Paul A's user avatar
  • 1,117
2 votes

Custom LaTeX Command for Consecutive Superscripts with Correct Alignment After Large Symbols

You can try following macros: \def\isnextchar#1#2#3{\def\tmp{#1{#2}{#3}}\futurelet\next\isnextcharA} \def\isnextcharA{\expandafter\isnextcharB\tmp} \def\isnextcharB#1#2#3{\ifx\next#1\afterfi{#2}\else\...
wipet's user avatar
  • 74.8k
2 votes
Accepted

Custom LaTeX Command for Consecutive Superscripts with Correct Alignment After Large Symbols

You have almost the right idea. Instead of using a toggle and an Environ, it is easier to use the following logic: Everytime \up or \down starts, push the symbol that it would add to a queue. Check ...
Willie Wong's user avatar
2 votes

Purpose of \nobreak inside \vadjust

Oh I think I see. But please could someone confirm. The macro \vadjust{<vertical list>} inserts a vertical list just after the line has ended. But vertical space is removed at page breaks. Thus ...
SvenForkbeard's user avatar
2 votes
Accepted

def inside def gives an error when used with ref

When LaTeX processes \ref{foo} it basically looks whether the control sequence \r@foo is defined (with @ a letter) and in order to do this it performs \csname r@foo\endcsname The tokens inside \...
egreg's user avatar
  • 1.1m
2 votes

def inside def gives an error when used with ref

The argument needs to expand to a label name, so remove the assignment: \documentclass{article} \begin{document} \begin{equation} \label{eq:test-10} A=B \end{equation} \def\test#1{% test-#1} ...
David Carlisle's user avatar
1 vote

How to change height and depht for superscript and subscript outside math mode?

Using the altsubsup package since 2022. \documentclass[12pt]{article} \usepackage{altsubsup} \usepackage{bm} \begin{document} \begin{displaymath} \bm{Friends}_{\bm{Concentration}}^{\bm{Ritual}} \end{...
Sebastiano's user avatar
  • 54.4k

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