Skip to main content

All Questions

Tagged with
2 votes
1 answer
60 views

How to group elements in order to use them like one character

I want to create commands that will show some data and will be used as a single character in different places (paragraphs, tables etc.). Here is an example of how it should be looking: I achieved it ...
Taras's user avatar
  • 123
2 votes
1 answer
91 views

Why does additional brace group cause \settominwidth to complain about missing }

I'm using the pbox package's \settominwidth command to measure the typeset width of text that includes explicit line breaks (which is a case in which standard LaTeX's settowidth doesn't work). In the ...
Jim Ratliff's user avatar
  • 1,049
1 vote
1 answer
965 views

Beamer: Make logo from headline overlap into frametitle

Goal I'm trying to create a beamer theme where in the top we have the following layout: ________________________________________ | | | | Author & Insitute ...
ljrk's user avatar
  • 273
9 votes
2 answers
704 views

Create a \savebox in a Group and have it available outside of group

The MWE below creates a \savebox within a group which results in several blank lines: If I comment out the\begingroup and \endgroup I get the desired results: My thinking was that adding the \global ...
Peter Grill's user avatar
4 votes
1 answer
308 views

Convert a latex command with parameter into a two begin end commands without parameter

I have defined a command \newcommand{\CV}[1]{\parbox[c]{0.2\textwidth}{\begin{flushleft}#1\end{flushleft}}} which I obviously have to call like \CV{My text} However I rather would like to use ...
halloleo's user avatar
  • 985
16 votes
3 answers
2k views

Use \bgroup and \egroup to set some pre and post code to a macro

Why isn’t it possible to use \bgroup and \egroup in this way? \documentclass{article} \def\precode{\fbox\bgroup} \def\postcode{\egroup} \newcommand{\mymacro}[1]{\precode#1\postcode} \begin{...
Tobi's user avatar
  • 56.8k
10 votes
2 answers
1k views

Beamer: content in box register does not survive \end{frame}

Consider the following example (I edited the example to include LaTeX lrbox environment): \documentclass{beamer} \newsavebox\mybox \newsavebox\myboxb \begin{document} \frame{ \sbox\mybox{Hello ...
AlexG's user avatar
  • 55.4k
7 votes
3 answers
2k views

Why are box dimension assignments both local and global?

Consider the following code. \setbox0 \hbox{XXX} \fbox{\copy0} { \setbox0\hbox{ZZZ} {\wd0 0pt} \fbox{\copy0} } \fbox{\box0} This produces three ruled boxes. The two XXXs ...
TH.'s user avatar
  • 63.1k