New answers tagged

2 votes

a macro for mskip with half stretch and shrink?

I've never used such specifications, let alone “often”, to be honest. Here's the way: \NewDocumentCommand{\hspaceflex}{sm}{% \IfBooleanTF{#1}{\hspace}{\hspace*}% {#2 plus \dimeval{#1/2} minus \...
  • 1.0m
1 vote
Accepted

a macro for mskip with half stretch and shrink?

Like this. With \muexpr. \documentclass{standalone} \newcommand{\mSkipWithHalfStretchAndHalfShrink}[1]{\mskip#1 plus .5\muexpr#1\relax minus.5\muexpr#1\relax\relax}% 50 per cent of the argument after ...
  • 3,116
0 votes

How to "teach" a custom command to set rules whilst also using linebreak?

Are you trying to reinvent dashundergaps? With this package there are line breaks in gaps, but words are not hyphenated. However, but with the teach-mode you can control easily if some gap need a soft ...
  • 74.5k
0 votes

How to "teach" a custom command to set rules whilst also using linebreak?

The \gap command will test whether the material is wider than 3.5em. If it's the case, it produces 1.75em wide rule, then as many copies of a very short rule (3pt) as are necessary to (approximately) ...
  • 1.0m
1 vote

How to "teach" a custom command to set rules whilst also using linebreak?

In a simple adaptation (see below for better approach), one could make the underline-gap of sub-segments, allowing a break between the sub-segments. Here, I break the underline-gap into 6 segments. \...

Top 50 recent answers are included