Hot answers tagged

5 votes
Accepted

Circled inline letters with minimum size to contain each single letter of the a-z alphabet

With text height={height("W")}, text depth={depth("p")}, and text width={width("m")}, you can set the height, depth, and width of your node text with the same height of W,...
  • 56.4k
4 votes
Accepted

Name on top of two optimization problems

Here's the solution. Regarding the references, I just made a custom counter problem with \refstepcounter to add reference points for each \label. As to the spacing, I wrapped the whole block within an ...
  • 5,572
2 votes

command to generate a breaking half space or break, but not full space

The horizontal space is normally breakable when you use \hskip primitive without preceding penalty. I set the same amount of \tbspace like in egreg's answer, but (of course) I used only TeX primitives....
  • 62k
2 votes

command to generate a breaking half space or break, but not full space

Instead of adding some command after the comma, which is error prone, I suggest to define your own command for these series. \documentclass{article} \ExplSyntaxOn \NewDocumentCommand{\tbspace}{}{\...
  • 1.0m
2 votes
Accepted

Vertical Spacing Between the Chapter and Section Titles

As suggested in the comment, you can use the titlesec package; for example, as follows: \documentclass[12pt]{book} \usepackage{titlesec,lipsum} \titleformat{\chapter}{\bfseries\huge}{}{0em}{} \...
  • 7,002
2 votes

Circled inline letters with minimum size to contain each single letter of the a-z alphabet

Perhaps I'm misunderstanding the problem here, but a macro to circle a single inline letter could be easier, either by setting a \vphantom as in your example, or setting the text depth, text height ...
  • 31.1k
1 vote
Accepted

beamer, titlepage, logo and horizontal line

As you are anyway loading the tikz package, you could use it to design your title page background. Other comments: the mathserif option is obsolete, use \usefonttheme[onlymath]{serif} instead you ...
1 vote

How to reduce the protected space a tilde (~) gets in LaTeX?

\,, aka a non-breaking "thinspace", is your friend here. \documentclass{article} \begin{document} \begin{tabular}{ll} x\% & too little? \\ x\,\% & about right? \\ x~\% & ...
  • 461k
1 vote

Circled inline letters with minimum size to contain each single letter of the a-z alphabet

You don't need TikZ for declaring your \stencil macro. The \enclosecircle is declared in Unicode math. \newbox\circlebox \setbox\circlebox=\hbox to1.1em{\hss$\phantom x\enclosecircle$\hss} \def\ecirc#...
  • 62k
1 vote

Circled inline letters with minimum size to contain each single letter of the a-z alphabet

Unicode has an Enclosed Alphanumerics codeblock, so you could use direct input with a suitable font, like Noto Sans Symbols, or a CJK font: Note that, here, the circle is the starting point, and the ...
  • 8,666
1 vote

command to generate a breaking half space or break, but not full space

For good measure, a LuaLaTeX-based solution. :-) % !TEX TS-program = lualatex \documentclass{article} \usepackage{luacode} % for '\luaexec' macro \luaexec{ function series ( s ) return ( ...
  • 461k

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